Add message to order
To add a comment or a notice to an existing order, you can use the following method: <?php $oOrder = Mage::getModel(‘sales/order’)->load(ENTITY-ID) ->addStatusHistoryComment(‘A very urgent comment’) ->save();
Recently I brought this assembly kit Bluetooth led clock at Banggood: http://www.banggood.com/DIY-AT89S52-Rotation-LED-Electronic-Clock-Kit-51-SCM-Learning-Board-p-965849.html Here are some pictures showing the process: The assembly was relatively easy. Except the SMD leds, resistors, transistors and capacitors! They were a little bit harder to solder. Unfortunately the Bluetooth feature didn’t work with my actual mobile phone, that has Android 4.4 […]
A nice little tool to format your JSON objects, if you had no suitable editor ready to hand. http://jsonformatter.curiousconcept.com/
Yeah the next prank from Adafruit! They build up their own web-based development IDE. At the moment it’s only in beta state but I think the chance is very high that it will become very awesome. Right now it runs on Raspberry Pi and BeagleBone and supports Ruby, Python and JavaScript. The genius part is, that the code […]
On Banana Pi you can call: $> gpio readall This should give you an pinout like that: +———-+-Rev2-+——+——–+——+——-+ | wiringPi | GPIO | Phys | Name | Mode | Value | +———-+——+——+——–+——+——-+ | 0 | 17 | 11 | GPIO 0 | OUT | High | | 1 | 18 | 12 | GPIO 1 […]
The default password for the default user bananapi on a Raspbian for Banana Pi operating system is bananapi. You should change it to a secure password on first connect via ssh. Therefore you can use: $> sudo passwd bananapi
Sometimes its necessary that your machine gets a static IP-address. For example if you want to run a server or a other service on that machine. On Debian based machines you can do this by: Edit /etc/network/interfaces (f.e.: with nano) auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.88.6 netmask 255.255.255.0 […]
That’s very useful if you want to control your robot via wireless lan (Remote Control): https://sites.google.com/site/fabboco/home/arduino-manager-for-iphone-ipad https://itunes.apple.com/us/app/arduino-manager/id497240094?ls=1&mt=8
To shred files or partitions securely: $> shred -vun <loops> <File1> <File2> $> shred -vzn <loops> <Device> loop is the count of the loop beginning with 0 (3 means 4-times)!!! You can get the partition table as described in List of partitions or List, partitioning and format drives. If you want to shred a directory recursively, you […]
List all devices: $> sudo fdisk -l That will give you an overview about all your drives like that: Disk /dev/sda: 256.1 GB, 256060514304 bytes 255 heads, 63 sectors/track, 31130 cylinders, total 500118192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): […]