Mapping one IP address to another in the 'hosts' file
How to change IP address to point to localhost?
Let $G$ be a finite group and $F$ a field with $\mathrm{char}(F)=0$ or coprime to $|G|$. Let $V$ be a $FG$-module in a way that every $ FG$-homomorphism $ f : V \to V $ is given by $f(x)= \lambda x $. Then $V$ is irreducible.   I already managed to proof this by contradiction, using Maschke's Theorem. We can  write $V$ as $U\oplus W$ and get a $FG$-homomorphism $\pi:U\oplus W \to U\oplus W$, $\pi (u+w)=u$, then $\pi(u+w)=\lambda (u+w)=u $ then either $U$ or $W$ are trivial and thus $V$ is irreducible.  My question is if this statements still holds if the characterictic of $F$ divides the order of $G$, since I only used this fact in my proof to use Maschke's theorem. Should not we apply pseudo-forces all the time as the Earth is a non-inertial frame of reference? I'm not sure if there's a better place to ask this or not.   Why, at least here in America, is the standard electrical system set up for alternating current (AC) rather than direct current (DC)? I'm just completing a long-distance move and realizing how many DC adapters I have and how many of my devices require DC power:   All of my guitar pedals. My alarm clock. My external hard disks. My USB car HDD dock.   ... and the list goes on. If we're almost constantly having to use DC adapters to convert AC into DC, why isn't the standard DC, other than because people resist change? I don't understand how to use Fermat's little theorem to find remainders e.g if we are asked to find remainder of $50^{50}$ on division by $13$, what is a and what is $p$ in the formula?  Also I wanted to check can we use both congruence classes as well as Fermat's little theorem to find such remainders? How would be write $50^{50}$ on division by $13$ in terms of congruence classes to find the remainder?  I don't exactly understand what a congruence class is, what does it tell us and how is it related to this? How can I get the list of all fields(API name,Label,type) of any sObject? I'm trying to build a Dynamic list(table) of records by selecting the Sobject and its fields.So I need to get all the fields with its API name,label,type.But I can't get the label and type.(Tried DescribeSObjectResult Class methods to get label,but it didn't help to get the label dynamically)  I tried it with the following code.  System.debug('Selection-----'+selectedObject); Map&lt;String, Schema.SObjectType&gt; gd = Schema.getGlobalDescribe();  Schema.SObjectType ctype = gd.get(selectedObject);  Map&lt;String, Schema.SobjectField&gt; fmap = ctype.getDescribe().fields.getMap();    List&lt;FieldWrap&gt; strList = new List&lt;WrapMap&gt;(); for(String s: fmap.keySet()) {     WrapMap wmp = new WrapMap();     wmp.name = s;     wmp.label = String.valueOf(fmap.get(s));     strList.add(wmp);  }   Where FieldWrap is my wrapper class with name and field of String types. I'm getting the List of API name of fields,but not the Label and type of it.Is there a way to get the label and type of field.If so, please help me. I find that the minimum in-call volume on my HTC Desire is still far to loud on some calls.  Since I got the phone, I have flashed several different custom ROMs, radio updates, etc, and have had the issue throughout.  Do you know of any way (setting, hack, app, whatever) to reduce the minimum volume?  My device is rooted and I am currently running one of the CyanogenMod 7 (Gingerbread) nightly builds. Recover harddrive data I have a dell laptop that recently "died" (It would get the blue screen of death upon starting) and the hard drive would make a weird cyclic clicking noises.  I wanted to see if I could use some tools on my linux machine to recover the data, so I plugged it into there.  If I run "fdisk" I get:  Disk /dev/sdb: 20.0 GB, 20003880960 bytes 64 heads, 32 sectors/track, 19077 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk identifier: 0x64651a0a  Disk /dev/sdb doesn't contain a valid partition table   Fine, the partition table is messed up.  However if I run "testdisk" in attempt to fix the table, it freezes at this point, making the same cyclical clicking noises:  Disk /dev/sdb - 20 GB / 18 GiB - CHS 19078 64 32 Analyse cylinder   158/19077: 00%   I don't really care about the hard drive working again, and just the data, so I ran "gpart" to figure out where the partitions used to be.  I got this:  dev(/dev/sdb) mss(512) chs(19077/64/32)(LBA) #s(39069696) size(19077mb)  * Warning: strange partition table magic 0x2A55. Primary partition(1)    type: 222(0xDE)(UNKNOWN)    size: 15mb #s(31429) s(63-31491)    chs:  (0/1/1)-(3/126/63)d (0/1/32)-(15/24/4)r    hex:  00 01 01 00 DE 7E 3F 03 3F 00 00 00 C5 7A 00 00  Primary partition(2)    type: 007(0x07)(OS/2 HPFS, NTFS, QNX or Advanced UNIX) (BOOT)    size: 19021mb #s(38956987) s(31492-38988478)    chs:  (4/0/1)-(895/126/63)d (15/24/5)-(19037/21/31)r    hex:  80 00 01 04 07 7E FF 7F 04 7B 00 00 BB 6F 52 02   So I tried to mount just to the old NTFS partition, but got an error:  sudo mount -o loop,ro,offset=16123904 -t ntfs /dev/sdb /mnt/usb NTFS signature is missing.   Ugh.  Okay.  But then I tried to get a raw data dump by running  dd if=/dev/sdb of=/home/erik/brokenhd skip=31492 count=38956987    But the file got up to 59885568 bytes, and made the same cyclical clicking noises.  Obviously there is a bad sector, but I don't know what to do about it!  The data is still there... if I view that 57MB file in textpad... I can see raw data from files.  How can I get my data back?  Thanks for any suggestions,  Solution:  I was able to recover about 90% of my data:   Froze harddrive in freezer Used Ddrescue to make a copy of the drive Since Ddrescue wasn't able to get enough of my drive to use testdisk to recover my partitions/file system, I ended up using photorec to recover most of my files Option clash when using graphicx and tikz packages The following code fails Option clash for package graphicx, it seems to be an incompatibility between the package graphicx (when the option pdftex is used) and the package tikz.  \documentclass[a4paper,10pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage{tikz} \usepackage[pdftex]{graphicx}  \begin{document}      The lazy dog...  \end{document}   I am currently working with Debian wheezy (updated as of 10th November 2012), and the latest TeXLive LaTeX distribution included.  Any ideas? Trigonometry question finding the sin and tan If angle $\alpha$ is reflex, and $\cos \alpha = -\frac{9}{41}$, without using a calculator, evaluate  (a) $\sin \alpha$ (b) $\tan \alpha$ (c) $\cos (\alpha - 180\deg)$     . Identification card for foreigners in trains in Germany I want to go to Berlin to Gottingen by train. I found that to avail myself of the &ldquo;savings fare&rdquo;, I have to book a ticket at least one day in advance. And I saw a requirement on the Bahn website to have a identification card for online tickets.  I am a foreigner in Germany, so does my passport count as valid identification in German trains? What happens if I get the same skill from both my background and my class? Find all the numbers $n$ such that $\frac{4n-5}{60-12n}$ can't be reduced. Find all the numbers $n$ such that $\frac{4n-5}{60-12n}$ can't be reduced.   Attempt:  $$\gcd(4n-5,60-12n)=(4n-5,-8n+55)=(4n-5,-4n+50)=(4n-5,45)$$  $$n=1: (4-5,45)=1\quad \checkmark\\ n=2: (3,45)=3\quad \times\\ n=3: (7,45)=1\quad \checkmark\\ n=4: (11,45)=1\quad \checkmark\\ n=5: (15,45)=15\quad \times\\ n=6: (19,45)=1\quad \checkmark\\ n=7: (23,45)=1\quad \checkmark\\ n=8: (27,45)=9\quad \times\\ \vdots$$ So the answer is that it can't be reduced for $n=1,3,4,6,7,..$ i.e  $$\bigg\{n\bigg|n\notin \begin{cases}a_1=2\\a_n=a_{n-1}+3\end{cases}\bigg\}$$  I want to verify that my solution is correct I know there is a difference between assert and verify in Junit; the assert results in a runtime exception, causing test method execution to abort. To overcome this problem, we can have verify which will make test case fail, but allowing test execution to proceed rather than getting aborted.  I doubt there is any such built in approach in testNG. I do understand that best practices say, there should not be multiple asserts in same test case.  But, in practical world, we do come across scenarios where we need to have multiple checkpoints in one test case and we don't want our test method to abort because of one check point failure (test execution should proceed despite failure).  How can we use a soft assert mechanism, similar to verify, which will not abort test method when there is a checkpoint failure.  Example:  @Test(dataProvider = "getMailUrl") public void testMail(email,subject); Assert.assertFalse(subject.isEmpty);//1st checkpoint Assert.assertNotNull(email); //2nd checkpoint Assert.assertEquals(email, "feedback@yoursite.com"); //3rd checkpoint   Now, I want test execution to proceed, even if the 1st checkpoint (validation of subject being not empty) fails. Definitely we will be not be using assert (hard assert). We will need concept of soft assert similar to verify (facilitated by Junit).   I understand, we have to build a customListener implementing TestNG interfaces or extending existing listeners such as TestListenerAdapter. I am still struggling - how can we do this? If I could stop ALL motion would I stop time? I've never really understood time. Time is not a force. It isn't energy or matter. Time doesn't MAKE anything do anything. Time doesn't make a clock tick (motion or batteries do). Time doesn't make the earth revolve around the sun (motion/gravity does). I don't think time exists. People say time is used as a form of measurement but aren't we just measuring movement? Even atomic clocks measure the movement of electrons that orbit an atom's nucleus as they "jump" back and forth between energy states. So my question is if I were to stop ALL motion (even movement of electrons that orbit an atom's nucleus) would I stop time? Is time just masquerading as the measurement of motion?  EDIT: This question is not a duplicate of "Does time freeze at Absolute Zero?" Because I am NOT talking about temperature. I am speaking about the motion of ALL things. I am asking if ALL things (photons, energy, matter, forces) stop moving would time stand still? I would have to say yes it would. If ALL motion were to stop for a million years and then start again no one would even know. Atomic clocks wouldn't even miss a step. Can I sync bookmarks between Firefox and Chromium? So, Firefox has turned so resource intensive that my netbook can't run it without making me want to pull my hair out. Thus, I have been trying Chromium with quite some success (I have managed to find proper equivalents for my firefox plugins), the only thing I'm lacking is my bookmarks, which are stored in my Firefox Sync account. Point is I don't want to use Google Bookmarks, mostly because of the whole thing with encryption.  Is there any way to use Firefox Sync with Chromium?, or is there any secure alternative? 'chmod u+x' versus 'chmod +x' What is the difference between chmod u+x and just chmod +x?  I have seen a ton of tutorials that say to use u+x to make scripts executable.  However, omitting the u doesn't seem to have any effect. In this kind of sentence the second half is an inversion of the first half. Is it a rhetorical artífice? What kind? How to calculate the costs of a weapon enchantment? Addressing a former office-holder by that office's title When is it appropriate to use an "expired" honorific to address or refer to a person?   In the U.S., former state governors are occasionally referred to as "Governor So-and-so", although they have not held that office for several years. I see this happening most often when the former governor is actively campaigning for a new office (usually U.S. President), and my impression is that it's done only by someone with an interest in the campaign (for or against) rather than a (relatively) neutral party like a newspaper.  Certainly this could be used as a jab: in a political campaign for high office, addressing one's opponent by a former title — lower than one's own — could imply that the opponent is not qualified for the new job. It could also be used the other way around, to remind listeners that a candidate one supports used to hold an important title.  I'm curious whether there are formal rules for this in the U.S., or at least style or journalist guidelines, for various offices. Are ambassadors, for example, entitled to some sort of emeritus honorific? In  (2017), Logan seems to be dying from sort sort of ailment, that prevents him to heal properly and seems to be decaying his body in a way that wasn't happening in any of the other films his character appears in.  I don't recall that this is being explained in the film. The Wikipedia page only mentions "adamantium poisoning" and "his healing factor fading", but it is not backed up with citations, so I would love to get an in-depth answer for this question, maybe using excerpts from the comic or original source material.  What is happening to Logan?