How can i power on a pc from keyboard on ubuntu 14.04 ?  I'm using ubuntu 14.04, anyone help me about that....
Is there a way to start a PC with Ubuntu from the Keyboard? Because my button &quot;Power&quot; is broken.
JSON encode MySQL results How do I use the json_encode() function with MySQL query results? Do I need to iterate through the rows or can I just apply it to the entire results object? Is the sentence "There is a large number of labourers who want to migrate to Japan for work." correct? Possible Duplicate:             There is a large number of labourers who want to migrate to Japan for work.   I type this sentence in a word processor, and it reports an error that "is" should be "are" (subject-verb agreement).  I doubt this is a valid error. Could anyone confirm this? Covering map between orientable compact connected surfaces without boundary with genus $g$ Similar to a previous question I asked, this is the other question that I couldn't answer in an exam I gave for my Topology course:  Suppose $g_1,g_2$ are non-negative integers such that $2-2g_2$ divideds $2-2g_1$. I have to construct a covering map $S_{g_1} \rightarrow S_{g_2}$, where $S_g$ is denotes an orientable compact connected surface without boundary with genus $g$.  Now, I attempted to try this problem for surfaces with smaller genera, for example a 2-torus and a 2-sphere. Clearly $2-2g$ is the Euler Characteristic of the said surface, and by classification of surfaces we have to only consider connected sum of 2-tori. So, I have $\chi(S^2)=2$, and $\chi(T^2) = 0$, here we have $2$ dividing $0$, hence I have to construct a covering map from $T^2 \rightarrow S^2$, and I have no idea how to move forward.  Addendum: I have to got great answers to my question here but I had a doubt when it comes to the points being mapped, specifically in Giulio Bresciani's answer. Clearly the handles of the figure is mapped to the handles in the figure above, but I'm unable to understand the mapping of the twist of the cover (above figure) to the extreme handles of the base (the figure below). Any help? When can I make opportunity attacks? What provokes an opportunity attack?  In 3.X moving out of a threatened square, standing up from prone, casting a spell (unless cast defensively), or making a ranged attack provoked, while in 4e moving out of a threatened square or making a ranged/area attack provoked. I have recently been reading about Quantum Electrodynamics which I found very interesting, but even more confusing.  I understand photons mediate the electromagnetic force and interactions between charges can be described by virtual photon exchange. And that in Quantum Mechanics particles paths can be evaluated by sum over all paths...  An electron travelling from one point to another will take all paths, emitting and reabsorbing virtual photons. Does the electrons take all paths including those that involve faster than light velocities?  Is this question null, Does it mean anything to ask about properties of virtual particles?  Do I have the wrong idea about what virtual particles are? I have a population density raster and would like to create 5 polygons from the 5 natural break (jenks) classification ranges. 1 polygon for each classification range. I'm using ArcMap10 and have all of the Extensions enabled in the ToolBox to my disposal.   Thanks! What are the options for a non-EU national who wants to extend his stay in Switzerland (totaling less than 90 days)? I'm going to install Linux on Lenovo B5400, which contains:   500GB Hybrid SSHD with a 8 GB SSD and 500 GB HDD   Designing partitions for my 2 Linux distros was quite easy before, when I had only HDD. I always had:   10GB for Linux distro (mounted as "/") 10GB for another distro (again "/"; for another distro; for testing purposes or to assure continuity when switching distros) 2GB for swap (used for both distros; no need to separate) 300GB+ for "/home" (used for both distros; different usernames eliminates possible conflicts)   It's simple, isn't it? I would like to keep this approach, but I know that SSD has its own specificity - it prefers to be read, continuous writing may affect its life span. I don't want to kill SSD in a year, so I would like to move some system partitions to HDD in order to protect SSD. As far as I know /tmp is one of often read&amp;written locations. How much space it needs? What else should be placed on HDD?  Or: how to design partitions to achieve exactly the same effect and to keep SSD as safe as possible?  I'd be grateful for your help. Show that $A_n=\sum\limits_{k=1}^n \sin k $ is bounded? "Distribution worker" vs. "distributed worker" I cannot differentiate the meanings of the two words. Could you please clarify?   In general, when should I use a noun (distribution) or an adjective (distributed) for verbs similar to distribute, like organize, create? Use Outgoing SSH to receive incoming SSH My ISP does not allow me to have a static IP address. As such I am unable to remotely SSH in my home machine. Is there a way I could SSH from my home machine to a server and SSH into the server from my remote laptop and bridge the two connections?  Cheers! I'm getting an error in WSL while trying to use .  I followed all the install steps successfully on Windows 10 x64 using the steps at , then Ubuntu for Windows with GitHub desktop .  But I'm blocked at the latest steps.  It's where I trying to download or train the model in Windows. Using for example the Ubuntu Linux prompt, I navigate manually to the appropriate place and type a following command like the one below (I also tried in su mode)  bash pretrained_models/download_pix2pix_model.sh facades_label2photo   I get an immediate error, always the same, similar to these:  root@Azure:/mnt/c/Users/vincent/Downloads/vision/pytorch-CycleGAN-and-pix2pix# bash pretrained_models/download_pix2pix_model.sh facades_label2photo pretrained_models/download_pix2pix_model.sh: line 2: $'\r': command not found Note: available models are edges2shoes, sat2map, and facades_label2photo pretrained_models/download_pix2pix_model.sh: line 4: $'\r': command not found ]pecified [facades_label2photo pretrained_models/download_pix2pix_model.sh: line 6: $'\r': command not found mkdir: cannot create directory ‘./checkpoints/facades_label2photo\r_pretrained\r’: No such file or directory pretrained_models/download_pix2pix_model.sh: line 10: $'\r': command not found WARNING: timestamping does nothing in combination with -O. See the manual for details.  : No such file or directoryhphoto pretrained_models/download_pix2pix_model.sh: line 12: $'\r': command not found pretrained_models/download_pix2pix_model.sh: line 13: $'\r': command not found   Any idea? Ubuntu missing from HP boot menu I have a HP laptop with Windows 8.1 and Ubuntu 14.04 dual booted. I used to use F9 key to enter boot menu and chose Ubuntu and then GRUB would appear where I would chose Ubuntu again. This was working fine all this while. Either a hardware change or a Windows update has caused the Ubuntu option to go missing from the boot menu itself.  How do I fix this and boot into Ubuntu again? What's the main difference between int.Parse() and Convert.ToInt32 QGIS Graphics Glitch after changing CRS Reading the extension of files in a directory with Java? Getting the array length of a 2D array in Java If my app is live and users are facing a critical issue, can I upload another build and ask Apple to make it live within a day or two? Convert ls -l output format to chmod format How do I print bold text in Python?