Wednesday, May 11, 2011

Tidak Bisa Menampilkan Library Code Igniter

Setelah sekian lama penasaran dengan apa sih yang namanya Code Igniter.. Kenapa lumayan bnyk dibutuhkan di dunia per-website-an.. Akhirnya saya memulai untuk mempelajari Framework Code Igniter. Saya akan membahas mulai dari instalasi. Pada waktu instalasi sebenarnya tidak terlalu sulit, kita hanya tinggal mendownload file CI di sini selanjutnya seperti biasa dicopykan ke localhost dan dijalankan. Pada waktu instalasi saya menggunakan xampp 1.7.2 dan CI 2.0.2 web yang saya buat bisa tampil, tapi ternyata tidak bisa memanggil library2 yang ada di CI. Setelah tanya2 dan coba2, ternyata versi xamppnya yg terlalu rendah. Setelah saya coba install xampp 1.7.4 (versi terbaru) akhirnya CI bisa berjalan dengan baik..

Sampai bertemu di post tentang CI selanjutnya.. :)

Sunday, February 6, 2011

Trend Website dan Hosting


Pertama kali berkecimpung di dunia website, ketika saya menginjak semester 3 di bangku kuliah. Saat itu saya membuat website-website offline yang hanya sebatas localhost. Ketika semester 6, saya tergabung dalam Tim Web Developer Website SMA  di kampus, sejak itulah pertama kali saya dikenalkan dengan istilah web hosting. Saya mendapatkan tugas secara berkala untuk mencari info tentang sekolah, lalu memasukkannya ke dalam website. Saat itu saya masih membuatnya secara offline, karena belum mengetahui bagaimana cara menguploadnya ke dalam web hosting. Saat itu saya masih meminta pertolongan teman saya untuk menguploadnya.

Beberapa bulan kemudian, saya mendapatkan tawaran untuk bergabung dengan tim web developer sebuah website e-commerce. Saat itulah saya pertama kali diperkenalkan idwebhost, karena ketua tim menganjurkan untuk memilih idwebhost sebagai web hosting kita. Karena project yang bernilai puluhan juta, saya menyangka pastilah harga domain dan hostingnya sangat mahal. Saat project itu berjalan saya mulai familiar dengan CPanel dan sudah bias melakukan upload-upload file ke dalam web hosting. Pengalaman kedua tergabung dalam sebuah project ini membuat saya familiar dengan istilah domain dan hosting.
Karena merasa sudah mulai terbiasa membuat project sampai terupload ke web hosting, saya mulai berani untuk menerima project berikutnya. Project berikutnya ditawarkan oleh seorang teman saya yg menjadi kepala sekolah sebuah sekolah dasar. Saat itu saya menanyakan kepada kepala tim project saya sebelumnya, kira-kira dimana harus membeli hosting murah, domain murah, tetapi berkualitas. Kepala tim langsung menjawab “Id webhost” dan memberikan saya link htpp://idwebhost.com. Kepala tim berpendapat bahwa idwebhost adalah webhosting tangguh dan webhosting terbaik yang beliau tahu. Saya langsung mencari tahu dan membaca jenis-jenis paket yang ada. Setelah saya melihatnya, ternyata idwebhost menawarkan webhosting murah dan domain murah yang sangat berkualitas. Pemikiran saya tentang membuat website sampai online sangat mahal, langsung terpatahkan seketika saat saya membuka website idwebhost itu. Sebelumnya saya berpikir bahwa membuat sebuah website sampai online pastilah sangat sulit dan mahal. Hosting pastilah harus dibeli dari negeri luar yang teknologinya lebih canggih. Begitu pemikiran saya sebelumnya. Tapi setelah melihat- lihat halaman demi halaman http://idwebhost.com saya langsung berpendapat bahwa sangat mudah mencari webhosting Indonesia, hosting murah, domain murah, hosting berkwalitas, dan webhosting tangguh.
Saya baru menyadari bahwa saat ini website dan hosting telah menjadi trend, tidaklah sulit untuk menemukan webhosting terbaik, tidak seperti zaman dahulu ketika website masih berupa sesuatu yang mewah karena baik dari sisi pembuatan atau web hosting sangatlah mahal. Sekarang membuat website sampai online sangatlah mudah dan murah. Karena sudah sangat banyak penyedia hosting berkwalitas. Salah satunya adalah idwebhost.

Tuesday, December 14, 2010

Link Tutorial ASP.NET Untuk Pemula

Setelah belajar Sharepoint selama beberapa minggu, alhamdulillah saya setidaknya berhasil melewati perjalanan rumit instalasi dan sudah bisa membuat web sederhana serta menambahkan webpart dan list ke dalamnya.. Karena diputuskan untuk ga ngambil project itu, sekarang saya diminta beralih ke dotnet programming, benar-benar buta masalah ini, dulu masa kuliah pernah pegang sebentaar dan sedikit bangett, jadi bener-bener harus belajar dari awal.. Searching-searching dapet link ini.. Lumayan,
E-book ini berisi tutorial lengkap benar-benar dari awal untuk mempelajari ASP.NET

http://cid-95fa00b4759a7c97.office.live.com/browse.aspx/ASP.NET%203.5%20untuk%20Pemula

Semoga bermanfaat untuk teman-teman yang mau melajarin ASP.NET dari awal juga.. :)

Saturday, December 11, 2010

Link to Learn Sharepoint

Video Tutorial
http://blog.sharepointhosting.com/Downloads/SharePoint-Tutorials.aspx
http://www.sharepointhostingprovider.com/sharepoint-tutorials/

E-book
http://www.flazx.us/get-book/dd/OTQxMjZfNDE0NzNfMTE0LjU2LjIzNC4xMF8yMDEwMTIxMQ==

Thursday, December 9, 2010

Memindahkan Sharepoint Site

1. Case untuk CA (Central Admin SharePoint)

Cara yang kamu lakukan.

1. Install Sharepoint sampai selesai
2. Backup dan restore database sharepoint central admin
    ada 2 file : SharePoint_Config (default nya sih ini)
                    SharePoint_admincontent_xxx (guid value)

3. Install Third party component yang digunakan

4. Open SharePoint Products and Technologies Configuration Wizard abis
    disconnect dari database yang lama, setelah itu connect lagi.
5. Delete database SharePoint_adminconfig_xxx (guid) karena masih mengacu ke
database yang lama
     caranya :
     STSADM –o deletecontentdb –url "http://mosssrv:4235" –databasename
"SharePoint_AdminConfig_xxx"

    add lagi :

    STSADM –o addcontentdb –url http://mosssrv:4235 –databasename
"SharePoint_AdminConfig" -databaseserver "NEWSQL"


untuk point 4 bila tidak mau di lakukan seperti cara wizard bisa dilakukan
dengan cara :

psconfig.exe -cmd configdb  -connect -server "newsql"
-*database*"SharePoint_Config" -dbuser "mossdbcreate" -dbpassword
"Aaa123456" -user
"DOMAIN\USER" -password "user_password"

cuman karena saya belum pernah coba hal ini, silahkan saja mencoba.

6. Hasil dari ini semua ada akan di create semua virtual website yang kita
buat. Dan bila koneksi antar vpc kamu dan server kamu ada koneksi yang
tinggal kamu lakukan adalah redeploy component yang ada

   a. di solution management redeploy semua nya
   b. register di GAC semua component lain yag dipakai, dll


2. Case untuk Site

1. Backup database site nya
2. Remove database di central admin database yang mengacu ke site tsb
(tenang aja cuman koneksi yang di hapus bukan database nya yang di hapus)
3. restore database site tsb
4. Add di central admin database tersebut
    bila database nya terlalu besar gunakan stsadm untuk menangai hal itu

      STSADM –o addcontentdb –url http://mosssrv:4235 –databasename
"SharePoint_AdminConfig" -databaseserver "NEWSQL"




Tadi nya hal ini mau saya taruh di blog karena dalam bulan ini lakukan step
ini.  :D


Regards
Agusto Xaverius P S, MVP, MCTS
https://mvp.support.microsoft.com/profile/agusto
http://geeks.netindonesia.net/blogs/agusto
http://www.linkedin.com/in/agusto

Simple WebPart On SharePoint 2010 Using Visual Studio 2010

Sekarang developer SharePoint semakin di manjakan dengan fully support-nya Visual Studio 2010 telah mendukung environment SharePoint 2010. Hal ini membuat menjadi lebih mudah membuat aplikasi (Webpart, Event handler, Business Data Services, dll), debugging, dan deployment.
Di bawah ini saya akan berikan step-step bagaimana membuat webpart dengan visual studio 2010 dan langsung akan terdeploy kedalam Sharepoint 2010 kita :
1. Tampilan depan SharePoint 2010
2. Create Sharepoint Project dengan Visual Studio 2010
3. Setting URL ShaePoint yang dipakai untuk deployment dan pilih “Deploy as a Farm Solution”
Perbedaan antara Deploy as a Sandboxed Solution bisa di lihat pada link ini : http://social.msdn.microsoft.com/Search/en-US?query=Sandboxed%20or%20Farm%20solution&ac=8 atau http://msdn.microsoft.com/en-us/library/ee361616.aspx
4. Pada Visual Studio 2010 Project SharePoint kita, akan otomatis Microsoft.SharePoint masuk didalam reference assembly yang kita butuhkan
5. Create a new Item Web Part File dengan nama TestWebPart
6. Input dengan code sebagai berikut :
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
 
namespace SharePointProject1.TestWebPart
{
[ToolboxItemAttribute(false)]
public class TestWebPart : WebPart
{
private Label lbl; 
protected override void CreateChildControls()
{
lbl = new Label() { Text = "Hello ini adalah Test Web Saya yang pertama di SharePoint 2010" };
this.Controls.Add(lbl); 
}
 
protected override void Render(HtmlTextWriter writer)
{
base.Render(writer);
}
}
}

7. Edit Property Web Part untuk Update Title dan Description
8. Build Solution dan Setelah itu Deploy Solution
9. Tambahkan WebPart yang telah terdeploy tersebut ke SharePoint Site yang telah di pilih sebagai deployment pilihan kita tadi.
10. Hasilnya seperti ini :
Selamat Mencoba.
Source 
  

Tuesday, December 7, 2010

How to make a Simple Web Part for MOSS/WSS in VB.net

So here is my howto based on the simplest way I have found to start playing int he wonderfull world of WebParts

Writing the Web Part
At this point I am going to make some assumptions.
  1. You have a MOSS/WSS installation up and running.
  2. You have Visual Studio 2008 VB.net installed
Now that the assumptions are out of the way we can get down to business.
  1. Open Visual Studio 2008
  2. Choose File | New | Project
  3. Under Visual Basic pick Windows and select Class Library from the templates.  Under Name call it "HelloWorld" and press OK
  4. Since all we are going to do is display some information we don't need lots of references, but we do need to add the System.Web namespace.  To do this we will select "Add Reference" from the Project menu and pick "system.web" under the .NET tab and press OK.
  5. In the Solution Explorer window on the right we will rename Class1.vb to HelloWorld.vb so that it is more descriptive.  You should notes that it renames the class name inside the file as well.
  6. To make things easier we will add the following import section to the top of the file above the Public Class statement.
    Imports System.Web.UI.WebControls.WebParts
  1. We will also make our class inherit from the web part class by changing the line "Public Class HelloWorld" to read
    Public Class HelloWorld : Inherits WebPart
  1.  Underneath the class name we just edited we will override the RenderContents method with our own output.  So type out "Overrides RenderContents" and press TAB to let the smart tags do the work.  You should now have a line that looks like this:
    Protected Overrides Sub RenderContents(ByVal writer As System.Web.UI.HtmlTextWriter)
        MyBase.RenderContents(writer)
    End Sub
  1.  Now we will replace the generated code "MyBase.RenderContents(writer) " with our own output and make the line look like:
    writer.write("Hello World!")
At this point our code page should look like the output below.
Imports System.Web.UI.WebControls.WebParts
Public Class Hello : Inherits WebPart
    Protected Overrides Sub RenderContents(ByVal writer As System.Web.UI.HtmlTextWriter)
        writer.Write("Hello World!")
    End Sub
End Class
Deploying the Web part
There are numerous ways to deploy a web part.  We can use the GAC and strong names, but I want this to be as easy as possible so we are just going to deploy directly to our website.
  1. Select Project and choose "HelloWorld" Properties
  2. Under the Compile tab change the Build Output directory to the bin folder of your website.  In my case I moved it to \\server\c$\Inetpub\wwwroot\wss\VirtualDirectories\80\bin
  3. To build the webpart choose "Build HelloWorld" from the Build menu.  You should see the HelloWorld.dll in the bin directory under the site along with a pdb and xml file.
  4. Now we need to add the webpart to the save controls list for the site.  Open up the web.config file and look for the "" tag that indicates the end of the Save Controls section.
  5. You will notice that all of the Microsoft lines use a strong name, public keys, versions etc.  This is more secure, but not necessary.  In our case we will just add our assembly name and an * to designate we are exposing all methods (I would not do this in a production environment, but it is ok for my test environment and will allow for quick deployment).  Our line will look like
    <SafeControl Assembly="HelloWorld" Namespace="HelloWorld" TypeName="*" />
  1. Save the web.config.  The act of saving the file is enough to restart the application so the site should recycle and get our changes
Testing the Web Part
At this point the web part is deployed, but not enabled.  To use the web part we have to do the following:
  1. Open the Website and browse to the Site Settings page
  2. Under Galleries choose "Web Parts"
  3. Click New and you should see your web part listed as HelloWorld.Hello or Hello.webpart.  Check the box and click the "Populate Gallery button"
You should now be able to browse to the home page of the site and add our new Hello web part to the page from All Web Parts -> Miscellaneous.  Cool huh?
Changing the Code
But wait, there is more!  Let's say we want to get fancy.
  1. Change the output line.  For example.
    writer.write("Hello " &  Context.User.Identy.Name)
  2. Then build your class again.  (Build | Build HelloWorld)
  3. Go back to your webpage and hit refresh
Without having to re-deploy your web part has been updated!
This is the easiest way I have found to write SharePoint web parts.  It cuts out all the bloat from the templates and allows for lighting fast testing.


Source

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Hosted Desktops