System.nanoTime() seems broken. Alternative to check for code efficiency wanted

Since I wanted to check several methods (foo(int)) for efficiency and compare them to the overall runtime I ended up writing something similar to:  void testNanoTime(){     long methodDuration = 0;     long testStart = System.nanoTime();     for(int i= 0; i< 300; i++){          long startJob = System.nanoTime();         foo(i);  //checking how foo does with certain data.         methodDuration+= System.nanoTime()-startJob;          bar();     }     System.out.println("MethodDuration: "+methodDuration);     System.out.println("TestDuration:   "+(System.nanoTime()-testStart)); }   foo(int) sometimes needs several minutes up to half an hour (but not in sum 293 years!) per call. The issue is now, that sometimes the TestDuration (the whole time the method takes) is smaller than the methodDuration, which seems impossible to me. Hence two questions:   To which amount are my older tests comparing methodDurations still valid? What should I use for further testing of performance without danger of getting invalid timeStamps? Would be System.currentTimeMillis() safe to go or has it the same issues?    Currently the testing takes place at a linux system. I already found some older questions and answers regarding this issue here (e.g. ), but some state it is a Windows problem and other answers remain unclear as they mention, they might be outdated (and they are even several years old). Even most answers contradict each other!


PHP file_get_contents and exit before page loads

I'm wondering how I can use file_get_contents to load an external page and exit off before the page loads (I don't need the output). Here's the essential flow:   A: POST request with file_get_contents to B B:  and does a very long action A: finishes right after it makes the connection to B B: finishes after the very long action   How would I go about "exiting" right when script B starts executing (before the page loads)


Windows 10 Disable Win + Tab Task View Window Animation

So you can turn off the "sliding" animation when switching between Virtual desktops when unchecking "Animate windows when minimizing and maximizing" in the Performance Options; this prevents you from seeing any animations when you switch between virtual desktops.  However, whenever I enter Task View (such as by pressing Win+Tab), I notice that there's a brief animation where all of the Windows that are currently on screen move into the little boxes to select from, and then once a Window is chose, there is another animation where they all move back into place.  Unfortunately, changing the option that I mentioned earlier does NOT disable this animation, and honestly, I'm not quite sure what does.  How can you disable the initial Task View animation in Windows 10?  EDIT:  This is not the same as the question here:  I'm referring to the very first animation that plays the moment you press the task view button, not the one that plays when switching between virtual desktops.


Software centre neither update does not work on 12.04

m@samsung:~$ sudo rm /var/lib/apt/lists/* -vf [sudo] password for m:  rm: cannot remove `/var/lib/apt/lists/partial': Is a directory m@samsung:~$ sudo apt-get clean m@samsung:~$ sudo apt-get update N: Ignoring file 'gnomebaker.lis' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Malformed line 1 in source list /etc/apt/sources.list.d/gnomebaker.list (URI parse) E: The list of sources could not be read. m@samsung:~$ sudo apt-get install software-center Reading package lists... Done Building dependency tree        Reading state information... Done software-center is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up update-notifier-common (0.119ubuntu8.6) ... Bus error (core dumped) dpkg: error processing update-notifier-common (--configure):  subprocess installed post-installation script returned error exit status 135 dpkg: dependency problems prevent configuration of update-notifier:  update-notifier depends on update-notifier-common (= 0.119ubuntu8.6); however:   Package update-notifier-common is not configured yet. dpkg: error processing update-notifier (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                           Errors were encountered while processing:  update-notifier-common  update-notifier N: Ignoring file 'gnomebaker.lis' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Malformed line 1 in source list /etc/apt/sources.list.d/gnomebaker.list (URI parse) E: The list of sources could not be read. E: Sub-process /usr/bin/dpkg returned an error code (1) m@samsung:~$


Animated show about warriors who summon giant monsters using rocks covered in runes

I remember a show airing on Cartoon Network or on demand of this "mon" genre. Warriors summoned giant monsters using rocks covered in runes.


CentOS keeps losing its localtime setting?

I'm running an extremely typical CentOS 6.5 server at DigitalOcean.  As part of the site setup, I've changed /etc/localtime to something appropriate for me:  rm /etc/localtime ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime   This works fine, except somebody/something is resetting it:  I'll check back in with the server at some random (I think) point, and find that my link has been replaced with the original localtime file, putting the server back in UTC.  I've looked in /etc/cron* on the chance that there's a script in there doing it, but I can't find anything.  Has anyone else run into this before?  Thanks!


Are virtual exchange particles real or just mathematical?

When an electron exchanges a virtual photon with another electron or proton, is the virtual photon a real particle or just a mathematical construct? In string theory, the force carrier particles of the electromagnetic, strong, and weak forces are supposed to be open string bound to their d branes. But if virtual particles are just mathematical how can this be?


Should you conform to journal formatting requirements for the initial submission?

In my past experiences, I have almost never typeset my manuscripts according to the formats required by the journals to which I would like to submit. I leave my manuscripts as produced by the LaTeX article documentclass.  Recently I am wondering: Would such a behavior generally give handling editors a negative first impression?


Shamir Secret sharing - Can share generator keep x values secret?

I'm wondering, in Shamir secret sharing, can generator of the shares, keep the x values which are used in evaluating the polynomial to obtain y values (i.e., the shares) secret, and whenever the original secret is needed, he retrieves the t shares and reconstructs the secret? In this setting the share holders should not be able to construct the secret even all of them collude. Is there any secure way of doing so?


Is a LATCH booster seat used without LATCH any less safe than a LATCH-less booster seat?

We have the Graco AFFIX Backless Booster Car Seat with Latch System, but our new babysitter's car does not have LATCH.  Would there be any difference between using this seat without LATCH (just with the seatbelt) and buying a LATCH-less booster seat?


How can I print the second to last line of many files into one file?

I have many CSV files in one directory which have various lengths.  I'd like to put the second to last line of each file into one file.  I tried something like tail -2 * | head -1 > file.txt, then realized why that doesn't work.    I'm using BusyBox v1.19.4.    Edit: I do see the similarity with some other questions, but this is different because it's about reading multiple files.  The for loop in Tom Hunt's answer is what I needed and hadn't thought of before.


I have a custom build with a Intel Core i7-3820 on MSI X79A-GD45(8D) X79 motherboard.  I'm using Thermaltake CLW0215 Water 2.0 Performer as CPU cooling.  I have this build for about a year now. Back then, when starting my PC, the CPU temperature at idle would be around 27-30C and would never go over 60-65C under heavy load.  However, this week when starting my PC, it showed 55-60C on startup and could peak at 100C under heavy load. It looks like it's totally unable to go under 55C now, even if nothing is running at all. Using Power 95, I noticed the temperature rise very quickly, but also drop sharply when the test stops. Does that mean the cooling still works?  Dusted it off all. All fans spinning... Can't be really sure if the water pump is working, as it never made any sounds to begin with. But I would guess if the pump never worked, I wouldn't have stayed at 30C... I would be at 100+.  Does the CPU thermometer can be stuck at +30C than normal? Is it even possible for a CPU thermometer to be messed up? What should I be doing to see if there's an error or if there's a material issue?


Why does $\lim_{n\to\infty} z_n=A$ imply $\lim_{n\to\infty}\frac{1}{n}(z_1+\cdots+z_n)=A$?

I'm self-studying a bit of complex analysis, and I'm attempting to figure out the following.   Suppose $\lim_{n\to\infty}z_n=A$. How can I show that $$ \lim_{n\to\infty}\frac{1}{n}(z_1+\cdots+z_n)=A. $$  Is there a clever way to write the limit to make it more approachable? Thank you.


I try to create the telegram bot in Java, and I need to add inline buttons in there. I looked at the official documentation  and everything I made - the button, but they don't work. I also check all GitHub Java examples, but it didn't help. I don't understand how I can obtain the answer of pressing to this button and do something with. For example, If the user presses this button - send him something. Here is my code:  public void sending(Long chatID, File photo) {     InlineKeyboardMarkup keyboardMarkup = new InlineKeyboardMarkup();     InlineKeyboardButton button = new InlineKeyboardButton();      List<List<InlineKeyboardButton>> buttons = new ArrayList<>();     List<InlineKeyboardButton> buttonList = new ArrayList<>();     button.setText("Just button");     button.setCallbackData("callBack");     buttonList.add(button);     buttons.add(buttonList);     keyboardMarkup.setKeyboard(buttons);      SendPhoto sending = new SendPhoto();     sending.setChatId(chatID.toString());     sending.setNewPhoto(photo);     sending.setReplyMarkup(keyboardMarkup);     try {         sendPhoto(sending);     } catch (TelegramApiException e) {         e.printStackTrace();     } }   Now I have only this error  PM org.telegram.telegrambots.logging.BotLogger severe SEVERE: BOTSESSION java.lang.NullPointerException     at mybot.SimpleBot.onUpdateReceived(SimpleBot.java:62)     at org.telegram.telegrambots.updatesreceivers.BotSession$HandlerThread.run(BotSession.java:197)  I would be really appreciated if somebody gives me some tips or simple java code with using callback buttons.


So I have several servers all set up to send and receive mails from multiple domains, this all works perfectly fine.  However a few people have complained that within the mail headers you still see the name of the server being used, we'll call it "mail1.example.com". They can send and receive mail fine, it's showing their email addresses, using the right DKIM reports etc but they don't like having to have SPF records within their DNS specifically for my server or the headers.  Is it possible in any way with Postfix to "virtualise" the usage of "myhostname" so that it can pic/choose which server name to use?


For convexity :  $$e^{ta+(1-t)b} \leq t \cdot e^a+(1-t)e^b \Rightarrow e^{(a-b)^t} \leq te^{a-b} + 1 - t$$  Now I'm stuck on how to solve it further.


Tikz: How to combine orthogonal edge syntax with coordinate calculation?

I'm trying to combine the syntax for orthogonal edges (p |- q) with the syntax for calculation relative coordinates ($ (a) + (1,0) $). Example:  \draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) + (1,0) $) |- node2.north);   However, I get an error:  Package pgf Error: No shape named ($ (node1 is known.   There is an obvious work-around in this case, but for educational purpose I'd like to understand why this syntax does not work, and how to solve the problem in general? Intuitively the documentation would suggest that I can simply combine these two syntaxes.   Update -- MWE:  \documentclass{report}  \usepackage{tikz} \usetikzlibrary{calc}  \begin{document} \begin{tikzpicture} \node at (0,  0) (node1) {Hello}; \node at (0, -2) (node2) {World};  % working: \draw ($ (node1.south) + (1,0) $) to ( node1.south |- node2.north);  % not working: \draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) + (1,0) $) |- node2.north);  \end{tikzpicture} \end{document}


How do I choose between "as to", "on", "of", and "about"?

I know that "as to", "on", and "of" are synonymous with "about", but I also know these words are not always interchangeable.  I was wondering if there are rules for picking between these prepositions.    There is still no news as to whether he will leave the company. (all four can be used with no change in meaning)  I don't know what you are talking about.  (only about and of can be used)  I heard of that from Jim. (only of and about) The speaker spoke on the issue of liquidity markets. (all four?)   Thanks for the help.


I wonder why do we say      Is there any mail for me?    rather than      Is there any mails for me?   As far as I know, whenever the word any is used, we have to add an s to the end of the next word.


I have an iPod Touch 5th gen and I sent a really long emoji message to my friend and both our iPods froze! Now everytime I try to open it, it goes to the conversation menu, freezes for about 10 seconds, then crashes back to home screen.   I tried:   Restart Long Restart Double clicking home and closing all recently used apps Turning off imessage then turning it back on and logging in Going to contacts then clicking to iMessage them   Nothing works.


what is a good book (about number theory)

I find a good books for number theory...  An Introduction to the Theory of Numbers (by G.H hardy)or Burton, Rosen..etc  is it good?? (i want a book which best of best in number theory)  i want a lot of theorm and background. etc.  (level is under~~graduate)


How much control do you have over what's moved with teleportation magic?

My question concerns teleportation effects like the  spell or  from SoP over .  When the spell is cast, would you be able to leave behind something you are touching, such as  or even worn clothing (no, I do not plan on stripping people, just if a disguise is ruined you can abandon it for the one you are wearing underneath).


Is the inverse of a continuous monotonic function defined on a compact also continuous?

Let $K \subset \mathbb{R}$ be a compact set, and $f:K \rightarrow \mathbb{R}$ a continuous and strictly monotonic function. Is it true that its inverse function, $f^{-1}: f(K) \rightarrow K$, is also continuous? I know that this result is true if $K$ is an interval, so if $K=[a,b]$ this result holds, but does it still hold if $K$ is an arbitrary compact set?


Of the Ring-bearers since Isildur, we have:   Gollum, on whom the Ring's influence was strongest: it caused him to murder his best friend almost as soon as they found it, and turned him into a wretched creature that lived only to serve/possess the Ring; it also extended his lifespan to several hundred years Bilbo, who was extremely reluctant to give up the Ring to Frodo's care, and always desired to see it again; it also enabled him to become the longest-lived hobbit ever Frodo, who felt irrational dislike towards each of Bilbo and Sam when they tried to 'take' the Ring, and who ended up claiming it for his own rather than destroying it as promised; in later years, its burden never seemed to leave him   That leaves Sam, who bore the Ring for a relatively short time, but did so - and even wore it - on the boundary of Mordor itself.  deals with the issue of why Sam was less affected by it than the others. My question is to what extent was he affected at all: is there any evidence of the Ring either corrupting him by its addictive influence, or unnaturally extending his lifespan, or any other Ringly effect?


Why didn't Voldemort search for the Deathly Hallows?

We know that Tom Riddle was obsessed with immortality and was planning about it ever since he was a little boy. If he had the time to meticulously plan for those Horcruxes, why did he not go in search for the three things that could guarantee his immortality and provide him with the power he had always desired?


I installed gparted to use for partitioning my hard drive so ubuntu is my only os but when I tried to run gparted, it told me that i have to be root but i am root as far as i know how do i know for sure i haven't even signed on as guest because i am still setting stuff up most other apps ask for confirmation i type in my password and on i go but gparted doesn't have that prompt how do i become root


JSTL Boolean Null Pointer exception thrown

I have a code where I am trying to display a cross or tick based on the value of a object property in JSTL. The property is of type Boolean and I am getting a java.lang.NullPointerException thrown in the jsp. My code is as follows   <c:if test="${gem==true}">    </c:if>   <c:if test="${gem==false}">    </c:if>   Can anyone help me to resolve this?


build dynamic documents from a Textdatabase

I need a dynamic solution to produce questionnaires from a database of questions which gets updated from time to time. I thought of LaTeX for set out the layout but the question is whether LaTeX can import specified fields of an Acces or Excel or whatsoever external "database".  I also thought about WORD Macros and .NET programming, but I preferred LaTeX.


I'm trying to get an image centered within an itemize list preferably without the use of the center environment (since this induces a call of \item which I otherwise redefine so that pages are ended at the end of every item). But it seems as though my centering is not centering.  The minimal example below demonstrates the problem.  \documentclass{article} \begin{document}  \begin{itemize}  \item Item text   \begin{center}  I'm centered, which is nice.  \end{center}  \item Item text    {\centering Why am I not centered?}  \end{itemize} \end{document}


As we have seen in the final episode of Westworld season one, hosts are attacking guests with firearms. But we know that all the firearms used in Westworld are provided by Delos Corp., and that firearms can't kill or injure humans. So how is it possible?   We have seen a similar thing in the .


Consider: {     "one": {         "one1":"one11",         "System Name":"ssss"     },     "two2": [         ["two20", "two200"]     ] }  If I use '/* comments */' or //comments, I can not get JSON data. But I have too much data, and I must add comments. Is there another way to do it?


How to automatically store DNS entries locally after first visit, for for privacy and speed reasons?

My set of websites that I visit regularly is not very large. In order to increase privacy, I'd like to visit these sites directly without the need of a remote DNS resolve each time I visit it, but I also don't want to remember IP addresses.  Is it possible to automatically store the DNS entry locally and use it the next time I visit the site again, and only fallback to my ISP's DNS server if I don't have an entry on my local "DNS server"?  I'm especially interested in solutions for Windows (and Firefox if this should matter), but Linux answers would be OK, too (since I'm using it more often lately). I'd also be able to use a Raspberry Pi, if this leads to more elegant or robust solutions/answers.  To sum it up: First time visit of website -> use ISP DNS -> Store it on some local DNS database (same computer or local network) -> second visit -> use this local DNS database (+privacy and +speed).


Downgrading from iOS 8.1 beta 2 to iOS 8.0.2

I have to use a backup of my iPhone but iTunes says that is not compatible with  the beta distribution. So I need to downgrade to iOS 8.0.2 but it seems not possible.   Any Idea?  Now I'm downloading it (iOS 8.0.2) manually and I'll try to replace manually.


Decrement the column value by 1 before finding that value in array (MySql WHERE Condition)

I want to decrement the column value by 1 before finding that value in array.  select *  from tbl_credit  where int_credit in (12, 13, 14, 15)  int_credit=13   But I want to decrement int_credit by 1 as like below  select *  from tbl_credit  where 12 in (12, 13, 14, 15)   Can I implement the logic in this query?


What is the purpose of parallel RC network in the bridge rectifier output?

Can anybody explain the necessity of the RC network shown in the figure. I found this in circuit for a logic power supply using Fly-Back converter?


I'm making a game where the user enters his/her first name and last name. The program extracts the first letters from the names, then outputs names from a string array.   I'm thinking the issue is in the last part of the code, where I'm comparing the Strings firstletter and lastLetter to the array. But I'm not sure. I have spent some time researching, and I'm stuck.   Any comments welcome. You won't hurt my feelings.   import java.util.Arrays; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Scanner;   public abstract class ChristmasName extends JFrame implements ActionListener {   public static void main(String[] args) {      JFrame frame = new JFrame("What is your Christmas Name?");     frame.setVisible(true);     frame.setSize(400,300);     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);      JPanel panel = new JPanel();     frame.add(panel);      JLabel firstName = new JLabel("First name:");         JTextField first = new JTextField(15);     JLabel lastName = new JLabel("Last name:");         JTextField last = new JTextField(15);     panel.add(firstName);     panel.add(first);     panel.add(lastName);     panel.add(last);      JButton submit = new JButton("Submit");     panel.add(submit);     submit.addActionListener(new ActionListener() {          @Override         public actionPerformed(ActionEvent e) {            String[] first_name = {"Apple","Eggnogg","Candy","Jingle","Holly","Goldie","Ho Ho","Frosty","Joyous","Mittens","Tinsel","Turkey","Tiny","Cranberry","Bloated","Angel","Bauble","Bulb","Ginger","Blitzen","Eve","Faith","Fruitcake","Goose","Glitter","Grinch"};            String[] last_name = {"Tidings","Swan","Jolly","Claus","Mistletoe","Punch","Chimney","Coal","Igloo","Jumper","Myrhh","Pudding","Reindeer","Rejoice","Icicle","Midnight","Shepherd","Surprise","Gift","Magi","Train","Tree","White","Donkey","Wreath","Stuffing"};             String firstLetter = first.getText();            firstLetter = firstLetter.substring(0,1);             String lastLetter = last.getText();            lastLetter = lastLetter.substring(0,1);             if (firstLetter == "A") {                firstLetter = first_name[0];             }               JOptionPane.showMessageDialog(null, firstLetter + " " + lastLetter);            System.exit(0);              }     });      }   }


How do I convert all of my SE accounts from Facebook to Google?

How can I change my login on all Stack Exchange sites to Google rather than Facebook?


Term describing behaviour of someone that likes to talk about shame or disgust of people, institutions or other things

The closest description I can think of is a "drama queen/king", except that tends to describe people who like being in a drama.   Instead, I want a phrase describing people who like to pick up on stories such as the following:   questionable decisions of others controversies immoral acts    and then they get on their soapbox and passionately rant, uttering phrases like "it's disgusting", "it's a joke", "anyone who agrees with them should be ashamed".   Perhaps the descriptive term for that person might need to include that they are often immune to reason on subjective topics, and that the rants cause displeasure in the listeners, since frequent rants can wear listeners down, as the tone is loud, highly opinionated and of a very negative nature.   The reason I ask is I want search terms to Google to find techniques for dealing with such a person, and protecting one's self from their effects.  Edit: it is not really about whether someone finds faults in others, but the manner in which they frequently rant about issues, either in others, or institutions, or the nature of things.


For example I have this string: hello:there:world  How do I split these three words to string array, I mean the final result will be this:  arr[0] = "hello"; arr[1] = "there"; arr[2] = "world";   Thanks in advance.


closures in javascript understanding example

function setupSomeGlobals() {     // Local variable that ends up within closure      var num = 666;     // Store some references to functions as global variables     gAlertNumber = function() {console.log(1); alert(num); }     gIncreaseNumber = function() { num++; }     gSetNumber = function(x) { num = x; } }   how can I accesss here gAlertNumber method?  update: this code is the Example 4 in an answer on


My script needs two arguments. I want to hide the error message if someone calls the script with  script.sh --help   so I tired this:  if [ $# -ne 2 ] ; then   if [ "$1" -ne "--help" ]; then     echo "ERROR: wrong number of parameters"     echo   fi   echo "Syntax: $0 foo bar   exit 1 fi   But I get the error  script.sh: line 10: [: --help: integer expression expected   What is wrong?


I'm seafarer and I have iceland issued schengen visa, can use this to visit my girlfriend in netherland?

I am a seafarer and im on vacation now, and I have a schengen visa, I want to visit my girlfriend in netherlands. Can i use my schengen visa which is valid for 90 days and has multiple entry on it?


Saving vector layer with specific symbology using QGIS?

I am creating a polygon feature layer with soil classes in QGIS.   I need to share this layer with some colleagues and I need the layer to maintain the color ramp I have created.   Is there any specific format where the color ramp is saved together with the layer?   Since I don´t know how to do that, I was thinking on saving the color ramp that I created as a style.   How can I export this style?


How much cost is spent when retrieving a field or entire record from the DB

For example there are 20 fields in a record, which includes 5 indexed fields out of 20 fields. Given proper indexes on columns are set up and the data will be retrieved with the indexed field. I want to discuss 2 situations below.   retrieving a field from a record retrieving a entire record    The only difference I know is that in case 1, the system uses small amount of data, so it spent less on the bus traffic. But when it comes to retrieving time, I'm not sure in these 2 cases if there will be any difference in terms of hardware operation, because I think the main cost on retrieving task on DB is finding the record regardless of how many fields. Is this correct?


Could anybody help me coding the graphic below? Any tips?

That is all I've got so far from marmot:  \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{patterns} \definecolor{lazy}{RGB}{189,208,112} \begin{document} \begin{tikzpicture}[declare function={gauss(\x,\y)=exp(-(\x/\y)*(\x/\y));}]  \draw (-5,0) -- (5,0)node[below right]{$\mu$};  \draw (0,0) -- (0,4) node[above]{$f(x)$};  \path[pattern color=lazy,pattern=vertical lines]  plot[variable=\x,domain=-2:3,smooth] ({\x},{3*gauss(\x+2,1.5)}) -| cycle;  \draw[color=lazy] plot[variable=\x,domain=-5:3,smooth] ({\x},{3*gauss(\x+2,1.5)});  \path[pattern color=red,pattern=vertical lines]  plot[variable=\x,domain=-5:-2,smooth] ({\x},{3*gauss(\x,1.5)}) |- cycle;  \draw[color=blue] plot[variable=\x,domain=-5:5,smooth] ({\x},{3*gauss(\x,1.5)}); \end{tikzpicture} \end{document}


Toward the end of The Last Jedi      Luke Skywalker gives Han Solo's dices to Leia (projection of them, actually).   Have we seen that item in previous episodes, especially in episodes IV-VI?


Is it possible to have a panel with stl files (or icons representing them) that can be dragged and dropped into the Viewport? I've read through a number of forum posts claiming that it was in the works at some point, but I can seem to find anything conclusive. Is there an add-on that allows that functionality? Thanks!


Equation number in aligned environment after last line

I'm using aligned inside align as follows   \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} x =&22+2 \nonumber\\   =& \begin{aligned}[t]     &5+3\\     &-3+4\\     &+15-0   \end{aligned} \end{align} \end{document}   I want to have just one equation number after the very last line.  However, I'm getting the number at the beginning of the first split line (after the second = ),    and I cannot figure out how to move this equation number to the bottom. Any help will be appreciated.


Can You Recast Hunter's Mark Whenever You Want?

states the following:     If the target drops to 0 hit points before this spell ends, you can   use a bonus action on a subsequent turn of yours to mark a new   creature.   Does that mean that if the target drops to 0 and combat ends then starts again within the hour, you can mark a new target?


I am trying to build a simple program that will keep doing it until a certain conditional is met. In this case whether it is true or false. I've been playing around with it for a while, but I still can't get it to work as I want.   import java.util.Scanner;  public class oddeven {     public static void main(String[] args) {          Scanner scan = new Scanner(System.in);         System.out.println("Enter a number: ");          int num = scan.nextInt();         boolean play = true;         String restart = " ";          do {             if((num % 2) == 0) {                 System.out.println("That number is even!");             } else {                 System.out.println("That number is odd!");             }              System.out.println(                "Would you like to pick another number? (Type 'yes' or 'no')");              restart = scan.nextLine();              if(restart == "yes") {                 System.out.println("Enter a number: ");                 play = true;             } else {                 System.out.println("Thanks for playing!");                 play = false;             }         }         while(play == true);     } }


Gearing your Templar with class opposite?

When leveling a new character as an INT based class (Witch Doctor, Wizard, Etc...) how does one gear the Templar?  Since Loot 2.0 and "smartloot", it's not as easy to get gear for something besides your primary attribute. So doesn't that make it very difficult to gear someone like the Templar if he is running with you?


Why do microcontrollers have so little RAM?

Maybe this is more of a perceptional problem, but it seems like microcontrollers have advanced by leaps and bounds in the last 20 years, in almost all regards, higher clock speed, more peripherals, easier debugging, 32-bit cores, etc...  It is still common to see RAM in the 10's of KB (16/32 KB).  It doesn't seem like it could be an issue of cost or size directly. Is it an issue of complexity with the RAM controller above some threshold?  Or is it just that it isn't generally required?  Looking over a parts matrix at a popular Internet supplier, I see one  with 256 KB for less than US$8, and then for a few dollars more you can find a few more that are ROMless, but it seems pretty sparse...  I don't exactly have a need for a microcontroller with a MB of volatile storage, but it seems like somebody might...


calculating $\lim_{x\to1} \space\space \space \dfrac{a}{1-x^{a}}-\dfrac{b}{1-x^{b}}$

If $\space a,b \in \mathbb{N}$ ,then calculate the limit $$\lim_{x\to1} \space\space \space \dfrac{a}{1-x^{a}}-\dfrac{b}{1-x^{b}}$$ and hence find $$ \lim_{x\to1} \space\space \space \dfrac{40}{1-x^{40}}-\dfrac{30}{1-x^{30}}$$ My approach: simplified $\lim_{x\to1} \space\space \space \dfrac{40}{1-x^{40}}-\dfrac{30}{1-x^{30}}$ to $\lim_{x\to1} \space\space \space \dfrac{5}{1-x^{5}}-\dfrac{15}{1-x^{15}}$ Unable to solve further. and also not able to generalize the result. Any help would be appreciated . THANKS!


Can I set up a website on a wifi router?

Possible Duplicate:          Sounds like a silly question, but bear with me..  If you go into Peet's Coffee and access the wifi, you're taken to a web page that requires a 4-digit code you get with a purchase.   If you do the same at Starbucks you're taken to a page and asked to OK the terms of service.   I want to build something similar for a local independent coffee shop, something that requires the user to write a little about themselves before they can access the Internet.  I'm not sure which way to go -- looking for wifi routers that run an internal web server, or finding one that lets you direct users to an external website for authentication, somehow redirecting back to the access point once successful.   Has anyone done anything like this and can share their experience?


Is the following layout possible with the subfigure package?

Is it possible to achieve the following layout with the subfigure package (and any other package/command I don't know about):  ############# ############## #           # #            # #  pic1     # #            # #           # #      pic2  # #           # #            # ############# #            #               #            # ############# #            # #           # #            # #   pic3    # #            # #           # #            # #           # #            # ############# ##############    Each picture should have a subcaption.


What's the point of keeping packages in APT cache?

Or to put the question differently; what is the point of a persistent APT cache that seemingly doesn't get rid of downloaded packages immediately after install? Does anyone even know what is the eviction policy, is there one? I find on internet all kinds of articles on Ubuntu maintenance how-to's involving the apt-cache clean command and there's also questions asked on this site how to  or  - which may be very useful, sure, but I first need to figure out why files are left sitting around in the cache and what the default eviction policy is. I as a human - when I install new software, I download install files somewhere, but after install I delete them. I see no point at all just leaving crap behind forever and ever, and I certainly don't have the need to reinstall the same software over and over again. In fact, re-installs are like extremely rare, right? So, this is what I just can't for the life of me understand, why do Ubuntu act different from what I am pretty sure is the human behavior of most of us? Edit:  doesn't ask about the eviction policy and the accepted answer quickly spirals into a tutorial on package management, briefly answering my question simply with the files are there "in case they're needed for future use". This last part is exactly what I am asking about. WHAT future use? And, what is the default eviction policy? Lots of IT admin articles out there suggest a "regular cleaning", I am pretty mind-struck why I have to do this myself. Edit 2: I know why files were put in the cache folder. I am asking WHY ARE THEY LEFT IN THERE and what is the eviction policy? Seriously, stop voting this as a duplicate. You're not helping the community.


Good day, I am doing an application in C# and I connect to a Mysql database. I have a column that is of type datetime and doing the select from the application also sends me the time. Only I am interested in the date.  MySqlCommand comando = new MySqlCommand();             comando.Connection = conexion;             comando.CommandText = "SELECT codgrupo,fecha,ciudad FROM actuacion";             MySqlDataReader DR = comando.ExecuteReader();             while (DR.Read())             {                 ListViewItem ITEM = lvact.Items.Add(DR["codGrupo"].ToString());                 ITEM.SubItems.Add(DR["fecha"].ToString());                 ITEM.SubItems.Add(DR["ciudad"].ToString());             }             DR.Close();             conexion.Close();


c++ error - function cannot be overloaded

Following is a c++ code for copying a binary tree. I am trying to overload copy function. I think it should work because return type of these two functions is different.  node* copy(node *onode,node *cnode) {     if(root==NULL)         root=onode;     if(onode)     {         cnode=new node;         cnode->data=onode->data;         cnode->left=copy(onode->left,cnode->left);         cnode->right=copy(onode->right,cnode->right);         return cnode;     }         return cnode; }  void copy(node *onode,node* cnode) {     onode=copy(onode,cnode); }   However, I get following error at compilation.     error: ‘void tree::copy(node*, node*)’ cannot be overloaded        void copy(node onode,node cnode)   error: with ‘node* tree::copy(node*, node*)’        node* copy(node *onode,node *cnode)   Thanks.


Getting wrong answer while finding square root of a number using logarithms

My code to compute square root of a number:  class Solution { public:     int mySqrt(int x) {         int result;         result = exp(log(x)/2);  # Square root of number = antilog(log(number)/2)         return result;     } };   This code fails only when input is x = 2147395600,  the expected output is 46340, but my code's output is 46339.  Why did this happen?   Error image:  (1016 / 1017 test cases passed, my code failed only for input x = 2147395600)  Problem description:  Implement int sqrt(int x).  Compute and return the square root of x, where x is guaranteed to be a non-negative integer.  Since the return type is an integer, the decimal digits are truncated and only the integer part of the result is returned.  Example 1:  Input: 4 Output: 2   Example 2:  Input: 8 Output: 2 Explanation: The square root of 8 is 2.82842..., and since               the decimal part is truncated, 2 is returned.


im trying to get the first and last page label of my pdf file. but im currently having an issue when accessing a PDF File that starts with a page label of "1" it always returns a null pointer exception  pdfDocument = PDDocument.load(pdfFilePath);         pageLabels = pdfDocument.getDocumentCatalog().getPageLabels();          pdfl = pdfDocument.getDocumentCatalog().getPageLabels(); setfPage(Double.parseDouble(pdfl.getLabelsByPageIndices()[0])); setlPage(Double.parseDouble(pdfl.getLabelsByPageIndices()pdfDocument.getNumberOfPages() - 1]));   it works fine on other pdf files that doesn't start with "1" as page label.


Im a beginner at programming and im currently learning C# in school. I've got a task to make an array containing every number between 1-20 in order of size. Then randomize the order in which the numbers appear in the array. I've tried different methods, but i can't seem to get it to work. This is what im working with at the moment:          int random = 0;         Random rNG = new Random();         int[] twenty = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 };         int[] check = new int[20];         for (int i = 0; i < 20; i++)         {             random = rNG.Next(1, 21);             foreach (int check2 in check)             {                 if (random != check2)                 {                     check[i] = random;                     twenty[i] = random;                     break;                 }             }         }          foreach (int write in twenty)         {             Console.Write(write + ", ");         }   Coding in Visual Studio 2015 in a console project.  Thanks in advance for the help/suggestions!


How can I change margins in "elsarticle" document class?

I am using "elsarticle" document class for my Elsevier paper and I want to change the margins in all side to 2.5cm. How can I do this?  I used the code below:  \documentclass{elsarticle}  \usepackage{amssymb}  \doublespacing  \begin{document}  \begin{frontmatter}  \title{...}  ....  ....  \nocite{*}  \bibliographystyle{elsarticle-harv}  \bibliography{pose}  \end{document}   I used the code below to control the margins, but the height of the text is not proper.  \oddsidemargin = 0cm \topmargin = 0cm \textheight = 25cm \textwidth = 16cm   because A4 paper is 21*30cm and I reduced 5cm and wrote 15*25 without any excess margin. What is the solution?  regards.


Is there a flexible calculator available that can walk you through complex SQL licensing?

The basic license guide for Microsoft SQL Server is 40 pages in length.  This document references still more documents on various topics, options, and definitions used for licensing.  The license that one selects determines the conditions that will trigger additional costs required to stay functional over time. Is there an accurate application that can be used to determine pricing for the various licensing and project a timeline for potential additional costs as a function of time and growth? This would be a useful tool for proposal writers, legal teams, and planners. It is very clear that licensing has become it's own "career track" that favors large business. A tool or business that could provide an unambiguous set of costs and terms based on list price could be free small to medium sized businesses to move forward on projects with some measure of confidence.


Why is there not a flag count for Area 51? As a user that likes to help out on SO as much as possible, I enjoy to see my flag count on the different sites, so that I can see what I need to improve on, and so that I can also see how accurate I am at flagging questions/answers. So can the flag count be implemented on Area 51, like it is on every other Stack Exchange site?


What's the difference between regression and analysis of variance?

Like, I don't get it. In regression, we say  $$Y_i = a + bX_i + \epsilon$$ where $X_i$ is just a real number for each observation $i$,  and in analysis of variance with two groups, we say $$Y_i = a + bX_i + \epsilon$$ where $X_i$ is again just a real number, but this time either 0 (group 1) or 1 (group 2), so a is mean of group 1, and a+b is mean of group 2.  But despite the interpretation, the model is exactly the same. So why do people split it up into regression and anova? the model is the same?


Why does one often see "null != variable" instead of "variable != null" in C#?

In c#, is there any difference in the excecution speed for the order in which you state the condition?  if (null != variable) ... if (variable != null) ...   Since recently, I saw the first one quite often, and it caught my attention since I was used to the second one.  If there is no difference, what is the advantage of the first one?


Comparing mean of subgroup with national mean

I am analyzing a dataset. Each row corresponds to a participant who answered a questionnaire. Each participant is assigned a score based on their answers. I calculated the average score for each regional subgroup and I am interested in a statistical test that would suggest whether some regional subgroup's average score differs significantly from the national average. I am interested in a test whose assumptions regarding the distributions are minimal (for instance, I am not inclined to assume that the distributions are normal). Any suggestions?  By the way, I am working on R.  Thank you!


How to display the full path of files found by the Finder "Find" function?

I'm trying to use the Finder to search my code base. For example I would like to find every files that ends with ".m" and contains "keyDown".  Finder does this, but in the Finder window showing the results, the full path can not be displayed individually on each line, but only if you click on the file. In this case it's displayed on a status bar on the bottom.  Is there a way with Finder, or possibly another tool, to display the full path for each file next to the filename ?


Question on the definition of an Inverse matrix

By definition, if $A$ is a $ n \times n $ matrix, an inverse of $A$ is an $ n \times n $ matrix $A^{-1}$ with the property that:  $$ A^{-1}A=\mathbb I_n \ \ \land \ \ AA^{-1}=\mathbb I_n \ \ \ \ (1)$$   where $ \mathbb I_n $ is the $ n \times n $ identity matrix.  Are there any cases where $ A^{-1}A=\mathbb I_n$ but $AA^{-1} \neq \mathbb I_n$ or the other way around (and thus making (1) a false statement) ?


Internet Explorer command line behaviour

I am developing an app which opens links, I started with always showing the 'Open As' dialog, but now adding the ability to specify a default in the program.  I pulled a  from the registry, but the noticed some strange behavior with IE.  If you Process.Start a URL with IE (eg. Start > Run > www.superuser.com) it will open in an existing IE window. (I have my Tabbed Browsing Settings set to Open links from other programs in: a new tab in the current window).  If you Process.Start IE with a URL (eg. Start > Run > iexplore.exe "www.superuser.com") a new instance of IE will open with the URL.  As every other browser had the same behavior, I suspected it may be explained in the registry I checked my HKEY_CLASSES but couldn't find anything to explain the behavior.  I've looked at a few   and even the .  Have I missed anything in trying to open IE links in an existing browser without having to override the default program?


Python : How to know what time was spent on each line?

I am working on a code with relatively few iterations (like, less than 100) and the total time is still several minutes. This means complexity is of no help and I don't really know what operations take most of the cpu time. This is annoying as i want to repeat that operation thousands of times. I want to reduce that time.  I know how to use time.clock() and return the difference but i am looking for a way to know the time spent on each line to know where and if an improvement can be made. Is there a mode already built for that on python? (3.4, windows)


Is it One and half year or One and half years when used for work experience

While writing a resume , I have come across this question while specifying work experience.      Total Experience of One and Half Years   or     Total Experience of One and Half Year   This may seem duplicate question , but I have read      but it was inconclusive when it came to time span referred for any activity.


How to Calculate and populate no. of days between two input dates in an Html table row by using javascript? I have an understanding of Html, javascript, jQuery  I am a new programmer and I stuck on this step please help me out  Thanks


I was told that 100% black color makes eyes strain as it's too much contrast between white background and high color text. Ebooks, for example, does not use 100% black.   Are there any studies that show how people perceive different saturation of black on screens? Should I avoid 100% in UI design?


My laptop is Dell Inspiron 17R 5720. My OS is Ubuntu 13.10. I was using WiFi before but one day it stopped working. Outputs of some commands:  enedil@enedil-Dell:~$ lspci -k | grep -A2 Broadcom 02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01) Subsystem: Dell Wireless 1704 802.11n + BT 4.0 Kernel driver in use: wl   enedil@enedil-Dell:~$ rfkill list all 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: brcmwl-0: Wireless LAN Soft blocked: no Hard blocked: no 2: hci0: Bluetooth Soft blocked: no Hard blocked: no   enedil@enedil-Dell:~$ lsmod | grep wl wl                   4207760  0  cfg80211              480503  1 wl lib80211               14381  2 wl,lib80211_crypt_tkip   enedil@enedil-Dell:~$ uname -a Linux enedil-Dell 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux   enedil@enedil-Dell:~$ lspci -vvnn | grep 14e4 02:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n     [14e4:4365] (rev 01)   I don't know what to do, especially that yesterday, I changed my Internet connection to wireless.  EDIT: When I click on network applet (I'm using Unity) I see message under grey Wi-Fi: Device unsupported.


For how many numbers between 1 and 50 will $\frac{(n^2 - 1)!}{n!^n}$ be an integer?

So far my hunch is that for all the numbers of the form $p^r$ where $p$ is any prime number and $r$ is any positive integer would dissatisfy the above condition. So all numbers not of this form should be the answer. But I don't have any concrete proof just few test cases for small numbers and the idea that $\frac{n^2!}{n!^n}$ is an integer for all $n$. The last $n^2$ is used to cancel out the last $n$ from denominator. Kindly help.


How can the defense be called for 12 men pre-snap?

I saw a game last night where a penalty was called on the defense for having too many men on the field before the ball was snapped.  This was baffling to me. It's my understanding that it's not a penalty until the ball is snapped.  In what circumstances could a penalty be called on the defense for too many men on the field when the ball has yet to be snapped?


I don't understand how a java.lang.NullPointerException is caused

The following method throws java.lang.NullPointerException  public ArrayList<User> getDinner() throws ParseException {  DateFormat formatter = new SimpleDateFormat("dd/MM/yy"); Date date = formatter.parse(bookingdate); Date today = formatter.parse(formatter.format(new Date())); //   ArrayList<User> subset = new ArrayList<User>(); for (User user : userList) {      if (((date.equals(today) || date == null)) && (1700 < user.bookingtime)) {         subset.add(user);     }  } return subset; }   How is this caused and how can I solve it?


Can 'Backradiation' warm its own source?

Ok, although this question arises out of the global warming debate, this is a question purely for physicists and not intended to branch into that particular debate.  We are told that LWIR from the Earth to the atmosphere is absorbed by greenhouse gasses and then re-radiated (in the form of backradiation) partially to the surface of the planet, "...thus warming the surface...".   My specific question is this:  How exactly can the re-radiated LWIR from a cooler atmosphere warm the original source of its absorbed energy?    Edit:  I am editing this question as several people have stated this is a duplicate question.  I disagree.  The other question quoted three alternatives and some answers stated the 2nd Law of Thermodynamics was not compromised.  Please re-read my question:  can the backradiated energy possibly warm a surface which was the original source of that energy?  In other words, how can the surface heat itself further when there is no other energy source?  I hope this clarifies, and thanks to all that have answered.


On an average Sunday, you might find yourself   In the sentence above, the possibility of the person reading finding themselves doing what it says is pretty high. It's almost certain. Should I use may instead? Might still sounds better when the sentence is read.  I often find sentences where may might be more appropriate but might sounds better. Even in this previous sentence I used might even though what I'm describing is much more likely than not.


Someone mentioned in  that the nomencl package can do almost what I want the glossaries package to do.   Has someone used this package recently?   I can't figure out how to make it work.  Compiling the following code with latexmk -pdf creates a file thest.nlo, but then complains about a missing test.nls file.  \documentclass[11pt]{report}    \usepackage{nomencl} \makenomenclature \begin{document}     \section{A test section} \label{lab.test.section}  \nomenclature{$\bigcap$}{Unary intersection operator. Section~\ref{lab.test.section}, page~\pageref{lab.test.section}.}  If $V$ is a set of subsets of $U$, then we define the unary $\bigcap$ operator as follows...  \appendix  \chapter{Test chapter}  \printnomenclature  \end{document}   And the documentation   doesn't seem to mention needing to run any external program.  I took a look at  But when I try to run  makeindex test.nlo -s test.ist -o test.nls   I get an error: Index style file test.ist not found.


How do I install the Intel Graphics driver in my system?

Can someone help me out and explain or point me in the right direction on how to check video drivers and see if my video card running okay?  I had 10.04 installed on my Thinkpad r61 with Compiz Manager and life was great, until the machine took water damage. I bought an ASUS (X54H) since and am trying out 12.04, but the desktop just doesn't look right.  I always struggled with video driver installation. There are no proprietary drivers available in the hardware manager.  When I run lspci | grep VGA:  00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)   I will greatly appreciate your help. I want to use Linux more, but like I said video drivers appear to be my biggest concern. I have also tried 12.04 on my desktop PC, but again failed to configure video card, so switched back to Windows 7.


Why has my 550D camera buffer decreased?

Normally I can shoot 9 JPEG's into the buffer. This amount is indicated by the number in the lower right of the viewfinder, next to the focus confirmation light. Now that number says 2. And indeed, if I shoot more than two JPEG frames subsequently, the camera will hang to write to the SD card and then will proceed shooting further. This behaviour is independent of SD card speed, JPEG size or quality, or shooting mode. When I switch to RAW I can shoot 4 frames in a row.  It seems that my camera buffer is partially filled, but I can't find out how to empty it.


Can a university retract a degree for actions taken after the degree is awarded?

I was looking at , where in the asker was considering doing homework for students for a fee. My initial thought was that it's possible he went to the same university*, and if discovered they would attempt to revoke his degree. I considered that this would be analogous to failing and expelling a current student who was found to be breaking the academic honesty policy. I know that some universities have recently retracted honorary degrees awarded, but of course, the course work was never done to deserve these degrees. So my question is...  Is it possible for a university to retract a degree that had previously been awarded for a full course completion if the individual does something that would clearly harm the university/violate the ethics of the university?  *this is completely speculative, and the question is theoretical at best


My site is indexed. Why does Search Console not reflect that?

There is only one page is indexed, and it is the homepage. Yet, it seems that my site is indexed successfully, tested by searching for random excerpts. There is google / organic entry in my Google Analytics. My property is verified with domain name. There is no robot.txt in my directory. My site map is OK. The search console property for my site is created for about a month ago. My domain has no www or https.  When inspecting a specific URL http://example.com/articleA, it says it's indexed, not submitted in sitemap. However, the sitemap does contain this URL.  One important thing: it is an . That is, it contains non-Latin characters, and needs to be encoded in   (quảcầu.cc→xn--qucu-hr5aza.cc)  There seems to be nothing else to check, according to  or . So do you know what happens?


Let $p_{1},p_{2},\ldots,p_{n}$   be $n$   primes,$\left(p_{i},p_{j}\right)=1$   if $i\neq j$  . Prove that $\left[\mathbb{Q}\left(\sqrt{p_{1}},\sqrt{p_{2}},\ldots,\sqrt{p_{n}}\right):\mathbb{Q}\right]=2^{n}$  Help me some hints.  Thanks in advanced.


Sorted by first author's last name.   Works only from one author before works with other authors. If there is more than one work, then it needs to be like this: 2007a, 2007b,...   Sort should be like this: Author A: * Book1 2007 * Book2 2008 * Book 3 2006 other authors    Author B: ...  The minimal working example I have sorts it first by year, then by author last name and sorts the works with other authors after.  If I have multiple works from one author in one year it is correct in the text (shows 2007a etc) but not in the bibliography, shows:     Holson, Laura M. Gnome Core Apps. Oct. 28, 2013. URL :link.   — KDE Core Apps. Oct. 28, 2013. URL : link.   The publisher is not shown when citing online articles.  \documentclass{report} \usepackage[utf8]{inputenc} \usepackage[ngerman,english]{babel} %bib Last language is main \usepackage[babel,german=quotes]{csquotes} %bib \usepackage[style=authoryear-icomp,sortcites,sorting=ynt,citetracker=true,bibstyle=verbose,backend=biber,maxnames=1,minnames=1,maxbibnames=99]{biblatex} \AtEveryCitekey{\ifciteseen{}{\defcounter{maxnames}{99}}} %only show all authors \DeclareNameAlias{sortname}{last-first} % std is last-first/first-last %at the first occurrence \renewcommand*{\multinamedelim}{\addslash} %replaces and/und with "`/"' \renewcommand*{\finalnamedelim}{\addslash} %replaces and/und with "`/"' \bibliography{projectthesis_lit.bib}  \linespread{1.3} \sloppy%silbentrennung \begin{document} \nocite{*} \printbibliography \end{document}   projectthesis_lit.bib:  @ONLINE{gnomeApps,   title = {Gnome Core Apps},   author = {William Jon McCann},   year =     {2013},   month =    {10},   day = {28},   url = {https://wiki.gnome.org/action/login/Design/Apps} }  @ONLINE{gnomeApps2,   title = {Gnome Core Apps},   author = {William Jon NcCann},   year =     {2013},   month =    {10},   day = {28},   url = {https://wiki.gnome.org/action/login/Design/Apps} } @ONLINE{gnomeAp23ps2,   title = {Gnome Core Apps},   author = {William Jon CcCann},   year =     {2013},   month =    {10},   day = {28},   url = {https://wiki.gnome.org/action/login/Design/Apps} }  @ONLINE{gnom213eApps23,   title = {Gnome Core Apps},   author = {Laura M. Holson},   year =     {2013},   month =    {10},   day = {28},   url = {https://wiki.gnome.org/action/login/Design/Apps} }  @ONLINE{gnom213eApps234,   title = {KDE Core Apps},   author = {Laura M. Holson},   year =     {2013},   month =    {10},   day = {28},   url = {https://wiki.gnome.org/action/login/Design/Apps} }  @ONLINE{gnom213eApps2,   title = {Gnome Core Apps},   author = {Laura M. Holson and Miguel Helft},   publisher =    {MAMA},   year =     {2013},   month =    {10},   day = {28},   url = {https://wiki.gnome.org/action/login/Design/Apps} }  @ONLINE{gnomeAp23423ps2,   title = {Gnome Core Apps},   author = {William Jon HeaCcCann},   publisher =    {Above the Crowd},   year =     {2013},   month =    {10},   day = {28},   url = {https://wiki.gnome.org/action/login/Design/Apps} }  @ONLINE{sauce2,   title = {Gnome Core Apps},   author = {Bill Gurley},   publisher =    {Above the Crowd},   year =     {2013},   month =    {3},   day = {24},   url = {https://wiki.gnome.org/action/login/Design/Apps} }


Template undefined reference on windows with MinGW 4.8

I am using static template members in a class; the templates are instantiated in a cpp built in a software. I have a plug-in for the software that uses the  name() template method in the header, but does not build the source file which contains the instantiation. The build works on Linux with g++-4.9 but fails on MinGW 4.8. I want to know how to make it work with the almost same compiler, but on Windows instead.  .hpp :   enum class ToplevelMenuElement {     FileMenu,      ...     AboutMenu };  enum class FileMenuElement {     New,     ... ,     Quit };  // Others menus macros are defined  class MenuInterface {     public:         template<typename MenuType>         static QString name(MenuType elt);      private:         static const std::map<ToplevelMenuElement, QString> m_map;         static const std::map<FileMenuElement, QString> m_fileMap; };   .cpp :   template<> QString MenuInterface::name(ToplevelMenuElement elt) {     return m_map.at(elt); }  template<> QString MenuInterface::name(FileMenuElement elt) {     return m_fileMap.at(elt); }  const std::map<ToplevelMenuElement, QString> MenuInterface::m_map {     {ToplevelMenuElement::FileMenu, QObject::tr("File")},     ...     {ToplevelMenuElement::AboutMenu, QObject::tr("About")} };  const std::map<FileMenuElement, QString> MenuInterface::m_fileMap {     {FileMenuElement::New, QObject::tr("New")},     ...,      {FileMenuElement::Quit, QObject::tr("Quit")} };   Error :  undefined reference to `QString MenuInterface::name<ToplevelMenuElement>(ToplevelMenuElement)'   Is there any flag to use to make some kind of lazy instantiation ? Or should I build the .cpp containing the template instantiation in my plug-in ?


Does the number of columns been selected affect query speed?

I know some sql but don't quite understand the things behind the scene. And this question came to me the other day while I am taking shower... If we compare these two queries below: a.    select * from table_abc; b.    select id, name, timestamp from table_abc; which query is (theoretically) faster? My guess is a because in query b it takes time to pick out the 3 columns I want. But that's counterintuitive at the same time because that means getting less information takes longer. All comments/answers are highly appreciated!


While in Chrome or Sublime Text and mail for sure, my window will lose focus on 5 minute intervals. How do I determine culprit so that I can eliminate it? I've tried a reboot and closing applications that I think might be responsible and can't figure out what's actually causing the problem.


Is there a word for " someone who hates people from their own country"?

A xenophobe is someone who holds a strong dislike toward people from other countries.   My question is: is there a word for someone who holds a strong dislike toward people from their own country?  I mean a word based on my explanation - not a misanthrope or something similar.   Thanks.


This is what  looks like on a desktop browser (Windows 10, Chrome 84.0.4147.135):  This is what it looks like on a mobile browser (Android 8, Firefox 79.0.5):  Italic text is not formatted on the mobile.


Me and my collegues stumbled upon a simple geometric question were non of us could provide a quick and descent answer. After some more puzzeling we still could not figure it out.  We all have the feeling it should not be that hard but fail at answering it. We hoped someone here could help us out!  Given 3 random points in a 2 dimensional space.  No point is the same position and the 3 points cannot be on the same line.  Question 1. Can a circle always be drawn which goes through these 3 points?  we assumed yes  Question 2. Is there a simple formula which gives you the radius of this circle?


I have read that using a higher voltage motor would need less current to get the same power. I understand that P = IV and how that works. My question is if the 24 V motor would get half of the current, wouldn't it have half of the torque as well since they are directly proportional? In that case I don't understand how the 24 V would be advantageous at all.   Typically when people talk about motors a higher wattage motor is "better". I don't understand physically how more watts makes the motor "better". It just means it uses more energy per second which I guess would mean it is all converted into mechanical energy but not torque? I don't understand the relationship there.


how to disable identifying network in windows

When i change the wireless network to another like my own phone's wireless network the connection is "limited" for like 2 minutes. during this time i see "identifying network..." This happens every time I connect not just once. Is there a way to disable this and just connect and have the internet working instantly like in macos?


Task Manager shows too many exe processes for Google Chrome

I only have one tab open and six chrome.exe running. I have not added any plug-ins and have no extensions. There are no videos trying to play or sound on web page so six exe processes seem like a lot especially when I opened Chrome and landed here before going anywhere else. I've read several post and this still seems to be overkill even given the explanations I've seen so far.  I am utilizing Chrome 59.0.3071.29 (Official Build) beta (64-bit) on a Windows 7 Professional SP1 machine.  Is this normal because performance has became an issue lately?


Were The Original Star Trek Sound Effects Used Before Star Trek?

So I'm watching through the old Twilight Zone and was watching an episode called "Third From The Sun". Towards the end, there's a scene where they use the Star Trek bridge sounds. I was under the impression that the sound effects were original to Star Trek and some research I've done has linked them to when the series was created and not before.   Is it possible the sound effects were apart of a sound library networks used? If so, who created the sound effects and how did they end up in that library?


I am using two languages in my site i.e., English and Japanese.But when I am fetching japanese data from database whose collation is in utf8_unicode_ci,data is not showing in web page it is coming ????????????? like that in place of japanese data.  I also used  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> in header section, then also data is not coming.   If anyone knows this,please help me out. Thanks!


Fairly new to Ubuntu, but having some issues with Lazarus and FPC programming.  In the Lazarus IDE I keep finding things that do not work and the Lazarus Forum keep telling me that those functions work in Qt but not in GTK.   OK, I can live with changing, so how do I change from GTK (I think that is what I have in the standard 14.04) to Qt?  I have spent most of yesterday trying things I have found online and nothing so far completes, eventually doing nothing, or crashing with a variety of errors. Ranging from no login page to no booting. I have an Image back I keep restoring and thats getting tedious.  I first followed the "Ubuntu Official Documentation" instructions and on reboot, that got the equivalent of the windows BSOD, so I had to Restore. Then I began searching and trying things that sounded the person might know what they were writing about.  After something like six Restores I am here asking for help with something that is for the current and up-to-date 14.04 that will work.


Maximum total distance between points on a sphere

What is the configuration (set of locations) of $n$ points on the surface of a sphere such that the sum of distances is maximum for $n=1,2,3,...$?  The sum of distances is measured by summing the lengths of every straight line (through the sphere) connecting every possible combination of $2$ points.  All the points are on a single sphere of radius $R$.  Here's a visualization:   Acknowledgements: Based on  Physics S.E. question. Image from .


Can a Bard use Glyph of Warding even though they do not "prepare" spells?   In looking at the reasonable boundaries of using Glyph of Warding in the game, I came across a dilemma in the wording of the spell when it comes to classes that do not have "prepared spells", but have "known spells instead.   Glyph of Warding says that "you can store a prepared spell", however this wording becomes an issue when interpreting whether a Bard can or cannot use this spell.   A bard does not per se "prepare" their spells. Yet, the spell is listed in the Bard Spells section in the Player's Handbook (p.207). Hrumpf! It is listed as a Bard spell which normally suggest that it is intended to be used by a Bard as part of their magical repertoire, but the wording needs clarification.   So, for the purposes of interpreting the wording in Glyph of Warding, can we equate "prepared spell" with "known spell", which would mean the Bard can actually use this spell?      Spell Glyph. You can store a prepared spell of 3rd level or lower in the glyph by casting it as part of creating the glyph. The spell   must target a single creature or an area. The spell being stored has   no immediate effect when cast in this way. When the glyph is   triggered, the stored spell is cast. If the spell has a target, it   targets the creature that triggered the glyph. If the spell affects an   area, the area is centered on that creature. If the spell summons   hostile creatures or creates harmful objects or traps, they appear as   close as possible to the intruder and attack it. If the spell requires   concentration, it lasts until the end of its full duration.  (PHB   p.245)   Special thanks to BBeast for kindly mentioning this issue in his answer to:


How to dualboot windows, from Ubuntu 16.10

I'm a Linux newbie. I installed Linux on my laptop, without dual-booting it with Windows, so I think I replaced Windows with Linux. Now I want to reinstall Windows without deleting Ubuntu, dual-booting to the existing Linux and to Windows. Because I'm a newbie, if possible, can I have a step per step guide? Thanks in advance.


Could LIGO discovery be due to e.g. earthquakes or have a terrestrial source?

I mean, could it have been earthquakes or anything else?


Is it worthwhile to migrate questions that already have accepted answers?

Is it worth it to migrate off-topic questions that already have an accepted answer?


Singleton using Static Members and Methods?

We can replicate a Singleton behavior my making a Class with Static Methods and Member Elements. Other than serialization What's the harm of implementing a singleton using static Body only.


Cartesian product of two $\sigma$-algebras is generally not a $\sigma$-algebra?

When reading the book Measures, Integrals and Martingales written by R.L. Schilling, I saw a statement as below: $$\mathcal{A} \times \mathcal{B}:= \{A \times B: A\in \mathcal{A}, B\in \mathcal{B}\}$$ where $\mathcal{A}$ and $\mathcal{B}$ are $\sigma$-algebras, is not $\sigma$-algebra in general.  However, I cannot construct a counterexample. Could anyone offer help here?  Kind regards


Sum $\sum_{n=1}^{\infty}(1+1/2+...+1/n)\frac{\sin{nx}}{n}$ convergent or divergent?

As mentioned in the title. I’m trying to solve this problem by estimating $1+1/2+…+1/n$:$$1+\frac{1}{2}+…\frac{1}{n}=\ln(n)+\gamma+o(1)$$ Where $\gamma=0.57721...$ is Euler–Mascheroni constant. Then we get $$\sum_{n=1}^\infty (1+\frac{1}{2}+…\frac{1}{n})\frac{\sin{nx}}{n}= \sum_{n=1}^\infty \frac{\ln n\sin{nx}}{n}+ \gamma\sum_{n=1}^\infty \frac{\sin{nx}}{n}+ \sum_{n=1}^\infty \frac{\sin{nx}}{n} o(1)$$ I have problem continuing because I do not know how to handle the first term and the third term of RHS. P.s. I already know that $\sum_{n=1}^\infty \frac{\sin{nx}}{n}$ is convergent due to Dirichlet’s test.


I am trying an assignment problem  which I am unable to think about.      Question is -> How many $4$-subsets of $S= \{1,2, \ldots,20\}$ contain no consecutive integers?    I don't have any idea how to solve it.   Can someone please explain how to think about it ?


Can you use { instead of [ in json for a list of Json Objects

I am building my own Json and I was just wondering if you could make a list of Json objects like this "familyList":{} instead of "familyList":[ {}, {}, {}] because in the one with the '{' instead  of the usual '[' you can put a key next to the {} like "Mother":{} which will be easier for me to sort through since I will be having a lot of data instead of having to open multiple brackets like this: {}, {}, {}. I am relatively new to JSON so an answer would be greatly appreciated :) !


Primary decomposition of a monomial ideal

Can anyone give me an idea about the primary decomposition of the ideal $I=(x^3y,xy^4)$ of the ring $R=k[x,y]$?    I am trying to connect the primary decomposition with the set Ass(R/I) which i have find before..


Unexpected behavior in python - function yields different results from identical input

I feel like I am missing something basic here. It seems to have different results from identical input based on how the input was generated.  This is a simplified version of the problem which exists in a much larger code base, so please excuse any oddities as I am trying to figure out the reason for this discrepancy, not to fix this particular piece of code.  from __future__ import print_function  def wtf(thing):     list(thing)     for i in range(0, 4):         print(len(thing[i]),)         while len(thing[i]) < 10:             thing[i].append(None)     print()  # Generated by method1 test1  = [[None]]*4  # Generated by method2 test2 = [] for b in range(4):     test2.append([None])   print(test1==test2)  print()  print(test1, type(test1)) wtf(test1)  print()  print(test2, type(test2)) wtf(test2)   output  True  [[None], [None], [None], [None]] <type 'list'> 1 10 10 10   [[None], [None], [None], [None]] <type 'list'> 1 1 1 1


In triangle $ABC$, $AA_1$, $BB_1$, $CC_1$ divide sides in ratio of $1: 2$ and meet at $M$, $K$, $L$. Find area relation of $KLM$ and $ABC$

Points $A_1$, $B_1$, $C_1$ divide sides $BC$, $CA$, $AB$ equilateral triangle $ABC$ in a ratio of $1: 2$. The line segments $AA_1$, $BB_1$, $CC_1$ determine the triangle $KLM$. Is the triangle $KLM$ also an equilateral side?  In what relation are the area of triangle $KLM$ the area of triangle$ ABC$?    My attempt:  I can see that $KLM$ is an equilateral triangle.  But, why the fraction $\frac{1}{7}$ is the area ratio of the triangle $KLM$ to the triangle $ABC$?


I have a new task where the client is asking for a .dwg file of layer labels. My first thought would be to create an annotation of the labels and then try and use the Export to CAD tool in ArcMap. Does this sound like an appropriate workflow?  I am using ArcMap 10.1  Ultimately I would like to create a model and tool to do this.


Find all incongruent solutions to $x^2 \equiv 23 \pmod{77}$  Using the Chinese Remainder Theorem, I obtained $x^2 \equiv 23 \pmod{7}$ and $x^2 \equiv 23 \pmod{11}$. For $x^2 \equiv 23 \pmod{7}$, the answers are: \begin{align} x \equiv 3 \pmod{7} \\ x \equiv 4 \pmod{7} \end{align} For $x^2 \equiv 23 \pmod{11}$, the answers are: \begin{align} x \equiv 1 \pmod{11} \\ x \equiv 10 \pmod{11} \end{align} But the solutions for $x^2 \equiv 23 \pmod{77}$ are: \begin{align} x \equiv 10 \pmod{77} \\ x \equiv 32 \pmod{77} \\ x \equiv 45 \pmod{77} \\ x \equiv 67 \pmod{77} \end{align} Why are my answers not the same as the solutions? Can someone help me with this? Thanks!


Java returns false when comparing substrings with same Char

I'm having the problem, that i'm comparing 3 substrings    a.substring(0,1)   a.substring(1,2)  and  a.substring(2,3)     and I set a = "XXX" and when I print the substrings, they all say X but when i compare them like this:   if(a.substring(0,1) == a.substring(1, 2) & a.substring(1, 2) == a.substring(2, 3)) {      System.out.println("Hello");  }   it does nothing. I checked if I'm using the If clause wrong but when I tested this:   System.out.println(a.substring(0,1) == a.substring(1,2));   It returned false too.  I'm currently using Java in Eclipse and I even defined my a variable manually instead of using my function, I planned on using before, for testing.  I'm happy if anyone could help


When should you ask a question with "do", and when with "are"?  In other words,  Are you going to Spain next week?   Do you like Chinese food?  What is the rule here?  We don't say  Do you go to Spain next week?   Are you liking Chinese food?  Why is that?


Every time I turn on computer green square shows over wallpaper Ubuntu 20.04

recently I upgraded from 19.10 to 20.04 LTS. Everything is working fine except some minor display issue. Display resolution if good but every time I turn on my computer or restart it, there is square green patches or vertical green lines over the wallpaper. Also, the moment I change the wallpaper it disappears. I don't what the exact issue is? I am using HP notebook. Below I have attached what it looks like.


Can I start a new rage before the previous one ends?

Is there anything preventing a Barbarian that is currently raging from using a bonus action to expend another rage and restart the 1 minute duration on their rage?


Configuration of Server root email - Change Address and Name on outgoing email

As a newbie Postfix user, I've gotten so far and now I am stuck with a SMALL problem.  I would like to configure my local network servers to send alerts and like using the following:   From address: hostname@example.com From name: Hostname   I can get #1 to work fine using smtp_generic_maps  The problem is that on my email client, the name is listed as "root" - as in the header shows the following:  Date: Sun, 29 Jul 2012 13:21:01 -0400 (EDT) From: zeus@example.com (root) To: undisclosed-recipients:;   I'd like to change it to From: zeus@example.com (Zeus)  I imagine that this can be done in the headers_check, but so far I haven't gotten anything to work and before I waste a ton of time trying to get this to work, I'd like to make sure I am on the right track.  My aliasing and generic_maps are set up correctly (As far as I can see and know - the results are correct!).  I just want to change that last bit in the From field to reflect the hostname.  I would also like to add something in the subject of the outgoing messages for easy filtering - something like Subject: [Zeus.domain] - "Original Subject".


std::cout does not print float as excepted

Why does std::cout << 1.00000001; print 1 to the console? It Works fine with 1.0001, Its only after it exceeds a certain precision when it stops printing it properly. These numbers are hard coded, so this question is not a duplicate. In that question, an irrational number was produced because two floating point numbers were added, which means the numbers could not be stored properly, but in my case the numbers are hard coded, so what is the reason for not being able to print (or store maybe) a float explicitly initialised as 1.00000001?. Is it just cout failing to print the value or is it really an int? Consider the following program int main() {     float num = 1.0000001f;     float num2 = num * 2;     std::cout << num;     std::cout << num2; }  num2 prints 2 but the complier does not give a warning about conversion from float to int in line 2, so I think that num must be a float. Does that mean it's just a problem with cout? Am I safe to assume that internally num is actually  1.0000001f even though it prints 1 to the console? My complier is visual studio 2019's inbuilt one.


Again and again I see, that TeXnicians define commands and do several things with them in the reverse order, I would do this as amateur. See this example:  In  to  egreg defines a \parttitle, and even more he applies also a patch:  \apptocmd{\@part}{\parttitle{#2}}{}{} \def\parttitle#1{\gdef\theparttitle{#1}} \def\theparttitle{} % initialization   I would have done it in this way - first initialization, then real definition, and last patching:  \def\theparttitle{} % initialization \def\parttitle#1{\gdef\theparttitle{#1}} \apptocmd{\@part}{\parttitle{#2}}{}{}   A test shows, that this works, as well. So, my question is:  What is the advantage of defining TeX commands backwards? (At least from an amateur’s point of view …)


Why do directory listings contain the current (.) and parent (..) directory?

Whenever I list the contents of a directory with a function like readdir, the returned file names also include "." and "..". I have the suspicion that these are just normal links in the file system and therefore indistinguishable from actual files, but I always have to filter them out because they are not actual objects in the directory I am listing. Is there a good reason for functions like readdir to include them? Do some operating systems or file systems contain more or different virtual file names? Is there a better way to filter them out other than by doing string comparison with "." and ".."?  Update: thank you all for answering. I suppose I always thought that things like ./ and ../ were mere conventions that could be handled by searching and replacing. I find it a bit surprising, though probably more efficient and transparent, to have them be part of the file system itself.  One question remains, though: since . and .. are arbitrary names for these links, are there file systems that use different ones?


Bracketing is used as an insurance against (what) error?

New to photography taking classes lol need help


Can nuclear transmutation be observed in real time?

Ignoring the quantum zeno effect (if possible?), can we observe in real-time the transformation of one element to another? I'm talking about an amount visible to the naked eye where one could see obvious changes in colour, reflectivity, phase, surface finish etc. occurring in say, seconds or minutes.


Harem is genre in Anime and Manga involving a Male protagonist surrounded by girls who have feelings for him  Harem is a popular genre in the anime/manga industry but what are the origins of how it become one of Anime and Mangas popular genres?


Parametric formula for cubes as sum of three cubes

Is there any parametric formula to solutions of the equation  $a^3+b^3+c^3=d^3$, where $a,b,c,d$ are all integers, yielding all such $(a,b,c,d)$ satisfying the equation?  Thank you very much.


Superimpose content to a movie in beamer

When using the command \movie in beamer, from the package multimedia, it appears that the movie itself appears on top of every other content, so that it seems impossible to display any content over it.  For instance, I've tried to use a tikzpicture workaround as shown below. But can't manage to have any content superimposed.  \documentclass[12pt]{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{multimedia} \usepackage{tikz}  \begin{document}  \begin{frame}{Test frame} \begin{tikzpicture}[remember picture,overlay] \node (movie) at (current page.center) { \movie[width =\paperwidth, height=0.599\paperwidth, poster, autostart, loop]{}{videoTest.mp4} }; \node (test) at (current page.center) { Content that should appear over the movie }; \end{tikzpicture} \end{frame}  \end{document}   The movie works well, therefore my question focuses on layer management.


Cumulative distribution function and right continuity

Could you provide an example that will help to understand why we need this requirement:     CDF should be right continuous.   What if CDF would be left continuous? What kind of problems would we meet with left continuous CDF?


I have to make a code that read a line strings from user and divides this string when there is a space, store and then do some operations with this input.  For example the input can be like That :  "set 11643133 name Alex Jon"   all this it have to be input in a one line, and I have to divide it for set a name "Alex Jon" to the student's ID "11643136"  I really have to hand the project in nearest time, I just want to ask if there is a simple way or some standard commands maybe can it helps me at that ?  *I use getstr() and string.substr()


Why can't I block Facebook using /etc/hosts on Mountain Lion (OS X)?

It worked for a while in the old configuration, but then stopped working for some reason.  Here is my /etc/hosts file from my Mountain Lion MacBook Air:  127.0.0.1 reddit.com www.reddit.com 127.0.0.1 facebook.com www.facebook.com ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting.  Do not change this entry. ## 127.0.0.1       localhost 255.255.255.255 broadcasthost ::1             localhost fe80::1%lo0     localhost   This blocks Reddit,but not Facebook.   I've tried flushing the DNS cache for the machine ("sudo killall -HUP mDNSResponder"), the bowsers (FF and Chrome) and I've tried restarting the computer.   And I've moved the entries to the top of the file on the , but it didn't work before when it was at the bottom either. Each time it would block Reddit but not Facebook.


Do you need to disavow on [HTTPS SSL] after performing a disavow on [HTTP]

I have a client which disavowed a few thousand dirty links from his site profile back in February 2015. Recently the site was switch from HTTP to HTTPS (SSL enforced).   Google recommends that you add all variations to the Google Console (Webmaster Tools).  The site has a total of 4 variations, eg:    http://www.example.com (Previously Preferred) http://example.com https://www.example.com (Now Preferred) https://example.com   Question:  Since technically this is a new property in Google Webmaster Tools, do you need to submit the same disavow file added previously back in 2015?


VirtualBox and VLC complain about missing Qt software, but I have installed Qt packages already

I tried installing qt*, qt-sdk, qt5* and qt4* but none of them will even try to do anything besides vomiting errors all over the system! I'm trying to use VLC and VirtualBox but VLC complains about:   [0000562c635bed38] skins2 interface error: no suitable dialogs provider found (hint: compile the qt4 plugin, and make sure it is loaded properly) [0000562c635bed38] skins2 interface error: cannot instantiate qt4 dialogs provider   and then VLC drops to a totally useless shell  And VirtualBox throws   VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: libQt5Core.so.5: cannot open shared object file: No such file or directory   and won't even open  What's the problem and how can I fix it?  PS: I have all the deps for all the programs!


I was just looking at my flagging history to see what was pending and just happened to notice that the spam flag count doesn't appear to add up.   Why would deemed helpful + declined != posts marked spam?  There are no disputed flags listed, and it is only a difference of one, but still I'm curious as to what that one is...


How to conditionally define a new command in LaTeX?

I'm trying to compile a LaTeX code with an older version of some package. Thus, I'm having a few issues due to undefined commands.  How can I add conditional code so that I can define some work-around commands of this older package version?  % I want something like this: if command \foobar is not defined   \newcommand{\foobar}{FooBar}  % I don't need an "else" clause here, but it would be good % to know how to add one, in case I need it in future  end if


Is this genitive correct? “... the sustainability performance of firms”

I read the following sentence and I was wondering if this is correct:   "Society and activist, non-governmental organizations monitor the sustainability performance of firms."  Or is "monitor  firms' sustainability performance" preferable, using the Saxon genitive?  Thank you!


Help installing Dual-Boot Ubuntu *.*.* with pre-installed Windows 8 with windows boot manager. HP Pavilion TouchSmart Sleekbook 15

I have recently bought an HP laptop (HP Pavilion Touchsmart Sleekbook 15), pre-installed with Windows 8. I do like windows 8, but I wish to also have the functionality of ubuntu on my laptop.  I do not like the look and risks of GRUB, as I care for Windows 8 more than Ubuntu (Cannot replace Windows), so I need to use Windows Boot Manager of the metro UI. (Which I also like the look of more).  I know my computer has Windows installed in UEFI mode, but I am also not big on complicated steps and heavily modifying my laptop. I have looked for multiple solutions to this problem, but one is just windows boot manager in BIOS mode, another is using Grub in EFI mode.  I definitely know I can disable secure and fast boot on my computer, and I can manually partition anything I want. I do not know much about linux either, so I need help on a simple, reliable way to dual-boot ubuntu and windows 8 on my laptop in EFI mode on Windows boot Manager. I have a live flash drive for ubuntu already, and am ready to install anything, but I am reluctant because I cannot afford another laptop.  Currently, I have Ubuntu 12.04.3 on my flash, but I can change it to whatever needed at will.  Can anyone help me do this on my laptop, or should I just give up right now? I am sick of trying to find these answers but to no solution.  All I need is a solution to   Pre-installed Windows 8 UEFI Windows Boot Manager Simple, reliable way to do this.   Thank you for all help that you can give me, -Ben  Note: This is not the same question as () at all. Here I am asking how you would go around installing ubuntu on pre-installed Windows 8 as I have NOT  installed anything yet. In the "Answered question" the asker is asking about Wubi on windows 8 preinstalled, AFTER he tried installing it. Please read both questions before flagging this down.


Can I travel to the UK unaccompanied on an accompanied child visa now that I am over 18?

I got a visa with my mother when I was 17 years old. On it was stated "Not valid unless accompanied by my mother".    Can I travel to the UK alone now that I am 18?


Overlay an image currently occupied with an flex box

I am currently trying to overlay an old image with an new image, the image is currently occupied using flex box, and if I try to put an image on the same overlay position , I end up having some of the old image and the new image occupying the space..   How the image styling is thus:    &__image {     flex: 8;     height: rem(280);     background-repeat: no-repeat;     background-size: cover;     background-position: center;     order: 1;     overflow: hidden;       @include mq($from: s-screen) {       height: 100%;       order: 2;       width: 67%;     }   }   and the overlay styling:     &__overlay {     opacity: 0;     flex: 8;     height: rem(280);     background-repeat: no-repeat;     background-size: cover;     background-position: center;     order: 1;     transition: opacity 2000ms ease-in;      @include mq($from: s-screen) {       height: 100%;       order: 2;       width: 67%;     }   }   this is not quite the same...The overlay works, i am not able to overlay on top of a flexbox


How can I sync pictures with all my computers via a server

I'm running a server in my basement and I would like to save all my pictures on it. So is there any software like "dropbox" that I could host?   I don't need my stuff in the cloud just on my server. But I would like to create a map on every computer on my network and when people drop pictures in that map all the pictures are synced to my server. So whatever computer I am, I've got always the same version of the map.   I found something like sparkleshare but are there any alternatives better ones?


Number of votes for a related question comes out of block

Number of votes comes out of div block:    Because width is set to 20px in styles:  #sidebar .answer-votes {     width: 20px; /* <- Here */     height: 20px;     border-radius: 0;     background: #eee;     color: #888;     font-size: 12px;     font-weight: 600;     line-height: 20px;     padding: 0;     margin: 2px 6px 0 0; }


Where to download Windows OS (7, 8.1, 10)?

Where can I find a download link for a Microsoft Windows 7, 8.1 or 10 ISO?


I have to apologize in advance that the question is missing some vital information (like, $a,b,c$ are positive? natural? rational?) I took it off some video off youtube.  In the video, an 11 year old was in the process of solving this question: prove $\frac{1}{a^3+b^3+abc}+\frac{1}{a^3+c^3+abc}+\frac{1}{b^3+c^3+abc} \leq \frac{1}{abc}$.  I don't really see how we can solve it in a simple way without using differential multivariable calculus. And even with calculus - it isn't so simple and not very pleasant. If anyone knows the question in its full form and knows how to answer it simply, I will be very happy to see it.  In the video, the child said "wlog $abc=1$" and defined $x=a^3$, $y=b^3$, $z=c^3$ and so he had to prove that  $\frac{1}{x+y+1}+\frac{1}{x+z+1}+\frac{1}{y+z+1} \leq 1$  The $abc=1$ part seems to be not so general, but if that helps you solve the question in any simple way - have at it.


ssh into my Ubuntu 16.04 Server via Terminal

I have a remote Ubuntu 16.04 server and try to ssh into it over VPN connection.  From Windows Putty it works fine but from Ubuntu 16.04 Workstation terminal not! Debug show me this:  ssh -vvv -p 33333 karl@177.177.177.177 OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolving "177.177.177.177" port 33333 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to 177.177.177.177 [177.177.177.177] port 33333. debug1: connect to address 192.168.1.100 port 33333: Connection refused ssh: connect to host 192.168.1.100 port 33333: Connection refused   some Ideas what I can do?


Travelling to multiple countries in Schengen region

I am an Indian citizen in US (Tennessee) on H4 visa. I am currently a student at a college and need to travel for Budapest, Hungary and then go to Vienna, Austria, and finally to Prague, Czech Republic for a study trip. Duration of stay is 1 week each. First port of entry is Hungary.  My school has suggested me to apply for tourist visa. I am confused as to which consulate should I apply for Schengen visa ?


Why do lme and aov return different results for repeated measures ANOVA in R?

I am trying to move from using the ez package to lme for repeated measures ANOVA (as I hope I will be able to use custom contrasts on with lme).  Following the advice from  I was able to set up the same model using both aov (as does ez, when requested) and lme. However, whereas in the example given in  the F-values do perfectly agree between aov and lme (I checked it, and they do), this is not the case for my data. Although the F-values are similar, they are not the same.   aov returns a f-value of 1.3399, lme returns 1.36264. I am willing to accept the aov result as the "correct" one as this is also what SPSS returns (and this is what counts for my field/supervisor).  Questions:   It would be great if someone could explain why this difference exists and how I can use lme to provide credible results. (I would also be willing to use lmer instead of lme for this type of stuff, if it gives the "correct" result. However, I haven't used it so far.) After solving this problem I would like to run a contrast analysis. Especially I would be interested in the contrast of pooling the first two levels of factor (i.e., c("MP", "MT")) and compare this with the third level of factor (i.e., "AC"). Furthermore, testing the third versus the fourth level of factor (i.e., "AC" versus "DA").   Data:  tau.base <- structure(list(id = structure(c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L,  9L, 10L, 11L, 12L, 13L, 14L, 15L, 16L, 17L, 18L, 19L, 20L, 21L,  22L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L,  14L, 15L, 16L, 17L, 18L, 19L, 20L, 21L, 22L, 1L, 2L, 3L, 4L,  5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L, 15L, 16L, 17L, 18L,  19L, 20L, 21L, 22L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L,  11L, 12L, 13L, 14L, 15L, 16L, 17L, 18L, 19L, 20L, 21L, 22L), .Label = c("A18K",  "D21C", "F25E", "G25D", "H05M", "H07A", "H08H", "H25C", "H28E",  "H30D", "J10G", "J22J", "K20U", "M09M", "P20E", "P26G", "P28G",  "R03C", "U21S", "W08A", "W15V", "W18R"), class = "factor"), factor = structure(c(1L,  1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,  1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,  2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L,  3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L,  3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L,  4L, 4L, 4L, 4L, 4L, 4L, 4L), .Label = c("MP", "MT", "AC", "DA" ), class = "factor"), value = c(0.9648092876, 0.2128662077, 1,  0.0607615485, 0.9912814024, 3.22e-08, 0.8073856412, 0.1465590332,  0.9981672618, 1, 1, 1, 0.9794401938, 0.6102546108, 0.428651501,  1, 0.1710644881, 1, 0.7639763913, 1, 0.5298989196, 1, 1, 0.7162733447,  0.7871177434, 1, 1, 1, 0.8560509327, 0.3096989662, 1, 8.51e-08,  0.3278862311, 0.0953598576, 1, 1.38e-08, 1.07e-08, 0.545290432,  0.1305621416, 2.61e-08, 1, 0.9834051136, 0.8044114935, 0.7938839461,  0.9910112678, 2.58e-08, 0.5762677121, 0.4750002288, 1e-08, 0.8584252623,  1, 1, 0.6020385797, 8.51e-08, 0.7964935271, 0.2238374288, 0.263377904,  1, 1.07e-08, 0.3160751898, 5.8e-08, 0.3460325565, 0.6842217296,  1.01e-08, 0.9438301877, 0.5578367224, 2.18e-08, 1, 0.9161424562,  0.2924856039, 1e-08, 0.8672987992, 0.9266688748, 0.8356425464,  0.9988463913, 0.2960361777, 0.0285680426, 0.0969063841, 0.6947998266,  0.0138254805, 1, 0.3494775301, 1, 2.61e-08, 1.52e-08, 0.5393467752,  1, 0.9069223275)), .Names = c("id", "factor", "value"), class = "data.frame", row.names = c(1L,  6L, 10L, 13L, 16L, 17L, 18L, 22L, 23L, 24L, 27L, 29L, 31L, 33L,  42L, 43L, 44L, 45L, 54L, 56L, 58L, 61L, 64L, 69L, 73L, 76L, 79L,  80L, 81L, 85L, 86L, 87L, 90L, 92L, 94L, 96L, 105L, 106L, 107L,  108L, 117L, 119L, 121L, 124L, 127L, 132L, 136L, 139L, 142L, 143L,  144L, 148L, 149L, 150L, 153L, 155L, 157L, 159L, 168L, 169L, 170L,  171L, 180L, 182L, 184L, 187L, 190L, 195L, 199L, 202L, 205L, 206L,  207L, 211L, 212L, 213L, 216L, 218L, 220L, 222L, 231L, 232L, 233L,  234L, 243L, 245L, 247L, 250L))   And the code:  require(nlme)  summary(aov(value ~ factor+Error(id/factor), data = tau.base))  anova(lme(value ~ factor, data = tau.base, random = ~1|id))


I search a close form about integral of  $\frac{1}{\sqrt{(x^3+a^3)\cdot (x^3+b^3)}}$ between $0$ and $+\infty$. I know There are already a subject about this but i want a particular answer: which is the close form in terms of complete elliptic integral of the first kind $K$ ? It seems apparently that the beginning of close form is $\frac{4 \cdot \sqrt{3}*K(X)}{(9*a*b)}$ but what is $X$ ? I don't see the formula what i want. Thanks.


MiKTeX 2.9 Texmaker: Text in PDF not vectorized ... but formulas and tables are vectorized

Users,  i am new to LaTeX and i found something that is really strage.  When i create a PDF from the following code, the text is not vectorized while formulas and tables are. I am using MiKTeX 2.9, TeXMaker 4.3 on a Windows 7 Notebook. To view the PDF i am using Acrobat Reader.   \documentclass[12pt,a4paper]{scrartcl}  % language \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} % font \usepackage[T1]{fontenc} % math \usepackage{amsmath} \usepackage{amssymb} \usepackage{etoolbox} \usepackage{geometry} \usepackage{graphicx} \usepackage{subcaption}  \geometry{a4paper,left=25mm,right=25mm, top=2cm, bottom=2cm}   \title{Testpage} \author{Max Mueller} \date{11.09.2014}  % begin of printed stuff \begin{document}  %\tableofcontents  %Überkapitel %\part{Name of Part} %\chapter{Name of Chapter} \section{Abc abc abc} \subsection{Abc abc abc} Text is not vectorized ... but formulas and tables are vectorized $ \exp{ix} = \cos{x} + i\sin{x}$ \end{document}   Thank you for your suggestions :).