How to `wget` a list of URLs in a text file?

Quick man wget gives me the following: [..] -i file –input-file=file Read URLs from a local or external file. If – is specified as file, URLs are read from the standard input. (Use ./- to read from a file literally named -.) If this function is used, no URLs need be present on the command … Read more

Text border using css (border around text)

Use multiple text shadows: text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff; body { font-family: sans-serif; background: #222; color: darkred; } h1 { text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1px 1px … Read more

Remove blank lines with grep

Try the following: grep -v -e ‘^$’ foo.txt The -e option allows regex patterns for matching. The single quotes around ^$ makes it work for Cshell. Other shells will be happy with either single or double quotes. UPDATE: This works for me for a file with blank lines or “all white space” (such as windows … Read more

SVG: text inside rect

This is not possible. If you want to display text inside a rect element you should put them both in a group with the text element coming after the rect element ( so it appears on top ). <svg xmlns=”http://www.w3.org/2000/svg”> <g> <rect x=”0″ y=”0″ width=”100″ height=”100″ fill=”red”></rect> <text x=”0″ y=”50″ font-family=”Verdana” font-size=”35″ fill=”blue”>Hello</text> </g> </svg>

How to wrap text in LaTeX tables?

Use p{width} for your column specifiers instead of l/r/c. \begin{tabular}{|p{1cm}|p{3cm}|} This text will be wrapped & Some more text \\ \end{tabular} EDIT: (based on the comments) \begin{table}[ht] \centering \begin{tabular}{p{0.35\linewidth} | p{0.6\linewidth}} Column 1 & Column2 \\ \hline This text will be wrapped & Some more text \\ Some text here & This text maybe wrapped … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)