How do I find the first case of a word being present in a string using and change it LINQ?
How do I replace the *first instance* of a string in .NET?
Proof that $1729$ is the smallest taxicab number php/mysql with multiple queries In MySQL, how do I get a list of all foreign key constraints pointing to a particular table? a particular column? This is the same thing as , but for MySQL. I'm wondering a point about N'Zoth. He will summon my dead deathrattle minions, but will he do it in a specific order (death order, mana cost order, ...) ? Or randomly ?  If there is already a few minions on my side of the board, I'd like to predict which minions will be summoned and which ones will not (because board is full). If it's by death order, this generally means lower cost minions (like fire bat) will be summoned before the interesting big drops (sylvanas, highmane or so). Why does locking the rear tires on a vehicle cause it to spin? are often used in motor-sports and stunt driving to turn around tight corners.  Essentially, the driver applies the handbrake as he enters the turn, in order to "kick out" the back end and slide the vehicle around the corner.  However, applying the handbrake hard enough to lock the rear wheels while traveling straight will cause the rear of the vehicle to "kick out".  Given enough speed, the vehicle will spin 180 degrees.  Why do sliding wheels on a car want to "get in front" of rolling wheels? When people want to classify a group with certain (small) order, they seem to find a normal subgroup $H$ and a subgroup $K$, and then consider how many distinct $H \rtimes_\varphi K$ are there.  My question is: For any group $G$, does it always exist normal subgroup $H$, subgroup $K$ and $\phi : K \rightarrow Aut(H)$ s.t. $G\cong H \rtimes_\varphi K $?  Sorry if this question is too basic...  Thanks the comment and the answers. Then if the $G$ is not simple, can we have can $G\cong H\rtimes_\varphi K$ for proper subgroup $H$, $K$, with $H$ normal?  EDIT:  If we have a group $G$, that is not simple (then $G$ has at least one normal subgroup), are there always a non-trivial normal subgroup $H$ and a proper subgroup $K$ s.t. $G \cong H \rtimes K$. (Note that if $G$ is simple this is clearly not possible).  But the quaternion group and $Z_4$ given in answers have shown that we cannot always have it. If $p,q$ are positive quantities and $0 \leq m\leq 1$ then Prove that $$(p+q)^m \leq p^m+q^m$$    Trial: For $m=0$, $(p+q)^0=1 &lt; 2= p^0+q^0$  and for $m=1$, $(p+q)^1=p+q =p^1+q^1$.   So, For $m=0,1$ the inequality is true.How I show that the inequality is also true for $0 &lt; m &lt; 1$.   Please help. Cannot upgrade unsupported version of Skype for Linux (v5) Is there a way to enable/disable a wireless network interface via the command line (so I can put it in a bat file)?  When I'm in the office I use a wired connection, but Windows still occasionally bugs me about my wireless connection not being connected (even though I turned off the option for notifying me when there's no connectivity).  I'm guessing the only way to stop it from bugging me is to disable the interface, but I'd rather not have to go into the network settings every time I need to do so.  I'd like to set up a bat file or a shortcut that I can use to enable/disable the wireless (preferably a single one that toggles the current state), and then just set up a keyboard shortcut for that.  I just have no idea how to do so from the command line. How do electromagnetic waves travel in a vacuum? This is perhaps a total newbie question, and I will try to formulate it the best I can, so here it goes. How does an electromagnetic wave travel through for example, the vacuum of space?   I usually see that waves are explained using analogies with water, pieces of rope, the strings of a guitar, etc, but it seems to me that all those waves need a medium to propagate. In fact, from my point of view, in those examples the wave as a "thing" does not exist, it's just the medium that moves (involuntary reference to The Matrix, sorry).   But in space there is no medium, so how does a wave travel? Are there free particles of some sort in this "vacuum" or something? I believe , so supposedly there isn't a medium for the wave to travel through.   Moreover, I've seen other answers that describe light as a perturbation of the electromagnetic field, but isn't the existence of the field, potential until disturbed? How can it travel through something it does not exist until it's disturbed by the traveling light in the first place? (this last sentence is probably a big misconception by me). Best practices for catching and re-throwing .NET exceptions Listing multiple compound words Quick question: what is the compiler flag to allow g++ to spawn multiple instances of itself in order to compile large projects quicker (for example 4 source files at a time for a multi-core CPU)? Will taking a gap year after my Master's degree improve or degrade my potential of doing a PhD? Do Inverters change the lithium-ion batterie's mA capacity and wattage? let me say if I have a pack of lithium batteries connected in series and parallels, and i want to connect it to an Inverter, BUT...BEFORE I connect it to inverter, lets say it gives out 12 volts "hypothetically" some informations like 3.7 volt batteries, and 2500 mAh,  lets say then the pack gives 12 volts in DC and hypothetically again I calculate it ((still in DC)) is .....  W = V* Amp ... then it means wattage = 11.1 V * 5 Ah which is 55.5 W. then we got 55.5 watts, THEN....after we want to change the dc into ac it gives you 120 volts "please hypothetically" just answer me this, ARE the Wattage And Ampere are remains the same as DC? what would it be the result after AC? How to prove $b=c$ if $ab=ac$ (cancellation law in groups)? What is the difference between `grep`, `egrep`, and `fgrep`? Can anyone tell me the technical differences between grep, egrep, and fgrep and provide suitable examples?  When do I need to use grep over egrep and vice versa? What ultimates can be damage boosted by Mercy? What ultimates can be damage boosted by Mercy?  We already know that , but are there other ultimates that can be damage boosted by Mercy? Can all ultimates be damage boosted by Mercy? Windows 8 removes Grub as default boot manager I have a Sony VAIO S series with Windows 8 preinstalled, and I installed Ubuntu 12.10 on a new partition. When the PC boots Grub is display, and I can choose between Windows 8 (didn't worked at the beginning, had to change Grub settings) and Ubuntu 12.10. When I select Ubuntu 12.10 everything is OK, but when I use Windows 8, and I restart Grub isn't displayed anymore (Windows 8 boots immediately).  I booted a Ubuntu 12.10 LiveUSB, used efibootmgr, and found out that Windows 8 (each time it boots) changes EFI default bootloader from Grub to Windows Boot Manager.  How do I change this in Windows 8? I read something about bcdedit, but it does not work or I don't know how to use it... Why does the Stern–Gerlach quantum spin experiment conflict with classical mechanics? My understanding of the Stern–Gerlach experiment is that neutral (0 total charge) particles are sent through a non-homogeneous magnetic field, with the expectation that the field will push that particle's path higher or lower on a detector because of the collective spin of that particle. While the detector can detect particles in a two-dimensional surface, the results of the experiment are that particles appear in only two localized areas directly above the path of the particle stream, or directly below the path of the particle stream - spin up or spin down. The conclusions from these measurements are that the particle, when measured, will always have about the same magnitude.  Why does this not follow from classical mechanical theory related to magnetism? If you shot a magnet through a similar apparatus, I would expect the magnet to be rotated to align with the magnetic field in some way which, at high enough field strengths relative to the mass of the magnet, would cause us to measure basically the same magnitude as if the magnet entered the apparatus pre-aligned with the field.  How is my explanation incorrect?