e2fsck Error writing block on ARM server

I created a 60TB thick volume and I took a snapshot on it with e2fsck. And it shows a message that I don't understand. > e2fsck -dnvftt /dev/mapper/vg1-snap10001  e2fsck 1.43.9 (8-Feb-2018) Pass 1: Checking inodes, blocks, and sizes Inode 81855343 has INDEX_FL flag set on filesystem without htree support.  Pass 1: Memory used: 40608k/37792k (7837k/32772k), time: 165.37/150.20/ 1.90 Pass 1: I/O read: 1085MB, write: 0MB, rate: 6.56MB/s Pass 2: Checking directory structure Pass 2: Memory used: 40608k/36608k (8325k/32284k), time:  6.40/ 3.16/ 0.21 Pass 2: I/O read: 125MB, write: 0MB, rate: 19.52MB/s Pass 3: Checking directory connectivity Peak memory: Memory used: 40608k/36608k (8325k/32284k), time: 217.58/172.47/ 2.24 Pass 3: Memory used: 40608k/36608k (8324k/32285k), time:  0.31/ 0.30/ 0.00 Pass 3: I/O read: 0MB, write: 0MB, rate: 0.00MB/s Pass 4: Checking reference counts Pass 4: Memory used: 40608k/36608k (4565k/36044k), time: 114.33/45.76/12.61 Pass 4: I/O read: 0MB, write: 0MB, rate: 0.00MB/s Pass 5: Checking group summary information Free inodes count wrong (1006078544, counted=1006078554). Pass 5: Memory used: 40608k/36608k (2324k/38285k), time: 288.05/15.74/ 4.96 Pass 5: I/O read: 1922MB, write: 0MB, rate: 6.67MB/s  Memory used: 40608k/36608k (2324k/38285k), time: 620.30/234.25/19.81 I/O read: 3161MB, write: 0MB, rate: 5.10MB/s Error writing block 1 (Bad file descriptor).  Ignore error? no Error writing block 2 (Bad file descriptor).  Ignore error? no Error writing block 3 (Bad file descriptor).  Ignore error? no Error writing block 4 (Bad file descriptor).  Ignore error? no ... Error writing block 3219095552 (Bad file descriptor).  Ignore error? no Error writing block 3219128320 (Bad file descriptor).  Ignore error? no Error writing block 3219161088 (Bad file descriptor).  Ignore error? no Error writing block 3221192704 (Bad file descriptor).  Ignore error? no  Why it doesn't show what causes the problem? ===  Update === I tried with setup /etc/e2fsck.conf to let the e2fsck store some files in another directory. [/dst0] # cat /etc/e2fsck.conf [scratch_files]         directory = "/dst/fsck_dir"  [options]         log_dir = /dst/e2fscklog/         log_filename = e2fsck-%N.%h.INFO.%D-%T [/dst0] # df /dst/ Filesystem                Size      Used Available Use% Mounted on /dev/mapper/cachedev2     5.0T    132.5M      5.0T   0% /dst [/dst0] # ls /dst/fsck_dir/ e0888329-80d9-46dc-81cb-8472e34e2fdb-icount-8g98jg ...  It stores some files there, but still doesn't work.


Is there any formula to find out the summation of the series.   $$\sum_{i=1}^{n} \lfloor \frac{n}{i} \rfloor$$ Can someone help me with this.


I need a specific command line tool and I have made a C program in my Linux shell. I have compiled the program with an ARM cross-compiler. I have then moved the program into the Android file system and tried to run it.  The output is permission denied.  What do I have to do, in order to run my own compiled programs in Android file system?


summary of lm to compare models instead of ANOVA

What does it mean to use anova to compare models? For example, if I have two models  $$    \text{model}_1 \colon y = b_0 + b_1 x_1 + b_2 x_2  $$ and  $$    \text{model}_2 : y = b_0 + b_1 x_1 + b_2 x_2 + b_3 x_3 $$ and I use anova(model1, model2) in R, then is it the same as testing the null hypothesis $b_3 = 0$? If not, then what hypothesis exactly is getting tested here? And if yes, then why not simply use the summary of the lm function to test whether $b_3 = 0$, i.e. what is the whole point of using anova then?


Changing the keyboard layout turns off the numlock

I have installed Ubuntu 14.04 with English and Greek keyboard layout and I have the following problem.  When I toggle  keyboard layouts (En->Gr or Gr->En) the num led turns off but I can print digits with the numeric keypad. So the numlock functions well but the led is off. This happens most of the times when I toggle keyboard layouts.  Is there a way to separate num led status from keyboard toggling?  At this point, I would like to clarify that this happens only at Ubuntu unity version. When I tried xubuntu, kubuntu and other derivatives (linuxmint) the numlock led stays on when I toggle keyboard layouts.


How should I use VPN on a Mac to prevent compromise before the VPN starts?

As most experienced users will have heard, using a Mac in a public untrusted Wi-Fi can be potentially harmful. A tool like Firesheep has made it very easy to intercept unencrypted communication.  Using a full tunnel VPN to encrypt all communication is as often mentioned as a magical solution to eavesdropping, but of course it's not that easy:   Depending on the protocol and configuration of the VPN connection, the connection may drop easier. (e.g. TLS vs UDP) The VPN connection is not established instantly when you connect to a public network.   I think that the last two points matter a lot because whenever your network settings change the various applications immediately talk to their servers - I assume it's configd that informs them, right?     i.e. Before the VPN tunnel is established, most (running) processes that require   internet will communicate.   I see two components to being a good VPN user:   Making sure things don't get sent in the clear before it's established. .   How can I use VPN on a Mac in a public network to restrict unencrypted traffic before the VPN starts up?


Is there a way to keep track of the URL used to edit responses in Google Form?

I would like to use Google Forms to keep track of the progress of an application process (similar to what  does for immigration applications). One key functionality that I need is to be able to allow respondent to edit their responses as their application progresses, without being able to edit other responses, as this might be prone to vandalism (which is what have happened several time in our current solution using editgrid).  Today I found out that Google Forms allows to edit responses, but it seems this is only possible if you save the link that is shown (only once) after submitting your response. If the user leave that page without saving, I can't find a way to allow him/her to later modify their responses (as there is no email confirmations or whatsoever the user can later refer to).  I wonder, is there a way for the form owner to find this URL and send it to the users upon request? (Via scripting maybe?)


How to show how many times bash has been invoked?

A lot of times I will used wrapper scripts for projects to maintain environment variables during development;   shell.sh:  #!/bin/bash export PATH=$PWD/bin:$PATH export USERNAME=foo export PASSWORD=bar export DB_SERVER=http://localhost:6001 bash   This sets the environment for the project then starts an interactive bash session. This example is a shell script but actually I do this most often from within a similarly configured , if it matters.  The problem is that when I am inside these sessions, its often difficult to distinguish it visually from my session outside of the project environment. Its also possible to accidentally run such script multiple times and thus be running inside multiple levels of nested bash sessions.  I was hoping that there might be a way to display in my command prompt some value that could indicate how many times bash has been invoked so I can tell more easily if I am in a bash sub-session or if I am in the parent bash  session.   I saw some bash variables listed here:   in particular there is BASH_SUBSHELL which counts the subshell levels, but since this is not actually a subshell it does not work for this purpose:  $ (echo $BASH_SUBSHELL) 1 $ (echo $BASH_SUBSHELL; bash) 1 $ echo $BASH_SUBSHELL 0   Is there some other way to maintain a counter of this? If so, I could easily stick something in my bash prompt to show this more clearly in my terminal.    here is a comparison of different methods based on the comments, using the script above:  # inside top-level parent session $ echo $$ $BASHPID $BASH_SUBSHELL $SHLVL 32336 32336 0 1  # invoke the script to enter a new bash session $ ./test.sh  $ echo $$ $BASHPID $BASH_SUBSHELL $SHLVL 39541 39541 0 3   $BASH_SUBSHELL does not reflect the new shell level


How to give animation to a height change on a UITableViewCell when selected?

I'm using a UITableView.  There is list of data displayed in the table. I want to animate the cell when a user clicks on it.   How do I do it?


Serialize Class containing Dictionary member

Expanding upon my , I've decided to (de)serialize my config file class which worked great.   I now want to store an associative array of drive letters to map (key is the drive letter, value is the network path) and have tried using Dictionary, HybridDictionary, and Hashtable for this but I always get the following error when calling ConfigFile.Load() or ConfigFile.Save():     There was an error reflecting type   'App.ConfigFile'. [snip]   System.NotSupportedException: Cannot   serialize member   App.Configfile.mappedDrives [snip]   From what I've read Dictionaries and HashTables can be serialized, so what am I doing wrong?  [XmlRoot(ElementName="Config")] public class ConfigFile {     public String guiPath { get; set; }     public string configPath { get; set; }     public Dictionary<string, string> mappedDrives = new Dictionary<string, string>();      public Boolean Save(String filename)     {         using(var filestream = File.Open(filename, FileMode.OpenOrCreate,FileAccess.ReadWrite))         {             try             {                 var serializer = new XmlSerializer(typeof(ConfigFile));                 serializer.Serialize(filestream, this);                 return true;             } catch(Exception e) {                 MessageBox.Show(e.Message);                 return false;             }         }     }      public void addDrive(string drvLetter, string path)     {         this.mappedDrives.Add(drvLetter, path);     }      public static ConfigFile Load(string filename)     {         using (var filestream = File.Open(filename, FileMode.Open, FileAccess.Read))         {             try             {                 var serializer = new XmlSerializer(typeof(ConfigFile));                 return (ConfigFile)serializer.Deserialize(filestream);             }             catch (Exception ex)             {                 MessageBox.Show(ex.Message + ex.ToString());                 return new ConfigFile();             }         }     } }


Does the limit $\lim _{x\to 0} \frac 1x \int_0^x \left|\cos \frac 1t \right| dt$ exists?

Does the limit $\lim _{x\to 0} \frac 1x \int_0^x \left|\cos \frac 1t \right| dt$ exists ? If it does then what is the value ?   I don't think even L'Hospital's rule can be applied . Please help . Thanks in advance


Flash plugin up to date but Firefox keeps telling me that I have the old version

According to my browser (Firefox 34.0) the installed version of the Shockwave Flash plugin appears to be 11.2.202.424. This version is considered to be insecure:       The plugin is therefore blocked:      In the attempt to update the plugin to the version currently considered safe (11.2.202.425), I found out that the recommended version apparantly is already installed:  $ yum info flash-plugin Loaded plugins: langpacks, refresh-packagekit Installed Packages Name        : flash-plugin Arch        : x86_64 Version     : 11.2.202.425 Release     : release Size        : 19 M Repo        : installed From repo   : adobe-linux-x86_64 Summary     : Adobe Flash Player 11.2 URL         : http://www.adobe.com/downloads/ License     : Commercial Description : Adobe Flash Plugin 11.2.202.425             : Fully Supported: Mozilla SeaMonkey 1.0+, Firefox 1.5+, Mozilla             : 1.7.13+   My operating system:  $ cat /etc/redhat-release  Fedora release 20 (Heisenbug)   My questions:   Do I have multiple versions of this plugin installed?  How can I fix my installation?


Computing $\int_0^\infty\frac1{(x+1)(x+2)\cdots(x+n)}\mathrm dx $

I would like to compute: $$\int_0^\infty\frac1{(x+1)(x+2)\cdots(x+n)}\mathrm dx $$ $$ n\geq 2$$ So my question is how can I find the partial fraction expansion of $$\frac1{(x+1)(x+2)\cdots(x+n)}\ ?$$


I am currently writing a Bash script, and I found the exact answer to my programming question here:    Note that the question I used is currently closed as off-topic.  I have seen that the debate is that Bash questions belong on SuperUser or Unix/Linux, unless you paste the exact same commands into a .sh file and run it.  (See: Tim Post's answer on  for example) This seems pretty illogical to me for the following reasons:   There is no difference between bash scripting and bash typing other than the time period in which you type the commands (ahead-of-time or real-time as you need them). The question is exactly the same whether you're typing it out in real time or typing it into a Bash script.  In fact, many Bash programmers will try individual commands live on the command line to make sure they work properly before pasting them into the script.  Literally the exact same question could be made "on-topic" on SO by just pre-pending this sentence to the question: "I'm currently writing a Bash script and...".  In other words, it isn't the question that we care about it, it is the context, when the context doesn't change either the question or the answer?  What if future programmers writing a Bash script have the same question but never see it because they don't want to search 4 different sites for where some random mod thinks it is most on-topic (there can be arguments made that Bash questions belong on SO, SuperUser, Unix&Linux, and AskUbuntu.  What if I'm typing my Bash commands in real-time (so not into a script) on an Ubuntu machine...)?  Major dilemma... Bash is a very commonly used programming tool.  For many of the programmers I work with, Bash/Vim or Bash/Emacs is their IDE.  SO is a site for programmers. People tend to post questions/seek answers on whichever site they are most familiar with.  So, if someone isn't a programmer, but writes Bash scripts as part of their system administrator job, their questions would naturally be more related to SuperUser or Unix/Linux.  On the other hand, people writing Bash scripts for programming purposes tend to look here on SO.  This is a natural sorting algorithm that helps address the problem of many legitimate overlapping jurisdictions.   Can we not be so quick to throw away excellent questions that benefit a lot of people (as evidenced by the high vote counts and comments expressing frustration and outrage at their closure), and instead focus our efforts on generating awesome content and bouncing the questions that clearly need to go (such as the "Do you haz teh codez")?


loop throgh all the data to search particular string

I want to loop throgh all the column of all the tables available in my database to check which column containts string "Kroki Homes".   I have approx. 56 tables in my database. So it is hard to check in all the columns of these 56 tables. is there any easy way to achieve this in sql server?


Replace the picture of the half-naked man on the 404 page of Stackapps

Currently, the  looks like this: .  To me, it seems a little.. strange to see a half-naked guy with a gun on what is supposed to be "professional" site, and it's not really something I'd like to come across with my boss (or my parents..) looking over my shoulder. The :    Can we get rid of this guy and replace him with something else ?


How install Truecrypt on Ubuntu 14.04 LTS 32 bit

1.I have downloaded the linux version from  2. Right click on the file (truecrypt-7.1a-linux-x86.tar.gz), ->Open with Archive Manager. 3. Double click on the extracted file (truecrypt-7.1a-setup-x86), nothing happens.   Someone can help me installing truecrypt on ubuntu 14.04 LTS 32 bit?   SOLUTION!! The extracted file works if in the terminal is typed: ./truecrypt-7.1a-setup-x86


Why JUnit Testing exception always fail?

I'm using JUnit 4.11.  Eclipse Version: Luna Service Release 2 (4.4.2)  I need do the exception test. The code maybe like this:  // src code public void myMethod throws MyException {     ...     throw new MyException(msg);     ... }  // test code @Test (expected = MyException.class) public void testMyMethod() {     try {         myMethod();         fail();     } catch (MyException e) {         assertEquals(expectedStr, e.getMessage());     } }   But the test always fail, where am i wrong?


Uninstalling Ubuntu from Windows Dual Boot if I don't have Windows recovery CD

I installed Ubuntu (I had already had Windows 8.1) from USB (I still have live Ubuntu on it). Is there a way I can uninstall Ubuntu in a way that my Windows will remain bootable? All the tutorials I have seen say that uninstalling ubuntu will delete GRUB also so I will need a Windows recovery CD to boot into it, but I don't have one. Is there a solution?


Is there a prove that every unprovable proof, provable unprovable?

I learned today that there are some true statements that are unprovable (gödel incompleteness theorem), which is a liddle sad. But not too sad if we could at least proof that:  For every unprovable true statement, exists a proof that it is unprovable.  Because that means we can stop looking. So I wonder does something like that exists? And if not, is there any other way to deal with it?


How can I prove that if $a < b$ then $a^2$ < $b^2$ for $a,b \in \Bbb N$

How can I prove that: If $a < b$ then $a^2 < b^2$ for $a,b \in \Bbb N$, using the ring properties on the integers and the following property: If $m < n$ then exist $d \in \Bbb N$ such that $n = m + d$.


Is it possible to have more items in the Google autocomplete suggestions as you type?


Music that sounds like this [acoustic guitars and female vocals]?

Surfing the internet I've casually discovered this band. Any suggestions of similar artists (with this kind of vocals etc)? Thank you !


I need to make an analysis of this sentence:     ....and we can use them to help you to buy the best product.   or     ....and we can use them to help you buy the best product.   We - subject, can use - verbs, them - indirect subject, to help you buy the best product - direct subject.   Am I right?  I'm not sure if to use to buy or just buy and if it is the part of subject or another sentence.


I was reading about the discrete fourier transform from the CLR algorithms book and I came upon an exercise whose hint confuses me. The exercise reads as follows:  The chirp transform of a vector $a=(a_0,a_1,\ldots,a_n)$ is a vector $y=(y_0,y_1,\ldots,y_n)$, where $y_k=\sum_{j=0}^{n-1}a_j (z^{k})^j$ and $z$ is any complex number. The DFT is therefore a special case of the chirp transform, obtained by taking $z=\omega_n$. Prove that the chirp transform can be evaluated in time $O(n\lg n)$ for any complex number $z$. (Hint: use the equation $$y_k = z^{k^2/2}\sum_{j=0}^{n-1}(a_j z^{j^2/2})(z^{-(k-j)^2/2})$$ to view the chirp transform as a convolution.  My question is about what is a convolution. I am familiar with taking two vectors $a=(a_0,a_1,\ldots,a_n)$ and $b=(b_0,b_1,\ldots,b_n)$ and forming the convolution $c=(c_0,c_1,\ldots,c_n)$ where $c_k = \sum_{j=0}^k a_j b_{k-j}$. Here the index of $j$ runs from $0$ to $k$ unlike in the hint given above where the index runs from $0$ to $n-1$. In what sense is the hint above a convolution?


Something confusing about "su -" and "su"

I am studying the Linux command line. But the book which I'm reading says that su -l(-) username is starting a new shell session and loading the environment of the user I want to change to, but su doesn't.  When I was root user, I entered the command su testuser, so I am testuser. But after that, I entered echo "$USER", and it says testuser. It means that it loads testuser's environment, doesn't it? Is there something wrong?  And what does "starts a new shell session" mean exactly? Does shell have a mechanism like login, logout?


What is the difference between installing a software from deb file, and installing it from the software market as snap package?

Recently, I was planning to install Opera browser on my system, so I visited the official website, and downloaded the .deb file, and installed it. However, to my concern, for every update, I will be needing to download the .deb file again and again, since I have not updated the repository in Software & Updates section. At this point I thought, Chrome itself added the repository, so maybe Opera must have done it too, but it didn't. Same issue with the Discord application, i.e., I have to visit the official website and download the .deb file for timely-updates. However, I found that the Ubuntu software market ships both, Opera and Discord, but as snap packages. So I thought to give it a try, since it would relief me of downloading the .deb files from the official website, and I can update them with just a command. Here, I was recommended by some friends of mine that I shouldn't opt for the snap, because of some errors or something, which I am currently completely unaware of, and instead go for the official .deb files. Can someone explain me the differences? EDIT: Since past few months, Chromium has too moved itself to the snap packages. Does this have any difference from past when it was in apt-get package system?


About "Yet Another Simple Array Question"

So there's  that seems to be a bot. It keeps getting closed and deleted, but the OP reposts it pretty quickly.  seems to be a bot with some built-in search words, which it looks for in comments. If none of them are found, it defaults to "troll". It then inserts the found word in a template response.   How should we go about dealing with this user and such posting behavior? One diagnostic red flag that comes to mind is to pay special attention to posts that tag many programming languages as this one did. If too many programming languages are tagged in a question, it may be indicative of the OP not knowing what they are asking.


When to use "love to do something" and "love doing something"?

OK, I searched similar questions on  and it seems that people say that      to love to do something=prefer to do something      to love doing something=enjoy doing something   OK, see conversation 1:     Tom: I'm going to wear my casual t-shirt to the party      Jack: On the contrary, I love to dress up   Now conversation 2:     Tom: I like my casual t-shirt very much      Jack: On the contrary, I love dressing up   So, am I understanding it correctly?  If not, when do you use “to love to do something” and “to love doing something*”?


How to remove QGIS polygon boundaries when using graduated style?

When I use a graduated style and I set the outline of the polygons to transparent I can still see the border. If I set the width to "Hairline" and/or the style to "No pen" I can still see them.   I have found multiple similar questions with very manual intensive solutions that are simply not practical in my case:         This seems to be an old feature request, am I missing something?   I'm using QGIS 2.18.


Prove that $\lim \inf \dfrac{x_{n+1}}{x_n}\leq \lim \inf x_n^{1\over n} \leq \lim \sup x_n^{1\over n} \leq \lim \sup \dfrac{x_{n+1}}{x_n}. $

If $(x_n)$ is any sequence of positive real numbers, then $$\lim \inf \dfrac{x_{n+1}}{x_n}\leq \lim \inf x_n^{1\over n} \leq \lim \sup x_n^{1\over n} \leq \lim \sup \dfrac{x_{n+1}}{x_n}. $$  I don't understand how am I suppose to use the hint nor what to do afterwards.  Hint: If $\lim \sup \dfrac{x_{n+1}}{x_n}-\infty$, right hand inequality is obvious. So suppose $\lim \sup \dfrac{x_{n+1}}{x_n}=M$. Then $\dfrac{x_{n+1}}{x_n}< M+\epsilon$ $\forall n\geq N$, i.e., $x_{n+k}\leq (M+\epsilon)^kx_n$ for all $k\geq 0$.


Can an access point use multiple extension antennas to cover separate rooms?

I'm trying to come up with a WiFi solution for an industrial building, 100 ft long by 50 ft wide, with 3 main areas. See image below  Concrete walls separate the rooms, and the one long room is a semi-corrosive wash-down area. Staff use mobile devices that require a strong, uninterrupted WiFi connection, and they are often moving throughout the building while using the devices. I don't want repeaters or extenders or any other mechanism that would result in multiple SSID or channel connections for a tablet to contend with (dropouts for reconnection, or failure to switch to a stronger signal, etc). I just want to use one access point, but just with better coverage. Instead of trying to buy the most powerful access point on the planet, using brute force to blast through those walls, I was thinking of using extension antennas. So I'd take a consumer-grade access point with 3 standard antennas, remove 2 of them and replace with coax extension cable (green in the image) and keep 1 original antenna (blue). Especially for the wash-down room, I was envisioning drilling a hole in the concrete wall and slipping the antenna cable through, so in the end, only an antenna would be exposed to the corrosive environment, and still provide good signal strength to staff in that room. My ultimate question is: will this work? Is there something I'm not aware of, like perhaps that access points with multiple antennas aren't designed to work with their antennas separated by 10-20 ft? Thanks


Is there a way to just compile contents of a .bib file?

Probably a complete newbie question. When writing with LaTeX I have no problem with my bibliography but of course it only compiles entries that I have cited in my document. I would have all my readings in the .bib file even if they have not being cited yet.  I am wondering if there is a way to produce with LaTeX just the contents of the .bib file?  PS. Not sure what extra info I may need to give. Don't think I can give a MWE as don't know how to recreate issue. I use TeXstudio on Ubuntu 14.04 and use the following as my bibliography settings.  \usepackage[notes, backend=biber, bookpages=false]{biblatex-chicago}   If any other info is needed please leave a comment.


Alternate loop output every three posts (within the same original loop)

I have a (relatively) tricky situation where my code requires changing the loop output every three posts, and within those three posts there are divs around two of the posts.  The code below displays 6 posts and I would want to loop though a total of 24 posts, repeating this four times.  Can anyone help? Thanks!  FIRST THREE

     <?php the_title(); ?>     <?php the_content(); ?>

     <?php the_title(); ?>     <?php the_content(); ?>

     <?php the_title(); ?>     <?php the_content(); ?>

   SECOND THREE

     <?php the_title(); ?>     <?php the_content(); ?>

     <?php the_title(); ?>     <?php the_content(); ?>

     <?php the_title(); ?>     <?php the_content(); ?>


Euclid's lemma: Let $A$ be a principal ring with $x$ and $y$ belonging to $A$, and $p$ an irreducible element of $A$. If $p$ divides the product $xy$, then $p$ divides $x$ or $p$ divides $y$. Definition of irreducible element: A non zero element p is said to be irreducible in A (where A is an integral domain) if p is non invertible in A and all divisors of p in A are trivial. In other words a nonzero element p of A is irreducible iff p is non invertible and the only divisors of p in A are the invertible elements of A and the elements associated to p. Question: Should $A$ be an integral domain too? And I need a justification why please. I'm not quite grasping why an integral domain can help with such lemmas.


I attempted to paste a link to a Gist in chat:  As you can see, neither URL is working, even though they both should:


Large file CSV transpose takes forever in C#

I'm trying to transpose a large data file that may have many rows and columns, for subsequent analysis in Excel.  Currently rows might contain either 2 or 125,000 points, but I'm trying to be generic.  (I need to transpose because Excel can't handle that many columns, but is fine if the large sets span many rows.)    Initially, I implemented this is Python, using the built-in zip function.  I process the source file to separate long rows from short, then transpose the long rows with zip:  tempdata = zip(*csv.reader(open(tempdatafile,'r'))) csv.writer(open(outfile, 'a', newline='')).writerows(tempdata) os.remove(tempdatafile)   This works great and takes a few seconds for a 15MB csv file, but since the program that generated the data in the first place is in C#, I thought it would be best to do it all in one program.  My initial approach in C# is a little different, since from what I've read, the zip function might not work quite the same.  Here's my approach:  public partial class Form1 : Form {     StreamReader source;     int Rows = 0;     int Columns = 0;     string filePath = "input.csv";     string outpath = "output.csv";      List<string[]> test_csv = new List<string[]>();      public Form1()     {         InitializeComponent();     }      private void button_Load_Click(object sender, EventArgs e)     {         source = new StreamReader(filePath);          while(!source.EndOfStream)         {             string[] Line = source.ReadLine().Split(',');             test_csv.Add(Line);             if (test_csv[Rows].Length > Columns) Columns = test_csv[Rows].Length;             Rows++;         }     }      private void button_Write_Click(object sender, EventArgs e)     {         StreamWriter outfile = new StreamWriter(outpath);          for (int i = 0; i < Columns; i++)         {             string line = "";             for (int j = 0; j < Rows; j++)             {                 try                 {                     if (j != 0) line += ",";                     line += test_csv[j][i];                 }                 catch { }             }             outfile.WriteLine(line);         }         outfile.Close();         MessageBox.Show("Outfile written");     } }   I used the List because the rows might be of variable length, and I have the load function set to give me total number of columns and rows so I can know how big the outfile has to be.    I used a try/catch when writing to deal with variable length rows.  If the indices are out of range for the row, this catches the exception and just skips it (the next loop writes a comma before an exception occurs).    Loading takes very little time, but actually saving the outfile is an insanely long process. After 2 hours, I was only 1/3 of the way through the file.  When I stopped the program and looked at the outfile, everything is done correctly, though.  What might be causing this program to take so long?  Is it all the exception handling?  I could implement a second List that stores row lengths for each row so I can avoid exceptions.  Would that fix this issue?


When I first setup a Windows 2000 and then 2003 Server in our office using per-server licensing, we got the default 5-user CAL pack.  I noticed that after 3 users logged in, the Server would kick out a notice that I had too many people has logged in.  That's when I noticed that the Server was counting users twice - once for their login, and once for their computer...  For example, if User X logs in from Computer Y, then both X and Y would show up as having used a license.  The only workaround I found was to disable the License Logging Service.    What was I doing wrong?


I have a div tag and there are two <a> tag inside. I want to place one at the right side and one at the left side.   For example  ABC                      PQR   How can I do this in mvc html?


after using dd command my 32 usb goes read only and 29 gb also cannot format it or open

This issue happened for my 32 kingstone flash drive. I tried to make bootable USB by using dd command:  sudo dd if=file.iso of=/dev/sdb   After that I can't do anything with my USB stick.    When trying new partition table with GParted:


Infinite positive integer solutions of the equation: $x^2+x+1=(y^2+y+1)(n^2+n+1)$

Could anybody help me some ideas on the below problem:  Let $n$ be a positive integer. Prove that there are infinite pairs of positive integer $(x\, y)$ such that $$x^2+x+1=(y^2+y+1)(n^2+n+1).$$ Thanks in advance.


If $z$ is a root of the equation $$11z^{10}+10iz^9+10iz-11=0$$ Find value of $|z|$  I assumed the root as $z=re^{it}$ We get:  $$11r^{10}\cos(10t)-10r^9\sin(9t)-10r\sin (t)-11=0 \tag{1}$$ and $$11r^9\sin(10t)+10r^8\cos(9t)+10\cos(t)=0 \tag{2}$$  Any way from here?


Why should 10k rep users view self-deleted answers?

When you reach 10k rep, you get to see other users deleted answers. I just think it's dishonest as a system to call a feature "delete," but show that to totally random strangers in the backroom. Due to the nature of the rep, given enough time, all of the regular users would eventually reach 10k rep, no matter how insensitive or jerk they are.  There's usually a good reason why people hit "delete" to their own work. They regret writing something totally bullshit or maybe they spoke too much about their own work that they shouldn't have.  First of all, is there really a practical reason why 10k rep user should view self-deleted answers? Does the benefit really outweigh the creepiness? (Imagine if total strangers could see your deleted messages in Gmail?)  What suggestions could we make to change it? Borrowing from the email metaphor, I think it makes sense for users to "empty trash" so the items gets seriously deleted. Imho, however the deletion is implemented is not important. It could be a soft delete, SQL Delete, or physical destruction of metal plates as long as the user or the 10k rep user no longer sees the deleted item.  What are the workarounds, if we can't change the behavior?  The least we could do is stop calling it "delete" if it's actually not a "delete." Call it "hide from public" or "actually not delete" or something.  Related user voice:        Edit: Recovery of a deleted-but-good answer is a practical benefit for the community, but I see that as creepy dangerous feature. IMHO, each user should have the rights to take back his or her perfectly good answer, and that the protecting privacy outweighs the benefit or creepiness.   I understand that it's all possible to find things out from Google cache or wherever, but why promote this as default behavior? As 10k rep user, I see others deleted answers by default. @codinghorror wrote:     But like any version control system, deletions are illusory.   Anything and everything that's implemented by human is more or less illusory including phone system and the medical records. Should the government start tapping into phone lines and scanning for words? Remember, this is a question of should had we given the opportunity to design a system.


I have €77,000 in my bank account. My mortgage has €75,000 left on it (without interest) and a term of 14 years remaining. The current interest rate is 4%, but of course this can change.  Should I pay off this mortgage? Or would there be much smarter things to do with the money, i.e. investing or buying a second home?  I want to actually get some return on the money, but paying interest on money I don't need to borrow anymore seems unnecessary to me.


Not able to play youtube videos - Failed to load "libpepflashplayer.so"

I am getting the following errors when I play a YouTube video:  Failed to load "libpepflashplayer.so" Freswrapper is a translation layer which needs PPAPI plugin backend. Ensure your system have "libpepflashplayer.so" available. Paths tried: /opt/google/chrome/PepperFlash/libpepflashplayer.so /opt/google/chrome-beta/PepperFlash/libpepflashplayer.so /opt/google/chrome-unstable/PepperFlash/libpepflashplayer.so /usr/lib/adobe-flashplugin/libpepflashplayer.so /usr/lib/pepperflashplugin-nonfree/libpepflashplayer.so /usr/lib/PepperFlash/libpepflashplayer.so /usr/lib64/PepperFlash/libpepflashplayer.so /usr/lib/chromium-browser/PepperFlash/libpepflashplayer.so /usr/lib64/chromium-browser/PepperFlash/libpepflashplayer.so /usr/lib/chromium/PepperFlash/libpepflashplayer.so /usr/lib64/chromium/PepperFlash/libpepflashplayer.so /opt/chromium/PepperFlash/libpepflashplayer.so /usr/lib/pepflashplugin-installer/libpepflashplayer.so   I am using Ubuntu 14.04 LTS 32-bit.  How do I correct the above errors?


Citation of the British National Corpus (BNC)

I am new here but I have been reading along for couple of months now. My biggest problem at the moment is to cite internet sources especially internet webpages.   In my current paper I would like to quote the "British National Corpus". But because of my settings I always get "Corpus, B. N. (2001)" in my bibliography. Is there a way to change that only for that particular case? I would like to get "British National Corpus (2001): Url: . Accessed: 05.04.2015". Unfortunately, "lastchecked" does not appear in my bibliography.   Here my bib-file:      @article{BNC,     Author = {British National Corpus},     Date-Added = {2015-05-04 14:58:49 +0000},     Date-Modified = {2015-05-04 15:10:16 +0000},     Lastchecked = {04.05.2015},     Url = {http://www.natcorp.ox.ac.uk},     Year = {2001},     Bdsk-Url-1 = {http://www.natcorp.ox.ac.uk}}   Here my settings:  \usepackage[style=apa,         apabackref=true,         backend=biber,         hyperref=true,         maxnames=1,         maxcitenames=6,         maxbibnames=99,         sorting=debug,         natbib=true,         language=ngerman,         doi=true,         url=true         ]{biblatex}    \DeclareLanguageMapping{ngerman}{ngerman-apa}  \DefineBibliographyStrings{ngerman}{andothers={et\ al\adddot}}  \addbibresource{lit1.bib}   \NewBibliographyString{retrieved}  \DefineBibliographyStrings{ngerman}{retrieved={Letzter Zugriff am}}  \usepackage{url}  \setcounter{biburlnumpenalty}{100}  \setcounter{biburlucpenalty}{100}  \setcounter{biburllcpenalty}{100}    I have changed my bib-file and added the {{-brackets to the author.  article{BNC, Author = {{{British National Corpus}}}, Date-Added = {2015-05-04 14:58:49 +0000}, Date-Modified = {2015-05-04 16:37:05 +0000}, Url = {natcorp.ox.ac.uk}, Urldate = {2015-05-04}, Year = {2001}, Bdsk-Url-1 = {natcorp.ox.ac.uk}} –   Unfortunately, I got this:  Entity: line 1944: parser error : Extra content at the end of the document <bcf:field>title<   And then I cannot compile the file.   I have just seen that there were three {{{ before that is because my BibDesk add one { to each entry automatically. I have fixed that so I only got two {{ now. But I still got the same error.  When I compile the file it says:   bbl:95: Paragraph ended before \name was complete. <to be read again> \par l.95?   However, line 95 is empty in my file.


How could strike price for new shares be higher than the market price

A company has made an application for new Ordinary Shares. The new Ordinary Shares will rank pari passu with the existing Ordinary Shares. Also the company issues Ordinary Shares in respect of the satisfaction of the initial tranche of deferred consideration for an acquisition to vendors at a strike price of 12.5 per Ordinary Share.   My understanding is that the above mentioned sellers bought the new issued shares at the price of 12.5. However the market price at the time was 8.37. Could you please explain what happened here as it is not likely that one will buy shares at a much higher price than one can buy on market.


Distorted Cabin & Oily Sheen: What is going on in this paragraph?

I have been reading a book, and I have a question about the following excerpt:  "We're here," The Tortoise in the Lake said, cutting across Dong Huong's gloomy thoughts. "I can see nothing." There came a low rumble, which distorted the cabin around her, and cast an oily sheen on the walls. "Watch." Outside, everything was dark. There was only the shadow of The Two Sisters in Exile, the dead ship that they'd been pulling since Longevity Station. – The Two Sisters in Exile, a fantasy novel by Aliette de Bodard  Are these changes happening in the “real” life of the novel?, or are they an illusion that exists merely in the mind of the narrator? If they are only an illusion, why does the author not say so? Has the author omitted something, or are these changes are really happening as the author says?


So, I'm setting up an experiment network for me and the other geeks at my school to use for website testing and server practice. I'm the sys and net admin (but really it's just for playing Quake).  Messing with it at home, I find it tedious to have to type a whole IP address to SSH into a host (in this case, a Raspberry Pi). The current hostname I have for it is hyperfang. Instead of pi@longip, how can I make it so that I can make this pi@hyperfang? On my router, there are settings for a static DNS. Would I have to make a DNS server on my network for this to work?  My network is wireless, and laptops will be connected to the network. I have no root access to the laptops, but I have a Raspberry Pi for users to login through ssh. What I want is when anybody joins the network and wants to login to my Pi, they can use pi@hyperfang. I am not looking for a hostfile configuration solution, but something else like local domains.  I have avahi running on my Pi, but it isn't working.  NOTE: this network is NOT connected to the internet, it's a pure local network.


I have setup adb server and client within the Android device and can issue adb commands via terminal emulator.  But I need to have the fastboot in the same way. My requirement is to temporarily boot into TWRP without a PC or another Android device:  # fastboot boot /path/to/twrp.img   I think the Android has fastboot-over-usb.


Where does Q technology come from and where did it originate?

In the Star trek Universe we discover that the Q's powers are optional and not a part of the actual race (they can be taken away from a particular Q and can be taken away as a whole during a huge conflict).   How does this technology work, besides the snapping of the fingers, and where does it come from? Did the Q invent it originally?


When I make a change in my ~/.bash_profile file and I add such a variable as:  export PATH="$PATH:$HOME/.composer/vendor/bin"  And after save and close, I need to reflect these changes in my $PATH variable. To do that, I'm doing   source .bash_profile.  When I echo my $PATH variable, the above added path is shown, but when I logout and login again, these changes aren't reflected..  Isn't it so that on each login, the .bash_profile gets reread?


How can a bread have an expiration date of one year into the future?? The bread in questions is Deutsche Küche rye bread (from Aldi).  Yes, it is a dense bread, but it is not dry like a cracker, so there seems to be enough moisture for mold to grow.  There are no preservatives.  Edit (pictures added):


I have bibliographical references ordered in a spreadsheet and I want to create a .bib file to use then in latex documents. I have found the way to transforma a .bib file into a csv, but not the inverse.


Trying to show that $\ln(x) = \lim_{n\to\infty} n(x^{1/n} -1)$

How do I show that $\ln(x) = \lim_{n\to\infty} n (x^{1/n} - 1)$?  I ran into this identity on . I haven't been able to find any proof online and my efforts to get from $\ln(x) := \int_1^x \frac{\mathrm dt}t$ to that limit have been a failure.


"Who are they angry at - you or I" or "you or me"

Donald Trump at a charity dinner in NY last week said to Hillary Clinton:     Who are they angry at? You or I.   German English schoolbooks teach "You and me" is right. Who is right? Does Trump use a more modern and more common form?


c++ windows: Is there a way to convert from _UNICODE_STRING to std::string?

Beginner c++ developer, here. I'm writing a program Under Windows10 with Character set = Use Unicode Character Set in the properties tab.  I'm trying to use an API to returns a _UNICODE_STRING (winternl.h).  I need to convert it to a std::string, and after having spent a lot of time, don't find my way around. All I found here is this , which doesn't seems to help, since it targets a very specific context.  Of course I realize there are a lot of things I should learn before becoming comfortable with strings in C++ (I come from C#), and I have selected a few articles for further reading, but I was hoping I could use this day to move forward with the program I'm trying to write.  So, is there a way to perform the needed conversion? Sorry if the answer is obvious, thanks a million if you can help!


How to calculate the prediction interval for an OLS multiple regression?

What is the algebraic notation to calculate the prediction interval for multiple regression?  It sounds silly, but I am having trouble finding a clear algebraic notation of this.


Do I need a UK transit visa in addition to an Italian work permit to change terminals at LHR?

I am an Indian by nationality and have an Italian work permit (which corresponds to a residence permit). I am travelling back to India via London Heathrow Airport. I have a layover there for less than 24 hours, but I need to change terminals.  Do I need a UK transit visa? Will my residence permit from Italy help in getting a waiver for a UK transit visa?


InBuilt Web Cam not working in HP Laptop. As I open cheese it shows complete black screen. Ubuntu 20.04

My HP Pavilion laptop has Ubuntu 18 version and I once tried to disable InBuilt webcam just for security reasons. But now it wasn't working and I reinstalled newer version of Ubuntu 20. But even after installing newer version the camera is still not working. When I open cheese it shows this screen. I assumed I might have deleted the drivers as I was doing package installation and removel that time. Please suggest me what should I do to get this working.


Task Manager shows wrong process memory usage

I don't have much info on this one, other than it happened some time ago (can't pinpoint what could've caused it) and a reboot doesn't fix it.  Here are a couple of screenshots:      I'm completely clueless and so are the friends I asked. What could be the problem?


How to configure cron job to run every 2 days at 11PM

I have a centos server and I want to run a job on it at 11PM every 2 days, how do I do that?


How can I backup Compact Disc media to ISO files on Ubuntu?

Problem:  I created 3 DVD's filled with Windows system recovery disks in case I ever have a hardware problem and need to re-install Windows in order to run diagnostic tests.  However, I don't want to worry about losing them, so I would like to make backups of the recovery disks as ISO images which I can store on an external hard drive.  A Google search revealed that I can do this using the dd (or "disk dump") unix command.  dd if=/dev/who-knows-where? of=/home/wdkrnls/x201-recovery-2011-09-30.iso   But the snag is that Ubuntu doesn't use the old convention of associating /dev/cdrom with the cd-rom drive.  Instead Nautilus automagically creates /media/CD_ROM which is a directory, and not the drive itself.  I tried to run dd anyways and got:     /bin/dd: reading '/media/CD_ROM/': is a directory   0+0 records in   0+0 records out   0 bytes (0 B) copied, 0.0158501 s, 0.0 kB/s   I tried running dmesg | tail and saw a reference to:     [215135.134164] sr 9:0:0:0: Attached scsi generic sg1 type 5   So I tried ls /dev/sg1, but there wasn't any file called that.  Only my partitions show up with sudo fdisk -l, leaving me stumped as to what to try next.  Solution:  I figured out I could solve my problem with brasero or k3b and so abandoned my exploration of Ubuntu's internals.  Nevertheless, I still wouldn't mind knowing how I would use dd to accomplish the same task.  How would I solve my problem with dd?


Unable to add multiple jars when specifying classpath *.jar in linux

I'm having some problems specifying multiple.jar files when i compile my project. I'm almost certain that:  sudo javac -classpath .:../lib/*.jar server/*.java models/*.java authentication/*.java database/*.java   would work. Just as with the .java files. But it doesn't.  I just now realised that i have to specify each .jar as following:  sudo javac -classpath .:../lib/gson-2.2.4.jar:../lib/mysql-connector-java-5.1.26-bin.jar server/*.java models/*.java authentication/*.java database/*.java   So, do I really have to add a new .jar to my run.sh shell code each time i need a new .jar?  To sum the question:  -classpath .:../lib/gson-2.2.4.jar:../lib/mysql-connector-java-5.1.26-bin.jar   works.  -classpath .:../lib/*.jar   Does not, why?


What would be the proper usage of "Qua" in a sentence?

I'm a native English speaker, but I'm trying to expand my vocabulary slightly. I looked this up online, and the definition for it baffled me. How exactly would I go about using this particular word?


I'm making a CMS and trying to convert post links to pretty ones like so:  Original Link:  http://localhost/index.php?id=13&category=Uncategorized&title=just-a-link   Converted Link:  http://localhost/13/Uncategorized/just-a-test   I'm using Apache2 on Linux Mint and my website is located in:  var/www/html   I loaded mod_rewrite using sudo a2enmod rewrite then restarted apache2.  my apache2 config file is /etc/apache2/apache2.conf inside it i have:  <Directory />     Options FollowSymLinks     AllowOverride None     Require all denied </Directory>  <Directory /usr/share>     AllowOverride All     Require all granted </Directory>  <Directory /var/www/html>     Options Indexes FollowSymLinks     AllowOverride All     Require all granted </Directory>  #<Directory /srv/> #   Options Indexes FollowSymLinks #   AllowOverride All #   Require all granted #</Directory>   and here is my .htaccess file located in var/www/html/.htaccess  RewriteEngine On RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /single.php?id=$1&category=$2&title=$3 [L]   I have also restarted apache2 several times, but it just doesn't work.  Here is the loaded modules from phpinfo, (you can see that mod_rewrite is loaded) (pls see two images below to understand what problem i'm having)  core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_status   If i directly take $_GET values from url without mod rewrite it works but with pretty urls I can't get $_GET values anymore.  not pretty:   pretty:


Equivalent of Firebug's "Copy XPath" in Internet Explorer?

I have an Internet Explorer only web application.  I'm exploring what we can do to automate the testing.   Selenium looks like a good tool, but to be able to activate links etc. I need to tell it where they are. The application wasn't built with this kind of testing in mind, so there generally aren't id attributes on the key elements.  No problem, I think, I can use XPath expressions. But finding the correct XPath for, say, a button, is a royal pain if done by inspecting the source of the page.  With Firefox / Firebug, I can select the element then use "Copy XPath" to get the expression.  I have the IE Developer Toolbar and it's frustratingly close. I can click to select the element of interest and display all sorts of information about it. but I can't see any convenient way of determining the XPath for it.  So is there any way of doing this with IE?


Python debugger: Stepping into a function that you have called interactively

Python is quite cool, but unfortunately, its debugger is not as good as perl -d.    One thing that I do very commonly when experimenting with code is to call a function from within the debugger, and step into that function, like so:  # NOTE THAT THIS PROGRAM EXITS IMMEDIATELY WITHOUT CALLING FOO() ~> cat -n /tmp/show_perl.pl 1  #!/usr/local/bin/perl 2 3  sub foo { 4      print "hi\n"; 5      print "bye\n"; 6  } 7 8  exit 0;  ~> perl -d /tmp/show_perl.pl  Loading DB routines from perl5db.pl version 1.28 Editor support available.  Enter h or `h h' for help, or `man perldebug' for more help.  main::(/tmp/show_perl.pl:8):    exit 0;  # MAGIC HAPPENS HERE -- I AM STEPPING INTO A FUNCTION THAT I AM CALLING INTERACTIVELY   DB<1> s foo()  main::((eval 6)[/usr/local/lib/perl5/5.8.6/perl5db.pl:628]:3): 3:      foo();     DB<<2>> s main::foo(/tmp/show_perl.pl:4):     print "hi\n";     DB<<2>> n hi main::foo(/tmp/show_perl.pl:5):     print "bye\n";     DB<<2>> n bye     DB<2> n Debugged program terminated.  Use q to quit or R to restart,   use O inhibit_exit to avoid stopping after program termination,   h q, h R or h O to get additional info.      DB<2> q   This is incredibly useful when trying to step through a function's handling of various different inputs to figure out why it fails.  However, it does not seem to work in either pdb or pydb (I'd show an equivalent python example to the one above but it results in a large exception stack dump).  So my question is twofold:   Am I missing something? Is there a python debugger that would indeed let me do this?   Obviously I could put the calls in the code myself, but I love working interactively, eg. not having to start from scratch when I want to try calling with a slightly different set of arguments.


I have been reading about multi-dimensional numbers, and found out that it's been proven that the Octonions are the composition algebra of the largest dimension. I was wondering why, despite having infinitely many different dimensions of numbers, the only composition algebras are of 1, 2, 4, and 8 dimensions. What's so special about 8?


Interpretation of the word "force" in Geas

The description for geas states:     You place a magical command on a creature that you can see within range, forcing it to carry out some service or refrain from some action or course of activity as you decide.   There is a difference of interpretation on this word within my group.  I take it as meaning the creature is literally forced to obey a simple command or refrain from a course of activity.  It cannot voluntarily decide that it will disobey said command.  A friend of mine believes that the target has the option to not follow the command and that the word "forced" is mostly in reference to the fact that if they are not able to carry out the command, they take damage.  He believes that the target has the free will do decide to not carry out the command.    He also used this thread as justification:     Now I think that is an interesting way to view it but there was only one answer and no further discussion, possibly because he was right or there was not much interest at that time.  It seems very odd to me that they used the term "forced" and not "coercively forced" in the spell description if the intent was that the target of the spell has the free will to simply disobey and eat the damage.  I think that if the intent was indeed that the target could voluntarily disobey the command, they would have worded the spell description very differently.  tldr;  If I geas someone and give a command, can they voluntarily decide of their own free will to disobey the command, or are they forced to do the command (and in the event that they are not able to, due to say being restrained somehow, they eat the damage)?     Thank you for your time and effort!


I noticed that scientists are one of the most hermetic societies around. Does anybody know how can some "nobody" safely publish an interesting idea, at least, interesting for that someone?  I think that there are plenty of people that have regular jobs and didn't make it through to the scientist/researcher career to be able to present a paper or the like.  Edit: Your question has been identified as a possible duplicate of another . I think it differs in that I'm not asking how to make a paper and what kind of ideas are suitable. I'm asking how to publish it after I wrote it hopefully accomplishing a paper's requirements.


Restricing domains for universal and existential quantifiers

I am currently using Rosen's "Discrete Mathematics and Its Applications" (7th ed.) for my discrete mathematics course. We recently talked about quantifiers, more specifically the universal and existential quantifier. What confuses me is when we started talking about restricting the domain (i.e. instead of all real numbers, only all real positive numbers), where does the conditional statement come from when restricting the domain of a universal quantifier and where does the conjunction come from when restricting the domain of a existential quantifier?  This link did help:   However, the part that confuses here is how are the domains restricted in the answer given in the link above?


I have a StreamReader object that I initialized with a stream, now I want to save this stream to disk (the stream may be a .gif or .jpg or .pdf).  Existing Code:  StreamReader sr = new StreamReader(myOtherObject.InputStream);    I need to save this to disk (I have the filename). In the future I may want to store this to SQL Server.   I have the encoding type also, which I will need if I store it to SQL Server, correct?


Why does vim use 99% of CPU when I insert below with a large line above?

When I try to insert the code below in vim using o in a Python file that contains a large dictionary on a single line, line 3 below, my terminal window hangs, and CPU usage spikes to 99%.   I have a Python test file that is similar to this:   1 from library import module 2  3 DICT = { <3000-6000 character dictionary on a single line> } 4 KEY = "examplekey" 5  6 def test_func_on_dict(): 7    expected_output = 42 8    output = module.call_function(DICT, KEY) 9    assert output == expected_output   As I type o on line 5 the CPU spikes to 99% and I can't interact with the file. If I delete the large single-line dictionary the speed of vim goes back to normal.   As one of the biggest benefits of Vim is its speed of editing, this has started to grate on me pretty fast. I saw "" about profiling vim but my problem is on insert and not on the load time. I am using .   My .vimrc looks like this:   call plug#begin('~/.vim/plugged') Plug 'junegunn/seoul256.vim' Plug 'junegunn/goyo.vim' Plug 'junegunn/limelight.vim' Plug 'beautify-web/js-beautify' Plug 'vimwiki/vimwiki' call plug#end()   99.8 is the CPU % in htop:    It has been suggested my question should be closed because it is similar to "". I don't think the suggest post answers my question because my long line, the large dictionary, is already present in the file. vim is not slow on paste. vim is slow on o insert below the long line. I think there is something to the issue being the time it takes to re-draw everything as noted in "" but I do not see an obvious solution to the problem as of yet.   Spreading the dictionary out over many lines fixes the issue. Notably, when in :set paste mode, there is no speed issue with the o insert command below the large dict on a single line. Also, whether in visual mode or paste mode, there is no issue when the cursor is above the large dict and o is pressed. However, I am also interested in why this happens, not just what the fix is.


Does $[x]\cdot [y]=[xy]$? Here $[.]$ is the GIF

I was solving limits and it said $$\lim_{x\to 0} \left[\frac{x^2}{\tan(x)\sin(x)}\right]=0$$  I tried thinking about it but since I am not really good at math I couldn't proceed.  I know that $\lim_{x\to 0} \left[\frac{\sin(x)}{x}\right] = 0$ and $\lim_{x\to 0} \left[\frac{\tan(x)}{x}\right] = 1$


Type dereferencing type-punned pointer will break strict-aliasing rule

I have a compiler warning ('type dereferencing type-punned pointer will break strict-aliasing rule') in this code:  volatile uint8_t Buff[READ_BUFF_SIZE];  #define   LD_DWORD(ptr)      (DWORD)(*(DWORD*)(BYTE*)(ptr))  ChunkID = LD_DWORD(&Buff[0]); <-- here is warning   I am on 32 bit Cortex M0.  Despite the warning, it is working fine. My question is, can the warning be solved?


I am trying to print a random number between 80 and 100. However when I print out this number I am getting numbers over 100?  Random num = new Random(); int percent = 80 + num.nextInt(100); System.out.println(percent);


How do you interpret an arithmetic mean without knowing the underlying distribution?

Looking at Google Analytics, I can't help but think that the summary stats which present averages have the potential to be very misleading (and probably are, in practice). For some of these summary stats, there doesn't appear to be an easy way to determine the distribution of the numbers underlying the data. For other stats, there's apparently no way to determine the underlying distribution. It's clear enough that the underlying distributions for some of these stats are likely to be non-Gaussian.  So I'd like to know - if you have "average" summary stats without knowing the distribution of the underlying numbers, how do you interpret or derive meaning from them?


Name of an accessory put on horses that helps them avoid distraction

It's a kind of mask that is worn by horses so that they can't see sideways or backwards.   I think it's called a blinder (not sure though) but is there a proper term for this accessory in English? Preferably something that is used by Race Organizers?  Update 1 : The definition I found from      A screen attached to a horse's bridle preventing it from being able to see things to its side.   My question - Does a blinder have other names? (For example, blinker is one...)  Update 2 : Possible  flag raised. I felt that blinders were more of a colloquial term(It's my personal view and I may well be wrong). I was looking for a formal term, if there was one.


Did any of Aragorn's ancestors ever try to reclaim the crown of Gondor?

Two part question:    Did any of Aragorn's ancestors try to reclaim the throne of Gondor? If so, why did they fail? (I assume they did)    If not, why not? Did they not know about their heritage, not qualify somehow, were they too busy, or did they all just decide they didn't want to?


What does * represent in function argument list in python?

While going through the source code, I noticed the following syntax being used in the asyncio library:  @coroutine def sleep(delay, result=None, *, loop=None):     """Coroutine that completes after a given time (in seconds)."""     if delay == 0:         yield         return result      if loop is None:         loop = events.get_event_loop()     future = loop.create_future()     h = future._loop.call_later(delay,                                 futures._set_result_unless_cancelled,                                 future, result)     try:         return (yield from future)     finally:         h.cancel()   what does the * do in the argument list?


How to approximate standard deviation with summarized stats

I'm trying to summarize incoming data to speed up some anomaly detection queries... but I'm not sure how to retain/use the stats I'm summarizing.   Here's my basic goal:   1 million events > 1 minute bucket with stats (count, avg, sum, stdev, variance, min, max, etc). Then I have a query that retrieves 1 minute buckets from the last 10 Mondays, 9:00am - 9:05am.   That reduces things down to about 50 rows of statistics data. But how do I transform these summarized stats into an approximation of the standard deviation as if I calculated it from the 1 million x 50 events ?   So we have something to work with, let's use the below example (calculations using excel formulas).   raw events  value, time (hh:mm:ss)     0, 9:00:00     2, 9:00:20     1, 9:00:40     0, 9:01:00     3, 9:01:30   summarized by minute  minute, count, sum, mean, stdev.p, variance.p .. others needed ?    9:00,     3,   3,    1,  0.8164,     0.6667   9:01,     2,   4,    2,       1,          1   goal: recreate this from "summarized by minute" data  stdev.s( 0, 2, 1, 3, 1 ) = 1.1402


Ordering $n$ points in $\Bbb{R}^d$ so that every three consecutive points determine an acute angle

Let $x_1, \ldots ,x_n$ be distinct points in $\Bbb{R}^d$. Prove that there is a permutation $\sigma$ of $[n]$ such that the $\angle x_{\sigma(i−1)}x_{\sigma(i)}x_{\sigma(i+1)} < \pi/2$ for any $i = 2,\ldots, n−1$.  So I have got this question, and I am not able to understand what "a permutation $\sigma$ of $[n]$" mean? Can someone explain to me this question and provide some hints to approach it? P.S. I have edited out some parts as it was a bit irrelevant.


How to find the IP of a server address using cmd

How do we find the IP of a server address (like http://google.com is 209.85.148.103) using the Windows CMD?


Latex: "curly N" for neighborhood in Graph Theory context

How to do the "curly N" for neighborhood  in Graph Theory context? Please see the image attached.


Can you help me to solve the recurrence relation $T(n) = T(\sqrt n) + 1 $?

I have this recurrence relation to solve :  $T(n) = T(\sqrt n) + 1 $  I have tried to expand the recursion but I stopped here:  \begin{align} T(n) &= T(n^{\frac12})+1\\      &= T(n^{\frac14})+1+1\\      &\text{after $i$ replacements I have}\\      &= T(n^{\frac1{2^i}}) + i\\ \end{align} I know that $T(1) = 1$  And now? How can I get to the solution?


How to move file from one folder to another in Java

I'm new to Java. I'm updating a function that work on files. What I want to do is to move processed files to another folder (to create it if does not exist) If File is c:\abc\efgh\ijkl\xyz.txt the it should be moved to c:\abc\efgh\Backup\xyz.txt   String fileName = "c:\abc\efgh\ijkl\xyz.txt";   Path f = Paths.get(fileName);   String parentDir = f.getParent().getParent().toString()+"\backup";    Files.move(Paths.get(filename),     Paths.get(parentDir ));   However, the system crashes error>>Caused by: java.lang.NullPointerException  How do I move the file? I wnat to know how to move the file. it is not about the pointer


I have a p tag with fix width. If a long sentence came then that sentence should be sliced automatically like in the figures below.    So this sentence should show like this.     I tried many Css options like word-wrap and text-overflow but nothing work. Some makes width increase and some make other issues. I also tried overflow:hidden, this hides second line but did not add ... at the end of first line.


Are there subgenres for science fiction with accurate science vs. made up science?

Are there terms that describe a science fiction story that strictly adheres to, I guess, plausible science concepts and technology versus science fiction were the science is really just made up and is theoretically impossible? I know a lot of sci-fi TV shows, like Battlestar Galactica, employed physicists and other scientists as consultants to make sure things were accurate, whereas other shows that I won't name employed people solely to fill in technical- and sciency-sounding words in the script.


Exclude one point distribution from another

I'm an absolute newbie at Blender and 3d, and I'm trying to build a scene using geometry nodes.  My problem is that this grass intersects the trees. Is it possible to mix point distribution nodes to substract the tree points from the distribution density of the grass points? It would be cooler with less grass under the trees because the lack of light under the trees doesn't allow grasses to grow as well.


$O \subset \mathbb{C}$ region with ball $\overline{D(a, r)} \subset O$, $f$ analytic on $O$ s.t. $|f|$ constant on $\partial D(a, r)$.

Let $O \subset \mathbb{C}$ be a region containing the closure of a ball $B := D(a, r)$. Assume $f$ is analytic on $O$ with $|f|$ constant on $\partial B$. Show that $f$ has a zero in $B$.    I feel like the Argument Principle is useful here, but I'm not sure how to use it. I can assume $f$ has no zero in $B$ and conclude that $f'/f$ is analytic on $B$. We have $\int_{\partial B} f'/f = 0$ by Argument Princ. and really by the fact that $f'/f$ is analytic.   The other option is max modulus principle, but I'm not quite sure.


How do I start the MySQL console in XAMPP?

The XAMPP installation is done. XAMPP is up and running.  What about the MySQL console? How is possible to start the MySQL console to run some special SQL statements?


How to prove this inequality $f(a+b)\leq f(a) +f(b)$ for $\frac{f(x)}x$ monotone decreasing

$f(x)$ is defined on$(0,\infty)$, and $\frac{f(x)}{x}$ is monotone decreasing, how to prove  $\forall a>0,b>0$ $f(a+b)\leq f(a) +f(b)$. Thanks pretty much in advance


According to the answer key of a SAT preparation book I'm studying, there is an error in the sentence     By the time the bank guard closed the doors, a riot had erupted due to the long lines and shortage of tellers.   and it should be changed to     By the time the bank guard closed the doors, a riot had erupted as a result of the long lines and shortage of tellers.   I disagree with this. Why is the first sentence unacceptable?


QGIS "not responding" as reaction to every type of action

I just newly installed QGIS 3.16 because I got a new Laptop (Lenovo ThinkPad T490s, i5-8265, 8 GB RAM, 256 GB SSD). But when I try to use the program, it always goes into the "not responding" mode. It happens when I click on whatever part of QGIS (whether it be the task bar, starting a new project or the browser window), it even happens when I try to enlargen the window. I already tried it with reinstalling, restarting the computer and installing the 3.10 version but for days now nothing has changed. Because I have to wait for about a minute after every click/action I make I'm practically unable to work with QGIS.. Does anyone know how I can fix it so I'll be able to use QGIS again?


Muti check box using wrapper class is not working

I'm trying to display the selected checkbox row's values in vf page using wrapper class concept. But instead of the selected records, it is displaying all records values. here is my code.  Controller:  public class WrapperCls {  public List<myWrapper> wrapList {get;set;} public List<Account> accList {get;set;}  public WrapperCls () { wrapList = new List<myWrapper>(); for(Account a : [SELECT Name,Phone FROM Account])   wrapList.add(new myWrapper(a)); }  public void SelectedBox() { accList = new List<Account>(); for(myWrapper myWrap : wrapList) {      if(myWrap.isSelected = true) {     accList.add(myWrap.acc);  } } }  //Wrapper Class formation public class myWrapper { public Account acc{get;set;} public Boolean isSelected{get;set;}  public  myWrapper(Account a) { acc = a; isSelected = false; }    } }   VF Page:  <apex:page controller="WrapperCls"> <apex:form > <apex:pageBlock >   <apex:pageBlockButtons >     <apex:commandButton value="ShowDetails" action="{!SelectedBox}" rerender="tableId"/>   </apex:pageBlockButtons>   <apex:pageBlockSection columns="2">     <apex:pageblockTable value="{!wrapList}" var="w">       <apex:column >         <apex:facet name="Header">           <apex:inputcheckbox />         </apex:facet>         <apex:inputCheckbox value="{!w.isSelected}"/>        </apex:column>         <apex:column value="{!w.acc.Name}"/>     </apex:pageblockTable>     <apex:pageBlockTable value="{!accList}" var="a" id="tableId">       <apex:column value="{!a.Name}"/>       <apex:column value="{!a.Phone}"/>     </apex:pageBlockTable>   </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>


How to disable the submit button after clicking?

Drupal doesn't seem to prevent multiple form submits, even on node pages. This  suggests fixing it on the server side.  How could I disable the submit button after clicking?   Any other solutions?


Where are the page setting for the composer in QGIS 3?

When I open the composer I can't see any obvious means of changing the page setup (size or orientation).  QGIS 2 had a tab for this.


A question about eigenvalues of $5\times5$ matrix

$A\in M_5({R})$  and $A^2-4A-I=0$ If $a_1,a_2,a_3,a_4,a_5$ are eigenvalues of $A$ what is value of $$\left(a_1-\dfrac{1}{a_1}\right)+\left(a_2-\dfrac{1}{a_2}\right)+\cdots+\left(a_5-\dfrac{1}{a_5}\right)$$ I tried to work with $A^2-4A-I=0$ but get nothing because $A_{5\times5}$ characteristic polynomial is something like $A^5+k_1A^4+...$ Any hint will be appreciated .


2.8 Curve bevel and taper scaling issues

I'm trying to design jewellery in mm scale so I have set my scene length to be millimetres. So far, mostly so good I think.  Importing and SVG is no longer in um scale - yay. I'm not quite sure of the scaling, but it imports a letter at about 18mm wide.  I create a belief circle with a radius of 1.5mm (I want a 3mm diameter wire)  I add this to as the bevel object to my letter and all good. But I want to scale the letter up. But it also seems to scale the application of the beizer circle as well. Hmm, lets tackle it a different way.  Wipe everything, import the SVG, scale the letter to the correct dimension, apply scale. Now the curve is showing the correct dimensions, and 1.00 as all the scales. I apply the same 3mm diameter wire I created above, but it has still doubled the wire diameter. Why?  Also, I want to center the letter, so I grab it and move it. The bit I cannot apply location changes to a 2D object? Why?  Ok, so I scaled the wire circle inversely proportionally to the scale I applied to the path. I'm in an OK place. Now I want to taper the object, but. I can not find a working example in the millimetre scale.   If I create a regular bezier curve, and apply it to the taper of my letter. I get a tiny thin wire. So I know that deflection in the Y dictates the thickness along the taper, however I had assumed that the peak of the curve would be 100% of the full bevel.... but it doesn't. If I grab all the points and move them off the y=0 plane in edit more it gets a little thicker possibly... but I can put the peak at 100m and I still only seem to get a tiny line.  Even with a simple example, it does not work as expected. Is this a scaling bug as above?    Can anyone provide an example of how to make bevels and tapers work in the millimetre scale, or point me at what I'm doing wrong, or where my assumptions are wrong? I can provide a simple blender file if that helps anyone?  Thanks


Seeking syntax for arcpy.mapping.Layer() in ArcPy for ArcGIS Pro?

I'm working on a project where I am porting Python Tools created for ArcMap Desktop into ArcMap Pro but I am encountering an issue when I get to lines of the original code that read:     insertLayer = arcpy.mapping.Layer(input), which aims to create a Layer object to manipulate/process.    Having presumed product compatibility, I tried insertLayer = arcpy.mp.Layer(input) but that didn't work - I get the error message module 'arcpy.mp' has no attribute 'Layer'  From the help pages, I can see there are two ways to access Layer object:   Using listLayers method of Map object, which is dependent on an existing project file (.aprx) with the map having the target layer Using MakeFeatureLayer_management, which creates a Layer from a feature class and let you to use of a string (i.e., the second argument) in place of a layer object but its use is generally limited to Select from Layer operations.   What is the best way to port the Layer object, which is created in ArcGIS Desktop, to Pro?


Can I use an RNE to travel to Brazil, or do I need a visa?

I'm Brazilian, and my wife is Chinese; we just got married in China a few days ago.  The problem is, her visa expired just as we got to China for the wedding, and we don't have time to apply for a new one before our flight to Brazil.   Can she use her  (which is valid) to come to Brazil instead of needing a visa?


having:   std::map<const std::string,A > cache;   how would you insert into this container(duplicate attempt is possible):  cache.insert(std::make_pair(id,ps));  cache.insert(std::pair<std::string,A>(id,ps));  if(cache.find(id) == cache.end()){  cache[id] = ps; }   and why??(in terms of time and memory)  do you have a better solution?  Update: I am not using C++11  Update-2: OK, so far we realised that:  make_pair and pair<> are analogous.  insert and [ ](with or without ifchecking) will both invoke copy. So.. Is the competition  between :   insert  [ ](withifchecking) [ ](withifchecking and )    which one would you prefer?  thanks again


Change tikz arrowheads for whole document

What is the best way to set tikz arrowheads globally to one style, so that one can use > and < throughout the document (e.g. as \path[<-]) instead of writing \path[latex-] everywhere?  MWE:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} %something here to make both lines in the output look the same  \begin{document}  \tikz \path[->] (0,0) edge (2em,0); \tikz \path[<-] (0,0) edge (2em,0);  \tikz \path[-latex] (0,0) edge (2em,0); \tikz \path[latex-] (0,0) edge (2em,0);  \end{document}


How do I install an application by DEB file for a single user only?

When installing applications via the software center or by a DEB file they will usually be installed system wide for all users.  Is there a way to install an application for a single user only?


The plane that passes through the point $(−1,1,2)$ and contains the line of intersection of the planes $x+y−z=5$ and $2x−y+3z=1$.


Limit $\lim_{n\to\infty}\left(\frac n{n^2+1}+\frac n{n^2+2}+\frac n{n^2+3}+\dots+\frac n{n^2+n}\right)$

Here is a question: Show that the limit exists and find it $$\lim_{n\to\infty}\left(\frac n{n^2+1}+\frac n{n^2+2}+\frac n{n^2+3}+\dots+\frac n{n^2+n}\right)$$ I'm finding it a bit tricky to evaluate the limit of this series. I tried finding the limit of each term, but I think that's not the correct approach. How should I go about solving it? Can I use squeeze theorem here? If so, then how?


Running 32bit program on 64bit ubuntu 15.10

> proxychains skype > ProxyChains-3.1 (http://proxychains.sf.net) > ERROR: ld.so: object 'libproxychains.so.3' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.   I am using proxychains on Ubuntu 15.10 an have googled this issue many times and cannot find it. The problem is that skype is a 32bit application and proxychains is installed as a 64bit, so it isn't able to work with skype. I have googled this issue and found no legitimate solutions.   EDIT: not only does it not work for skype, but there are other applications as well that I have that are 32bit that it doesn't work with.  I also tried googling how to run a 32bit program on Ubuntu 15.10. To be clear, I do not just need to run it, it has to be ran as a 32bit and the libraries need to be downloaded as 32bit. Since i am on 64bit and proxychains is 64bit it already runs, just not with skype. Does anyone know I can fix this and get it working without the LD_PRELOAD error?


Is it right to replace "it depends on the person and his/her environment" to it depends on the person and their environment"?

Please provide an alternate statement too(if any).


For a ring $R$, does $\operatorname{End}_R(R)\cong R^{\mathrm{op}}$?

Given a ring $R$, how to prove that $\operatorname{End}_R(R)\cong R^{\mathrm{op}}$, where $R^{\mathrm{op}}$ is the opposite ring of $R$.   I read this proposition somewhere, but I think it is wrong. Because for any given $f\in\operatorname{End}_R(R) $ and any $r$ in $R$, we can get $f(r)$ by $r f(1)$, and $f(1)$can only be $1$, so $\operatorname{End}_R(R)$ is isomorphic to the trivil group.   Is there anything wrong with my logic? Please help me identify where I am wrong in my understanding of $\operatorname{End}_R(R)$. Thanks!


What does one second after big bang mean?

Consider the following statement:     Hadron Epoch, from $10^{-6}$ seconds to $1$ second: The temperature of the   universe cools to about a trillion degrees, cool enough to allow   quarks to combine to form hadrons (like protons and neutrons).   What does it mean to say "from $10^{-6}$ seconds to $1$ second"?   How is time being measured?  One particle might feel just $10^{-20}\ \mathrm s$ having passed and another could feel $10^{-10}\ \mathrm s$ having passed.   Is saying "1 second after the big bang" a meaningful statement?


Is it possible that there are two people in the world who belong to a different species?

There're over 7 billion people in the world and every one of them is different from everyone else. Is it possible that there are two people so different that they belong to different species (in the sense that they cannot reproduce to produce fertile offspring)?   This doesn't have to mean that there's someone in the world who's completely unable to reproduce with everyone else, just that these two individuals are so different that they can't reproduce with each other (they can still reproduce with other people who can reproduce with the other individual - a ring species system).  I'm particularly interested in an answer based on how much the genome varies between people vs. how much they vary against our closest relatives (such as Neanderthals). For example if humans and Neanderthals share 99% of their genes, and the largest variation among current humans is 0.001% of genes, then the answer to this question would be "no".


How to calculate p-value for t-test if original data is not available?

I have two (normally distributed) samples:  First: n=50 mean=3 sd=2  Second: n=40 mean=3.5 sd=1.9  Is this enough to perform two-sample and two-sided Student's t-test with equal variances? If yes, how can I compute p-value in R? Function t.test() accepts only original data.  Thank you in advance.


I am very sorry for this basic thing could any one please explain about how this for will work.     for (Map.Entry<Object, Object> en : m.entrySet()) {             Object object = en.getKey();             Object object1 = en.getValue();          }


How do you create a text-buffer in QGIS' print composer?

When creating a label you can create a buffer of another color around your text. Is there any way to do so in the print composer?


Is it possible to use mathematical induction to prove a statement concerning all real numbers, not necessarily just the integers?

I am referring to the part of proof by mathematical induction where you show that "if it is true for one value k then it is true for the value k+1". Does proof by induction work over all real numbers? I mean by considering any arbitrary change, say "delta-x", and seeing whether (it is true for the value x) implies (it is true for the value x+"delta-x");  or is this flawed in some way.


Is electric field inside a cavity necessarily zero?

Would the field in a cavity inside an arbitrary conductor with some charge, which is NOT SYMMETRIC be zero?   My book only says that field inside a cavity is always zero when there is no charge in cavity. But they prove this by taking a sphere with a symmetrical cavity and using Gauss law. But how can I prove this in cases where I can't take $E$ (field) out of:   $$\oint\pmb{E}\cdot d\pmb{A}=\frac{Q_{enclosed}}{\varepsilon_0}.$$


Lost Calendar in Thunderbird after Ubuntu 18.04 System Update

I recently ran the offered system update for my Ubuntu 18.04 installation.  Everything appeared to go well even if it did take over an hour and I was quite happy whit how it all turned out.  However I've just noticed that the calendar that I was running in Thunderbird 60.20.1  has disappeared.  This is a real pain as I use the calendar a lot and have a lot of reminders set in it.  Can anyone advise; Has the calendar just been de-activated and can be re-activated?  If so how do I do it?  Or  Have I lost everything and have to start again?


How are materials on DMs Guild classified?

(Dungeon Masters Guild) is a Wizards of the Coast-sponsored platform that holds an immense amount of material provided by the community and WoTC themselves. It seems to contain a mix of homebrew and officially published and AL-usable materials.  How do you determine how something on DMsGuild is classified in terms of being  at the same level as PHB, MM, etc., or if it's homebrew, or something in between?  I'm not looking for personal opinions on classification, but on if/how WoTC has classified the materials published on the platform.


Can anyone recommend books to learn about black holes?

I am really interested in learning about black holes, and tbh I know absolutely nothing about them. But I am really eager to learn about them. So I'm searching for books that can teach me in easy comprehensible english.


Identify trilogy: mankind sends off a ship with the last humans on board

I thought this was a trilogy from Michael Moorcock - but maybe not. I can't remember the name of the trilogy or any of the books (the one I read was a three-in-one volume, like The Stainless Steel Rat was).  In book 1, the wisest political and scientific minds on Earth forsee a complete annihilation of the human race on Earth, and build a super spaceship to carry a remnant to a far distant planet - and no hyperspace here... The people were to be kept in cryogenic stasis for a time.  I think the second involves some of the people waking up for some reason.  The third involves several generations later when the people on the spaceship have begun to worship the ship itself (and its computer) as supreme beings, and have no knowledge of the actual facts (that they are on a computer-controlled spaceship vessel). One of the people on the ship dares to "go behind the curtain" (and violates all kinds of religious rules) and finds that they are actually on a computer-controlled ship, and that something has gone wrong and they are about to crash. He saves the day somehow.  UPDATE: Could be by Ben Bova too. I can't remember for sure.


Triangle inequality for angles in Euclidean space

Is there any simple proof of the following statement: for all vectors $ v,w,u\in V\setminus\{0\} $, where $ V $ is a Euclidean space, inequality $$ \angle(u,v)\le\angle(u,w)+\angle(w,v)$$ holds.   Unfortunately, couldn't find anything useful in books or Google. I've seen this post: , but I'm not sure if the given answer is correct or not, and is there more clear proof or not.


Name a variable after the content of a variable

I'm trying to create a variable and name it after the content of another variable. For example  $newname = "x"; //dosomething to create the variable $x


Complete and sufficient statistics of Laplace Distribution

Let $X_{1}, X_{2},...,X_{n}$ be i.i.d from the Laplace distribution or Double exponential distribution $DE(\mu, \sigma)$ with the following pdf,  $$f(x) = \frac{1}{2\sigma} e^{\dfrac{-|x-\mu|}{\sigma}}\quad, \quad\mu\in \mathbb{R}, \quad\sigma>0$$   I am intended to find the sufficient and complete statistics for $\mu$ and $\sigma$, It can be done in the following way.  $$f(X_{1}, X_{2},...,X_{n}) = \frac{1}{(2\sigma)^{n}} e^{\dfrac{-\sum^{n}_{i=1}|x_{i}-\mu|}{\sigma}}\quad, \quad\mu\in \mathbb{R}, \quad\sigma>0$$   So, we can say that $(m, \sum^{n}_{i=1}|X_{i}-m|)$ is sufficient and complete statistics for $(\mu, \sigma)$, where $m$ is the median.  I also want to determine the distribution of  $T=\sum^{n}_{i=1}|X_{i}-m|$. Do you have any idea to find the distribution of $T$?  Thank you in advance.


Ubuntu 18.04 minimal server has two IP addresses!

I'm seeing two different IP addresses on my Odroid XU4. I only noticed after I set up a Unifi controller on the box, but then tried to ssh into both of the addresses with success. I only want 192.168.2.3, and no IPv6.  mike@odroid:~$ ip addr show 1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host         valid_lft forever preferred_lft forever 2: eth0:  mtu 1500 qdisc fq_codel state UP group default qlen 1000     link/ether 00:1e:06:30:1e:f5 brd ff:ff:ff:ff:ff:ff     inet 192.168.2.3/24 brd 192.168.2.255 scope global dynamic noprefixroute eth0        valid_lft 3069558340sec preferred_lft 3069558340sec     inet 192.168.2.9/24 brd 192.168.2.255 scope global secondary eth0        valid_lft forever preferred_lft forever  mike@odroid:~$ ifconfig eth0: flags=4163  mtu 1500         inet 192.168.2.3  netmask 255.255.255.0  broadcast 192.168.2.255         ether 00:1e:06:30:1e:f5  txqueuelen 1000  (Ethernet)         RX packets 12821  bytes 2393432 (2.3 MB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 13336  bytes 9323830 (9.3 MB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo: flags=73  mtu 65536         inet 127.0.0.1  netmask 255.0.0.0         inet6 ::1  prefixlen 128  scopeid 0x10         loop  txqueuelen 1000  (Local Loopback)         RX packets 10593  bytes 4855090 (4.8 MB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 10593  bytes 4855090 (4.8 MB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  As we can see here eth0 has two IP address and is only shown by ip command and not by ifconfig. I am unable to understand where this is coming from or how to disable the 2nd IP permanently. I would like to get rid of the 2nd IP address permanently.  mike@odroid:~$ cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d  mike@odroid:~$ cat /etc/netplan/*.yaml cat: '/etc/netplan/*.yaml': No such file or directory


Why can't I join unallocated space with my NTFS partition in GParted?

I can't resize my NTFS partition named My Folder to join the unallocated space for some reasons I can't get.


In the classical setting of multiple linear regression, what is the multivariate distribution of beta hat?

We can assume all the assumptions of the classical setting of linear regression with unknown variance of the residual.   What would be the multivariate distribution of the vector $\hat{\beta}$?  The result should be consistent with the fact that the marginal distribution of each element of $\hat{\beta}$ is a t-distribution.   We should also be able to compute the distribution of any linear combination of $\hat{\beta}$.


remove puncuations from unicode like string

I have tried below piece of code to remove punctuation from a string.  import re s = "string. With. Punctuation?" s = re.sub(r'[^\w\s]','',s)   This works fine for roman like text(script) but seems to have problem with Unicode like text like Hindi, Telugu etc.  for example:  import re s = "అనేది దేనికి సమానం అవుతుంది." s = re.sub(r'[^\w\s]','',s)   This one completely changes the text itself and making it not understandable by removing dependent vowels of that script.  So my question is how can I remove punctuation from text that is other than roman text.  The duplicate question linked will replace punctuation for roman like string as I already mentioned. My issue here is to replace punctuation for Unicode like string. There is a clear difference not a duplicate.


two polynomials having no gcd's in a ring

Let $k$ be a field and let $R$ be the subring of $k[x]$ consisting of all polynomials having no linear term, that is, $f (x) \in R$ if and only if $f (x) = s_0 +s_2x^2 +s_3x^3 +\ldots + s_nx^n$.   Show that $x^5$ and $x^6$ have no gcd in $R$.


Pattern for $x^n + \frac{1}{x^n}$ if $x + \frac{1}{x} = \frac{1+\sqrt 5}{2}$

I was trying to solve this problem on my textboox Given $x + \frac{1}{x}$ = $\frac{1+\sqrt{5}}{2}$  find the value of $x^{2000} + \frac{1}{x^{2000}}$ After doing a bit of exploration i have noticed that the value of $x^n + \frac{1}{x^n}$ doesn't diverges, however i am unable to find a clear pattern for it and i did some long algebra process to get the answer. Although i got the value for $x^{2000} + \frac{1}{x^{2000}}$ i still am not very satisfied with my method of solving it, i've done some more exploration but i'm still unable to notice a pattern within the first few terms. Any help or hints would be appreciated.


I built a house for a NPC but none are coming. What do I do?


Fisherman/Fisherwoman and Gender-neutral Forms

What is the unisex form of a word like fisherman? Do you have to use fisherman and fisherwoman separately, or is fisherperson acceptable? I couldn’t find a dictionary with the word …  In general, what do you do when a word does not have a unisex form?


The rise and fall of empires (cyclical barbarian invasions) set in a lecture hall

I read a short story a few years ago (late 90s) where a professor of Ancient History is giving his favorite lecture to his students about the rise of their empire.  Some points I remember:   The story is set in a packed lecture hall The lecture is about an ancient poem that commemorates the battle where the current empire captured Earth from the last empire. The lecture is interspersed with flashbacks from the invasion under discussion. In the flashbacks a professor of history discusses the rise and fall of the Roman Empire. The professor is excited to finish the lecture, but is interrupted right at the end and forced to read an announcement       This announcement suggests that a new invasion is imminent, but is couched in language that makes it sound like everything is business-as-usual.   My Google-fu has failed me.  Does anyone have any clue as to the title or the author?


1093 error in mysql that can't specify target table for update in from clause

I have a table in database where I am trying to update some data.  Table1  Uname   Password   Email          SpecialID  A      qwh2       abc@xyz.com    23243  B      rt4f       aafj@xyz.com   56343   I am trying to change the SpecialID from this query:  Update Table1 SET SpecialID='24152' where Uname=(select Uname from Table1 where Email='abc@xyz.com');   But I am getting this error :  ERROR 1093 (HY000): You can't specify target table 'Table1' for update in FROM clause   Please help me and tell me what is wrong I am doing in this query...!!! I searched but didn't get proper solution..


I written an ISO image to my hard disk using sudo dd if=image.iso of=/dev/sda. I meant /dev/sdc, and now running sudo fdisk -l returns only one partition on /dev/sda while there is supposed to be 6. Is it possible to recover my data?  I didn't shut down (reboot) my computer yet.


How can I set up bootchart in Ubuntu 15.10?

says that I have to  edit the "linux" line in the grub boot menu to set up bootchart. I do not understand what exactly it is that I have to do. Please help.


After a repair to my Windows 7 (led by a Microsoft Support engineer) my Windows 10 icon is no longer showing. I have installed all the latest updates, nothing is blocked and my Windows is genuine.


My luggage is allowed to be 50 lbs each bag, and I'm not sure how much it weighs. Is there any way to weigh it with an accurate weight?


Why is it dangerous use a coiled extension cord

What aspect using a coiled extension cord makes it more dangerous than using an unrolled power cord.  Many fire safety websites reference that an extension cord should not be used while coiled.  Is this due to the cord acting as an air core inductor (I can't really see why this should cause fires). If this is the case, if every second loop is in the opposite direction is it safe.  My theory is that if the cord is getting heated from high current draw, when coiled all of this heat is in a much more condensed location, causing a greater temperature rise than if the cable was unrolled.  Is it dangerous, if so what is the cause. Am I missing anything, do parameters like loop size, loop direction etc make any appreciable difference.


Runnin a periodic task inside a GUI loop

i have a GUI running , showing some buttons.  top = Tkinter.Tk() top.title('Interfaz') B = Tkinter.Button(top, text ="name1", command = name1) B.grid(row=0, column=0) C = Tkinter.Button(top, text ="name 2", command = name 2) C.grid(row=0, column=1) D = Tkinter.Button(top, text ="name 3", command = name 3) D.grid(row=0, column=2) E = Tkinter.Button(top, text ="name 4", command = name 4) E.grid(row=1, column=0) F = Tkinter.Button(top, text ="name 5", command = name 5) F.grid(row=1, column=1) top.mainloop()   And what i want to do is just schedule a function inside the same py file to run every hour , so , i found this     so i just added this line and it works  threading.Timer(3600, name1).start()   but what i would like to do is use this piece of code i adapted from another  question i saw in this website.  scheduler = BlockingScheduler() scheduler.add_job(name1, 'interval', minutes=50) scheduler.start()   but if i put that inside the GUI loop , the GUI stops appearing and instead only the scheduler works.


If $R$ is an infinite ring, then $R$ has either infinitely many zero divisors, or no zero divisors

Please help me to prove that if $R$ is an infinite ring, then $R$ has either an infinite number of zero divisors, or it has no zero divisors.


The trigger is giving me an error      CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY . Maximum trigger depth exceeded.   Now this trigger is working f9 in after insert event but i want it after update. I can't understand where its going wrong.     trigger updatingsuffix on Account (after update) {     List<Account> acclst=new List<Account>();     Set<Id> accset=new Set<Id>();     if(trigger.IsInsert){         for(Account a:trigger.new){             accset.add(a.Id);         }          for(Account a:[select Id,Name,Gender__c from Account where Id=:accset]){             if(a.Gender__c=='Male'){                 a.Name='Mr. '+a.Name;                 acclst.add(a);             }             else if(a.Gender__c=='Female'){                 acclst.add(a);             }         }         if(acclst!=null){             update acclst;         }     } }


The polygon tool can be used to create power planes. This is the common use of it and I am not aware of any other application of it.  When power plane is created, we name the plane to have same signal name as the ground signal. Once the plane is drawn and we click rat's nest, the signal paths are made distinct from the plane by removing the copper around edges of the signal trace. The copper plane swamps any signals with same name as the plane itself.  I have 1 question:  If I create two small planes and then a big plan that then overlaps both of them, how do I keep them seperate? What I want to achieve is below. The blue color is copper. There are two small planes inside a big plane. I don't know how to achieve the white seperation. It seems that pressing rat's nest does make signal trace distinct from power but not overlapping planes.


How do I watch a Youtube in Picture-in-Picture (PIP) mode?

I'd like to watch youtube videos with a small video down in the corner without a lot of wasted space on the screen such as title bars, address bar, bookmarks bar, scroll bar, etc.