Basic Accounting Software Source Code

Now Available: Full PHP Source Code for Basic Accounting Software. Suitable for learning purpose, modification for further enhancement, etc.

Download the Screenshot here

Functional Features

  • Input Journal Transaction
  • Input Cash and Bank Transaction
  • General Ledger
  • Balance Sheet Report
  • Profit and Loss Report
  • COA Transaction Report
  • Print out to PDF
  • Management User
  • Management Group
  • Management Module Menu
  • Workflow Document (approval)

Technical Features

  • Yii MVC Framework PHP
  • MySQL
  • jQuery/ AJAX

 

Order Now

Contact Email : info@vitraining.com
or visit www.vitraining.com

 

Posted in Delphi | Leave a comment

Ayo Membuat MP3 Player Sederhana di Android

Ini cuma aplikasi sederhana cara memainkan MP3 di SDCARD, dengan menampilkan daftar lagu MP3 pada sebuah ListView.

Buat proyek baru dengan nama MP3Player di Eclipse. Activity utama kita bernama Mp3PlayerActivity.

Layout

Pertama-tama definisikan layout untuk menampilkan daftar lagu. Pakai saja ListView untuk menyederhanakan program. Nanti kalau sudah mahir boleh pakai list yang lebih cantik tampilannya. Jadi bikin dulu layout baru namanya daftarlagu.xml.

<?xml version=“1.0″ encoding=“utf-8″?>

<LinearLayout

xmlns:android=“http://schemas.android.com/apk/res/android”

android:orientation=“vertical”

android:layout_width=“match_parent”

android:layout_height=“match_parent”>

<ListView android:id=“@id/android:list”

android:layout_width=“fill_parent”

android:layout_height=“fill_parent”

android:layout_weight=“1″

android:drawSelectorOnTop=“false”

/>

<TextView android:id=“@id/android:empty”

android:layout_width=“fill_parent”

android:layout_height=“fill_parent”

android:text=“tidak ada lagu SD Card”

/>

</LinearLayout>

ListView yang cukup simple, yang akan menampilkan text “tidak ada lagi di SD card” ketika tidak ada items ditemukan di ListView.

Lalu bikin lagi file XML untuk menampilkan setiap file MP3 yang akan dimunculkan di ListView, kasi nama misalnya viewlagu.xml.

<?xml version=“1.0″ encoding=“utf-8″?>

<?xml version=“1.0″ encoding=“utf-8″?>

<TextView android:id=“@+id/text1″ xmlns:android=“http://schemas.android.com/apk/res/android”

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”/>

Activity

Kemudian buka file MP3PlayerActivity.java yang sudah otomatis dibuat pada saat create project sebelumnya. Edit file tersebut sehingga lengkap seperti sebagai berikut:

package com.vitraining;

import java.io.File;

import java.io.FilenameFilter;

import java.io.IOException;

import java.util.ArrayList;

import java.util.List;

import android.app.ListActivity;

import android.media.MediaPlayer;

import android.media.MediaPlayer.OnCompletionListener;

import android.os.Bundle;

import android.util.Log;

import android.view.View;

import android.widget.ArrayAdapter;

import android.widget.ListView;

public class Mp3PlayerActivity extends ListActivity {

private static final String MEDIA_PATH = new String(“/sdcard/”);

private List<String> songs = new ArrayList<String>();

private MediaPlayer mp = new MediaPlayer();

private int currentPosition = 0;

@Override

public void onCreate(Bundle icicle) {

super.onCreate(icicle);

setContentView(R.layout.daftarlagu);

updateDaftarLagu();

}

public void updateDaftarLagu() {

File home = new File(MEDIA_PATH);

if (home.listFiles(new Mp3Filter()).length > 0) {

for (File file : home.listFiles(new Mp3Filter())) {

songs.add(file.getName());

}

ArrayAdapter<String> songList = new ArrayAdapter<String>(this, R.layout.viewlagu, songs);

setListAdapter(songList);

}

}

@Override

protected void onListItemClick(ListView l, View v, int position, long id) {

currentPosition = position;

playSong(MEDIA_PATH + songs.get(position));

}

private void playSong(String songPath) {

try {

mp.reset();

mp.setDataSource(songPath);

mp.prepare();

mp.start();

// Setup listener so next song starts automatically

mp.setOnCompletionListener(new OnCompletionListener() {

public void onCompletion(MediaPlayer arg0) {

nextSong();

}

});

} catch (IOException e) {

Log.v(getString(R.string.app_name), e.getMessage());

}

}

private void nextSong() {

if (++currentPosition >= songs.size()) {

// Last song, just reset currentPosition

currentPosition = 0;

} else {

// Play next song

playSong(MEDIA_PATH + songs.get(currentPosition));

}

}

}

class Mp3Filter implements FilenameFilter {

public boolean accept(File dir, String name) {

return (name.endsWith(“.mp3″));

}

}

Import package-package yang diperlukan. Di Eclipse, arahkan ke class yang dibilang error, lalu pilih import <nama package>.

Lakukan proses build (Project à Build Project) agar layout dikenali disini.

Function onCreate() gunanya untuk menampilkan view daftarlagu yang sudah kita buat sebelumnya. Kemudian memanggil function updateDaftarLagu().

Function updateDaftarLagu()  gunanya untuk membaca semua file yang ada di SD Card sesuai filter yang telah didefinisikan sebelumnya (yaitu class MP3Filter). Setiap file lagu yang ditemukan, nama filenya disimpan di variable songs. Kemudian dibentuk ListAdapter yang datanya berasal dari variable songs dan layoutnya dari viewlagu yang sudah didefinisikan di atas.

Ketika item di ListView di-click maka program menjalankan function playSong().

Function playSong()  gunanya untuk memainkan file MP3. Terlebih dahulu object variable mp di reset(), kemudian di-set file data nya dengan setDataSource(), di prepare(), dan di start(). Ketika selesai memainkan suatu lagu, program menjalankan function nextSong(). Ini dilakukan pada function setOnCompleteListener().

Function nextSong()  gunanya untuk  memajukan index variable songs dan memainkan lagu pada index tersebut.

Class Mp3Filter gunanya untuk meng-accept() file hanya jika ber-extension MP3.

Membuat emulasi SD Card

Agar bias jalan seperti di device, kita perlu bikin SD Card di emulator. Masuk ke folder android-sdk/tools, dan jalankan.

./mksdcard 128M /tmp/sd.img

Selanjutnya masuk ke menu Eclipse Run à Run Configurations… Pilih nama project yaitu MP3Player.

Di Tab Target, tambahkan di bagian Additional Emulator Command Line Options: “–sdcard /tmp/sd.img”

Lalu klik Run disitu untuk menjalankan emulator.

Awalnya program menampilkan pesan “tidak ada lagu di SC Card”. Gimana cara mengisi SD Card dengan file MP3?

Masuk ke android-sdk/platform-tools, dan jalankan

Adb push <sumber> /mnt/sdcard

Misalnya

adb push /Users/akhmaddanielsembiring/Documents/etc/lagu/Gigi\ -\ 11\ Januari.mp3 /mnt/sdcard

Jalankan ulang program di emulator, hasilnya kira-kira seperti ini.

Pingin tau lebih detail tentang pemrograman Android? Koneksi ke server, web services, JSON, GPS, Mapping Google maps? Ikuti training Android di VITRAINING.

Posted in Delphi | 2 Comments

How to Import Existing Project Directory Into SVN Repository

You can import an existing project directory (with contents) into an SVn repository, and use the current location as your version controlled working copy.

Here is how to do it:

Suppose that your non-versioned project sources are in /home/user/aproject, and your repository is ready at http://server/repos.

First, create an empty directory somewhere outside of your project tree, say, /tmp/empty. Import that empty directory in your subversion repository.

cd /tmp/empty
svn import . http://server/repos/aproject

Then, go into your existing non-versioned project directory. Now checkout the repository location you created in step 1.

cd /home/user/aproject
svn checkout http://server/repos/aproject .

Do not forget the trailing dot at the previous command. This will add the .svn files to your existing project directory, but it will not do anything else, so your existing files are safe.

Next, add the directory with your files to the repository

svn add *
svn commit -m 'initial commit'

Done.

Posted in SVN | 3 Comments

Guide to installing 3rd party JARs in Maven

Often times you will have 3rd party JARs that you need to put in your local repository for use in your builds. The JARs must be placed in the local repository in the correct place in order for it to be correctly picked up by Maven. To make this easier, and less error prone, we have provide a goal in the install plug-in which should make this relatively painless.

To install a JAR in the local repository use the following command:

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \ -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>

 

For example, to install jbilling_api.jar (API for connecting to JBilling application), use the following command:

mvn install:install-file -Dfile=/opt/jbilling_api.jar -DgroupId=jbilling \ -DartifactId=jbilling -Dversion=2.0 -Dpackaging=jar

Then, on the project’s POM file, add the following external dependency, so that Maven will include this jar while compiling:

<dependencies>

   <dependency>
           <groupId>jbilling</groupId>
           <artifactId>jbilling</artifactId>
           <version>2.0</version>
    </dependency>

</dependencies>

Posted in Funambol, Java, jbilling | Tagged , , , | 1 Comment

Engaging Customers with Facebook Applications

Picture of notebook screen with Facebook and F...

Image via Wikipedia

With the rapid advancement in the Internet and its increasing user presence, the medium has become a preferred means of communicating directly with customers. Among the most popular activities on the Internet is the voracious usage of social networking sites.

With its open architecture and wide range of functionalities, Facebook stands as the number one social networking site. There are many reasons for this cult followership of Facebook. The ease of use and dissemination of content, tagging of friends and related users on shared items is yet another great Facebook feature. Facebook also allows creation of secured groups and publicly available fan pages regarding your own brands.

The Facebook applications are its most popular components. Facebook has an open platform for web developers and programmers to create different applications to run applications from within its framework.

What is new about Facebook applications?

Until the option of applications was incorporated, the Facebook features were more about conventional social media usage, such as adding friends and creating groups pertaining to common interests and affiliations.

Continue reading

Posted in Facebook, Internet Marketing | Tagged , | 1 Comment

Official Presence on Facebook – Opportunities and Pitfalls

SAN FRANCISCO - NOVEMBER 15:  Facebook founder...

Image by Getty Images via @daylife

The Internet, as a medium, has opened the doors to a wide range of communication possibilities with customers. The interactive characteristic of the medium also makes it possible for a customer to publish his response to a vast audience. Social networking sites, particularly Facebook, which is getting increasingly popular around the world, have given customers an equal opportunity to communicate as loudly as you about your brand, in a public forum open to the whole world.

On the brighter side, there is a great opportunity to acquire direct and unadulterated feedback from customers, without the need of expensive and time-consuming surveys and research processes. Directly redressing customer queries on the medium itself can help increase brand loyalty.  However, as a brand owner, you need to realize the speed and potential of the medium to do good as well as harm. 

Continue reading

Posted in Facebook, Internet Marketing | Tagged , | Leave a comment

What is Autoblogging All About?

A screenshot of the default WordPress theme.

Autoblogging is simply a methodology for automating blog content. Traditionally, when you set up a blog you then either create the content by hand yourself, or you hire a freelancer to create the content for you. Either way it is both time consuming or expensive. But with autoblogging and the Massive Passive Profits system, you simply set up the blog once, set up the automated content stream and the blog updates itself on auto-pilot generating passive income for you while you focus on doing other things.

But isn’t autoblogging a ‘black hat’ technique that will get your site banned? I can hear you asking that question and I will tell you that if you set up your blogs properly following a proven method such as Massive Passive Profits your sites will not get banned and you will finally start generating some real passive income from blogging.

Continue reading

Posted in Blogging, Internet Marketing | Tagged | 1 Comment

Face Your Customers with Facebook

SAN FRANCISCO - NOVEMBER 15:  Facebook founder...

Image by Getty Images via @daylife

Communicating effectively with customers and delivering the right message to the right people has been one of the major challenges for any marketer since day one. Since early days of marketing, various forms of communication medium have been evolving with developments in technology as well as its consumers.

For a long time in the history of marketing communication, media remained the stronghold of newsmakers and advertisers and communication was mostly one way from the marketer to the reader. However, the trend of this inequality of voice was broken with the advent of the Internet and further developments within that medium itself.

Internet and Quantum Change in Media

The Internet brought about a sea change in the science and practice of mass communication and hence the process of marketing itself. But much before common users could take control of the content on the World Wide Web, the way we see it today, there was a time when content creation was the forte of those well-versed in HTML programming and web scripting languages. However, with the advent of services, such as blogs and social networking sites, the power of mass communication moved to the common user on the Internet.

Continue reading

Posted in Facebook, Internet Marketing | Tagged , | Leave a comment

Facebook and Consumer Learning Process

Image representing Facebook as depicted in Cru...

Image via CrunchBase

 

A great deal of successful marketing today depends on closely understanding consumer behavior. As a marketer, you may always be curious to understand what excites or motivates your customers into buying either your products or those of your competitor.  Depending on the buying and consumption cycle of your product, there can be several factors that will determine the sales conversion ratio for your product.

Toward Right Learning

A successful sale happens when your customer understands his need and is convinced that your product can satisfy that need in a reliable way.  Both these steps happen through a process, which is known as learning. Hence as a marketer, your job begins by ensuring that the customer perceives his need and, more importantly, finds the solution in your product

Right Learning and Right Conversations

At this very moment, you may be reading this article on your laptop or desktop. Remember the day when you had decided to buy your first computer. You must have considered many factors before finalizing which computer to purchase.  One of the important decision points for a buyer is his circle of reference. It is natural for you, as a buyer, to discuss with your informed friends about the best brand. Positive references from friends and acquaintances help one make a decision.

Continue reading

Posted in Blogging, Facebook, Internet Marketing | Tagged , | Leave a comment

Facebook and Social Media – The Next Marketing Opportunity

 

Funny Facebook Captcha :) Marketing as an activity is all about reaching the right customers with the right products, and the result sought is delighted customers who are more than willing to open their purses wide enough to boost your revenues. For many years, marketers stalked their target customers through various means and by trying to get their message across to spread awareness about their wares.

Traditional Means of Communication

Traditionally, marketing communications were conducted via print, broadcast and such traditional media through disruptive advertising, where advertisements appear in between the content of interest for the customer.

Traditional media does give a large reach to a marketer with its programming of mass appeal. However, the wastage is equally high, since a large portion of the audience would belong to a different segment than the one that is to be targeted by the marketer.

Continue reading

Posted in Blogging, Facebook, Internet Marketing | Tagged , | Leave a comment