BLOGGER TEMPLATES AND TWITTER BACKGROUNDS »

Tuesday, June 30, 2015

Tips Asp.Net

Belakangan ini saya sedang menggeluti mengenai kodingan, query dll *mabok* hehe
Sekarang ini sedang membuat project berbasis Asp.Net. Dimana ini project nanti nya untuk client, salah satu bank swasta :)


Berikut saya melihat ada artikel bagus di Tips Asp.Net
yang berguna sekali untuk para developer developer Asp.Net
Bergelut di bidang IT memang abstrak, ilmu pasti, kelihatan nya hanya begitu, tapi otak dan logika yang jalan ini membuat lupa waktu dan juga terus berfikir all day .. hehe


Berikut Tips untuk ASP.Net

1. Lebih baik menggunakan Flow control layout daripada Grid Control Layout ketika membuat Web application di ASP.NET. Alasannya grid control menggunakan style posisi absolut dan ukuran kontrol, yang tidak didukung oleh semua browser.

2. Ketika menggunakan datagrid yang non-editable dan menggunakan template column, jangan men-setup tag EditItemTemplate pada column-column tersebut. Ini akan menambah besar grid. Juga ketika menggunakan Bound Columns dengan data gridmu(non-templated columns) dan jika user tidak dapat mengubah isi dari grid, buatlah semua column readonly.

3. Jangan menggunakan label pada form web kecuali jika itu akan dihubungkan dengan code (mengubah text atau membuat menjadi tidak tampak). Jika web mengandung text yang tidak berubah saat program dijalankan, ketik secara langsung pada halaman. Alasannya tidak guna bila kita menambah beban yang tidak diperlukan pada aplikasi.

4. Ini lebih cepat untuk membandingkan panjang string daripada membandingkan dengan ""

Daripada melakukan ini
If(txtName.Text = "") Then
Lebih baik ini
If(Len(txtName.Text) = 0) Then
atau
If txtName.Text.Length = 0 Then

5. Hindarilah menggunakan Response.Write pada ASP.NET. Proses render ASP.NET terjadi setelah Response.Write, kita tidak mempunyai control atas data yang ditulis pada page tersebut (Ini akan muncul pada page paling atas, bahkan di atas tag HTML).

6. Hindarilah menggunakan RegisterStartupScript. Ini akan menambah proses yang tidak perlu pada web server untuk menangani hal-hal yang seharusnya dilakukan pada client (seperti validasi form). Sebagai penggantinya gunakanlah .NET validator control (Compare, Custom, Required Field, Regular Expression).


Para Developer Asp.Net yang membaca tulisan ini, bisa share link link dewa yang menjadi pedoman para master hehe
Sedang suka baca artikel yang bermanfaat untuk pengembangan karir juga sekalian hhe ...


NEXT PAGE

 

16 Tips untuk Membuat Aplikasi ASP.NET dengan Performansi Tinggi

1. Disable session state bila Anda tidak menggunakannya
Tidak semua aplikasi atau halaman membutuhkan session state per user, jadi disable untuk yang tidak membutuhkannya

Cara disable session state pada sebuah page
< % Page EnableSessionState="false" % >

Jika sebuah halaman mengakses variabel session tetapi tidak membuat atau mengubahnya, isi EnableSessionState dengan ReadOnly

Untuk disable session state pada sebuah aplikasi gunakan kode :
< sessionstate mode="off" / >

2.Pilihlah provider session-state dengan hati-hati
ASP.NET menyediakan tiga cara untuk menyimpan data session : in-process session state, out-of-process session state sebagai Windows Service, dan out-of-process session state pada database SQL Server. Ketiganya memiliki keunggulan masing-masing tetapi in-process-session state yang tercepat.

Gunakan in-process untuk data sedikit, out-of-process untuk aplikasi multiple processor atau komputer

3. Hindari hubungan dengan server yang terus menerus
Meskipun tampaknya menarik bila menggunakan fitur-fitur Web Form yang menghemat waktu dan code, tetapi ada keadaan dimana penggunakan server control dan postback event handling tidak sesuai.

Hubungan ke server hanya dibutuhkan saat mengambil maupun menyimpan data. Misalkan validasi inputan dilakukan sebelum data dikirim ke server, jika anda tidak perlu mengiriman data ke server untuk disimpan ke database maka tidak perlu menulis code yg menyebabkan round trip.

4. Gunakan Page.IsPostBack untuk menghindari pemrosesan yang tidak diperlukan

5. Gunakan ASP.NET server control dalam keadaan yang sesuai
Meskipun server control sangat mudah digunakan, tetapi tidak selalu merupakan pilihan tepat. Pada beberapa kasus, rendering atau data binding dapat digunakan

6. Simpan server control view state hanya jika diperlukan
Fitur view state pada server control berpengaruh pada performansi, karena view state dipassingkan dari dan ke server pada hidden form field.
Untuk mematikan view state pada sebuah control dengan (contoh pada datagrid)
< asp:datagrid EnableViewState="false" datasource="..." runat="server" / >
Untuk disable seluruh page
< %@ Page EnableViewState="false" % >

7. Biarkan buffering on kecuali bila ada alasan khusus untuk meng-off-kannya

8. Jangan bergantung pada exception dalam code
Exception menyebabkan performansi menurun, jangan menggunakannya untuk mengontrol flow program yang normal
Jika memungkinkan, carilah kondisi pada code yang dapat menyebabkan exception, jangan catch exception tersebut sebelum menangani kondisinya.

9. Hindari object yang memiliki method-method finalize

10. Jika anda membuat Web application yang besar, pertimbangkan pre-batch compilation
Batch compilation dilakukan saat request pertama pada sebuat directoru. Jika tidak ada halaman pada directory yang sudah di-parse ataupun di-compile, maka fitur ini akan melakukan parse dan compile. Jika terlalu lama maka sebuah halaman akan di-compile dan parse dengan cepat ada penggunakan memori lebih baik.

11. Recyle proses saat menjalankan aplikasi web ASP.NET pada IIS 5.0
Proses-proses perlu di-recycle secara periodik, untuk stabilitas.

12. Gunakan HttpServerUtility.Transfer untuk pindah antar halaman dalam aplikasi yang sama sehingga mencegah pindah antar halaman yang tidak perlu pada sisi client

13. Gunakan stored procedure pada SQL Server untuk akses data

14. Cache data dan page output sebisa mungkin

15. Jangan lupa disable mode debug

16. Enable authentication hanya untuk aplikasi-aplikasi yang membutuhkannya

 

Semacam Optimisasi untuk ASP nih, berguna bagi developer dan programmer :)

 

Adrs 

andina@axindosecurity.co.id

andinadyahratnasari@gmail.com

andinadyahratnasari@yahoo.com





Thursday, June 18, 2015

20 facts about adrs #me

Share about 20 fact about yourself ..


20 facts of me

1. I love my god, Allah swt. As moeslem, i iqro Alquran.
2. My Family name is "Hirawan"
i have a father with a gorgeous heart, my mother with disipline one, but she make me strong, and i really be thankful to her, they all sipil employee.
my brother is someone crazy about tech like me, my sister someone  who work hospitally.
I love them btw and i am the younger in my fams
3. My body easy gain weight, i am fully bless because i am health, so i must keep my food (is called diet, damn.. ups)
honestly i love eat, and i love slim too :(
4. I have best, partner in crime, i called them kesayangan, i love all of them, so much, they all always help me :*
5. Honestly i am pet lover, especially a cat!! How i love the cute one thing god created..
My first cat's name is "shiro", her color is like "bon bon cat".
And now my baby cat is michi, she is really cute, i love her so damn.
6. My SHS is 112, called swable, 2009 generation. I graduated from Budiluhur, south of jakarta, at first 2013, my bachelor spend 3,5years, i got "S.Kom" behind my name, i planned to continue my master with IT bussiness major(i hope get it free, amin). My last toefl score is 600, is just a luck.. I love study, i love reading, i love blogging, i love sing, although my voice isn't good, i am excited to know about something new, is make me curious. When i am at college my friends call me "emma watson".
7. I always have optimist soul, but sometimes, when i am down, i weak as a tiny child.
8. I always be bullying target, my friends says because i am easy going and no worry about that (nerd, right?)
9. I am maspanger's generation (big family)
10. I am still single but not available >.< muehehe..
I hope can marry with a gorgeous heart one, someday on 2017.
11. My wishlist is : own car and own apartment, i work hard to make my dreams come true..
I love travelling, but not obsesses with that, i am focus to buy my wishlist.
12. I work at security solution, 
PT. Axindo Humaperdana, 
as an analyst system and programmer.
I past almost 2years at PT. Jaya Konstruksi Manggala Pratama as a secretary coorporate (Technical, administration, and side IT).
13. My thesis is a system about library, i do it at SMPN 38, benhil. My KKP at Joe's Auto Car a system solution about "service". 
14. I have my own onlineshop @alleyshashop i build at april 2015, i am a part of
PT.Tupperware Indonesia since june 2015.
15. Bycycle is the one i drove well and full confident hhe...
I love a car with high speed, manuver is my favorite.. haha and i have driving license type A like my bloodtype , A.
16. I love exercise, bycycle, swimming, walking, running, but i seldom do it, because i do my home work.
17. I can cook, my best food is fried rice, i can made a cake too.
18. My first salary i got is when i am 10 years old, as a privat teacher, i teach kids around my house.
19. I earn Rp. 500.000 from sell my cake made, to pay my study tour fee, when i am at senior high school during a month.
20. I love daniel radcliffe as an actor, i love vidi aldiano as a singer ;) 


Adrs
andina@axindosecurity.co.id
andinadyahratnasari@gmail.com
andinadyahratnasari@yahoo.com

Tuesday, June 16, 2015

Biaya Pembuatan Aplikasi Mobile

Berhitung Biaya Pembuatan Aplikasi Mobile

mobile price 
 
Hallo Developer agan dan aganwati.. 
Here dari blog source juga saya mau share mengenai tentang biaya apps mobile developer
dengan semua platform..
 
 
 
Ternyata ada yang menarik jika kita menilik apa dan bagaimana sebuah aplikasi mobile itu dibuat. Selain membutuhkan resource yang banyak, seperti tenaga, fikiran dan support aplikasi. Pembuatan perangkat lunak berbasis mobile ternyata juga memiliki nilai insentif yang berbeda-beda untuk setiap platform.
Taruh saja misalnya seorang developer Android dan iOS. Dilihat dari background developer yang dibutuhkan sudah cukup berbeda, selain itu biaya yang dibutuhkan pembuatan aplikasi untuk kedua platform tersebut ternyata juga berbeda. Apalagi platform lain semisal Blackberry, Windows Phone dan OS mobile lain.
Hal pertama yang membedakan pembiayaan development aplikasi mobile adalah perangkat yang dibutuhkan dan support aplikasi untuk keperluan development. Oleh karena itu, mari kita coba berhitung-hitung mengenai pembiayaan untuk pembuatan aplikasi mobile beberapa platform terkemuka saat ini.

android logoAndroid

Android yang bisa kita katakan sebagai platform open source merupakan sistem operasi yang paling dilirik oleh para developer mobile. Dan menurut penulis, pembuatan sebuah aplikasi berbasis Android juga tidak membutuhkan biaya dibanding membuat platform lain.
Daftar Tools Android
No Tools Harga
1 Eclipse IDE + Android Development Tools Gratis
2 Phonegap (Cross Platform) Gratis
3 Game Maker Studio (Android) 299 US$
4 Sencha Touch Bundle (1 Developer) 695 US$
5 Corona SDK Pro 599 US$ per Tahun
Sebagai modal awal yang paling murah dan gratis, kita bisa menggunakan sistem operasi Linux baik Ubuntu, Fedora atau Mint untuk proses development. Kemudian tools yang paling sering digunakan yaitu Eclipse IDE pun gratis tersedia di internet. Bahkan berbagai tools pembuatan aplikasi Android mulai dari yang disediakan Google hingga penyedia pihak ketiga (third-party) bisa kita dapatkan tanpa merogoh kocek.
Developer hanya perlu membeli perangkat Android yang dibutuhkan untuk pengujian aplikasi platform robot ijo ini. Selain itu pendaftaran sebagai Publisher Google Play dengan perkiraan dana 25 US $ (250 ribu). Silahkan lihat tabel di atas untuk kalkulasinya.

ios logoiOS

Nah, ini dia platform yang menurut penulis paling banyak membutuhkan dana untuk proses development. Meskipun developer platform buatan Apple ini juga sudah sangat banyak. Tapi jika kita kalkulasikan pendanaan untuk sebuah aplikasi iOS ternyata cukup mahal. Belum lagi saat pendaftaran di Market Apple yang juga membutuhkan dana sekitar 99 US$ per tahun.
iOS
No Tools Harga
1 xCode (Harus Mac) Gratis
2 Phonegap (Cross Platform) Gratis
3 Game Maker Studio (iOS) 299 US$
4 Sencha Touch Bundle (1 Developer) 695 US$
Sebenarnya pemain utama para developer iOS umumnya adalah perusahaan mobile yang sudah memiliki tingkat income dan kekuatan manajemen. Karena modal besar untuk menjadi developer iOS terkadang menghambat para developer pemula. Walaupun begitu, pangsa pasar aplikasi iOS sangat lah luas dan terbuka lebar.

windows logoWindows Phone

OS mobile besutan raksasa Microsoft ini memang masih kalah dibanding dua platform yang saya bahas diatas. Namun menurut kenyataan di lapangan, developer yang melirik untuk memproduksi aplikasi berbasis Windows Phone juga cukup banyak.
Windows Phone
No Tools Harga
1 Visual Studio 2012 Rp. 5.500.000
2 XNA Game Studio Gratis
3 Phonegap (Cross Platform) Gratis
Untuk join ke developer Windows Phone, seorang developer atau perusahaan mobile harus merogoh kocek sebesar 99 US$. Sedangkan kebanyakan tools yang dipakai untuk development aplikasi Windows Phone adalah Microsoft Visual Studio 2010 / 2012, yang berharga 5 juta rupiah untuk 1 user.


Source Artikel Biaya Pembuatan Aplikasi


 Regards

Adrs
andina@axindosecurity.co.id
andinadyahratnasari@gmail.com
andinadyahratnasari@yahoo.com


PhoneGap Introduction

Hi Blogger

This time i want to post about multiplatform apps, because i want to develop about mobile apps, so this time i want share about 'phonegap' , wish me luck..
I sharing a material of study a couple of time, so i try to post again, hehe..

PhoneGap From Scratch: Introduction

This post is part of a series called PhoneGap From Scratch.
PhoneGap From Scratch: Device APIs
Want to learn how to use PhoneGap, but don't know where to get started? Join us as we put together "Sculder", not only a tribute to an excellent science fiction TV series, but a fully-fledged native mobile application for the believer in you!
Sculder
In this series, we will build a mobile application using some of the features in PhoneGap. We will go from installation of the SDK to deployment into the app stores of the two major platforms: iOS and Android. Concepts covered in this series will include accessing the device camera, local storage, and geolocation.
In this first part, we will take a quick look at what PhoneGap actually is and what you can use it for, and then look at the installation of the PhoneGap framework and the SDKs that we require for testing on OS X, Windows, and Linux environments. We will then build and run the very simple "Hello World" PhoneGap application to ensure that we have everything running correctly.
By now you probably have a good idea of what PhoneGap is and you've probably even used it, but, if not, here's a brief overview.
PhoneGap was born out of iPhoneDevCamp in 2008, where it was created simply because there were not a lot of Objective-C developers in comparison to Web Developers. The challenge was to put together a framework that would allow web developers to use HTML, CSS, and JavaScript to code applications that could take advantage of the native functionality of the mobile device, such as the Camera, Storage, and GeoLocation features. Initially built to work with the iPhone, within a year PhoneGap was growing and beginning to support Android too. Now, nearly 4 years old, PhoneGap is one of the most talked about toolkits for developing mobile applications and supports a much wider range of mobile devices including iOS, Android, Blackberry, Symbian, webOS, WP7, and Bada.
At the time of publication (e.g. January, 2012), the framework currently supports the Accelerometer, Camera, Compass, Contacts, File, Geolocation, Media, Network, Notifications (Alert, Sound, and Vibrate) and Storage device APIs. There is full support for all of these features in the newer iOS Devices (3GS+) and Android. For more details on support for Blackberry, WP7, Sybian, webOS, and Bada devices check the official compatibility table.
Despite contrary belief, PhoneGap is not a write once, deploy everywhere solution (although it does come close). It is certainly a cross-platform framework capable of running on many supported devices, but in order to deploy successfully you will likely need to test and tweak your code on each of the target devices.
If you want to develop for iOS, you will need an Intel based computer running MAC OS X version 10.6 or later. You will also need the latest version of Xcode (version 4 at the time of writing), and the iOS SDK for testing. In order to download Xcode, you'll need to sign up as a member of the Apple Developer Program.
Head over to www.phonegap.com and in the top left hand corner you will see a button to download the latest version of PhoneGap. Clicking on this will prompt the download of a ZIP file containing everything you need to get started.
PhoneGap From Scratch
Unzipping the file will give you numerous folders, each labelled with the targeted OS. As we are installing for iOS, open up the iOS folder and mount the dmg file. The dmg contains a pkg file. Click this and go through the installation process. After completing the install, you can go ahead and start up Xcode and when you come to create a new project, you should be able to choose PhoneGap as a template.
PhoneGap From Scratch
We can now set the options for our project and the location of our files. Once we've done that, our project is built in the directory specified and Xcode presents us with our summary page. Here we can easily add app icons and change a couple of the settings when our application is ready to be packaged and submitted to the app store - for now we will just go ahead and hit RUN in the top left hand corner. This will compile the app and fire up the iOS simulator.
PhoneGap From Scratch
If you try this now, after the splash screen you should get an error stating that the index.html file could not be found. No need to worry, this is actually what should happen. We need to go the the working directory for the project (Right click on the project in Xcode and click show in finder) and there we will see a www directory in the project root.
PhoneGap From Scratch
We now need to drag that directory INTO Xcode and add it to the project.
PhoneGap From Scratch
In the options for these files we need to make sure that we select "Create folder reference for any added folders", then click finish. Our www directory is now added to the project. We can now click run again and you will get the basic 'Hello World' for PhoneGap.
PhoneGap From Scratch
The www directory will now be our root directory for the app. This is where we will keep any HTML, CSS, or JavaScript that is going to be used by our app, just like you would expect for any other web application. The phonegap.js file is the JavaScript file that will act as our API, giving us access to the native APIs we might want to use in our application later.
Unlike developing for iOS, you are able to develop for Android on any platform. Although it is advised that you use the Eclipse IDE with a couple of plugins, there is an alternative way to use PhoneGap (via Command Line), but it's good if you start by doing it the longer way first with an IDE and then try out the command line way and see which one you prefer. In this tutorial we will be using the IDE method.
First, you are going to have to head to the Eclipse website and download the IDE for your platform of choice. The classic version is fine for what we need. Once downloaded, start Eclipse and we need to install the ADT plugin. You need to go to Help => Install New Software and click add in the right hand corner.
PhoneGap From Scratch
You then can enter ADT Plugin for the plugin name and enter the following for the repository URL.
The plugin will download and install and Eclipse will prompt you to restart. Once it restarts you can create a new Android project.
PhoneGap From Scratch
You will then go through the project wizard where you will give your app a name and set up its workspace. you will also select your build target SDK - you can select the latest one for now (4.0.3 at the time of writing). Go through the rest of the wizard and set up the remaining information for the app.
You will be asked if you wish to download and install the required Android SDKs at this point. If you already have them on your machine, go ahead and browse to the folder. If not, you can let Eclipse download them for you.
Within the root directory of the application we need to create a directory called lids and within the assets directory create another directory called www. Now, back to the original PhoneGap file that was downloaded and in the Android folder you need to copy the phonegap.jar file to the libs directory we created and then copy the phonegap.js to the www directory.
Your structure should look like the following:
PhoneGap From Scratch
Within our www directory, create an index.html file and drop in the code below:
Now we need to make some changes to the main Java file that can be found in the src folder. First, we need to change the class' extend from Activity to DroidGap.. We then need to replace setContentView(R.layout.main); with super.loadUrl("file:///android_asset/www/index.html"); and then add import com.phonegap.*; after the first two imports. Your Java file upon completion should look something like this:
Eclipse will probably be throwing some errors now, just right click on the libs folder and go to Build Path => Configure Build Path and then in the libraries tab, click add JAR and go ahead and include the phonegap.jar file. This should clear up the errors. Now, we need to add some permissions to the manifest file to ensure that PhoneGap will run correctly.
Open up the AndroidManifest.xml file and add the following before the application entry:
On the activity tag, add the following attribute:
This ensures that the app doesn't reload the index.html anytime those events happen.
The last thing to do is copy the xml folder from the PhoneGap download to the res directory in the project. You are now ready to run this in the emulator.
You can right-click your project now and run as an Android Application. If you haven't set up a device yet, you will be prompted to do so, if you need help doing this, check out the documentation here
PhoneGap From Scratch
And that's all you need to get started on Android!
So far, we have covered only two of the mobile platforms for our application, but it is likely that we would want to distribute across all the platforms that PhoneGap supports, right? Well, rather than go through installing a few more SDKs, another IDE with a few more plugins, and setup a Virtual Machine for testing, this series will use the PhoneGap:Build service when it comes time to distribute the app.
PhoneGap:Build, as it states on the website, is a cloud based service that will take a zipped up HTML/CSS/JS application and send you back the application, compiled and ready to go for distribution (one caveat: for Android, iOS, and BB you will need the required certificates for Distribution). PhoneGap:Build is in BETA at the moment, and while there are paid options (which are well worth having if you are going to be using it regularly), there is a free option that will allow one private application. That's all we need for our project a the moment, so go ahead and sign up now as we will be using the Build service at the end of the series.
We now have our environment ready for development with PhoneGap. In the next part of this series, we will start looking at the APIs that PhoneGap allows us to access and how to use them in our app.



Source PhoneGap Tutorial


Regards


Adrs
andina@axindosecurity.co.id
andinadyahratnasari@gmail.com
andinadyahratnasari@yahoo.com





Monday, June 15, 2015

PhoneGap (Multiplatform)

Project yang sedang saya garap sekarang berbasis
1. Web Base
2. Mobile

Belakangan saya research di www.google.com

Saya dapati aplikasi Multi Platform
PhoneGap

Saya menggali ilmu ini dengan research mbah google dan juga membeli buku karya dari
Bapak  Yuan Yudistira

Berikut link resource / website pribadi beliau
Resensi Buku PhoneGap










Sekarang ini sedang memesan ke

www.bukukita.com

ini toko buku yang recommended juga nih :D


Andina Dyah Ratnasari
Adrs
andina@axindosecurity.co.id
andinadyahratnasari@gmail.com
andinadyahratnasari@yahoo.com