Browse Category: English/Angielski

Informations possibly useful for everyone – and written in English.
Informacje przydatne możliwie wszystkim – z tego powodu napisane po Angielsku.

Engraving, cutting 5.5W laser – description and proper connection

During upgrading my engraving machine (Chinese so called CNC 3018) I had to do some reverse engendering to do proper connection.  Perhaps someone else may find this information useful – so here you go 🙂

Laser itself is distributed as two part set. Laser in aluminium cooling block with fan (and four wires), and PWM/TTL controller board.

Controller board uses this main components:

  • XL4003E1 – voltage regulator with input voltage 5V-32V, 4A CC max with 300kHz switching frequency
  • IC chip MCP60021 OPAMP – operational amplifier
  • Voltage regulator 78L05 – 5V output, 100mA
  • NPN transistor D476 61C

Continue Reading

Volvo Vida stopped working and you cannot login?

If your new installation of Volvo Vida (2012 up to 2014D) does not work – you cannot log in, after fresh and proper installation. Or your existing installation stopped working… well this is because patched license has expired recently (like in 1.1.2018).

Download „patch” (2014A+) that you usually have to apply after installation of Vida, and extract „exe” file to C:\ drive (or wherever is your Vida) – do not run it, just extract it (with WinRar, 7zip etc). This exe file is just self extracting archive with post extract script.

You should have those files, after extracting:

Archive: 2014A.exe
Details: RAR 4, SFX

Attributes Size Date Time Name
----------- --------- ---------- ----- ----
...D... 0 2011-11-05 19:47 VIDA
..A.... 444 2014-04-09 16:26 VIDA/patch/filldb.cmd
..A.... 6332 2013-04-02 05:43 VIDA/patch/filldb.sql
..A.... 14580 2012-12-07 01:11 VIDA/patch/license
...D... 0 2013-04-02 04:48 VIDA/patch
..A.... 4573 2014-04-09 15:47 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/bl/logger/UsageLogger.class
..A.... 8789 2014-04-09 15:47 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/bl/logger/UsageLogHelper.class
..A.... 32927 2014-04-09 15:47 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/web/action/LoginAction.class
..A.... 9013 2014-04-09 15:47 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/web/action/LoginForm.class
..A.... 2171 2014-04-09 15:47 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/web/action/TabForm$pageURLs.class
..A.... 9593 2014-04-09 15:47 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/web/action/TabForm.class
..A.... 6986 2014-04-09 15:47 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/web/taglib/CwlListSelectorTag.class
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/bl/logger
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/web/action
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/web/taglib
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/bl
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida/web
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc/vida
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford/vcc
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com/ford
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes/com
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF/classes
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war/WEB-INF
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear/VidaWeb.war
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments/VidaEar.ear
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone/deployments
...D... 0 2014-04-09 16:23 VIDA/jboss/standalone
...D... 0 2014-04-09 16:23 VIDA/jboss
----------- --------- ---------- ----- ----
95408 28

Now the „license” file is in C:\VIDA\patch\. Look inside of it for a string:

subscriptionExpireDate=”2017-12-31 23:59:59″

Looks suspicious in year 2018?

  • just change the date in license file
  • make sure VidaMonitor and all java instances are off (javaw etc),
  • and execute filldb.cmd,
  • reboot and you are good to go!

If this doesn’t work – you probably did not kill VidaMonitor or Jboss/Java.

Good luck and fruitful hacking! 🙂

TOMO M4, 4×18650 Power Bank – fail!

I bought from China, quite neat looking powerbank on up to four 18650 cells. It has all the needed features (almost) and even more – what could go wrong?

It has:

  • Output Overcurrent Protection
  • Input Overvoltage Protection
  • Electro-Static Discharge Protection
  • Overheat Safety Protection
  • Output Overvoltage Protection
  • Battery Overcurrent Protection
  • Input Overcurrent Protection
  • Prevent Current Reverse

Nice! It can charge and discharge each cell individually, has two USB output ports with 1A and 2A output current.

You can read many other nice things about this powerbank on Internet. But the big problem is, it’s a crap! Why?

Continue Reading

Infitary 3d printer HBi3 (aka old M508) – new Marlin firmware and settings

New Infitary main board HBi3 vs M508

So, after a year of using mention printer it’s high time to do some firmware tweaking (despite all additional, already printed goodies for the printer itself). My Infitary set came with SD card, on which came also Marlin firmware source code for this printer. Because of it, we have, let’s say „configured” firmware. It’s too old to use now, but all we really need is Configuration.h and Configuration_adv.h files.

Now just a quick info. It looks like Infitary came with slightly newer version of the printer, it’s now called M508. The main difference is in the board – it looks nicer, is more colourful and it is also Ramp 1.4 now. In git repository of Marlin we cane find config files for this printer – but they will not work out of the box for my older model. I’m not sure, if it’s a proper name, but let’s call it (like in the auction I bought it) Infitary HBi3 (Prusa). The other visible thing, that has change, is the case for power supply.

Continue Reading

Gimp 2.9 – development Debian package

Gimp 2.9.3Friend of mine, asked me to create Debian package of Gimp development branch – since I’ve already had it compiled (and I do it regularly). I’ve been using Gimp 2.9 (2.9 is a development release, stable one will be numbered 2.10) for more then a year now, and I must say it was a huge change for me when I switched from Gimp 2.8.  I use it mostly for photo processing and moving from 8 to 16 bit colour space was something I just had to have. Also all multi core optimization and OpenCl usage, speeds things up. Currently I work mostly with float 32bit colour space (I find if faster on GPU then 16it) and I almost can’t imagine working without it. It’s not that everything is completely fine in this development release, but weight of features long time ago outweighed some small disadvantages.

Anyway, since I compile it on daily basis, I thought I could do the package anyway. So here you have Debian Sid package (I use only sid – sorry 😉 ). It’s quite dirty release, but it’s working and it won’t change anything on your system, you can install it simultaneously with stable Gimp release. This package will put all required files, libraries and binaries (also files that are in separate packages for 2.8 release) in „/usr/local/gimp” folder, and create a link to „gimp-dev” startup script in /usr/local/bin/ – that’s it. It will also provide the most recent gmic plugin (I use it often).

Dependencies – since all gimp, babl, gegl files are in one package, there should be not many dependencies – currently present in package are mostly from 2.8 gimp release. If you find anything missing – please let me know.

To run gimp – use „gimp-dev” command (open terminal and write „gimp-dev” or if it’s not working write „/usr/local/bin/gimp-dev”).

Package: gimp-dev_2.9.9-2_amd64.deb

  • Updated code, binary clean up (old libraries), updated mypaint library and mypaint-brushes
  • Added two new libraries – new requirements for libmng and libwebp
  • I recommend removing of entire /usr/local/gimp directory before install
  • Source update (2 January of 2018)

Package: gimp-dev_2.9.9-1_amd64.deb

  • New version 2.9.9, updated gcc 7.2 with fix for float
  • Source update (19 December of 2017)

Package: gimp-dev_2.9.7-2_amd64.deb

  • New compilation, new logo! :), desktop application definition (should be now accessible from menu)
  • Source update (12 November of 2017)

Package: gimp-dev_2.9.7-1_amd64.deb

  • Bumped version (in master tree) from 2.9.5 to 2.9.7
  • Source update (30 August of 2017)

Package: gimp-dev_2.9.5-8_amd64.deb

  • Updated dependecies for current Debian Sid repo
  • Updated gmic code
  • Today source fixes some annoying multi-threaded, opencl issues
  • Source update (19 August of 2017)

Package: gimp-dev_2.9.5-7_amd64.deb

  • Source update (29 July of 2017)

Package: gimp-dev_2.9.5-6_amd64.deb

  • Source update, switch to GCC 6.2 (19 April of 2017)

Package: gimp-dev_2.9.5-5_amd64.deb

  • Source update (some significant opencl changes), new GMIC pre 2.0 (12 March of 2017)

Package: gimp-dev_2.9.5-3_amd64.deb

  • Source update (bug fixes, logo changes :)) (8 January of 2017)

Package: gimp-dev_2.9.5-2_amd64.deb

  • Source update (quite many changes) (1 October of 2016)

Package: gimp-dev_2.9.5-1_amd64.deb

  • New release 2.9.5 (17 July of 2016)

Package: gimp-dev_2.9.3-6_amd64.deb

  • Source update (30 May of 2016)

Package: gimp-dev_2.9.3-5_amd64.deb

  • Source update (7 April of 2016)

Package: gimp-dev_2.9.3-4_amd64.deb

  • Just updated source, from 31.01.2016 – fixes few errors I’ve reported (Thanks guys!), new icon set/interface changes

Package: gimp-dev_2.9.3-3_amd64.deb

  • Compiled with less optimization (more generic binary – should now work on most amd64 cpus)
  • Fixed post-removal script
  • Fixed installation dependencies

Package: gimp-dev_2.9.3-2_amd64.deb

Neje CNC Laser engraving machine

What is it?

IMG_0778Neje laser engraver is a CNC device which can burn some small patterns on wood, paper, cork, leather and other organic or temperature non resistant, flat materials. The rule of thumb is, if the material is capable of burning or melting with temperature under 300C – you can probably use it with laser engraver. One more thing, this material can’t reflect to much light (or pass it true) – so most of shiny or transparent materials won’t work.

Now about this, exact model. It’s hard to tell – since you can find many names and different images in Chinese shops and producer does not put any mark on device itself, but judging by the driver its „DK-5 pro DK-6 pro DK-8 pro” type. So it should be „DK-5 PRO”. Be aware, then it’s not the same as „DK-5 PRO-5”, which is probably newer device with full frame (and the software is not compatible). Continue Reading

Simple script to split wave or flac file using cue description

This is simple script, that will split on big FLAC or WAVE file (usually CD rip) into small OGG files. It will also normalize OGG files, TAG them (also with data from CUE file) and rename properly.

Script requires shnsplit (from shntool), lltag, cuetag (from cuetools), vorbisgain, oggenc (from vorbis-tools) and flac

In Debian (or Ubuntu) environment you can install all tools with:
aptitude install shntool lltag cuetools vorbisgain vorbis-tools flac
apt-get install shntool lltag cuetools vorbisgain vorbis-tools flac


IRiver H320 SSD – with 16GB CF card

If you don’t need fancy-touch-screen like players, that do everything but plays music – IRiver h3x0 is still the best what you can get (well it’s maybe little too big but.. 🙂 ). My H320 is now few years old, I’v changed battery twice already – now came a time to make it SSD. It should be lighter (my 20GB HD weights 50 grams and converter with CF card only 17 grams!), more quiet, I should be able to use buffers (now assigned, to read as much as it could, music files in to memory) for other things, more reliable (no moving parts) and last – battery should last longer.

What you need?

  • IRiver H320/H340
  • Toshiba IDE 1.8” drive (40pin) converter to CompactFlash
  • CompactFlash card itself (probably 4gig or bigger)
  • Preferably RockBox

Where to get those parts?

I guess the only problem can be with HD2CF converter. But you can easily order it on DX. World wide free shipping – and here is link for you: It’s called „CF to Toshiba 1.8-inch IDE Hard Drive Converter” and it’s price, is less then $5.

Compact Flash cards are common, there are „rumours” 🙂 on net, that it should be greater then 4GB CF card to be seen by IRiver – I’ve checked only 256MB – with no luck – and 16GB – with full success :D.

Let’s get to work!

When you put wrong, or not properly formatted CF card – RockBox will hang on booting (not letting even original IRiver firmware to boot in exchange) . My card was prepared under Linux, with fdisk. Just one primary partition, type C (W95 FAT32 (LBA)), formatted with mkfs.vfat and then filled up with whole stuff from old Hard Drive.

fdisk -l /dev/sdc

Disk /dev/sdc: 16.1 GB, 16139354112 bytes
64 heads, 32 sectors/track, 15391 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       15391    15760368    c  W95 FAT32 (LBA)

There is also a tiny problem with jumper on converter board (with it’s height) – you can simply bend it – and make it joined forever 🙂


What can I say – just do it – you certainly won’t regret it!


  • lighter (50 g. of disk weight, 17 g. od CF + converter) – total weight now 152g
  • totally quiet
  • battery will last longer (not checked yet)
  • reliable (no moving parts – you can shake it all night long 😀 )
  • no screen flickering (when drive was spinning – I could see screen getting brighter and darker – now it’s solid stable)
  • more RAM for fancy stuff (no need of buffering whole song, music database etc.)

Cons (yep there are some):

  • you need to pay for it… ($5 for converter $35+ for CF)
  • it’s slower when writing – my x133 CF is only x133 (150KB/s * 133) during reading – writing is much slower (<10MB/s) … but it’s completely acceptable since we mostly read from card in players.

And here is write test 🙂

sauron:~# lsusb | grep iRiver
Bus 001 Device 015: ID 1006:3003 iRiver, Ltd. H320/H340
sauron:~# df -h /mnt/usb
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdc1              16G  4.7G   11G  32% /mnt/usb
sauron:~# dd if=/dev/urandom of=test.file count=102400
102400+0 records in
102400+0 records out
52428800 bytes (52 MB) copied, 17.1483 s, 3.1 MB/s
sauron:~# ls -lh test.file
-rw-r--r-- 1 root root 50M 04-08 21:13 test.file
sauron:~# cat
cp test.file /mnt/usb/
sauron:~# time ./
real    0m5.650s
user    0m0.018s
sys     0m0.479s
sauron:~# bc
bc 1.06.94
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
8.85 MB/s