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.