04
Aug
featured image

Performance of array vs linked-list on modern computers

posted on Friday August 4th, 2017 / 0 Comments

Few notes The array mentioned here is automatically-reallocated array (vector in C++, ArrayList in Java or List in C#). The benchmark graph between vector & list I showed in this post belongs to "Baptiste Wicht" in http://baptiste-wicht.com/posts/2012/12/cpp-benchmark-vector-list-deque.html (Thanks for saving my time for the benchmarking stuff). From theory People say Linked-list has much better performance than array when it comes to random-insertion & random-deletion. That's what we've learn in theory, too. And I've seen many people around the internet suggest to use linked-list when we need to do a lots of random-insertion & random-deletion. To practice "How could it be?" "Impossible!" Note: The "list" above is implemented as doubly linked-list in C++. And the …

more
27
Apr
featured image

Connect Oracle database on Eclipse Linux using OCCI

posted on Monday April 27th, 2015 / 0 Comments

To develop database application that use Oracle. Of course with Oracle database installed, programer must prepaire two packages provided by Oracle. One use to provide share library (*.so files) for application to run under Linux, another one is provide class header (*.h files) that programer can include in their application. We could download that two packages at http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html, it's called Instant Client. I'm using CentOS 6.2 64 bit, so I will download Instant Client for Linux x86-64, there any many packages, however, only two package we need: Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications. *Instant Client Package - …

more
27
Apr
featured image

Develop “Hello world” Magento extension

posted on Monday April 27th, 2015 / 0 Comments

To develop magento extension, first of all, we must understand about Magento Folder Structure. It you are doing some update but no changing, try to disable Magento cache at System/Cache Management. All magento extension should be place in /app/code/community. In /app/code you also see core folder, sometime may be local folder which is created by other extension. The community or local called Code Pool. Begining, we create our extension folder structure, if my company named Bb, and my extension name is Product, I will create the folder structure /app/code/community/Bb/Product. It's mean our extension stay in community Code Pool and our extension is Bb_Product. Store your extension information in /app/code/community/Bb/Product/etc/config.xml. The simple extension config …

more