Showing posts with label OpenSource. Show all posts
Showing posts with label OpenSource. Show all posts

Thursday, March 11, 2010

Y!M pager server

is down for Y!M 6.5 and prior versions:

( http://mediocre-ninja.blogspot.com/2009/06/pidgin-ym-connection.html )

Compatible clients such as Pidgin and Kopete suffers, too. But if you upgrade to the recent versions, it should be fine.

For pidgin (on Ubuntu), you need to upgrade pidgin-data to 2.5.7+ to work with new Y!M protocol.

Tuesday, March 09, 2010

Cyber Station experience

Some experience with Windows when consulting for a few Cyber Station sites.

A. PARTITION HDD


B. REPLACE IE ON XP

by FireFox or Chrome.

1/ Download Firefox/Chrome and some plugins (JRE, FlashPlayer, IETab)

2/ Install Flash Player

3/ Install JRE

4/ Install Firefox/Chrome

5/ Launch Firefox/Chrome, install IETab and configure it

6/ Restart Firefox/Chrome, customize it (homepage, download, more plugins)

7/ Hide IE icon from desktop

8/ Change IE icon in QuickLaunch bar to launch Firefox (but still use IE picture)

9/ (rename the icon title to "Browser" and) Copy that "fake" icon to Desktop

Done ! Bye bye IE 6 :-)


Recently tested:
* Firefox 2.0.20 + FlashPlayer 10.0.22 + JRE 1.6.0_07 ( + IETab 1.3)
* Firefox 3.5.2 + FlashPlayer 10.0.45 + JRE 1.6.0_15 ( + IETab 1.5)
* Chrome 4.x + FlashPlayer 10.0.45 + JRE 1.6.0_15 ( + IETab for Chrome)

Tuesday, December 15, 2009

Xmarks for Chrome

Lâu nay thằng FF 3 trên Ubuntu (lappy) cứ bị lỗi ì ạch, chuyển sang 3.5 vẫn chậm, 2.0 thì chạy được nhưng nhiều add-on ko compatible, thế là phải xài KonquerorChromium .
Hai cái này xài được, chỉ vướng 2 chỗ là bookmark (Xmarks) và zoom. May quá bây giờ Google đã release Chrome bản chính thức cho Linux , không những chạy Flash phe phé, mà còn zoom khá hơn, và Xmarks cũng đã hỗ trợ :



bye bye FireFox@lappy !

Tuesday, August 11, 2009

VMware acquired SpringSource

VMware announced they have acquired SpringSource for a mix of approximately $362 million in cash and equity plus the assumption of approximately $58 million of unvested stock and options.

$420 millions! Good news !

Saturday, August 08, 2009

Ubuntu Firefox sucks?

Firefox on Ubuntu seems to have slower performance than on other OSes.


Symptoms:
- slow on page with flash, or hang when scroll fast, or unbearable slow (invoking CD-ROM) when type in address bar, especially on "backspace" key, ...


AFAIK, there are 3 major causes:
- FF's database SQLite becomes big and defragmented
- weak graphic card (usually on laptop)
- IPv6 is higher priority than IPv4 in FF by default.


Recommended work-arounds:
- change Visual Effects to "None"
- disable IPv6 in "about:config"
- clean up SQLite unused entries: first, install sqlite3 client
sudo apt-get install sqlite3
then enter these commands
find ~/.mozilla -type f -name "*.sqlite" -exec sqlite3 ‘{}’ VACUUM \;
find ~/.mozilla -type f -name "*.sqlite" -exec sqlite3 ‘{}’ REINDEX \;
or use these commands instead
for i in ~/.mozilla/firefox*/*/*.sqlite; do sqlite3 $i vacuum; done;


Alternative browsers:

+ Google Chrome for Linux
( http://www.google.com/chrome?platform=linux )

+ Konqueror
( sudo apt-get install konqueror )

+ Chromium (Ubuntu)
http://ubuntugeek.com/install-chromium-google-chrome-web-browser-in-ubuntu.html

Friday, June 26, 2009

Some OSS manual in Vietnamese

Một số tài liệu được biên soạn bởi văn phòng Công Nghệ Thông Tin, thuộc Bộ Khoa học và Công nghệ :



Cover%20Writer%20Manual%20%28JPEG%29
Tài liệu hướng dẫn sử dụng phần mềm Soạn thảo văn bản OpenOffice.org Writer, phiên bản 3.0
(hanoi.centre-linux.org/IMG/pdf/HDSD_Writer_V3.0.pdf – 2,5 MB)



Cover%20calc%20manual%20%28JPEG%29
Tài liệu hướng dẫn sử dụng phần mềm bảng tính điện tử OpenOffice.org Calc, phiên bản 3.0
(hanoi.centre-linux.org/IMG/pdf/HDSD_Calc_V3.0.pdf – 1,6 MB)




%3c28JPEG%3c29
Tài liệu hướng dẫn sử dụng phần mềm trình diễn hội thảo OpenOffice.org Impress, phiên bản 3.0
(http://hanoi.centre-linux.org/IMG/pdf/HDSD_Impress_V3.0.pdf – 3,4 MB)




%3c28JPEG%3c29
Tài liệu hướng dẫn sử dụng phần mềm Mozilla Thunderbird phiên bản 2.0, Mozilla Firefox phiên bản 3.0, Unikey phiên bản 4.0
(hanoi.centre-linux.org/IMG/pdf/HDSD_Thunderbird_Firefox_UniKey_V3.0.pdf – 4,3 MB)




%3c28JPEG%3c29
Tài liệu hướng dẫn sử dụng và cài đặt Ubuntu (8.04) cho máy trạm.
hanoi.centre-linux.org/IMG/pdf/Ubuntu_20090703.pdf - 10 MB



Comment: Chuyện sử dụng phần mềm mã mở trong chính phủ vẫn thuộc dạng mà Mediocre-Ninja nghi ngờ về mức độ hiệu quả, nhưng coi bộ lần này các bác làm nghiêm túc hơn nhiều so với Đề án 112.


Have fun (^o^) !

Saturday, June 20, 2009

Eclipse NetBeans PHP

Eclipse 3.5 (Galileo) new features:
http://infoq.com/news/2009/06/galileo

1. P2 provisioning which provides for a more efficient update process for Eclipse
2. OSGi Declarative Services, which allow OSGi services to be configured and installed based on XML prior to the start of the bundle's service
3. Improved target platform management, which allows the runtime platform to be configured easier
4. Mylyn WikiText, which can be used to edit bugs via Mylyn or transform into other documentation formats like DocBook
5. The addition of the Eclipse Memory Analyser, which can analyse the JVM's heap usage
6. Install into Self, which allows plugins to be developed and installed into the currently running Eclipse platform
7. Eclipse Modeling Project refinements, which reduces the size of the EMF runtime requirements
8. Improved RAP styles to allow your RAP based application to be customised
9. Enhanced JAvaScript bridge, which allows embedding of widgets like Google Maps into an SWT browser
10. Java compare editor enhancements which allow JavaDoc hovers, hyperlinking and other goodness from the compare page



NetBeans 6.7 new features:
http://wiki.netbeans.org/NewAndNoteWorthyNB67



PHP 5.3 new features:
http://vn.php.net/releases/5_3_0.php




:-)

Tuesday, June 09, 2009

Pidgin Y!M connection

Sometimes the Y!M pager server is down for maintenance. Therefore Pidgin clients encounter connection problem.

You may fix it simply by changing the pager server settings:
(Account -> Manage -> -> [Y!M account] -> Modify -> Advance)

default: scs.msg.yahoo.com

change to: cn.scs.msg.yahoo.com (66.163.181.166)

(
or: cs101.msg.cnb.yahoo.com (202.165.100.160)
)




P.S: Kopete or Empathy clients issue can be fixed in a similar way, too.

Thursday, March 19, 2009

Why Eclipse IDE

( 56kbps modem warning ! )

A PICTURE IS WORTH A THOUSAND WORDS !


Debug Java ( //www.ibm.com/developerworks/opensource/library/os-eclipse-platform )




Customize perspective, views, hotkey... ( //www.ibm.com/developerworks/opensource/library/os-eclipse-master1/ )








Customize formatting ( //www.ibm.com/developerworks/opensource/library/os-eclipse-master3/ )




Refactoring 2003 ( //www.ibm.com/developerworks/library/os-ecref/ ) :




Integrate SVN/CVS ( //www.ibm.com/developerworks/opensource/library/os-ecl-subversion/ )




Debug PHP ( //www.ibm.com/developerworks/opensource/library/os-ecbug/ )




Debug C/C++ ( //www.ibm.com/developerworks/library/os-eclipse-cdt-debug2 )




Debug Python ( //www.ibm.com/developerworks/opensource/library/os-ecant/ )




Debug ActionScript ( //swingchen.bokee.com/6028838.html )




Debug ColdFusion ( //www.ibm.com/developerworks/opensource/library/os-eclipse-cfeclipse/ )




And Ruby ( //www.ibm.com/developerworks/opensource/library/os-eclipse-rdt/ )




even .NET ! ( //www.ibm.com/developerworks/opensource/library/os-eclipse-migratenetvs/ )




and more... ( //www.ibm.com/developerworks/opensource/library/os-eclipse-iphone/ )




Rocks solid on multi-OS : ( //www.ibm.com/developerworks/opensource/library/os-eclipse-osxjava/ )







Other IDEs which turn out to use Eclipse codebase :

FlexBuilder (Adobe)
Websphere Studio Application Developer (IBM)

JDeveloper (Oracle)
JBuilder 2007+ (Borland)
WebLogic workshop (BEA)
ZendStudio (Zend)
Aptana (Aptana)
PowerDesigner (Sybase)
MyEclipse (Genuitec)
Rational XYZ (IBM)
Parasoft XYZ (Parasoft)
. . .


...

Thursday, February 26, 2009

Ubuntu APT deb

for Ubuntu and other Debian-family:

APT = Advanced_Packaging_Tool


sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrage


sudo apt-get install envyng

sudo apt-cache search envyng


The deb files are stored at /var/cache/apt/archives


sudo dpkg -i xvnkb-0.2.9a-utf_i386.deb

man dpkg

Saturday, February 14, 2009

Eclipse Flex formatting

FlexBuilder cheapest license is around 500$ , and it does not support auto-formatting or Refactoring ?!!



OK, Adobe guys should improve those features fast, since Eclipse community begins to pay attention to Flex and Spring/BlazedDS integration :

http://sourceforge.net/projects/flexformatter/

Finally found ! No longer pain refactoring with stupid FlexBuilder stuff...

Sunday, February 01, 2009

JUnit mock frameworks

The main reason for using mock objects to write unit tests is so that they are unit tests. Without mock implementations, unit tests quickly become integration tests, which are much more costly and time-consuming.

Here is my ranking list for Java mock frameworks (supporting JUnit, TestNG) :

1/ PowerMock

2/ EasyMock

3/ Mockito

4/ FEST-mocks

5/ jMock


Which is the best mock framework to you ?

Friday, January 23, 2009

Linus on Git

Trong thế giới Software Configuration Management (SCM, hay thường được gọi là VCS hay RC) thì CVS (Concurrent Versions System) là một bước ngoặt, ngay từ lúc ra đời đã vượt trội SCCS, RCS, SS... để trở thành SCM tiên phong mạng diện rộng (WAN, Internet). Thành công của CVS chỉ đến khoảng 2000 thì bắt đầu bị cạnh tranh mạnh mẽ bởi SVN (SubVersioN), và đến bây giờ thì có thể nói SVN đã lấn áp được CVS để trở thành VCS được ưa chuộng nhất, họa may chỉ có Perforce mới cạnh tranh được, chứ VSS hay TFS thì còn xa mới theo nổi.

Tuy nhiên tương lai của SCM/VCS sẽ là distributed SCM, trong đó ứng cử viên sáng giá nhất hiện nay là Git, kế đến là Bazaar và Mercurial.


Git là một VCS mã nguồn mở dạng phân tán , được Linus Torvard viết ra nhằm thay thế 1 DSCM khác là BitKeeper , khi tác giả BK quyết định đổi license của BK. Và hiện nay Git được sử dụng thay cho BitKeeper trong việc phát triển kernel Linux, cũng như đang mở rộng ra nhiều ứng dụng khác (X-server, Samba, Qt, WINE, Perl, Android, RoR, VLC, Prototype, ...) .


Các bạn có thể xem đoạn Linus Torvards giới thiệu về Git tại Google Tech Talk:





Điều ấn tượng nhất với tôi qua cuộc nói chuyện này, đó là Linus không hề có vẻ gì là "geek" hay "anti-social" như nhiều người vẫn nghĩ, trái lại kỹ năng dẫn dắt vấn đề thu hút, trình bày dễ hiểu và hấp dẫn của anh đáng để khâm phục và học hỏi.


Một người có sức sáng tạo dĩ nhiên là một người thích khôi hài rồi, có phải không ?

Thursday, January 22, 2009

Top FireFox extensions

IMHO:


* Top 5 extensions for general users :

+ AdBlock Plus

+ DownThemAll(Linux,Mac)/FlashGot(Windows)

+ Session Manager

+ Download Status Bar (probably deprecated since FF 3.0)

+ FasterFox


Runner-up : Colorful Tabs




* Top 5 extensions for web developers :

+ FireBug

+ Grease Monkey

+ IE View Lite

+ MeasureIt

+ ColorZilla


Runner-up : Html Validator




* Top 5 extensions for Internet addicts :

+ Foxmarks

+ Fast Video Download

+ FireShot

+ Interclue

+ FoxyProxy

Runner-Up: Cooliris




Am I missing some thing?

Sunday, January 11, 2009

ThunderBird Gmail IMAP

+ Trước tiên đăng nhập vào web mail.google.com, bật chức năng IMAP :

- Settings -> Forwarding and POP/IMAP -> IMAP access -> Status: Enable IMAP


+ Tạo account mới trong ThunderBird với tài khoản Gmail :

- Tools -> Account Settings -> Add Account -> Email account -> Next : nhập tài khoản mail Google (ví dụ: username@gmail.com )


+ Chọn phương thức lấy thư, server lấy thư, server gởi thư:

- Next : type of incoming server -> IMAP ; Incoming server -> imap.gmail.com ; Outgoing server -> smtp.gmail.com


+ Chọn tên hiển thị trong thư gởi đi và thư nhận : để đơn giản nên điền chính tài khoản mail Google

- Next : Incoming User Name: username@gmail.com , Outgoing User Name: username@gmail.com


+ Chọn tên đại diện cho tài khoản trong Thunder Bird:

- Next -> AccountName : "gì cũng được :) " -> Next -> Finish !


+ Thiết lập trong ThunderBird (Account Settings), phần máy chủ nhận (Server Setting) :

- Server Settings -> Port : 993.
- Server Settings -> Security Settings -> Use secure connection -> SSL .


+ Thiết lập trong ThunderBird (Account Settings), phần máy chủ gởi (Outgoing server SMTP) :

- Chọn tài khoản tương ứng (thường có chữ Default) -> Edit -> Server Name : smtp.gmail.com ; Port : 587 (hoặc 25 ) ; User name and password : username@gmail.com (nên điền đủ cả phần @) ; Use secure connection : TLS, if available


+ OK, OK , thiết lập cơ bản vậy là xong ! Bây giờ có thể thử get mail và send mail :-)


Còn phần Recommended Settings sẽ ở 1 post sau :-)

Have fun,




Friday, January 09, 2009

Software 2009 forecast

Well, ai cũng biết là 2008 là năm trượt giá đáng kể ở VN kể từ khi mở cửa. Nhiều người cũng thấy cảnh khó khăn của nhiều công ty phần mềm trong nửa sau 2008, ảnh hưởng của khó khăn xuất phát từ nền kinh tế Hoa Kỳ, cũng như vài chính sách củ chuối của bác Ba Dũng.
Do đó không nhất thiết phải là 1 genius để tiên đoán về khó khăn của ngành phần mềm năm 2009, không chỉ ở VN. Nhưng cứ thử xem sao :-) .



Tổng kết lại, có thể thấy những thay đổi sẽ diễn ra trong các năm tới đây:

* Những kỹ sư phần mềm có trình độ cao, có nhiệt huyết và tham vọng sẽ là những cỗ máy làm ra tiền.

* Những lập trình viên không có kỹ năng đặc biệt có lẽ nên tìm việc làm ở lĩnh vực khác.

* Những thay đổi mà chúng ta đang thấy ở thị trường phần mềm đại chúng sẽ diễn ra ở các công ty lớn.

* Đưa phần mềm cho nước ngoài gia công (outsourcing) sẽ ngày càng ít tính kinh tế hơn.

* Khoa học máy tính vẫn là lĩnh vực cạnh tranh và đòi hỏi cao.



==> Tương lai của các LTV Việt Nam:

Nhìn các xu hướng đang diễn ra trên thế giới, có thể thấy rằng các dự án cần hàng trăm người sẽ ngày càng ít đi. Theo tính toán của Mỹ, chi phí outsourcing đang gia tăng (từ 1/10 lên 1/3 so với giá thành sản xuất trong nước) làm cho việc đưa phần mềm ra nước ngoài gia công ngày càng kém hấp dẫn. Ngoài ra, do khó khăn về giao tiếp và chệnh lệch về trình độ, chất lượng các dự án này cũng không được như mong muốn và rất khó bắt kịp các thay đổi của khách hàng.

Các LTV luôn có xu hướng muốn gia nhập các công ty lớn, tham gia vào các dự án lớn. Nhưng có thể đấy sẽ cách tiếp cận sai lầm vì:

* Tương lai của các công ty làm xuất khẩu phần mềm dạng này đang ngày càng bấp bênh.

* Bản thân các LTV thường không cải thiện được trình độ vì các công việc được giao ít cần kỹ năng cao hay tính sáng tạo.

Tất nhiên, nhìn thẳng vào thực tế, sự thay đổi sẽ không diễn ra ngay trong nay mai — mô hình thác nước và các biến thể của nó vẫn sẽ được dùng, người ta sẽ vẫn outsourcing. Nhưng mọi thứ sẽ ngày càng khó khăn hơn, đòi hỏi cao hơn và chỉ khi bạn thực sự chuẩn bị tốt cho sự thay đổi thì mới tránh được việc bị đào thải.

Đáng lo ngại nhất là các LTV Việt Nam còn xa mới theo kịp các đồng nghiệp ở các nước như Ấn Độ hay Ireland cả về mặt tổ chức lẫn kỹ năng. Chúng ta quá chú trọng tới các công nghệ độc quyền của Microsoft, Oracle hay IBM và hiểu biết về mã nguồn mở là một lỗ hổng lớn. Không may, có thể ngày mai công ty sẽ nói lời chia tay với bạn chỉ vì bạn không có kinh nghiệm gì về Python hay cơ sở dữ liệu MySQL. Như tựa một bộ phim "Đó là một tương lai không quá xa" (Not too far future), xin hãy suy nghĩ lại con đường của mình.


(có trích đoạn từ blog của Chương Alibobo)

Thursday, January 08, 2009

BlazeDS quick notes

=== What is BlazeDS? ===

+ Java remoting and Messaging Technology.

+ Enables developers to connect to back-end distributed data and push data in real-time to Adobe Flex and Adobe AIR applications

+ Open Source

+ From SOAP to AMF (Action Message Format)

+ 10 times faster than XML based protocols, how?

+ Previously known as Adobe LCDS







=== Remoting (RPC) ===

+ Instead of Contacting services, RPC components contact 'Destinations'

+ Destination: Manageable Service Endpoints

+ Managed using XML based configuration file

+ 'Remote Object' not possible without BlazeDS
( Adobe Flash Player blocks request to any external hosts, solution? )


+ crossdomain.xml required ( For apps that are not using BlazeDS )

+ XML file that indicates:
- Data and documents are available to SWF files served from certain/all domains
- Must be in 'web root' of the server


=== AMF (10 times faster!) ===

+ Compact binary format for data serialization/ deserialization and remote method invocation.

+ Object encoding controls how objects are represented in Action Message Format (AMF).

+ Representation that can be transferred over HTTP/HTTPS.

+ As data size increases the performance benefits of using BlazeDS increase exponentially.

+ AMF improves performance by
- Dramatically compressing the size of data transferred.
- Parsing binary data into objects in memory far more efficiently than parsing XML data.


=== Quick Brief ===

+ Message Agents:
- Message Producers & Consumers
- Exchange messages through a common destination

+ Channel and endpoints
- Formats, Translates messages into network-specific form.
- Delivers to the endpoint (on the server)
- Server-Side Channel Unmarshals messages
- Configuration settings ( XML files) at runtime

+ Message Broker
- Routes messages to the appropriate service based on its type

+ Channel Types



=== Channel Configuration ===

+ Configure channels using services-config.xml

+ AMF protocol use an optimization technique

+ Assign channel at runtime( AS Code) by creating a ChannelSet object, and adding a channel to it.

var cs:ChannelSet = new ChannelSet();
var channel:Channel = new AMFChannel(“name”, endpoint)
cs.addChannel(channel);
Remoteobject.channelSet = cs;



=== Remote Object components ===

+ Access methods of server-side java objects.

+ No need to specify 0bjects as operations in web services

+ Use RemoteObject component in MXML/AS

+ Server - Proxied access to an RPC service

+ Communication happens over a 'destination'

+ Configured in the remoting-config.xml
- RPC method or URL, channel, adapter

+ Asynchronous communication
- AsyncToken object

+ Http Service and web service use proxy-service.xml for configuration.
- Limit access to specific URL
- Provide Security


=== BlazeDS with Tomcat ===
+ Unzip the blazeds-turnkey file on to your C: drive
(Blazeds comes with Tomcat default.)

+ Create a new application: C:\blazeds\tomcat\webapps

+ Copy & paste the META-INF, WEB-INF folder from the samples (zip) file.

+ Store all your java class files in WEB-INF/classes folder

+ Configure remoting-config.xml under WEB-INF/flex/ for all your remoting related details (destinations) . Create a and a specify a

+ Configure messaging-config.xml under WEB-INF/flex for all your messaging (real-time) by adding your destination

+ For all other service related details use the proxy-config.xml

+ Give references of all these xml files in services-config.xml (done by default)

+ Run your application http://:/


:-)

Saturday, January 03, 2009

PostgreSQL on HardyHeron

This is for Ubuntu (8.04 LTS) , but can be also applied for others.


=== Install PostgreSQL (8.3) ===

1/ Install the DBMS :

$ sudo apt-get install postgresql postgresql-contrib

(the postgresql-contrib is optional, it's just some additional facilities for Postgres)


2/ Install the GUI client (pgadmin or pg-client) to manage :

$ sudo apt-get install pgadmin3 postgresql-client


3/ Change password for user 'postgres' :

$ sudo su postgres -c psql
postgres=# ALTER USER postgres WITH PASSWORD 'password';
postgres=# \q


4/ Enable access from outside localhost (if needed) :

To do this, you may edit either postgresql.conf or pg_hba.conf or pg_ident.conf , their location in Ubuntu is /etc/postgresql/8.3/main/ . Perhaps the K.I.S.S way is to add a line into pg_hba.conf to pick the corresponding IPv4 subnet to be allowed:

host all postgres 192.168.1.0/24 md5

(That line means all private IPs 192.168.1.x will be allowed to connect Postgres)

To make sure the change is applied, restart the deamon :

$ sudo /etc/init.d/postgresql-8.3 restart



=== Some basic PostgreSQL commands ===
(to be updated)

Sunday, December 28, 2008

PureMVC framework notes

PureMVC is a lightweight framework for creating applications based upon the classic Model, View and Controller concept; based upon proven design patterns



This free, open source framework which was originally implemented in the ActionScript 3 language for use with Adobe Flex, Flash and AIR, has now been ported to nearly all major development platforms. It seems PureMVC is more popular in other languages (Java, C#, Ruby, ... ) than its competitor (Cairgorm) .





(to be updated)

Wednesday, November 26, 2008

J2EE with NetBeans

You can download the following simple demo presentation:
(the presenter's pronounciation is very clear, feel free to practice your listening skill :D ):

http://mediacast.sun.com/users/ArunGupta/media/v3prelude-nb65-webapp.flv

IMHO GlassFish is a fairly good Application Server, compared to JBoss, although the core servlet containers of both are derived from the same (Tomcat).