Remove period at end of bibliography items

Consider the following MWE:  \documentclass[a4paper]{article} \usepackage{hyperref} \begin{document} \nocite{test1,test2} \bibliographystyle{plain} \bibliography{sample} \end{document}   And the bibliography file contains the following:  @misc{test1,     title = "\href{http://www.blah1.com/}{Title 1}" }  @misc{test2,     title = "\href{http://www.blah2.com/}{Title 2}" }   The output PDF file contains "Title 1." and "Title 2." with their corresponding hyperlinks. The bibliography looks ugly because of the periods at the end of the entries. I wonder if there is a way to discard the period and have "Title 1" and "Title 2" instead.


Is it possible to travel from Korčula to Dubrovnik in October?

We will be travelling to Croatia in October with a limited time and are trying to figure out if it is possible to go from Split to Hvar and on to Korčula (seems like ferry still runs). Cannot seem to get from  Korčula to Dubrovnik without back tracking to Split.  Am I missing something?


LuaLaTeX is not inserting em dashes unless there is space around the triple dash. It works fine when using a unicode em dash, or explicitly using the \textemdash macro.  Here is a MWE:  \documentclass{article}  \begin{document}  \begin{enumerate}   \item en--dash   \item em---dash   \item em --- dash space \end{enumerate} \begin{enumerate}   \item en–dash unicode   \item em—dash unicode   \item em — dash space unicode \end{enumerate} \begin{enumerate}   \item en\textendash{}dash macro   \item em\textemdash{}dash macro   \item em \textemdash{} dash space macro \end{enumerate}  \end{document}   Which produces:    Compiled using LuaTeX, Version 1.07.0 (TeX Live 2018)  The question is:   I would like to know why em dash ligatures without surrounding spaces are not rendered as em dashes in the PDF output. It seems like a bug to me. how can I fix it?


I'm starting to accumulate a large and fairly unwieldy list of figures at the start of my thesis and want to split that list into two.  I want to have a list of the 'main' figures included in the front matter and another list at the start of the appendices . This second list should just include any figures that are part of the appendices.  I've found a few examples that detail how I could suppress the figures in the appendix but nothing that describes how I would be able to then list them at a later point in my work.  Any ideas?  Thanks!


decimal rounding to 2 precision such that X is converted to X.00 C#

First of all this is not a duplicate question my need is to have 2 precision decimal always   e.g.  2 should be converted as 2.00  0 should be converted as 0.00  0.5 should be converted as 0.50   output number has to be decimal  Things i had tried  decimal val = 0.5000M decimal d = Math.Round(val, 2);//gives 0.5 i need 0.50   NOTE: I am not looking to convert decimal to string as i need to send it as a soap request which accepts decimal value only, so i dont have flexibility to convert it to string.  Update  below code as answered by Jakub Lortz works fine though it may look complex    solution 1 by Jakub Lortz   decimal twoPoint00 = new Decimal(200, 0, 0, false, 2); decimal twoPoint0 = new Decimal(20, 0, 0, false, 1); Console.WriteLine(twoPoint00) // prints 2.00 Console.WriteLine(twoPoint0)  // prints 2.0   solution 2 by Bogdan  he had given very simple solution which will also work  decimal val = 0.5000M; string result = string.Format("{0:f2}", val); decimal d; Decimal.TryParse(result, out d);


it began when I am trying to install something through the terminal until my root password is not working. It gave me an error saying incorrect password even though it's the right one. Tried signing out of my account then my account was locked forced to reboot. Now I can't boot my laptop since my password for sda3 has been changed as well. I also tried recovery mode but sadly it requires my sda3 pass which unfortunately got changed along with my root and account password.  Using Ubuntu 16.04


I need some help recover files from a partially overwritten partition.  I will start with what happened. I was trying to make a image out of my hard drive using dd, but I found somewhere online that using pv would tell me the best bs count to make the copy, what it didn't say was that it would make the copy.  I ran the following command:  pv < /dev/sda > /dev/sdc   When I realized what was going on I stopped it, but it had already written around 1GB. I would like to recover the files that were not written over, I suspect those that were are long gone.  If someone knows a way I would be thankful.


How to reset uploading file using lightning file upload after clicking on cancel button in lwc

When I click on new button to uploading a file and click on cancel button, then again I click on new button I want to reset the previous uploaded file from there.                                 *Upload Medical Certificate                                                                            {docName}                            Cancel button Cancel</button JS closeSuspendModal() { this.isShowSuspendModel=false; } get acceptedFormats() { return ['.pdf', '.png', '.docx', '.jpg', '.jpeg']; } handleUploadFinished(event) {     // Get the list of uploaded files     const uploadedFiles = event.detail.files;     this.docId=uploadedFiles[0].documentId;     this.docName=uploadedFiles[0].name+' uploaded successfully';     console.log('1111'+uploadedFiles[0].documentId)     console.log('1111'+uploadedFiles[0].name)      }


I'm quite  new to Linux. I am currently using Ubuntu on my HP Celeron laptop. I've been having trouble with my  wifi on my laptop. I've tried pressing the button to activate my wifi but it doesn't seem to be responding. So, I'm trying to run this troubleshooting command:   sudo lshw -C network   But when i try AND PRESS enter, it asks for a sudo password. First of all, What is it? Secondly,  Where do I get it? I'd really appreciate some help. I need to get back on  the network at work asap.   Thanks.


I use  /etc/init.d/apache2 reload   answer  [....] Reloading apache2 configuration (via systemctl): apache2.serviceapache2.service is not active, cannot reload. failed!   I use  /etc/init.d/apache2 start   answer     [....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.   See "systemctl status apache2.service" and "journalctl -xe" for details.    failed!   I use  journalctl -xe   answer  янв 03 12:04:11 yura-System-Product-Name gnome-alsamixer[5960]:                                            gam_toggle_get_state (). No idea what янв 03 12:04:11 yura-System-Product-Name gnome-alsamixer[5960]:     gam_toggle_get_state (). No idea what янв 03 12:04:15 yura-System-Product-Name gnome-alsamixer[5960]: Source ID 89 was not found when attem янв 03 12:04:39 yura-System-Product-Name systemd[1]: Starting Stop ureadahead data collection... -- Subject: Unit ureadahead-stop.service has begun start-up -- Defined-By: systemd -- Support: http://www.ubuntu.com/support --  -- Unit ureadahead-stop.service has begun starting up. янв 03 12:04:39 yura-System-Product-Name systemd[1]: Started Stop ureadahead data collection. -- Subject: Unit ureadahead-stop.service has finished start-up -- Defined-By: systemd -- Support: http://www.ubuntu.com/support --  -- Unit ureadahead-stop.service has finished starting up. --  -- The start-up result is done. янв 03 12:07:36 yura-System-Product-Name polkitd(authority=local)[946]: Registered Authentication Age янв 03 12:07:36 yura-System-Product-Name polkit-gnome-au[2348]: GtkDialog mapped without a transient  янв 03 12:07:38 yura-System-Product-Name polkitd(authority=local)[946]: Operator of unix-session:c2 s янв 03 12:07:38 yura-System-Product-Name systemd[1]: Starting LSB: Apache2 web server... -- Subject: Unit apache2.service has begun start-up -- Defined-By: systemd -- Support: http://www.ubuntu.com/support --  -- Unit apache2.service has begun starting up. янв 03 12:07:38 yura-System-Product-Name apache2[6080]:  * Starting Apache httpd web server apache2 янв 03 12:07:38 yura-System-Product-Name apache2[6080]:  * янв 03 12:07:38 yura-System-Product-Name apache2[6080]:  * The apache2 configtest failed. янв 03 12:07:38 yura-System-Product-Name apache2[6080]: Output of config test was: янв 03 12:07:38 yura-System-Product-Name apache2[6080]: [Tue Jan 03 12:07:38.432840 2017] [core:warn] янв 03 12:07:38 yura-System-Product-Name apache2[6080]: [Tue Jan 03 12:07:38.432952 2017] [core:warn] янв 03 12:07:38 yura-System-Product-Name apache2[6080]: AH00558: apache2: Could not reliably determin янв 03 12:07:38 yura-System-Product-Name apache2[6080]: (2)No such file or directory: AH02291: Cannot янв 03 12:07:38 yura-System-Product-Name apache2[6080]: AH00014: Configuration check failed янв 03 12:07:38 yura-System-Product-Name apache2[6080]: Action 'configtest' failed. янв 03 12:07:38 yura-System-Product-Name apache2[6080]: The Apache error log may have more informatio янв 03 12:07:38 yura-System-Product-Name systemd[1]: apache2.service: Control process exited, code=ex янв 03 12:07:38 yura-System-Product-Name systemd[1]: Failed to start LSB: Apache2 web server. -- Subject: Unit apache2.service has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support   How to correct the error?


Search for values of IDs using preg_match_all in PHP

I get a string in PHP and I need to look up the values of the IDs, can be 1, how can be 100 IDs, how to do? I tried something like this:  $text = 'Name1 John Name2 Mike'; preg_match_all('/ Array ( [0] => John Name2 Array ( [0] => b">John Name2


Hi I have a content containing one date field, it is an empty date field. I mean there is no current date value. when author clicks on that date field and he assigns one date that may be any date on future. What date he will give in future, on that date in future I have  to trigger a mail to him.


Story about a planet where medieval tribes have different powers; prince with accelerated healing escapes his tribe

The setting is a planet that has several regions, mostly medieval in technology level. Each region's people has a strange power; the story begins in the region of a people with enhanced healing. However, sometimes the healing factor goes too fast and starts growing too many/incorrect body parts; these misshapen monstrosities with dozens of limbs etc are kept in pens and I think harvested somehow? I forget the details.  The prince has recently begun to grow breasts, an obvious precursor to this condition, which will inevitably progress. He escapes (with the help of someone, I think?) and leaves the country before he is penned as well. He travels to many places, at some point is captured by lawmen, executed via crossbow, and buried, all of which he survives by virtue of his hyperactive healing. He eventually reaches a forest where the tribal inhabitants can accelerate and decelerate the flow of time around them, and learns to do this. The chieftain is relatively young upon meeting the main character, but is older by the time he learns the tribe's power. It is revealed that the cheerful and energetic chieftain has been living at an accelerated pace for quite some time and will soon die of old age. When this happens, main character and his girlfriend from the tribe decide they have nothing in particular to stick around for, and have time-dilated sex in public incredibly slowly for several real-time generations. He leaves, I think leaving her behind, and goes to a desert? Where he meets a hermit who teaches him genetic manipulation and fixes the error in his healing factor that causes it to generate extraneous body parts, while leaving it operating at its accelerated (even for his people) rate. Also something about sand, maybe telekinesis?  I don't remember much else about the book and the events may easily be out of order. I think the book itself was a relatively small hardback, with a cover either tan or off-white.


Some pages of my website chevy-cars.com are showing the cache button on the right side of the links in google listing and some pages are not for a long time. The pages that are showing cache button are created in Wordpress and the pages that are not showing the cache button are created in laravel.  Showing cache:     site:chevy-cars.com  Not showing cache: site:chevy-cars.com/used-cars.  please help me out finding the reason.


Words that are pluralized in the middle?

This is purely a curiosity, but I'm fascinated by mid-word pluralization, even if the word in question is a compound word.  For example, passersby or standersby.  No others have occurred to me. Can you provide other examples, or a link to a resource that enumerates them?  I'm particularly interested in compounds that do not include spaces or hyphens.


how to make case insensitive jquery contains?

I am using following code to test two table column values. only issue is how to convert .colNameivr values to upper case before matching with itemNames.  jQuery('.colNametns').each(function(i) { var itemName = jQuery(this).text().toUpperCase();     //1 var match = jQuery('.colNameivr:contains("' + itemName + '")');  //2   if(!match.length){       jQuery(this).toggleClass('red');       counter = i;   } if(match.length){      alert(i+"--"+itemName );     callme1(itemName);   }            });   example here -  in above example -countryCode should not highlight as string is same.


I want to build a Linux based OS which is custom made for only one application and is totally light-weight and uses minimum system resources. How do I go about this?    Would stripping down an already existing OS such as Ubuntu be a good idea?


How to be able to locally connect to two separate websites that are running on the same IP and same port?

I don't think this question has been asked yet, and if it has I apologize. I am currently running two websites on an Apache2 server which are both are on port 80. On Google Domains I have the DNS for the domain of each site pointing to the public IP address of the server, so if I'm outside of local network I can navigate to  or  and it will show the appropriate website. If I'm locally on the network I can't just visit  or  because that's point to my public ip. So normally when I want to visit a site locally I'd just navigate to the private ip of the server and it'd show the website, but if that ip has two websites running how do I differentiate between the two? Am I needing to set up a local DNS, and if so how would I go about doing that? I'm running Ubuntu 20.04, and thanks ahead of time!


How can I make different textures on the same object?

I want to make a circle in which there will be a smaller circle at same origin point. I will use circle mesh for both these circles. I will put the image texture for the bigger circle. I just want to make the edge of the inner circle in a different color. How can I achieve that?  I want my model to look like this. A small circle inside a big circle with only the edge of the inner circle showing.


How can I send an iOS app to someone to test?

I have developed an app and I would like to send it to the customer for testing on an actual device, which is the best way to do this?  Do I have to deliver the source code, build it and run it with XCode or there is an easier way?


I have a question about checking the integrability of the following function:  $Z_{n}=e^{X_{n}+Y_{n}}$ where $X_{n}$ and $Y_{n}$ are both martingales w.r.t. a filtration $F_{n}$. I know that I have to look at $E[Z_{n}]<\infty$ but I don't see how.


What to consider when deciding on 2D vs 3D for a game?

How much "harder" is 3D than 2D in terms of:   Amount/complexity of the code Level of math skills required Time involved in making art assets   Original title: How hard is 3D game development versus 2D?


We put candle in electric field. My question is: Ions of flame move or ions of air? It is written that flame heat air molecules and convert them to ions, then positive ions of air heavier than negative ions therefor flame bends in direction of electric field. Is it correct?


How to draw this picture with LaTex ? TikZ/PGF?

I hope to draw a picture like this:    I find it difficult because   Each rectangle is similar in size, with multiple lines of text inside; Some of the upper right corner of the rectangle has some numbers; I can't deal with the four arrows fired from a rectangle IV; Do not know how to locate the rectangle X; I've never drawn this type of graph, no strategy.   Maybe my question violate of the norms of the Forum, but I don't have any other way.


Can you force "Windows HDR Colour" without HDR compatible display?

So the reason why I'm asking this is because I'd like to record HDR gameplay and the only way to record HDR is to turn it on in windows so that games know to output in HDR. As I'm trying to record footage to be viewed with my HDR compatible TV, I don't care if it looks poor on my monitor which doesn't support HDR. I'm just asking whether or not this can be done. Can SDR monitor use HDR signal even if haphazardously


How can I prove that an invented operation works with negative numbers?

Just out of curiosity I tried making a new operation to see its properties. It is like a variation of addition that works like this: a ¨ b = a + b - 1 For example, I found that it has the commutative property and that a ¨ b ¨ c ¨ d ... = a + b + c + d + ... - [number of operations done] Then I tried to make the equivalent of the multiplication in terms of this operation. The same way as a*b is a+a+a+a...(b times), a " b = a ¨ a ¨ a ... (b times) From here I find that a " b = ab - b - 1 What I can't figure out is whether this formula can also be applied for negative numbers or zero. By the way, I found that it doesn't have the commutative property. Since it is a negative number I don't know what it would mean to repeat the first operation a negative number of times. I know that for example 5*(-3) equals -15 because it is the same as doing - 3 - 3 - 3 ... (five times), but since my operation does not have a commutative property I don't know how to look at this problem. I realise this question might be silly but I hope someone can help me. Thank you in advance.


In my company we had a   softwares from microsoft, and as we understood that this will help us to lower our webhosting payments, and also some development software costs.  Now my issue that we have already a dedicated server, we pay for it monthly, this server contain windows server 2008 and SQL server 2005, and pay a lot monthly for both of them.  My question is, using softwares and os I got from bizspark can I replace these on the server with bizspark ones? Should I ask the hosting company and they will replace? or should I buy a new empty dedicated web hosting and then give the hosting company my bizspark softwares to install there which will decrease my payments too much?  Please advice I am really confused how to gain the most from this bizspark because it seams that microsoft is trying to help too much but we can't gain.   Also please check , it may help.


Using grep to find two or more vowels in a row

So far I am using grep -E '[aeiou]{2}' /usr/share/dict/american-english. This is giving me two vowels, but I want them to be only vowels in a row, like "tooth", "beer", etc. So I want to use grep to get a word with a vowel, but only if that vowel is followed by the same vowel. Like, I want to find tooth, I want to see if I can write a command that will look for the first o and see the next character is a o. Is that more clear? What am I missing?


Find the volume inside the curve $x^2+4z^2+8y=16$ and on the positive side of $xz$-plane. What will be the volume of this as I'm getting wrong answer? As per me the volume is . Please help me as I'm unable to get it.


How do you resolve a StackOverflowError while using recursion in Java?

I am currently writing a program that will compute the moves needed to be taken in the Tower of Hanoi problem. I need to write all the moves taken to an output .txt file.   When I try to do this I keep keeping a StackOverFlow error once at the beginning of the if statement in the towerOfHanoiMoves method and multiple times at the first recursive call to that same method.   I'm guessing the error has to do with the outStream and passing it each time to the method, but I am not sure. If that is the case, I cannot figure out how I would be able to write to the same output file given by the user in the main method.  Also the code will always print the information from the "finally" statement in the try catch block, and the outStream statement in the if statement, but nothing else.  I've tried to flush the outStream after using the outStream.write commands in the towerOfHanoiMoves method but that did not help at all.  Also I've imported all the libraries for the BufferedReader, FileReader, etc. but they won't show up properly in my question. So they are in the code just so you know, but they just don't appear in the code here.  public class TowerofHanoiRecursive {      public static void main(String[]args)throws IOException,     EmptyFile,     FileNotFoundException {         int n; //number of disks in tower         String rodLeft = "A",         rodRight = "C",         rodMiddle = "B";         FileReader inputStream = null;         FileWriter outputStream = null;         BufferedReader str = null;          try {             outputStream = new FileWriter(args[1]); // output file             inputStream = new FileReader(args[0]); // input file             str = new BufferedReader(inputStream);             String nextLine;             File newFile = new File(args[0]);              if (newFile.length() == 0) { //Tests if input file is empty                 throw new EmptyFile("Input file is empty.");              }             while ((nextLine = str.readLine()) != null) {                 outputStream.write("----------------------------------------"                      + "------------------------\n");                 outputStream.write("Number of Disks in Starting Tower = "                      + nextLine);                 n = Integer.parseInt(nextLine);                  towerOfHanoiMoves(n, rodLeft, rodRight, rodMiddle,                     outputStream);              }          } catch (FileNotFoundException e) {             outputStream.write("Input file not found.");             outputStream.flush();             if (outputStream != null)                 outputStream.close();          }         catch (EmptyFile e) {             outputStream.write(e.getMessage());             outputStream.flush();             if (inputStream != null)                 inputStream.close();             if (outputStream != null)                 outputStream.close();             str.close();          }         finally {             outputStream.write("");             outputStream.write("Total time to taken to solve Tower: ");             outputStream.write("\n\nSuccess!");             outputStream.flush();              if (inputStream != null)                 inputStream.close();             if (outputStream != null)                 outputStream.close();             str.close();         }      }      public static void towerOfHanoiMoves(int n, String srcRod, String destRod,         String spareRod, FileWriter outStream) {         try {             if (n == 1) {                 outStream.write("\nMove disk 1 from rod " + srcRod + " to rod "                      + destRod + ".");             }             towerOfHanoiMoves(n - 1, srcRod, spareRod, destRod, outStream);             outStream.write("\nMove disk " + n + " from rod " + srcRod                  + " to rod " + destRod + ".");             towerOfHanoiMoves(n - 1, spareRod, destRod, srcRod, outStream);          } catch (IOException e) {             e.printStackTrace();         }     } }


Remote access solution for active and inactive sessions

I am running some Kubuntu 18.04 systems. I would like to to install a remote access software on these systems that allows accessing the systems from other Linux systems.  Does a free software exist that allows desktop sharing AND terminal server operation? I.e. a software that can do both:   Run before log-in, allowing to start a new desktop session on a computer where the specified user has not logged-in and has no active desktop session running.  Share an existing desktop session if the specified user already is logged in.


I'm making a payroll program and one of the options is to check data on current users.  I want to allow the user to enter either the employee's ID or name to retrieve this information.    Scanner userChoice = new Scanner(System.in); System.out.println("Enter employee ID or full name"); String checkHEmp = userChoice.next(); int checkHempID = userChoice.nextInt();      if (checkHempID ==3|| checkHEmp == "Jill Jones") {         HourlyEmployee jones = new HourlyEmployee();         jones.jJones();     }   In this example HourlyEmployee is a class of hourly employees and jJones() is a method in that class that contains the information for one of the employees.  When I enter either "3" (the ID) or "Jill Jones" nothing happens afterwards.  Edit: Added method for jJones()  public void jJones() {     double hourlyWagesJones = 16.45;     double hoursWorkedJones = 48;      System.out.println("Employee ID: 3");     System.out.println("Last name: Jones");     System.out.println("First name: Jill");     System.out.println("Date Hired: 1/22/2011");     System.out.println("Hours Worked: " + hoursWorkedJones);     System.out.println("Hourly Wages: $" + hourlyWagesJones);     double totalEarnedJones = new Double(hourlyWagesJones * hoursWorkedJones);     System.out.println("Total earned: $" + totalEarnedJones);    }


is now a Full Fledged Site! With a fancy new design! Congratulations to them.  Now we all want to know what the order of the remaining sites is...right? Who's next to get their fancy design out of the beta sites that are already scheduled for graduation?  There was some mentioning of the graduation queue by an SE employee in a comment thread under  a while ago, as well as the fact that this queue is ordered somehow:     Current list in the queue is: Salesforce, Expression Engine, Anime, Computer Science, Japanese, Cryptography, Movies, Blender, and English Language Learners.   ...   As far as I'm aware, it's ordered. Salesforce and Expression Engine are currently in progress.   From which Salesforce and Expression Engine already graduated in order, and now Movies & TV.  However, this comment is already some months old and the recent graduation of Movies & TV suggests that this ordering is not entirely strict. I'd thus like to know if there is any information how the graduation process proceeds. Which site will be next? Is this queue still valid or has it changed? Is it a reasonable hint at the order of graduation at all?  I am sure that the list has been updated as of right now it appears that these are the beta sites that are waiting on design:   Anime and Manga Code Review Computer Science Chemistry Japanese  Cryptography Blender English Language Learners Music   Is there an order?    Is there a timeline?    has been pointing to the idea that Design is something that floats on the wind and lands whenever the wind stops blowing.


How to duplicate a certain collection using Python?

Is it possible to duplicate a collection from a Python script? When I do it manually, the Console shows bpy.ops.outliner.collection_duplicate(), however if I call it from script, there is a problem with context: RuntimeError: Operator bpy.ops.outliner.collection_duplicate.poll() failed, context is incorrect Does that mean that collection_duplicate() can be called only from the Outliner editor? If so, how to 'fake' it from a script?


Different margins for on-screen pdf and for printed pdf

Is it possible to have different margins for printing from those shown on screen? I'm writing my thesis and for the paper version I would like a larger inner margin to allow space for the binding, but when viewed on screen I'd like the text to be centred (so left margin = right margin).  Here's a MWE (with margins for printing and binding):  \documentclass[twoside,a4paper,12pt]{book} \usepackage[bottom=3cm,top=3cm,outer=3cm,inner=4cm]{geometry}  \begin{document}  \include{Chapter1} \include{Chapter2}  \end{document}   So for printing I would like  \usepackage[bottom=3cm,top=3cm,outer=3cm,inner=4cm]{geometry}   but for on-screen viewing I would like  \usepackage[bottom=3cm,top=3cm,outer=3.5cm,inner=3.5cm]{geometry}   Obviously I could just make two different pdf files, one for printing and one for on-screen viewing, but I think it would be pretty cool if this could be done with just one file (much like the ocgcolorlinks option for the hyperref package disables colours for printing).


In Pandemic, when does the discard-over-7-cards rule take effect?

Scenario Pandemic's excess card rule states that if you have more than 7 cards in your hand at any time, you must discard the excess (according to your preference, of course). Let's say you're the Scientist, have 5 city cards and 2 special cards (like the airlift, or research center build card). The Researcher comes to town and gives you the remaining 1 color city card that will allow you to cure a disease as soon as you get to a research facility. Let's also say there's only two players (Researcher and Scientist). And that this is the last color that needs to be cured. This takes you to 8 cards - over the amount allowed. Question When do I, as the Scientist, need to play / discard my excess cards (in this case, let's take the two special cards as the ones to play) so I am not in violation of the excess card rule, but also so I maximize the value of the Researcher's endowment of city cards?  edited to reflect the limit of 7 vs 8, as noted by


In C# I am starting a 3rd party application that takes 2 - 3 hours to complete. I need the output of the Process to write to the console in real time. I have done research on BeginOutputReadLine() and RedirectStandardOutput from Microsoft's website but my code is still not working.  Currently my code is only showing the output when the process is finished. I don't know where its gone wrong.  static void Main(string[] args) {   Process process;   process = new Process();   process.StartInfo.FileName = "C:\\ffmbc\\ffmbc.exe";   process.StartInfo.Arguments = "-i \\\\dssp-isi-t\\TMD\\B002C010_130520_R2R7.2398v5.mxf -an -vcodec libx264 -level 4.1 -preset veryslow -tune film -x264opts bluray-compat=1:weightp=0:bframes=3:nal-hrd=vbr:vbv-maxrate=40000:vbv-bufsize=30000:keyint=24:b-pyramid=strict:slices=4:aud=1:colorprim=bt709:transfer=bt709:colormatrix=bt709:sar=1/1:ref=4 -b 30M -bt 30M -threads 0 -pass 1 -y \\\\dss-isi-t\\MTPO_Transfer\\dbay\\B002C010_130520_R2R7.2398v5.mxf.h264";   process.StartInfo.UseShellExecute = false;   process.StartInfo.CreateNoWindow = true;   process.StartInfo.RedirectStandardOutput = true;   process.OutputDataReceived += new DataReceivedEventHandler(OutputHandler);   process.StartInfo.RedirectStandardInput = true;   process.Start();   process.BeginOutputReadLine();   process.WaitForExit();   process.Close(); }  private static void OutputHandler(object sendingProcess, DataReceivedEventArgs outLine) {   string line;   line = (outLine.Data.ToString());   Console.WriteLine(line); }


I think I might have changed some cursor settings unintentionally. When I go to edit mode and try to select 2 objects using the shift key, it does not allow me to do so.. and also the mouse cursor changed to crosshair from a pointer. How can I get this back please?   The reason as to why I need to select both objects in edit mode is so that I can make use of the Knife Project tool Below is a screenshot of my settings


I have a child form that is throwing an ApplicationException in the Load event handler (intentionally for testing purposes).  The parent form wraps the ChildForm.Show() method in a Try...Catch ex As Exception block.  The catch block simply displays a message and closes the child form.  All works as expected when debugged in visual studio 2008 (.net 3.5 sp1).  However, when I run it outside of visual studio, the Catch block seems to get missed and an unhandled exception occurs.  Any idea why that is?  Thank you.  Example Code:  Public Class Form1      Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click         Dim f2 As Form2          f2 = New Form2          Try             MessageBox.Show("Opening form 2")             f2.ShowDialog()         Catch ex As Exception             f2.Close()             MessageBox.Show("Form 2 closed.")         End Try     End Sub  End Class  Public Class Form2      Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load         Throw New ApplicationException("Test Form_Load")     End Sub      Public Sub New()          ' This call is required by the Windows Form Designer.         InitializeComponent()          ' Add any initialization after the InitializeComponent() call.     End Sub  End Class   Stack Trace:    System.ApplicationException:  Test Form_Load   at WindowsApplication1.Form2.Form2_Load(Object sender, EventArgs e)  in UnhandledExceptionTest2\WindowsApplication1\Form2.vb  System.Windows.Forms.Form.OnLoad(EventArgs e)  System.Windows.Forms.Form.OnCreateControl()  System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)  System.Windows.Forms.Control.CreateControl()  System.Windows.Forms.Control.WmShowWindow(Message& m)    at  System.Windows.Forms.Control.WndProc(Message&> m)    at  System.Windows.Forms.ScrollableControl.WndProc(Message&> m)    at  System.Windows.Forms.ContainerControl.WndProc(Message&> m)    at  System.Windows.Forms.Form.WmShowWindow(Message&> m)    at  System.Windows.Forms.Form.WndProc(Message&> m)    at  System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&> m)    at  System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&> m)    at  System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr  lparam)


Error while installing Oracle JDK 9 Ubuntu 17.10

I did a fresh installation of Ubuntu 17.10. Now I'm trying to install Java 9 on Ubuntu. I followed  askubuntu answer and when I run sudo apt-get install oracle-java9-installer this is what I'm getting  Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   gsfonts-x11 oracle-java9-set-default Suggested packages:   binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core   ttf-kochi-gothic | ttf-sazanami-gothic ttf-kochi-mincho   | ttf-sazanami-mincho ttf-arphic-uming The following NEW packages will be installed:   gsfonts-x11 oracle-java9-installer oracle-java9-set-default 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 35.2 kB/42.5 kB of archives. After this operation, 231 kB of additional disk space will be used. Do you want to continue? [Y/n]  Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu artful/main amd64 oracle-java9-installer amd64 9.0.1-1~webupd8~0 [30.8 kB] Get:2 http://ppa.launchpad.net/webupd8team/java/ubuntu artful/main amd64 oracle-java9-set-default amd64 9.0.1-1~webupd8~0 [4,442 B] Fetched 35.2 kB in 2s (13.2 kB/s)                    Preconfiguring packages ... Selecting previously unselected package oracle-java9-installer. (Reading database ... 256251 files and directories currently installed.) Preparing to unpack .../oracle-java9-installer_9.0.1-1~webupd8~0_amd64.deb ... oracle-license-v1-1 license has already been accepted Unpacking oracle-java9-installer (9.0.1-1~webupd8~0) ... Setting up oracle-java9-installer (9.0.1-1~webupd8~0) ... No /var/cache/oracle-jdk9-installer/wgetrc file found. Creating /var/cache/oracle-jdk9-installer/wgetrc and using default oracle-java9-installer wgetrc settings for it. Downloading Oracle Java 9... --2018-01-17 06:08:30--  http://download.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz Resolving download.oracle.com (download.oracle.com)... 23.66.247.173 Connecting to download.oracle.com (download.oracle.com)|23.66.247.173|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz [following] --2018-01-17 06:08:30--  https://edelivery.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)... 118.214.58.117, 2402:d000:130:281::2d3e, 2402:d000:130:289::2d3e Connecting to edelivery.oracle.com (edelivery.oracle.com)|118.214.58.117|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz?AuthParam=1516149631_fbfbf47dc4fd2a5e471045e2cd2db76f [following] --2018-01-17 06:08:33--  http://download.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz?AuthParam=1516149631_fbfbf47dc4fd2a5e471045e2cd2db76f Connecting to download.oracle.com (download.oracle.com)|23.66.247.173|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2018-01-17 06:08:34 ERROR 404: Not Found.  download failed Oracle JDK 9 is NOT installed. dpkg: error processing package oracle-java9-installer (--configure):  subprocess installed post-installation script returned error exit status 1 E: Sub-process /usr/bin/dpkg returned an error code (1)   Why the download fails and Oracle JDK 9 is not installing. How can I fix this ?


Can a tamed owl cast spells from Ring of spell storing?

In a campaign I'm currently in, I want to give my owl that I tamed (the DM allows taming wild animals) a ring of spell storing so it can cast spells. However, before I do so, I wanted to ask: Is there anything mentioned about needing a high enough Int to attune or use magic items? Or can you use them no matter how low your Int is? From what I can find, it seems to only require that the creature spends a short rest focused on the item, but I may be missing something.


No stdio.h directory, tried sudo apt install libc6-dev but still facing the same problem

Can't get stdio.h directory even after using the libc6 installing command. Terminal prints the following:  Reading package lists... Done Building dependency tree        Reading state information... Done Package libc6-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libc6-dev' has no installation candidate


Get part of a URL after domain using Regex

I have a URL, for example: http://www.di.fm/calendar/event/40351  I want to parse this URL with a regular expression, and retrieve the part after domain.  In this case :calendar/event/40351  There can also be additional information after a hash: (e.g., calendar/event/40351#event-info)


getListing () {     if [ "$1" = ""];     then         alcListDir ~/Projects/Haskell/ -f \             | alcSortPath time | tac | xargs -n1 basename     else         alcListDir ~/Projects/Haskell/"$1"/ -f \             | alcSortPath time | tac | xargs -n1 basename | sed -e "s/^/"$1"\//"     fi }   The above is giving me an error (when run with set -x) of:  +./rofi.sh:29> getListing '' +getListing:1> [ '' '=' ']' getListing:1: parse error: condition expected:    I'm invoking the function like so: getListing ""  What is the cause of the error?


I heard that Microsoft released Windows 7 Service Pack 1 yesterday. By sheer coincidence I planned to format and reinstall Windows 7 on my PC, next week.  Is it possible merge (slipstream) the original Windows 7 installation and the new Service Pack 1 in a single ?  Note: Bonus points if you suggest a method that works also for Windows XP.


Retrieve multiple checkboxes in Datagridview C#

Hi below I represented the structure of my current datagridview, the last field of the datagriview has a checkbox what I have to do is retrieve the id of the row corresponds when the check is made is true, how can I do to do this?  DataGridView Structure:      MyId | My Value | checkbox


Someone told me that the term "moment" in Statistics comes from Physics. But I fail to understand how it relates to the definition of a moment of a force, which is a measure of its tendency to cause a body to rotate about a specific point or axis.  Update: I missed the  about moments and was about to delete mine but I didn't for the following reasons:   The accepted answer is very useful and helps me to better understand the analogy with Physics (and may help another OP).  The answer and the comments clarify the idea that the analogy is more about the moment of inertia than of a force.  The answer in the original question is more about the origin of the concept, which is also helpful. The title of my question is probably easier to understand for a non-native English speaker and may explain why I missed the original post (and which can also be missed by another OP).


HTML  or CSS background-image? Which to choose?

Should I use the <img> tag or should I use a div with css background-image?


I'm trying to license VNC Connect and, after I click "Apply" it says,  Failed to run /usr/bin/vnclicensewiz '-helper' '-hash' '73eeed08b449e995f0c7c141551a268ef12b0b077c5eae11c8036e25b4f72c33' '-fork' '/tmp/.vnc-1000/vnclicensewiz.vncpipehelper.190001747' '-log=*:stderr:10' as user root.  Unable to copy the user's Xauthorization file.   I have had the last line appear when I try to do other things, too. I looked at  question but none of the answers worked.  The output of ls -la ~/.Xauthority is  ls: cannot access '/home/amolith/.Xauthority': No such file or directory   The output of ls -l /home/amolith/*thorityis  ls: cannot access '/home/amolith/*thority': No such file or directory   The output of ls -al /home/ is  total 12 drwxr-xr-x  3 root    root    4096 Jul 21 09:47 . drwxr-xr-x 24 root    root    4096 Jul 21 11:34 .. drwxr-xr-x 27 amolith amolith 4096 Jul 26 08:38 amolith   The output of echo $XAUTHORITY is blank.  I'm running Ubuntu 17.04 with GNOME 3 on a Parrot Chromebook. I've never had issues with the .Xauthority file before I did a clean install of Ubuntu GNOME 17.04 from .


Please help us solve our debate.  One person says to write "Jess' Bridal Shower", the other says to write "Jess's Bridal Shower".  What is the correct way, or are the both correct?


Inline suggested edit reviews are truncated in medium-width windows

When reviewing a suggested edit inline (not from the queue) on a site with the new “responsive” design, at a window width where normal content does fit, the diff window is truncated on both sides, as is the edit window after cliking “Improve Edit” or “Reject and Edit”.    This is from  which happened to have a pending suggested edit at the time, after clicking the edit(1) button. Note how the scroll bar is all the way to the left, but there's content that vanishes to the left of the window. That's in Chrome 67.0.3396.87 on Linux at zoom level 100%, with a window width of 800.  Note that I'm not complaining that the user interface isn't responsive yet (although now that this has been deployed to SO I'd expect it to be), but that the interface is completely unusable even with scrolling. In sites with the old UI, you can see all the content even if it requires scrolling.  Reviews done from the suggested edit review queue are ok (not responsive, but you can see the content by scrolling). Inline edits are ok. The problem is specific to inline suggested edit reviews.


Can I cast two swift spells in a round, or otherwise trade a move action for a swift?

Can you use a move action to make a swift action?  What if you have 2 swift spells and a standard one, can you cast them all in one round?


The 127th \color does not work on XeLaTeX

The following document % !TEX encoding = UTF-8 Unicode % !TEX TS-program = XeLaTeX  \documentclass{article}     \usepackage{xcolor}  \begin{document}      \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{.}\color{.}\color{.}\color{.}\color{.}\color{.}     \color{red} text  \end{document}  Gives me black text, instead of red text. Grouping earlier colors will resolve it. That said, I find it bizarre because it is driver-specific. I wonder if anyone has a good explanation.


Imagine, you add an object to the scene and you get the redo-panel (F9 menu). If you want to modify the options of the newly created object but you mistakenly click elsewhere, the menu disappears. That's not a problem, since you can bring back this menu using F9. However, imagine you move the object (using G) first and then want to access the F9 menu again. When you press F9 now, the menu of the translation will appear instead of the initial options for the object! How can I bring back the initial F9-menu?


Please look at output:  deploy@li445-201:~$ sudo ls -al /var/log/nginx/ total 152 drw-rw-r--  2 root     adm      4096 Mar 26 16:08 . drwxrwxr-x 14 root     syslog   4096 Mar 26 06:25 .. -rw-r--r--  1 root     root        0 Mar 26 16:08 access.log -rwxrwxrwx  1 www-data adm    108849 Mar 26 06:10 access.log.1 -rw-rw-r--  1 www-data adm     14206 Mar 25 06:17 access.log.2.gz -rw-rw-r--  1 www-data adm     14067 Mar 24 05:31 access.log.3.gz -rw-r--r--  1 root     root        0 Mar 26 16:08 error.log -rw-rw-r--  1 www-data adm      2522 Mar 24 17:13 error.log.1   I try to read log file by deploy user:  deploy@li445-201:~$ cat /var/log/nginx/access.log.1 cat: /var/log/nginx/access.log.1: Permission denied   Why I can't read log file? I've set even 777 permission on it


Can we express the following in a closed form?

I want to evaluate the integral:  $$I=\int_{0}^{\pi/2}\ln \left ( \frac{(1+\sin x)^{1+\cos x}}{1+\cos x} \right )\,dx$$  Well, the sub $u=\pi/2-x$ does not give me any result. In fact it makes the integral more complicated that it actually is, unless I do not see something.  The method above is the only one I used since I do not see something else in this point. Any help would be grateful.


Can you transit through the Schengen Area without a visa when traveling on separate tickets?

I am planning to travel from US to Albania, and when I search on flight ticket websites such that US as origin and Tirana (TIA) as destination, then it costs me $1050 cheapest. However, it costs me $850 when I buy two separate round-trips through Barcelona (US to Barcelona round-trip, Barcelona to Tirana round-trip). I just checked Barcelona, but there might be other transfer airports in Schengen area which costs me even less. I don't need a visa for Albania but I need a visa to go into a Schengen country, so my question is 3-fold:   How can I learn which Europe airports have the international transfer area, so that I don't need a Schengen visa to transfer through the airport? I guess the airlines would take care of that when you buy the tickets together (I already have such an experience multiple times), but given that I will buy them separately, I need to have that information beforehand. The two separate flights I am planning to buy are through different airlines, and in my experience, the airlines check whether the traveler has a visa for the destination country before they let you into the airplane. So, would it be easy to convince the US to Barcelona trip airline that Barcelona is not my final destination, but I have a separate flight from Barcelona to Albania? Are there any Europe airports that have "international baggage claim" areas which are before the passport checkpoint? I mean, if I buy separate flights, do I have any chance to check-in a baggage for the US to Barcelona trip?


Why do accelerated charges radiate energy?

I have studied the statement that accelerated charges radiate energy and Bohr rectified this issue by introducing concept of stationary states or orbits. But can anyone please tell me why does accelerated charges radiate energy???


I am not able to type symbol for Indian rupees using my 18.10. I have set Regional format as English ( India ) and in other areas where I can find English ( India ). But when I type ALT+4, I get 4 on gedit. Any fix available for this? Am I doing something wrong?


Are there any non-identical distributions which happen to have the same moment-generating function?


What is the Ubuntu 16.04 package for vim with python3 support?

I want to install a vim version that supports python3 (+python3), but I am unable to find it on the Ubuntu repositories. I'm running Ubuntu 16.04.7, and I can't upgrade to 18.04 currently because I need my system stable for work. Is it possible to install a vim package from the Ubuntu repositories that includes python3 support? Before I build it from source, I want to make sure there is not a package already.


Why is the direction of dipole moment taken from negative to positive charge when the field is directed in the opposite direction ?


URL extensions.gnome.org for managing GNOME Extensions not working in any browser

I upgraded my Dell Optiplex 9010 to Ubuntu 18.04 from Ubuntu 16.04. None of my GNOME web-browser-extensions (used for managing and installing extensions) work, neither the ones I have installed on Chromium, Chrome, or Firefox.   This has only been the case since my upgrade from 16.04 to 18.04.  This is what I see in every browser I open the URL on:       Although GNOME Shell integration extension is running, native host connector is not detected.       How can I fix this?


While logged into Windows, I deleted a disk partition which was containing Ubuntu. When I restarted my pc, it is showing 'grub rescue' command prompt.   How to boot windows now?    I no longer require Ubuntu.  I have Ubuntu live CD   When I tried the following commend:  sudo apt-get install lilo   the following error is shown:  Err http://archive.ubuntu.com/ubuntu/ natty/main lilo i386 1:22.8-10ubuntu1   404  Not Found [IP: 91.189.92.156 80] Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/lilo/lilo_22.8-10ubuntu1_i386.deb  404  Not Found [IP: 91.189.92.156 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


Proving that if $a,b$ are even, then $\gcd(a,b) = 2 \gcd(a/2, b/2)$

Prove that if $a, b$ are both even then $\gcd(a,b) = 2\cdot\gcd(a/2,b/2)$.   Little confused here. I have tried the following but it's basically just repeating the proof unfortunately:   $a = 2 \cdot a_1 $ and $ b = 2 \cdot b_1$ (Take factor of 2 out)  $d = \gcd(a,b)$  $d = 2\gcd(a_1, b_1)$ $a/2 = a_1$ and $b/2 = b_1$   I've even confused myself! Could someone help!


Reputation graph shows events for previous day

When I click a day column on reputation chart, events for a previous day are shown instead of events for the selected day. The column tooltip shows also previous day (the same for which events are shown), but shows total reputation for the selected day.    On the screenshot, you can see that I've clicked Jul 20, the tooltip shows July 19 and event list shows events for July 19 (30 total reputation, contrary to 90 total reputation for selected day - July 20).  Seen both on Stack Overflow and Super User.  Firefox 39.0 on Windows 8.1, if it matters.  I've seen this was reported 4 years ago already, but was fixed, so it looks like a regression.


I know that $\partial_x f(x,y)$ gives us the slope of the tangent line at the point (x,y) in the x direction. And $\partial_{xx}f(x,y)$ gives us the rate of change of that same slope. The same happens with $\partial_yf(x,y)$ and $\partial_{yy}f(x,y)$ but this time in the x direction. But what is the geometric meaning of $\partial_{xy}f(x,y)?$


I’m newer to blender, and trying to create a 3D model of a brimmed cap sort of like a ball cap from a scan I took of the exterior using an iPhone app (ScandyPro). I’ve managed to import the .obj file and clean up the exterior (fill holes/inconsistencies in the scan etc). Problem is that it needs an “interior” to look real. Since a caps material is mostly thin fabric, I imagine there’s a way to duplicate the external scan and shrink it slightly, move it down, and to close up the “exterior shell” by connecting it to the exterior - I’m not sure how I would “bridge” the edges between the interior And exterior cleanly and efficiently though. Can anyone confirm if this is the easiest way to accomplish this and point me to the tools to bridge the two meshes together?


How to create this fading shadow effect in photoshop?

I would like to know how to create this shadow effect in photoshop. I know how to make shadow  in photoshop but don't know how to make this fading shadow on the left and right side in the image.


Well i installed apache2 by typing   sudo apt-get install apache2   now i am tring to uninstall apache2 by this command  sudo apt-get autoremove apache2   Well my apache2 is still running. And when i stop it vie typing  sudo service apache2 stop   it stops, and i can also start it typing   sudo service apache2 start   Whats the point of auto remove anyway? and how to remove apache2 ?


Can't Install codecs ( Could not get lock /var/lib/dpkg/lock )

I used the commands at the end of this article to try installing the restricted extras the article recommends.    sudo apt-get install ubuntu-restricted-extras  When I input this command in the terminal, I receive the following error message:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? rick@rick-XPS-L521X:~$ sudo apt-get install ubuntu-restricted-extras E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? rick@rick-XPS-L521X:~$ sudo apt-get install libavformat-extra-53 libavcodec-extra-53 E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? rick@rick-XPS-L521X:~$ sudo apt-get install ubuntu-restricted-extras [sudo] password for rick:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   The first time I tried installing the restricted extras, the terminal brought me to a legal approval page which ended with no way to agree or not agree to the terms.  So I exited and tried to install again but then received the error message.  How do I fix this?


let $a,b,c \in\mathbb{R} ,a<3$    and all roots $p(x)=x^3+ax^2+bx+c=0$ be negative .    then prove that $b+c\neq 4$   MyTry :   we have $x_1<0 ,x_2<0,x_3<0$ So: $$x_1+x_2+x_3=\dfrac{-a}{1}=-a \to a\in (0,3)$$ and :  $$x_1\cdot x_2\cdot x_3=\dfrac{-c}{1}=-c$$  now what ?


Why can't SQL Server optimizer use foreign key

I have the following tables(See below for complete reproducible SQL):  ToBeTransferredTemp (ID varchar(100),type varchar(100) NOT NULL, other...) CODES(Key1,Key2,Key3, IDSTRING varchar(100), other...)   I have the following query:  SELECT * FROM ToBeTransferredTemp a  INNER JOIN codes c on a.type = c.idstring   There is an index on ToBeTransferredTemp.type and unique index on CODES.idstring. There is a foreign key constraint on ToBeTransferredTemp.type -> codes.idstring  You would think SQL Server would gather from this, that the join will produce the same number of rows as is present in ToBeTransferredTemp. But it doesn't.  There are 8500 rows in ToBeTransferredTemp, and the estimated number of rows after the join is 450, and "actual number of rows" is, not surprisingly, 8500 rows.  Any idea why SQL Server misses so terribly? I've checked that the foreign key constraint is trusted by SQL Server.   Could it be that SQL Server 2017 don't take foreign key and unique constraints into account when estimating cardinality of joins?  I know I could fix this easily by just doing a LEFT OUTER JOIN, but it feels so clumsy. I'm really interested to know why SQL Server can't figure this one out.  EDIT: queryplan:   EDIT: SQL needed to reproduce. Note that you might need to re-run the query a few times. Sometimes the values form statistics that make it seem to work  CREATE TABLE dbo.TEST_CODES (     key1 varchar(60) NOT NULL,     key2 varchar(60) NOT NULL,     key3 datetime NOT NULL,     Filler4 varchar(100),     IDSTRING varchar(100) ); ALTER TABLE [dbo].[TEST_CODES] ADD  CONSTRAINT [PK_CODES_TEST] PRIMARY KEY CLUSTERED  (     key1 ASC,     key2 ASC,     key3 ASC )  CREATE UNIQUE INDEX UQ_Codes_IDSTRING ON dbo.TEST_Codes (IDSTRING);  CREATE TABLE dbo.TEST_ToBeTransferredTemp  (     ID varchar(100) NOT NULL,     [type] varchar(100) NOT NULL,     Filler1 varchar(100) NOT NULL,     Filler2 varchar(50) NOT NULL,     Filler3 int NULL,      CONSTRAINT PK_ToBeTransferredTemp_TEST PRIMARY KEY (ID),     CONSTRAINT FK_ToBeTransferredTemp_type FOREIGN KEY ([type])          REFERENCES dbo.TEST_CODES (IDSTRING) );  CREATE NONCLUSTERED INDEX IX_type ON dbo.TEST_ToBeTransferredTemp ([type]);  INSERT INTO dbo.TEST_CODES SELECT TOP (18139)      CAST(NEWID() AS varchar(60)),     CAST(NEWID() AS varchar(60)),     GETDATE(),     CAST(NEWID() AS varchar(100)),     CAST(NEWID() AS varchar(100)) FROM master.dbo.spt_values v1     CROSS JOIN master.dbo.spt_values v2;  INSERT INTO dbo.TEST_ToBeTransferredTemp SELECT TOP (8002)     CAST(NEWID() AS varchar(100)),     (SELECT TOP 1 IDSTRING FROM TEST_CODES order by newid()),     CAST(NEWID() AS varchar(100)),     CAST(NEWID() AS varchar(50)),     NULL      FROM master.dbo.spt_values v1     CROSS JOIN master.dbo.spt_values v2;  SELECT * FROM TEST_ToBeTransferredTemp a  inner join TEST_codes c on a.type = c.idstring


Wouldn't it make sense to have more than one answer acceptable?

Or at least have maybe the ability to set some other answers as assisted answer. I find myself finding an acceptable answer unusable while other answers underneath it might be more suitable. Would it be safe to say that the accepted answer should only make sense to the asker whether or not the question is important to others?


Is this an equivalent form of Axiom of Choice?

It is known that Axiom of Choice implies the following statement:     For each two sets $A$ and $B$, there is a one to one function from $A$ to $B$ iff there is a function from $B$ onto $A$   Is above statement an equivalent form of Axiom of Choice or it is strictly weaker?


If the OR of developing dementia when living with people versus living alone is 0.36 (95% CI 0.16-0.80) what would be the OR of developing dementia when living alone versus living with people?   Would it be 1/0.36?


$\lim_{x \to x_0}{\frac{\arcsin x-\arcsin x_0}{x-x_0}}=?$

I have the following problem:  $$ \lim_{x \to x_0}{\frac{\arcsin x-\arcsin x_0}{x-x_0}}=\text{?} $$  What I have:  Let $x=\sin t$. Then the problem becomes:  $$ \lim_{t \to t_0}{\frac{t-t_0}{\sin t-\sin t_0}} = \lim_{t \to t_0}{\frac{\frac{t-t_0}{2}}{\sin (\frac{t-t_0}{2}) \cos{\frac{t+t_0}{2}}}}=\lim_{t \to t_0}{\frac{1}{\cos(\frac{t+t_0}{2})}}=\frac{1}{\sqrt{1-\sin^2(t_0)}} $$  So I'm kind of stuck here. I'm not very good with trigonometric formulas. Assuming so far the solution is correct, how do I continue from here?  Thanks in advance!


Story about a utopian city that periodically destroys itself

I'm looking for a short story or novella about an idyllic, utopian society with a hidden dark side: periodically (every week or month) its inhabitants would descend into madness, violently destroying everything around them and brutally murdering each other. This continued for a day or so, and when it ended, the ordeal was somehow magically undone, with even the dead returning to life. Then everyone would be left with only their memories of the experience, to enjoy their perfect society until the next time around.  The society was some kind of city-state with a vaguely Mediterranean feel, maybe on an island or isolated peninsula. There was a strict rule about visitors, but I can't quite remember what it was: either they had to leave before the violence started unless they agreed to immigrate permanently, or they couldn't leave until they had experienced it at least once.  The story was posted online on what looked like someone's personal website (possibly the author's), split into a separate page for each chapter. I read it sometime in the last several years, and I feel like the writing style reminded me of Jorge Luis Borges.


I am trying to set mutliple attributes to a form. I want the form to be centered and the background to be orange. But only the last attribute is executed. So in the code below the background color would be orange but the form would not be centered.  Here is my code:  <!DOCTYPE html>        <form id="form">        First Name:
        <input type="text" name="firstname">
          Last name:
          <input type="text" name="lastname">        </form>           Could someone tell me why this happens and how set mutliple attributes on one element? Thanks!


Given a singular matrix, I am tring to find an invertible matrix... (Finite Dimensional Space)

In coordinates and in a finite-dimensional space, how would I prove that given any singular $n$x$n$ matrix $A$, any $\epsilon\gt0$ and any matrix norm $||.||$, there is an invertible $n$x$n$ matrix $B$ such that $||A-B|| \lt \epsilon$ ?  Is it worthwhile to consider   $spectrum(A)=\{\lambda | A-\lambda I$ is singular$\}$  ?


Can iOS 7 folders and dock be skinned to be totally black?

I've just upgraded to iOS 7 on an iPhone 4S. I prefer a completely black wallpaper, but I noticed that making it so will turn the backgrounds of folders and the dock grey.    I am looking for a combined wallpaper color and folder/dock background to make them as close as possible to all black. If someone has a jailbreak solution, that's great, but that won't work for me as I prefer not to change the OS in that way.  Are there solutions to achieve this visual effect?


What's a good random dungeon generator for D&D 3.5?

I'm looking for a random dungeon generator for D&D 3.5.  I'd like a generator that looks like , but specifically for D&D, but also with a theme or groups option (Like crypt, or only undeads - only demons etc).  I've searched quite a bit for a good dungeon generator, but didn't find any especially good.  These are the 'top' ones I've found:    - Good, but no random room dressing / themes / encounter types;   - Quite nice, but too many details, bad maps and not D&D specific;   - Almost perfect, but not D&D specific;   - Good ideas, but not fully implemented yet (quite buggy in fact) , so half the features don't work.  I'd like to avoid generating anything manually, because of the concept of my game (everything is random, from character races/classes/alignment to adventure ideas).  Note: People say the  one is pretty much what I'm looking for, but the site is offline. If anyone knows another place where that is hosted or a similar generator, I'd be grateful.


Would continually decreasing your height with Wild Magic Surges eventually make you vanish from existence?

(PHB, p. 103-104) have the Wild Magic Surge feature at first level:     Starting when you choose this origin at 1st level, your spellcasting can unleash surges of untamed magic. Once per turn, the DM can have you roll a d20 immediately after you cast a sorcerer spell of 1st level or higher. If you roll a 1, roll on the Wild Magic Surge table to create a magical effect. If that effect is a spell, it is too wild to be affected by your Metamagic, and if it normally requires concentration, it doesn’t require concentration in this case; the spell lasts for its full duration.   One of the 50 effects of the Wild Magic Surge table (on a roll of 11–12) is the following:     Roll a d10. Your height changes by a number of inches equal to the roll. If the roll is odd, you shrink. If the roll is even, you grow.   Let's say that a Wild mage "spams" Wild Magic Surges (with a very Surge-friendly DM who always says "Yes" when there's a possibility for a Surge), and rolls the above effect many, many times, and then always rolls an odd number (height decrease). This can technically cause him to be... 0 feet tall, as there's no written minimum for that Surge.  Compare this to the wording of a similar Surge (on a roll of 35–36):     Roll a d10. Your age changes by a number of years equal to the roll. If the roll is odd, you get younger (minimum 1 year old). If the roll is even, you get older.    But on the height change Surge, there's no height minimum written. So... what would happen there? Would the Wild Magic sorcerer vanish from existence?  Of course, this situation has a low chance of happening, considering that if you roughly get every number of a d10 an equal amount of times, you'd have an average decrease of 25 but an average increase of 30 (so a net increase of 5), but it's still possible to be very, very unlucky. For example, the smallest default height a player character can have is 27 inches (by being a kobold and rolling/taking the lowest height modifier), so a few consecutive odd rolls and poof, your height is 0. What now?


Would it possible to decode an intelligible but alien message?

I've been reading some sci-fi and there is a frequent mention of decoding alien signals.  From what i read historically in ww2  for decoding enemy message the allies would transmit fake information and then listen to the enemy communicating that fake messages in encrypted form , this enabled the allies to make sort of a known plaintext attack and in addition they had an idea of the ciphers being used which narrowed down area of effort even more  Now to make this question realistic let's say the message contained information which is intelligible to humans in plain text (say if the aliens were sending  encrypted English) then is there a way to decode a encoded signal when you do not know about its purpose or context or cipher?  Say you just received an out of ordinary signal from somewhere in cosmos , with definitely has a pattern indicating intelligent origin but nothing more.   Is it possible to decrypt such a message?


Why do you say "Do you have “a” euro?" Rather than "an" Euro?

Do you have a euro?   I saw the above sentence and do not understand why you say "a" instead of "an"?  You say Do you have "an" umbrella?, but Do you have "a" pound?


I have heard that when a user has over 10k reputation the person will become a moderator automatically. That is true partly, but the user still may not be a comments moderator, who can review flagged comments.     Here are my questions:   Who are the comments moderators on Stack Exchange sites, like Stack Overflow? And how can one become a comments moderator?


You roll a die until you get a $5$, what is the expected value of the minimum value rolled?

I am struggling to work out a simple way to answer this, and a rationale behind this approach using tail sum (as I do not understand):  $$E\left( x\right) =\sum ^{5}_{k=1}P\left( x\geq k\right) =\dfrac {1}{6}\sum ^{5}_{k=1}\left( \sum ^{\infty }_{i=0}\left( \dfrac {k}{6}\right) ^{i}\right)  = \frac{137}{60}.$$  Does this always hold?  $$E\left( x\right)=\sum ^{n}_{k=1}kP\left( x= k\right)  =\sum ^{n}_{k=1}P\left( x\geq k\right)$$  I have never seen this formula, but working through it I understand.  EDIT: I can get the right answer with a long winded method, calculating each probability separately, which I believe the Tails sum speeds up:  This is my long winded approach. $$E\left( X_{\min }\right) = 5P\left( x= 5\right) +\ldots +1P(x=1)$$  $$=5\left( \dfrac {1}{6}\sum ^{\infty }_{i=0}\left( \dfrac {1}{6}\right) ^{i}\right) +4\left( \dfrac {1}{6}\sum ^{\infty }_{i=1}\left( \dfrac {2}{6}\right) ^{i}- \dfrac {1}{6}\sum ^{\infty }_{i=1}\left( \dfrac {1}{6}\right) ^{i}\right)+\ldots$$ $$+1\left( \dfrac {1}{6}\sum ^{\infty }_{i=1}\left( \dfrac {5}{6}\right) ^{i}- \dfrac {1}{6}\sum ^{\infty }_{i=1}\left( \dfrac {4}{6}\right) ^{i}\right),$$  where $\dfrac {1}{6}$ represents getting a $5$, so the first sum is all the possibilities of getting repeated $6$s and then a $5$, or just rolling a $5$. The next sum is all the possibilities of getting a $4$ or a $6$, then a $5$, minus all the possibilities of just getting a $6$ then a $5$. So it represents all the strings of just $4$s or $6$s before getting a $5$, so all the possibilities of minimum value being a $4$.


I know that by $3^{40} \bmod 100 = 1$, I can get $3^{312} \bmod 100 = 3^{32} \bmod 100$, but I don't know how to find $3^{32} \bmod 100$.


Can I enable bash-completion for the new apt command?

The new  command, present in Ubuntu since 14.04, seems to be a really useful intersection of functionality between apt-get and apt-cache but the current version of bash-completion doesn't know about it... Which makes it a lot harder to use.  Is there a quick way to add this functionality to Bash to make the apt command easy to use?


Why can't I use a type argument in a type parameter with multiple bounds?

So, I understand that the following doesn't work, but why doesn't it work?  interface Adapter<E> {}  class Adaptulator<I> {     <E, A extends I & Adapter<E>> void add(Class<E> extl, Class<A> intl) {         addAdapterFactory(new AdapterFactory<E, A>(extl, intl));     } }   The add() method gives me a compile error, "Cannot specify any additional bound Adapter<E> when first bound is a type parameter" (in Eclipse), or "Type parameter cannot be followed by other bounds" (in IDEA), take your pick.  Clearly you're just Not Allowed to use the type parameter I there, before the &, and that's that. (And before you ask, it doesn't work if you switch 'em, because there's no guarantee that I isn't a concrete class.) But why not? I've looked through Angelika Langer's FAQ and can't find an answer.  Generally when some generics limitation seems arbitrary, it's because you've created a situation where the type system can't actually enforce correctness. But I don't see what case would break what I'm trying to do here. I'd say maybe it has something to do with method dispatch after type erasure, but there's only one add() method, so it's not like there's any ambiguity...  Can someone demonstrate the problem for me?


I which to have a wrapped figure in a custom float environment: the caption should be on top and carry the name "Infographic". Unfortunately I don't know how to do this.   This is what I came up with  \documentclass{article}  \usepackage{float} \usepackage{wrapfig}  \floatstyle{plain} \newfloat{infographic}{H}{info} \floatname{infographic}{Infographic}  \begin{document}  \begin{wrapfigure}{r}{.4\textwidth} \begin{infographic} \centering \includegraphics[width=.4\textwidth]{test} \end{infographic} \end{wrapfigure}  \end{document}   but the newfloat completely messes up the wrapfigure.


When I call on a method in a class, the method will get the java.lang.Class that called on it using sun.reflect.Reflection.getCallerClass(2). This is not what I want. I want the Reflection to return the class Object that called on it (i.e. if I call the method from the Bar class, the Reflection.getCallerClass() returns an object of type Bar)  Let's suppose I have this class:  public class Foo {     public static void printOutCallerObject() {         System.out.println(classTypeThatCalledOnMethod);     } }   Called by:  public class Bar {     public static void main(String[] args) {         Foo.printOutCallerObject();     } }   And then the program would print out "Bar".


We all know how important proper attribution of ideas is. At the same time, certain things have become basic enough that citing the paper where they were first discussed is overkill: to give an extreme example, if you need to do some differentiation in your math/physics paper, you don't need to go and cite Newton and Leibniz. Now, on occasion students ask me how one can determine if a piece of knowledge is common enough that they can forgo a citation. The rule of thumb I give them is:     If it is something that is explained in a standard first-year undergrad textbook, then anybody who is going to read your papers knows about it and you don't need to provide a citation.   [Here I want to emphasize that I give this to them as a rule of thumb, and I always tell them to ignore it and provide the relevant citation if they think it is necessary to do so in a specific case]  Are there better or alternative ways of drawing the line?


how to enable mod_deflate in apache tomcat? My site pages are loading slowly.When tested on Google page speed it suggested enable compression i.e. set mod_deflate in apache tomcat.how to do it?


Moving content from old site/domain to new

We have two sites/blog, and now we are merging the two blogs into one blog. We move content from domain2.com to domain1.com. What should I consider when it comes to SEO. Should I move all the traffic from domain2.com to domain1.com? And then 301 redirect articles from domain2.com to matching the imported articles at domain1.com?


Given P idempotent, show that I−P is idempotent.

So my task is well summed up by this older post:     PandaMan idea is that by proving $(I−P)^2 = (I-P)$ we prove that $(I-P)$ which implies that also $(I−P)^2$  My question is, how do we know/prove that $(I−P)^2$ is idempotent?    Thanks in advance! /Luke


Materials Turn White Once Imported Into UE4

I wasn't sure whether to post this on the game dev Stack Exchange or the Blender Stack Exchange, so I'm just posting it here. Anyways, as you can see below MOST of my materials turn white when importing into UE4, however they still keep the texture, just not the color. How do I fix this? Thanks! :)


This is my source code of a LaTeX file, I use the package CJK in the editor WinEdt, and MiKTeX, but the display result is bad, it cannot display Chinese characters.  \documentclass[12pt]{article} \usepackage{CJK} \title{Test} \author{zhulongsheng(11291065@bjtu.edu.cn)} \date{2014/01/28} \begin{document} \maketitle \begin{CJK*}{GBK}{song} \today \section{第一} 这是第一段 \CJKfamily{hei} \section{第二} 这是第二段 \subsection{Goal} 这是 \LaTeX \end{CJK*} \end{document}


Where is the GNOME Extensions error log?

I have installed gnome-shell-extension-move-clock on 18.04 and it does not work.  In gnome-tweaks it displays a warning icon with the title "Error loading extension".  Where can I find more details about the exact error?  Is there a log file for the GNOME Extensions?


Eigenvalues of a real skew symmetric matrix

Given a real, skew-symmetric matrix $\mathbf{A}\in\mathbb{R}^{m\times m}$, and a nonzero vector $X\in\mathbb{R}^{m}$, classify the scalar $\lambda$ (real, complex, imaginary, etc.) in the eigenvalue equation $$ \mathbf{A}X = \lambda X $$  The matrix $\mathbf{A}$ is skew symmetric if $\mathbf{A}^{T}=-\mathbf{A}$.  My try : I am new to matrices , so can not get a idea how to deal with it , Any hint will help


Is there a way to convert string to json object in javascript

I am trying to convert list of string into json object. My string is : personName + rank. This is string is arranged as per the person's rank. PS: the backend code is in solidity My code so far is as follows:      var ranks = new Array(5);     PersonNames = Object.keys(names);     ranks = contractInstance.dashboard.call(PersonNames);// function in solidity      var finalList = [];     for (var j = 0; j < ranks.length; j++){       var winList = web3.toAscii(ranks[j]);       var winCount = contractInstance.RanksFor.call(ranks[j]).toString();       var person = {};         person["name"] = winList[j];         console.log(winList[j]);         person["ranks"] = winCount[j];       finalList.push(person);     } var myJSON = JSON.stringify(finalList);   Please let me know if I am making use of the correct syntax. I am learning how to implement javascript. Any help would be appreciated. Thank you!!


File-Search in Gnome-Shell no longer working

I am running Ubuntu 18.04 with Gnome 3.28.2. Until recently, I could search for files located in my home-folder using the GNOME-Shell by just pressing the SUPER-key and typing the name of the file. But for some reason, I no longer get any search results for files. Only when I open Nautilus and carry out the search there. All other searches like calculator, weather or contacts work well.   When I open Settings->Search, everything is activated, but "Files" does not show up. However, by clicking on the little cog-symbol, I can see that all my folders inside my home-folder are enabled for search.   I'd be very happy if somebody were able to help me fix this problem!  Thanks in advance!


What happens if you hit the queen in when you're not supposed to?


What are the solutions in integers of $x^3-x+9=5y^2$?  [Source: Hungarian competition problem]


Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

I tried restarting the Mysql server but its not working for me. I am sure the server is running and the permissions on the folder /var/lib/mysql/ are correct (777).  When i tried to open the file mysql.sock, its giving me an error saying the file may be corrupt.  Please help me to log on to the mysql server.


I made a rough calculation (probably having made a miscalculation though) following  and  to find out the number of air molecules in 1 cubic centimetre of air.   The first website says there are about $0.02504\times10^{27}$ air molecules in 1 cubic metre. The the second one says the diameter of an air molecule is about $4\times 10^{-10}$m. Then the area of the molecule is about $4\pi\times 10^{-20} \approx 12\times 10^{-20}$.  Then we get the number of air molecules in one cubic metre to be about $12\times0.025\times10^7$, and in one cubic centimetre to be about $12\times0.025\times10^5 = 30000$.  So if there are 30000 air molecules in 1 cubic centimetre, it's almost impossible for light to miss hitting all of them. Following this logic, I can't comprehend how light propagates in air (I would expect it to be scattered, absorbed etc). How does physics explain this?   Furthermore, since the speed of light in a vacuum is constant, but light is "slower" in higher refractive index materials, can I assume light travels a longer path when it travels through a medium with a refractive index higher than empty space? If not, what decreases its speed?   (I thought two questions are related as they both question how light travel in air.)


I get a NullPointerException when I try:  protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_stats);          final EditText nameText = (EditText) findViewById(R.id.creatureName);          String nameDisplay = nameText.getText().toString(); // <--- Error here          TextView name = (TextView) findViewById(R.id.textViewStatsName);         name.setText(nameDisplay);          goBackButton();     }   The EditText exists on the MainActivity, while I try to access it when another activity is created.  I want to have the same text as written on the EditText on the (empty) TextView.   I have seen that there are quite simular questions here, but sadly I never found any answer to the question. Also I am quite new to Android Studio and programming apps, so if I have done anything wrong in the code, please explain.  Thanks in advance.   EDIT:  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     tools:context="com.something.creature.StatsActivity">      <Button         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="Go back"         android:id="@+id/backButton"         android:layout_alignParentBottom="true"         android:layout_alignParentStart="true"         android:layout_marginStart="18dp"         android:layout_marginBottom="18dp" />      <TextView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="Health Points:"         android:id="@+id/textHP"         android:layout_alignParentTop="true"         android:layout_alignParentStart="true"         android:layout_marginTop="114dp" />      <TextView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="Strength Level:"         android:id="@+id/testSTRlvl"         android:layout_marginTop="44dp"         android:layout_below="@+id/textHP"         android:layout_alignParentStart="true" />      <TextView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:textAppearance="?android:attr/textAppearanceLarge"         android:id="@+id/textViewStatsName"         android:layout_centerHorizontal="true"/> </RelativeLayout>


What does it mean when we say "be nice to new users"?

Today a brand new user to the SE community, asked a question about graph theory. This is the full text of their question  Let G be a bipartite graph with 2n vertices exactly one perfect matching. Show that |E(G)| ≤(n+1). 2 Show that this bound is best possible for all n ∈ N≥1.  Moments later, an established Math SE user responded with the following:  It appears that you are pasting your homework questions exactly, hoping to get someone here to provide you with the solution. If that is what you're doing, it is probably a violation of your school's academic integrity rules. If it's not what you are doing, you should explain in more detail what is actually going on and what kind of help you are looking for.  To recap: this was the new user's second post on the SE community, and because they clearly asked it without fully understanding the norms and cultural conventions of SE, they are being accused of violating academic integrity rules, downvoted into oblivion, and found their post summarily closed. In the ensuing discussion, the new user wrote:  I'm not an University student just want to have knowledge  In other words, they were self-studying, got stuck, and then tried asking for help on  a Q&A site. So, what does it mean exactly to "be nice" to new contributors? I ask this because I see brand new users on the Math SE site who fail to properly dot all their i's and cross their t's encounter accusations, downvotes into oblivion, and (what I read as) hostility pretty much any time I passively browse the site. I know that it's common for people to dump homework questions here with the expectation that others will do their work for them. But at the same time, it's probably more common that brand new users don't actually know the cultural norms of SE, don't know the ins and outs of the site, and find themselves genuinely confused to be met with accusations of academic integrity violations for asking a question in a Q&A community! It's no wonder that the vast majority of people I know don't consider Math SE to be a very inviting place to ask questions. Anyway, it would seem that "be nice" should imply "assume good faith". What am I missing here? With regard to the thread that some have suggested this is a duplicate of, I don't find them to be similar at all. This thread is specifically about new users, and in particular about assumptions of bad faith on the part of new users. The suggested thread does address some points about hostility to new users, but not really the point about bad faith. Further, it doesn't ask wheter assuming good faith should be part & parcel with "be nice".


How can I install Midnight Commander on Ubuntu 18.04.1?

I can't install Midnight Commander (mc) on Ubuntu 18.04.1.  /etc/apt/sources.list file:  deb http://archive.ubuntu.com/ubuntu bionic main deb http://archive.ubuntu.com/ubuntu bionic-security main deb http://archive.ubuntu.com/ubuntu bionic-updates main   And this is the reply I get when I try to install:  $ sudo apt-get install mc Reading package lists... Done Building dependency tree Reading state information... Done Package mc is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or   is only available from another source   This didn't help (#1):  $ sudo apt-get update   This didn't help (#2):  $ sudo add-apt-repository ppa:eugenesan/ppa sudo apt-get update sudo apt-get install mc   It also didn't help to change mirror to http://de.archive.ubuntu.com, for example.


Trying to get the point into a line at a given distance

I am regular user of StackOverflow, but new here.  I'm trying to guess how to do that:  Given a straight line (x1, y1, x2, y2) how can i get the point into the line (x, y) who are at an n distance from x1, y1?    I'm very bad with math, and I'm developing a 2D game. That should be forbidden!!   Thank you very much!!


How can I identify the macOS version from the command line?

After detecting a GNU/Linux system through running uname, 1.  After detecting a Darwin (possibly macOS) system through running uname, there must be a Different (maybe not that much...) way to Ask the OS version number1. Even if it only works on macOS, it'd be useful.  This is similar to the , but I’d like to specifically target macOS to script a check of the version. In what way(s) is this possible?


Fastest way to shred large xml data into a table

I have a nightly process that shreds XML data from a 17 million row table (120 GB) into another table, it takes about 3 hours and inserts about 1.5 million records.   I currently do a complete drop and reload. I've tested just shredding and inserting new records, but haven't seen much of an improvement (tried left outer join and not exists and except). I use xquery and nodes(), use text(), use cross apply; the source table does not have a clustered index so I cannot create an XML index (vendor table that I cannot modify). Is there a faster way to get this finished in less than 3 hours?  The query is basically this:  WITH XMLNAMESPACES(DEFAULT 'blahblahblah') INSERT INTO mytable SELECT   ID,   Value1.Field1.value('element1/text())[1]','varchar(255)') AS myfieldvalue1   Value2.Field1.value('element2/text())[1]','varchar(255)') AS myfieldvalue2 FROM my table CROSS APPLY mytable.data.nodes('//path1') AS Value1(Field1) CROSS APPLY mytable.data.nodes('//path2') AS Value2(Field2)   I can't really post a sample of the XML, but it is big for some records.


Simultaneous / blended develop logic and set theory?

My goal right now is to gain a deep understanding of how to talk about mathematical objects formally. The presentation of how to do this in most books is generally to "assume some basic set theory," and then go about developing logic, or "begin with basic notions from logic," and develop set theory. I'm wondering if there is a blended approach, which would first, perhaps, define a little set theory, then a little logic, then a little more set theory, etc., and eventually you'd have enough to go on where it wouldn't be so hard just build out the topics separately. I know that this is going to be a less direct, and probably far uglier way, of going about the development of the very foundations of mathematics, but it is intellectually satisfying to me to know that it has been done. I also believe it appeals to the general mathematical ideal of rigor. The qualities of such a presentation I'm looking for is:  Use the fewest "basic notions"/assumptions as possible Only build off notions that have not been assumed or derived (e.g. do not invoke the general "basic notions of set theory" "basic logical notions" unless those notions have been clearly laid out on the table)  Thank you!


Show that $(fg)^{(n)}(x)=\displaystyle\sum_{k=0}^n {n\choose k} f^{(n-k)}(x)g^{k}(x)$

Let $n\geq 1,$ and let $f$ and $g$ have $n$th derivatives on $(a,b).$ Show that $(fg)^{(n)}(x)=\displaystyle\sum_{k=0}^n {n\choose k} f^{(n-k)}(x)g^{k}(x).$   My work. I think I can use induction to solve this.  Consider $n=1.$ Then $(fg)^{(1)}(x)=f'(x)g(x)+f(x)g'(x)$ and $\displaystyle\sum_{k=0}^1 {1\choose k} f^{(1-k)}(x)g^{(k)}(x)=f'(x)g(x)+f(x)g'(x).$ Hence the result is true for $n=1.$   Assume the result is true for some $m\in \mathbb{N}, 1\leq m< n.$   By assumption, $(fg)^{(m)}(x)=\displaystyle\sum_{k=0}^m{m\choose k}f^{(m-k)}(x)g^{(k)}(x).$ Since $(fg)^{(m+1)}(x)=\dfrac{d}{dx}\left[(fg)^{(m)}(x)\right],$ we have that $$(fg)^{(m+1)}(x)=\displaystyle\sum_{k=0}^m {m\choose k}f^{(m+1-k)}(x)g^{(k)}(x)+\displaystyle\sum_{k=0}^m{m\choose k}f^{(m-k)}(x)g^{(k+1)}(x)\\ =f^{(m+1)}(x)g(x)+\displaystyle\sum_{k=1}^m{m\choose k}f^{(m+1-k)}(x)g^{(k)}(x)+\displaystyle\sum_{k=0}^m {m\choose k}f^{(m-k)}(x)g^{(k+1)}(x)\\ =f^{(m+1)}(x)g(x)+\displaystyle\sum_{k=0}^{m-1}{m\choose k+1}f^{(m-k)}(x)g^{(k+1)}(x)+\displaystyle\sum_{k=0}^m {m\choose k}f^{(m-k)}(x)g^{(k+1)}(x)$$ (by summation index properties)  Now note that $${m\choose k+1}+{m\choose k} =\dfrac{m!}{(k+1)!(m-k-1)!}+\dfrac{m!}{k!(m-k)!}\\ =\dfrac{m!(m-k)}{(k+1)!(m-k-1)!}+\dfrac{m!(k+1)}{(k+1)!(m-k)!}\\ =\dfrac{(m+1)!}{(k+1)!(m-k)!}\\ ={m+1\choose k+1}.$$  So the sum is equivalent to $$f^{(m+1)}(x)g(x)+\displaystyle\sum_{k=0}^{m-1}{m+1 \choose k+1} f^{(m-k)}(x)g^{(k+1)}(x)+f(x)g^{(m+1)}(x)\\ =f^{(m+1)}(x)g(x)+\displaystyle\sum_{k=1}^{m} {m+1 \choose k} f^{(m+1-k)}(x)g^{(k)}(x)+f(x)g^{(m+1)}(x)$$ (by summation properties) $$=\displaystyle\sum_{k=0}^{m+1} {m+1\choose k} f^{(m+1-k)}(x)g^{(k)}(x),$$ and so the result holds for all $n\in\mathbb{N}.$     This argument is a little long, so I guess it can be shortened.


Prove that if $a^{-1} = a$ for all $a \in G$, then $G$ is abelian.

I had proved the statement as the following,  Suppose $a,b \in G$ and $a^{-1} = a$ thus $b^{-1} = b$.   Consider $a^{-1}b^{-1}$.   Let $e$ be an identity element in $G$ this will get $baa^{-1}b^{-1} = beb^{-1} = bb^{-1} = e$ .   Thus $a^{-1}b^{-1} = (\, ba )\, ^{-1}$   Since $(\, ba )\, ^{-1} = ba$, $ab = a^{-1}b^{-1} = (\,  ba )\, ^{-1} = ba$   $\therefore G$ is an abelian group. Quod Erat Demonstrandum  Can you check the errors for me please?


In the RSA encryption system, are there not multiple messages m that give the same cipher text c?

For example:  p = 5, q = 11, n = 55  $\phi$(55) = 40  e = 3, $\phi$(55) and 3 are relatively prime  m = 3, then: $3^3 mod(55) = 27$  m = 113, then: $113^3 mod(55) = 27$  I heard that e and $\phi$(n) have to be relatively prime in order for the encryption to give unique solutions, but it seems that even if they are, multiple values for m gives the same encrypted c value. Is this not a problem? Or am I missing something or doing something wrong? I am asking if it is a problem that multiple values of m give the same cipher text c.


Mechanism to prevent edits without approval?

I would say a quarter to half my questions end up getting edited the vast majority of which end up dramatically changing the context of my question. I'm not against good advice (I've acted on about 2% of all the criticisms I have ever had about my work since they were actually thoughtful) though I think since I joined overflow sites years after I've had a good grip on most of the material I work with people are seeing low reputation and presuming that equates to low levels of comprehension.  Regardless of the reasoning behind people making edits is there an option I can use that would require my approval in order to commit an edit to my questions?   I have no interest in spamming questions in order to artificially boost my reputation. I am getting tired of having to add bullet points telling people to ask for clarifications instead of editing my posts. Having to correct my posts so often reduces my desire to ask the question if I have to review the question again (even with the revision pages available). As this is a discussion there is no reason to edit this post, I will be happy to revise my own if you leave comments as I actively follow questions I participate in though the office of redundancy redundancy requires that I state I know what I am asking.   For example, say I post about Kubuntu (which by default uses KDE) and someone edits it changing the OS to Ubuntu (which uses Gnome by default). Then, answers become Gnome-oriented for a KDE question and the entire context has been changed--negating the point of asking the question in the first place.


Comprehensive question quality blocks now enabled everywhere

Questions are the lifeblood of any Stack Exchange site. But asking good questions can be difficult, and while most people start off doing it poorly, some never get better. For years now, when sites reached traffic levels that made manual review and filtering of questions burdensome for the good folks answering them, we've enabled systems to :  We believe asking questions on our site is a privilege, not a right. If, after a few fair attempts, you haven’t been able to prove that your contributions to Stack Overflow make it at least … not-worse … then we reserve the right to refuse your questions. If we don’t do our part to cull the bad questions, then we risk alienating the true experts who provide what really matters: the answers!  Prior to today, these "comprehensive" checks have been enabled on only 8 sites. After much discussion and soul-searching, we've decided to enable them everywhere. Users who encounter this block are directed to , which explains what that person must do to lift the block. Moderators have access to information on whether or not a given user would be blocked if they try to ask, as well as whether or not they've previously encountered the block, for those cases where it is desirable to provide one-on-one support. What you can do to help Quality blocks are based on each community's rating of questions and answers, therefore the most useful things you can do are:   if you see a great, thoughtfully asked, well researched question, vote it up — please! Great questions are an art! if you see an egregiously sloppy, no-effort-expended question that you feel was asked in bad faith … vote it down. anything in between that’s salvageable, edit it!   Don't worry about the exact details of the algorithm used for blocking - in general, it's fairly conservative as far as who or what gets blocked. On the majority of sites, this will affect few if any users in the near future. Most users will encounter  and  long before they encounter this block. As always, vote your conscience and encourage new members to participate constructively. Feel free to post questions or concerns here. If you encounter problems specific to a given site, please post on that site's meta. If you encounter this block and want it lifted, read the instructions linked to in the block message.


Principal ideal property without being integral domain?

In my algebra course (taught from Artin), a principal ideal domain is defined as an integral domain such that all ideals are principal. This got me wondering:      Are there rings for which every ideal is principal, but the ring is not an integral domain?


SSH and many other programs are not working after chmod -r 755 /etc

I have a new web-admin and he mistakenly ran chmod -r 755 /etc to try and disallow our shell users from reading any other files. As a result, SSH on our server does not work. How can we fix this?


Bash Function Parameters - Spaces in Filename

I know there are rules for quoting parameters, but no matter what I try, I can't seem to figure out how to make this work.  I have a function that takes a single filename as a parameter, then uses that filename to build a command line and runs the command line. I am able to make it work when there are no spaces in any of the files, but when a filename with a space is introduced, it breaks. Everything I try to make it work with spaces either doesn't work or causes it to not work on the files without spaces too.  Here is an example script that works with no spaces:  #!/bin/bash list_files() {     file="${1}"     cmd="cat ${file}"     echo "Running command: '${cmd}'"     ${cmd} }  TARGET_DIR="${1}"  while IFS= read -d $'\0' -r file; do     list_files "${file}" done < <(find ${TARET_DIR} -type f -print 0)   I just created a directory structure as follows:  ./files/ |-- one                # ==> Contains the text "files/one" |-- two                # ==> Contains the text "files/two" |-- three and four     # ==> Contains the text "files/three and four" |-- five               # ==> Contains the text "files/five"   When I run the above script on the directory above, I get the following output:  bash-3.2$ ./test.bash ./files Running Command: 'cat ./files/one' files/one Running Command: 'cat ./files/two' files/two Running Command: 'cat ./files/three and four' cat: ./files/three: No such file or directory cat: and: No such file or directory cat: four: No such file or directory Running Command: 'cat ./files/five' files/five   What am I doing wrong and how can I make a script like this work no matter what the file names are?  NOTE: For this example it would be simple enough to not store the command in a variable first and just print it then call it by typing the command itself twice, but for my real script, the command is much more complex and I would like to only have to maintain it in one place if it should need to change in the future.


How to avoid getting shocked by static electricity?

sometimes I get "charged" and the next thing I touch something that conducts electricity such as a person, a car, a motal door, etc I get shocked by .  I'm trying to avoid this so if I suspect being "charged" I try to touch something that does not conduct electricity (such as a wooden table) as soon as possible, in the belief that this will "uncharge me".   Is it true that touching wood will uncharge you? How and when do I get charged? I noticed that it happens only in parts of the years, and after I get out of the car...