Thursday, March 21, 2013

Flask-Blog

Just found this cool project in Github. It uses python-markdown
which something i've be doing recently. Well rather than
reinventing-the-wheel now i've forked the project and completing
the project. Why Markdown? Well you should take a look at it.

Saturday, March 16, 2013

To Use Document.ly

Well i hate to write this down but finally i found a tool
that i could write something in markdown.
I've started similar project of my own to create a blog
using Flask and has markdown embedded editor or its Github.

I found document.ly from Hackers Newsletter many thanks
to Kale Davis of his great work to keep me and others up-to-date. Hope it helps.

Wednesday, March 13, 2013

Annoying Blackberry with "JVM 102 error"

Spending 4 hours just to troubleshoot "JVM 102 Error"
really time wasting and dumb. For almost a year an app,
twitter, sitting in my bb 8900. Never had issue until
this morning. Frequently my device got "white-screen"
and have to release the battery as the "hard-reset".
Everything went well before not this morning. The screen
showed me "JVM 102 error" and a reset button.

Let me think... uhmmm maybe it's just another "bb"
things. Alright just take off the battery and put back
everything will be fine. Argh!! 2 times of reset and took
me almost 15 minutes to get the screen with
"JVM 102 error" and a reset button again! What on
earth is happening?? Ok calm down just do the "hard-reset"
after bed-rest my device for about 10 minutes. Maybe it's
just overheat things well that was in my head. Untill the
"JVM 102 error" shows up again.

Spending hours to search on the web and do the JL_Cmder
things and BBsak didn't help much. Well at least after
done severals trial and error just got these receipt to
get off the error:

1. You must have windowsOS.
    (i used win7 under evaluation)
2. Install the BB device manager.
3. Make sure you run the device manager and
    it goes background.
4. Download BBsak
5. Run BBsak and then plug the USB cable to
    your device.
6. I experienced that the bootup must reach the
    error point to get the device recognition working.
    And 2 computer icons connecting will show up
    in your device.
7. Choose the "misc" tab of BBsak and check the eventLog
8. Use this guide to help you out. For looking up
    which *.cod files causing the error message.
    Remove em!!
9. After the removal your device will auto reset.
    Hopefully you will have your device finish the booting
    so you dont have to wipe it.
10. Backup your device frequently as final tip.

If anyone of you have the experience the same error
and could fixed it up in linuxOS please please i beg you
to share.

Hope it helps

Static HTML files in GAE

I've just finished one of my project' reStructuredText
documentation. Got it build in HTML and ready to
deploy in GAE. With a little searching on the web
found static HTML files how to in GAE, saved my day.

Hope it helps.. Uhmmm why getting shorter
in my article? Just trying to write everything up.
All these things are like blazing cloud in my head
and have to got them all out in the blog :D.
So let the blog memorize and share them.

Monday, March 4, 2013

Python cx_Oracle not working in Cronjob

cx_Oracle error in Cronjob execution. I've found that
adding environment variables in the crontab works
like charm. Steps to check if the cx_Oracle work:
test_cx_oracle.py
try:
import cx_Oracle
print 'cx_Oracle works'
except:
print 'cx_Oracle error'
In your crontab add,
 * * * * * python /path/to/test_cx_oracle.py.
Notice that the cron will execute every minute.
You will received error notification in your email
$ tail /var/spool/mail/oracle

Edit your cron:

ORACLE_HOME = '/path/to/db_1'
LD_LIBRARY_PATH = '/path/to/db_1/lib:/lib:/usr/lib'

* * * * * python /path/to/test_cx_oracle.py

Save and exit, wait for cron to fire then check your
mail again. You should received 'cx_Oracle works'
notification. Hope it helps.

Saturday, March 2, 2013

Installing OpenERP 7

Hello OpenERP 7, well i had downloaded a week ago and
just got time to install it. I had installed OpenERP since
version 5 and then 6. I had them installed in a virtualenv.
They are almost have typical `problems`. And those are:

1. psycopg , usually because of the pg_config
    not found, default is in /etc/pg_config, in my case was
    in /opt/PostgreSQL/8.4/bin/pg_config

2. PyChart, well just google and you will find it in
    sourceforge. Download it then :
    $ python setup.py build ; python setup.py install

3. pyparsing, occured in version 7, where current version
    is 2.0, as this article created, which only works with
    python 3. You will need to install it manually
    $ pip install pyparsing==1.5.7

Hope it helps. Happy OpenERP 7.