I have a computer with a self Encrypted Drive (a hard drive with an AES encryption chip that requires login at boot to decypher the disk, that way it is hardware encrypted which "in theory" means zero speed loss.) On Windows, you can suspend the computer and windows will start back, but on Ubuntu, when the computer is suspended, I can start it back on RAM, but no HDD access is allowed (probably because the hard drive is locked or encrypted)  After searching through the web for that question, the only answer I found was : Use Hibernate. Indeed, when you hibernate you have to boot the computer back up which prompt the HDD login.  My question is what is the difference between windows and linux ? Why would suspend lock the disk ?  And then, what/where should I look for a way to get that to work ?   Thanks !!
I have asked this question before ( and  )  My problem is that my Self Encrypted Disk (SED) have to NOT spin down even on suspend!  I have tried , but it did not work and the disk spin downs anyway !  The problem is that if the disk spins down, because it is on suspend, it does not show the "de encryption" prompt, and boots back up on RAM, but crashed due to IO error on the disk! (that's what the disk is suposed to do !)  Anyone on how to NOT (as in NEVER) spin down a HDD ? (yes this goes against all logic but this particular case)   Thanks a lot !  Would that be useful ?   sudo hdparm -I /dev/sda [sudo] password for xqua:   /dev/sda:  ATA device, with non-removable media     Model Number:       ST500LT015-9WU142                            Serial Number:      W0VBZQQ7     Firmware Revision:  0001SDM7     Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6 Standards:     Used: unknown (minor revision code 0x0029)      Supported: 8 7 6 5      Likely used: 8 Configuration:     Logical     max current     cylinders   16383   16383     heads       16  16     sectors/track   63  63     --     CHS current addressable sectors:   16514064     LBA    user addressable sectors:  268435455     LBA48  user addressable sectors:  976773168     Logical  Sector size:                   512 bytes     Physical Sector size:                  4096 bytes     Logical Sector-0 offset:                  0 bytes     device size with M = 1024*1024:      476940 MBytes     device size with M = 1000*1000:      500107 MBytes (500 GB)     cache/buffer size  = 16384 KBytes     Form Factor: 2.5 inch     Nominal Media Rotation Rate: 5400 Capabilities:     LBA, IORDY(can be disabled)     Queue depth: 32     Standby timer values: spec'd by Standard, no device specific minimum     R/W multiple sector transfer: Max = 1   Current = 1     Advanced power management level: 254     Recommended acoustic management value: 208, current value: 0     DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6           Cycle time: min=120ns recommended=120ns     PIO: pio0 pio1 pio2 pio3 pio4           Cycle time: no flow control=120ns  IORDY flow control=120ns Commands/features:     Enabled Supported:        *    SMART feature set        *    Power Management feature set        *    Write cache        *    Look-ahead        *    Host Protected Area feature set        *    WRITE_BUFFER command        *    READ_BUFFER command        *    NOP cmd        *    DOWNLOAD_MICROCODE        *    Advanced Power Management feature set             Power-Up In Standby feature set        *    SET_FEATURES required to spinup after power up             SET_MAX security extension        *    48-bit Address feature set        *    Device Configuration Overlay feature set        *    Mandatory FLUSH_CACHE        *    FLUSH_CACHE_EXT        *    SMART error logging        *    SMART self-test        *    General Purpose Logging feature set        *    WRITE_{DMA|MULTIPLE}_FUA_EXT        *    64-bit World wide name        *    IDLE_IMMEDIATE with UNLOAD        *    Write-Read-Verify feature set        *    WRITE_UNCORRECTABLE_EXT command        *    {READ,WRITE}_DMA_EXT_GPL commands        *    Segmented DOWNLOAD_MICROCODE        *    Gen1 signaling speed (1.5Gb/s)        *    Gen2 signaling speed (3.0Gb/s)        *    Native Command Queueing (NCQ)        *    Host-initiated interface power management        *    Phy event counters        *    Idle-Unload when NCQ is active             Device-initiated interface power management        *    Software settings preservation        *    SMART Command Transport (SCT) feature set        *    SCT Write Same (AC2)        *    SCT Features Control (AC4)        *    SCT Data Tables (AC5)             unknown 206[12] (vendor specific)        *    reserved 69[4]        *    reserved 69[7] Logical Unit WWN Device Identifier: 5000c5006a036439     NAA     : 5     IEEE OUI    : 000c50     Unique ID   : 06a036439 Checksum: correct
Mobile phones and mobile internet in Italy Buongiorno! Suppose I step down from the plain in Fiumicino. What is the fastest way to get hold of Italian SIM-card with some talking minutes and some Internet? The latter is more important than the former.  So, my requirements:   Good coverage in main cities (Rome, Venice, Milan, Florence) Good for 2 weeks (after that I'm going to leave the country, the SIM is going to lose its value anyway) Good for massive internet usage is in store for maps, orientation, etc. Cheap. :)   Now, I know that there are 3 main communication providers in Italy: Vodafone, Wind and the third one. :) Which one? Which one won't leave me destitute and won't sue me over the border months after for some unknown reasons? What I have to look for? A rearrangement of an absolutely convergent complex series is also absolutely convergent I just completed the following proof.  Is it valid?   Let $\sum_{k=1}^{\infty} a_k$ be an arbitrary convergent series that also converges absolutely.  Then $\sum_{k=1}^{\infty} a_k \in \mathbb{C}$ and $\sum_{k=1}^{\infty} |a_k| \in \mathbb{R}$. Let $\{b_k\}$ denote a rearrangement of the $\{a_k\}$.  That is, we have that $\{a_k\} = \{b_k\}$ yet $a_i = b_i$ needn't hold. We will first show that $\sum_{k=1}^{\infty} b_k$ converges absolutely (immediately implying it converges non-absolutely).  We will use the Cauchy Criterion on the partial sums of $\sum_{k=1}^{\infty} |b_k|$ to demonstrate this. First let $\epsilon &gt; 0$. Consider that since $\sum_{k=1}^{\infty} |a_k| \in \mathbb{R}$, we have that $\exists N_1 \in \mathbb{N}$ s.t. for all $N_1 &lt; m &lt; n$ we have   $$ \sum_{k=m}^n |a_k| \le \epsilon. $$ Now let $0 &lt; N_2$ be large enough s.t $\{a_1, \ldots , a_{N_1}\} \subseteq \{b_1, \ldots , b_{N_2}\}$.  Let $M &gt; max\{N_1, N_2\}$.  Let $M &lt; m' &lt; n'$.  Then since $\{b_k\} - \{b_1, \ldots , b_{m'}\} \subseteq \{a_{N_1}, a_{N_{1}+1},  a_{N_{1}+2} \ldots\}$, we will have that   $$ \sum_{k=m}^n |a_k| \le \epsilon \implies \sum_{k={m'}}^{n'} |b_k| &lt; \epsilon. $$ Then we have that   $$ \left| \sum_{k={m'}}^{n'} |b_k| \right| = \sum_{k={m'}}^{n'} |b_k| &lt; \epsilon $$  so that since $\epsilon$ was arbitrary, we have obtained that   $$ \left| \sum_{k=1}^n |b_k| - \sum_{k=1}^m |b_k|  \right| = \left| \sum_{k=m}^n |b_k|  \right| \rightarrow 0 $$  so that via the Cauchy Criterion for Convergence  we have that $\sum_{k=1}^{\infty} |b_k|$ converges to some  value in $\mathbb{R}$ as desired. Then it follows that $\sum_{k=1}^{\infty} b_k$ is absolutely convergent (and hence also just convergent).   $\square$ If friction acts on car all time, why is it not accelerating forever? In the first gear, slowly releasing my clutch i push the gas pedal to the maximum torque level, say at 2000 rpm. Now as the engine torque is acting on the wheel, friction helps the car to accelerate.   If i hold the gas pedal at that position, the torque should continuously act on the wheel and the car should increase speed forever. But in reality even if we put the gas pedal at the max.torque rpm range in first gear it speeds up to certain wheel rpm (say 500rpm) and it stays there only. Why? Possible Duplicate:          Well, the question is in the title. I always had the impression that "talk to someone" refers to situations when some information must be conveyed to someone else, while "talk with someone" refers to cases that involve a more complex two-sided interaction. E.g., I "talk to my colleague" to tell him that I'm going for a lunch break (no response is required apart from maybe an acknowledgment), while I go and "talk with my colleague" if I have to discuss something with him in detail. Is this correct, or is there any difference between the two phrases, or is there no difference at all? download file on form submission I have created a form which has only a submit button. In the submit function I am generating csv file and saving it to the files folder using fputcsv function.  But Now I need extra functionality of submit. After saving the file it should download the file also.  How to do this? Any one have some idea about this? Summarizing flatness of county with statistic Elevation variance per square mile I need to classify every county in the US as either hilly, moderately hilly, or flat. Accuracy is not critical, just a rough classification. I used R and followed the advice in  answer to import elevation and counties and calculated the zonal variance. This was inherently biased towards larger counties since they have more surface for hills, so I need to divide by area. If I divide variance by square miles does that reasonably represent hilliness? The preliminary results seem decent, with the highest values being places like Colorado, Hawaii, Montana, etc. Mean or sum of gradients for weight updates in SGD Diagram Software I study computing on an advanced level and I need a program that will make it easier to create flowcharts and other diagrams efficiently. I don't need too many features; I just want something that works! I'm aware that there are many website that do exactly what I need but most of the times when I need to draw diagrams I don't have access to the internet Could a ship equipped with Alcubierre drive theoretically escape from a black hole? Could a ship equipped with Alcubierre drive theoretically escape from a black hole?  Also, could it reach parts of the universe that are receding faster than the speed of light from us? How to change a default application in Ice Cream Sandwich? I used the ADWLauncher EX by default while having Gingerbread 2.3.6.  Today I have manually updated my Nexus S to Ice Cream Sandwich 4.0.3, and I wanted to give the new default launcher a shot, but I cannot find anymore where to select / forget the default application for an action.  I've turned the settings of my phone inside out, googled and crawled the forums, but without success. If anybody can tell me how to change a default application in ICS, I'd be grateful!      Yeah, I never thought I'd want to see that Complete action using... window again! :D Showing $\int_{\mathbb R} \mid F(x)-G(x)\mid dx = \int_0^1 \mid F^{-1}(u)-G^{-1}(u)\mid du$ with $F$, $G$ CDF functions Let's $X$ and $Y$ have CDF functions admitting moment of order $1$. Let's be $F$ cdf of $X$ and $G$ cdf of $Y$.  I want to show that $$\int_{\mathbb R} \mid F(x)-G(x)\mid dx = \int_{0}^{1} \mid F^{-1}(u)-G^{-1}(u)\mid du\,.$$ Replace HTML page with contents retrieved via AJAX I have an HTML page with a typical structure:  &lt;html&gt;   &lt;head&gt;    &lt;script src="..." &gt;&lt;/script&gt;    &lt;style&gt;...&lt;/style&gt;   &lt;/head&gt;   &lt;body&gt;    content   &lt;/body&gt;   &lt;script&gt;     var success_callback = function(data) {       // REPLACE PAGE CONTENT &amp; STRUCTURE WITH "data"     }     ajax(url, params, success_callback);   &lt;/script&gt; &lt;/html&gt;   Do you think it is possible ?  I've already tried to give the html tag an id and doing $(id).replace(data); with no success.  Don't ask me why, but that is what I need (I'm working with a special "mashup builder" site... it is a long story).  EDIT : I forgot to say that scripts in the received content have to be executed, even external scripts included using &lt;script src="..."&gt;. How to delete an element from an array in C# Lets say I have this array,  int[] numbers = {1, 3, 4, 9, 2};   How can I delete an element by "name"? , lets say number 4?  Even ArrayList didn't help to delete?  string strNumbers = " 1, 3, 4, 9, 2"; ArrayList numbers = new ArrayList(strNumbers.Split(new char[] { ',' })); numbers.RemoveAt(numbers.IndexOf(4)); foreach (var n in numbers) {     Response.Write(n); } Options to move the school rucksack during the trip Finding $\int x^xdx$ I'm trying to find $\int x^x \, dx$, but the only thing I know how to do is this:  Let $u=x^x$.  $$\begin{align} \int x^x \, dx&amp;=\int u \, du\\[6pt] &amp;=\frac{u^2}{2}\\[6pt] &amp;=\dfrac{\left(x^x\right)^2}{2}\\[6pt] &amp;=\frac{x^{2x}}{2} \end{align}$$  But it's certain that this isn't the correct way to evaluate that, and the answer must be wrong. Why is there no option to login as root? Why does Ubuntu not allow the GUI users to login as root at the time of system start up like administrator in Windows?  Why they are restricting us to login only through the terminal? What determines the direction of precession of a gyroscope? I understand how torque mathematically causes a change to the direction of angular momentum, thus precessing the .  However, the direction, either clockwise or counterclockwise, of this precession seems to me a bit arbitrary beyond mathematical definitions. (What if torque were defined by a "left hand rule", for example?).  What's the fundamental physical reason that the precession of a gyroscope would be directed in a certain direction? Python, Unicode, and the Windows console Suppose I have a node in the shape of a circle. How can I make its border thicker?   \node[circle, draw=blue!80, inner sep=0pt, minimum size=12pt] (1) at (0,0) {1}; Debugging using Nvidia Nsight 2.2 in Visual Studio 2010