TinyURL widget - shorten your URL's for free!

Enter a long URL to make tiny:

Friday, November 14, 2014

How to include SVG graphics in latex compiles

Don't use latex, use pdflatex with  --shell-escape option

pdflatex --shell-escape condition-test

Example:  condition-test.tex


\documentclass{article}
\usepackage[inkscape=/usr/bin/inkscape]{svg}
\usepackage{amsmath}
\usepackage{etoolbox}

\newbool{EPUB}
\booltrue{EPUB}

\begin{document}
This is a test of the conditional change to SVG graphics for cards.

\begin{figure}[test]
      \centering
    \ifbool{EPUB}{\includesvg{queen-diamond-red}
    }{
    \includesvg{king-skull-black}
    }%
  \caption{svg image switch}%
\end{figure}

\end{document}
The  queen-diamond-red  SVG image.
https://www.dropbox.com/s/aug0drcrl45xj5h/queen-diamond-red.svg?dl=0

The King skull alternative SVG image.

 https://www.dropbox.com/s/3sw7tdsojydu3at/king-skull-black.svg?dl=0

Online Free HTML Editor with instant preview

http://www.w3schools.com/html/tryit.asp?filename=tryhtml_table

OK so you need to do a little HTML editing but you don't want to run any software or load it onto your machine?

Go to TryIt Editor from W3C Schools at the link above and edit an HTML text snippet online. 

Tuesday, November 4, 2014

Forcibly removing debian packages from ubuntu

If you have a broken package on ubuntu and you want to get rid of it, then you need to remove the bad package - in this file called PACKAGE - from the file  folder  /var/lib/dpkg/info/* . It holds the info files:

for example

nordugrid-arc-ldap-infosys.conffiles
nordugrid-arc-ldap-infosys.list
nordugrid-arc-ldap-infosys.md5sums
nordugrid-arc-ldap-infosys.postinst
nordugrid-arc-ldap-infosys.postrm
nordugrid-arc-ldap-infosys.prerm
These must all be moved out to avoid dpkg from exiting on error.

Run these commands on the Package to excoriate it:



mv /var/lib/dpkg/info/PACKAGE.* /tmp/
 
dpkg --remove --force-remove-reinstreq PACKAGE
  


Saturday, November 1, 2014

My complaints against LaTeX

There are a lot of real advantages to the LaTeX / TeX document preparation software suites developed for real publishing applications.  Those that know these tools can recite all of them to you at length. 

I am not going to describe them to you because they are well documented by people cheering for them.  I can't argue that LaTeX / TeX and so on can't be used to do many things.  I hope to be able to do these great things, presuming

The great things done are all based on one simple fact: you need to know the system, to understand them fully, and to spend a lot of time reading and researching to get all the arcane answers.

It's ultimate power is also it's greatest weakness.  The problem is that the knowledge is held by a cabal, a group of technocrats that look down their noses at you if you don't want to spend a lot of time getting acquainted with all the ways to use LaTeX. 

I used to be an apologist for a lot of problems in Linux or open source software, the fact that free and open are big assets to many projects.  But not everyone can accept the weaknesses that come with no support, little documentation, and a small community that could help you if they were still around to answer emails.  A lot of open source software dies on the vine because people aren't paid to develop it at school, they get bored or have a kid and so on. Without the monetary incentive it gets lost.  It's actually a great tragedy - code that wastes away without use.

Now, LaTex is the same kind of development, lots of power, lots of thoughtful users, but it still needs a lot of quaint specific knowledge.  And the possessors are mostly snobby and unhelpful. 

Most people use simple word processors because they don't want the hassle of learning to code their word processing.  LaTex and ilk requires an investment that most people don't want to make.  They aren't paid to learn processing - that can be solved by simpler software.

So it's a new fresh hell when you try to learn - because most people weren't educated with LaTeX  - most weren't in diapers when it was written.  It's hard to get help and the people that know this stuff don't waste their time improving documentation - especially new examples - to help those that need it. 

To sort this out, the LaTeX community must get past their egos and truly help people learn their system or it will end up in the open source graveyard. 

Saturday, October 11, 2014

Replace Audi Ax key fob battery



The new Audi keys have the same battery as Apple TV remotes : the CR 2032.
Front side has buttons. Back side is black plastic.

You take the chrome key out of the bottom with a button. Push button and pull out.  Inside the key on the front side there is another button on the other side inside of that recess. Push button and pull slide out to reveal the battery case.

Battery pops into holder.

Reverse operation to complete. 

Thursday, October 2, 2014

How to make a butter knife when you are travelling abroad so you can make a peanut butter sandwich.

How do you get a knife from basic materials when you are at a hotel and just want a peanut and jelly sandwich?  Say you are in a foreign hotel. You couldn't carry a knife since you went through security. And hotels want you to buy a restaurant meal so there's nothing close not even tea spoons in most hotels.

You could go to corner stores but you can't buy a single plastic knife.

So here's a simple way.

Go to a local market and buy a set of plastic cups.

Plastic cups come in two varieties. Soft ones and hard ones.

For Hard ones, shatter the plastic cup bottom and then peel away one side for the knife.  You can bend it back and forth to make a sharp edge where you want it.


For Soft plastic cups, you bend the top rim so it has a crease, then take a pen and jab the side of the cup.  That will open the plastic and it will tear along the fibres.   Remove the bottom of the cup from the sides. For softer cups I would tear a larger sheet of plastic and fold it in half for more strength.

Now you can make that peanut butter sandwich on the cheap!


Friday, September 19, 2014

How to make clear path lines inside Google Earth paths

If you don't want to see the lines you make in Google Earth, there is little documentation on this aspect. 

I found one simple way to do it.

Select the Path from the Places subtab or inside the right-click menu from the path select the Properties

Then select Style, Color submenu

Then change the line width to zero and it will disappear.