Web Service alone is already something new to me coming from old Dos-based 4th GL programming arena ... so, need to find a lot of references and examples ... yesterday, I did my own guide after learning from one good example.
The following are articles that I am going to read further:
http://pranayamr.blogspot.com/2010/11/create-hostself-hosting-iis-hosting-and.html
http://www.codeproject.com/Articles/132809/Calling-WCF-Services-using-jQuery
http://www.codeproject.com/Articles/283550/Implementing-5-important-principles-of-REST-using
http://www.codeproject.com/Articles/571813/A-Beginners-Tutorial-on-Creating-WCF-REST-Services
http://www.dotnetspark.com/kb/1373-step-by-step-tutorial-rest-enabled-service.aspx
http://wcftutorial.net/How_to_create_RESTful_Service.aspx
http://stackoverflow.com/questions/16144873/enable-wcf-service-to-use-with-json
http://msdn.microsoft.com/en-us/library/bb412172.aspx
http://stackoverflow.com/questions/6136307/advantages-of-webinvoke-post-compared-to-webget
This blog captures some of the thoughts, ideas and things that am learning, researching and exploring on areas such as: Project Management, Software Development, Open Source, etc. Feel free to feedback or comment :)
Monday, September 16, 2013
Learning WCF RESTful Web Service
Web Service alone is already something new to me coming from old Dos-based 4th GL programming arena ... so, need to find a lot of references and examples ... yesterday, I did my own guide after learning from one good example.
The following are articles that I am going to read further:
http://pranayamr.blogspot.com/2010/11/create-hostself-hosting-iis-hosting-and.html
http://www.codeproject.com/Articles/132809/Calling-WCF-Services-using-jQuery
http://www.codeproject.com/Articles/283550/Implementing-5-important-principles-of-REST-using
http://www.codeproject.com/Articles/571813/A-Beginners-Tutorial-on-Creating-WCF-REST-Services
http://www.dotnetspark.com/kb/1373-step-by-step-tutorial-rest-enabled-service.aspx
http://wcftutorial.net/How_to_create_RESTful_Service.aspx
http://stackoverflow.com/questions/16144873/enable-wcf-service-to-use-with-json
The following are articles that I am going to read further:
http://pranayamr.blogspot.com/2010/11/create-hostself-hosting-iis-hosting-and.html
http://www.codeproject.com/Articles/132809/Calling-WCF-Services-using-jQuery
http://www.codeproject.com/Articles/283550/Implementing-5-important-principles-of-REST-using
http://www.codeproject.com/Articles/571813/A-Beginners-Tutorial-on-Creating-WCF-REST-Services
http://www.dotnetspark.com/kb/1373-step-by-step-tutorial-rest-enabled-service.aspx
http://wcftutorial.net/How_to_create_RESTful_Service.aspx
http://stackoverflow.com/questions/16144873/enable-wcf-service-to-use-with-json
Sunday, September 15, 2013
Really a Step by Step guide (personal note) for: Developing WCF RESTful Web Service in VS2010
This is my personal note, I capture each step and screenshot when I learn from this online guide. It is not easy in this journey, I have been searching for good guide since two months ago ...
Thursday, July 25, 2013
CSS Vertical Align Text in DIV
This forum points out the most important part: http://stackoverflow.com/questions/9249359/text-vertical-align-in-a-div
Saturday, July 06, 2013
Installing Apache on Ubuntu 12.04 or Lubuntu 12.04
It works on my Ubuntu 12.04 LTS with Lubuntu Desktop installed:
http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-12.04-lts-lamp
http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-12.04-lts-lamp
Wednesday, July 03, 2013
Friday, June 28, 2013
Thursday, June 27, 2013
After Installing IE10 and Visual Studio 2012 Express for Web Developer
If you get the error message:
attaching the script debugger to process '[6444] iexplorer.exe' on ...
Here the solution
Make sure you give the right path of the dll file, then it will work fantastically :)
attaching the script debugger to process '[6444] iexplorer.exe' on ...
Here the solution
Make sure you give the right path of the dll file, then it will work fantastically :)
Tuesday, June 25, 2013
CSS Drawing Examples
Drawing lines with arrow heads and This One and also This One
Another tutorial
Drawing with toning
http://www.minimalg.it/blog/2012/web-development/drawing-flowcharts-with-css-and-svg/
http://www.amaslo.com/2012/06/drawing-diagonal-line-in-htmlcssjs-with.html
http://stackoverflow.com/questions/6107663/drawing-a-straight-line-with-arrow-in-javascript
http://stackoverflow.com/questions/11808860/arrow-triangles-on-my-svg-line
http://css-tricks.com/snippets/css/css-triangle/
http://stackoverflow.com/questions/15416731/issue-while-drawing-line-over-html5-canvas
http://stackoverflow.com/questions/12680166/how-to-use-an-arrow-marker-on-an-svg-line-element
http://www.yuiblog.com/blog/2010/11/22/css-quick-tip-css-arrows-and-shapes-without-markup/
Another tutorial
Drawing with toning
http://www.minimalg.it/blog/2012/web-development/drawing-flowcharts-with-css-and-svg/
http://www.amaslo.com/2012/06/drawing-diagonal-line-in-htmlcssjs-with.html
http://stackoverflow.com/questions/6107663/drawing-a-straight-line-with-arrow-in-javascript
http://stackoverflow.com/questions/11808860/arrow-triangles-on-my-svg-line
http://css-tricks.com/snippets/css/css-triangle/
http://stackoverflow.com/questions/15416731/issue-while-drawing-line-over-html5-canvas
http://stackoverflow.com/questions/12680166/how-to-use-an-arrow-marker-on-an-svg-line-element
http://www.yuiblog.com/blog/2010/11/22/css-quick-tip-css-arrows-and-shapes-without-markup/
Monday, June 24, 2013
Friday, June 21, 2013
Thursday, June 20, 2013
Wednesday, June 19, 2013
Monday, June 17, 2013
How to create a class object using JavaScript
The following is a code showing how to do OOP using javascript in pure HTML page. I almost give up and luckily found some help :)
This is great one
This is great one
Thursday, June 13, 2013
JavaScript Learning
If you are also new to JavaScript which is a very powerful old friend, the following are some useful links:
Learning the most basic here ...
Good start
Simply easy to follow
How to Create Class-based Attribute in a Class
Learning the most basic here ...
Good start
Simply easy to follow
How to Create Class-based Attribute in a Class
Wednesday, June 12, 2013
If you are thinking of creating your own website with your preferred domain name ...
Hi, just in case you are looking for some help on this, the following are some urls for references on how to get it done at your own time:
http://www.thesitewizard.com/archive/registerdomain.shtml
http://www.2createawebsite.com/prebuild/register_domain.html
Top 10 Domain Name Registras
One of the Top 10
http://www.thesitewizard.com/archive/registerdomain.shtml
http://www.2createawebsite.com/prebuild/register_domain.html
Top 10 Domain Name Registras
One of the Top 10
Saturday, May 18, 2013
Finally .... The Authentication Issue Resolved for Connecting to PostGreSQL from Java
Hooh! So HAPPY!!! Finally, got it resolved for PostgreSQL 9.2 in Windows Environment
Inside the pg_hba.conf that is inside the folder C:\Program Files\PostGreSQL\9.2\data, navigate to the section titled "# IPv4 ...", and add this:
# IPv4 local connections:
host all all 0.0.0.0/0 trust
host all all 127.0.0.1/32 trust
For the second row, which is originally there with md5 authentication, make it trust also.
This solution is referenced to: http://www.postgresql.org/docs/9.2/static/auth-methods.html
For more details about any security issue, if your scenario is not for localhost connection. For my case, am trying to connect using localhost.
The following is a sample code used in Java:
import java.sql.*;
import java.util.*;
public class PGSample
{
public static void main(String[] args)
{
Connection connection = null;
try
{
// the postgresql driver string
Class.forName("org.postgresql.Driver");
// the postgresql url
String url = "jdbc:postgresql://localhost:5432/TestDB";
// get the postgresql database connection
connection = DriverManager.getConnection(url,"pguser", "");
// now do whatever you want to do with the connection
// ...
}
catch (ClassNotFoundException e)
{
e.printStackTrace();
System.exit(1);
}
catch (SQLException e)
{
e.printStackTrace();
System.exit(2);
}
}
}
Note: Replace the database TestDB with the name of the DB in your pc or server. Also, replace "pguser" with the user id in your own server.
Inside the pg_hba.conf that is inside the folder C:\Program Files\PostGreSQL\9.2\data, navigate to the section titled "# IPv4 ...", and add this:
# IPv4 local connections:
host all all 0.0.0.0/0 trust
host all all 127.0.0.1/32 trust
For the second row, which is originally there with md5 authentication, make it trust also.
This solution is referenced to: http://www.postgresql.org/docs/9.2/static/auth-methods.html
For more details about any security issue, if your scenario is not for localhost connection. For my case, am trying to connect using localhost.
The following is a sample code used in Java:
import java.sql.*;
import java.util.*;
public class PGSample
{
public static void main(String[] args)
{
Connection connection = null;
try
{
// the postgresql driver string
Class.forName("org.postgresql.Driver");
// the postgresql url
String url = "jdbc:postgresql://localhost:5432/TestDB";
// get the postgresql database connection
connection = DriverManager.getConnection(url,"pguser", "");
// now do whatever you want to do with the connection
// ...
}
catch (ClassNotFoundException e)
{
e.printStackTrace();
System.exit(1);
}
catch (SQLException e)
{
e.printStackTrace();
System.exit(2);
}
}
}
Note: Replace the database TestDB with the name of the DB in your pc or server. Also, replace "pguser" with the user id in your own server.
Saturday, May 04, 2013
What Characteristics/Traits Make A Good Manager?
Here are some references :)
http://www.peopleskillsdecoded.com/what-makes-a-good-manager/
http://www.phdinmanagement.org/25-qualities-and-characteristics-of-a-good-manager.html
http://blog.goyello.com/2009/09/18/the-6-main-qualities-that-make-a-manager-a-good-one/
http://kathrynvercillo.hubpages.com/hub/10-Traits-of-a-Successful-Manager
http://www.buzzle.com/articles/traits-of-a-good-manager.html
http://www.selfgrowth.com/articles/Hopkins11.html
http://www.peopleskillsdecoded.com/what-makes-a-good-manager/
http://www.phdinmanagement.org/25-qualities-and-characteristics-of-a-good-manager.html
http://blog.goyello.com/2009/09/18/the-6-main-qualities-that-make-a-manager-a-good-one/
http://kathrynvercillo.hubpages.com/hub/10-Traits-of-a-Successful-Manager
http://www.buzzle.com/articles/traits-of-a-good-manager.html
http://www.selfgrowth.com/articles/Hopkins11.html
Friday, April 26, 2013
Java + PostgreSQL
http://zetcode.com/db/postgresqljavatutorial/
http://www.java-samples.com/showtutorial.php?tutorialid=202
http://alvinalexander.com/blog/post/jdbc/sample-java-jdbc-program-connect-database
Configuring: http://jdbc.postgresql.org/documentation/head/setup.html
Download Driver: http://jdbc.postgresql.org/download.html
Checking JDBC: http://stackoverflow.com/questions/4215742/how-to-test-if-jdbc-driver-is-installed-correctly-and-if-the-db-can-be-connected
http://www.java-samples.com/showtutorial.php?tutorialid=202
http://alvinalexander.com/blog/post/jdbc/sample-java-jdbc-program-connect-database
Configuring: http://jdbc.postgresql.org/documentation/head/setup.html
Download Driver: http://jdbc.postgresql.org/download.html
Checking JDBC: http://stackoverflow.com/questions/4215742/how-to-test-if-jdbc-driver-is-installed-correctly-and-if-the-db-can-be-connected
Friday, April 05, 2013
Online toys shop in Malaysia (based on Google search)
The following is not basing on their ranking, but is basing on what am interested to explore further :)
http://www.e-toyz.com/index.asp?p=/static/shipping.html
http://kidstoysmalaysia.com.my/
http://shop.littlekindle.com/
http://www.safetoysforkids.net/
http://www.e-toyz.com/index.asp?p=/static/shipping.html
http://kidstoysmalaysia.com.my/
http://shop.littlekindle.com/
http://www.safetoysforkids.net/
Thursday, April 04, 2013
Wednesday, April 03, 2013
Unicode and Chinese Characters in Java - Reference
The following are some reference points for above subject ...
Currently, am still busy to explore further ... so to keep my self some convenience for the research later :)
Added on 26 Apr
http://javarevisited.blogspot.com/2012/01/get-set-default-character-encoding.html
http://stackoverflow.com/questions/2622911/fix-string-encoding-in-java
http://www.tutorialspoint.com/java/java_string_getbytes.htm
http://exampledepot.8waytrips.com/egs/java.nio.charset/ConvertChar.html
http://examples.javacodegeeks.com/core-java/nio/charbuffer/convert-between-character-set-encodings-with-charbuffer/
---------------------------------------------------------------------------------------------------------------
http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html
http://docs.oracle.com/javase/7/docs/api/java/io/InputStreamReader.html
http://www.velocityreviews.com/forums/t592855-how-to-display-input-write-chinese-text-in-java.html
http://stackoverflow.com/questions/766361/how-to-save-chinese-characters-to-file-with-java
http://www.b-t.asia/chinese/prog-java.php
https://forums.oracle.com/forums/thread.jspa?messageID=9949628�
http://users.erols.com/eepeter/chinesecomputing/programming/java.html
http://stackoverflow.com/questions/8873121/reading-chinese-characters-into-a-string-from-a-byte-buffer
http://www.mkyong.com/java/java-convert-chinese-character-to-unicode-with-native2ascii/
http://www.mandarintools.com/javaconverter.html
Currently, am still busy to explore further ... so to keep my self some convenience for the research later :)
Added on 26 Apr
http://javarevisited.blogspot.com/2012/01/get-set-default-character-encoding.html
http://stackoverflow.com/questions/2622911/fix-string-encoding-in-java
http://www.tutorialspoint.com/java/java_string_getbytes.htm
http://exampledepot.8waytrips.com/egs/java.nio.charset/ConvertChar.html
http://examples.javacodegeeks.com/core-java/nio/charbuffer/convert-between-character-set-encodings-with-charbuffer/
---------------------------------------------------------------------------------------------------------------
http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html
http://docs.oracle.com/javase/7/docs/api/java/io/InputStreamReader.html
http://www.velocityreviews.com/forums/t592855-how-to-display-input-write-chinese-text-in-java.html
http://stackoverflow.com/questions/766361/how-to-save-chinese-characters-to-file-with-java
http://www.b-t.asia/chinese/prog-java.php
https://forums.oracle.com/forums/thread.jspa?messageID=9949628�
http://users.erols.com/eepeter/chinesecomputing/programming/java.html
http://stackoverflow.com/questions/8873121/reading-chinese-characters-into-a-string-from-a-byte-buffer
http://www.mkyong.com/java/java-convert-chinese-character-to-unicode-with-native2ascii/
http://www.mandarintools.com/javaconverter.html
Saturday, January 26, 2013
Sending email with gmail smtp in Python (it's simple and powerful)
Hi, I found two python code examples and I combine them and it works. Here is the sample code.
This example send emails using gmail smtp service, so basically it is free and is possible even if you do not have an smtp server in the office :)
Enjoy! Python is powerful :)
Sample Code in Python 2.7:
import smtplib
from email.MIMEText import MIMEText
msg_text = 'my email content is here ... !!!'
msg = MIMEText(msg_text)
msg['Subject'] = 'Hello Subject'
server = smtplib.SMTP( "smtp.gmail.com", 587 )
server.starttls()
server.login(' ', ' ')
server.sendmail(' ', ' ', msg.as_string() )
print 'email sent successfully ... yahoo!!'
Save above code into a python code file, and then at Dos prompt, type Python example.py for example :)
This example send emails using gmail smtp service, so basically it is free and is possible even if you do not have an smtp server in the office :)
Enjoy! Python is powerful :)
Sample Code in Python 2.7:
import smtplib
from email.MIMEText import MIMEText
msg_text = 'my email content is here ... !!!'
msg = MIMEText(msg_text)
msg['Subject'] = 'Hello Subject'
server = smtplib.SMTP( "smtp.gmail.com", 587 )
server.starttls()
server.login('
server.sendmail('
print 'email sent successfully ... yahoo!!'
Save above code into a python code file, and then at Dos prompt, type Python example.py for example :)
Subscribe to:
Posts (Atom)
Converting a Physical Linux to Virtual
Hmm ... I have done a lot of work on my Linux Lubuntu 15.10 with PHP and PostgreSQL and a few other things ... it is quite time-consuming to...
-
I have got the book: Crucial Confrontation ! It is really a great book. After reading it, I learned a very valuable lesson on how to deal wi...
-
A requirement study stage should not be left "open-ended". There should be key review milestones specified for checking the accura...
-
Here are something to read about PM KPI: KPI explained When we want to create KPIs for PM, we need to use the CSC (Critical Success Criter...