How to prove $\det(e^A) = e^{\operatorname{tr}(A)}$?

Prove $$\det(e^A) = e^{\operatorname{tr}(A)}$$ for all matrices $A \in \mathbb{C}_{n×n}$.


If someone hates salad, and mostly eats meat, they basically are the opposite of vegetarians. What do you call those people in English? I guess there is no such a thing as meatarian.


Create independent objects using operator * on list

I'm trying to initialize a bi-dimentional (3x3) list without typing all elements, since they are all the same.   However, it seems that only the first line of this matrix is really created as a new object, and the subsequent lines are just references to the first line.  How could I create all lines are independent objects?  Here's an example to illustrate this:  # Create a bi-dimentional list a=[[''] * 3] * 3 print a >>>[['', '', ''], ['', '', ''], ['', '', '']]  # change a single element, on first line # notice that it will change also the elements at other lines a[0][1] = 'x' print a [['', 'x', ''], ['', 'x', ''], ['', 'x', '']]


Is it possible to have too much data? When should I subsample?

Social science PhD student here looking for a little help.   I set out to collect around 300 online surveys for a study, but ended up with over 4,000. At that sample size should I sub-sample my results because it's more likely that significant results will be found because of the sample size?  Thanks.


I want to check the time      Eastern Daylight Time   Time zone in Washington, DC, USA (GMT-4)   Thursday, May 9, 2019, 8:11 PM   However,   $ TZ="EDT" date Fri May 10 00:12:25 EDT 2019   "EST" works properly  $ TZ="EST" date Thu May  9 19:13:11 EST 2019   What's the problem?


Share wireless Internet connection through ethernet

I want to share the wireless Internet connection on my desktop with my old laptop, through ethernet.  I have ticked the option "Make available to others" on both connections, on my desktop, but my laptop doesn't connect. Am I doing something wrong or is it a bug?


how to select every month even they do not have value

I want to select company id, date and number from table, but this query does not show the month some companies with 0 number.   Here is the query:  SELECT c.name, date_format(e.created, '%y_%m') AS date, count(*)  FROM company c JOIN edited e on c.id=e.company_id AND e.created >='2016-12-13 00:00:00' AND e.created <='2017-05-20 00:00:00' GROUP BY c.id, date   Some of results like this  4   16_12    2         4   17_01   4         4   17_04   2         4   17_05   2 without 17_03 (march). how can it show 17_03 with 0 ?


How to carry cologne bottles in hand luggage and prevent losses?

Say I have a cologne bottle of 100 ml that I want to carry in my hand luggage on a plane trip.  100 ml is the limit so it should be fine for the transport regulations (if not, please let me know!).  The problem I always encounter is regarding the storage of the bottle: how to prevent it from leaking?  What I normally do is to put it in a plastic bag, so that the possible loss remains there. It is fine, only that the bottle ends up quite wet.  What would be a better approach?


I am new to Linux and I am trying to get started without spending any money.   I have a 10 years old dell inspiron 1545 and want to turn it into a Linux machine. (Obviously the hard drive could die any time, but whatever).  What is the minimum hardware requirement (CPU, RAM, Hard-disk) for running Ubuntu 16.04?


Can an arcane caster cast a spell that has as its only focus component a divine focus?

on  on Divine Focus (DF) says  A divine focus component is an item of spiritual significance. The divine focus for a cleric or a paladin is a holy symbol appropriate to the character’s faith. The divine focus for a druid or a ranger is a sprig of holly, or some other sacred plant. If the Components line includes F/DF or M/DF, the arcane version of the spell has a focus component or a material component (the abbreviation before the slash) and the divine version has a divine focus component (the abbreviation after the slash).  However, rather than having a Components entry of F/DF or M/DF, some spells have only a DF entry. For example, the 1st-level Sor/Wiz spells   and  have DF entries rather than F/DF or M/DF entries. Besides extrapolating from or assuming based on the text quoted above, do the rules elsewhere actually say whether or not an arcane caster can (or must) satisfy this standalone DF-only component?  Note: A similar question is asked .


I can't find the ` apply ` button in subsurf modifier

After I made desired shape with subdivision modifier, how do I turn it into a mesh, there is no apply button in modifier.


What prevented Duke Nukem from mutating in the Duke Nukem video games?

I remember fighting and shooting everything as Duke spouted one liners he borrowed from Bruce Campbell.  What prevented the dancing girls &  Duke Nukem from morphing during crisises that made him our last, crass hope for mankind?


How do I get the error "non-static method GetString(Scanner,String) cannot be refereneced from a static context" to go away?

I'm working with two classes. One is called Validator and one is called LineItemApp.  Here is the code for the Validator class.  import java.util.Scanner;  public class Validator { public String getString(Scanner sc, String prompt) {     System.out.print(prompt);     String s = sc.next();  // read user entry     sc.nextLine();  // discard any other data entered on the line     return s; }  public int getInt(Scanner sc, String prompt) {     int i = 0;     boolean isValid = false;     while (isValid == false)     {         System.out.print(prompt);         if (sc.hasNextInt())         {             i = sc.nextInt();             isValid = true;         }         else         {             System.out.println("Error! Invalid integer value. Try again.");         }         sc.nextLine();  // discard any other data entered on the line     }     return i; }  public int getInt(Scanner sc, String prompt, int min, int max) {     int i = 0;     boolean isValid = false;     while (isValid == false)     {         i = getInt(sc, prompt);         if (i <= min)             System.out.println(                 "Error! Number must be greater than " + min + ".");         else if (i >= max)             System.out.println(                 "Error! Number must be less than " + max + ".");         else             isValid = true;     }     return i; }  public double getDouble(Scanner sc, String prompt) {     double d = 0;     boolean isValid = false;     while (isValid == false)     {         System.out.print(prompt);         if (sc.hasNextDouble())         {             d = sc.nextDouble();             isValid = true;         }         else         {             System.out.println("Error! Invalid decimal value. Try again.");         }         sc.nextLine();  // discard any other data entered on the line     }     return d; }  public double getDouble(Scanner sc, String prompt, double min, double max) {     double d = 0;     boolean isValid = false;     while (isValid == false)     {         d = getDouble(sc, prompt);         if (d <= min)             System.out.println(                 "Error! Number must be greater than " + min + ".");         else if (d >= max)             System.out.println(                 "Error! Number must be less than " + max + ".");         else             isValid = true;     }     return d; } }   Here is my LineItemApp class      import java.util.Scanner;  public class LineItemApp { public static void main(String args[]) {     // display a welcome message     System.out.println("Welcome to the Line Item Calculator");     System.out.println();      // create 1 or more line items     Scanner sc = new Scanner(System.in);     String choice = "y";     while (choice.equalsIgnoreCase("y"))     {         // get the input from the user         String productCode = Validator.getString(sc,             "Enter product code: ");         int quantity = Validator.getInt(sc,             "Enter quantity:     ", 0, 1000);          // get the Product object         Product product = ProductDB.getProduct(productCode);          // create the LineItem object         LineItem lineItem = new LineItem(product, quantity);          // display the output         System.out.println();         System.out.println("LINE ITEM");         System.out.println("Code:        " + product.getCode());         System.out.println("Description: " + product.getDescription());         System.out.println("Price:       " + product.getFormattedPrice());         System.out.println("Quantity:    " + lineItem.getQuantity());         System.out.println("Total:       " +             lineItem.getFormattedTotal() + "\n");          // see if the user wants to continue         choice = Validator.getString(sc, "Continue? (y/n): ");         System.out.println();     } }   }  Any help would be greatly appreciated.   Thanks, David


Trying to teach myself RoR through building a simple app. where do I start?

First of all, forgive the newbie question -- I won't begrudge downvoters.  What I have in mind is 3 views.   A main index page.  A sub index page where the user can drill down to a sub index and A page that houses content relating to the particular item chosen from the sub-index   Should I create the models first or controllers or views?  As a very new programmer, should I use scaffolding?  The more concrete the answers to this question the better or if there are other resources with specific executable steps you can point me to, that would be great.


Show there exists a number $c \in (a,b)$ such that $f(b) = f(a) + (b-a)f'(a) + \frac{(b-a)^2}{2}f''(c)$.

Full question: Suppose that $f'$ exists and is continuous on $[a, b]$ and $f''$ exists on $(a, b)$, where $a < b$. Show that there exists a number $c \in (a, b)$ such that $$ f(b) = f(a) + (b-a)f'(a) + \frac{(b-a)^2}{2}f''(c) $$ Manipulating the above equation gives me \begin{align*} \frac{f(b) - f(a)}{b - a} &= f'(a) + \frac{(b-a)}{2}f''(c) \\ f'(c) &= f'(a) + \frac{(b-a)}{2}f''(c) \end{align*} The question suggests the use of the Mean Value Theorem. Using this for both $f$ and $f'$ gives me \begin{align*} f'(c) &= \frac{f(b) - f(a)}{b - a} \\ f''(c) &= \frac{f'(b) - f'(a)}{b - a} \end{align*} But I am stuck here. I tried formulating the equation of the tangent line through $(a, f(a))$ for $f$ as well as through $(a, f'(a))$ for $f'$ but to no avail. Is there some sort of manipulation for this which can help?


How can I launch gnome-terminal with unique titles for multiple tabs?

I've seen  about launching gnome-terminal with multiple tabs and the script below is working for me.  That is to say, this script will launch gnome-terminal with various working directories or profiles. . .  #!/bin/sh gnome-terminal \ --tab --working-directory=$HOME/notes  \ --tab --working-directory=$HOME/puppet \ --tab --profile=root-beamish           \ --tab --profile=odyssey                \ --tab --profile=root   ... but I'd like to set a unique title for each tab.  In the case where a tab has its own profile I can change the title from within gnome-terminal with Edit | Profiles | (NAME) | Edit | Title and Command and then change "Initial Title" to what I want and "When terminal commands set their own titles" from "Replace initial title" to "Keep initial title".  However, I'd rather not create a unique profile for every tab.  I'd like a generic solution.  I've tried adding --title='MyTitle' but it doesn't seem to help.  I'm using GNOME 2.28.2 on CentOS 6.


Number of ways of distributing identical items among people.

The number of ways of distributing $n$ identical items among $r$ people such that each one of them receives at least one is $\binom{n-1}{r-1}$. Can you please give a simple proof to explain how is this theorem derived ? Thanks .


Diagnosing an alleged trojan reported by ClamAV

Unfortunately I have very little Linux experience. We have an Amazon instance running Debian 7.6 and got a message from Amazon saying we were port scanning. We have hopefully stopped this by restricting outbound traffic via an Amazon security group, but as part of the investigation we ran:  sudo clamscan -r -i --bell   this showed the following possible infection:     /var/lib/tomcat7/update_temporary: Unix.Trojan.Elknot FOUND   and I can find very little about this (but some stuff about ElkKnot with an extra K - are they the same thing?)  The following warnings also appear multiple times in the output:  WARNING: Can't open file /sys/module/nfnetlink_log/uevent: Permission denied LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @ offset 2, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0 LibClamAV Warning: fmap_readpage: pread fail: asked for 4077 bytes @ offset 19, got 0   So my questions are: How I can tell whether the reported infection is genuine or a false positive? Should I be worried about all the LibClamAV warnings? Are they an indication of something wrong, or of Debian not being set up correctly?


Reversing an inswing door to an outswing door?

I about to tear out and rebuild a portion of an exterior wall in which I will be installing a door, is it possible since it's new construction to purchase and inswing door and convert it to an outswing door?   Thanks


Matlab questions about $a_{n+1} = 4a_{n} + n +1$

Solve the equation with Matlab  Given: $a_{n+1} = 4a_{n} + n +1$  Start condition: $a_{i}=0$  Questions:  a) Find x,y for: $b_{n} = a_{n}+xn+y$  such that: $b_{n+1}=4b_{n}$  b) Find an explicit formula for $b_{n}$  c) Write recursive function with input n   I'll be very grateful for your help!


How to delete System Extension BridgeAudioController.kext on Mac M1 running Big Sur?

For privacy reasons I always delete BridgeAudioController.kext on a Mac. This away, the built-in mic will stop working and nothing can access my mic. If I need it I'll just use an headset. In MacOS Catalina this was relatively simple:  Start recovery with external boot disk so I can prevent the internal macOS from launching; Launch terminal; rm -rf /System/Library/Extensions/BridgeAudioController.kext  The clever move is to prevent the internal macOS from launching because, if it does, BridgeAudioController.kext will be marked has read-only by the system and just can't be deleted (even if the SIP is turned disabled). For Catalina a similar situation is described by @user3439894 in this post:  The Problem is that Big Sur external boot disks no longer include terminal. Access to terminal can only be made through MacOS recovery / Options. Any ideas on how to bypass this? Thanks in advance,


I wanted to use two buttons for the same action (Stop - S and Mouse 4), but I cannot find any setting to do so.  Can someone point me on how to do so?


I am working in Alpine Linux and I cannot wrap my head around the following behavior of the sh shell: / # vsftpd /etc/vsftpd/vsftpd.conf > /dev/null 500 OOPS: bad bool value in config file for: hide_ids / # vsftpd /etc/vsftpd/vsftpd.conf 2> /dev/null 500 OOPS: bad bool value in config file for: hide_ids  Where is the message printed out? Was it stdout or stderr?


How can I play the levels I created to a world in Super Mario Maker?

I have created four levels in Super Marion Maker - they form a world. Nintendo says on their site that you simply press the play icon. I do not see any "play" icon anywhere. I can only play the levels in "edit" mode. I want to play them with three lives as one world.  Can anyone help me?  Screen shots would be appreciated because I've seen too many places that I should press the play icon - and obviously I am not able to find it.


I'm stuck on the following problem, I'd appreciate any sort of hints.  $A,B \in M_n(\mathbb{R})$ and there exists $S \in M_n(\mathbb{C})$ such that $SAS^{-1}=B$. Prove that there exists $T \in M_n(\mathbb{R})$ such that $TAT^{-1}=B$.  What I have tried so far is to assume $S$ to have the form $C+iD$ with $i$ representing the imaginary unit and $S^{-1}$ to have the form $E+iF$ and then what we find is that:  $$CAE-DAF = B$$ $$CAF+DAE = 0$$ $$CE-DF = I_n$$ $$CF+DE = 0$$  such that $C,D,E,F \in M_n(\mathbb{R})$  but I couldn't use these identities to construct an invertible matrix in Real field with required property.


Can I recharge a Canaith Mandolin in Avernus?

I just got a Canaith Mandolin while being in Avernus and there is something in the description that I would like to clarify.  If I understand well, in Avernus, there isn't any dawn. No sunrise.  Does that mean that if I stay in Avernus I won't be able to recharge my Canaith Mandolin spells ?  The description says      A bard playing a Canaith mandolin could invoke the spells [...] each once a day, until the instrument recharged its magic at the next dawn.


Script to find empty files in the current directory?

Im trying to write a script that can search the current directory for empty files, followed by a count of the empty files. I would also prefer the files to be one per line of the output. For example the program output would look like:   Empty files are: file1.pdf file4.cpp example-file Number of empty files: 3


Does Reinhardt's shield block all abilities?

Reinhardt's main strength is his shielding abilities and the protection he provides for his team, but Are there any abilities that cannot be blocked by Reinhardt's barrier field?


How do I install a single package from Debian testing or unstable on stable?

I want to install a single package (and its dependencies, but only to the extent those are not satisfiable in Wheezy) from Debian Jessie onto my Wheezy system, without upgrading "everything and the kitchen sink" to the Jessie versions. Specifically, I'd like to install , which is available packaged in Jessie but not in Wheezy.  Everything I've found indicates that I should add the Jessie repositories to my sources list, set pinning to keep everything at wheezy and only take the single package from jessie, and it'll pretty much just fall into place. However, it isn't falling into place for me. If I create /etc/apt.d/sources.list.d/jessie.list with the following content:  deb ftp://ftp.debian.org/debian/ jessie main deb-src ftp://ftp.debian.org/debian/ jessie main   and then create /etc/apt/preferences.d/jessie with:  Package: * Pin: release a=wheezy Pin-Priority: 1001  Package: kpcli Pin: release a=jessie Pin-Priority: 450   and run apt-get -u update followed by apt-get -u install kpcli/jessie, then I expect apt-get to pull in kpcli and maybe a small handful of other packages from Jessie, and leave the remainder of my installed system untouched. (My system is a fully up to date installation of Wheezy.) Alternatively, if I got the pin priority too low, I'd expect it to do nothing. Rather, on my system, apt-get wants to upgrade several hundred packages.  What, exactly, is needed to install just this one single package of a Jessie version while leaving the remainder of my Wheezy system untouched?  Note that in this particular case, the software is actually written in Perl so there's no compilation to binary or anything like that involved; however, there is a handful of Perl module dependencies. Hence, one possible alternative would be to install the .deb (downloaded manually) using something that only (1) allows specifying a single, local .deb archive that is to be installed, like dpkg -i, and (2) handles dependencies in an intelligent way, which plain dpkg -i doesn't. However, for all the searching I've done on several occasions and failed to come up with a simple-to-follow guide for how to do this, a generic solution (one that works for binary, compiled packages as well) would be great.


is there a way to return a list from servlet to html page

I want to send request from html page to servlet then create a list in java servlet then i want to return this list to the same html page .


Loss is stuck at 67% and wont converge even with large epoch and early stopping criterion

I am training a very simple 2D dataset with 2 features. Its tabular data and contains only numeric information. I tried using keras to train a neural network but the performance does not bulge. I wanted to let the network fully converge and overfit but it doesnt work.   overfitCallback = EarlyStopping(monitor='loss', min_delta=0, patience = 20) act= 'relu' last_act = 'softmax'  los = 'mse' ep = 100000 batch = 8 opt = keras.optimizers.Adam(learning_rate=0.001) # define the keras model model = Sequential() dense1= model.add(Dense(5, input_dim=2, activation=act,kernel_initializer='he_uniform')) dense2= model.add(Dense(2, activation=act)) dense3= model.add(Dense(1, activation=last_act)) model.compile(loss=los, optimizer=opt, metrics=['accuracy']) history = model.fit(data_train, target_train, epochs=ep, batch_size=batch,verbose=0,callbacks=[overfitCallback])


This might be a replica, I have searched and not found a similar question.  I currently have the HTC One M8 and am planing on getting a 1GiB Data pack, knowing me who uses internet over the top I would like my internet to get cut at lets per say at the peak of 1GiB. So as soon as I reach it, it gets cut off fully.   I have tried the Android Data limiter and it always fails me. I have not found any reliable applications (I will pay if worthy) Location is Ontario and my provider is Fido


Does the plastic cap on a Presta valve serve any purpose once fitted to a rim?

I can see the use of the valve cap on a Presta valve when the tube is still packaged (it obviously stops the valve puncturing the tube), but does it do anything except look pretty (or not) once you've fitted the tube to a rim?  I've kept them on out of habit, because I've had problems with sticking Schrader valves in the past when I've lost the caps and dirt/grime has got in there - but the design of Presta valves suggests to me that they wouldn't suffer this fate.  Given that I really need to , is replacing this cap something I can leave out of my daily chores?


Run same program on multiple files in a directory

I have a directory which contains thousands of .txt files and sub folders with even more files. I need to run a C++ parsing program that goes into the main folder and run on every text file that is in the folder and its subfolders  So how should i proceed?  EDIT: So the question that has been linked gets the directory traversal part right but the main issue is that how can i "pass each text file" to my program in the directory


Significant amount of foreign coins from 6 different countries

Collected coins from ship mates to change into dollars for a donation. Have anywhere from 3-6 pounds of coins from each country. Need a US company/ financial institution that will exchange the coins for dollars. Thanks.


Finding closest segment to a point using PostGIS

I am trying to find the closest road segment to a point that I have and return an attribute from the closest segment to the given points.    I know in PostGIS I need to use ST_ClosestPoint, St_distance and min functions, but I keep having syntax errors.    So far my code looks like  WITH closest_segment As )  SELECT   ST_ClosestPoint(ST_GeogFromText('POINT(-122.206111 47.983056)')::GEOMETRY,        shape::GEOMETRY)AS segment_location  --shape is the geography WKB       FROM   public.road_segments )  RETURNING closest_segment WITH new_segment AS )  SELECT    MiN(ST_Distance(closest_segment::GEOM,ST_GeogFromText('POINT(-122.206111     47.983056)')::GEOMETRY)   FROM    closest_segment )  RETURNING closest_segment   My knowledge of PostGIS and coding in it is very limited.


In a simple physics experiment, we take the average a few readings to reduce the random errors. I apply  rules to these.  Say we round off at each step:  (8.0+9.0+10.0)/3 = 27.0/3 (addition keeps dp) = 9.00 (division keeps sf)  Say we choose to only round off at the end by taking the least precise of given readings:  (9.0+10.0+11.0)/3 = 30.0/3=10 (2sf because 9.0 is 2 sf  'common sense' tells us that in the first example, the decimal place should be kept at 9.0, and in the second, it should be 10.0, not 10.   Another example: Given the external (19.2) and internal (18.3) diameter of a pipe, calculate its thickness: (19.2-18.3)/2 =0.45 or 0.5 or 0.450?  All these significant figure rules seem to only work out in theory to me. Can someone explain?


This is in with regards to the below post    The code works flawlessly. But do I remove the red frame boxes which cover the entries in table of content?  Sorry about the stupid question but I am new to latex and just trying to learn ...  MB


Ubuntu 18.04. How to set language (keyboard layout) change to Ctrl+Shift?

I found Keyboards Shortcuts but it only accepts combos with 3 buttons (Ctrl+Shift+?), even for those where originally only 2 buttons are used (like original combo Super + Space).  So I can't change Super+Space to Ctrl+Shift or Alt+Shift.  Can anyone explain why this is?


Read whole ASCII file into C++ std::string

I need to read a whole file into memory and place it in a C++ std::string.  If I were to read it into a char[], the answer would be very simple:  std::ifstream t; int length; t.open("file.txt");      // open input file t.seekg(0, std::ios::end);    // go to the end length = t.tellg();           // report location (this is the length) t.seekg(0, std::ios::beg);    // go back to the beginning buffer = new char[length];    // allocate memory for a buffer of appropriate dimension t.read(buffer, length);       // read the whole file into the buffer t.close();                    // close file handle  // ... Do stuff with buffer here ...   Now, I want to do the exact same thing, but using a std::string instead of a char[]. I want to avoid loops, i.e. I don't want to:  std::ifstream t; t.open("file.txt"); std::string buffer; std::string line; while(t){ std::getline(t, line); // ... Append line to buffer and go on } t.close()   Any ideas?


I made a char[] with split and am trying to make it into a String again, but I don't know why this is not working

Why will this code not print out a string?  String s = "My name is Jack";     String[] arr = s.split("");     char[] a = Arrays.toString(arr).toCharArray(); System.out.println(a); System.out.println(new String(a));


Minecraft gave up trying to download files

I have an issue with my Minecraft launcher - I downloaded modpack for minecraft then the launcher started an update for the modpack version which it's 1.6.2, however then I started to get the issue      [15:40:59 ERROR]: Gave up trying to download      for job 'Version & Libraries'      [15:40:59 ERROR]: Job 'Version & Libraries' finished with 26   failure(s)! (took 0:01:06.362)   At the same time I had just downloaded Avira antivirus and ran it, but unfortunately  removing it and trying again didn't help. I've tried to restore the system to the point before downloading the antvirus and the mod pack a 2 days ago, I've tried turning off the firewall and I have tried removing the whole .minecraft folder all with no luck at all. I can't figure it out, all the servers are working and I have good internet connection but some of the files download fine and other don't.  The full log is here:  [15:40:59 WARN]: Couldn't download https ://libraries.minecraft.net/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar for job 'Version & Libraries' java.net.SocketTimeoutException: connect timed out         at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) ~[?:1.7.0_45]         at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[?:1.7.0_45]         at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[?:1.7.0_45]         at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[?:1.7.0_45]         at java.net.PlainSocketImpl.connect(Unknown Source) ~[?:1.7.0_45]         at java.net.SocksSocketImpl.connect(Unknown Source) ~[?:1.7.0_45]         at java.net.Socket.connect(Unknown Source) ~[?:1.7.0_45]         at sun.security.ssl.SSLSocketImpl.connect(Unknown Source) ~[?:1.7.0_45]         at sun.net.NetworkClient.doConnect(Unknown Source) ~[?:1.7.0_45]         at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[?:1.7.0_45]         at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[?:1.7.0_45]         at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source) ~[?:1.7.0_45]         at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) ~[?:1.7.0_45]         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source) ~[?:1.7.0_45]         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) ~[?:1.7.0_45]         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) ~[?:1.7.0_45]         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[?:1.7.0_45]         at java.net.HttpURLConnection.getResponseCode(Unknown Source) ~[?:1.7.0_45]         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source) ~[?:1.7.0_45]         at net.minecraft.launcher.updater.download.ChecksummedDownloadable.download(ChecksummedDownloadable.java:49) ~[launcher.jar:?]         at net.minecraft.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:108) [launcher.jar:?]         at net.minecraft.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12) [launcher.jar:?]         at net.minecraft.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:89) [launcher.jar:?]         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_45]         at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_45]         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.7.0_45]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.7.0_45]         at java.lang.Thread.run(Unknown Source) [?:1.7.0_45] [15:40:59 ERROR]: Gave up trying to download https ://libraries.minecraft.net/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar for job 'Version & Libraries' [15:40:59 ERROR]: Job 'Version & Libraries' finished with 26 failure(s)! (took 0:01:06.362)


How to install the latest compatible MacOS version?

I have a Mac Mini (Mid 2011, Core i5, 8GB RAM) running OS X Lion.  This Mac , so I'm trying to find out:   which MacOS version is the last compatible with this Mac how to get the update?   Things I tried:   I installed all available updates in Software Update, yet I'm not proposed an upgrade to a later OS X version. Searching the App Store for MacOS only offers MacOS Mojave. Using MacOS internet recovery (Option-Command-R) installs Lion again.


How may i run an application and pass parameters to it through c#?

I want to run an external application and pass some parameters to it.  How may i do this in .net framework?


Retrieve column names from java.sql.ResultSet

With java.sql.ResultSet is there a way to get a column's name as a String by using the column's index? I had a look through the API doc but I can't find anything.


I installed the latest version of Eclipse using the installer wizard. (I was following the instructions in the following .)  I can run eclipse from the command line as follows:  $ ~/eclipse/java-neon/eclipse/eclipse   I was wondering if I could set it up so that I can run Eclipse by just typing:  $ eclipse   However, I am not sure whether it is "better" to add the folder ~/eclipse/java-neon/eclipse/ to the PATH, or to add a symbolic link to the eclipse executable to one of the directories in the current PATH. (In case it is recommended to add a symbolic link, which of the directories is preferred?)


How do I display a mesh with curved lines?

I sometimes see relatively low-poly meshes displayed with the lines between the nodes curving to the surface of what I assume to be a subsurfed form. I uploaded a few images to imgur that I found on google that indicate what I mean:    Notice the line coming from the temple and curling around the ear, as well as the vertical lines on the back of the neck.    Look at the vertical lines coming from below the armpits up across the pectoral muscles and the lines running from the shoulders down the arms at the spaces between the deltoids and biceps.  Hopefully, I'm communicating what I mean properly. Anyways, I wanted to know how I can enable these curves.


More options when flagging for migration

I think there should be more Stack Exchange networks available when flagging a question to be migrated. For example I'd think that the following question:    ...would be a better fit on unix.stackexchange.com instead of Stack Overflow. But without the option to mark it so, I feel hesitant to mark it.


I have been having a problem with my LibreOffice, all the icons have vanished.    I have tried resetting everything but I did not make changes from the start so that did nothing. Then I tried to purge libreoffice through terminal but ran into another problem there with (13: Permission denied).


entire function that maps real line to itself is linear

Let $f:\mathbb{C}\to\mathbb{C}$ be an entire function be such that $\mathbb{R}=f^{-1}(\mathbb{R})$. Show that $f$ is linear. i.e.  $$\exists\ a,b\in\mathbb{R}:f(z)=az+b$$  Hint  I think that $f$ must map the upper half plane and lower half plane to certain two disconnected open sets.  Maybe, if we can show that $f$ is a mobius transformation, then we can then we can look at  $$g(z)=\frac{f(z)-f(0)}{z}$$  and finish.


How to know if my servers should use jumbo frames (MTU)

We have some Red Hat servers, cluster servers for a mabri cluster.  A few questions:   Which Linux command prints the current MTU value? We have not yet configured MTU in the ifcfg file) What is the default MTU value (assuming that we installed the Red Hat machine from an ISO image) In which cases do we need to use high MTU values and what is the maximum value? What is the formula to calculate the MTU?


Are there cerifications needed to bring 5VDC LED Controller to the US market?

We are producing LED programmable controler, the power supply is 5VDC. Do we need any certification (UL or similar) for the US market?


Ubuntu distro upgrade - does it install new kernel?

I performed a distro upgrade via apt-get and upgrade-tool from saucy 13.10 to trusty 14.04.  It seemed to go OK and the "about" now tells me I am running 14.04, however uname -a says I am running kernel 3.11.0-18-generic.  Was the upgrade successful?  I had expected the kernel to change to 13.13, and in fact it looks like the headers in /usr/src are for 13.3.  The machine works OK, however I'm trying to install a new ATI graphics driver and it fails due to incorrect kernel headers (it wants the headers for 3.11.0-18).  I have tried to install the 3.11.0-18 headers but apt seems not to be able to find them.  Any help appreciated.


An exam question is driving me crazy.      Find the mistake in the following:   Four years are a long time to spend away from family and friends.   Literally everyone solved it by replacing are with is.  Could it be "a long" to "long"?


My table has the following columns:  A  |  B  |  C  |  D  |  E  |  F     I want to displays this as follow:  MyColumn  |  MyColumn2   A       |    B   C       |    D   E       |    F   As you can see i want to display the columns as pairs with a custom column name. The pairs are Column A and B, column C and D and column C and D.


Generate key pair deterministically from a particular seed

I've been reading , and I'm wondering if there is a way to generate an RSA private/public key-pair based on some cryptographically secure input, so that if the input stays the same we keep getting the same key pair on the output.  The linked web-site uses elliptic curve cryptography to achieve this property.  Is it not possible with RSA?


If I try to launch Nautilus in whatever way (from Unity, Terminal), it doesn't launch. Terminal gives me these outputs:  launch  name@machine:~$ nautilus  (nautilus:4367): GLib-GIO-ERROR **: Settings schema 'org.gnome.nautilus.preferences' is not installed  Trasovací/ladící past (SIGTRAP) (core dumped [obraz paměti uložen])   launch with sudo  name@machine:~$ sudo nautilus  (nautilus:4672): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files  (nautilus:4672): GLib-GIO-ERROR **: Settings schema 'org.gnome.nautilus.preferences' is not installed  Trasovací/ladící past (SIGTRAP) (core dumped [obraz paměti uložen])   check  name@machine:~$ nautilus -c running nautilus_self_check_file_utilities running nautilus_self_check_file_operations running nautilus_self_check_directory  (nautilus:4689): GLib-GIO-ERROR **: Settings schema 'org.gnome.nautilus.preferences' is not installed  Trasovací/ladící past (SIGTRAP) (core dumped [obraz paměti uložen])   I tried to reinstall Nautilus (with purge), reboot, remove ~/.config/nautilus, step by step at first and then all at once but nothing worked. I haven't changed any configuration or made any significant changes in Ubuntu system since installation. Yesterday Nautilus worked, today doesn't. Does anybody know how to fix it?


I think this sentence is correct.     I done something.   This is also correct.     I have done something.   What are the involved tense? How are they different?


How can I sort a Map according to the parameters of its values?

Stream<Map.Entry<String, List<Object>>> sorted = index.entrySet().stream()                 .sorted(Map.Entry.comparingByValue());      The method sorted(Comparator<? super Map.Entry<String,List<NFArticle>>>) in the type Stream<Map.Entry<String,List<NFArticle>>> is not applicable for the             arguments (Comparator <Map.Entry<Object,Comparable<? super Comparable<? super V>>>>)   I want to sort a Hashmap according to the size() of Lists being the values of the HashMap. How can I achieve this using the Stream library from Java 8?


What is the pronunciation of the possessive words that already end in s?

Possible Duplicate:           My name is Greg — this is Greg 's post.  If my name ended with an 's', I am aware of the proper apostrophe usage (James → James'), but how should this be pronounced?  Phonetically, am I Jameses best friend or James best friend?


How is it possible to add comments in LaTeX and in the produced pdf show them with a different color?


How to calculate d in RSA for my number with this

I took the p&q value as 61 & 53 and n=3233 e=17 d=? How to find it? Plz help me...


How to explain the commutativity of multiplication to middle school students?

It's easy for natural numbers: $3\times 5=5\times 3$   ***** ***** *****  but how do you explain that $x.y=y.x$ for any real numbers $x$ and $y$.  Moreover, in $\Bbb{N}$, do you prefer to define $n\times m=\underbrace{n+n+\cdots+n}_{m\text{ times}}$ or $n\times m=\underbrace{m+m+\cdots+m}_{n\text{ times}}$.


Elementary question about the limit $\big( 1 - \frac 1 {\sqrt n}\big )^n$, $n\to\infty$.

When calculating the limit $L=\big( 1 - \frac 1 {\sqrt n}\big)^n$, $n\to\infty$, what allows me to do the following:  $$ L=\lim \left(\left(1-\frac {1}{\sqrt n}\right)^\sqrt{n} \right)^\sqrt{n} $$  As the term inside the outer parenthesis goes to $e^{-1}$, we have $L=\lim e^{-\sqrt n}=0$.  It's like we're distributing the parenthesis somehow:  $$\lim \left(\left(1-\frac {1}{\sqrt n}\right)^\sqrt{n} \right)^\sqrt{n}=\lim \left(\lim\left (1-\frac {1}{\sqrt n}\right)^\sqrt{n} \right)^\sqrt{n}=\lim e^{-\sqrt n}$$  The question is: Why can we do this? Which property are we using?


"Editor invited" to "Decision in Process"

I submitted my paper to World Scientific journal for a week ago. The "Editor invited" status stayed since the submission, and then it changed to "Decision in Process" directly. It seems strange. Normally “editor invited” comes after manuscript screening. Why was there no "with editor" status and why did it change to "Decision in Process"?


Given vectors spaces $V,W$ with finite dimension,is that true to claim that if $W \subseteq V$ and $\text{dim}(V)=\text{dim}(W)$ implies that $W=V$? For finite sets $A$ and $B$ with $\left|A\right|=\left|B\right|$ I know that if $A \subseteq B$  then $A=B$,but I'm not sure if the same does hold for vector spaces with finite dimension. If it does hold then please give me a proof,if it's not true please provide a counterexample.


Should I write my name with accents in my article?

My first name is pretty common, but in Spanish it is accentuated.  I've seen people keeping their names accented and people who don't. I wonder if there's a formal recommendation on this matter.


Is it appropriate to cite a paper in a language I don't understand?

Some months back I got into a situation where a paper with information that I considered important to prove a point was in a language I cannot understand. Since it was important but not crucial, I ended up not using the paper. Except for its abstract, which was in English, the entire paper was in this other language. It had graphs and images that I could understand without knowing the language.  At the time, I was tempted to use Google Translate in order to get the general idea of the paper  (in more detail than what is given in the abstract), while not necessarily trusting on the specific information that the translation gave me (). Since this would still leave me with some measure of uncertainty — there was no way for me to be sure exactly what it was saying — I thought it better to just let the paper go.  But say that in a future situation I find a crucial paper in a language I don't understand: if I use Google Translate, using the paper in a situation that does not require specific information but only it's general gist, would citing it be ethically acceptable?  (It's almost the same situation as , but I'm not concerned with translating the entire paper, for this would take time/resources that I simply don't have access to.)


Did anyone call Carol Danvers Captain Marvel?

I don't remember that anyone referred to her as Captain Marvel in her solo movie. Did anyone in Avengers call her Captain Marvel? If so, why? Did she introduce herself as Captain Marvel?  If not, is that mean, we don't have Captain Marvel, Captain Danvers instead?


Create a nested lists out of another nested lists with while loop

I have this nested list:  summed = [[2, 3, 534, 56, 67, 676, 3423, 234, 34, 75], [546, 678, 23, 57, 7867, 54236, 325, 6546, 587, 114]]   I want to create a new nested list so that it will split the two previous lists into two more. The new list will look like:  new_list = [[[2, 3, 534, 56, 67], [676, 3423, 234, 34, 75]], [[546, 678, 23, 57, 7867, 54236, 325, 6546, 587, 114]]]. Every five numbers of each list will be a new list.   I want to create it with for or while loop. I have done this so far.  i = 0 while i<len(summed):     new_list = []     j = 0     while (j<len(summed[i])):         new_list.append(summed[i][j])         j+=5     new_list2.append(new_list)     i+=1 print new_list


Fixing "ImportError: No module named qgis.core"?

First of all, I'm using Python 2.7.3, QGIS 1.8 (Lisboa) on Windows 7 pro 64 bits.  Now let's go to the actual question:  I have written some code (Python) that works well within the QGIS built in Python console, but now I need to run it from outside QGIS (it is too much to ask for the final user to open QGIS, then the python console and to copy and paste the code).  I have been trying to access the QGIS API, but it is missing from my PYTHONPATH. I've tried whatever is on the instructions, plus a bunch of paths like:  C:\Program Files(x86)\QGIS\apps\qgis\python\qgis and  C:\Program Files(x86)\QGIS\apps\qgis\python. My result so far is always the same:  import qgis.core ImportError: No module named qgis.core   Any ideas?


says that if a body is immersed in water the weight of  displaced water is equal to the buoyancy force experienced by the body. Why volume of displaced  water is equal to buoyancy and not to the substance immersed in it?


Write18: capturing shell (script) output as command/variable?

Let's say I compile the following file with pdflatex -shell-escape test.tex:   \documentclass{minimal}  \begin{document}  File listing is:  \immediate\write18{ls /usr}  \end{document}   This will send the output of the command ls /usr to report/log of pdflatex (primarily to stdout).   There are then two cases I'd like to utilize:    The output of ls /usr being included directly in the document (LaTeX stream). The output of ls /usr becoming the contents of a \newcommand (by this I mean, that I'd like the script to be executed when the \newcommand is executed first - and upon subsequent calls to the new command, the shell code should not be executed anew).    I have read through , but I'm not sure if this "pipe input" can be applied to \newcommand.   I have also read through  - and it seems that Tex' file I/O should be used; but I'm quite disliking the fact that I'd still have to redirect the script output (actually, in this case, the ls /usr output) to a file, and then read it in, to have it as contents of a command.   So, is there an easier way to achieve what I'd want (hopefully, illustrated through an example based on the above code)?     EDIT: Ehm, I should have asked one more question earlier :) I'll try with an edit here, although it will probably get missed .. :)   I originally asked for a \newcommand that will execute shell code only upon its definition (i.e., in a sense it is "cached"); and the answer from @egreg does exactly that. But then - would it be possible to have a different \newcommand definition, such that each time this newcommand is called, the shell command is executed anew? I.e. executing something like \@@input|"cat tempfile" (which cannot be executed as such), where tempfile changes between calls?


I have a fresh installation of GeoNode 2.6 on Ubuntu 16.04. The Web site is accessible, however, we are experiencing issues with the "template-overriding" feature.  I'm aware of .   I have read the doc about . (I could have missed something though, feel free to point it out if that's the case)  From my understanding if I put my HTML sources in /etc/geonode/templates they should override the default sources (that's the behaviour I'm seeking) and the page should update automatically. However that does not seem to be the case. In fact nothing happens (apparently) when I do the latter. I even tried executing the following commands to no avail.  geonode collectstatic service apache2 restart   My local_settings.py seem all right  GEONODE_ROOT = os.path.dirname(geonode.__file__) TEMPLATE_DIRS = ( '/etc/geonode/templates', os.path.join(GEONODE_ROOT, 'templates'), )  # Additional directories which hold static files STATICFILES_DIRS = [     '/etc/geonode/media',     os.path.join(GEONODE_ROOT, 'static'), ]   Is it possible use my templates by putting them in /etc/geonode/templates (as mentioned here) in order to theme GeoNode?   If possible how can that be done ?   If not possible, why is it not?


Allow changing votes on answers if the question is edited

Recently I downvoted the answer because I thought it didn't answer the question.  Not very uncommon reason to downvote, isn't it?  But then the guy, who asked the question, edited his question and I realized that the answer I downvoted actually answers it and deserves an upvote instead!  But I couldn't do it.  I could do it if the answerer had edited his post.   As I understand, the rationale of changing vote after edit is the following.  If I came to the question page for the first time after the edit of the answer, I would've upvoted it instead of downvoting.  But why doesn't the same rationale hold for the cases when the question is edited?  Unless there's a good reason, I suggest to allow changing answer vote on question edits, not only on answer ones.


"E: Unable to locate package update" when I try to update my system, why?

I have almost an hour trying to update my installation, this is how I'm trying to do it:  $ sudo apt-get install update [sudo] password for braiam:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package update   It just doesn't work! Isn't install update the text I should put after sudo apt-get to install updates on my Ubuntu system? If not, what command should I write?     This question is trying to address some common mistakes by users not used to the APT system and apt-get.


I need hel with the bibliography. This is how it appears in my document:  "Author name. Title. **: Journaltitle. (Date)."  But I'd like to remove "In:" before the journaltitle. How can I do that? Thank you in advance for your answers!  This is the packages I'm using for the bibliography:  \usepackage[autostyle,italian=guillemets]{csquotes} \usepackage[backend=biber,style=numeric]{biblatex} \addbibresource{biblio.bib}


Where to store unzipped application files

I have used apt-get a lot to install programs, but I just recently wanted to use Abricotine markdown editor. The way it says to install it is by downloading and extracting a zip file. I do that, and the program has an executable file there along with some other folders and stuff.  I'm new to Linux in general, so could someone tell me where I should move these files and folders? I tried using the terminal to move the whole unzipped directory to /usr/shares/, but then when I search the computer (I'm on Ubuntu 16.10) it doesn't show up.  Where should these files go?  Thanks


Note: This applies to Centos 7. If you are looking for a Debian answer, see . Those answers will not be duplicated here.  After an install of centos 7, I can't access man pages :  # man ls -bash: man: command not found   I tried to install it via yum   # yum install man-pages ... ok   But again:   # man ls -bash: man: command not found   Why?


Possible number of subsets that must intersect of $\{1,2,3,...100\}$

$S$ be a collection  of  subsets  of  $\{1,2,3.....100\}$  such that the intersection of  any two sets in $S$ is non-empty . What is the maximum possible cardinality $|S|$ of $S?$  $A.100$  $B.2^{100}$  $C.2^{99}$  $D.2^{98}$  Now  one thing I  can  tell  is  that  , *if all the subsets  have cardinality $51$ or more then  the  property  easily  holds. So  can I  say $$\sum_{k=51}^{100} \binom{100}{k}$$  is  a possible  answer  although  it is not equal to any  of the ones given in the options.   So, this is not the proper method. Then I thought there is another thing : whatever  the cardinality , the subsets can be chosen in such a way that that they always intersect , with restrictions applying.  So, how  do  I  approach  the  problem ,please show  me a proper way.  Thanks.


I see there have been a lot of questions about the big bang and did it start from a singular point etc. And i agree with the answers given, that the universe is infinite and is expanding about every point within it, like a grid where the space in between the points is expanding or stretching, that is what my intuition tells me and i can picture it.  However I am at a loss as to how this expansion occurs. Einstein theories result in explanation that mass or matter interacts with space and causes the space surrounding the matter to bend and subsequently light bends travelling through the space surrounding the matter, and the change in space's structure manifests in what we observe as gravity where matter we observe attracts other matter toward it by this bent space.  So what my question is asking is what is fuelling or causing the expansion, that is if space requires work to expand it, or is it simply a fundamental property of space and matter that we are yet to have an explanation of, or at least one that I'am unaware of.


When chinese word in mysql where statement

$sql = "SELECT text,pic FROM newstable where type='在线报修上广告' order by id desc limit 0,1";  but you may find the return value is null But i try to use this $sql = "SELECT text,pic FROM newstable where type=N'在线报修上广告' order by id desc limit 0,1";  there is N before '在线报修上广告' ------->>>>>but it works....what's the meaning of this 'N'!!


Prove by induction $\left(1-\frac{1}{2}\right)\ldots\left(1-\frac{1}{2^{n}}\right)\geq\frac{1}{4}+\frac{1}{2^{n+1}}$

Prove by induction $\left(1-\frac{1}{2}\right)\left(1-\frac{1}{4}\right)\left(1-\frac{1}{8}\right)\ldots\left(1-\frac{1}{2^{n}}\right)\geq\frac{1}{4}+\frac{1}{2^{n+1}}$ What would be the best way to solve this by the induction method?


Structure of groups of order $pq$, where $p,q$ are distinct primes.

I don't know about the Sylow Theorems.  But I have been wondering about a proof of the fact that a group or order $pq$ where $p$ and $q$ are distinct primes must be cyclic. I can't quite work out the details, but here is the general idea. I would like help with filling in details. I assume that it is already known that $G$ has subgroup(s) of order $p$ and subgroup(s) of order $q$.  If $G$ is a group of order $pq$ ($p\neq q$), then I know that $G$ has a subgroup $H$ of order $p$ and a subgroup $K$ of order $q$. Then $H\simeq \mathbb{Z}_p$ and $K\simeq \mathbb{Z}_q$.   But then $H\oplus K \simeq \mathbb{Z}_{pq}$, so I would think that $H\oplus K \simeq G$. I guess one could do an internal direct product instead of an external direct product, but I don't know that $H$ and $K$ are normal subgroups.  I am asking for help completing this argument.  Edit: I see from the comments below that I might need to assume that the smaller prime does not divide the larger prime minus $1$. Or maybe it is enough to assume that the primes are greater than or equal to $3$ (Still distinct).


Is there a (intrinsic) way to invite particular users to join a newly created chat-room?

Much as the title says. I've decided to create a  today for a particular tag () I want to promote. I know there are some users around, that will be interested in discussions about this tag (or simply to meet the other enthusiasts about it). Is there an accepted way to invite (notify about) these particular people to participate in this chat room? (The chat-room is public anyways)?


Morphism between quotient sheaf ($K_{X}/\mathcal{O}_{X}$) and $\bigoplus_{x\in\mathcal{X}}i_{x,*}(K(X)/\mathcal{O}_{X,x})$

Consider an integral scheme $X$ of finite type over $k$ of dimension $1$. Then $X$ consists of one generic point $\eta$ and the rest of the points are closed points. We call the set of closed points $\mathcal{X}$. Let $K_{X}$ be the constant sheaf with value $K(X)(=\mathcal{O}_{X,\eta})$. I want to show that the map  $$K(X)\rightarrow \bigoplus_{x\in\mathcal{X}}K(X)/\mathcal{O}_{X,x}, \qquad [U,f]\mapsto ([U,f] + \mathcal{O}_{X,x})_{x\in\mathcal{X}}$$ is a well-defined map of $k$-vectorspaces.   Background information: By showing that this is a well-defined map of $k$-vectorspaces one can actually show that the quotient sheaf $K_{X}/\mathcal{O}_{X}$ is isomorphic to the direct sum sheaf $\bigoplus_{x\in\mathcal{X}}i_{x,*}(K(X)/\mathcal{O}_{X,x})$ induced by the inclusion $i_{x}:\{x\}\rightarrow X$. It is clear that this particular direct sum sheaf is flasque. We can thus find a canonical flasque resolution of $\mathcal{O}_{X}$ to compute the cohomology groups of $\mathcal{O}_{X}$.  Problems:  1. To show that this map is well-defined we need for every $[U,f]\in K(X)$ that for only finitely many $x\in\mathcal{X}$, $[U,f]\neq 0$. But I don't see why this has to be the case.   2 I struggle with the scalar multiplication inside $K(X)$. I know that $\mathcal{O}_{X,\eta}\cong \mathcal{O}_{\operatorname{Spec}(R),\eta} = \operatorname{Frac}(R)$ for some finitely generated $k$-algebra $R$ by the fact that $X$ is of finite type over $k$. Thus $K(X)$ indeed is a field and has a $k$-structure on it. But I don't understand the structure well enough to show (formally) that the map indeed preserves the scalar multiplication.   Any help would be appreciated!


Is 4h 15m enough time to transit Haneda airport to Narita airport?

When I come back from Vietnam to North America, I have an airplane transfer in Japan. The arrival time is 6:55 AM in Haneda airport and my second plane is set at 11:10 AM the same morning... (gives me a small total of 4 hours and 15 minutes to get from the first one to the second one).  I read that it takes about 90 minutes with the airport bus system, but that it could take much longer because of traffic (and that I could wait some time before the bus departs).  It is possible? What is my alternative if this doesn't seem doable? Call my flight agency and change it?


Capitalise cleveref reference of algorithm2e

I'd like to reference an algorithm from algorithm2e using hyperref and cleveref. The goal is that "Algorithm" is capitalised in the reference. Neither using the capitalise option nor including manual reference names using \crefname{algocf}{alg.}{algs.} \Crefname{algocf}{Algorithm}{Algorithms}  works, unfortunately. A minimum example is: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[ruled,vlined]{algorithm2e} \usepackage{hyperref} \usepackage[capitalise]{cleveref}   \begin{document}   \begin{algorithm}[t] \SetAlgoLined test \caption{test algorithm} \label{algo:test} \end{algorithm}   Reference is \autoref{algo:test}.   \end{document}


Does $\lim_{h\rightarrow 0}\ [f(x+h)-f(x-h)]=0$ imply that $f$ is continuous?

Suppose $f$ is a real function defined on $\mathbb{R}$ which satisfies    $$\lim_{h\rightarrow 0}\ [f(x+h)-f(x-h)]=0.$$   Does this imply that $f$ is continuous?   Source: W. Rudin, Principles of Mathematical Analysis, Chapter 4, exercise 1.


Equation and nomenclature shortcut macros yield duplicate nomenclature entries

I am trying to create an easy way to include a number of equations in multiple spots of a report (or reports) without having to retype them each time and keep nomenclature consistent across all equations. I have an "equation library" that I want to include in various files to make the equations available. % eq.tex \def \a {\nomenclature{$a$}{Coefficient}} \def \b {\nomenclature{$b$}{Coefficient}} \def \c {\nomenclature{$c$}{Coefficient}} \def \m {\nomenclature{$m$}{Slope}} \def \x {\nomenclature{$x$}{Variable}} \def \y {\nomenclature{$y$}{Variable}}  \def \line { \label{line} \b \m \x \y $$y=mx+b$$ }  \def \parabola { \label{parabola} \a \b \c \x \y $$y=ax^2+bx+c$$ }  This way I can just include \line in a file and have the necessary nomenclature available. % main.tex \documentclass{article} \usepackage{nomencl} \makenomenclature \input{eq} \begin{document} \printnomenclature  \line     \parabola  \end{document}  This produces the nomenclature as you would expect  Nomenclature a   Coefficient b   Coefficient c   Coefficient m   Slope x   Variable y   Variable  However, I would like to have an equation number and label available to reference in the text. When I introduce the equation environment, the nomenclature section has duplicate entries. I've tried both \begin{equation} \line     \end{equation}  \begin{equation} \parabola \end{equation}  and \def \line { \label{line} \b \m \x \y \begin{equation} y=mx+b \end{equation} }  \def \parabola { \label{parabola} \a \b \c \x \y \begin{equation} y=ax^2+bx+c \end{equation} }  which both yield duplicate entries in the nomenclature  Nomenclature a   Coefficient b   Coefficient b   Coefficient c   Coefficient m   Slope x   Variable x   Variable y   Variable y   Variable  Is there something special about the equation environment that is throwing this off? Am I missing some fundamental understanding about defining terms? I also tried using \newcommand and the document wouldn't compile


How do I fix booting process in Ubuntu 12.04 after the windows7 removed?

The windows7 OS successfully removed, but can't boot in Ubuntu, said the bootmgr is missing. Also the hdd password is frozen.


How to restore/recreate etc/nsswitch.conf files

Accidently I corrupted my nsswithch.conf file and now my hosts are not working. How can I restore or recreate it?


How do you test iptables rules to prevent remote lockout and check matches?

As I'm learning about iptables I've made a couple of mistakes and locked myself out.  What method(s) do you use to test rules without locking yourself out?  I'm using ubuntu server 12.04 LTS    All the answers below were helpful.  In the end I used a combination of options.  It also helps to have IPMI access to your remote server just in case!  But ideally test the rules locally on a replicated environment and test that first.  Vagrant helps in this regard to get test setups working quickly.


Is there a place to review journals or conferences?

There are plenty of journals and conferences in my research area. And there are things we could look up in advance, like impact factor, journal rank and so on.   But I would like to find a place where I could put my personal experience with the journal (or conference).   For instance, in Amazon the customers can review and criticize the books they read. In my country there is a site where you can complaint about any company that failed to satisfy the customer (a flight company, a magazine, a bank, etc).   One could argue that this would be unfair to the people that invest their time as editors or reviewers, but in my opinion it is a two-way relationship. Things like waiting one year without an answer from editors, poor review or evasive answers, is a disrespect to a research group who invests a lot of time as well.  So, is there a place where one could respectfully give a review and share their experience with a journal or conference?


How can I create an xml sitemap without using any plugin?  <?xml version="1.0" encoding="UTF-8"?>     <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">         <url>             <loc>http://www.example.com/</loc>             <lastmod>2005-01-01</lastmod>             <changefreq>monthly</changefreq>             <priority>0.8</priority>         </url>         <url>             <loc>http://www.example.com/about.htm</loc>             <changefreq>daily</changefreq>         </url>     </urlset>   How can I auto-generate a sitemap,  I have 2000+ posts on my blog, and what is the method to add auto entry into sitemap when publishing a post. I have tried plugins but i want it manually without plugins like Google sitemap generate,


I am having issues with proving the second step, and have been told that it would be best to approach this question by induction. I have manages to get this far:  $$\left(\int_{a}^b g(x)f(x)=\frac{(-1)^{k}}{c^{k}}\int_{a}^b g(x)f^{(k)}(x)\right)\times\frac{-1}{c}$$ $$\frac{-1}{c}\int_{a}^b g(x)f(x)=\frac{(-1)^{k+1}}{c^{k+1}}\int_{a}^b g(x)f^{(k)}(x)$$ $$-\int_{a}^b g(x)f(x)=\frac{c(-1)^{k+1}}{c^{k+1}}\int_{a}^b g(x)f^{(k)}(x)$$ $$-\int_{a}^b g(x)f(x)=\frac{(-1)^{k+1}}{c^{k+1}}\int_{a}^b cg(x)f^{(k)}(x)$$ $$-\int_{a}^b g(x)f(x)=\frac{(-1)^{k+1}}{c^{k+1}}\int_{a}^b g'(x)f^{(k)}(x)$$  From here I have no idea how to produce $f^{(k+1)}(x)$ inside the integral, or whether this was the right way to approach solving this problem. Any pointers with how to proceed would be awesome!  Cheers


I'm not a moderator. I have ~50k rep on Server Fault. I am a regular in chat.  Because chat allows all 10k+ users across the network to act on chat flags, I (and many other regulars in SF chat) see some problematic users from other chats flagging things that aren't actually offensive.  I disagree with the current chat moderation model where anyone from any community with enough rep can vote on small snippets of text that provide no context. I think that's a bad system. It's been brought up time and again that there must be a better way to handle it, but nothing has happened to date.  If the global chat moderation system won't be re-thought, I would like to be given a way to opt out of seeing chat flags that originate from outside rooms that I'm currently in.   I was never elected as a mod, I never asked to be able to see them, and they get on my nerves.    TL;DR - I don't want to see chat flags from rooms that I'm not in. Let me opt out of seeing them.


Why the lighter gas, nitrogen, does not rise above oxygen in Earth's atmosphere?

It is known that the atmosphere consists mostly of oxygen and nitrogen, with oxygen constituting about 21 % and nitrogen 78 %. Since released helium and hydrogen gases rise upwards in the atmosphere, when they are released from a container, one would naïvely think that the lighter nitrogen would rise above oxygen, and then we would have "onion-like" structure of atmosphere, with different shells consisting of different elements. But clearly this is not the case. Why this reasoning fails for nitrogen?


I have files on my website which I need access to files on my server and they also need to be able to be edited by the webserver. Now with my current setup I cant seem to do that.  If the owner/group is imran:imran then I have full access to that file but my webserver cant seem to open/edit those file. Now I was told that I need to match the files owner/group with the ones the webserver uses, I had a look at files that the webserver created and they were nobody:nobody. So I changed my whole public_html owner/group to nobody:nobody because I simply had too many files in the folder which needed to be edited by the webserver and would take too long to change owner one by one. The webserver was able to edit it just fine after changing the owner but then I realized something.. now I cant even view the public_html folder.  Does anyone know whats the correct way to set the owners so that I have access as well as the webserver?  (This is on a WHM/cPanel powered server)


How come bigger black holes lose energy slower?

My understanding of Hawking radiation is probably extremely lackluster but from my understanding, two virtual particles pop into existence just like anywhere in the universe. Except due to the extreme gravitational influence of the black hole one particle escapes at c and the other is pulled in overtime this causes the black hole to lose mass.  So this event can only take place at the event horizon but from my understanding supermassive black holes radiate away much slower than smaller black holes (the extreme mass difference aside.)   How come supermassive black holes radiate away at a slower rate than small black holes despite having more surface areas?  And if the particle escapes and doesn't destroy each other how come this doesn't create infinite energy?


How to prove rank(A+) is no more than rank(A)?

look here my friend. How to prove the following equation? Or give a counter-example. Thank you so much  $$\text{rank}(A^+)\leq \text{rank}(A)$$  where $\text{rank}(A^+)$ represents the positive components of matrix $A$, e.g. $$\left[\begin{matrix}2 & -1.5 & 0\\-2.3 & 2 & 4.1\end{matrix}\right]^+=\left[\begin{matrix}2 & 0 & 0\\0 & 2 & 4.1\end{matrix}\right].$$


Find the biggest value of $|a-b|+|b-c|+|c-a|$ when $a^2+b^2+c^2=1$

Given that $a^2 + b^2 + c^2 = 1$ How can I prove that the maximum value of |a - b| + |b - c| + |c - a| is $2\sqrt{2}$ ? In extends, given that $a_1^2 + a_2^2 + a_3^2 + ... + a_{2020}^2 = 1$ find the maximum value of $|a_1 - a_2| + |a_2 - a_3| +|a_3 - a_4| + ... + |a_{2020} - a_1|$


Adding Class to views row if View style is Unformatted list / Content

I need to add a CSS class to a views row depending on a field. So far this is easy going if I use Fields as Content (add class via replacement patterns then).  But I find it far more difficult to do this when using Row style "Content" and a custom view mode (e. g. Teaser).  I found the following code to work for me if I use Row style "Content":  function mytheme_preprocess_views_view_unformatted(&$vars) { foreach($vars['view']->result as $rkey => $rval) {     $node = node_load($rval->nid);     if(isset($node->field_breite) && !(empty($node->field_breite)))     {         $vars['classes_array'][$rkey] .= $vars['classes_array'][$rkey] . " " . $node->field_breite[LANGUAGE_NONE][0]['value'];     } }   }  I like to ask if this is a suitable approach or am I maybe wasting resources by loading each node and can I grab the node data easier somewhere else?  PS: It is not a option for me here to use Fields in the View as content because I want to use different content types in the view with different fields.  Settings:


You should be able to collapse certain parts of posts

I wrote a rather long answer today that had many parts to it and it may have actually been confusing to some readers which section started and ended where, and though I tried my best, there was just so much stuff that people could still miss it. So I think that it would be really good if there was a way of collapsing parts of a post, so that there would be a title for that section and then a little arrow which when pressed would reveal the section within it which could contain images and text alike and would just be a way of easily compressing a post and only showing what is necessary and the user wants to see at one time.  The poster could also choose which parts should be collapsed by default, and which not. This would mostly be useful in answers.  You are currently able to hide certain parts of a post with >! but that does not fully collapse the section nor does it work well for large sections because to scroll down you will probably have to allow it to disappear again.


Is it ok to choose a different answer for a bounty award than the one I accept?

I placed a bounty on one of my questions, and I'm thinking of accepting one answer but awarding a bounty to another. Is this possible and is it socially acceptable? (Re the former, , but re the latter it seems a bit of a strange thing to do.) Roughly speaking, my reasoning is that one of the answers that came in after I placed the bounty shows a lot of effort and tackled some specific issues that I raised, using skills I didn't have. But another, earlier answer might be a nicer summary answer.


Explaining Horizontal Shifting and Scaling

I always find myself wanting for a clear explanation (to a college algebra student) for the fact that horizontal transformations of graphs work in the opposite way that one might expect.  For example, $f(x+1)$ is a horizontal shift to the left (a shift toward the negative side of the $x$-axis), whereas a cursory glance would cause one to suspect that adding a positive amount should shift in the positive direction. Similarly, $f(2x)$ causes the graph to shrink horizontally, not expand.  I generally explain this by saying $x$ is getting a "head start". For example, suppose $f(x)$ has a root at $x = 5$. The graph of $f(x+1)$ is getting a unit for free, and so we only need $x = 4$ to get the same output before as before (i.e. a root). Thus, the root that used to be at $x=5$ is now at $x=4$, which is a shift to the left.  My explanation seems to help some students and mystify others. I was hoping someone else in the community had an enlightening way to explain these phenomena. Again, I emphasize that the purpose is to strengthen the student's intuition; a rigorous algebraic approach is not what I'm looking for.


Reaching 99.9% of the speed of light $c$ at 1G acceleration

If an object in space accelerated at $9.8$ms$^{-2}$ constantly, and no other forces were experienced, how long would it take for the object to reach the $99.9\%$  of the speed of light $c$.


I know I can call the GetVersionEx Win32 API function to retrieve Windows version. In most cases returned value reflects the version of my Windows, but sometimes that is not so.  If a user runs my application under the compatibility layer, then GetVersionEx won't be reporting the real version but the version enforced by the compatibility layer. For example, if I'm running Vista and execute my program in "Windows NT 4" compatibility mode, GetVersionEx won't return version 6.0 but 4.0.  Is there a way to bypass this behaviour and get true Windows version?


Wifi Not Working On Ubuntu 14.04 Lenovo G 50-30

I am facing problem to enable wifi on my Lenovo G50-30 Below are the command out put please help me out   lspci | grep -i wireless:  02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter     nm-tool:  NetworkManager Tool  State: disconnected  - Device: eth0    Type:              Wired   Driver:            r8169   State:             unavailable   Default:           no   HW Address:        28:D2:44:81:36:0B    Capabilities:     Carrier Detect:  yes    Wired Properties     Carrier:         off   - Device: wlan0   Type:              802.11 WiFi   Driver:            rtl8723be   State:             unavailable   Default:           no   HW Address:        14:2D:27:21:8D:47    Capabilities:    Wireless Properties     WEP Encryption:  yes     WPA Encryption:  yes     WPA2 Encryption: yes    Wireless Access Points      nmcli nm:  RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN       running         disconnected    disabled        disabled   enabled         disabled       sudo rfkill list:  0: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: yes 1: ideapad_bluetooth: Bluetooth     Soft blocked: no     Hard blocked: yes 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 3: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no


I'm using ASP.NET 2008 to create an web application with login page "Login.aspx". In that I've use  control. Inside that I've created a table structure to place the controls and in that I've place username and password textboxes.  <asp:Login ID="LoginUser" LoginButtonStyle-CssClass="CommonButton" runat="server"      OnLoggedIn="LoginUser_LoggedIn" OnLoginError="LoginUser_Error" TitleText=""      Width="100%" DisplayRememberMe="true" OnLoggingIn="LoginUser_LoggingIn">

                           <asp:TextBox ID="UserName" runat="server" autocomplete="off" CssClass="CommonTextBox" Width="325" TextMode="SingleLine"></asp:TextBox>

                           <asp:TextBox ID="Password" runat="server" autocomplete="off"  CssClass="CommonTextBox" Width="325" TextMode="Password"></asp:TextBox>

 </asp:Login>   Now when I enter username and password, the browser prompts for save password. But I don't need that prompt.  I'm not using any HTML controls. Its all ASP.NET controls.  How to prevent browser from prompt..?  I've used everything that was already answered. But nothing worked for me. That's why Ive asked newly. I searched for many possible ways, and all failed. This is not a duplicate one.


Anyone managed to get a live ISO out of a running Ubuntu system? I tried to use Distroshare Ubuntu Imager as shown here:  And the live version worked fine, but when tried to install it the installation always crash. When I looked at GitHub this is a familiar problem. If anyone know how to solve it - I will be very grateful!


Why are doctors addressed as Mr. in the UK?

In the US most physicians, surgeons and dentists are addressed as "doctor". Very few other professionals receive the same title.  In the UK, however, surgeons and dentists seem to prefer to be referred to as Mr. If that is true, why?  And who is addressed as Dr. in the UK?  Those who hold doctoral degrees only?


The Equivalence Principle approaching the speed of light

If, in local system, an accelerated system is completely physically equivalent to a system inside a gravitational field.  Acceleration results in an increase in speed.  Right?  What happens when the accelerated "elevator" accelerates to the point where its speed hits (or exceeds?) the speed of light?    Does it stop at the speed of light?  Is that a possible way to distinguish between the two different forces?  Or does something else happen?


Article abstract affects indent in the whole document

Using the abstract environment in my article seems to affect the whole document in regard to indentation. What am I doing wrong?  \documentclass[11pt]{article} \setlength\parindent{0pt} % sets indent to zero \setlength{\parskip}{10pt} % changes vertical space between paragraphs  \begin{document}  \abstract{Test test test}  \section{Test}  Test  Test  \end{document}


Copy all files except those that are executable

I have a backup script that copies all the files in my programming directory to an external HDD.  Right now, the output files are called program.out and my script is set to ignore them, but I would like to rename them to just program.   How can I remove the extension of each output file? E.g. file.out to file. How would I make my script to ignore the files without an extension?   In case it is needed, here is my script:  #!/usr/bin/env bash cp ~/.vimrc /run/media/alex/32GB/lb/  cp ~/.bashrc /run/media/alex/32GB/lb/ cp /etc/hosts /run/media/alex/32GB/lb/hosts #cp ~/.irssi/config /run/media/alex/32GB/lb/irssi/ #rsynv -av if ext4, tvr and --modify-window=1 for fat32 rsync -tvr --modify-window=1 --exclude-from /run/media/alex/32GB/.exclude --progress /home/alex/Documents/* /run/media/alex/32GB/ cp $0 /run/media/alex/32GB/


libgcc-s1 breaks gcc-9 on Ubuntu 18.04 arm64

Somehow both gcc-7 and gcc-9 were removed from my Ubuntu 18.04.4 arm64 system and we need these to compile our code. To me, it seems like an update to libgcc-s1 as of 04-05-2020 has broken the arm64 compatibility for these in 18.04. Does anyone have a solution or workaround? When I try to reinstall them I get: $ sudo apt-get install gcc-9 g++-9 gcc-7 g++-7 Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  g++-7 : Depends: libstdc++-7-dev (= 7.5.0-3ubuntu1~18.04) but it is not going to be installed  g++-9 : Depends: libstdc++-9-dev (= 9.2.1-17ubuntu1~18.04.1) but it is not going to be installed  gcc-7 : Depends: libgcc-7-dev (= 7.5.0-3ubuntu1~18.04) but it is not going to be installed  gcc-9 : Depends: libgcc-9-dev (= 9.2.1-17ubuntu1~18.04.1) but it is not going to be installed  if I try to install these dependencies I get: $ sudo apt install libstdc++-9-dev libgcc-9-dev libstdc++-7-dev libgcc-7-dev Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgcc-s1 : Breaks: libgcc-7-dev (< 7.5.0-4) but 7.5.0-3ubuntu1~18.04 is to be installed              Breaks: libgcc-9-dev (< 9.2.1-26) but 9.2.1-17ubuntu1~18.04.1 is to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.  I have checked that there are no held packages and found no available updates for libgcc-s1. I am using the repo ubuntu-toolchain-r/test and my libgcc-s1 is version 10-20200405-0ubuntu1~18.04. Update 07/08: We updated our code to be compatible to gcc10 g++10 and were able to install those successfully.


How do I install the necessary JRE to run Minecraft

I am trying to install JRE 8 to use minecraft, but I got a .tar.gz file. I have extracted the file, it is called JRE1.8.0_201 on my desktop, but I don't know what to do. Can I please have some help here? The guides I have looked at don't show what to do in a clear way.


Finding the roots of a polynomial on a complex plane

I use an online calculator in order to calculate $x^5-1=0$  I get the results    x1=1  x2=0.30902+0.95106∗i  x3=0.30902−0.95106∗i  x4=−0.80902+0.58779∗i x5=−0.80902−0.58779∗i   I know that this is the correct answer because my roots have to be on the complex plane but I do not understand how can I get the results!


sudo apt-get update: The repository 'http://ppa.launchpad.net/ezaquarii/packages/ubuntu bionic Release' no longer has a Release file

I keep getting the error in the title whenever I try to run apt update, as well as a 404 error on the same package. I see it in /etc/apt/sources.list.d: /etc/apt/sources.list.d/   armagetronad-dev-ubuntu-ppa-bionic.list [RO]   armagetronad-dev-ubuntu-ppa-bionic.list.save [RO]   ezaquarii-ubuntu-packages-bionic.list [RO]   ezaquarii-ubuntu-packages-bionic.list.save [RO]   nodesource.list [RO]   nodesource.list.save [RO]  But I cannot edit the file. ezaquarii does not appear in /etc/apt/sources.list. I think I downloaded the ppa from here:  I tried uninstalling it how you would normally uninstall a ppa but I get the following error: sudo add-apt-repository --remove ppa:ezaquarii/packages Cannot add PPA: 'ppa:~ezaquarii/ubuntu/packages'. The user named '~ezaquarii' has no PPA named 'ubuntu/packages' Please choose from the following available PPAs:


Volume of an n-simplex (Without Probabilities)

Compute the volume of $$ S_n=\{(x_1,x_2,...,x_n)\in\mathbb{R^n},x_i\geq 0,\displaystyle\sum_{k=0}^{n} x_i<1\} $$  I don't really have an idea how to solve it.  My 'work': Perhaps I could use  $$ ||x||_1=|x_1|+...+|x_n| $$ So the set is  $$ S_n=\{(x_1,x_2,...,x_n)\in\mathbb{R^n},x_i\geq 0,B(0,1)\} $$ Where $$ B(0,1)=\left\{M\in\mathbb{R^n} \,\mid\,d(M,0)<1\right\} $$ But I don't see where it leads me...  Thank you in advance


Prove that for any even positive integer $n$, $n^2-1 \mid 2^{n!}-1$     This is from a book. They have given the proof. But I didn't understand it well. I am looking for a simpler proof. Or it will be helpful if someone explain this a little bit more - Proof: Let $m = n+1$ then we need to prove that $m(m-2) \mid 2^{(m-1)!}-1$. Because of $\phi(m) \mid (m-1)!$, we have $2^{\phi(m)} -1 \mid 2^{(m-1)!} -1$. And from Euler's theorem, $(m-2) \mid 2^{(m-1)!}-1$. Because $m$ is odd, $gcd(m,m-2)=1$ and the conclusion follows.


Inserting the value from Datetime field form

I have a form where the user can input datetime and then I want to store it in the database. Here's my schema :     'start' => array(           'type' => 'varchar', 'mysql_type' => 'datetime',           'not null' => FALSE,         ),   The form :     $form['add']['start'] = array(         '#type' => 'datetime',   '#default_value' => $date,       );   When I hit submit button, it shows me :     db_insert failed. Message = SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value:...   What I got out of it was that the DateTime in Drupal is incompatible with MySQL's. Any suggestions or how should I process the value from the form so I can insert it into the db?  Alternatively, any way to convert DrupalDatetime into string?  (For what it's worth I also tried 'timestamp' as the MySQL type but it throws me the same error).


What’s the best way to reload / refresh an iframe?

I would like to reload an <iframe> using JavaScript. The best way I found until now was set the iframe’s src attribute to itself, but this isn’t very clean. Any ideas?


How would we estimate, ahead of time, "the chances" of LIGO spotting black holes colliding in the period that it has been operating?

Can anyone summarize calculations that have been done about the theoretical probability of a detectable black hole collision happening in the observable universe within the time that LIGO has been operating?  I mean, given what we know about processes and parameters in the universe - about densities of black holes, rate of explosion of stars etc - how often would we expect an observable event?  This question is looking for an analysis independent of observations of actual GW events.  It's the scientific "what does theory predict" question.  If we just think for a moment about black hole mergers (as opposed to other GW events), the types of thing that obviously need to be taken into account is "what is the density of black holes throughout the lifetime of the universe?", to determine what is the chance that they merge.   This is a complicated question in itself, because the relevant density comes from earlier and earlier in the universe's life the further away the event is (obviously?).  But interestingly, there's also the problem if the planar nature of GW wave fronts.  What is the chance that Earth happens to be in the plane of the GW event at the time - it seems to me that this aspect alone must dramatically reduce the number of probable observations...  It appears to be an obvious question, but googling the exact question, and creative variants I could think of, does not uncover anyone else asking it or addressing it.  Similarly, ligo.org does not appear to have any material talking about this topic.  The consideration is alluded to in , but not given any direct elaboration that I could find.  Interestingly, the answers in  are massively different.  One says "possibly daily" and the other says "should see one by 2020".  Neither offer any justification.


How to install all i386 libs to match installed 64 libs for 12.04

Looking for turnkey solution for 12.04 lts.  That is the equivalent of doing an apt-get install ia32-libs from earlier Ubuntu distros  Reason: games that need 32 bit support or anything really. Just want to install all 32 bit equivs of installed 64 bit libs with out having to do it one at a time trial and error style.


Let $V$ be a vector space with an inner product $\langle.,. \rangle$ and associated norm $|| . ||$ Then:    Could I have a proof of this fact?


When im using text area the output format is different from input format eg:   input as :   hi,  hello world.  it outputs :  hi,hello world  what changes i want to make this code  to get a format as input.  <html> <head> </head> <body> <form method="get" action="textarea.php"> <pre> <textarea name="name"> </textarea> </pre> <input type="submit" name="submit"> </form> <?php if(isset($_GET['submit'])) {     $name=$_GET['name'];     echo $name;  } ?> </body> </html>


Time travel film: character with male and female reproductive organs is taken back in time by a barman who turns out to be themselves

I have had a friend give me a rough description of a film and I'm curious to find out what it actually is. I don't know very much. I understand this will be difficult, especially since every time my friend explains the tale it's different so this description is likely to contain some inaccuracies.  The film's plot begins with a recounting given by the main character, who had both male and female reproductive organs but had one set removed (not sure which, think male ones were removed). The main character is narrating this tale to the barman in a bar. The barman then takes the main character back in time, where they make love to themselves and produce a child.  The child, once born, is abandoned by the mother in the past - but the barman takes the child to the orphanage and leaves them there, ensuring their survival. Eventually it is revealed that the child was the main character themselves, and so was the barman.  In other words every major character introduced up to that point was the same person who had severely messed with their own timeline.


I'm trying to program a button that randomly picks a color from the color array and chooses between these four values, and the color will be given to a new element.  They're classes that are defined in css. It's not working properly though as I don't see the issue with what I'm doing.      <script>     var colorArray = [ '.st1', '.st2', '.st3', '.st4'];     var randomColor = Math.floor(Math.random()*colorArray.length);     </script>        <label>         Class: <input type="text" id="new-class" value="randomColor">       </label>    <button type="button" onclick="addObject()">     Make Ball   </button>   Can anyone see to what I'm doing wrong?


How to catch event on element create by javascript

I have a link create by javacript  View more   (I have library jquery)   $('.view-more').click(function() {       console.log($(this).attr('start'));  })


I'm having trouble with \includegraphics I'm using MacTeX

Firstly and fore-mostly I am a complete new comer to the world of LaTeX and so please do bear with me. I will try to be as accurate as I can but if you need any more info please let me know.  All I want is to figure out how to import a graphic into LaTeX (MacTeX).  I am using the following in my code:  \documentclass[10pt,a4paper,draft]{report} \usepackage{graphicx}   Then in my document section I'm using   \begin{figure} \includegraphics[width = 50mm]{Name.jpg} \caption{Label} \end{figure}   Once I compile the document, the area for the picture has been allocated but there is no image, I have tried .png and .pdf files also.  I know that this is a very simple question and I hope there is a simple solution but I cannot find anything on the net about this (which may mean I'm being dim).  Also I'm using Latexian but I have tried 4 different editors and it doesn't work in any.


I got a new bluetooth headphones and I have a delay. is there a solution?

Today I got some new Bluetooth headphones (i900000 max - Airpods Pro replica) and I know what you'll say - "You got a replica of Airpods, what did you expect?", but hey, I read a review before I bought them and people said that there is no delay, but I have a little delay when watching videos.. I'm using an Android phone (Samsung Galaxy A8 2018) and the only codec that the headphones support is SBC. Is there something I can do to fix the delay?  Thanks.


regex - split by comma except when it's inside specific character

I need to split string based on , except when inside | I tried the approach given  but doesn't work. This is where I want to add regex dfs = [pd.DataFrame(allViolations[c].astype(str).str.split(regex).tolist())     .rename(lambda x: 'Field{}'.format(x + 1),axis=1)     for c in allViolations.columns]  Here I want to replace regex so can't use re. Is there any other way or if I could simplify above statement to use re test = 'a,b' test1 = '|a,b|'  regex = ",(?=(?:[^|]*|[^|]*|)*[^|]*$)" r = test.split(regex) print(r) //['a,b'] r1= test1.split(regex) print(r1) //['|a,b|']


mdframed: how to prevent a box from splitting?

I would like to prevent an mdframed box to split.   I know it could sound absurd, since mdframed is designed to allow splitting but if it could be done, I would be interested in modifying mdframed so that I can decide whenever I want to split or not.  Does anyone has a clue on this?


Should I report a 48th percentile math GRE subject exam score for programs where it's optional?

I recently received my Mathematics GRE subject test score of 650 ( 48%). I know this score is miserable but in my country, I have the option to retake the GRE next year October only.  Assuming otherwise I have a strong profile (with achievements in other examinations in my country and some research experience ) Should I be reporting this score to universities where it is not mandatory (but highly encouraged) to submit Math subject GRE scores? I mean will this score weaken my application?  Before this score, I was thinking of applying to universities like Upenn, Penn State etc but feel really nervous about my admission prospects now..


I am looking to create realistic car movement using vectors

I have goggled how to do this and found this  I have had a go at it but most of the functions that were showed didn't work I just got errors because they didn't exist. I have looked at the cos and sin functions but don't understand how to use them or how to get the car movement working correctly using vectors. I have no code because I am not sure what to do sorry.  Any help is appreciated.   EDIT:  I have restrictions that I must use the TL engine for my game, I am not allowed to add any sort of physics engine. It must be programmed in c++. Here is a sample of what i got from trying to follow what was done in the link I provided.  if(myEngine->KeyHeld(Key_W))     {         length += carSpeedIncrement;     }     if(myEngine->KeyHeld(Key_S))     {         length -= carSpeedIncrement;     }     if(myEngine->KeyHeld(Key_A))     {         angle -= carSpeedIncrement;     }     if(myEngine->KeyHeld(Key_D))     {         angle += carSpeedIncrement;     }      carVolocityX = cos(angle);     carVolocityZ = cos(angle);      car->MoveX(carVolocityX * frameTime);     car->MoveZ(carVolocityZ * frameTime);


Automatically rerun something with sudo if root needed

I'm running Arch Linux in a virtual machine and it's getting REALLY annoying that since some thing require that I cannot be root, I need to sudo most of my commands. It would be nice if I could do something to detect a command needing root, and automatically run/re-run it with sudo giving it root powers. Can someone help me out with this? Thanks. Also, I know this isn't secure, but it's just a VM to experiment in. Also, I have NOT found any automatic solutions. I'm looking for an automatic solution, the question this is supposedly duplicate to does not have an answer that is automatic.


Why do Vim colors look different inside and outside of tmux?

Environment:   Fedora 25 (4.9.12-200.fc25.x86_64) GNOME Terminal 3.22.1 Using VTE version 0.46.1 +GNUTLS VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 22 2017 16:26:11) tmux 2.2   I recently started using tmux and have observed that the colors within Vim change depending on whether I'm running inside or outside of tmux.  Below are screenshots of Vim outside (left) and inside (right) of tmux while viewing a Git diff:    My TERM variable is   Outside tmux: xterm-256color Inside tmux: screen-256color   Vim reports these terminal types as expected (via :set term?):   Outside tmux: term=xterm-256color Inside tmux: term=screen-256color   Vim also reports both instances are running in 256-color mode (via :set t_Co?):   Outside tmux: t_Co=256 Inside tmux: t_Co=256   There are many similar questions out there regarding getting Vim to run in 256-color mode inside tmux (the best answer I found is ), but I don't think that's my problem given the above information.  I can duplicate the problem outside of tmux if I run Vim with the terminal type set to screen-256color:  $ TERM=screen-256color vim   So that makes me believe there's simply some difference between the xterm-256color and screen-256color terminal capabilities that causes the difference in color.  Which leads to the question posed in the title: what specifically in the terminal capabilities causes the Vim colors to be different?  I see the differences between running :set termcap inside and outside of tmux, but I'm curious as to which variables actually cause the difference in behavior.  Independent of the previous question, is it possible to have the Vim colors be consistent when running inside or outside of tmux?  Some things I've tried include:   Explicitly setting the default terminal tmux uses in ~/.tmux.conf to various values (some against the advice of the tmux ):        set -g default-terminal "screen-256color"     set -g default-terminal "xterm-256color"     set -g default-terminal "screen.xterm-256color"     set -g default-terminal "tmux-256color"    Starting tmux using tmux -2.   In all cases, Vim continued to display different colors inside of tmux.


Ive used Firefox for years, but in a recient update, Firefox Quantum, disabled all of my Firefox addons. The addon page in Firefox  shows a link to a Firefox help page that states the reason. "Only extensions built using WebExtensions APIs will work. ." At the bottom of the page it gives a work around. Set; xpinstall.signatures.required to false in about:config. I was able to reinstall one addon, Video DownloadHelper, but the rest I try to reinstall gives me a message in a red box, Download failed. Please check your connection. Is there something else I can do before I try a different browser?  @Gerowen, The link is usefull although I had already uninstalled my addons. After enabling studies, it didn't change my firefox , it shows no active studies, and I'm unable to download addons. It's good to know that the issue is being addressed though.  update...I made xpinstall.signatures.required false in about:config, and enabled studies Allow Firefox to install and run studies in Preferences/Privacy and Security settings section. In about an hour the bugfix showed up in View Firefox studies link, so Mozilla is fixing this.  I reinstalled the addons, re-enabled xpinstall.signatures.required, and unchecked Allow Firefox to install and run studies, and Allow Firefox to send technical and interaction data to Mozilla. All of my addons seem to be working properly.  I ran into same issue on a laptop with Firefox, and was able to receive the hotfixes from mozilla without modifying xpinstall.signatures.required value.  Dell Optiplex 7040, Ubuntu 18.1, Firefox 66.0.3 (64-bit)


Why didn't Fuhrer Bradley just imprison the Elrics and members of military plotting against him?

Why fuhrer Bradley didn't just imprison Elrics and members of military plotting against him? He kinda blackmails them to obedience by threatening their close ones but lets them wander and communicate with each other. They had no problem killing Hughes or imprisoning Dr. Marcoh so I find it kinda weird they didn't do the same with Elrics and Mustang. I get they were important candidates for sacrifice but subduing and imprisoning them would be much easier them keeping tabs on them all the time.   The answer that Homunculi just didn't respect humans and didn't feel threatened by them doesn't cut it imho. They've been killing and imprisoning people trying to meddle with their plot just not those I specified in the question. So I guess it's just a plot hole....