Pi and I
Setting up my Raspberry Pi. Experiences with crunchbang, ubunutu, bunsenlabs help, but in Raspbian some things still are slightly different, namely:
(1) Autostart
Autostart
Setting up my Raspberry Pi. Experiences with crunchbang, ubunutu, bunsenlabs help, but in Raspbian some things still are slightly different, namely:
Autostart
My NextGen gallery kept vanishing on my WordPress frontpage. It did not show as long as the page was set to front page, as soon as I picked a different front page, the images reappeared. Even when I changed the theme, the gallery disappeared.
I checked and rechecked the source code, but what I apparently missed was the gallery being wrapped in auto excerpt tags:
<!-- Begin :: Generated by Easy Custom Auto Excerpt --> <div class="ecae"
Universal Plug and Play (UpnP) is developed by the Digital Living Network Alliance (DLNA) and has interoperateability in mind. See Make Use Of for a list of possibilities.
Server: Subsonic
Install from here http://www.subsonic.org/pages/installation.jsp
Costs $1/month to use pro features
Get started here
sudo
Anyway, the whole setup was a true Linux afternoon, reminding me of my NDISwrapper-days, just like it was 2006 again.
First, It took me a while to get crunchbang to discover the device and connect [1] (Blueman works much better as a bluetooth manager). Then apparently I manually needed to let pulseaudio know where to send the audio [2]. Atfer fiddling with some files, pulseaudio was broken, so I needed to reinstall [3]. Finally, the sound was much poorer than via my phone. I don’t know if I overlooked it or if loading rtirq changed something [4], but in the volume control center of pulseaudio there is a tab called »configuration« where I had to choose »High Fidelity Playback (A2DP)« to get decent sound (instead of »Telephony Duplex (HSP/HFP)« or »off«). Now most of the times it changes to the Bluetooth-device automatically once I switch it on and back when I switch it off. Sometimes not. But hey.
The sources I used were these:
How to make pulseaudio bluetooth-ready: http://askubuntu.com/a/223203/80611
How to switch the sink in pulse audio: http://askubuntu.com/a/108882/80611
How to clean up after you screw up (which I did), i.e. reinstall pulseaudio: http://askubuntu.com/a/435221/80611
How to improve the sound once it works but reminds you of a telephone: http://askubuntu.com/a/520384/80611 and
What I get when I come home is file names looking like this: _DSC1234.NEF. What I wanted instead was
looking like this: 20140708_WeddingAdamAndEve_0001.NEF
There are a few issues with this:
ad 1. Date Shot: sometimes I can only copy and rename the files a few days after shooting, so the date should reflect the date the picture was taken, not the date it was copied. Getting date-shot from the file itself is difficult as there is no birth time recorded. The closest is mtime which is the time the file’s content has last been modified. However, creation date is stored in image file’s EXIF data.
ad 2: Name of Shoot: Ideally I wanted this to be a variable I could set as a parameter when calling the script.
ad 3. Number of Image: This should reflect the age of the image with the oldest one having the lowest number. The problem is that cameras usually restart numbering at 0000 once they hit 9999. So images n-9999 can potentially be older than 0000-n. I needed a solution that would cater for this special case.
# original solution by @Gilles (http://unix.stackexchange.com/questions/141138/) # set base
A slightly outdated version is in debian’s repositories, but if you want a newer one, go to »Kbyte’s Hideout«. Download .deb package and dpkg -i rawtherapee_<xxx>.deb
If there are unsolved dependencies: apt-get install -f and then dpkg -i rawtherapee_<xxx>.deb
Well.
It still is the most straightforward programme I know for editing, simple retouches and exporting smaller sizes. I’m not happy with wine, I’m not happy with a google tool, but I cannot and cannot find an alternative (see here). Hence:
before following the
Polypager’s strength clearly was in handling the database – it has foreign key capability and without the faintest complaint, Polly will display any mysql-database it is being fed. However, it was never built with serving images as a central part in mind. There is a gallery plugin in place, but my desires soon surpassed the capabilities.
Zenphoto in turn is fantastic in handling text and images (and video by the way, which surprisingly posed the biggest hurdle in wordpress – the other was 301, but in the end Tony McCreath’s redirect generator helped). The problem with zenphoto is more an aesthetic one as the available skins are limited and don’t really meet my expectations. The one I hacked together unfortunately »grew organically« over the years until recently it gracefully started falling apart.
Thus, today I make the move to WordPress and while I am at ease parting from Zenphoto, leaving Polly behind really hurts. So, thanks Nic for developing it and having me aboard, because in the process, I learned many a thing about distinguishing sensible feature requests from the other ones, about version management using svn and git, and also, in 2008, about how it feels to be at the receiving end of a proper hack.
sudo add-apt-repository ppa:webupd8team/unstable
sudo apt-get update
sudo apt-get install go-mtpfs
Optional:
sudo apt-get install go-mtpfs-unity
Mount:
go-mtpfs
When you connect your camera to your computer and have the image displayed on your screen as you shoot, it is called »tethered shooting«. One reason
I closed my eyes, hoped for the best and thoroughly rinsed it. Then, like people in this 2005 Boing-Boing-piece recommend, I placed it over a radiator for three days, turned it round from time to time and today I plugged it back in.
Result? It works as good as new!
Setting it up was a lot easier then I though. All it took was rbgeek’s exccellent article »File Synchronization Between Two Ubuntu Servers using Unison«.
Falko Timme’s article »
It’s very easy and very fantastic: User defined Tags.
Since 12.04 my thinkpad (T60) regularly shuts down due to heat. I don’t like it and I am afraid of damage – to hard drives or to the system.
The
For a long time I have been looking to replace Picasa (the desktop programme) but haven’t been able to come up with a true alternative. Many people
bibtex: Not writing to <project-path>/src.blg (openout_any = p).
I couldn't open file name `<project-path>/src.blg'
To get rid of the error, open texmf.cnf, which resides in /usr/share/texlive/texmf/web2c through
sudo gedit /usr/share/texlive/texmf/web2c/texmf.cnf
Then find the entry
openout_any = p
p is the paranoid setting. I changed it to r and it now works again (chapeau to dmj).
[update 31 Jan 2013] If sudo is not an option and thus texmf.cnf can’t be changed, see Sini’s helpful comment below. [/update]
If you want to learn about multiple bibliographies using multibib, there is a very good tutorial by peisistratos. Unfortunately it is in German, but I’m sure there are English ones out there, too.
After an earlier failed attempt at owncloud 4 I’m prety happy with OC 5 now and succesfully sync contacts, calendars and some files in between
RewriteEngine on
RewriteBase /
Then, for the actual rule there’s a lot of generally helpful stuff out there – only it didn’t help me:
My task was to replace a chunk from a dynamic URL and leave unchanged whatever was before or after this chunk.
The example was the page you’re reading at the moment. It used to be called »Recettes« and I wanted to rename it to »Recipes«.
The overview was reached through http://www.brasserie-seul.com/?Recettes, but this article had the URL http://www.brasserie-seul.com/?Recettes&nr=60. In addition this page has groups, so there is also http://www.brasserie-seul.com/?Recettes&group=web, […]group=ubuntu etc.
It took me literally hours of research, until I finally found Carolyn Shelby’s very helpful article. Her code took me almost there:
RewriteCond %{QUERY_STRING} ^(.*)Recettes(.*)$
RewriteRule ^$ Recipes? [R=301,L]
This would take any URL containing the string »Recettes«, no matter where in the url it was, replace it with »Recipes« – and loose everything that followed. Now, Carolyn’s last example contains something she could have been doing if her strings were consistent:
RewriteCond %{QUERY_STRING}
New XAMPP
For instance he did show an epic laxness concerning his personal data by not obeying Schofield’s 2nd law of computing. It states »data doesn’t really exist unless you have at least two copies of it.« I do obey this law by using backintime and I recommend you use something similar.
The guy also daisy-chained password-resets and email-accounts, offering a single point of entry to his digital everything. This got me thinking about my own passwords. They are generally very strong and I have a lot of different passwords. Sometimes too many different ones, so I keep forgetting which ones I used where. But sometimes not enough different ones, as some applications share some passwords. This needs to change, so it is time for a password manager.
[update 30.8.2012] I installed KeePassX a while ago and am quite happy. I thought I had found the perfect combination when Nic mentioned the open source self hosted oneCloud, but I failed. Looking for another solution, I went for ubuntu one.
Ubuntu one does not support android 1.6 any more, but ES File manager does. And it also does support ubuntu one.
[update 26.9.2019] Bill of Pixel Privacy sent me an article on passwords which has a lot of interesting facts and figures. So if you think all this doesn’t concern you, you might want to check it out: https://pixelprivacy.com/resources/reusing-passwords/
[/update]
What are the options?
Passwordmaker
KeepassX
for *nix-based systems
+ independent from KeePass but they share a db-format, so you can port stuff
+ GNU & Open Source
KeePass
? Any connection to KeepassX?
+ Has a portable version
+ independent from KeePassX, but uses same db-format, so you can port your stuff
– needs wine or windows
First surprise:No issues. Only: apparently all of a sudden my computer needs a /boot partition, so my partition map looks like this:
1.
Says Mira Maier, founder of MyStipendium.de:
One in five foundations does not receive suitable applications, thus they don’t know
[update 2011-11-10] Both this and Nic’s article have been featured on tt-rss’ project site. There are a bunch of other interesting and useful articles, too, so check it if you’re interested in tt-rss. [/update]
A while ago, Google updated their reader, killing one of the best features: sharing. I looked around a bit for a suitable alternative and in the end settled with tiny, tiny rss.
Advantages:
Nic, who thankfully came up with this great alternative, has a more techno-philosophical article on the switch.
Some minor issues I had while installing:
Problem: during installation I got the fatal error
php.ini: open_basedir is not supported
Solution: Open <tt-rss-root>/sanity_check.php and find the entry Update: in recent versions it’s in <root/include>
if (ini_get(“open_basedir”)) { $err_msg = “php.ini: open_basedir is not supported.”; }
Comment it out (using // at the start of each line).
All credit and a major hat tip goes to demaya.
[update 2011-11-22:]
Solution 2: see here (thanks to Reperiam for his comment below pointing it out.)
[/update]
Problem: In Goolgle Reader I had organised my feeds in folders, they were gone in tt-rss
Solution: Before importing, go to preferences in tt-rss and enable feed categories
Problem: On importing the OPML I had a timeout in Firefox and the following error in Chrome:
Exception: TypeError: Cannot read property ‘innerHTML’ of null Function: opmlImportComplete()
TypeError: Cannot read property ‘innerHTML’ of null
at opmlImportComplete (http:///prefs.js?1320259102:791:35)
at HTMLIFrameElement.<anonymous
(http:///prefs.php:1:141)
at HTMLIFrameElement.onload
(http:///prefs.php:2:4)
Solution: Ignorance. Apparently it’s not a tt-rss problem but one of the browser, so just ignore it.
Just make sure that on your server
Want to create a Fedora live USB from ubuntu or make a pen drive with ubuntu in Fedora? Sick of instaling liveusb-creator under ubuntu or usb-creator
\usepackage{ulem} in the preamble gives you two ways to strike out text (and a couple more for underlining):
\sout{text
I have phases in my work cycle, where I want to limit internet access to myself. Thus, I created a »work-user« and in the user’s properties
I was somewhat flabberghasted when I found out my mobile phone (Sony Ericsson Cyber-shot) was unable to play .mp4, .flv, .avi and what else I tried.
In short: To avoid the standard pixel bitmap fonts and go for smooth, scalable post script ones, use one of the following:
In css there is the handy absolute positioning. Today I found out how to do it in LaTeX:
In the preamble
\usepackage{textpos}
In the document
\begin{textblock}{2}[0,0](8,1.5)
Lorem ipsum dolor sit amet
\end{textblock}
The arguments
I left biting marks in the table on this one. I don’t know if it’s a general issue or just my document. Anyway:
I wanted to have footnotes
By default LaTeX starts the footnote counter at zero for each chapter when you use the class {book} or {scrbook}. If you want to avoid that and have
There are various possibilities to include Greek text in your LaTeX document. The three ones I found are these:
$\Gamma\rho\varepsilon\varepsilon\kappa$
gets you Γρεεκ allright, but it looks clumsy and lacks all the accents etc.Nos. 2 & 3 use ngerman, so make sure they don’t start a fight with german.
I had a slight problem with polutonikogreek and titletoc. Whenever I used something like
\greek{p’olemos}
which referred to this entry in the preamble:
\newcommand*{\greek}[1]%
{\selectlanguage{polutonikogreek}{#1}%
\selectlanguage{german}}
the .toc-file looked like this at the corresponding place:
[…]
\contentsline {section}{\numberline {1.1}KAPITEL-1.1}{14}
\contentsline {subsection}{\numberline {1.1.1}UNTERKAPITEL-1.1.1}{14}
\select@language {polutonikogreek}
\select@language {german}
\select@language {polutonikogreek}
\select@language {german}
\contentsline {subsection}{\numberline {1.1.2}UNTERKAPITEL-1.1.2}{20} […]
Wherever \select@language appeared in the toc, the styling of my toc entries of the subsection level was being messed up. I style subsection entries in the toc in a way that they all get written in a single line. It looks like this:
\titlecontents*{subsection}[3.5em]
{\vspace{-0.5mm}\itshape\footnotesize}{}%
{}{\dots\normalfont\footnotesize%
Here is what we do: We define the counter
\newcounter{MyCounter}
then we add
\renewcommand\theMyCounter{\roman{MyCounter}}
after it, and it works. Thanks to Axel for his help on this.
When you define a new counter like this
\newcounter{MyCounter}
And later use it like this
\refstepcounter{MyCounter}\label{example}
\roman{MyCounter}. Beispiel eins
And then
While working on a somewhat larger scale document I always end up with numerous prints, .dvis,