I recently migrated from Ubuntu 12.04LTS to 14.04 LTS .I had issues with my 12.04 so I did a factory restore and then upgraded to 14.04.My system is upgraded to 14.04 with no issues but The first thing I see is after restarting a pop up comes system problem detected.If I cancel it I don't see any issues,however the real problem is when I try to install nodejs using the below link---  curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -   then I see some weird erros---------  Fetched 23.7 MB in 23s (1,028 kB/s)                                             W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources  Hash Sum mismatch W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages  Hash Sum mismatch W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages  Hash Sum mismatch E: Some index files failed to download. They have been ignored, or old ones used instead.   I did try with below solution  sudo rm -vf /var/lib/apt/lists/* but it again gives this error rm: cannot remove ‘/var/lib/apt/lists/partial’: Is a directory  Please help me on this as I am struggling with this.
When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead.
Map "Super+ArrowDown" to minimize a window while the window is focused & the window is not in fullscreen I would like to add a conditional key mapping to Ubuntu 19.10.   Normally when a window is in full screen mode and you press super+arrowDown it enters window mode (or whatever it is called).   When a window now is in "window mode" I would like to be able to minimise it (and only then) by using super+arrowDown on it.  Is it possible to create such a shortcut without affecting the mapping of super+arrowDown on full screen windows? What makes a DSLR better than a Point & Shoot? Why should I put up with the inconvenience of lugging around a DSLR?  They look cool, but is there more substance to it? I have some Python code that makes Raster Attribute Tables for GeoTiffs using GDAL.    In ArcGIS I can see these attribute tables fine and they behave how I like (as classifications) but in QGIS the whole concept of an attribute table seems to be missing.    Is there any way to access a RAT in QGIS? When and why should I use % !TEX TS-program and % !TEX encoding? adding a point in a manipulate command So assume $Y$ and $X$ are exponentially distributed with parameters $y_1$, and $x_1$ respecitively.  assume c is a constant.  I am having huge trouble to understand the integration of the following expression.  $P(Y&lt;c/u(X))$  $=\int_{t}^{\infty}f_X(x)\int_{0}^{c/u(x)}f_Y(y)dydx +\int_{0}^{t}f_X(x)\int_{c/u(x)}^{\infty}f_Y(y)dydx$  where t is the cross-point that $u(x)$ change sign    here $c/u(x)$ is given by the plot below, t is the point crossing the zero:   Confusion:   I don't understand the second integration of the second term "$\int_{c/u(x)}^{\infty}f_Y(y)dydx$", this isn't right because Y an X only defined for y>0, and x>0. So it's the first quadrant in this plot. Pygame - blitting from x and y cordinates of image My laptop running Windows 7 Ultimate (non OEM) died on me today and it has tonnes of stuff on it - my projects, Visual Studio and office installations, etc. etc.  I am getting a new laptop from somewhere and was wondering if I could just unplug the hard disk from my original (dead) machine and plug it into the new one.  I remember trying this once with Windows Xp (on a desktop) and the OS crashed on boot and I had to reinstall everything again.  I have read about  but by the looks of it, it can be used only when the host computer is alive and kicking -- which mine isn't.  My old laptop was a Compaq Pressario v3000 (3 years old) on an AMD and the new one is going to be a new dual core Intel HP laptop.  Any ideas?  Thanks! Unable to locate package There are many  about Unable to locate package.  For example : if user try to install package by using apt-get then the following error shown. (Here package is used only as example for displaying error message):  sudo apt-get install package Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package package   What does this error mean? How do I solve it?    provided General solution to understand and how to solve such type of error (which is helpful for new users that may unaware of repository-apt install mechanism)  Note : For resolving unmet-dependencies, visit: . How can I create a progress bar with bash?  This is my script :  #!/bin/bash  pass='number1 number12 number13 number14 number15 number16'  chk='number14'  for i in $pass ; do    if [ "$i" == "$chk" ]; then      echo ' Found ^_^'    else      echo 'loading 50%'    fi  done   I want to replace echo 'loading 50%' with anything to create an progress bar. I got a situation where i need to invoke future method from batch class. And i know that it is not possible to do. But there might be some workarounds to achieve it, right? And i dont want to invoke future method using shedule apex as my requirement will hit governor limits of "Total number of schedule jobs exceed". So i tried in below ways, but still fighting with same issue.  My design is  Scenario 1 :   Schedule Apex ===> 2. BatchClass (Runs every hour) (Generates a map with "N" records for every batch context, and passes it to Future method in an apex class)  ===> 3. Future method ( then it will login to a salesforce account and generates an attachment and sends an email to a corresponding email address) .   Scenario 2 :  Since, It is not possible to invoke future method from batch, i tried implementing an apex class with a normal static method  invoking future method and in a batch class, for every context i.e., execute() method, it will invoke a normal method which in turn invokes future method, but still got the same error      FATAL ERROR: Future method cant be called from future or Batch   ie.,   global class BatchClass implements Database.batachable&lt;Sobject&gt; {    global Iterable&lt;ScheduledReport__c&gt; start(Database.BatchableContext BC)  {         query=[];        return query;  }  global void execute(Database.BatchableContext BC, List&lt;ScheduledReport__c&gt; scope) {      FutureClass.normalMethod(mapRecords);   }    global void finish(Database.BatchableContext BC){   }  }   Future Class:   global class FutureClass {  global static void normalMethod(Map&lt;&gt; mapR) {      futureMethod(mapR);  }  @future(callout=true)  global static void futureMethod(Map&lt;&gt; m) {      //some code;   }  }   Scenario 3 :  Instead of invoking future class method from batch i tried updating list of records and done checkbox value to true and i've implemented after update event trigger to get the all the records in which checkbox values are true and from trigger i tried invoking future method , still didnt work , i got an error      FATAL ERROR: Future method cant be called from future or Batch   Please help me out.   Thanks ! is a wonderful freeware Windows swiss-army-knife for image viewing &amp; editing.  For me, the key features are fast viewing, simple editing (crop, contrast, brigthness, rotation, resampling), file operations (delete, copy to folder) and extended image information access (exif data) combined in the same interface. Versatile batch jobs are a very nice bonus.  But unfortunately IrfanView is for Windows only, and isn't . What would be the nearest equivalent for linux? I have been thinking about the following formulation of the Axiom of Choice.:     For any relation $R$, there is a function $H$, which is a subset of $R$, and such that $\operatorname{dmn}H=\operatorname{dmn}R$.   At first, it seemed surprising to me that this did not follow from Comprehension (i.e., from the schema  $\forall x_1, x_2, ..., x_n \forall C\exists B \forall x ( x \in B \Leftrightarrow x \in C \land \phi )$, where $B$ does not occur free in $\phi$).    I thought that for any relation, it seems that we should be able to define a subset of it with the same domain meeting a "functional condition".  But when I tried to do this, I couldn't.  However, I felt like I was getting close when I let $B$ be free in $\phi$, i.e., when I let myself say that $w$ is in $R$ and also anything in $H$ meets such and such conditions, where $H$ is the set (function) whose existence I'm trying to prove.    But my understanding is that Choice does not even follow from Naive Comprehension.  So, I wondered if someone could explain the following precisely.   Why does the above formulation of Choice does not follow from regular Comprehension? Why does it not even follow from Naive Comprehension (assuming that it does not)? Induced metric on a null hypersurface I had just arrived at the hotel, checked in and gotten into my room. Just as I was about to unpack, I noticed that one of my bags was missing. At first I thought I had left it back at the airport, but it turned out that I had left it on the taxi.  Here, what's the meaning and role of "just"?  Why do you guys input the word "just" here?  What exactly does the word do grammatically?   Could you help me? Labelling figures in the tikz package Consider the following piece of code, which uses the tikz-feynman package:  \usepackage{tikz-feynman, contour} \tikzfeynmanset{compat=1.1.0}  \begin{document} \begin{center}     \begin{tikzpicture}[baseline={(current bounding box.center)}]     \begin{feynman}         \diagram [vertical'=a to b] {             {   [edges={draw=none}]                 a -- b [label=0:\(\mu_{3}\)]                 -- c [label=-180:\(\mu_{4}\)]                 -- d [label=-180:\(\mu_{1}\)]                 -- a [label=0:\(\mu_{2}\)],             },             {   [edges={photon}]                 a -- ap [particle=\(p_{2}\)],                 b -- bp [particle=\(p_{3}\)],                 d -- dp [particle=\(p_{1}\)],                 c -- cp [particle=\(p_{4}\)],             },         };         \diagram* {             (c) -- [fermion] (b)                 -- [fermion] (d)                 -- [fermion] (a)                 -- (c),         };     \end{feynman}     \end{tikzpicture}     %     \feynmandiagram[baseline={(current bounding box.center)}, vertical'=a to b,] {         {   [edges={fermion}]             a -- b [label=0:\(\mu_{3}\)]             -- c [label=-180:\(\mu_{4}\)]             -- d [label=-180:\(\mu_{1}\)]             -- a [label=0:\(\mu_{2}\)],         },         {   [edges={photon}]             a -- ap [particle=\(p_{2}\)],             b -- bp [particle=\(p_{3}\)],             d -- dp [particle=\(p_{1}\)],             c -- cp [particle=\(p_{4}\)],         },     };     %     \begin{tikzpicture}[baseline={(current bounding box.center)}]     \begin{feynman}         \diagram [vertical'=a to b] {             {   [edges={draw=none}]                 a -- b [label=0:\(\mu_{3}\)]                 -- c [label=-180:\(\mu_{4}\)]                 -- d [label=-180:\(\mu_{1}\)]                 -- a [label=0:\(\mu_{2}\)],             },             {   [edges={photon}]                 a -- ap [particle=\(p_{2}\)],                 b -- bp [particle=\(p_{3}\)],                 d -- dp [particle=\(p_{1}\)],                 c -- cp [particle=\(p_{4}\)],             },         };         \diagram* {             (a) -- [anti fermion] (b)                 -- [anti fermion] (d)                 -- [anti fermion] (c)                 -- (a),         };     \end{feynman}     \end{tikzpicture}     \end{center} \end{document}   This piece of code draws the following figure:    I would like to label each figure. I do not want a caption, but just a label beneath each diagram. The label should say Diagram I, Diagram II, Diagram III.  How do I implement this into my code? Can a werewolf turn a muggle into another werewolf? Which Ubuntu repositories are totally safe and free from malware? Is it correct to say e.g. "I like your way of wearing" or "the way you wear looks perfect"?  Is it politely? Is it in use or not? May I use "the way you wear" referring to whole wearings including dress, scarf, hat, bracelet. jewellery, etc?  Thank you for your suggestions in advance. Let $f,g:X\to Y$ be maps of spaces such that $f\simeq g$. Is it true that the mapping cones $\operatorname{cone}(f)$ and $\operatorname{cone}(g)$ are homotopy equivalent?  Can we write down an explicit homotopy equivalence? It ought not to be too hard to get a map $\operatorname{cone}(f)\to \operatorname{cone}(g)$ from the existence of a homotopy $H:X\times I\to Y$, but I haven't been able to find a sensible candidate, despite trying for quite a while.