Is it possible to change Caps Lock to a special character like $ (most use in PHP) ?
123634
How can xkb or some other tool be used to permanently bind Caps Lock to ctrl+b while in terminal?  (This is to make Caps Lock the default prefix key for tmux. It could also be mapped to a specific key if that's too difficult, e.g. a function key, which could then be made the tmux prefix instead.)
8360
I would like to do the following: $find = &quot;start (.*) end&quot;; $replace = &quot;foo \1 bar&quot;;  $var = &quot;start middle end&quot;; $var =~ s/$find/$replace/;  I would expect $var to contain &quot;foo middle bar&quot;, but it does not work. Neither does: $replace = 'foo \1 bar';  Somehow I am missing something regarding the escaping.
47978
I want a similar behavior as less vim nano etc. uses.  Is this possible to achieve with bash?
5134
By default  indents with a hard tab character. How do I change it to spaces?
24361
For example:  me$ FOO="BAR * BAR" me$ echo $FOO BAR file1 file2 file3 file4 BAR   and using the \ escape character:  me$ FOO="BAR \* BAR" me$ echo $FOO BAR \* BAR   I'm obviously doing something stupid.  How do I get the output BAR * BAR?
50488
If I have a string that looks like this:  "this_is_the_string"   Inside a bash script, I would like to convert it to PascalCase, ie UpperCamelCase to look like this:  "ThisIsTheString"   I found that converting to lowerCamelCase can be done like this:  "this_is_the_string" | sed -r 's/([a-z]+)_([a-z])([a-z]+)/\1\U\2\L\3/'   Unfortunately I am not familiar enough with regexes to modify this.
57153
Yes, I know there's a script for that. But I think it's useful enough to be inserted into the live chat for everyone.  The following keyboard shortcuts are incredibly useful:   CTRLUp and CTRLDown - For replying to messages (each Ctrl+Arrow should change the :[message ID] in the chat input. CTRLSpace - For retrying a failed message, or ESC to cancel it. There should also be a keyboard shortcut to edit a failed message as per the newest functionality (Maybe the Down key?)   Using a chat with only the keyboard is very useful, it will be especially appreciated on chats with a more technical nature.
59472
What’s the best way to capitalise the first letter of each word in a string in SQL Server.
14408
The symbol I would like to obtain ought to be like the symbol '\pm'.
4609
How do you disable autocomplete in the major browsers for a specific input (or form field)?
74181
I have a table that was imported as all UPPER CASE and I would like to turn it into Proper Case. What script have any of you used to complete this?
5405
If I pass PHP variables with . in their names via $_GET PHP auto-replaces them with _ characters. For example:  &lt;?php echo "url is ".$_SERVER['REQUEST_URI']."&lt;p&gt;"; echo "x.y is ".$_GET['x.y'].".&lt;p&gt;"; echo "x_y is ".$_GET['x_y'].".&lt;p&gt;";   ... outputs the following:  url is /SpShipTool/php/testGetUrl.php?x.y=a.b x.y is . x_y is a.b.   ... my question is this: is there any way I can get this to stop? Cannot for the life of me figure out what I've done to deserve this  PHP version I'm running with is 5.2.4-2ubuntu5.3.
2766
Is there a case insensitive version of the  jQuery selector or should I do the work manually by looping over all elements and comparing their .text() to my string?
44526
I don't use bash often but I recall in the past to pass a tab or newline on the command line I would have to escape the character using the special $ character before a single quoted string. Like $'\t', $'\n', etc. I had read about   What I want to know is when it's appropriate to use an ANSI C style escape. For example I was working with a regex in grep and it appeared I needed an ANSI C style escape for a newline. Then I switched to perl and it seemed I didn't.  Take for example  about a perl regex that didn't work. Here's the regex I was using:   echo -e -n "ab\r\ncd" | perl -w -e $'binmode STDIN;undef $/;$_ = &lt;&gt;;if(/ab\r\ncd/){print "test"}'   It turns out that is actually incorrect because I gave the string ANSI C style escape by using $. I just don't understand when I'm supposed to prepend the dollar sign and when I'm not.
1514
On the main site, you can (for example) ignore tags using this notation [tag:foo*], which will ignore stuff tagged as  but also .  The nice markdown highlighter for tags seems to have a problem with asterisks, though -- as you can see in this post.  I would have expected them to be highlighted the same way as they are on the front page.
28523
Here's a PHP example of mine. Can anyone find a shorter/easier way to do this?  &lt;? foreach($posts as $post){?&gt;     &lt;div class="&lt;?=($c++%2==1)?‘odd’:NULL?&gt;"&gt;         &lt;?=$post?&gt;     &lt;/div&gt; &lt;? }?&gt;  &lt;style&gt;     .odd{background-color:red;} &lt;/style&gt;   Examples in other languages would be fun to see as well.
19595
I quite often see JavaScript with variables that start with a dollar sign. When/why would you choose to prefix a variable in this way?  (I'm not asking about $('p.foo') syntax that you see in jQuery and others, but normal variables like $name and $order)