ict.ken.be

Delivering solid user friendly software solutions since the dawn of time.

Android development with c# and virtualbox 

Categories: Android

Screenshot of app running in VM

Installing the virtual Android

  • Create new virtualbox machine
  • Linux 2.6
  • 512MB memory
  • 4GB hard drive
  • Insert ISO into CD
  • ISO: https://code.google.com/p/android-x86/downloads/list
  • Boot machine
  • Install Android-x86 to harddisk
  • Create/Modify partitions
  • New - Primary - Bootable - Write - Quit
  • Select sda1/Linux/VBOX HARDDISK
  • Select ext3 and yes to format
  • Yes to GRUB
  • Yes to install the /system directory
  • Remove iso and restart
  • Set your virtual network connection to Bridged Adapter
  • Disable mouse integration option
  • Skip wifi setup
  • Skip google setup

Checking the network

  • alt-f1 will swith to console
  • ifconfig
  • ping ip from another machine on your network
  • (if needed: netcfg eth0 up, netcfg eth0 dhcp, setprop net.dns1 8.8.8.8)
  • alt-f7 back to desktop
  • (or use alt-left and alt-right to switch between root and desktop)

Setup Android C# development

  • Set android developer setting to not sleep
  • Settings - About - Click Build Number a few times to enable developer
  • Settings - Developer options - Stay Awake
  • Start dot42 device center
  • Connect via wifi
  • Add ip of the AndroidVM
  • Open a sample and start debugging
  • Select the vm in the device center
  • Confirm the access on the vm

Puppy Linux 

Categories: Linux

Drawing of dog with one black eye

Installation on old Acer Aspire

  • YUMI + lupu-528.005.iso
  • Install wifi through connect icon on desktop
  • Hostname: Acer-Puppy
  • Auto DHCP: 192.168.1.106
  • Control - Drive - Gparted - Create empty ext3 partion - Right click new partion - Manage Flags - check boot
  • Control - Install - GRUB
  • Install - Universal Installer - Internal IDE or SATA drive - Directory /mnt/sdb1/multiboot/puppy/lupu_528.sfs - Full
  • Copy GRUB menu option to /mnt/sda1/menu.lst
  • Redo the configuration but now for the harddisk version
  • Quickpet - Install Seamonkey 2.8 Lucid
  • Install - PPM - Use Ziggy
  • Add adblock+ for Seamonkey

Create folder share for Windows LAN

  • mkdir /srv/Downloads -p
  • chmod 1766 /srv/Downloads
  • touch /srv/Downloads/readme.txt
  • leafpad /srv/Downloads/readme.txt
  • cat /srv/Downloads/readme.txt
  • PPM - Search Samba - Install samba_full-3.6.1-s.pet from ibiblio.org
  • PPM - Install Transmission-2.31-i486-static - Preferences - Show tray icon - Use /svr/Downloads
  • Find Torrent - Right Click - Copy Link Location
  • Transmission - File - Open Url

Setup icons on desktop

  • /usr/share/application - drag application icon to desktop

Copy to pdf folder

  • home/my-documents/PDF (must be in uppercase)

Setup firewall to allow internal network

  • /etc/rc.d/rc.firewall - PERMIT = "192.168.1.0/8" 

Update SAMBA configuration

  • find / -type f -name "*.conf"
  • /etc/samba/smb.conf
  • mv /etc/opt/samba/smb.conf /etc/opt/samba/smb.conf.1st.backup 
  • leafpad /etc/opt/samba/smb.conf
 # All SAMBA configurations have a global piece AND it has piece(s) called shares 
# Global Parameters describes this PC’s behavior, overall.
[global]
workgroup = KENSPLACE
server string = %h is a NAS (Test)
# Sharing Parameters tell what items this PC shares out to the LAN
[Downloads]
path = /srv/Downloads
comment = A Central Download folder for all to use
writeable = true
guest ok = Yes

Setup Canoscan LiDE 30

  • PPM - xsane_0.996 - Install dependencies
  • Graphics - XSane Image Scanner

BitCoin 

Categories: BitCoin

Vocabulary

  • Address: unique string needed to pay someone
  • ASIC: application-specific integrated circuit (on wikipedia)
  • Block Chain: public record of all bitcoin transactions
  • BTC: currency abbreviation
  • Mining: do mathematical calculations to confirm transactions
  • Private key: needed to be able to spend money from a specific wallet
  • Satoshi: original bitcoin proposal

Screenshot of open bitcoin wallet

Installation of full client and secure wallet

  1. Disable autorun on your machine
  2. Install bitcoin-qt on your machine
  3. Set the data folder to a drive with enough space (>100GB) - shortcut: "C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -datadir="D:\BitCoin\Data-QT" - use: mklink /d "C:\Users\Ken\AppData\Roaming\BitCoin" "D:\BitCoin\Data-QT" 
  4. Sync to bitcoin network (> 2 days)
  5. Install armory on your machine + data folder move - use: mklink /d "C:\Users\Ken\AppData\Roaming\Armory" "D:\BitCoin\Armory" - "C:\Program Files (x86)\Armory\ArmoryQt.exe" --settings=D:\BitCoin\Data-Armory --logfile="D:\BitCoin\Data-Armory" --datadir="D:\BitCoin\Data-Armory" –satoshi-datadir="D:\BitCoin\Data-QT"
  6. Create cold storage (never connected to a network, eg. Ubuntu 10.04.4 + Armory)
  7. Create Wallet on cold storage
  8. Backup to paper + passphrase
  9. Create watch-only export of wallet
  10. Import wallet into armory on your machine connected to the internet
  11. Generate some addresses by clicking on 'Receive Bitcoins'

Mining Bitcoins

  1. Get cgminer at https://github.com/ckolivas/cgminer 
  2. Run cgminer -o 127.0.0.1:9332 -u userName -p fooPassword (this is the ip and port for local p2p mining, otherwise you would fill in the hostname and username for the mining pool you joined, often password is not required and then you should not put it)
  3. There is no use in trying to mine with cpu or gpu anymore. (except maybe for some alternative cryptocurrencies)

Choosing a mining pool

  1. Individual: unless you own some big asic miners, there is no use in trying to do this all by yourself. And even in pool you need plenty hash power to get some money.
  2. P2Pool: the peer to peer mining pool is the best way to support the network. If you do not have enough hashing power, you basically are just doing this to support the network because your shares will take to long to be paid out. 
  3. Pool (eg. BTC Guild): easiest way, just create an account online and start mining (more pools can be found at https://blockchain.info/pools)

Grid showing mining revenue

Installing an asic usb miner

  1. Windows USB support requires the installation of the WinUSB driver (NOT the ftdi_sio driver), you can use zadig utility for this. (can also be found on sourceforge and in the downloads of cgminer)
  2. Run Zadig and select WinUSB for each of your miners and install.
  3. If still problems to find your miners then use a USB to UART Bridge before using Zadig.
  4. Once you start cgminer, for most asic the led will be on when the miner is not working.

Photo of some usb asic bitcoin miners

Intrinsic value of BitCoin

I think that the cryptographic currencies still have a lot of issues. Bitcoin is going to good way, but the ever growing size of the blockchain bother me. Even with the ultraprune. It all feels to much like a Ponzi schema or even a new central banking system.

So the only real value I can currently think of is when you want to timestamp a message you can put it in a very cheap transaction. And then it will be persisted through all the distributed network of the blockchain. Of course if you are very wealthy and you want to move money from one country to another without the taxation hassle, bitcoin might be a good solution. Buy and then sell on the other side of the globe a bit later. 

Anyway, for now it is very interesting to play with this currency and I am sure it will bring a lot of new uses to the 'old' miners. Most of the asic miners are basically fast SHA256 hashers, so plenty of use there...

More:

Exchange Bitcoins:

More opinions about the intrinsic value:

Bitcoin QR-Code

And now send me some Bitcoins at:
1L6LT5coSjZqTWxFxizjwZSWiiBjUWZZ1h

jQuery CDN fallback 

Categories: Javascript
<script>
!window.jQuery && document.write(unescape('%3Cscript src="/ClientScript/jquery/2.0.1/jquery-2.0.1.min.js"%3E%3C/script%3E'))
</script>
<script>
!window.jQuery.ui && document.write(unescape('%3Cscript src="/ClientScript/jquery-ui/1.10.3/jquery-ui.min.js"%3E%3C/script%3E'))
</script>
Page 15 of 43 << < 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 40 > >>