marcelpetrick

export a git-repo as a bundle

Written by  on July 31, 2017

Archiving the whole directory is also an idea, but why not use the integrated functionality?
More hints: https://stackoverflow.com/a/5578292/1694302

export to a single file (bunlde):
git bundle create ../SAP_autoIt_bundle --all

recreate:
git clone SAP_autoIt_bundle myClonedFolder

Prepare an SD-card for Raspberry Pi (3)

Written by  on July 30, 2017

Download latest Raspbian-image:
* https://downloads.raspberrypi.org/raspbian_latest

Install etcher:
* add “deb https://dl.bintray.com/resin-io/debian stable etcher” to /etc/apt/sources.list
* “sudo apt-key adv –keyserver hkp://pgp.mit.edu:80 –recv-keys 379CE192D401AB61”
* “sudo apt update && sudo apt install etcher-electron”

Use etcher .. (I think this step is self-explanatory).

20190807: etcher for Win (10): https://github.com/balena-io/etcher/releases/ – also as portable version

Jubilate deo!

Written by  on July 4, 2017

Ok, today arrived the Calliope mini and after doing all my chores I spent one hour tinkering with the tiny star 🙂
An improved version of one of the suggested projects: the first part of “Ode to joy” from Beethoven together with a blasting animation. Start by pressing “A”.

clean my code: reloaded!

Written by  on June 21, 2017

As always: some projects need a first (working) implementation and then over time you can improve them.
During lunch I was talking with a colleague about this tool. Then the idea to just use those actually changed files from the current implementation (means: the current branch in Git) shall be used as input. Et voila: consider it done!
Also added some fine-tuning to the call-parameter of the script itself, so it can be run as well with some custom string beside “todoM” (which is my marker).

Cleaning an implementation of properly tagged lines takes now a second – not minutes (like before!
Enjoy and have fun 🙂

Code can be found as always at https://github.com/marcelpetrick/cleanMyCode/blob/master/remove_todoM.sh

windows shell: some sleep-replacement

Written by  on June 20, 2017

Ok, “wait” does not exist and “sleep” as well too.
Then there is the infamous ping-trick:

But the solution is:

collection of hints for the easier use of cygwin

Written by  on June 14, 2017

some better package-manager than via that set-up.exe: apt-cyg!
url: https://github.com/transcode-open/apt-cyg
=================================================
make shell-scripts runnable under Win (7):
add to the first line after “#!/bin/bash

else you get the error message that “\r” is not a command … ha
=================================================
how to use proxy for firewalled use:

Maybe more will be added. All just small, but fixing tricky

shell-script to clean a project

Written by  on June 14, 2017

I like to decorate the code with some debugging-messages, explicit variables, etc. while developing a feature or fixing a bug. Problem is that other team-members will not like that (or the amount ;)).
So, I commit the current state with Git and then remove all lines marked with the comment “// todoM”. Since this some non-creative work, why not automate it?

Code for the bash-script now on github: https://github.com/marcelpetrick/cleanMyCode 🙂

Further improvements like massive parallelization planned!

edith 20170619:
The fourth version relies now on some exported bash-function, so that GNU parallel can be used to speed up the process by parallelizing the search&replace inside the file- (-list given by find).
This helps, just I/O is now the bottleneck. CPU-speed not.
But I’ve always wanted to experiment with “parallel” and see how to use this. I should improve the “contactSheet”-script as well. Or the cat-cam-script .. endless opportunities ..

Calliope mini

Written by  on May 30, 2017

Ordered me a Calliope mini today. This is some micro-controller-project from several german instituations to allow pupils beginning from early grades to lay their hands on something similar to a Raspberry Pi. After playing around with the code-generator (one of them ..) I placed my order. 35 € is for the given package (board + periphery) ‘average’, but I am interested in how easy it would be to teach someone (;)) completely programming-unaware how to “do this”.

My first example from the code-gen ():

Install wordpress on a DSM213

Written by  on March 28, 2017

.. just for your information: don’t touch any of the suggested settings while installing the package. Because: else it won’t install! My monthly award for most awkward design goes to: SNYOLOGY!
I spent now 15 min to find this out – if I would have stuck to the defaults, I would be done in a second!

create win7-usb-drive under Linux

Written by  on December 19, 2016

Ok, first I squashed the only computer with a cd-burner. Installed Linux Mint 18.1. Everything perfect, went on to install VirtualBox and then Win7 as guest. Ran some checks while waiting. Noticed that in 2016 NO VIRTUALISATION solution SUPPORTS IEEE1394!
Ok, then just install Win7 again. Noticed I can’t find my burned install-DVD, had just an ISO.

# format usb-drive as NTFS
# download Unetbootbin as special version: allows to select NTFS- and other partitions
# select ISO, hook “show partitions”, select /dev/sdb or whatever it is
# plug out, plug in, start, select boot device, install … wait over 9000! hours.