Running GUI app on startup Lubuntu LiveCD
How to add startup applications in lubuntu?
Been looking to pivot rows (progress_check) into columns check 1, check 2 etc... No sum or totals required, just to display the results hopefully... Can anyone help, Thanks Ad Wikipedia says that the name of concept comes from physics, but I cannot find any similarity between these two concepts. Which is correct?     Everyone were convinced that he would go to the game.   Everyone was convinced that he would go to the game.   I think it's "was", because "everyone" is singular, but I just wanted to check. Run command on another(new) terminal window What's the best way to store class variables in PHP? I currently have my PHP class variables set up like this:  class someThing {      private $cat;     private $dog;     private $mouse;     private $hamster;     private $zebra;     private $lion;      //getters, setters and other methods }   But I've also seen people using a single array to store all the variables:  class someThing {      private $data = array();      //getters, setters and other methods }   Which do you use, and why? What are the advantages and disadvantages of each? Total order on complex numbers While trying to create a custom business rule using Apex I got the error:  INVALID_ID_FIELD, SaveAsActivity is not allowed with whatId that is not supported as a task whatId.  ...and found out that it was caused by the method setSaveAsActivity on my code, that was like:  msg.setSaveAsActivity(true); // "msg" is a SingleEmailMessage   What am I doing wrong here? What I am working with: I am running my self-made Arduino board (in the sense that I use the Arduino bootloader and code editor) at 3.3V, and powered from a Lithium ion battery, which is USB-charged by a corresponding Microchip charger IC.  What I am trying to achieve: I want to measure battery capacity once every minute or so. I have an LCD attached, so the idea is that the overall setup lets me know how the battery is doing at a given moment. The datasheet of the battery has a voltage versus discharge-level curve, and so by measuring the voltage of the battery, I can estimate the remaining capacity (very roughly but enough for me!).  What I did:   (EDIT: Resistor values updated and P-MOSFET switch added based on @stevenvh and @Jonny's suggestions).  I connected a voltage divider from the battery V_plus, with the larger "portion" going to an analog-read-pin (i.e., ADC) on the Arduino/Atmega chip. The divider is 33 KOhm-to-10 KOhm, thus allowing measurement up to 4.1 Volts maximum of the Li-ion battery from my 3.3V level microcontroller. Also, using one of the I/O pins connected to an n-channel MOSFET, I can switch the current through the divider only when I need the measurement. Here is a rough schematic (updated for a 2nd time based on suggestions of @stevenvh and @Nick):     My question:   How is my current setup? My only constraints are: (1) I would like to make a rough measurement of the battery capacity based on the voltage reading, as described above. (2) I would like to prevent the voltage divider from interfering with my charging IC's reading of battery presence (in my original setup, the divider sometimes caused the IC to misread presence even when the battery was absent). Visual Studio C# statement collapsing When editing really long code blocks (which should definitely be refactored anyway, but that's beyond the scope of this question), I often long for the ability to collapse statement blocks like one can collapse function blocks.  That is to say, it would be great if the minus icon appeared on the code outline for everything enclosed in braces.  It seems to appear for functions, classes, regions, namespaces, usings, but not for conditional or iterative blocks.  It would be fantastic if I could collapse things like ifs, switches, foreaches, that kind of thing!  Googling into that a bit, I discovered that apparently C++ outlining in VS allows this but C# outlining in VS does not.  I don't really get why.  Even notepad++ will so these collapses if I select the C# formatting, so I don't get why Visual Studio doesn't.  Does anyone know of a VS2008 add-in that will enable this behavior?  Or some sort of hidden setting for it?  Edited to add: inserting regions is of course an option and it did already occur to me, but quite frankly, I shouldn't have to wrap things in a region that are already wrapped in braces... if I was going to edit the existing code, I would just refactor it to have better separation of concern anyway. ("wrapping" with new methods instead of regions ;) Spaces in files names in \input or \includegraphics I'm going crazy...  I have a file I want to include which path is C:\Users\Matthieu\Documents\Folder withOneSpace\myFile.tex. (As you can see with the \, I'm on windows actually)  I tried the following but none works:  \input{C:/Users/Matthieu/Documents/Folder withOneSpace/myFile} \input{C:/Users/Matthieu/Documents/Folder\ withOneSpace/myFile} \input{C:/Users/Matthieu/Documents/Folder withOneSpace/myFile.tex} \input{C:/Users/Matthieu/Documents/Folder\ withOneSpace/myFile.tex}   I also tried to put the file out of the folder with a space and it works (no surprise):  \input{C:/Users/Matthieu/Documents/myFile} --&gt; Works   All I found is to put a \ before the space but it doesn't work at all. --> Please help ! :) When do you use the "this" keyword? I was curious about how other people use the this keyword. I tend to use it in constructors, but I may also use it throughout the class in other methods. Some examples:  In a constructor:  public Light(Vector v) {     this.dir = new Vector(v); }   Elsewhere  public void SomeMethod() {     Vector vec = new Vector();     double d = (vec * vec) - (this.radius * this.radius); } Let $E$ be a finite dimensional vector space over field $\mathbb R$ with $E^*$ as the dual space of $E$.($\dim E=n$)   $\Omega^P(E):=\{ \alpha\colon \overbrace{E\times\cdots\times E}^{p- times}\rightarrow \mathbb R\  \ , \alpha \text{ is alternating multilinear map}\}$ $\Omega^P(E^*):=\{ u\colon \overbrace{E^*\times\cdots\times E^*}^{p- times}\rightarrow \mathbb R\  \ , u \text{ is alternating multilinear map}\}$  I wish to prove that there exist an $\textbf{unique}$ bilinear form $B\colon \Omega^p(E^*)\times\Omega^p(E)\rightarrow\mathbb R$   such that for all $ f_i\in E^* \ , u_j\in E^{**}\simeq E \qquad  i,j=1,\cdots,p$, it has the following rule:  $B(u_1\wedge\cdots\wedge u_p,f_1\wedge\cdots\wedge f_p)=\det[f_i(u_j)]$.  $\wedge$ is wedge product between alternating maps i.e. $\alpha\wedge\beta(v_1,\cdots,v_{p+p})=\dfrac{1}{p! p!}\displaystyle\sum_{\sigma\in S_{p+p}}sign(\sigma)\alpha(v_{\sigma(1)},\cdots,v_{\sigma(p)})\beta(v_{\sigma(p+1)},\cdots,v_{\sigma(p+p)})$  How can I do this? Why $\sqrt{-1 \cdot {-1}} \neq \sqrt{-1}^2$? I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &amp;= i \\\\\ \frac1{\sqrt{-1}} &amp;= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &amp;= \frac1i \\\\  \sqrt{\frac1{-1}} &amp;= \frac1i \\\\  \sqrt{\frac{-1}1} &amp;= \frac1i \\\\  \sqrt{-1} &amp;= \frac1i \\\\  i &amp;= \frac1i \\\\  i^2 &amp;= 1 \\\\  -1 &amp;= 1 \quad !!? \end{align} Let $(x_n)$ be a sequence of real numbers.  Prove that if there exists $x$ such that every subsequence $(x_{n_k})$ of $(x_n)$ has a convergent (sub-)subsequence $(x_{n_{k_l}})$ to $x$, then the original sequence $(x_n)$ itself converges to $x$ .              Thanks for any help. Why do two bodies of different masses fall at the same rate (in the absence of air resistance)? System.FinalException: Record is read-only: Trigger.updateCompetitors: line 24 How do I put big brackets under different parts of an equation to attach text labels? How do I put big brackets under different parts of an equation so that I can write, e.g., text specific to these parts? For example: f =  x^3 +  2     |___|  |__|        |     |    text 1  text 2 When should I use a struct rather than a class in C#? Does taking levels in a prestige class cause XP Penalty? How do you persuade an organization to value UX? UX is such an underrated field in a lot of industries. I wonder how companies consider employing UX designers and even heavily valuing their suggestions. Some big companies happen to see the light and invest in UX, and that keeps them on top of others. However, UX people rarely make it to the top management. In Don Norman's talk (  ), out of so many UX people (I don't know exactly), only two were vice presidents. I assume that there are even less influential UX designers in developing countries, and that's what makes it even harder for people like me. In the same talk, Don Norman suggested that UX designers should approach their executives like marketing people, showing how investing in something will affect profit. Perhaps, it's the best thing to do but it has to be mastered for it to be executed successfully.   I'm a fresh grad and am looking for a job. I think, working for a company with a more conventional job description would be the way to go. When I'm already influential enough, I'll go up to the executives and show them how UX will improve sales (in whatever industry it is. I just want to do UX)  Do you do UX as consultants or are you employed? How do you persuade companies to invest in UX? Are you lucky enough to be employed by people who you didn't have to persuade to value UX?