Saturday, December 11, 2010

TODO: ulet

1.) Share Layer <-- medyo mahirap
2.) Add style to shapes in maps

Wednesday, December 8, 2010

TODO: Miniproject OSM + php/mysql

1. Fix shape comment refresh after message sent.
2. Add/Edit shape. add new input: select (select options) layer
3. Delete shape
4. Hardcore testing

Friday, December 3, 2010

Miniproject OSM + php/mysql

Goal:
Create users that can create points/line/polygon on the map.
Share shapes to other users.

Open Layers stuff that will be used:
OpenLayers.Layer.Vector
OpenLayers.Control.EditingToolbar
OpenLayers.Control.SelectFeature
OpenLayers.Control.MousePosition

Tuesday, November 9, 2010

Wala lang

Gnome 3.0 is delayed untill March 2011.

Need to study Direct Web Remoting for personal project.

Need to study again how OpenID works.

Friday, August 20, 2010

Ubuntu apps

List of my important ubuntu stuff as of now:

Lyx (Latex ui)
ns-2
Wine
postgre
postgis
mysql db
tomcat
VLC
Melf Diff viewer
MySQL Administrator
Chromium Browser
Skype
Quantum GIS
GIMP
java ee
usb-modeswitch (for globe tattoo)
audio and video plugins
RabbitVCS
GeoServer
Nvidia driver
ant
svn

Thursday, July 29, 2010

MRT-3

Pa-enlighten naman o mga business/econ pips dyan. Pano nalulugi or di nakakagawa ng pera ang MRT line 3?

MRT3 can make ~300,000 to ~600,000 passenger trips per day.

kung average na 12 petot ang pamasahe, kaya maggenerate ng 3.6M to 7.2M pesos per day ang MRT.

ganun ba kalaki ang costs per day ng MRT para maging ZERO ang net income per day nito? (sweldo ng manggagawa, kuryente, maintenance, etc)


Ang teorya ko:

-------------

kaya sila nalulugi dahil tuloy tuloy pa rin tayo nagbabayad ng utang dun sa construction ng MRT, which is pinondohan or pinag-investan ng mga dayuhan. (japan/korean/chinese corporations ata). Kaya sinu-"subsidize" ng gobyerno (40pesos per passenger daw) para MAPABILIS ang pagbabayad ng utang.

MRT is owned by the government and is built using the BOT model (Build, Operate, Transfer). Build means ginawa siya ng isang foreign investor, Operate hanggang kumita ito at mabayaran ang utang ng gobyerno sa foreign investor, then Transfer which means the project will be fully transfered to the gov't. Etong BOT din ang ginawa para makapag iconstruct ung ibang rail systems natin, NLEX, SLEX, SCTEX, etc. Actually maganda to kasi pag natapos na ung pagbabayad ng utang 100% atin na ung project.

MRT AS A GOV'T OWNED PROJECT IS BUILT TO SERVE PEOPLE, NOT TO MAKE SUPERPROFITS. HINDI SIYA ISANG BUSINESS.

So KAHIT WALANG SUBSIDY AY DAPAT KUMITA PA RIN ANG MRT PARA MABAYARAN ANG UTANG SA CONSTRUCTION.

PAG-BAYAD NA ANG MRT, EITHER:

1.) 10-15pesos pa rin ang pamasahe para hindi na isubidize ng gobyerno ang MRT

2.) LIBRE ang pamasahe ngunit isusubsidize ng gobyerno ang costs (sweldo ng manggagawa, kuryente, maintenance, etc)


--------------------

conclusion ko is CORRUPTION and dahilan kaya nalulugi ang MRT ^^

Wednesday, February 3, 2010

HOW-TO: Eclipse + Java Platform, Micro Edition (Java ME/J2ME) (02/04/2009) for Windows

HOW-TO: Eclipse + Java Platform, Micro Edition (Java ME/J2ME) 02/04/2010 for Windows

1. Download the requirements:


Java Platform (JDK) : http://java.sun.com/javase/downloads/widget/jdk6.jsp (Jave SE only not Java EE or anything)

Eclipse Pulsar (Pulsar for Mobile Java Developers) http://www.eclipse.org/downloads/packages/pulsar-mobile-java-developers/galileosr1 (eclipse-pulsar-galileo-SR1-win32.zip)

Sun Java Wireless Toolkit for CLDC http://java.sun.com/products/sjwtoolkit/download.html (don't download Java ME SDK 3.0. , just the sun_java_wireless_toolkit-x_x_x-windows.exe)

2. Install java sdk 6.0 and sun java wireless toolkit to their default directory.

3. Configure eclipse:


Unzip eclipse. Run eclipse.exe.

Go to Window->Preferences->Java ME->Device Management.

Then import the wireless toolkit. (Default location is C:/WTK22 or something else, probably C:/WTKxx)

4. Test some example apps:

Create a midlet project. Select File->New->Midlet Project.

After creating a new project, import existing apps into it:

Go to File->Import->General->File System. Then browse for the examples

(I would recommend C:\WTK22\apps\NetworkDemo and C:\WTK22\apps\WMADemo).

To compile, select Project->Build all. To run, right click on the main src file then select

Run as-> Emulated Java MIDlet.

(eg. To run NetworkDemo , go to src/socket then right click on SocketMIDlet.java then select Run as-> Emulated Java MIDlet)

(eg2. To run WMADemo, go to src/example/sms then right click on SMSSend.java then select Run as-> Emulated Java MIDlet)


5. other tips:


Use Navigator window instead of Package explorer (Select Window->Show View->Navigator)

Don't use build automatically. Uncheck it from Project->Build Automatically.

To have a clean build. Clean it first before building (Project->Clean, then Project->Build All)

6. Tips on WMA addon, etc.
If you create an instance of a MIDlet, the emulator will automatically add a cellphone number into it. The Default is: 1st instance is +5550000, 2nd instance is +5550001 and so on.

Study how it connects two cellphones for sms messaging. Instead of using ip add+socket, it uses the phonenumber+socket. Good thing is it mimics sockets and tcp connection or something like that.

In the WMA sms example, there are 3 src files. SMSReceive.java has the GUI for receiving data and some other stuff. It implements a thread for receiving SMS msg. It also uses SMSSender.java for sending.

SMSSend.java has the GUI for sending. It uses SMSSender.java for sending.

SMSSender.java is a thread for sending SMS. Threads are used to avoid I/O error stuff. So 1 app uses 2 threads, 1 for receiving and 1 for sending.