I have a few distros ISOs and I want to test them in a Live flash drive. They are Arch Linux, Damn Small Linux, Linux Lite, Porteus, Lubuntu 15.04 and Ubuntu 14.10. I can use Boot Disk Creator (default in Lubuntu) to create Lubuntu and Ubuntu Live USBs, but it does not work with other distros. I tried Universal USB Creator with Wine, but it doees not work properly. I searched and searched but I am not able to find a completely Ubuntu-supported creator, only Windows and Mac ones. Could you recommend me some programs? If possible, a .DEB file.
Is there a program that can make live USBs for any distro, iso, you get the point. I can only find ones that make live USBs for other linux distributions and none for anything else.
Problem:  Ajax suggest-search on [n] ingredients in recipes. That is: match recipes against multiple ingredients.  For instance: SELECT Recipes using "flower", "salt" would produce: "Pizza", "Bread", "Saltwater" and so forth.  Tables:  Ingredients [     IngredientsID INT [PK],     IngredientsName VARCHAR ]  Recipes [     RecipesID INT [PK],     RecipesName VARCHAR ]  IngredientsRecipes [     IngredientsRecipesID INT [PK],     IngredientsID INT,     RecipesID INT ]   Query:  SELECT     Recipes.RecipesID,     Recipes.RecipesName,     Ingredients.IngredientsID,     Ingredients.IngredientsName FROM     IngredientsRecipes      INNER JOIN Ingredients     ON IngredientsRecipes.IngredientsID = Ingredients.IngredientsID      INNER JOIN Recipes     ON IngredientsRecipes.RecipesID = Recipes.RecipesID WHERE     Ingredients.IngredientsName IN ('salt', 'water', 'flower')   I am currently constructing my query using ASP.NET C# because of the dynamic nature of the WHERE clause.  I bites that I have to construct the query in my code-layer instead of using a stored procedure/pure SQL, which in theory should be much faster.  Have you guys got any thoughts on how I would move all of the logic from my code-layer to pure SQL, or at least how I can optimize the performance of what I'm doing?  I am thinking along the lines of temporary tables:  Step one: SELECT IngredientsID FROM Ingredients and INSERT INTO temp-table  Step two: SELECT RecipesName FROM Recipes joined with IngredientsRecipes joined with temp-table.IngredientsID In various articles it is mentioned that for secure communications, the recommended key sizes are 128-bit key size for symmetric encryption (which makes it $2^{128}$ possible keys?) and 2048-bit key size for asymmetric encryption ($2^{2048}$ possible keys?).  Why do they differ so greatly? It seems like I am missing a very big part of the equation. What was Dumbledore's original wand made of? New Graphics Card Preventing Boot Up Why does boiling water in the microwave make a cup of tea go weird? When I boil water in the kettle, it makes a nice cup of tea.  Sometimes I need to use a microwave because a kettle isn't available.  I boil the water in the mug and it looks pretty normal, but when I drop in the teabag the water froths up and looks foamy.  I don't see what the chemical difference is here, so I assume it must be some physical difference.  I have noticed this with multiple types of tea and multiple microwaves, the results being consistent so it's not just a weird microwave or something like that.    What is the reaction here and how/why does it occur?  Here is a photo of the 'fizzy' looking tea just after dunking in the teabag. Why did the snake wink at Harry at the zoo? This is mostly a memory question - I'm having a hard time remembering this and I can't read the book right now.  On the first book, a snake at the zoo winks at Harry. For the sake of the question, we'll assume that snakes can in fact wink.  I have a fuzzy memory here - I think that it winked before Harry had any kind of interaction with the snake (was this before or after Harry broke the glass?)  So, why did the snake wink at Harry? Given that they had not met ever before.  I suppose that the only reason it would wink at Harry would be because it knows Harry can communicate with it. But this would imply that snakes are capable of sensing such ability on wizards - is there (other) evidence that this is true? Suppose $\int_{[a,b]}f=0,\text{ then }f(x)=0 \forall x\in[a,b]$ Let $a&lt;b$ be real numbers. Let $f:[a,b]\to\mathbb{R}$ be a continuous non-negative function. Suppose $\int_{[a,b]}f=0,\text{ then }f(x)=0 \forall x\in[a,b]$    Proof: Suppose for the sake of contradiction $\exists x_0\in[a,b] \text{ such that } f(x_0)= D&gt; 0$  Since the function is continuous at $x_0$, we have $$\forall \epsilon&gt;0, \exists \delta&gt;0 \text{ such that } |f(x)-f(x_0)|\leq\epsilon\text{ whenever } x\in[a,b]\cap(x_0-\delta,x_0+\delta)$$ choose $\delta=\delta_1$ such that $\epsilon=D/2$, then we can say: $$-D/2 \leq f(x)-f(x_0)\leq D/2$$ $$-D/2 \leq f(x) - D$$ $$f(x)\geq D/2&gt;0$$ This implies that $\int_{[a,b]\cap(x_0-\delta_1,x_0+\delta_1)}f &gt;0$  Now since $\int_{[a,b]} f = 0$. we have  $$\int_{[a,b]}f=\int_{[a,x_0-\delta_1]}f+ \int_{(x_0-\delta_1, x_0+\delta_1)} f + \int_{[x_0+\delta_1,b]}f=0$$ $$\int_{[a,x_0-\delta_1]}f+\int_{[x_0+\delta_1,b]}f&lt;-D/2,$$ but this is a contradiction since $f(x)\geq 0$ and hence $\int_{[a,x_0-\delta_1]}f+\int_{[x_0+\delta_1,b]}f\geq 0$  Is my proof correct? I really enjoyed that site. I've only posted on it once, but I enjoyed seeing other people's posts and appreciated reading about entrepreneurial dilemmas. Let $A$ be a non-empty set and $n$ be the number of elements in $A$, i.e. $n:=|A|$.  I know that the number of elements of the power set of $A$ is $2^n$, i.e.  $|\mathcal{P}(A)|=2^n$.  I came across the fact that exactly half of the elements of $\mathcal{P}(A)$ contain an odd number of elements, and half of them an even number of elements.  Can someone prove this? Or hint at a proof? In sysctl, the /proc/sys/net/ipv[46]/conf/ keys have the following subkeys: all, default, and a key for each network interface. For example, on a machine with a single network interface eth0, it will look like this:  iserv ~ # ll /proc/sys/net/ipv[46]/conf/ /proc/sys/net/ipv4/conf/: insgesamt 0 dr-xr-xr-x 0 root root 0 12. Sep 23:30 all/ dr-xr-xr-x 0 root root 0 12. Sep 23:30 default/ dr-xr-xr-x 0 root root 0 12. Sep 23:30 eth0/ dr-xr-xr-x 0 root root 0 12. Sep 23:30 lo/  /proc/sys/net/ipv6/conf/: insgesamt 0 dr-xr-xr-x 0 root root 0 12. Sep 23:30 all/ dr-xr-xr-x 0 root root 0 12. Sep 23:30 default/ dr-xr-xr-x 0 root root 0 12. Sep 23:30 eth0/ dr-xr-xr-x 0 root root 0 12. Sep 23:30 lo/   All the respective settings exist in each key separately. For example, if I want to disable IPv6 Router Advertisements with the accept_ra value, this value exists four times:  iserv ~ # sysctl -a 2&gt;/dev/null | grep "accept_ra " net.ipv6.conf.all.accept_ra = 1 net.ipv6.conf.default.accept_ra = 1 net.ipv6.conf.lo.accept_ra = 1 net.ipv6.conf.eth0.accept_ra = 1   My question now is: which of these values do I need to change? I figured all (to change all existing interfaces) and default (to change all new interfaces that may appear later), but changing these still leaves the value at 1 for lo and eth0:  iserv ~ # sysctl -w net.ipv6.conf.all.accept_ra=0 net.ipv6.conf.all.accept_ra = 0 iserv ~ # sysctl -w net.ipv6.conf.default.accept_ra=0 net.ipv6.conf.default.accept_ra = 0 iserv ~ # sysctl -a 2&gt;/dev/null | grep "accept_ra "   net.ipv6.conf.all.accept_ra = 0 net.ipv6.conf.default.accept_ra = 0 net.ipv6.conf.lo.accept_ra = 1 net.ipv6.conf.eth0.accept_ra = 1   Will the machine now accept Router Advertisements on eth0, or will it not? Printing pointers in C I was trying to understand something with pointers, so I wrote this code:  #include &lt;stdio.h&gt;  int main(void) {     char s[] = "asd";     char **p = &amp;s;      printf("The value of s is: %p\n", s);     printf("The direction of s is: %p\n", &amp;s);      printf("The value of p is: %p\n", p);     printf("The direction of p is: %p\n", &amp;p);      printf("The direction of s[0] is: %p\n", &amp;s[0]);     printf("The direction of s[1] is: %p\n", &amp;s[1]);     printf("The direction of s[2] is: %p\n", &amp;s[2]);      return 0; }   When compiling it with gcc I get these warnings:  $ gcc main.c -o main-bin -ansi -pedantic -Wall -lm main.c: In function ‘main’: main.c:6: warning: initialization from incompatible pointer type main.c:9: warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘char (*)[4]’ main.c:11: warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘char **’ main.c:12: warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘char ***’   (The flags for gcc are because I must be C89)  Why incompatible types of pointer? Isn't the name of an array a pointer to it's first element? So if s is a pointer to 'a', &amp;s must be a char **, no? And why do I get the other warnings? Do I have to cast the pointers with (void *) in order to print them?   And when running I get something like this:  $ ./main-bin The value of s is: 0xbfb7c860 The direction of s is: 0xbfb7c860 The value of p is: 0xbfb7c860 The direction of p is: 0xbfb7c85c The direction of s[0] is: 0xbfb7c860 The direction of s[1] is: 0xbfb7c861 The direction of s[2] is: 0xbfb7c862   How can the value of s and it's direction (and of course the value of p) be the same? My Ubuntu 12.04 was normally updated through the Update Manager, something about gtk. Then I rebooted and now all that shows after the splash screen is a blue screen that only shows the cursor. Is a DNA molecule a single strand of polynucleotide or two of them linked together? Since I started learning  and  last year, I've read a huge number of articles which insist that design patterns (especially in Java) are workarounds for the missing features in imperative languages. One article I found :     Most people I've met have read     by the Gang of   Four (GoF). Any self respecting programmer   will tell you that the book is   language agnostic and the patterns   apply to software engineering in   general, regardless of which language   you use. This is a noble claim.   Unfortunately it is far removed from   the truth.      Functional languages are extremely   expressive. In a functional language   one does not need design patterns   because the language is likely so high   level, you end up programming in   concepts that eliminate design   patterns all together.   The main features of functional programming (FP) include functions as first-class values, currying, immutable values, etc. It doesn't seem obvious to me that OO design patterns are approximating any of those features.  Additionally, in functional languages which support OOP (such as F# and OCaml), it seems obvious to me that programmers using these languages would use the same design patterns found available to every other OOP language. In fact, right now I use F# and OCaml every day, and there are no striking differences between the patterns I use in these languages vs. the patterns I use when I write in Java.  Is there any truth to the claim that functional programming eliminates the need for OOP design patterns? If so, could you post or link to an example of a typical OOP design pattern and its functional equivalent? The use of "were- should- had” at the beginning of sentences instead of “if” Conditionals in English are usually formed by using if with normal word order; but for the three past (subjunctive) forms were, should, and had, it is also possible to express the conditional through subject–auxiliary inversion alone, with no if in the conditional clause.  Does forming conditionals in this manner differ semantically from if-conditionals? Is some aspect of the conditional statement or the conditionality emphasised more in one version than in the other? Or are there differences in how and when they are used? Or are they simply completely interchangeable?  For example:     If I were you, I would try it again   Were I you, I would try it again      If I had seen it, I would have told you   Had I seen it, I would have told you      If you should drink, don’t get behind the wheel   Should you drink, don’t get behind the wheel Question: If $R$ is a finite boolean ring, then show $R \cong \mathbb Z_2 \times \mathbb Z_2 \times \cdots\times \mathbb Z_2$.   I know that   $\mathrm{char}(R) =2$  $R$ has $2^k$ elements for some $k$  (this is because, if $p\neq 2$ is a prime with $p\mid|R|$, then there exists a non-zero $x \in R$ s.t. $px=0$ and $p $ is odd $\implies x=0$, contradiction).   Does this suffice to answer my question? I recentely tried to log-in / sign-up for  using my SE account (which works on ,  and sign-up here) but it showed me an OpenID related error. (See below)  I could reproduce this error across multiple days and browser refreshes and using my other OpenID provider.  Error message (shown in red, obfuscated my e-mail address):  Unable to log in with your OpenID provider:  The openid.return_to parameter (http://area51.stackexchange.com/users/authenticate/?s=bd394805-cf55-4e8e-ad73-21485a09a989&amp;dnoa.userSuppliedIdentifier=https%3A%2F%2Fopenid.stackexchange.com%2Fuser%2F642b1038-5c91-40d4-83ab-eb92db46c3d1) does not match the actual URL (https://area51.stackexchange.com/users/authenticate/?s=bd394805-cf55-4e8e-ad73-21485a09a989&amp;dnoa.userSuppliedIdentifier=https%3A%2F%2Fopenid.stackexchange.com%2Fuser%2F642b1038-5c91-40d4-83ab-eb92db46c3d1&amp;openid.claimed_id=https%3A%2F%2Fopenid.stackexchange.com%2Fuser%2F642b1038-5c91-40d4-83ab-eb92db46c3d1&amp;openid.identity=https%3A%2F%2Fopenid.stackexchange.com%2Fuser%2F642b1038-5c91-40d4-83ab-eb92db46c3d1&amp;openid.sig=4emyzuA31ChHU0LabPGJXldbN8GeKN%2FFBJXJy69yD10%3D&amp;openid.signed=claimed_id%2Cidentity%2Cassoc_handle%2Cop_endpoint%2Creturn_to%2Cresponse_nonce%2Cns.alias3%2Calias3.mode%2Calias3.type.alias1%2Calias3.value.alias1%2Calias3.type.alias2%2Calias3.value.alias2&amp;openid.assoc_handle=hrQL%21IAAAAGzBtFeNGBLU2o04XSWr7ISRAbO-B2tZCK3L61IzAsuQQQAAAAEdoTN6rf9fqaP1oekJGXGXJeB8fNSVuByptp5yx1VpQbAzQwF6HJzh6a0DwedydNJ-wwpJQoN5dOLEFmndZt-L&amp;openid.op_endpoint=https%3A%2F%2Fopenid.stackexchange.com%2Fopenid%2Fprovider&amp;openid.return_to=http%3A%2F%2Farea51.stackexchange.com%2Fusers%2Fauthenticate%2F%3Fs%3Dbd394805-cf55-4e8e-ad73-21485a09a989%26dnoa.userSuppliedIdentifier%3Dhttps%253A%252F%252Fopenid.stackexchange.com%252Fuser%252F642b1038-5c91-40d4-83ab-eb92db46c3d1&amp;openid.response_nonce=2015-06-12T12%3A30%3A42Z7tADDeYZ&amp;openid.mode=id_res&amp;openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&amp;openid.ns.alias3=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0&amp;openid.alias3.mode=fetch_response&amp;openid.alias3.type.alias1=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&amp;openid.alias3.value.alias1=mycorrectaddress%40web.de&amp;openid.alias3.type.alias2=http%3A%2F%2Faxschema.org%2FnamePerson&amp;openid.alias3.value.alias2=SOJPM) the request was made with.    As noted in the comments I'm not the only one, so I'd guess it may be not something I can fix. So will this be fixed?  Repro steps (using SE OpenID):   Get an Stackexchange OpenID account (like I have) (optional?) Add other OpenID providers and check they're working (StartSSL in my case) Please note: "You" don't have an "account" for the Area 51 subpage yet and still need to do the initial sign-in. Go to the Area 51 SE page Hit "Log-in" in the top-bar Hit the "log-in using stackexchange" button Enter your e-mail and password and submit Get the above error   Repro steps (using other OpenID)   Perform as above (until step 4), but this time step 2 is mandatory Hit "more OpenID options" Provide your OpenID link XXX.provider.com (works on crypto, server fault, ...) Authenticate against your provider Receive a variation of the above error (can be included if needed) I am relatively fresh to the DI party and am struggling to get my head around how exactly to use Dependency Injection. I understand that I can pass requirements as part of a service, but what about in my own class?  Say I have the below class where I want the language manager service to be injected:  class Foo implements ContainerInjectionInterface {    protected $languageManager;     public function __construct(LanguageManagerInterface $languageManager) {     $this-&gt;languageManager = $languageManager;   }    public static function create(ContainerInterface $container) {     return new static(       $container-&gt;get('language_manager')     );   } }   When I call new Foo() I am required to pass an instance of LanguageManagerInterface. That makes sense in terms of a normal constructor method, but that would require me to instantiate the class like the below:  $languageManager = \Drupal::service('language_manager'); $foo = new Foo($languageManager)   That just doesn't feel right to me.  Is there something I am missing, or would this class always have to be a service to take advantage of dependency injection? How do I to properly handle spaces in PHP Shell_exec? Can't delete folder in Windows 7 I'm trying to delete a folder in Windows 7 and get a perplexing error message: "Could not find this item:  This is no longer located in G:\Graphics.  Verify the item's location and try again.  I can see the folder -- I can find it.  I just can't delete it.    I also get a second error message (sometimes) when I click on the folder: G:\Graphics 2009-11-17 refers to a location that is unavailable...this information might have been moved to a different location.    I'm using Windows 7; this folder is on an external hard drive.  I've emptied the folder (there were items in it); I've scanned that external hard drive for errors.  Trying to rename the folder yields the same enigmatic error message.    Is there a way to delete this folder?