Foto batch resize and rename
Submitted by rac on 30 December, 2011 - 01:32.Resize
Install the Nautilus extension
sudo aptitude install nautilus-image-converter
Rename based on EXIF data
exiv2 -r'%Y%m%d-%H%M_:basename:' rename $(ls)
- Add new comment
- 264 reads
Generate strong passwords
Submitted by rac on 9 December, 2011 - 22:02.Installing the tool
$ sudo aptitude install apg
Using it - the simplest way
$ apg
Entering some random data
Please enter some random data (only first 16 are significant) (eg. your old password):>
Output
6 random passwords like this:
Kaswaym3 (Ka-swaym-THREE) Nugbubrish9 (Nug-bubr-ish-NINE) Bydfust0 (Byd-fust-ZERO) DigCavpifob7 (Dig-Cav-pif-ob-SEVEN) OlbOrdUv4 (Olb-Ord-Uv-FOUR) CemKirEj4 (Cem-Kir-Ej-FOUR)
- Add new comment
- 255 reads
Create sftp only accounts on ubuntu server
Submitted by rac on 25 November, 2011 - 23:52.Configuring OpenSSH
Edit the file /etc/ssh/sshd_config and change the line that starts with
Subsystem sftp /.....
to
Subsystem sftp sftp-internal /.....
and add following block at the end of this file:
Match group filetransfer ChrootDirectory %h X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp
Finally restart OpenSSH
/etc/init.d/ssh restart
Create the sftp only group
addgroup filetransfer
Create a user and jail it into that group (no SSH login allowed for them)
adduser username usermod -G filetransfer username
- Add new comment
- Read more
- 399 reads
Latex
Submitted by rac on 16 February, 2011 - 12:27.
MAKE file
-
PDFLATEX = pdflatex
-
BIBTEXT = bibtex
-
MAKEINDEX = makeindex
-
PDFVIEWER = evince
-
output_file = da-mracic-mapsu.pdf
-
output_file_latest = da-mracic-mapsu-latest.pdf
-
latex_main_file = doku
-
-
C_BLUE="`tput setb 1`"
-
C_NORM="`tput op`"
-
-
-
#-------------------------------------------------------------------------------
-
-
-
all: $(output_file)
-
-
view:
-
$(MAKE) all
-
$(MAKE) clean
-
$(PDFVIEWER) $(output_file_latest)
-
-
clean:
-
$(RM) *.aux *.dvi *.ilg *.ind *.log *.lol *.out *.toc *.ps *.glo *.nlo *.ilg *.nls *.bbl *.blg
- Add new comment
- Read more
- 1041 reads
Git
Submitted by rac on 16 February, 2011 - 12:10.Initialize local git repository and create origin master
Go to the root directory you want for this repo and execute following commands
local$ git init
Create the repo on your server
local$ ssh server server$ cd /path/to/git/root server$ mkdir newrepo.git && cd newrepo.git server$ git --bare init server$ exit
Add the origin master to your local git
local$ git remote add origin ssh://server/path/to/repo.git local$ git push origin master
clone a git for local changes that can be pushed again to origin master
- Add new comment
- Read more
- 679 reads
SSH login with key
Submitted by rac on 15 February, 2011 - 21:27.Create ssh key on local computer
If you haven't already created a key to use, you can generate a RSA key with the following command
ssh-keygen -t rsa
Add the key to the destination server
All you have to do is to copy the public part of your key onto the server's .ssh directory
ssh-copy-id -i ~/.ssh/id_rsa.pub target.server.net
- Add new comment
- 1533 reads
SpeakerProximity v.0.3.1 beta in the market
Submitted by rac on 9 October, 2010 - 13:35.
I just published SpeakerProximity version 0.3.1 beta to the Market as a donate version.
This is an OpenSource app, the code and an APK is available on the Project page
- rac's blog
- 6 comments
- Read more
- 3104 reads
Google opens Market for some more countries and allows merchant accounts for Developers
Submitted by rac on 1 October, 2010 - 07:55.I got a mail from Mountain View today morning at 00:49 telling me about the new opened paid markets and to my surprise they allow merchant accounts for 20 more countries now.
- rac's blog
- Add new comment
- Read more
- 2455 reads
Android Splashscreen
Submitted by rac on 3 April, 2010 - 17:37.
Howto implement a splashscreen in android


While working on the easter theme for Frozen Bubble (Frozen Egg => market://search?q=pname:ch.racic.frozenegg) I searched for a way to show a splashscreen while the app was loading.
The first implementation of a splash screen was to start a small activity that shows a splash image for a certain time period and the starts the main activity but this still shows the black screen while loading the main activity.
I remembered that toast messages can be customized and can contain images, thats my second implementation that I want to show to you.
Feel free to comment if you have better ways or ideas how to implement a splashscreen better.
Code listings after the break...
- 8 comments
- Read more
- 10935 reads
Frozen Egg
Submitted by rac on 1 April, 2010 - 02:43.

I made an easter theme for Pawel Aleksander Fedorynski's port of Frozen Bubble and published it to the market as Frozen Egg (market://search?q=pname:ch.racic.frozenegg).
All credits belong to him as I just edited the graphics file.
- rac's blog
- Add new comment
- Read more
- 3738 reads
