i want to change the key. this is the output once i submitted the form.  Array (      [year] =&gt; 1      [event_name] =&gt; 2      [Sno] =&gt; 6      [First_name] =&gt; kodeesswaran      [Last_name] =&gt; thanagaraju      [Dept/Class] =&gt; cse      [topice] =&gt; test  )    i want to replace[Dept/class] to [Dept_class].  what array function i want to use  to replace that forward(/)
I have an associative array in the form key =&gt; value where key is a numerical value, however it is not a sequential numerical value. The key is actually an ID number and the value is a count. This is fine for most instances, however I want a function that gets the human-readable name of the array and uses that for the key, without changing the value.  I didn't see a function that does this, but I'm assuming I need to provide the old key and new key (both of which I have) and transform the array. Is there an efficient way of doing this?
How to list available shells for use by command-line? How can I set desktop defaults for new users? How can I set up desktop defaults, much like most distributions do, for every new user? (ex. default wallpaper, apps, etc) Regex for parsing directory and filename I'm trying to write a regex that will parse out the directory and filename of a fully qualified path using matching groups.  so...  /var/log/xyz/10032008.log   would recognize group 1 to be "/var/log/xyz" and group 2 to be "10032008.log"  Seems simple but I can't get the matching groups to work for the life of me.  NOTE:  As pointed out by some of the respondents this is probably not a good use of regular expressions.  Generally I'd prefer to use the file API of the language I was using.  What I'm actually trying to do is a little more complicated than this but would have been much more difficult to explain, so I chose a domain that everyone would be familiar with in order to most succinctly describe the root problem. How do you set the expiry date or a maximum age in the HTTP headers for static resources in IIS Both are in the present perfect, but one uses the verb 'to go' and the other 'to be'. Is there a rule for this?  Is there any chance that the differences between "I have been" vs. "I have gone", are differences in English dialect (I don't know if this is the right word).  Edit Could I say that North American English speakers use "I have gone", and maybe U.K speakers say "I've been"? Or vice versa. To show that either $R$ is a field or $R$ is a finite ring with prime number of elements and $ab = 0$ for all $a,b \in R$. How to prove $\bar{m}$ is a zero divisor in $\mathbb{Z}_n$ if and only if $m,n$ are not coprime I am having some issues with the hyperref package. I would like to create a Introduction chapter without a number so I use \chapter*{Introduction} and \addcontentsline{toc}{chapter}{Introduction} because I want it in the table of contents (see example).  But then the link in my PDF viewer gets it wrong and also the automatically created header is no longer correct (see picture). The table of contents shows the right page number (p.1) but the link is also wrong.   What is my mistake here?  \documentclass{scrbook}  \usepackage{hyperref} \usepackage{blindtext} \usepackage{glossaries}   \makeglossaries  \newacronym{eg}{e.g.}{% for example }   \begin{document}   \frontmatter  % abstract before the table of contents \chapter*{Abstract} \addcontentsline{toc}{chapter}{Abstract} \blindtext  \tableofcontents  % chapter with acronyms \cleardoublepage \phantomsection  \printglossary[type=\acronymtype] \addcontentsline{toc}{chapter}{Glossary}  \cleardoublepage \mainmatter   \phantomsection % \chapter{Introduction} % with this everything is correct but I don't want the number \chapter*{Introduction} \addcontentsline{toc}{chapter}{Introduction}  \blindtext  \pagebreak  \blindtext  % first chapter \chapter{Chapter1}  \gls{eg} \blindtext  \pagebreak  \blindtext   \end{document} I Can't receive files via bluetooth on lxde When I tried to run , I got the below screen:    The captcha is missing!  I tried in other browsers too.    Update:  From @Oded's comments, I changed to HTTP and it was working perfectly.  Out of curiosity I would like to know why the captcha isn't working when accessing Data Explorer over HTTPS. How to recover data from a failing hard drive? An external 3½" HDD seems to be in danger of failing — it's making .  I've acquired a replacement drive, and want to know the best strategy to get the data off of the dubious drive with the best chance of saving as much as possible.  There are some directories that are more important than others.  However, I'm guessing that picking and choosing directories is going to reduce my chances of saving the whole thing.  I would also have to mount it, dump a file listing, and then unmount it in order to be able to effectively prioritize directories.  Adding in the fact that it's time-consuming to do this, I'm leaning away from this approach.  I've considered just using dd, but I'm not sure how it would handle read errors or other problems that might prevent only certain parts of the data from being rescued, or which could be overcome with some retries, but not so many that they endanger other parts of the drive from being saved.  I guess ideally it would do a single pass to get as much as possible and then go back to retry anything that was missed due to errors.  Is it possible that copying more slowly — e.g. pausing every x MB/GB — would be better than just running the operation full tilt, for example to avoid any overheating issues?  For the "where is your backup" crowd: this actually is my backup drive, but it also contains some non-critical and bulky stuff, like music, that aren't backups, i.e. aren't backed up.  The drive has not exhibited any clear signs of failure other than this somewhat ominous sound.  I did have to fsck a few errors recently — orphaned inodes, incorrect free blocks/inodes counts, inode bitmap differences, zero dtime on deleted inodes; about 20 errors in all.  The filesystem of the partition is ext3. Is it possible to upgrade a BGA 1224 CPU? Show:$$\lim_{n\to\infty}\frac{\sqrt[n]{n!}}{n}= \frac{1}{e}$$  So I can expand the numerator by geometric mean. Letting $C_{n}=\left(\ln(a_{1})+...+\ln(a_{n})\right)/n$. Let the numerator be called $a_{n}$ and the denominator be $b_{n}$ Is there a way to use this statement so that I could force the original sequence into the form of $1/\left(1+\frac{1}{n}\right)^n$ Configure mouse speed (not pointer acceleration!) Is there way to increase the mouse speed in KDE4? I don't want any pointer acceleration, it's just the mouse speed that I want to change.  Edit: Unfortunately, editing the xorg.conf is not an option for me, because I want the users to be able to configure the mouse speed themselves and it is company policy do deny users permission to change the xorg.conf. Accidentally hit "toggle full screen", How do I exit? I'm stuck in full screen in the node editor. Escape isn't working, and I have no menus and no idea how to leave except to quit Blender and reopen the program. Automatically set description list `labelwidth` based on widest label? How do I create a description list where the item text is automatically indented to the width of the widest label?  This is the same question as  but I would like the width of the widest label to be automatically calculated.  For example, I'd like the following output:    to be produced by the following input:  \documentclass{article} \usepackage{calc} \usepackage{enumitem} \usepackage{lipsum} \usepackage[margin=1em,papersize={4in,2.2in}]{geometry}  \newenvironment{mydescription}{%   \begin{description}[     leftmargin=!,     labelwidth=\magicgoeshere,     ]% }{%   \end{description}% }  \newcommand{\text}{long long long long long long long long long long   long long long long long long long long long long long long long   long long long long long long long text}  \begin{document} \begin{mydescription} \item[The longest label] text \item[Short] \text \end{mydescription} \hrule \begin{mydescription} \item[Medium label] text \item[Short] \text \end{mydescription} \end{document} Usage and example of the word “litotes” I've come across the word litotes, which means a rhetorical understatement. However, I’m having trouble understanding how to use it in colloquial English. Could someone please give an example? How to format an inline source code Given the following sentences:        I have even started using them in normal writing.   People can understand your writing better.      Are using and writing gerunds, verbs, or some other part of speech?  Context:  I am prefixing the words in some phrases with abbreviations. Some of the words are giving me trouble in classification. (The message is supposed to be an implicit proof of why adding prefixes to table names in a database is terrible. But I'd like to get it right.)  Here's the full set of sentences for your amusement. However, please restrict your comments to the stated question, for the most part.        com-Don't ver-Listen prep-To adj-Those adj-Other nou-People.    pro-You aux-Should adv-Always ver-Use nou-Prefixes prep-With pro-Your adj-Table nou-Names.    pro-I aux-Have adv-Even ver-Started ver-Using pro-Them prep-In adj-Normal nou-Writing.   com-See adv-How adj-Effective pr-It ver-Is?    nou-People aux-Can ver-Understand pro-Your nou-Writing adv-Better!      (where com means command verb)  This question is part of 3 related questions:     This question   It originally came from What is a catchy word that means (non-)self-descriptive I'm having fun with paradoxes, and I'm trying to come up with a catchy word for non-self-descriptive.  Maybe "autosemantic" fits the bill for self-descriptive (definitely open to other suggestions!), but I'm having a hard time negating it in a natural way.  For an example of the sentence I'm trying to construct:     Is "inautosemantic" inautosemantic?   It just isn't flowing.