Sep 022016
 

Asalamu’alaikum wr wb

Kita awali pembahasan kali ini dengan materi ringan tentang angularjs saya sudah pernah berbagi tentang angularjs (http://sugik.do-event.com/2013/10/angularjs-bagian-1-basics/) tapi tidak ada salahnya jika sedikit review dan ulas balik tentang framework javascript yang satu ini.

Mengapa Harus AngularJs

HTML ada lah static document yang sering kita gunakan dalam pembuatan website, tetapi dengan adanya AngularJs sebuah halaman website akan dengan mudahnya kita dapat mengulah dan mengembangkannya menjadi sebuah halaman dinamik.

Alternatif

Kenapa tidak yang lain, inilah salah satu kelebihan dan AngularJs dia sangat mudah dan simple dalam pengolahan halaman HTML.

Pengembangan dan perkembangan 

Tidak dapat dipungkiri bahwa sebuah tools digunakan sedangkan pengembang dan perkembangannnya tidak bagus maka kita akan merasa kurang yakin menggunakan nnya. Berbeda dengan AngularJs yang memang sudah dikembangkan oleh google yang kita tau siapa google ? dan didukung oleh komunitas yang pasti tidaklah sedikit.

Dari beberapa alasan diatas maka tidak ada salahnya jika kita mengembangkan aplikasi dengan kerangka dasar menggunakan AngularJs.

Untuk lebih detailnya maka silakan buka halaman websitenya di https://angularjs.org/

Semoga dapat menjadi salah satu pilihan yang membantu. terimakasih

Wassalamu’ alaikum wr wb

May 262010
 

Assalamu’ alaikum wr wb

Tadi pagi buka – buka hardisk lama saya eh saya menemukan sebua folder bertulisan proteksi jar, trus buka deh didalamnya terdapat beberapa folder :

  1. jode-1.0.92
  2. proguard4.4
  3. retroguard-v2.3.1
  4. Dan beberapa file yang masih dalam kondisi rar file.

Mulailah buka – buka satu satu, akhirnya saya mencoba proguard4.4 ternyata bagus tuh aplikasi untuk meprotrksi aplikasi yang sudah menjadi jar. setelah proses encrip selesai, jika di decompiler maka class di dalamnya akan acak. untuk informasi lebih lanjut anda bisa masuk ke http://proguard.sourceforge.net/

Ini sekedar info bagi anda yang ingin jar nya di protek monggo, yang tidak ya monggo 😀

Wassalamu’ alaikum wr wb

Jan 092010
 

Saaat membuat report dengan Ireport 3.7 wah betul kata seoarang teman ada error wah mulai deh explorasi apa ya kira – kira yang error. error nya kurang lebih menyebutkan ada lib yang kurang yaitu lib nya grovy, ok download deh grovy trus jalankanlagi wah error lagi ada yang kurang lagi yaitu lib nya asm ok cari download juga asm. dan bla … sukses .

bagi yang males download libnya bisa download dari sini

Forum : http://forum.do-event.com/viewtopic.php?f=9&t=36

Semoga membantu

Jan 072010
 

Berikut source nya


ListSelectionModel rowSM = tabel1.getSelectionModel();
rowSM.addListSelectionListener(new ListSelectionListener(){
 public void valueChanged(ListSelectionEvent e) {
 tabelValueChanged(e);
 }
});

public void tabelValueChanged(ListSelectionEvent e) {
 if (e.getValueIsAdjusting()) {
 return;
 }
 ListSelectionModel rowSM = (ListSelectionModel) e.getSource();
 int selectedIndex = rowSM.getMinSelectionIndex();
 //isi event kamu
 }

Silakan di coba

Jan 012010
 

Assalamu’ alaikum wr wb

Kali ini saya akan membagikan pengalaman iseng setelah sholat subuh tadi. karena tidaka ada pekerjaan cari deh ide. oh iya bagaimana ya caranya kira – kira untuk membaca serial port di linux. Pasti kalian bertanya – tanya nih buat apa sulit – sulit harus membaca port di linux. Tenang beberapa saat yang lalu saya pernah membuat program SMS getway dengan menggunakan OS Windows, nah kali ini saya pingin membuat program tersebut jalan di linux ubuntu saya.

Pertama kali mari silakan download komponen untuk membaca port disini :

http://java.sun.com/products/javacomm/

Setelah itu anda tinggal extrak hasil download anda. kemudian setting

  1. Copikan comm.jar sudo cp commapi/jar/comm.jar /opt/jdk1.6.0_17/jre/lib/ext/
  2. Copikan javax.comm.properties sudo cp commapi/docs/javax.comm.properties  /opt/jdk1.6.0_17/jre/lib/
  3. Copikan libLinuxSerialParallel.so sudo cp commapi/lib/libLinuxSerialParallel.so /usr/lib/

Dengan asumsi lokasi hasil install java saya ada di /opt/jdk1.6.0_17/

Ok sekarang seting telah selesai tinggal mencoba hasilnya. sekarang buat source seperti berikut ini :

/**
 *
 * @author mbahsomo
 */

import javax.comm.*;
import java.util.Enumeration;

public class ListPorts {
 public static void main(String args[]) {
 Enumeration ports = CommPortIdentifier.getPortIdentifiers();
 while (ports.hasMoreElements()) {
 CommPortIdentifier port = (CommPortIdentifier) ports.nextElement();
 String type;
 switch (port.getPortType()) {
 case CommPortIdentifier.PORT_PARALLEL:
 type = "Parallel";
 break;
 case CommPortIdentifier.PORT_SERIAL:
 type = "Serial";
 break;
 default:
 type = "Tidak di ketahui";
 break;
 }
 System.out.println(port.getName() + ": " + type);
 }
 }
}

hasilnya seperti berikut :

/dev/ttyS0: Serial
/dev/ttyS1: Serial
/dev/parport0: Parallel

Bisakan, silakan explorasi.

Wassalamu’ alaikum wr wb

Dec 282009
 

Assalamu’ alaikum wr wb

Beberapa hari yang lalu ad seorang teman bertanya kepada saya gimana cara membuat program upload dengan AJAX dan php, setelah beberapa waktu baru hari ini luang.

Langsung pada permasalahan buat sebuah fodler pada htdocs kamu misal : latihanUpload pertama – tama buat script seperti di bawah ini :


<html>
 <head>
 <title></title>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <script language="javascript">
 //Buat object untuk Ajax
 var http=createRequestObject();
 var uploader="";
 var uploadDir="";
 var dirname="";
 var filename="";
 var timeInterval="";
 var idname="";
 var uploaderId="";

 function createRequestObject() {
 var browser = navigator.appName;
 if(browser == "Microsoft Internet Explorer"){
 return new ActiveXObject("Microsoft.XMLHTTP");
 }
 else{
 return new XMLHttpRequest();
 }
 }
 //Untuk upload
 function traceUpload() {
 http.onreadystatechange = handleResponse;
 http.open("GET", 'imageupload.php?uploadDir='+uploadDir+'&dirname='+dirname+'&filename='+filename+'&uploader='+uploader);
 http.send(null);
 }

 function handleResponse() {
 if(http.readyState == 4){
 var response=http.responseText;
 if(response.indexOf("File uploaded") != -1){
 clearInterval(timeInterval);
 //document.getElementById('loading'+idname).innerHTML="";
 }
 document.getElementById(uploaderId).innerHTML=response;
 }
 else {
 document.getElementById(uploaderId).innerHTML="Uploading File. Please wait...";
 }
 }
 //Pemanggilan pertama pada fungsi upload
 function uploadFile(obj, dname) {
 uploadDir=obj.value;
 idname=obj.name;
 dirname=dname;
 filename=uploadDir.substr(uploadDir.lastIndexOf('\\')+1);
 uploaderId = 'uploader'+obj.name;
 uploader = obj.name;
 document.getElementById('formName'+obj.name).submit();
 timeInterval=setInterval("traceUpload()", 1500);
 }
 </script>
 </head>
 <body>
 <form id="formNameid1" method="post" enctype="multipart/form-data" action="imageupload.php?dirname=" target="iframeid1">
 <input type="hidden" name="id" value="id1" />
 <span id="uploaderid1" style="font-family:verdana;font-size:10;">
 Upload File: <input name="id1" type="file" value="id1" onchange="return uploadFile(this,'')" /></span>
 <span id="loadingid1"></span>
 <iframe name="iframeid1" src="imageupload.php" width="400" height="100" style="display:none"> </iframe>
 </form>
 </body>
</html>

Beri nama index.html

dan selanjutnya buat file imageupload.php Continue reading »

Dec 192009
 

Yang paling menonjol dari ExtJs 3.1 adalah pada tambahan pada properties gridnya yang membuat semakinkeren, masih ingat dengan kemampuan excel yang bisa membuat split pada colom tertentu sehingga kolom tersebut tidak ikut scroll horrisontal.

Pada ExtJs 3.1 ini telah di tambah dengan kemampuan yang salah satunya bisa mengunci kolom tertentu sehingga kolom tersebut tidak terpengaruh saat scrol horisontal bergeser.

-

-

Untuk mengaktifkan Mode Lock anda dapat menambahkan source di bawah ini :

Script tambahan : Continue reading »

Dec 142009
 

‘s new in OpenSwing 2.1:
· changed TreePanel behavior when selecting multiple nodes: now popup menu is showed in this case too
· fixed problem in QueryUtil when using filtering grid with multiple values and is null operator
· improved grid/form value object analysis: now multiple instances of the of the same class are managed
· added “getLazyInitializedAttributes” to Form panel, in order to define attributes to skip on managing Form’s value object
· added HH_MM_SS_SSS and HH_MM_SS_SSS_AAA masks to Resources class, in order to support times expressed with milliseconds too
· fixed problem with TextAreaColumn when setting maxCharacters property
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 2.0.5:
Changes in grid control:
· added “getCurrentSortedColumns” to GridControl
· added “getCurrentSortedVersusColumns” to GridControl
· changed addSortedColumn/removeSortedColumn in order to execute internal sorting if “orderWithLoadData” property is false and
· last method argument is set to false
· added DateColumnSettings interface in order to customize date/time format for each cell in DateColumn, DateTimeColumn and TimeColumn
· Added srcchayenne, srcejb3, srclnf folder to OpenSwing distribution.
· Changed translation in PolishOnlyResourceFactory.
· Fixed a problem on JPAUtils when fired an exception.
· Fixed problem in TreeMenu.
· Added HH_MM_SS and H_MM_SS_AAA to Resources class, in order to support seconds in DateTime and Time columns/control.
· Improved NumericControl in order to check for maxCharacters property in real time and not only when losting focus.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.9.9:
· Final release 1.9.9 available
· Rebuild whole project.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.9.6:
· Added global property HEADER_FOREGROUND_COLOR to ClientSettings class, in order to set the default foreground color for column headers for all grids.
· Changed default value for “headerForegroundColor” property in Column class: now it is filled with HEADER_FOREGROUND_COLOR global property.
· Fixed problem with CheckBoxColumn when positive/negative values are not Boolean.TRUE/FALSE values.
· Fixed problem on using UI designer for OpenSwing components on Linux+Java1.6.
· Added “selectDataInEdit” property to text/numeric type columns, in order to auto select cell content when starting the cell editing.
· Added “SELECT_DATA_IN_EDIT” global property to ClientSettings, in order to auto select cell content when starting the cell editing for all grids.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.9.5:
· Rebuild whole project.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.9.4:
· Added global property SEARCH_ADDITIONAL_ROWS in ClientSettings, used by grid control in order to enable the retrieval of additional rows in fast search, when search criteria fails.
· Added boolean property named “searchAdditionalRows” to GridControl, in order to enable the retrieval of additional rows in fast search, when search criteria fails. Its default value is defined through ClientSettings.SEARCH_ADDITIONAL_ROWS global property.
· Fixed problem in GridControl on retrieving data: now status bar showes “loading data…” message again.
· Fixed bug in CayenneUtils class, when applying filtering conditions having multiple values.
· PivotTable improvement: added expand/collapseRow and expand/collapseColumn methods, in order to dynamically expand/collapse selected cell in data table.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.9.3:
· Improved check box column: now change value event is listened when clicking on check-box and no more after losting focus from cell, as for other columns.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.9.2:
· Improved ClientUtils.displayURL() method, in order to support Mac OS browsers.
· Fixed problem when using PivotTable in 3tiers applications.
· Added setVisibleColumn() method to GridControl, in order to dinamically show/hide columns in a already visible grid.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.9.1:
· Added French internationalization settings class.
· Added Norwegian internationalization settings class.
· Added addPopupMenuItem to TreePanel, in order to add a menu item to a parent menu item.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.9.0:
· Added “expandNode” and “collapseNode” methods to TreePanel and TreeGridPanel, in order to expand/collapse a single node.
· Fixed problem on opening some detail frames, having a lookup auto-completition feature enabled.
· Fixed problem when using Substance LNF on loading grid having an error.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.8.9:
· Added global boolean property HIDE_ZERO_DIGITS, used in numeric controls/columns in order to show/hide zero digits.
· Added “hideZeroDigits” boolean property to NumericControl and CurrencyControl, as for DecimalColumn, in order to show/hide zero digits.
· Added global boolean property CURRENCY_SYMBOL_ON_LEFT, used in currency controls/columns in order to show currency symbol on the left or on the right of the numeric value.
· Added “currencySymbolOnLeft” boolean property to CurrencyControl and CurrencyColumn, in order to show currency symbol on the left or on the right of the numeric value.
· Updated PolishOnlyResourceFactory content.
· Fixed problems when using afterMDIcreation callback with Substance Look ‘n Feel in demo10.
· Fixed problem on selecting check-boxes in grid when it is in read-only mode.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.8.8:
· Added SHOW_SCROLLBARS_IN_MDI global property to ClientSettings, in order to show scrollbars within MDI desktop pane.
· Fixed problem with page number in navigator bar when fetching last block of data.
· Fixed problem with check-box column in read only mode when clicking on it: now one click only is required to change check-box state.
· Fixed problem with auto completition feature in lookup component.
· Changed MDI frame default starting in Linux: now GTK look ‘n feel is replaced by Metal Look ‘n Feel.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.8.7:
Improved PivotTable component:
· now it is possible to drag ‘n drop row/column/data fields directly into the PivotTable, in order to swap their position.
· added “dataFieldRenderet” property to PivotTable component, in order to customize font, background/foreground color for data cells.
· Added INSERT_ROWS_ON_TOP global property to ClientSettings, in order to define for all grids that new rows are added at the bottom of the grid, instead of adding them at the top.
· Improved DateControl, DateColumn and DateTimeColumn, by adding “defaultDate” property, used to set a default date in calendar window
· when opening it and no date has been still set.
Fixed problems in GridControl:
· duplicate row feature now works also with “insertRowsOnTop” property set to false
· new rows removing now correctly operates also with inner value objects
· Applied some changes to MDI environment and graphics components, in order to support “substance” Look ‘n Feel library for Java 5.
· Changed “demo10” in order to show how to use “substance” Look ‘n Feel library for Java 5.

What’s new in OpenSwing 1.8.5:
· Changed About dialog content, by replacing max memory allocation with current memory allocation.
· Improved TreeGridPanel: now column headers use ClientSettings.HEADER_HEIGHT global property as header height.
· Added “autoFitCoumn” property to all columns, in order to auto fix column sizes, according to their text headers.
· Added AUTO_FIT_COLUMNS global property to ClientSettings, in order to define the default value for “autoFitCoumn” property of columns.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.8.4:
· Fixed a problem on selecting multiple rows in grid, using java 1.6.
· Implemented “hideButton” property in CodLookupColumn.

Improved LinkButton component:
· added “uri” property, in order to automatically open an URI in default browser, when clicking on the link
· added “labelAttributeName” property, in order to bind link button to the container Form panel and automatically set label from an attribute value of the Form’s value object
· added “tooltipAttributeName” property, in order to bind link button to the container Form panel and automatically set tooltip from an attribute value of the Form’s value object
· added “uriAttributeName” property, in order to bind link button to the container Form panel and automatically set URI to open, from an attribute value of the Form’s value object
· added “addLinkButton” and “removeLinkButton” methods in Form panel, in order to manage abilitation state of LinkButton, according to current Form state

· Created new GridControl column: LinkColumn; this link type column allows to click onto the link within the cell and automatically open the specified URI.
· Fixed problem in NavigatorBar when “showPaginationButtons” property is set to false and ClientSettings.SHOW_PAGINATION_BUTTONS_ON_NAVBAR is set to true.
· Fixed OutOfMemoryError problem when using HibernateUtils with inner value objects.
· Created unique toolbar on top of MDIFrame, in order to manage generic operations for grid and Form panel. Updated “Buttons” section of documentation in this web site, in order to describe unique toolbar at MDI environment level.
· Created “demo48” sample application, to show how to use a unique toolbar in MDIFrame for all grids and Form panels.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.8.2:
· Improved HibernateUtil class, in order to support sorting/filtering per attributes of inner value objects (see “demo17” sample application).
· Improved user grid profile and columns level permissions: now settings are cached after retrieval.
· Fixed problem in GridControl with check-box type cells, when move to edit mode directly within the check-box cell.
· Fixed problem with TextFormattedColumn when used with numeric values in filter panel.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.7.7:
· Improvements in exporting data: added GridExportCallbacks class, in order to include additional data before and after grid content and
· after each grid’s row just exported; in this way it is possible to combine data for master grid with data of a detail grid.
· Changed “demo10” sample application in order to show how to export master/detail grids in a single document with nested data.
· Changed behavior of “reloadData” method in GridControl: now it reloads grid content starting from the first record in result set;
· after that, the first record is selected.
· Added “reloadCurrentBlockOfData” method to GridControl, in order to reload current block of in grid; after that, old selected row is selected again.
· Improved MDI frame: add popup menu to desktop pane, in order to select custom image to use as background.
· Improved ComboVOColumn: added “reloadItems” method, in order to reload combo content.
· Fixed problem in attribute editor inside the UI designer, when the value object contains more than one inner v.o. of the same type.
· Added “isChanged” method to TreePanel, in order to decide whether tree content has been changed; invoked by InternalFrame.closeFrame();
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

What’s new in OpenSwing 1.7.4:
· Improved CodLookupControl by adding “lookupButtonVisible” property, in order to optionally hide lookup button.
· Added to ClientSettings the global property GRID_SCROLL_BLOCK_INCREMENT used to define the block increment when scrolling grid control (one row/page per time).
· Improved HibernateUtils class by adding getBlockFromCriteria and getAllFromCriteria, in order to inherit the correct optimization to query through Criteria argument (e.g. inner join, secondary select, etc.) and apply other external filtering conditions.
· Excluded Tutorial.swf Flash file from OpenSwing standard distribution and added it to new “OS_Tutorial.zip” distribution.
· The distribution includes also Jar file libraries, source files, javadoc, licence and readme.txt installation instructions.

Sumber :
http://mac.softpedia.com/progChangelog/OpenSwing-Changelog-38062.html

Sep 292009
 

Setelah beberapa hari saya bertapa dan bersemedi akhirnya bisa louncing versi beta untuk M Forum, dalam M Forum ini akan ada modul untuk chat yang akan bisa di load melalui 2 metode yaitu dengan melalui browser dan yang satu dengan mendownload program chat yang bisa di install ke kompi masing – masing tanpa perlu buka browser.

untuk sementara yang modul chat belum saya louncing karena masih dalam proses develop.

untuk demo forum anda bisa masuk ke sini : http://forum.do-event.com

M Forum

M Forum

Untuk dapat mendownload sourcenya anda bisa masuk kesini

Sep 262009
 

Assalamu’ alaikum wr wb

Pada akhir – akhir ini kita sering mendengar tentang kata – kata JSON atau JavaScript Object Notation biasanya sering digunakan pada pemrograman web, menurut kabarnya JSON inilah yang akan nantinya menggantikan format XML yang sering digunakan. kenapa harus menggunakan JSON, ada beberapa kemudahan pada JSON di banding dengan XML, kalau XML tagnya mirip dengan tag HTML sedangkan JSON dia lebih mengarah kepada Array yang ter setruktur.

contoh format XML :

<induk>
  <anak1>Satu</anak1>
  <anak2>Dua</anak2>
</induk>

Continue reading »