AsciiDoc

I came to know about ascii doc recently , just edit your document in plain text files and publish it to multiple formats . Since ascii is plain text file , you can even use a normal text editor store it and the document remains largely readable 🙂 .   Ascii doc FTW ! .

I am thinking of creating an e-learning website almost completely in ascii doc.

 

 

 

Android Programming Notes

Basic Application elements

  •    Views  – TextBox etc ,
  •    GroupViews – LinerLayout etc
  •    Activity   – Main Screen and other screens
  •   Intent  – Communication mechanism between Activities

Android Activity Life Cycle ( Names are kind of self explanatory ! )

  •  OnCreate
  •  OnStart
  • OnResume
  • OnPause
  • OnPause
  • OnStop
  • OnDestroy

findViewById(R.id.response)  :- find the view by id in xml file , Cast it to appropriate class

Toast for displaying small messages

startActivity(intent) to create an new intent

Layouts

  • Relative
  • Absolute
  • Lenier
  • Table
  • Grid

Log.* for logging  (DDMS)

Its is actually very easy , Most of it it there in SDK documentation.   I will read the SDK doc to get stuff done for the most part .  Bye for now . This is not supposed to make sense for anyone other than myself gg 😀

Android device not regonized ?

Borrowed from Stackoverflow . Keeping it here for my ready reference

http://stackoverflow.com/questions/7594975/why-is-eclipse-and-adb-not-recognizing-my-android-device

First, check the kind of quotes you are using in your udev rules. It looks like you might be using non-ASCII double quotes. See the difference between the quotes around usb and usb_device, etc.

UBSYSTEM=="usb", SYSFS{idVendor}=="1bbb", MODE="0666"
SUBSYSTEM==”usb_device”, SYSFS{idVendor}==”1bbb”, MODE="0666"

You can also just use sudo with ADB, as suggested by @JeremyD. Doing that makes this file essentially irrelevant.

Second,

  1. Edit ~/.android/adb_usb.ini (or if you are running as root, check /root/.android)
  2. Add 0x1bbb to the end of the file if it already exists, otherwise do: echo 0x1bbb >> adb_usb.ini
  3. adb kill-server
  4. adb start-server
  5. Check output of adb devices for your device

Popular Open Game Consoles

Some open game consoles I found by searching internet and I taught of posting . Hopefully someone finds this interesting

Fuzebox

“The Fuzebox is a fully open-source, DIY 8-bit game console. It is designed specifically for people who know a little bit of programming to expand into designing and creating their own video games and demos. A full-featured core runs in the background and does all the video and audio processing so that your code stays clean and easy to understand.”
Fuzebox website :- http://www.ladyada.net/make/fuzebox/index.html
Microcontroller / Microprocessor :- ATmega644-20PU
Uzebox

“The Uzebox is a retro-minimalist open source video game console design. It is based on an AVR 8-bit general purpose microcontroller made by Atmel. The particularity of the system is that it uses an interrupt driven kernel and has no frame buffer. Functions such as video sync generation, tile rendering, and music mixing is done realtime by a background task so games can easily be developed in C. The design goal was to be as simple as possible yet have good enough sound and graphics while leaving enough resources to implement interesting games. Emphasis was put on making it easy and fun to assemble and program for any hobbyists. The final design contains only two chips: an ATmega644 and an AD725 RGB-to-NTSC converter.”
Uzebox Website :- http://belogic.com/uzebox/index.asp
Microcontroller/ Microprocessor :-  ATmega644
Hackvision

“Hackvision is a simple, retro gaming platform based on Arduino technology that you can assemble and connect to your TV. You can write your own games and make your own controllers!”
Hackvision website : – http://nootropicdesign.com/hackvision/
Microcontroller/ Microprocessor :- ATmega328

Rbox – A 32 bit game console for the price of a latte
“The RBox is a game console that is simple enough to build on the prototype area of a dev kit; no pcb required just a crystal, a few capacitors and resistors.”
Rbox website :- http://rossum.posterous.com/20131601
Microcontroller/Microprocessor :- ARM Cortex M3 based LPC13XX
EL Jugador Module

“El Jugador is a retro open-source game console based on a Parallax Propeller & designed as module to fit on top of the Propeller Platform USB.”
website:-http://gadgetgangster.com/find-a-project/56?projectnum=265
Microcontroller / Microprocessor :- Parallax Propellor

C51 Snakes

“Welcome to C51Snakes – The Nokia inspired Sankes game implemented on 8051 platform.The game is built on AT89S51 MCU operating at 27MHz crystal frequency. The game uses a 16 * 8 LED dot matrix display and five way keys for user interface. A dedicated delay settings key provides one touch access to the delay settings mode where the speed of the Snake can be adjusted”
website :-  http://www.8051projects.net/tags/c51-snake
Microcontroller /Microprocessor :- AT89S51

PIC Pong

“PIC16F84-based video game generating a composite video signal in real time in software, by Rickard Gunée”
website: http://www.rickard.gunee.com/projects/video/pic/pong.php
Microcontroller / Microprocessor :- PIC16F84

ATMEGA64 Game Console
” An atmega64 based game console by Cedric  Beaudoin”
website :- http://www.innovativedevice.com/gamestation.htm
Microcontroller /Microprocessor :- ATMEGA64

Tiddly Wiki ?

I just discoverd tiddlywiki , it is just an amazing javascript based wiki . It is light weight and can be put to use for people who host web pages on a shared hosting and you are not willing to put too much effort into learning other CMS systems like Drupal etc

See : http://www.tiddlywiki.com/

I will be using tiddly wiki to organize content frm now on !

Django Pain Points

1) Template system :- you have to learn the a whole new config language

2) Too much special purpose abstraction , eg for SQL etc ..

Note that I am still learning 😛 . Good thing though is that once everything is setup , it is very easy to make changes . But getting it setup initially is a pain . Yeah I nearly completed the build automation stuff in python, using django for web ui !

Open Source Software for e learning content creation

I was searching for some open source elearning content creating software , just look at what i have found and i want to it share it with whoever that is reading my blog  ( possibly there is none other than myself). So here is a note to myself about the freely availbale  e learning content creation suites. This can come in handy when creating content for my openconsoles.org/moodle.  That site is maintened my me and it is a site about game console development. It is hoped that it is helpful for everyone.  Here goes the list

eXe OPEN SOURCE SCORM Development Package : http://exelearning.org/

ScenariChain Opale / OpaleSup: http://scenari-platform.org/projects/scenari/en/pres/co/

Xerte OPEN SOURCE SCORM Development Package :   http://www.nottingham.ac.uk/xerte/

That’s all for now . Take care and enjoy !

  

Python Programming

Python Programming

I  actually knew a little bit of python and  learned python by reading the book beginning python programming by wrox press earlier.  Recently I got a chance to automate some build related stuff in Python, I chose python because i knew it is really suited for tasks like this. Actually when I started working with Python i came to know how easy and productive python is ! .

I started writing simple script and i was slicing , snatching text in no time. I think it takes a while to become an expert in any language and more time to use it correctly. I am still fuzzy about using functional programming aspects of python and code python like coding c code. Hoping to learn more anyways . I would start by listening to some google videos and other python related stuff.  That’s all for now !