What is the Android Permission "WRITE_GSERVICES" doing? There is a mysterious and undocumented Android Permission called: WRITE_GSERVICES. As usual Googles own documentation is even more mysterious than any bad fairytale, writing:   android.permission.WRITE_GSERVICES      Allows an application to modify the Google service map.   However Googling (!) for Google Service Map yields nothing useful.  What is it controlling and what is it used for?
What do Android application permissions mean? When installing an application, the application lists permissions that it needs to perform its  functions.    I am creating this list of the the system defined permissions and a description of what they mean. It is a community wiki so if new permissions are added in the future they can be added to this list.
let ${v_1}, {v_2} $ be orthonormal basis for subspace $W$. Prove that if $z$ is a vector in $W$, then Easy way to use variables of enum types as string in C? Here's what I am trying to do:    typedef enum { ONE, TWO, THREE } Numbers;   I am trying to write a function that would do a switch case similar to the following:   char num_str[10]; int process_numbers_str(Numbers num) {   switch(num) {     case ONE:     case TWO:     case THREE:     {       strcpy(num_str, num); //some way to get the symbolic constant name in here?     } break;     default:       return 0; //no match   return 1; }   Instead of defining at every case, is there a way to set it using the enum variable like I am trying to do above? How to replace a string on the 5th line of multiple text files? I want to replace the 5th line of multiple text files (file1.txt,file2.txt,file3.txt,file4.txt) with the string " Good Morning " using a single terminal command.  All the text files are located on my ~/Desktop.  Note: My desktop consists of 6 .txt files.I want to apply the change to above mentioned 4 text files only. Err 80 appears when I turn on my Canon EOS 5D Mark II How large is it possible for a PC to get? How large is it possible for a PC to get?  For clarity, here are my parameters:   This is about size categories, not 'feet' or 'inches' or 'meters' or any other precise measurement. This is about Medium to Large to Huge to Gargantuan categories.  This is for an NPC charlatan using this to trick people. (It's an NPC but will have a full PC sheet, so the distinction between PC and NPC doesn't matter). Any means of size category enlargement works for this purpose, including magic spells, magic items, etc. Illusions do not count because it's about actually becoming larger, not just casting an illusion of a gargantuan giant version of yourself.  The character must remain the same physical structure. Polymorphing into a Gargantuan Dragon would not satisfy the need here. Consumable items are fine. This does not need to be permanent. Restrict the access to suggested edit reviews on deleted posts on an answer deleted as rude/abusive is visible, even without logging in (and for users with less than 10k reputation). These users can't see the answer , via the , or a direct link to the .    This is a potential avenue for spammers, just like the suggested edit spam used to be, but is ; according to the :     In addition, in order to reduce the incentive for spammers to make spam edits that get rejected, suggested edit spam is hidden from logged-out users, so they can't show their clients public-facing pages with spam (so they won't get paid).   For this to work, the spammer would need two accounts, one to post the spam and a second one to suggest an edit. Even if the spam post is quickly nuked, the review link will be active forever. One could argue that logged-in users without 10k reputation shouldn't be able to see the suggested edits either; I'm partial to that. I've bunch of folders in folder A. I want to move files from all those folders to A.  Or  I want to cut all files from child folders and paste them in parent folder.  How to do that? This error occurs whenever I try to work with sudo. I changed the permissions of /var/ folder to 777 and I think this causes the error. Please help me get back a functional sudo and /var. Install Ubuntu from ISO image directly from hard disk of a system running Linux? Fast way to copy a large file on a LAN I am having some trouble with NFS, and I'd like to try using just plain old TCP.  I have no idea where to begin, though.  Hardware-wise, I am using an ethernet crossover cable to network two netbooks.  To network them, I type  $ sudo ifconfig eth0 192.168.1.1 up &amp;&amp; ping -c 10 -s 10 192.168.1.2 &amp;&amp; sudo /etc/init.d/nfs-kernel-server start   on the first netbook and  $ sudo ifconfig eth0 192.168.1.2 up $ ping -c 10 -s 10 192.168.1.1 $ mount /mnt/network1   on the second  where /mnt/network1 is specified in /etc/fstab as  192.168.1.1:/home /mnt/network1 nfs noauto,user,exec,soft,nfsvers=2 0 0  as well as in /etc/exports (using the syntax of that file), on the first netbook.  The above works fine, but the files and directories are huge. The files average about half a gigabyte a piece, and the directories are all between 15 and 50 gigabytes.   I'm using rsync to transfer them, and the command (on 192.168.1.2) is  $ rsync -avxS /mnt/network1 ~/somedir   I'm not sure if there's a way to tweak my NFS settings to handle huge files better, but I'd like to see if running an rsync daemon over plain old TCP works better than rsync over NFS.  So, to reiterate, how do I set up a similar network with TCP?  UPDATE:  So, after a good at few hours of attempting to pull myself out of the morass of my own ignorance (or, as I like to think of it, to pull myself up by my own bootstraps) I came up with some useful facts.  But first of all, what led me on this rabbit trail instead of simply accepting the current best answer was this: nc is an unbelievably cool program that resolutely fails to work for me. I've tried the netcat-openbsd and netcat-traditional packages with no luck whatsoever.  The error I get on the receiving machine (192.168.1.2) is:  me@netbook:~$ nc -q 1 -l -p 32934 | tar xv Can't grab 0.0.0.0:32934 with bind tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors   route gives:  me@netbook:~$ route Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface default         dir-615         0.0.0.0         UG    0      0        0 wlan0 link-local      *               255.255.0.0     U     1000   0        0 eth0 192.168.0.0     *               255.255.255.0   U     2      0        0 wlan0 192.168.1.0     *               255.255.255.0   U     0      0        0 eth0   But, here's the good news: having the static IP addresses set in /etc/network/interfaces, which I started doing while trying to get nc working, fixed all my NFS problems and rekindled my love for NFS.  The exact configuration I used (with 192.168.1.1 for the first netbook, of course) was:  auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0   With those settings, the two netbooks will be able to ping each other directly after being booted up, without even an ifup.  Anyway, I'd still really like to see nc in action, so I'm hoping someone help me debug this process. My trackpad is broken so I can tap-to-click but i cannot drag and drop. This is really a problem when it comes to doing certain things.   Does anyone know how to program a sticky key to turn a click into a click-select that can then be dragged about?   I can't resize my browser or open window and I can't drag applications into the folder when installing etc.  free solutions only please.  A mid 2009 macbook-pro 13". 2.53 Ghz Intel Core 2 Due.   Running os lion (grudgingly). What licence is subscriber content provided under 4.0, 3.0 or them all? How do I set up Ruby on Rails? I am interested in setting up a Ruby on Rails environment on my 10.10 laptop.   Is there anything special I need to keep in mind for installation (i.e. that could be new or unique to 10.10)?   Are there any suggested walkthroughs that I could follow along with?  Thanks in advance. Class vs Struct for data only? Is there any advantage over using a class over a struct in cases such as these?  (note: it will only hold variables, there will never be functions)  class Foo {  private:       struct Pos { int x, y, z }; public:        Pos Position;  };   Versus:  struct Foo {    struct Pos { int x, y, z } Pos; };     Similar questions: The  specifically says not to ask  for career advice but people do it anyway.  Should I consider the Help Center outdated or only loosely enforced?    And what about a career advice site on the network?  There are 70+ sites, and most of them are for relatively narrow interests (which is not a criticism, I enjoy looking through the many sections).  A career section seems like it would be very popular.  Also, a careers section would help keep career questions off the other sites. Can't disable windows 10 PIN complexity I recently linked my Microsoft Office account to my school to have access to Office for students. Right after linking my account, I couldn't login to my computer again with my 4-digit pin code and got the message: "your organization has set the following pin code requirements. Your pincode has to be at least 6 digits long."   I had to change my pincode but I want to change it back to my original 4-digit one. Some internet research has made me enable gpedit.msc, but when I try to find the PIN complexity setting in gpedit (Computer Configuration\Administrative Templates\System\PIN Complexity) it just isnt't there.   Another possible path in gpedit I found on the internet to do this was: Computer Configuration > Administrative Templates > Windows Components > Windows Hello for Business > PIN Complexity, but that also didn't work as I don't have "Windows Hello for Business"   I also tried resetting my computer to the date before I joined my 'organization', but that didn't work either.   Does anyone have an idea how I can resolve this issue? I am looping through a text file, using 'while read'. I read three variables from each line - two filenames and a decimal number. I know that this works in a vanilla setup (loop, read line, echo line, extract variables, nothing else), because I have tested it on my input file.  I am getting an odd result, though, once I add in the meat of my routine - which is a call to ffmpeg to merge the audio and video streams represented by the filenames. Successive 'read' operations omit leading characters from the line. I read  that calls for 'read' input within a 'while read' loop can cause problems, and wonder if the ffmpeg call is doing something that confuses bash, but this seems unlikely and bizarre! NB: I don't really understand the ffmpeg call - I got it from an answer to another question.  Any help would be appreciated!  The first 'read' works as expected (and the ffmpeg command completes):  LINE  1 vidsNeedingSound/448£generic@06_10_16-09_30_47.mp4 soundToAdd/448£generic@06_10_16-12_11_54.wav 6.988354 V: vidsNeedingSound/448£generic@06_10_16-09_30_47.mp4   A: soundToAdd/448£generic@06_10_16-12_11_54.wav   D: 6.988354   The second 'read' loses 36 characters from the beginning of the line (and the ffmpeg command fails because the file represented by the variable V which takes the first item of the line doesn't point at a file):  LINE  2 6-09_30_47.mp4 soundToAdd/452£generic@06_10_16-12_11_54.wav 9.64663 V: 6-09_30_47.mp4   A: soundToAdd/452...   The third 'read' works as expected (and the ffmpeg command completes):  LINE  3 vidsNeedingSound/452£left@06_10_16-09_30_47.mp4 soundToAdd/452£left@06_10_16-12_11_54.wav 9.862118 V: vidsNeedingSound/452£left@06_10_16-09_30_47.mp4   A: soundToAdd/452...   The fourth 'read' loses 37 character (one more than the last fail) from the beginning of the line (and the ffmpeg command fails):  LINE  4 09_30_47.mp4 soundToAdd/452£right@06_10_16-12_11_54.wav 9.431392 V: 09_30_47.mp4   A: soundToAdd/452....   That's the pattern. When not preceded by a successful call to ffmpeg, the 'read' works as expected. After each successive successful ffmpeg call, characters are omitted from the beginning of the line: 36 characters to begin with, then 37, 38, 39...  The clincher is that when ffmpeg fails after a 'successful' read (due to another problem), the following 'read' works as expected.  CONCLUSION: a successful ffmpeg call results in a read fail on the next iteration through the loop.  Why does this happen, and how can I stop it?  Here's my code: ...  # Loop through lines in the merge file IT_COUNT=1 while read MERGE_LINE                do              echo "LINE " $IT_COUNT     ((IT_COUNT+=1))     echo $MERGE_LINE   # testing use     read VID_FILE AUD_FILE DURATION &lt;&lt;&lt; "$MERGE_LINE" # Get the data from each line     echo "V: $VID_FILE   A: $AUD_FILE   D: $DURATION"         # testing use ....     # add audio to video     ffmpeg -i $VID_FILE -i $AUD_FILE -filter_complex "aevalsrc=0:d=$AUD_SHIFT[s1];[s1][1:a]concat=n=2:v=0:a=1[aout]" -c:v copy -map 0:v -map [aout] $FILE_OUT -hide_banner  done &lt;$MERGE_FILE     Thanks for looking! Monty hall problem extended. I just learned about the Monty Hall problem and found it quite amazing. So I thought about extending the problem a bit to understand more about it. In this modification of the Monty Hall Problem, instead of three doors, we have four (or maybe $n$) doors, one with a car and the other three (or $n-1$) with a goat each (I want the car).  We need to choose any one of the doors. After we have chosen the door, Monty deliberately reveals one of the doors that has a goat and asks us if we wish to change our choice.  So should we switch the door we have chosen, or does it not matter if we switch or stay with our choice?  It would be even better if we knew the probability of winning upon switching given that Monty opens $k$ doors. How to evaluate the integral $\int \sqrt{1+\sin(x)} dx$ To find:  $$\int \sqrt{1+\sin(x)} dx$$  What I  tried:  I put $\tan(\frac{x}{2}) = t$, using which I got it to:  $$I = 2\int \dfrac{1+t}{(1+t^2)^{\frac{3}{2}}}dt$$  Now I am badly stuck. There seems no way to approach this one. Please give a hint. Also, can we initially to some manipulations on the original integral to make it easy? Thank you. My ubuntu partition was deleted and I can't boot from either a DVD or USB