I was looking at tutorials for C and pointers on the internet and found a debugging example and am wondering how to fix this block of code? I have been looking for a while and can't find out how to make it work. I want to replace the 'i' in "Harris" with an "a".  char * ptr = (char *) "Harris";  ptr[4]="a";
The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.
biblatex: displaying all authors of multi-author works in the bibliography I'm using the  package to add citations and a bibliography to my LaTeX document. I've noticed that only the first author plus "et al." is displayed for works with more than three authors. That's fine with me for in-text-citations, but I'd rather have the complete author information in the bibliography. How can I do that? Lightning - dynamically creating force:inputField How get the :hover css style of an anchor with jQuery? How can i get the :hover in css stylesheet on the fly with jquery?  stupid example:   a.foo {     color: red;     font-size: 11px; }  a.foo:hover {     color: blue;     font-size: 12px;  }   how to retrieve that color and font-size before that mouse will go over the anchor? Proof of $\sum_{k = 1}^{n} \frac{1}{k^{2}} < 2 - \frac{1}{n}$ Can you deliver it [when,after] it [is | will be] assembled? Right now we are assembling a device. I am asking another person if he is can deliver it [after/when] we finish. What question construction is the most correct?  Can you deliver it after it is assembled?  Can you deliver it after it will be assembled?  Can you deliver it when it will be assembled?  Can you deliver it when it is assembled? command not running in cron (systemctl suspend) My disk already has 4 primary partitions, how can I install Ubuntu? I would like to install Ubuntu alongside Windows 7 on a HP G62 Notebook. Although I have installed  Ubuntu in a dual-boot many times before, I found out that this model has already four partitions.    Partitions:   SYSTEM (NTFS, 199MB, used 66.59MB) Partition without any tag: NTFS (579GM, used 129GB)  RECOVERY (NTFS 16.74 GB, used 2.42GB)  HP_TOOLS (FAT32, 103.34 MB, used 13.23MB)   Since I am not an expert with partitions I would like to get advice on how to do this.  My first idea is this one:   Free some space from /dev/sda2 (I don't know if could also free some other space) delete the HP_Tools partition (I have already created a backup) create an extended partition with the free space in #1 containing three parititions: swap (1gb); / (EXT4, 30GB);  /home (EXT4, 120GB)   Another option is to use wubi instead.  What do you think? Is there any other way to achieve this?  PS: I really think this HP policy of using 4 partitions is not a coincidence  PS: I tried using gparted from the live CD and I got a warning message saying that if I freed some space from /dev/sda2 I could create serious issues in the system Do I need a Japanese transit visa when arriving at Narita and departing from Haneda? I'm arriving from New Delhi, India (Indian passport) with JAL at Narita on 11th July at 07:30 and departing for San Francisco with JAL at 00:05 on 12th July from Haneda. Do I need a transit visa as I'll be switching airports and spending a few hours at JAL City Haneda Airport Hotel?  Previously I had connecting flights from Narita to San Francisco and obtained shore passes to relax at Narita Nikko Hotel. Now I'm travelling with my elderly Mom and do not want complications at Narita immigration or later in the day while going from Narita Airport to Haneda airport. Please advise. "They interviewed several candidates who/whom he thought had the experience he required." They interviewed several candidates who he thought had the experience and qualifications he required.   My test prep book says this should be "who" because of the subordinate clause's predicate:     They interviewed several candidates who he thought had the experience and qualifications he required.   I feel like it should be "whom" as it's the object of the main clause.     The interviewed several candidates whom he thought had the experience and qualifications he required.   Who's right? How do I change the screen resolution using Ubuntu command line? Ability to retract reopen/delete votes It seems that now we can retract close votes but we cannot retract reopen votes or delete votes.  I am trying to retract my reopen vote  but it does not allow me to.  Can we have that ability? grub2 wont load Ubuntu on dual boot Having an issue with a dual boot setup that is being run from Windows boot manager. I can successfully load into grub2 from Windows boot manager, however it seems that grub2 cannot locate to the Kernel or something, as it is dropping me right into a shell with the following output:  [ Minimal BASH-like line editing is suported. For the First word, TAB list the posible command completion. Anywhere else tab list the posible completions of a device/filename,]  grub&gt;   I have used Easybcd in the past and successfully loaded a Linux grub through Windows bootloader, but this was when both operating systems were on the same partition, but since my OS installationd are now on separate partitions it seems EasyBcd cant work its magic.   ONe encouragement is that I was able to get Easybcd to load a working Grub if I used the Neo grub bootloader and edit the confg with:  title Ubuntu 14.04 find --set-root /boot/vmlinuz-3.19.0-61-generic kernel /boot/vmlinuz-3.19.0-61-generic ro root=/dev/sdc initrd /boot/initrd.img-3.19.0-61-generic   however this loads in Grub4DOS which is very slow, and as of today this method stopped working See  for details).  Here is the output of EasyBcd Settings for all the different methods I have tried for the Ubuntu 14.04 installation:  Default: Windows 7 Timeout: 30 seconds Boot Drive: C:\  Entry #1 Name: Windows 7 BCD ID: {current} Drive: C:\ Bootloader Path: \Windows\system32\winload.exe  Entry #2 Name: Ubuntu 14.04 Legacy BCD ID: {a4f127cf-3150-11e6-8aaf-408d5cb9e442} Drive: C:\ Bootloader Path: \NST\nst_linux.mbr  Entry #3 Name: Ubuntu 14.04 Grub2 BCD ID: {a4f127d0-3150-11e6-8aaf-408d5cb9e442} Drive: C:\ Bootloader Path: \NST\AutoNeoGrub0.mbr  Entry #4 Name: Ubuntu Neo Grub BCD ID: {a4f127d1-3150-11e6-8aaf-408d5cb9e442} Drive: C:\ Bootloader Path: \NST\NeoGrub.mbr   *It seems that none of the paths seen above are pointing to my dev/sdc2/ partition which would be considered DISK1 on my Windows Volume manager.     EDIT - In the confusion of attempting to get a working bootmanager for Ubuntu/Windows, you will see that grub and Windows Boot manager have all been installed in numerous locations. Below are the present locations and contents of all bootmanager &amp; Grub installations:  dev/sdb Windows7 drive  /dev/sdb1 - 512 MB fat32 partition which is currently empty  /dev/sdb2 - 110 GB ntfs partition containing Windows7 installation. This partition contains a 'Boot' folder which contains BCD files and a whole wack of langauage folders. THIS IS The FOLDER THAT WINDOWS BOOTLOADER uses.  /dev/sdb4 - 121.53 ntfs partition containing storage for media    dev/sdd - Ubuntu Drive  dev/sdd1 - 512 MB partition containing a 'EFI' folder, inside of which are two folders 'grub' and 'Ubuntu', both of which contain the exact same files (grub.cfg, grubx64.efi, MokManager.efi, shium64.efi)  dev/sdd2 - 48.83 GB ext4 partition that contains the '/' folder and Ubuntu instalation.   dev/sdd3 - 69.91 GB ntfs partition containing storage for media  what do I need to do so that the Grub shell I am being dropped into will load up Ubuntu? HOw can I get this machine to dual boot out of Grub? Updates for a private plugin? If I write a private plugin, is there any way to use the WordPress auto-update mechanism to update it?  I want to encapsulate the functionality, but it's specific to my own 5 or so blogs, so it's not a good candidate for the public plugins resource. But I love the easy-updating mechanism.  Is there a way to do this? Ubuntu 12.04 (Wubi) not starting - root.disk corrupted I have Ubuntu 12.04 installed through Wubi on my laptop. For some reason when i click on Ubuntu on start up (when you have to either select windows or Ubuntu) I get the following screen, the grub cursor keeps flashing.  Gnu grub version 1.99-21 Ubuntu 3.4   Minimal bash-like line editing is supported. For the first word, tab lists possible command completions. Anywhere else tab lists possible device or file completions.   grub&gt;   Could you tell me what I can do to fix this problem and to start Ubuntu normally? Application-priority based automatic bandwidth distribution in Windows? Whenever my browser wants to download data, I want it to be granted as much of the bandwidth as it wants, while other applications must do with the leftover bandwidth; and when the browser is not transferring any data, other applications could be given the bandwidth. Something like the process priority in Windows task manager. Any method/software to accomplish this automatically? How can I learn the basics of SharePoint 2013 in a few days? I have very little knowledge of SharePoint, and want to learn about SharePoint 2013.  Most of the resources that I've found are either about what's new in 2013, or they have a bunch of links to SharePoint 2010.  I also don't have the time to read a thousand page book.  A hundred or so would be fine.  Can anyone recommend a resource (site / book / video / tutorial) for a beginner to learn the basics of SharePoint 2013 in a few days?  I've downloaded a Kindle book, "Getting Started With SharePoint 2013."  It's perfect for absolute beginners, who just want to know how to upload &amp; download documents, but I'm looking for more than that. How do you make numbered equations in latex? I would like to put in a code that automatically assigns a number to the equations in my documents preferably aligned on the right hand side.   How can I go about this?   \documentclass[a4paper,11pt]{article} %\documentclass[a4paper,11pt]{scrartcl} \usepackage{amsmath}  \usepackage[utf8]{inputenc}  \begin{document}  $$\ddot{\underline{\mathbf{r}}} = \frac{d{^2}\underline{\mathbf{r}}}{dt^2}= 0$$.  \end{document} Are there substitutes for chain lubricant? With long journeys and particularly during winter I have noticed that the salt erodes the chain very quickly, even when I have lubricated the chain beforehand. When you are missing proper chain lubricants, what would you use as a substitute? Could you use cooking oil if you are missing the right stuff, or should I keep a small bottle of oil with me on my rides?  Related Cancel misclicked flags What's the single-word for "left or right handed"? 'Male'/'female' is to 'gender' as 'left-handed'/'right-handed 'is to...?  Is there a word to describe this? For example, if I ask a guy     What's your ____?   It should mean I'm asking whether he's left or right-handed.  Another example could be     Our designs are not biased  against your ____.   Basically, I'm looking for something that means the state of being left- or right-handed which could be used analogously as gender.  EDIT: Sorry for the delay in the edit, but I was tied up. There are some points I'd like to clarify:   I'm not looking for a way to paraphrase my questions. I'm looking for a single word. I know people normally ask something along the lines of "Are you left-handed or not?" People also ask "Are you afraid of the dark?" instead of "Are you scotophobiac?". The word for it,  still exists, right? It has been pointed out that I should go with Our designs are not biased against left-handed people as that is what I mean. But that is not necessarily what I mean.    For example, let's say there is a washbasin with the tap on the right. Clearly, it's biased against lefties. Sometimes, you come across a washbasin with a tap on the left. (The logic being: you use your left hand to turn the tap as your right one's dirty). But, your right hand might not always be dirty, in which case, it's biased against righties.  A washbasin with the tap on the center is, then, handedness-blind or chirality-blind, if you will. (I foresee that some would dwell on Our designs are symmetrical. Please don't.)  I'm looking for a term that would be applicable here, as well as in the 1st example.  My favorite so far is chirality, suggested by Dan Bron in a comment (with 25 upvotes!) But, I'm reluctant to use it because there's no hard proof it's used in that sense  If we are talking about male-female, gender works perfectly. What's your gender? and Our designs aren't biased against your gender. , both work perfectly here.  Sorry for the late edit again. If the consensus is that I rollback, I will. Let me know in the comments.