Small Desktop CNC Machine

Small Desktop CNC Machine

Usually can get it cheap on ebay, good for pcb isolation milling and small engraving and cutting, as to date I have cut acrylic,fiber glass and carbon fiber without any problem, I’m using cambam for gcode generator (quite a while to learn how to use cambam) and mach3 to run the machine, only downside of the machine is it small work space but with the right tools you can upgrade the Y,X axis, Since I’m using notebook and lack of paralel printer port I have no choice to use a USB motion controller (UC100: ) which enable mach3 to be use with USB port quite expensive but worth every penny

20131217_232453 20131218_211319 20140205_222018 20140205_222026 20140205_22204220140212_004248

Adding photo to facebook album via mobile apps

I have being searching how to add my photo to facebook album via mobiles apps (android) facebook “help does not” does not really that help you so I figured it out my self, take note I’m using the Facebook Android apps on my galaxy note but the functionality should be identical to the Facebook iPhone apps.

Step 1. go to your profiles and go to your album list, tap the neat looking + button at the top right:



























Step 2. chose to upload a photo of course  hero



























Step 3. after you chosen an images tap on the marked icon in the picture, it will allow you to set which album you to assign to images to


























Final Step!: once you confirm the album are selected all you need to do left is tap upload or cancel you choose then you are basically done!


























take note that this will not work if you uploading directly from you profiles pages it only works when you try to add an images from the Album list, that all folks hope you will find this useful


[Prestashop] Disabling country list in one go

Default installation prestashop included all the country in the world, as for me I don’t realy need all of them to be enable which because I’m only selling items in my local country only.

This which require me to disable all 200+ entry which is a tremendous clicking task, but someone posted this in the prestashop forum which only require 1 SQL query statement to disable all of the entry beside your choosing:

UPDATE ps_country SET active=0 WHERE iso_code NOT LIKE 'MY'

of course you need to change the ps_ to your database prefix :)


ESX: Entering maintainance mode via command line

To enter Maintenance Mode, at the ESX console type:

vimsh -n -e /hostsvc/maintenance_mode_enter

To exit Maintenance Mode type:

vimsh -n -e /hostsvc/maintenance_mode_exit

To display whether the ESX Server is currently in maintenance mode or not type:

vimsh -n -e"hostsvc/hostsummary" | grep inMaintenanceMode

Mounting External USB Drive on DNS-323 with Readonly NTFS

I recently bought a DNS-323 NAS and I also bought a 2TB Seagate, manage to get the disk working but the problem is I have 500GB extra disk full of data.

I began copying my the data from the extra 500GB disk to my WD My Book 1TB, since DNS-323 will always need to format new inserted disk to it, and my plan is to make this disk to store all the fun_plug and some extra hack that I plan for my DNS-323 :)

Setting up fun_plug was easy just follow the guide from here

After FFP installed we need to ssh to it, first we need 2 modules to make DNS-323 can use usb storage and read ntfs files system


I copy them to /mnt/HD_a2/.bootstrap/

next we need to load the modules:

insmod ntfs.ko
insmod usb-storage.ko

then time to plug-in my usb disk dmesg should show my disk is detected

SCSI device sdc: 1953525168 512-byte hdwr sectors (1000205 MB)
sdc: assuming drive cache: write through
SCSI device sdc: 1953525168 512-byte hdwr sectors (1000205 MB)
sdc: assuming drive cache: write through
sdc: sdc1
Attached scsi disk sdc at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi2, channel 0, id 0, lun 0,  type 0
usb-storage: device scan complete

now I need to mount it so I can get access to all those data and copy it over to my 2TB disk on the NAS

mkdir -p /mnt/usb
mount -t ntfs /dev/sdc1 /mnt/usb

NOTE: please bare in mind ntfs read-write support is buggy I only use it for read only not write so you the modules with your risk!

after I done copying need to umount it

umount /mnt/usb


fun_plug 0.5:

Daily Log: remove user password in linux/for change password

Q. How do I delete user Password and for user under Linux?

A. All user encrypted passwords are stored in /etc/shadow file. The quick way to remove/delete a user password is pass –delete option to passwd command.

First, login in as a root user. Command to delete user password under Linux

Type the following command to delete a user password:

# passwd --delete username


# passwd -d username

Above command delete a user’s password (make it empty). This is a quick way to disable a password for an account. It will set the named account passwordless. User will not able to login. but if the user still have his/her ssh public keys he/she can still login to the accounts to disable the account permanently do:

# usermod -s /sbin/nologin username

NOTE: this also useful to force user to change their password at login (those that have ssh public keys auth enabled) with chage command combined, example

# passwd -d alba
# chage -d 0 alba

command above will delete the user password and he/she will required to set a new password when connecting via ssh without needing to enter the old password, good for resseting forgotten user password :)