Apr 23, 2011 - Interesting sites

Here I will keep a list of sites which i use for information or sites of people I know.

http://61924.nl/ Blog by Frank/FSX http://GHDev.nl/ My professional site

Apr 18, 2011 - .cseg error in assembly

Today i had an error in AVR studio about a .cseg overlap. namely Overlap in .cseg: addr=0x1c conflicts with 0x1c:0x1d. After passing this error through Google I wasn't able to find a solution only that is was related to a memory address being reused. Since this problem was part of a school assignment due in a few days I decided to consult my teacher. Apparently fellow students had had the same problem. When using assembly on an ATMega32 cpu do not change the interrupt table. This will cause a .cseg error after the break more info.

Changing:

.org 0x0000         rjmp init           ; Spring bij opstart naar de regel met de label INIT
.org INT2addr       rjmp snoozeInt      ; External Interrupt2 Vector Address (op port B2)
.org OC1Aaddr       rjmp incSeconde     ; go to ISR Timer_interrupt
.org UDREaddr       rjmp send           ; Data register is empty again and will go to send
.org 0x0016         rjmp Tim0_ovf       ; Timer 0 overflow interrupt
.org 0x0014         rjmp Tim0_comp      ; Timer 0 compare interrupt
To:
.org 0x0000           rjmp init            ; Spring bij opstart naar de regel met de label INIT
.org INT2addr       rjmp snoozeInt         ; External Interrupt2 Vector Address (op port B2)
.org OC1Aaddr        rjmp incSeconde        ; go to ISR Timer_interrupt
.org OVF0addr        rjmp Tim0_comp
.org OC0addr          rjmp Tim0_ovf        ; Timer 0 overflow interrupt
.org UDREaddr        rjmp send            ; Data register is empty again and will go to send
The error disappeared. not that the udre interrupt was before the timer0 interrupt.

 

 

 

Apr 8, 2011 - Migrating magento

This is a quick guide on how to migrate Magento. After the break there are the steps to be taken and after that a note for virtual drives.<!--more-->

The steps:

  • upload site structure to new location
  • import database into new database server
  • modifiy {sitefolder}/app/etc/local.xml to contain the new database info
  • in the database modify: in the table: core_config_data
  • web/unsecure/base_url set the value to the new url
  • web/secure/base_url set the value to the new url
  • web/unsecure/base_skin_url set the path to the skin for example: http://localhost/{site_name}/skin/
  • web/unsecure/base_media_url set the path to the skin for example: http://localhost/{site_name}/media/
  • web/unsecure/base_js_url set the path to the skin for example: http://localhost/{site_name}/media/

  • now clear the cache folder {site_name}/var/cache

  • browse to the site These steps will do if you have a normal environment.  If you are using an environment with virtual home drives for example a development environment you should also modify the Rewrite base in the HTaccess file for me this one is on line 113 of the .htaccess  in new installations this line is commented out and looks like #RewriteBase /magento/ this should be replaced by RewriteBase /~{homedir_name}/{site_name}. note that this URL should also be used in the URL's set in the database. so http://localhost/{site_name} would become http://servername/~{homedir_name}/{site_name}