the IDE tells me I have an  Exception in thread "main" java.lang.NullPointerException on lines 25 and 38 all line 38 is supposed to do is set the bounds for a panel to contain the title of the game, which I later get rid of when I change the screen. Line 25 basically puts the code into the main method. Someone pls help me  import java.awt.*; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.*;  import static java.awt.Color.black; import static java.awt.Color.white;  public class Game {     //GUI variables     JFrame window;     Container container;     JPanel titleNamePanel, startButtonPanel, mainTextPanel;     JLabel titleNameLabel;     Font titleFont = new Font("Times New Roman", Font.PLAIN, 98);     Font startButtonFont = new Font("Times New Roman", Font.PLAIN, 50);     Font normalFont = new Font("Times New Roman", Font.PLAIN, 28);     JButton startButton;     JTextArea mainTextArea;     TitleScreenHandler TSHandler = new TitleScreenHandler();     ChoiceHandler choiceHandler = new ChoiceHandler();      public static void main(String[]args){         new Game();     }     public Game(){          //window         window = new JFrame();         window.setSize(800, 800);         window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);         window.getContentPane().setBackground(black);         window.setLayout(null);         window.setTitle("ADVENTURE CAVE");          //Title Name         titleNamePanel.setBounds(100, 20, 600, 200);         titleNamePanel.setBackground(black);         titleNameLabel = new JLabel("ADVENTURE CAVE");         titleNameLabel.setForeground(white);          //Start button         startButtonPanel = new JPanel();         startButtonPanel.setBounds(300, 270, 250, 120);         startButtonPanel.setBackground(black);         startButtonPanel.setFont(startButtonFont);         startButton.addActionListener(TSHandler);         startButton.setFocusPainted(false);          window.setVisible(true);      }     public void gotoMainGameScreen(){         titleNamePanel.setVisible(false);         startButtonPanel.setVisible(false);          //Main Panel         mainTextPanel = new JPanel();         mainTextPanel.setBounds(100, 100, 600, 250);         mainTextPanel.setBackground(black);         container.add(mainTextPanel);          //Main Text         mainTextArea = new JTextArea("You have reached the Cave of Adventures;");         mainTextArea.setBounds(100, 100, 600, 250);         mainTextArea.setBackground(black);         mainTextArea.setForeground(white);         mainTextArea.setFont(normalFont);         mainTextArea.setLineWrap(true);         mainTextPanel.add(mainTextArea);      }     public class TitleScreenHandler implements ActionListener {         public void actionPerformed(ActionEvent e){             gotoMainGameScreen();         }     }     public class ChoiceHandler implements ActionListener{         public void actionPerformed(ActionEvent event){          }     }  }


I thought some concepts are clear, but apparently that's not exactly true. I'm sure it's something very simple and asking you to answer rather than blame me or mark as duplicate etc, since I searched other similar questions, but they are not exactly as mine.   So I have this simple class Bank that creates an array of objects BankAccount by giving it the size. The Bank class has method isFull to check if the array is full, which, however I cannot call from a class MainApp where I just create instances to test my methods.  Bank  public class Bank {      // array of BANKACCOUNT objects     private BankAccount[] accountList;      // will hold all the accounts      private int totalAccounts;              // to hold the total number of accounts      public Bank(int sizeIn) {         totalAccounts = sizeIn;         accountList = new BankAccount[totalAccounts];     }      // check if the list is full     public boolean isFull() {         if(accountList.length == totalAccounts) {            return true;         }         return false;     }      // add an item to the array     public boolean add(BankAccount accountIn) {         boolean added = false;         if(isFull()){             System.out.println("The account list is full");             added = false;         } else {             accountList[totalAccounts] = accountIn;             totalAccounts++;             added = true;         }         return added;     }     // other methods...   BankAccount  public class BankAccount {     private String nameOfHolder;     private String accNumber;     private double balance;     private static double interestRate;       public BankAccount(String INPname, double INPbalance){         accNumber = "NL35FAKE" + Randomize.RandomNumGen(); //created a random number for every bank account in a separate class         nameOfHolder = INPname;         balance = INPbalance;     }     // other methods...   Main program  public class MainApp {     Bank[] bankList = new Bank[3];     BankAccount acc1 = new BankAccount("Stacey", 7500);     BankAccount acc2 = new BankAccount("Maria", 15000);     bankList[0].add(acc1);     bankList[1].add(acc2);     bankList.isFull();   // THIS DOES NOT WORK.    I do not see the isFull() method unless if I call it this way:  bankList[0].isFull() which makes no sense as I want to check the link of accounts.   Thanks in advance. :)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I know, the Winterbash has ended (it makes me cry everyday) and still asking questions about it is futile. However, I was really fascinated by the mystery surrounding . As far as I know, this was the only hat for which the requirements weren't made public. Now that the party has ended, could someone reveal what were those secret requirements? Or is it a secret to die with? I suspect you'd need to be awarded the hat by a moderator but I like to hope you could gain it via a strange unlikely succession of actions... Please help me sleep at night again! :)

I have just seen the hat known as  for the first time. Does anyone have any information (or hints if you don't want to spoil it) on this mysterious hat!?!?  Here are the given (but not so useful) clues:     The hat in action:    UPDATE: Shog9 states that the beard is possible but very difficult to obtain. However based on , Aarthi said that they have an internal difficulty that they are ordered by and yet the beard is not placed anywhere near first. This does not add up.  UPDATE 2: The beard is not located in  or    UPDATE 3: FYI, the user  has the beard.


My CentOS7 server runs sftp through openssh. Users are chrooted to a dir with subdirs that are owned by another user, but sftp users are group members through their primary or secondary groups with rwx permissions. Since a recent update they are no longer able to access folders owned by their secondary groups, but can access folders owned by their primary groups. I am suspecting an update of openssh to be responsible for this change in behaviour (6.6.1p1-25.el7_2.x86_64 to 6.6.1p1-31.el7.x86_64). Can anybody provide insight on how to troubleshoot? Suggestions on ways to solve this other than downgrading openssh (if that indeed is the cause)?

Centos recently updated to 7.3 and there's been problems with sshd sftp group permissions. I have one user that is chrooted to it's home directory, and that user is in group sftponly. Then i have the /var/www directory, which has 775 permissions and owner is apache and owner group is sftponly. I have a bind link pointing from /home/user/files/web --> /var/www, so the user can access /var/www even though being chrooted to it's home directory. I can view files in /var/www with that user, but impossible to edit or add anything. This worked fine before the big Centos 7.3 update, and now it's stopped working. Any ideas?


I made a simple update script. Now My question was is it possible to run it automatically by loggin in on the Ubuntu Desktop and automatically provide my password (sudo) for this so I don't have to do anything to keep it updated.  This is my script:  #!/bin/bash  sudo apt-get update sudo apt-get dist-upgrade -y   I would really be helped with this.

Update Manager is constantly offering me updates (e.g. security fixes, updates from PPAs).  How can I tell my Ubuntu installation to automatically download and install updates whenever they become available?


In C you have to free the memory that has been allocated by the program. Does the same go for objects in C++?  class Common {     //some function declarations }  void example()   {     Common obj;     //do stuff with obj     delete obj; }   How important is delete obj; here if i asume the function example() will be called once only?

Ignoring programming style and design, is it "safe" to call delete on a variable allocated on the stack?  For example:     int nAmount;    delete &nAmount;   or  class sample { public:     sample();     ~sample() { delete &nAmount;}     int nAmount; }


I have an outer div and an inner div. Inner div has background-image.    How to vertically center align inner div image? I dont want to use margin-top

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


I installed Ubuntu 14.04 from a DVD (all the files were there) onto my HP laptop. It used to be Windows 8 but a friend of mine put windows 7 on it instead so secure boot and fast boot are disabled. Ubuntu installed but now on start up it goes straight to Windows. I don't know how to get back onto Ubuntu as if I leave the DVD in the options are to "Install Ubuntu, try demo (something like that), OEM for manufacturers or exit."   I saw articles on here about fixing this from the Ubuntu terminal but if I can't get Ubuntu to load (because I tried the solution in the demo and it didn't work.) How do I go about this?  Literally spent last 4 hours trying to figure this out and I'm sure I'm coming across as a total noob but any help would be much appreciated.

I have an Ubuntu 12.04 / Windows 7 dual boot. After installing Ubuntu my computer reboots straight to Windows. There is no option to boot Ubuntu.  Specs:   OS: Windows 7 Home Premium     CPU: Intel i5 2500k     mobo: ASUS P8Z68-V Pro     GPU: GeForce GTX 570      SSD: Corsair 120GB (Windows 7)     HDD: WD 1TB      I select the USB drive in the BIOS and boot to it and choose install. I select to manually configure partitions, partition the 200 GB of unallocated space on my 1 TB HDD into 16 GB swap file, 30 GB / ext4, and 154 GB /home ext4.   I made sure that the bootloader is installed on the Corsair 120GB SSD (where the Windows boot is) and the installation goes smoothly.  When I reboot after the install it runs through the BIOS straight into Windows. I have tried upwards of a dozen times and I have also tried with Linux Mint. I have also redownloaded the ISO and used two different programs to create the live USB.   The installation seems to have gone well, as after the installation I can see the partitions I have created in Windows Device Manager.       I currently run Lubuntu on my laptop, but it is not a dual boot. I'm assuming this is a bootloader issue and I am assuming that inside those partitioned files in my screenshot there is a working Ubuntu 12.04. I just have no way of getting to it.    Update: (copied from comment)  I booted using my Ubuntu live USB and used the Boot-Repair tool suggested in .   Upon opening the tool I saw that it was recognizing my SSD as a removable drive and defaulting to install on the HDD. Once I realized that I was able to force install onto the SSD. My computer can now boot Ubuntu.


If a group member has, say, Armor-Piercing Ammo skill set to benefit the whole group at 50%, does this mean that it will override my own Armor-Piercing Ammo skill that is leveled to maximum and that I have to re-enable it, same as any other team member who wants to use Warp Ammo or Incendiary Ammo?  Or does the game know that my character's AP Ammo skill is superior to the group members and just enables that? The GUI isn't very helpful in that regard.

If, for example, I get Shepard to activate Cryo Ammo (which has the +50% effectiveness for squad mates) then it replaces any ammo setting they my squad mates have active. If I then switch on one of their powers (which has the same squad bonus) then it overrides Shepard's ammo setting. The two ammo types become mutually exclusive.  This is a problem because it means only the person with the last ammo type activated has it at full effectiveness, and I can't diversify.  Except for the obvious of respec'ing and avoiding the squad bonuses (so each member has to manage their own ammo types, which is what I'll do if I really have to) is there any way to avoid overriding a squad mate's ammo setting when activating one on another member that has a squad bonus?


I'm working on a design for a blog. The blog is very text oriented. It contains long articles of thousands of words. When I look around the web I see that blogs often have a 'fixed width' page size (when using Blogspot or Wordpress for example). But when I look at Wikipedia which is also very text heavy, it's responsive and the text is spanned at almost the monitor width. So what would be a good approach for a heavy text based blog which will be mostly read on desktops? Go full width (responsive) or limit the width?

There is nothing worse than coming across a website with paragraphs that span the width of your screen resolution. They are usually so hard to read, I don't even bother.  A lot of web designers use generic grid and column systems, but I don't feel these have been optimised for readability, they are more of design guide on general aesthetics.  I guess it comes down to words per line. Are the rules that apply to print media the same for screen media?  Are there any type of guidelines to help me size the width of paragraphs on the screen?  I want to take into consideration:   Major web font faces (i.e. Arial, Verdana, Georgia, Times) A range font sizes (i.e. 8px-24px) Space between columns


In a science fiction story I am writing humans travel through space (only our solar system) using dark energy. In my imagining of the future scientists discovered that dark energy exists in a field which repulses mass. The explanation being that While gravity is the force which attracts massive objects, dark energy pushes them apart. in the story the reaction between this push and pull effect on space is the force which creates dark matter. (the fabric of the universe)   So my question is this:  If dark energy is responsible for the expansion of the universe, is it possible that it is also the force which creates dark matter?

Our galaxies are speeding apart from each other and that is because of dark energy, but we don't know where it comes from right? If I'm not mistaken could dark matter have dark energy? (If they are the same thing please correct me.) Matter has gravity so could  have , so sense there is more dark matter is that why our galaxies are being pushed apart?


I was setting up SalesforceDX and creating a SFDX project in VS code and I had run into an issue with folowing error while trying to create default scratch org:     ERROR: The configured apiVersion 45.0 is not supported for this org. The max apiVersion is 44.0.   I followed the answer in this  and created a new account of the pre-release edition(developer edition type). Then I set it up as my dev hub account. But now I can't login to my old developer account. I can only access my new account. When I run the command:      sfdx force:org:list   I get following output:   The first one is my older developer account and the second one is my new pre-release developer account.  Any help on how I can access my old account again?  Edit: I could create a scratch org after enabling the Dev hub in from the salesforce.org setup. And now I can start creating lightning web components but now if I go to the login page of salesforce.org, I can no longer login using my older account. I can only login using the account of the type pre-release edition Spring '19.

With Spring '19 around the corner, I decided to set up a pre-release org and upgraded my client to 45.x. After playing around a bit, I then went back to work on my actual work projects, and came across an error:     ERROR:  The configured apiVersion 45.0 is not supported for this org. The max apiVersion is 44.0.   Now, I'm not able to do any work in my sandbox! Is there a way I can use the correct API version in each project? For now, I have to switch between installing salesforcedx@latest and salesforcedx@pre-release each time I want to switch modes.


I am trying to install Ubuntu as as desktop usage  on an Acer C7 Chromebook. I have downloaded it but it is asking for an app to open it. Is there such an app?   Is it possible to do this?

I have an Acer C720, with a 64 gb SSD,  in which I would like to install Ubuntu. But I don't want the "crouton" version. If I follow the directions from here () will I get a "real" version of Ubuntu? If not how should I proceed?  Thanks


i want to acces a list of data in python like list_1 =[182908.774,2841.24568,'A',10,'W','N'] from the above list contains latitude,longitude,validity,speed,direction,direction. So, I want to access the above list_1 using their names  "latitude,longitude,validity,speed,direction,direction" can any one help me out with this

Imagine that you have the following list. keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam']  What is the simplest way to produce the following dictionary? a_dict = {'name': 'Monty', 'age': 42, 'food': 'spam'}


I learned from this  that the surface area of a revolution is $\int 2\pi y ds$. Why is it not $\int 2\pi y dx$? I know this is a , but I do not think I get a satisfactory answer. There is another  that told us the area under curve is $\int y dx$. Why are we using $dx$ in the area calculation, but not the surface area of a revolution? Why can we use the argument that when the $\Delta x$ gets smaller and smaller, the limitation of $\sum y \Delta x$ is the area under curve, but we cannot use the same argument to the surface of a revolution? Why not say when the $\Delta x$ gets smaller and smaller, the limitation of $\sum 2\pi y \Delta x$ is the surface area of the revolution?

Suppose we rotate the graph of $y = f(x)$ about the $x$-axis from $a$ to $b$.  Then (using the disk method) the volume is $$\int_a^b \pi f(x)^2 dx$$ since we approximate a little piece as a cylinder.  However, if we want to find the surface area, then we approximate it as part of a cone and the formula is $$\int_a^b 2\pi f(x)\sqrt{1+f'(x)^2} dx.$$  But if approximated it by a circle with thickness $dx$ we would get $$\int_a^b 2\pi f(x) dx.$$  So my question is how come for volume we can make the cruder approximation of a disk but for surface area we can't.


I tried to install  and got into trouble. Now I cannot do much with apt (except update), the broken package seems to be impossible to remove/clean:  Here's the result of apt-get -f install:  $ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   gstreamer0.10-fluendo-mp3:i386 scala-library liboil0.3:i386 Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   scala The following NEW packages will be installed:   scala 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. Need to get 21.5 MB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? Y Get:1 http://apt.typesafe.com/ unicorn/main scala all 2.9.2-400 [21.5 MB] Fetched 21.5 MB in 13s (1,567 kB/s)                                                                           (Reading database ... 329381 files and directories currently installed.) Unpacking scala (from .../scala_2.9.2-400_all.deb) ... dpkg: error processing /var/cache/apt/archives/scala_2.9.2-400_all.deb (--unpack):  trying to overwrite '/usr/share/java/scala-partest.jar', which is also in package scala-library 2.9.1.dfsg-3 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/scala_2.9.2-400_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Here's my attempt to autoremove:  $ apt-get autoremove E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? phdp@desktop:~/work/manuscripts/ideas/ibm_food_webs$ sudo apt-get autoremove Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  typesafe-stack : Depends: scala but it is not installed E: Unmet dependencies. Try using -f.

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


Will Ubuntu 14 work alongside Windows Vista (on a PC), or do I need to choose Ubuntu 13 or 12 instead?

I need my pre-installed version of Windows 7 (or any other version of Windows), how could I install Ubuntu without erasing it?


Consider:  Jack told Jill and I to walk faster.  instead of  Jack told Jill and me to walk faster.  This “mistake” seems to be becoming more and more common, even among TV newscasters or commentators. Seems as if this is going to be a permanent change in English grammar, adding a complexity:  Jack saw me there. Jack saw Jill and I there.  Is it?

From some comments in the answers for  (now deleted, 10k only), there's confusion around the usage of I vs. me:  While the sentence, "the other attendees are myself and Steve," is agreed to be incorrect, there's confusion about whether the correct form is "the other attendees are me and Steve" or "the other attendees are Steve and I."  (I've always used the heuristic of removing the other people from the sentence, so I always thought "the other attendee is me" would be correct, instead of "the other attendee is I." Is this true, or am I using a flawed heuristic?)


I'm aware that the  spell could last up to 8 hours or until the task is performed. However, take this scenario as an example. I'm running Curse of Strahd for my group. They just made it to Vallaki with Ismark and Ireena in tow. They walked through the town square, saw Izek with guards, and comically went over to him to ask questions. Shortly into the awkward conversation, Izek noticed Ireena and immediately wanted to take her away for "questioning." The wizard in the group then cast Suggestion and told Izek, "There's no need to take her." Izek failed his save so he agreed and went about his business replacing the old posters. This is an interesting scenario for me because Suggestion worked but the wizard didn't word it in a way that would last long (in my opinion). So at what point in time would it dawn on Izek that Ireena is in town and that he should arrest her? Would he need to see her again? I have an idea in my head how this is going to play out but wanted others' take on it. Thanks!

The  spell influences a creature by suggesting a course of action:     You suggest a course of activity (limited to a sentence or two) and   magically influence a creature you can see within range that can hear   and understand you. Creatures that can’t be charmed are immune to this   effect. The suggestion must be worded in such a manner as to make the   course of action sound reasonable. Asking the creature to stab   itself, throw itself onto a spear, immolate itself, or do some other   obviously harmful act ends the spell.      The target must make a Wisdom saving throw. On a failed save, it   pursues the course of action you described to the best of its ability.   The suggested course of action can continue for the entire duration.   If the suggested activity can be completed in a shorter time, the   spell ends when the subject finishes what it was asked to do.      You can also specify conditions that will trigger a special activity   during the duration. For example, you might suggest that a knight give   her warhorse to the first beggar she meets. If the condition isn’t met   before the spell expires, the activity isn’t performed.      If you or any of your companions damage the target, the spell ends.   The description suggests the idea that this course of action sounds reasonable to the target, in such a way that it could be a decision that the target took on his own. Furthermore, contrary to other illusion spells (e.g. Friends), the target won't notice that he has been charmed.  However, I am not sure whether the ideas suggested by the spell persist after the spell ends. Consider the following example:  A creature owns a magical item connected to evil forces. He is using that item for his purposes. Another creature casts Suggestion by saying: "You feel that this item is ruining your soul. You will get rid of it, and you will go praying for 2 hours in order to purify your soul."  Supposing that the target considers it reasonable, and gets rid of the item. Then, for some reason, the spell ends. Now, how will the target react? Will he keep considering that idea reasonable, or will he try to get the item back?  Do the ideas that justify the Suggestion spell persist after the end of the spell?


I recently moved to another country and i would like to install bank appliation for my bank account in this country. however Play Store says i can't do that, because it's not available in my country (i guess it thinks i'm still in a previous country)  how to 'switch' to actual region/country ?

Can someone tell me how to change the country preference for Google Play? I have searched high and low but in most of the forums people ask you to go to Gmail settings -> edit profile and change the country there. But there is no place to change the country in settings! There is a something called place (which can be marked as current) but that has no impact on Google Play.  I don't want to circumvent country restrictions, I want to permanently change the country. So it's NOT a duplicate of .


I'm currently preparing a new edition of an old textbook: I need some way of keeping track of what I need to do, and what I have done.  Is there any software which plays nicely with LaTeX for this sort of thing?  I don't know if todonotes would be my best bet, or something else.

I am writing a scientific paper with my collaborator. We have submitted a version to a journal and now we got a review from them, so we need to fix a few things. In Microsoft Word there is the option to "track changes", which displays the deleted text as crossed out and the new text bolded (if I remember the details correctly). Is there a way to achieve a similar result in LaTeX?  I was thinking to create a new file for the revised version and then write a script which would basically compare the two files and make the differences either bold or crossed out before sending it to latex. Is there a tool that already does it?


Right now I have 2 computers:   Has connection to the internet and has installed package A. Doesn't have connection to the WEB. On this PC I need to install package A.   I decided to download all needed packages using first PC and transfer them to the second PC via USB. I have searched how to get all needed packages for some deb installation and .  But when I run:  apt-get --print-uris --yes install A | grep ^\' | cut -d\' -f2 > downloads.list   on first PC I got empty file because this package is already installed there (and I don't want to uninstall it).  Also package A is very complicated and depends on package B which depends on package C and package C is not installed on the second PC.  So how can I download all needed packages? Or is there any other way of installing it?

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


I,m trying this query but don't know what kind join is this inner join or anything else?  select *  FROM abc    JOIN xyz  on abc.id =xyz_id;

Both these joins will give me the same results:  SELECT * FROM table JOIN otherTable ON table.ID = otherTable.FK   vs  SELECT * FROM table INNER JOIN otherTable ON table.ID = otherTable.FK   Is there any difference between the statements in performance or otherwise?   Does it differ between different SQL implementations?


I have developed a Freemium Software which can be downloaded. I host the download on an Ubuntu FTP Server; in which I rented a Virtual Private Server to do this.  My concern is the download speeds. If 100 people are downloading at once, connection will be slowed down.  Is there a way for me to setup multiple FTP servers  to host same file by setting up additional VPS? I can't seem to find anywhere in google how to set this up.  OR   Is there a smarter way to achieve faster download speed?

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


Based on my limited Python knowledge Metaclass is another class. In the following example I am just building a metaclass. Here I overloaded the __new__ method. My expectation is at the end of the class declaration when type.__new__() is called it will be delegated to MyMeta.__new__(). But that never happens.  print('Building MetaOne')  class MyMeta(type):       def __new__(meta, classname, supers, classdict):           print('In MyMeta:', classname)        def myfunc(self):           print ('In myfunc')   Here from MyMeta's __new__() I don't see the print.  But on the contrary if I now use MyMeta class as a meta class to another class like:  print('Building Another class') class Super(metaclass = MyMeta):       def myfunc(self):           print ('In Super myfunc')   At the end of this class I see MyMeta's __new__ is getting invoked.  Can some one please help me understand why this happens?

In Python, what are metaclasses and what do we use them for?


I need to create something similarly to these functionality on picture. Like stack's TAGS about questions.     I want to be able to input more records for database in one form input field.  My another solution is to add dinamic field where you get another input field on button add or +, but i would try to implement something like this on picture above. I googled but i found nothin similary. Any idea how to acomplish that? I work in php, html, jquery.  Thank you.  Sorry if question is not clear, but i googled and try to find some plugin but i couldn't find anything. Best regards.

What solutions accomplish the same auto-completion that SO uses for entering tags?  There are plugins that can handle one word but I haven't seen any that handle multiple words.


I'm looking for integer solutions to the equation $a^2+b^2+c^2=d^2$ such that $\gcd(a,b,c,d) = 1$.

I have to find an infinite set for $a,b,c,d$ such that $a^2+b^2+c^2=d^2$ and $a,b,c,d\in\mathbb N$  I have found one possible set which is $x,2x,2x,3x$ and $x\in\mathbb N$  But I want another infinite sets and how to reach them because I have found my solution by hit and trial .


I am a beginner. Can anyone state what it means if anyone says "The aperture of the photo/pic is not correct."? I donot know what actually aperture means.

How does aperture affect my photographs?  Why should I care about the aperture with which a photo was taken?


How do I install the driver for iball 3.5G connect wireless Modem in Ubuntu 12.04?  My Laptop is Dell Inspiron N4010. Modem is not getting detected.

I purchased iball 3.5G  connect wireless modem 1 month before. I am trying to connect it with my laptop which is having ubuntu Operating System. After plug-in it to the ubuntu system it is not connecting with net.   This modem is plug and play but after plugging it nothing is displaying to the system.  I am expecting step-by-step method to connect this modem with my ubuntu 12.04 LTS sysetm from your expert's advice.


What is the pythonic way to write a ternary operator like this in the shortest possible way?   (x!=null)? x.something:0;    I want to use something like  y = x.something or 0   but that will check references in a way such that  x.y.z = None whenever x or y are None

If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?


I wanted to install Ubuntu on my Acer chromebook r11, so I turned it into developer mode, switched to terminal window (ctrl+alt+F2) and downloaded Ubuntu files via wget (tnyga). Everything worked ok, but then it boots every time to Crome OS again. I tried   sudo cgpt add -i 6 -P 5 -S 1 /dev/mmcblk0  but it didn't help.

I have installed Ubuntu 13.04 on my desktop (runs like a charm). Then I used Crouton to install Ubuntu 12. 04 on my chromebook samsung (ARM). It also works quite well.  Here comes my question. Can we have a true Ubuntu (preferably 13.04) on my ARM chromebook?  It seems that the Crouton/Ubuntu is not 100% the real thing.  The best option would be to have the full Ubuntu 13.04 and remove the Chrome OS.


A while back I read a short story about this alternate dimension story where these aliens had figured out how to trade resources with our earth by shunting materials across dimensions...on earth's side their material manifests as tungsten, I believe, although I remember there were side effects of the shunting that were potentially dangerous. I think they had also figured out how to communicate...I can't remember a lot of the details. The aliens were some kind of underwater creature but it doesn't go into a lot of detail about their immediate environment. The story describes them floating around but omits other details.  Most of the story surrounded these 3 sort of "gamete" children/adolescents. These aliens had three types of young that, when "joined" after maturity (a sort of pseudo-sexual union of the 3 types of gametes), formed an adult. After a trial period of temporary joinings the gametes fuse permanently and complete the life cycle (I can't remember if the adults produce gametes asexually or what). The adult alien's consciousness is wholly independent of the gametes, who lose consciousness when joining and disappear as independent entities once joined. Adults keep the truth of "joining" secret from the young, who believe they merely grow into adults individually.  A main feature of the plot is that the particular gametes of the story have heard about a "new adult" that was some sort of genius and who was up to no good with respect to trading with the human world, and they never discover that the "new adult" is actually the product of their own joining. The last time they fuse (for good), the reader discovers that they, in fact, are this "new adult" they've been learning about and trying to sabotage.  Anyway, I was trying to describe the plot to my fiancee and I can't remember the title or the author, and searching for it on the internet is not fruitful.

I suppose I read this story in a book in the nineties but I have no memory of actually reading it or the cover, I just remember a lot of the plot.  Scientists find out they are being contacted by the inhabitants of some other universe. I believe this happens by one element being exchanged with another (I remember wolfram was involved because I had never heard that word before) and messages somehow added. This leads to earth building some sort of machine together with the other universe (it is the description of this machine that I really would like to read again) that somehow generates energy on both sides. Only later do the people on earth realize, that it also slowly changes some of natures constants, threatening, I believe, the sun. The book also had detailed descriptions of everyday life in both universes. I remember some sport played in the lower gravity of the moon and the aliens having three distinctive sexes.


My 13-year-old daughter wants to bike to school alone two times a week for band. It's about a 10 minute bike ride with crossing four roads. My husband is scared, but she is very mature and can bike very well. Do you think to let her bike alone with good bike lanes and safe neighborhoods would be save?

My 9-year-old is asking to bike to school without adults. He is generally responsible. So far I have said he needs to find a friend to go with him.   What can children do to convince their parents that they are capable of going to school on their own?  What factors do you think are important?


I am facing a problem with grub. After a fresh install of Ubuntu 17.10 Grub is using the English keyboard layout instead of a German one. This applies to the Grub console and to the LUKS password prompt that opens directly after the boot manager. Since I am using full disk encryption with a rather strong passphrase, I have to adapt it to the US keyboard layout.  I have tried  solution but it did not work. The layout remains English without any errors or messages. Moreover, I can't use the keyboard in the bootmanager at all. So I reverted the changes suggested in the solution.  I never faced this problem before.

When I boot in GRUB2 and press c, I have access to GRUB shell.  How to change the keyboard layout (language) of this GRUB shell?  Note that I'm booting an Ubuntu VM inside Virtualbox.


I am very new to blender. I am trying to make a rigid body and hair to collide, but they don`t, the hairs are just passing through. When i googled it I could not find wrong i am doing. only one solution i got is to use force field. buts not what i want. I am attaching my , please find me what is wrong.

I have a ground plane set up with a hair particle system, it is set as a passive rigid body. Now I want to be able to drop my Active rigid bodies, and have them collide and lay on top of the hair.  Further more I'm trying to find a way to make the hair particles mat down where the rigid bodies hit them.


I'd like to import Coordinates from an Excel list, for this reason I saved the excel sheet as an .csv ant tried to import it via "Layer --> Add delimited text Layer". The points are imported, but with the wrong Coordinates. They are very far away from the right location. They should be in Germany, but they are in the Sea near Africa.  In the table of attributes and in the import dialogue the coordinates are displayed correctly.  I tried:   to exchange Longitude and Latitude. Save the csv in utf8 (and choose utf8 in the QGIS dialogue) format the Coordinates in Excel as a Number   Does anybody know what can be wrong?  (in the other question it is only asked how it works not, how to solve my problem)

I have an Excel file containing data collected over many years as latitude and longitude coordinates for archaeological sites. How can I import it into QGIS as a new layer?


In bash, we can use the up and down arrow keys to get the last or nth previous command in history.  Can we do this in zsh?

In zsh, I know that I can search history with Ctrl+r. However, oftentimes I start to type a command directly at the prompt, but then realize I should be searching history. When I hit Ctrl+r, it brings up a blank history search prompt like this:    Notice how there is text at my prompt but not at the history search prompt. How do I start the history search with the text already in the prompt, so it looks like this:


sudo apt-get install libgl1-mesa-dri Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  colord : Depends: libsane (>= 1.0.24) E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.  Link to main problem

I am not sure what caused this error, but here is what the whole error says, and also this is sitting as a notification, and preventing me from updating any software using Update Manager - Please provide some assistance or tell me how to figure out what to do to fix it.  Could not calculate the upgrade  An unresolvable problem occurred while calculating the upgrade.  Please report this bug against the 'update-manager' package and include the following error message: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'


I understand through trial and error that d=91, but trial and error is extremely inefficient and slow. I understand that you can use the extended Euclidean Algorithm to find d faster, but I'm encountering some unexpected problem. For some reason, I'm unable to move past the first step, could someone point out what I'm missing. 19d $\equiv$ 1 (mod 96) 96 = 5*19 + 1 $1 = 96 - 5\times19 = 3\times2^5 - 5\times19$

Isn't finding the inverse of $a$, that is, $a'$ in $aa'\equiv1\pmod{m}$ equivalent to solving the diophantine equation $aa'-mb=1$, where the unknowns are $a'$ and $b$? I have seem some answers on this site (where the extended Euclidean Algorithm is mentioned mainly) as well as looked up some books but there is no mention of this. Am I going wrong somewhere or is this a correct method of finding modular inverses? Also can't we find the Bézout's coefficients by solving the corresponding diophantine equation instead of using the extended Euclidean Algorithm?


Why am I getting java.lang.NullPointerException?   package com.example.vinhpt.listviewcoban_dulieucodinh;  import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast;  public class MainActivity extends AppCompatActivity {      ListView lvThu;     String []arrThu;     ArrayAdapter<String>adapterThu;       @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         addEvents();         addControls();     }      private void addControls() {         arrThu = getResources().getStringArray(R.array.arrThu);         adapterThu = new ArrayAdapter<String>(                 MainActivity.this,                 android.R.layout.simple_list_item_1,                 arrThu         );         lvThu = (ListView) findViewById(R.id.lvThu);         lvThu.setAdapter(adapterThu);      }      private void addEvents() {         lvThu.setOnItemClickListener(new AdapterView.OnItemClickListener() {             @Override             public void onItemClick(AdapterView<?> parent, View view, int position, long id) {                 Toast.makeText(MainActivity.this, arrThu[position],Toast.LENGTH_LONG).show();             }         });     }     }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


tldr: Prevent Eyes From Going On Strike!  Add a colored background to the main site user page on accepted answers. Add a single line of CSS to make the user page friendly looking like on the meta!    See the difference on the left -> main Ewww! and on the right -> meta Great!    How am I supposed to see the difference on the main page! The only little difference is that the color of the number is dark greenish!  The problem could be solved with the following css on user profile page :   .answered-accepted {     color: #4C9067; /* Which is already there on user page */     background-color: #CDDFBF; /* Line-to-add took from the existing meta CSS */ }     Boring background and more info  I'm normally not picky when it comes down to colors or stuff like that but, this is to me really hard to differentiate. I've been browsing on the mobile SO a lot lately and this is one of the thing that lowers my user experience!   On the user pages it's very hard to see the difference between answers/questions that have accepted answers and those who do not. The one with accepted appears in green and the other one in black. Well when the luminosity of your phone is not at the maximum or when you are outside or whatever else non-optimal condition it's nearly impossible to see the difference.  So I would be very happy to have the user profile page to look a bit more like the one in the full site or in mobile question page where you can easily see accepted questions/answer. So If one could add a green background to prevent my eyes from going on strike!  This question is kind of related to  which was a similar request for the main site.

In my opinion, mobile site has updated in the last days. And I have noticed one issue, in user profile page we can't know if our answer is accepted or not. But, in full version and the previous mobile version it was working. Here is the snapshots:  In full site:      In mobile site:    If you can see four answers are accepted by the answerers in full site. I have inspected these elements and the class name is answered-accepted. It is also added to the elements in mobile site. But, isn't defined there.  It is not very big thing, but I hope so it will be fixed. ;)


We only see Close window option in SharePoint 2013 in Edit, New and View Dialog forms. I need a generic solution to display the Maximize option to all the lists and Document Libraries as in SP 2010.  Please let me know how to enable the maximize button at a time to all the lists and libraries.  Thanks in advance

In SharePoint, when we edit, view or Add an item in lists or libraries we observe that we do not find maximize button in SharePoint 2013. How to I add the maximize button to all the lists and libraries form as we see in SharePoint 2010. I need a generic answer.  Thanks in advance.


Full question: Let $p$ be a prime and let $a$ be an integer such that $1 \leq a < p$. Then there exists a unique natural number $b$ less than $p$ such that $ab \equiv 1 \pmod{p}$.  Looking for the proof. Is Fermat's little theorem necessary?

In a proof of Wilson's theorem, I read this identity and just wondered how to prove it:  When $1\leq a\leq p-1$, we have $(a,p)=1$, so there exists a unique $\overline{a}$ with $a\overline{a}\equiv 1\pmod{p}$  Why is this the case?


I'm not so sure what moderators are, but I know they are separated from other users by a diamond. I thought moderators are employees but from time to time I see someone without a diamond near his name who says something like this:     We have .....   Which conveys that he is a stackexchange employer.  Here is my question:  Are there moderators without a diamond?

Some people have a diamond after their username (e.g. )    What special privileges do diamond moderators have? How can I become a diamond moderator? Who are the diamond moderators?  How many are there?      For more information, see  in the .     Note: not to confuse with certain Stack Exchange employees, for example  members or "community managers", who often have diamonds as well, but are not ordinary moderators.


I'm doing technical interviews for the first time, and need advice on good interview questions, or resources. Is  the correct site for this? Is there not one?

Is there a Stack Exchange site for both technical and behavioural interview questions? Where I could ask questions about, for example:   Sample questions and solutions, experiences, or seeking advice for interviews A place where I could ask interview questions and what the best way to answer it (not just a correct way or the most efficient).   What to do in a certain situation such as negotiation, unfair interviews, etc.   Experiences interviewing at so-and-so company.


Good morning!  The goal of my code is to generate all possible three character strings that include A-Z and 0-9.  For example, I want all possibilities from AAA to 999.   Problem:  My own code will only output up to A99.  My 2nd if statement is not generating the next step, which is confounding me.  I need the 2nd if statement to work so that the A in A99 will increase to BAA and keep going.  Here is my code:  {             public static void main(String args[]) {          String[] AZ09 = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};          while (z < AZ09.length) {         System.out.println(AZ09[x]+AZ09[y]+AZ09[z]);         z++;                if ((AZ09[y]+AZ09[z]).equals("99") {                    System.out.println(AZ09[x]+AZ09[y]+AZ09[z]);                    x++;                    y = 0;                    z = 0;               }                if (AZ09[z].equals("9")) {                    System.out.println(AZ09[x]+AZ09[y]+AZ09[z]);                    y++;                    z = 0;               }             }   Solution?  Thoughts?  Please don't post as duplicate.  I tried the .equals() method and still no dice  Thank you so much!

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I have a text file named file.txt which contains,  myname1234@gmail.com: myname1234@gmail.com:password000 secondmail@hotmail.com: secondmail@hotmail.com:qwerty123 philip007@ymail.com: philip007@ymail.com:iloveyou   I am running a vbs program,  Const SCRIPT_NAME = "Extract E-mail Addresses" Dim objFSO, objFil, arrAdr, varBuf, varInp, varOtp Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFil = objFSO.OpenTextFile("file.txt") varBuf = objFil.ReadAll objFil.Close arrAdr = Split(FindString(varBuf, "\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b"), ",") Set objFil = objFSO.CreateTextFile("results.txt") For Each varBuf In arrAdr     objFil.WriteLine varBuf Next objFil.Close Set objFil = Nothing Set objFSO = Nothing MsgBox "Extraction complete.", vbInformation + vbOKOnly, SCRIPT_NAME WScript.Quit  Function FindString(strText, strFind)     Dim objRegEx, colMatches, objMatch     Set objRegEx = CreateObject("VBscript.RegExp")     With objRegEx         .IgnoreCase = True         .Global = True         .Pattern = strFind         Set colMatches = .Execute(strText)     End With     For Each objMatch In colMatches         FindString = FindString & objMatch.Value & ","     Next     If Len(FindString) > 0 Then         FindString = Left(FindString, Len(FindString) - 1)     End If     Set objRegEx = Nothing     Set colMatches = Nothing     Set objMatch = Nothing End Function   Expected output,  myname1234@gmail.com:password000 secondmail@hotmail.com:qwerty123 philip007@ymail.com:iloveyou   But, Actual result,  myname1234@gmail.com myname1234@gmail.com secondmail@hotmail.com secondmail@hotmail.com philip007@ymail.com philip007@ymail.com   My need : I like to filter only email:password from the file.txt text file. But, using above vbs i can only able to filter email address. Please fix my code to get my expected output. Thanks a lot in advance.  Note : The email and password may vary with different text files. Also am noob to vbs. Being frank i got the above code from Quora. Kindly help me. Even same solution using batch program is also fine for me. Waiting for valuble solutions :)

I have a text file named file.txt Which contains,  Combo: testing123mail@gmail.com:password As Combo:  abcdefghijklmnopqrstuvwxyz@gmail.com:ajfbdf some text here some more text here As Combo: hadvsfhia@ahfjbadj.com:password@1 some random text here iloveu@gmail.com:passypassyword123 goldenmammy@hotmail.com:youtube123   I am running the below code, to filter only mail:pass from the above text file file.txt  for /f "tokens=3" %%a in ('type file.txt^|find "As Combo:"') do >>mail.txt echo %%a for /f "tokens=2" %%b in ('type file.txt^|find "Combo:"') do >>mail.txt echo %%b for /f "tokens=1" %%c in ('type file.txt^|find ":"') do >>mail.txt echo %%c   Expected Output in mail.txt,  abcdefghijklmnopqrstuvwxyz@gmail.com:ajfbdf hadvsfhia@ahfjbadj.com:password@1 testing123mail@gmail.com:password iloveu@gmail.com:passypassyword123 goldenmammy@hotmail.com:youtube123   But, am getting actual output is,  abcdefghijklmnopqrstuvwxyz@gmail.com:ajfbdf hadvsfhia@ahfjbadj.com:password@1 testing123mail@gmail.com:password Combo: Combo: Combo: As As iloveu@gmail.com:passypassyword123 goldenmammy@hotmail.com:youtube123   Note: The mail id and passwords will be differ in different text file. Above given mail id and passwords are typed by me randomly for example.  Kindly fix my code and help to get expected output. Thanks in advance.


How can I edit the same property on all selected objects at once? For example, if I select 5 mesh objects and I want to lock rotation x or I have selected 20 curves and want to edit 'Preview U resolution' of all of them at once or change the bevel depth of all of them to 2. And if they have same modifier can we edit modifier's properties at once?

I have been using the Copy Attributes add-on to copy some properties from active object to selected objects. This add-on is not enabled by default and must be explicitly enabled. But its a very useful workflow enhancing tool.    There is a limitation though. Not all properties can be copied and even those that can be copied are copied in groups (Its hard-coded in to the add-on).  My question is if there is a built-in feature or any another other way to copy any property from the active object to the selected objects?


Why is the probability of the photoelectric effect occurring higher for low energy gamma rays? I'd like a physical answer not just equations.

Consider the diagram below:  (Author: Joshua Hykes )  From this diagram we can see that the absorption coefficient for the photoelectric effect generically decreases with the increase in energy of the photon. What is the physical reason for this decrease. (i.e. why does the probability of photoelectric absorption decreases with increasing photon energy).  Note: I am aware that the large spin is due to more inner electrons been able to be lifted.  Edit For Clarity  I will here rephrase the question: in the above diagram there is a general decrease in the absorption coefficient due to the photoelectric effect (i.e. the absorption of a photon by an electron and subsequent emission of that electron) with energy (ignoring the occasional absorption edge). This is of course linked to a decrease in the probability of the photoelectric effect occurring (and a corresponding decrease in the cross section). My question is: what is causing this decrease with increasing energy. (For the purpose of this question I am ignoring the contribution due to the Compton effect and pair production and simply focusing on the cross section due to the photoelectric effect.)


I would like to show that every trace zero square matrix is similar to one with zero diagonal elements. This question has been asked before, and has had an answer . And my problem is that I cannot understand the cited paper. In the , (proof 4), one finds the sentence       Since $\text{Tr}(K) = \text{Tr}(B^{–1}SB) = \text{Tr}(S) = 0$, this step can be    repeated to replace $K$ by a matrix whose every diagonal element is zero ( thereby changing $c$ and $r^T$ ) thus constructing $C$ so that every diagonal element of $C^{–1}SC$ is zero.     Question       I thought that, since $\text{Tr}(K)=0$, we can, by the induction hypothesis, find an invertible $D$, such that $D^{-1}KD$ has diagonal elements $=0$. But how does this enable us to replace $K$ by a matrix with zero diagonal elements, at the cost of changing $r^T$ and $c$?     I tried to constuct some matrix $C$ from $D$ such that $C^{-1}\begin{bmatrix}0&r^T\\c&K\end{bmatrix}C=\begin{bmatrix}0&r'^T\\c'&K'\end{bmatrix}$ with $K'$ having zero diagonal elements, but to no avail. I have tried various choices of $C$, but the result of the multiplication refuses to be of the required form, so I wonder if I am missing something here? Any hint is well-appreciated.

Prove that if $A$ is a square matrix and $\mathrm{Tr}(A)=0$, then there exists an invertible matrix $R$ such that the matrix $T=R^{-1}AR$ has all entries on its main diagonal equal to $0$.   It seems like the formula $A=S\Lambda S^{-1}$, but maybe it does not help.  Thanks so much.


I've read that in Unix, you can configure the file-system to reserve certain amount of space for root. Which configuration property is it?

I understand that by default, newly created filesystems will be created with 5% of the space allocated for root. I also know you can change the defined space with:  tune2fs -m 1 /dev/sdXY   What I'm curious about though, is what the actual purpose for this reserved space is. Does it serve any practical purpose which would merit more than 5% space in some circumstances?  The reason I've stumbled upon this question is that we recently built a 1TB filestore, and couldn't quite figure out why a df -h left us missing 5% of our capacity.


Hi i already have one 4k 27" monitor and one 1080p 24" monitor hooked up to my Macbook. I want to replace the 24" 1080p with a 27" 2k/QHD monitor. Would that work? one 4k and one QHD hooked up to macbook pro retina late 2013?

How do I find out the number, type, resolution & refresh rate of additional monitors I can attach to my MacBook or MacBook Pro?  This is an attempt at a canonical QA, as per the Meta QA -   to try prevent the myriad "same but different" questions we get on every possible combination of computers, cable & monitors There are perfectly good resources out there that Ask Different should not have to duplicate the efforts of.


I would like to know to find the limit of this sequence:  $${n^n\over n!}$$  It diverges, I know, but I don't know how to come to this conclusion.

I am studying for a test and I am given this problem:  $$\lim_{n\to\infty}\frac{n^n}{n!}.$$  How do I go about solving this limit? Intuitively I see how the numerator is growing much faster, but how do I express this precisely? Thanks!


Is there any option, to append many objects without appending their materials?  Example: I have scene1.blend with cube object and wood material.  I append cube with wood to scene2.blend, where there also is cube and wood material.  Blender logically creates cube.001 and wood.001, but I don't want wood.001, I need Blender to use the existing wood material instead of creating a new copy.  I'm talking about thousands of objects and hundreds materials. For example now I have natural wood.## ... natural wood.017 and all are exactly the same, and I have few dozens of materials like this multiplied by 17 object copies.  My English is not very good and this is problem little bit hard to explain, so I hope you understand what I mean.

Anyone who has used Blender for a while has probably tried to duplicate a scene via Full Copy. They would have then found that in the duplicated scene, all of the materials were duplicated as well, receiving that infuriating .001 ending. Normally, one might be able to change all the materials back to the originals and then reload the file (as suggested ) to get rid of the duplicate materials. I can do this, but I have A LOT of material slots in my project, and the work is incredibly boring.  So basically, my question is...  Is there a button, script, feature, or anything else that would disable the duplication of materials when I duplicate my scene.  Note that if the answer is a script, I will need to be walked through how to use it as my Python skills are about a -52. :)


I have some problems in using the plural form of a uncountable noun. For instance:  "The density of all the solutions is measured."  or  "The densities of all the solutions are measured."  Is there any difference between these two sentences?  Sometimes I find that uncountable nouns are very confusing. I don't know when to use its plural form. (p/s:I'm not a native English speaker)  Thanks in advance.

Which of the following is a grammatically correct statement?   The value of cars depreciate over time.   The values of cars depreciate over time. The value of cars depreciates over time.   Thanks!


I am trying to prove who my great-grandfather is. I investigated many records (Kobe Directory, Japanese "koseki"), and even DNA testing, but I'm still not sure.  In the Japanese koseki, the name Mr Ede was not included because the names of foreigners weren't record in the old days. I have searched the Kobe Directory from 1888 to 1900, because my great-grandmother had three babies from 1893 to 1899. She had three sons. The youngest child is my grandfather. His brothers knew their father, but my grandfather didn't. And after my grandfather was born on Sep 25, 1899, his family became poor.   Then I think my great-grandfather left at 1899 or 1900. So I searched the Kobe Directory from 1888 to 1900. There I found thee possible candidates. One of them is C.Z. Ede. The records of the two other men exist. Each had a wife, and I found their wives' names. So Cecil Zohrab Ede became the most likely candidate for being my great-grandfather.  My problem is, I don't know what to do from here. I have tried DNA testing. I contacted a member of Zohrab family. He said C.Z.Ede is my great-grandfather, and that the circumstantial evidence is satisfied. The boarding list and inheritance document suggest C.Z.Ede is my great-grandfather. The member of Zohrab family said "I want to put you onto family-tree.", but I said "Please wait till I am convinced he is my great-grandfather".  However, I am not yet convinced that C.Z. Ede is my great-grandfather. I want to know what I need to do to find proof. I think there may be a record where C.Z.Ede and Kogiku (my great-grandmother) can be shown to be married. I looked for marriage record, but records of church were burned by air raids.   Do you have any suggestions for where I might find proof of their marriage in the absence of a marriage record?

I am from Japan and I have been trying to identify my great-grandfather who was British.  For more background these are two questions that I have asked here previously:       I have now taken a Family Finder DNA test (Autosomal DNA) but the results appear not to give any hints that will help me to identify my great-grandfather.   The DNA test says that I have a male cousin in Denmark and that this is three to five generations ago. However, I have not been able to make contact with him.   So three people were related to me. One Japanese man, one Japanese woman and Danish man. The two Japanese are more than 5 generations, while the Danish man is from 3 to 5 generation.  If the ancestors of this Danish man become known to me I think it will be very useful.       Is there another DNA test that I should take?   I did a Autosomal / Family Finder test of FamilyTree DNA.  I was matched with 3 people in FamilyTreeDNA. One person in the Danish, two people after is Japanese.  We'll explain the research that I have done. My great-grandfather was in Kobe of Japan in the 1890s. He was officially married and great-grandmother. However, I do not know his name.   As denoted in my other questions in addition to DNA testing I have...   1. I examined the foreigners who lived from the late 1880s until 1900 in Kobe.  2. So, I found a person who continued to live after that.  3. The person was Cecil Zohrab Ede.  4. I ordered the materials of Ede in Archives of the United Kingdom. As a result he was found to have died in Shanghai in 1901. And, he is a bachelor, his property his father has received.  5. I have heard that the great-grandmother went abroad with her husband.  6. So I examined the record of the boarding of the ship. And, I found that in 1893 Mr and Mrs Ede rode to the ship.  7. Because I cannot identify the great-grandfather in the record only, I was asked to test the FamilyTree DNA. When Ede brother offspring relationship if the registration is found I thought.


[sudo] password for mohamed:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


In my steam library my games are all under the Games tab with seemingly no way to organise them. I can sort them by clicking the headers but that appears to be it.  How can I organise my games?

My game list is approaching 100 games and it is starting to get difficult to sort them. I've categorized them by genre but it's still difficult to find them (and my backlog is getting bigger).  I also have Steam installed in more than one computer so I have to repeat the sorting for each one of them.  Is there any option to have the games ordered in a nice and clean way?  Edit: About the library sync between computers it could be  problem.


Background: I'll start to write my (cumulative) dissertation in two months.  I'm currently struggeling to find a good technical solution to organize research-related thoughts for my dissertation. For each chapter, I currently have an individual Trello board with lists such as "ToDo", "Research Ideas", "References", "small thoughts / phrases / arguments for certain design choices". This seemed to work at the beginning, but now I have so many "small phrases" that I lost the overview of them.  Up until now when I was working on papers, I usually wrote all my thoughts into the corresponding sections of the papers. However, with my dissertation as a "larger paper", I don't think it's feasible to organize my thoughts this way.  How do you organize 100+ "small thoughts" about your research and still have a good overview? I know that I can use a physical notebook but I'd rather have an online solution that allows me to quickly reorganize my thoughts (which a notebook does not).  I know that  is related but the answers were discussing online vs. offline and the general guideline was 'whatever helps you'.

As a PhD student I generate a lot of pages with calculations, ideas and lecture notes.  Most of them are useful only for a short amount of time, but some may be important for much longer (when writing a paper, or when having new ideas to continue a once abandoned project). Typically I work on a few project simultaneously.  The question is, what is a good practice of taking and keeping notes? (With or without computer apps.)  Writing on single sheets (even if adding date and title) makes it easy to organize by topic, but also easy to loose. Keeping in one notepad makes it harder to collect useful things of one topic in one place.


During the penalty shootout of , in Croatia's 2nd shot (Andrej Kramarić vs Kasper Schmeichel), when Kramarić was running for a shot, he paused briefly before continued to run for the shot, then shot and scored a goal. Schmeichel fell for the trick, thus missed the ball. Right after the goal, Schmeichel showed expression claiming Kramarić's procedure was a foul/invalid conduct. However the referee acknowledged his goal and let the match continue.  My question is: In FIFA's rules, during a penalty shootout, is it a foul or misconduct if a shooter pauses briefly while running or before a shot to trick the goalkeeper?  (A note: I do recall reading the rule somewhere, stating that the mentioned "trick" is indeed a foul for unsportmanlike conduct, but I cannot find the source or citation anymore. I might have remembered it wrong, though.)

When taking a penalty, some players pause during their run-up, before kicking the ball forward.   Occasionally they halt long enough and the goalkeeper goes one way, then they shoot.  Is this legal or should the player taking the kick be booked for this?


Is it correct to say "between you and me" or "between you and I"?  I am not a native English speaker, so please bear with me.

When the phrase is used as an object, why so many native speakers are saying "you and I" instead of "you and me"? I'm not a native speaker but I thought "you and me" is correct. Not sure if this falls into the same category, but "Just between you and me" sounds more natural than "Just between you and I".


I have a MacBook Pro early 2015.Recently I am facing an issue with the battery. It's not charging. The MacBook works fine when connected to charger, but it turns off when the charger is removed. I did a SMC reset, tried another charger too no results. I also tested my charger on another Mac which works just fine. I took it to the Apple service centre and they said I need to replace the logic board which costs tons of money. I am confused, do I really need to spend this much money if my laptop just works fine with charger plugged in? Here is my battery status  Also status indicator  Please  suggest me what could be the best solution. Thanks in advance.

I see that the question "why is my MacBook not charging?" gets asked a lot. The problem is, there are multiple reasons. Possible points of failure are: charger, cable, magsafe connector, DC input board, logic board, battery. (Have I missed any?). What is the best sequence for a user to follow, to diagnose the problem? By way of example, here are the first steps that I usually try:  Make sure the charger is working. Either use your charger on a different Mac, or test a spare charger with your Mac.  Check the connection. There might be gunk in your port that's stopping the connector from lying flat.  Try resetting the SMC and PRAM.  If the computer boots, run Coconut Battery to determine battery status.   This is where I get a bit stuck. For example, I have a machine here that boots fine when plugged in, but not from battery. Disconnecting the MagSafe causes the machine to switch off. Sounds like it's a dead battery, except that Coconut reports the battery as detected, in good condition, but not charging. What steps should I take next? Specifically, I'm asking for a generic algorithm to help determine the source of the fault (preferably without swapping out lots of components one by one)?


Let $G$ be a group and $H_1$, $H_2$ finite subgroups of $G$. Prove that $|H_1H_2|  = \dfrac{|H_1||H_2|}{ |H_1 \cap H_2| }.$  I tried googling the problem to give me a hint on how to proceed and I saw a proof  where they use equivalence relations. But I don't see how to do the proof with that. Can someone give me a hint or explain the reasoning behind the proof in the link?

I am wondering how to prove the formula $|HK| = \dfrac{|H| \; |K|}{|H \cap K|}$ where $H$ and $K$ are finite groups. Let $|H|$ denote the order of $H$ and so on.  I have seen proofs from these websites:  and .  But I do not really understand the idea of the proof. Can someone explain the proof to me, please? Thanks so much.


Licence: ArcEditor   Version: ArcMap 10.0   i have some issues to separat my data with python.  To illustrate the problem, i have simplifyed the data with figures.  I want to cut the blue polygon out of the red one. So at the end, i have only red peak of the shape 1 in my dataset.   Example of the data:     What i've tried:  1. Analysis (Toolbox) -> Extract -> Clip  -> Doesn't work for me, because only the overlapping area will cutting out. And this is alway the shape 2. It doesn't matter how i configure the tool. I can't separate the red peak.    2. Select the shape 2 -> Editor -> Cut   -> works perfectly, BUT i can't manage that with python. I can't find any functions that access to the editor.   My aim is to seperate the red peak with a python script, and i don't know how i can solve this. Maybe someone has an idea?

I am working on a project doing spatial analysis at a statewide level. I am looking at a form of transportation coverage in a state, and part of my analysis involves buffers and drive time polygons. I am using a geodatabase (therefore ArcGIS) for all my work, so new features will be exported as feature classes in feature datasets. To visualize: I have said state border, and some dissolved buffer rings around some points, and they cover parts of the state. I want to create a feature class for the parts of the state these buffer rings don't cover, AKA gap areas. Is there a tool I can use or create to do this? I know I could draw them in manually in editor, but I am unsure if that's the most precise way to generate these feature classes. To me, I am thinking this operation would be like an inverted "Clip" in that I take the two layers, and instead of pulling out the clipped area, it would take everything not in the clipped area. I am using a Desktop Basic license.


Let's say I have a table of movies. The name of the movie is a varchar. But sometimes the movie names contain sequel (or series or episode) numbers that go over 9. How can I sort the movie name to handle numbers like a human would?  This is how it sorts by default:  select * from movies order by name  Alpha Beta Gamma 1 Gamma 10 Gamma 2 Gamma 3 Gamma 4 Gamma 5 Gamma 6 Gamma 7 Gamma 8 Gamma 9 Delta   See the 10 after 1? I know why it does that, what I want to know is how to make it sort like this:  Alpha Beta Gamma 1 Gamma 2 Gamma 3 Gamma 4 Gamma 5 Gamma 6 Gamma 7 Gamma 8 Gamma 9 Gamma 10 Delta   I have looked for solutions all over and haven't found anything that solves this.  Please note that this is just a simple example, the actual names can be much more complex, like Gamma The Explorer 1. episode or Gamma The Explorer 2. series 1. episode or Gamma  The Explorer 3. episode Director's Cut and that most other movie names don't have numbers in them, so please no solutions that count on the number being in a specific place or position in the string or sorting using name+0 - that's not the solution I want.  I know for a fact that Windows Explorer, among other software, handles sorting file names in the correct (human) fashion, and I don't believe MySQL wouldn't be able to handle something so obvious, so there ought to be a feasible solution for this.  Edit: Apparently it's called natural sorting. Does MySQL really not have this at all? Optionally: What is UDF, and where do I get one for natural sorting, and how do I get it on my server?

Is there an elegant way to have performant, natural sorting in a MySQL database?  For example if I have this data set:   Final Fantasy Final Fantasy 4 Final Fantasy 10 Final Fantasy 12 Final Fantasy 12: Chains of Promathia Final Fantasy Adventure Final Fantasy Origins Final Fantasy Tactics   Any other elegant solution than to split up the games' names into their components    Title: "Final Fantasy" Number: "12" Subtitle: "Chains of Promathia"   to make sure that they come out in the right order? (10 after 4, not before 2).  Doing so is a pain in the a** because every now and then there's another game that breaks that mechanism of parsing the game title (e.g. "Warhammer 40,000", "James Bond 007")


$f:\mathbb{R}\rightarrow\mathbb{R}$ be a continuous function such that $f(x+1)=f(x)\forall x$ we need to show $f$ is uniformly continuous function.  please give me some hint:

A function $f:\mathbb{R}\to \mathbb{R}$ is periodic if there exits $p>0$ such that $f(x+P)=f(x)$ for all $x\in \mathbb{R}$. Show that every continuous periodic function is bounded and uniformly continuous.   For boundedness, I first tried to show that since the a periodic function is continuous, it is continuous for the closed interval $[x_0,x_0+P]$. I know that there is a theorem saying that if it is continuous on a closed interval, then it is bounded. However, I'm not allowed to state that theorem directly. Should I just aim for a contradiction by supposing f is not bounded on the interval stated above?


I had a Google Account that I used roughly 6 or 7 years ago for PlayStation Store Purchases. Since I am trying to recover my account on PlayStation Network (PSN) I am now looking for that Google Account since it held the verification emails and account info that are required to sign back in.  All I have is my email associated with the account and the YouTube name that I used. I can’t recall anything else and since I have not used the account in over 6 years, it has been difficult for me to try come up with the password I originally used. Has anyone encountered this problem and, if so, how did you solve it?  Also, if there is not a solution it is not necessarily a problem. But I would just rather not repurchase media that I already payed for albeit 6 / 7 years ago.

I have forgotten the password or username for my Google account, or I'm unable to access my account for other reasons.  How can I recover my account?  (This Q&A is meant as a general description for all Google and Gmail username/password questions. See: )


(to simplify calculations, I assume a spherical earth. All distances are assumed measured "as the crow flies")  Suppose we have the lon/lat coordinates for two points (p_1,p_2) less than Nkm apart.  Then, around point p_1 I draw a  circular polygon c_1 of the set of all points at distance exactly Nkm from p_1 and likewise for p_2 and c_2.   Now c_1 and c_2 will cross at two points. Is there a formula to find the  coordinates of these two crossings? If such a thing exists, a pointer to an R/python code doing this would be just as good as a formula.

I'm trying to figure out how to mathematically derive the common points of two intersecting circles on earth's surface given a center Lat/Lon and a radius for each point.  For example, given:   Lat/Lon (37.673442, -90.234036) Radius 107.5 NM Lat/Lon (36.109997, -90.953669) Radius 145 NM   I should find two intersection points with one of them being (36.948, -088.158).  It would be trivially easy to solve this on a flat plane but I don't have any experience solving equations on an imperfect sphere such as the earth' surface.


I create a link in ajax callback function and define a class for that, commands that I write on click of this link doesn't work. the code is here:  $('.catpics').click(function(){    var id=$(this).attr('id');    $.post('storehouse.php', {      catid:id,      btn:'showsub'    },function(data){      $('#subcatshelf').append(''+data+'');    });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I am using Triple DES algorithm for encryption.While doing that i need to pass in a hex decimal(32 characters) key.When i convert that to byte array it's gets stored in 32 bytes.But the input key to the algorithm should of 16 bytes only.So my question is how to store 32 hex decimal digits in 16 byte array?

Can we convert a hex string to a byte array using a built-in function in C# or do I have to make a custom method for this?


I have a PC running Ubuntu 14.04, and I wanted to install Windows as well, for gaming purposes. I've read that it's safer to install Windows first, but it's too late for that, so I wanted to partition my drive to add Windows 10. How can I do this safely? If there isn't a way to do so, should I use two hard drives instead?

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


Any positive integer n > 1 can be written uniquely in the following prime factorization form :    where p1 < p2 < ... < pk are primes and the ni are positive integers.This is Fundamental theorem of arithmetic. what do we call every prime power pi^ni.I want to know the concept .

I am using this simple snippet of code, variants of which I have seen in many places:  for(int k = 0 ; n % 2 == 0 ; k++)     n = n / 2;   This code repeatedly divides num by 2 until it is odd and on completion k contains the number of divisions performed.  I am wondering what the appropriate way to write this using mathematical notation is?  Does this correspond to some named concept?  Of course, $lg\ n$ gives the appropriate $k$ when $n$ is a power of 2, but not for anything else. For example, $k = 1$ when $n = 6$ and $k = 0$ when $n$ is odd.  So it looks it should be specified using a piece-wise function but there may be some mathematical concept or nomenclature here that I am not aware of...


trying to install GNU Octave on Ubuntu 14.04. I've tried following the solution in  and ran the command sudo apt-get build-dep octave , but I still get the same list of errors:  The following packages have unmet dependencies:  octave: Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-0ubuntu1 is to be installed     Depends: libglpk36 (>= 4.51) but 4.52.1-2build1 is to be installed     Depends: liboctave3 (= 4.0.0-3ubuntu2~octave~trusty1) but 4.0.0-3ubuntu2~octave~trusty1 is to be installed     Depends: libgl1-mesa-glide3 but it is not going to be installed     Depends: libportaudio2 (>= 19+svn20101113) but 19+svn20140130-1 is to be installed     Depends: libqt4-network (>= 4:4.5.3) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 is to be installed     Depends: libqt4-opengl (>= 4:4.5.3) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 is to be installed     Depends: libqtcore4 (>= 4:4.7.0~beta1) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 is to be installed     Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 is to be installed     Depends: libstdc++6 (>= 4.6) but 4.8.4-2ubuntu1~14.04 is to be installed     Depends: octave-common (= 4.0.0-3ubuntu2~octave~trusty1) but 4.0.0-3ubuntu2~octave~trusty1 is to be installed   Does that mean I need to run sudo apt-get install <package> to every one of the packages that are listed in the error detail?  Thanks  This is the output of apt-cache policy octave libgcc1 :  octave:   Installed: (none)   Candidate: 4.0.0-3ubuntu2~octave~trusty1   Version table:      4.0.0-3ubuntu2~octave~trusty1 0         500 http://ppa.launchpad.net/octave/stable/ubuntu/ trusty/main amd64 Packages      3.8.1-1ubuntu1 0         500 http://au.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages libgcc1:   Installed: 1:4.9.1-0ubuntu1   Candidate: 1:4.9.1-0ubuntu1   Version table:  *** 1:4.9.1-0ubuntu1 0         500 http://au.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages         100 /var/lib/dpkg/status      1:4.9-20140406-0ubuntu1 0         500 http://au.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


I'm creating a plugin for JavaScript, and I want to add usable methods to it. (ex. myPlugin.usefulMethod()) The way I would do it is as follows:  function MyPlugin(param1, param2) {     ...      this.usefullMethod = function() {...};      this.anotherUserfullMethod = function(someParam) {...}; }  var plugin1 = new MyPlugin(someParam1, someParam2); plugin1.usefullMethod();   But I've see a lot of plugin create their methods like this:  function MyPlugin(param1, param2) {     ... } MyPlugin.prototype.usefullMethod = function() {...};  MyPlugin.prototype.anotherUserfullMethod = function(someParam) {...};   Which is the correct way, and why? What's the difference between them?

What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something };


Hoping someone can help me here, We are a supplier of Kids Ride on cars and we are looking to provide personalised Numberplates for our ride on car range.  We had a supplier which made these and they were like a laminated sticker but could be fully customised. I guess we could make a template in excel or photoshop but need to know what type of printer and stickers we would need? They need to be professional looking and need to be suitable for outdoor use. Any suggestions will be greatly appreciated. Thanks.

I am trying to find sites that can create one(or two)-off stickers/vinyls that are transparent. From what I am getting is that it may not be profitable enough to make it worth the company's time but if they did one-off batches (multiple client) would it not be possible to be worthwhile?  I was looking at  but the best I can do for transparent ones is $20 a page/unique sticker (which comes out to 8 copies of one sticker in my case). All I'm hoping for is to get two different stickers printed for some hobby projects but the cost is significant compared to the rest of the project and if I need more one-offs it just doesn't seem practical.  Did I hit a gap where it's not practical for me at one end and not practical for the business at the other?  Am I going the wrong route? Is there a better alternative for putting graphics on hobby projects? I am creating/fixing a few guitar pedals and would like to be able to put some basic graphics and text on the face of them  PS: If you know where I can get one-offs you can post those in the comments below my question  Note: Added some more context to what I am doing


I have written a batch class that updates a field on Case object with the owner name which is assigned by Case assignment rule. When I try to test this batch class, a part of the code which runs after case history retrieval , is not covered. Could it be because of the delay in case assignment rule that there is no history record? How to overcome this issue? Any suggestions appreciated.

I have some code that relies on field history tracking by querying the History for a custom object. This works fine, but it appears that the history records aren't created during the test so none of my tests will pass.


I have a .h and .cpp file Foo.h template<typename T> class Foo { public:   void g();   void h(); };  Foo.cpp #include <iostream> #include "Foo.h" template<typename T> void Foo<T>::g() {   std::cout << "Foo<T>::g()\n"; } template<typename T> void Foo<T>::h() {   std::cout << "Foo<T>::h()\n"; }  The above two files are in abc/def directory and I have the implementation in a different cpp file Foo-impl.cpp #include <../../Foo.cpp> template class Foo<int>;  This Foo-impl.cpp is in abc/ghi/jkl directory. But when I use #include <abc/def/Foo.cpp I get an error saying that the file doesn't exist. But when I use #include <abc/def/Foo.h>, I don't get file doesn't present erro (the file is identified by the compiler) but I get linker error. I am using the implementation as per  Why does it work with <../../Foo.cpp> and why not with <abc/def/Foo.cpp. How should I make it work ?

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I've been looking for over 10 minutes and I can't find where to do this. Where can I change my password?

I would like to change my password.  I have followed the instructions in  but I cannot find the "my logins" hyperlink.


Let $f:(X,d)\rightarrow(Y,d)$ be a map of metric spaces. Let $f$ be locally Lipschitz, that is, for each $x\in X$ then there exist an open ball $B_x$ containing $x$ and a constant $L_x$ such that $d(f(x),f(y))\leq L_xd(x,y)$ for all $x,y\in B_x$. Prove that if $X$ is compact then $f$ is Lipschitz. My work: let $\{B_x :x \in X\}$ is a open cover of $X$. Since $X$ is compact the open cover admits a finite subcover. Let $L_j$ be the Lipschitz constant corresponding to $B_j$. Now my instinct tells me that I have to take the maximum of such constant. But it does not complete the proof. So I think I am missing some step. I need help to really understand this.

If $f$ is locally Lipschitz on $X$ and $X$ is compact, then $f$ is Lipschitz on $X$.  My proof: Since $f$ is locally Lipschitz on $X$, for each $x ∈ X$ there exists an open $B_x$ containing $x$ such that $f$ is Lipschitz on $B_x$. Consider the collection of all such $B_x$. This collection forms an open cover of $X$ and so there is a finite sub-collection $\{B_1, B_2, . . . , B_n\}$ which also covers $X$, since $X$ is compact. Since $f$ is Lipschitz on each $B_i$, there is an $B_i$ such that $d(f(x_i), f(y_i)) \leq M_i d(x_i, y_i)$ for all $x_i, y_i \in Wi$, for $i ∈ \{1, 2, . . . , n\}$. Then taking $B = max\{B_1, B_2, . . . , B_n\}$, we see that $f$ is Lipschitz on $X$.  Is my solution correct?   Can we use the fact of compact metric space that every sequence in $X$ has a convergent sub-sequence to prove the same fact??


I know how to write the composition of two functions: $f\circ g$ but I don't know whether there's a standard symbol for a sequence (similar to $\sum_i{f_i}$, $\prod_i{f_i}$ or $\bigotimes_i{f_i}$, etc.).  How would you write it?  edit: Would you understand $\bigcirc_i{f_i}$ without explanation?

I have a repeated composition of functions ${T_n}(z) = {\tau _0} \circ {\tau _1} \circ {\tau _2} \circ  \cdots  \circ {\tau _n}(z)$  By analogy with $\sum\limits_{i = 1}^n {} ,\prod\limits_{i = 1}^n {} ,\bigcup\limits_{i = 1}^n {} ,\bigcap\limits_{i = 1}^n {} ,$ I want to write ${T_n}(z) = \left( {\mathop  \circ \limits_{i = 0}^n {\tau _i}} \right)(z)$ or even ${T_n}(z) = {\mathop  \circ \limits_{i = 0}^n {\tau _i}} (z)$. Can I do this?


I have a number of domains that I need to match on different websites. These websites are hosted on virtual machines that run on a dedicated server in the office where I work. The connection with the outside is on a single network interface (the only public IP), that is that of the router. Network traffic management takes place on a server running Zentyal 6.2 located in a DMZ. The goal would be to direct the various domains to the external IP and then make sure that they reach the VM with the corresponding site (each is configured with its fixed IP accessible to the LAN). Here are the things I've already tried with no success:  I redirected each domain on the IP specifying a port which I then forwarded to the corresponding VM (port forwarding). ex:  external_ip:15000 -> 10.1.1.1 (vm with site 1)  external_ip:16000 -> 10.1.1.2 (vm with site 2) I have configured the DNS of the domains on the external IP and I have made a port forwarding of all traffic to port 80 (or 443) of the VM; this solution is not good because I was unable to choose which VM to direct traffic to. I have configured the DNS of the domain as above but I have tried to use the Zentyal server as "local DNS server", it did not work but I don't know if because I have configured it wrong or simply because it is not a viable possibility.  The websites are of different nature (django sites, nextcloud, ...). I have read about the possibility of using Apache VirtualHosts but I have no idea how to use them in my case.

Is it possible to tell your router to redirect specific domains to a specific IP? The router is an Airport Extreme, unfortunately. If it can't be done with this specific router, is there another way to achieve this?


Is there any possibility to remove jquery.js and jquery-migrate.min.js scripts from render blocking resources? I see this error only on mobile, not on desktop. Scores in Google Page Speed Insights are hight, I know that is unnecessary but if there is any way I want to try...

this is my first time to try this "Defer Parsing" thing, and I don't really have an idea how to do it.    Using PageSpeed tool, I found out that one of the reason why my page is loading too slow (currently 92/100) are the scripts. And the PageSpeed suggested that I need to Defer Parsing all those scripts.  Is there anyone that can help me with this. Thanks.


I sometimes say something wrong in English and I figure out myself it was wrong or I can guess from people's reaction.  If I want to ask them what's the correct way to say it, is it ok to say:     Should I have say "fixed sentenced" instead ?   Example:     Me: What time have it ?       My friend: ...oh 4pm!       Me: Should I have say "What time is it?" instead

Being an English language learner for about 30 years, I still make mistakes. In a written language, when I have misspelled and noticed it in a timely manner, I simply navigate to a wrong word and edit it.  However, in a spoken conversation, when I use a wrong word, I must stop and correct myself by saying a correct one. I've seen many ways to do that, but I'm still not sure which one to use:  He's going to school...   ...er... she's going; ...sorry, I mean, she's going; ...oops, she's going; ...I'm sorry, let me restate it from the beginning, she's going;   What is the grammatical and polite way to correct myself in a spoken conversation? Let's stick to a formal/business context if it matters.  Also, what part of a sentence should I repeat to make it clear?


I need your help with the following task. I am in possession of a list as follows: a=[1,2,3,4,5,6,7,8,9]  I would now like to extract a total of 3 numbers for each run, e.g. with the help of a for-loop. For this I want to use the indices. The For-loop should start at the index 0 and go to 2 and then pack it into a and pass it on a total of three times... for i in a[0:9:3]:  In the output according to my example above, it would then have to make as many passes as possible and output the following: 1 2 3 ----------------------- 4 5 6 ---------------------- 7 8 9

I have a Python script which takes as input a list of integers, which I need to work with four integers at a time.  Unfortunately, I don't have control of the input, or I'd have it passed in as a list of four-element tuples.  Currently, I'm iterating over it this way: for i in range(0, len(ints), 4):     # dummy op for example code     foo += ints[i] * ints[i + 1] + ints[i + 2] * ints[i + 3]  It looks a lot like "C-think", though, which makes me suspect there's a more pythonic way of dealing with this situation.  The list is discarded after iterating, so it needn't be preserved.  Perhaps something like this would be better? while ints:     foo += ints[0] * ints[1] + ints[2] * ints[3]     ints[0:4] = []  Still doesn't quite "feel" right, though.  :-/ Related question:


I have a user input variable containing the string in the format: "domain\alias" and I need to split this in two different strings: domain and alias.   I heard somewhere about conversion of strings to literals but I don't understand how that will help me here.

How do you split a string?  Lets say i have a string "dog, cat, mouse,bird"  My actual goal is to insert each of those animals into a listBox, so they would become items in a list box.  but i think i get the idea on how to insert those items if i know how to split the string. or does anyone know a better way to do this?  im using asp c#


In the up is italicized to the right. Is there any way in photoshop to straigten this image ?

I want to display a text like it is written on some surface like notebook page or wall via Photoshop CS6. I added two example.   This image seems like image distortion:    And this image looks like text distortion:    I tried this with distort and skew transformation but I'm unable to get this much clear & real effect.