.htaccess Tips

Sometimes I have to play with htaccess files.  This is usually followed by a process of ‘its been a while since I used htaccess, what are the options again?’ and a search of various blogs, manuals and other articles.

Here is a nice summary of what your htaccess should cover when deploying a new page.

http://www.noupe.com/php/htaccess-techniques.html

Monkey’s Brain Can “Plug and Play” to Control Computer With Thought

This is pretty cool.  The title says it all… well maybe it should be plug then play a few days later since there is still a learning curve. However the idea that you can attach a prosthetic to some neurons and eventually you’ll have a cortical map form so your brain can repeat the same actions – fire those same neurons in the same pattern to control the device over and over again. 

But there is a further element of coolness (excluding the fact that the monkeys are exploitmented on – dont know a solution for that one) in that once researches figured out a mapping between neurons, brain signal patterns and intended control, the monkeys could adapt to different mappings that had the weightings in the mapping a little ‘off’.  So basically the cortical map the brain formed had adapted too.

The downside is that the implementation currently is still in the lab stages.  And its attaching directly to your brain so only people looking for permanent solutions (ie those with disabilities) need apply.  But it is a step in the right direction to be able to interact more efficiently with machines and eventually and more importantly, interact with each other.

http://spectrum.ieee.org/robotics/medical-robots/monkeys-control-computer-with-thought/0

Patellar Tendinitis

I have a contact in the health-fitness industry point me in the direction of this condition after I explained I was having an on/off pain under my kneecap.

http://www.athleticadvisor.com/Injuries/LE/Knee/patellar_tendinitis.htm

http://en.wikipedia.org/wiki/Patellar_reflex

Need a map?  http://www.innerbody.com/image/skel12.html

http://orthopedics.about.com/cs/patelladisorders/a/kneecapdisloc.htm (not this bad, thank goodness)

Usual disclaimer about not following self-diagnosis and getting a 2nd opinion from a medical professional applies.

Multitail

Here is something that sounds neat… There’s nothing on earth like a genuine, bona fide, electified, six-log multitail, what’s i’d say? multi-tail.  What’s it called? multi-tail.  That’s right! Multitail! … multitail, multitail, multitail…

http://www.vanheusden.com/multitail/index.html

Basically it lets you tail multiple files in one console, all placed side by side

For linux, solaris and friends.

Folk IT – and other articles about dealing with the business

An interesting article for those who have the time.

Its about business coming up with solutions to IT probs – ‘Folk IT’ – since they learn the IT terminology when things go wrong, they may as well contribute to the solution right?  right?  wrong….

http://iansrobinson.com/resources/representing-the-enterprise/

Taken from the Thoughworkers article list here.  Something I’d love to read more of when I have the time.

Shared Libraries on Linux

Fun = figuring out shared library deps on linux.  Not…

This useful article (Program Library-HOWTO) talks about how lib files are discovered and what you can do to force them to be found.

LD_LIBRARY_PATH which I’ve seen many times before, allows you to specify a library ahead of others so you can do

LD_LIBRARY_PATH=.:/my/better/lib.so:$LD_LIBRARY_PATH

If you want to see which libraries a process is using then do

ldd /path/to/your/process

There is still a magic to how those libraries then link off and refer to others but this is considerably more than I knew 24 hours ago 🙂

Multiline Bash

This is so simple, yet so easily forgotten

$ echo ‘this is a test of the emergency
> backslash multiline
> prompt system.
> When will it end, I dont know for sure
> how about if i close the string’

this is a test of the emergency
backslash multiline
prompt system.
When will it end, I dont know for sure
how about if i close the string

So in your sh scripts, can end each line with a sole backslash, for your command to wrap to the next line (and make your scripts easier to read).

Apparently, env variable PS2 will define what the > prompt appears as.

References: http://ubuntuforums.org/showthread.php?t=1062297