Feeds:
Posts
Comments

Archive for the ‘Windows’ Category

Windows server 2000/2003 allows two remote terminal services connections for administrative purposes. Every once in a while I’ll get the “You exceeded the allowed connection count” message when trying to connect to a server via RDP, because previous sessions were not disconnected correctly. You can use either of the following methods to remotely disconnect Terminal Server sessions. Method 1 You can normally run the Terminal Services Manager program on another server, or even from a Windows XP workstation, to disconnect Terminal Services connections by clicking Start – Run and then typing %SystemRoot%\system32\tsadmin.exe This will launch the local copy of Terminal Services Manager. Next right click on All Listed Servers and select Connect to Computer. Type in the name or IP address of the server you wish to manage.

Read Full Post »

Build Your Own ASP.NET Server Control Component
aka.
by alfred_ng@hotvoice.com
——————————————————————————–

Here will deliver a simple tutorial guide you how to build a component using VB.NET, and the steps using it with ASP.NET Web Page.

This component will generate the bullet or numbering beside your list.

Below is the coding of the component

Step1: Copy the code below save it as “ShowList.vb” filename.

================== Code Listing: ShowList.vb ========================

Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Collections

Namespace listControl

Public Class ShowList: Inherits Control

Private _dataSource As IEnumerable

Public Property DataSource As IEnumerable

Get
Return _dataSource
End Get

Set
_dataSource = Value
End Set
End Property

Public Title As String
Public Format As String

Protected Overrides Sub OnDataBinding (e As EventArgs)

Dim DataEnum As IEnumerator
Dim ltlLiteral As LiteralControl
Dim lstBeginFormatTag As String
Dim lstEndFormatTag As String

Controls.Clear()
Controls.Add(New LiteralControl(“” & Title & ““))

Select Case Format.ToLower()
Case “number”
lstBeginFormatTag = “


    lstEndFormatTag = “

Case “bullet”
lstBeginFormatTag = “

    lstEndFormatTag = “

End Select

If Format.ToLower() “number” AND Format.ToLower() “bullet” Then
Controls.Add(New LiteralControl(“
” _
& “Error Message: Undefined “”Format”” Property, either ” _
& “””number”” or “”bullet””

“))
Else
If Not DataSource Is Nothing
DataEnum = DataSource.GetEnumerator()
Controls.Add(New LiteralControl(lstBeginFormatTag))

While (DataEnum.MoveNext())
ltlLiteral = New LiteralControl (DataEnum.Current.ToString())

Controls.Add(New LiteralControl(“

  • “))
    Controls.Add(ltlLiteral)
    Controls.Add(New LiteralControl(“
  • “))
    End While

    Controls.Add(New LiteralControl(lstEndFormatTag))
    Else
    Controls.Add(New LiteralControl(“
    ” _
    & “Data Not Found!

    “))
    End If
    End If
    End Sub

    End Class

    End Namespace

    ================== End of Code Listing ==============================

    Step2: Compile and locate it at your web application root\bin folder.

    vbc /t:library /r:System.dll,System.Web.dll ShowList.dll

    Step3: Implement into your ASP.NET page, copy it and save it as “ListControl.aspx”.

    ================== Code Listing: ListControl.aspx ===================

    Sub Page_Load

    Dim theList As ArrayList

    theList = New ArrayList
    theList.Add (“Expresso”)
    theList.Add (“Cappurino”)
    theList.Add (“Coffee”)
    theList.Add (“Mocha”)

    dbBound.DataSource = theList
    dbBound.DataBind()

    End Sub

    ListControl Demonstration

    Build Your Own Bullet and Numbering Control Component

    ================== End of Code Listing ==============================
    In order to use the control, remember that locate the “ShowList.dll” file which is just generated into the web application root\bin folder. Inside your .aspx page, you need to attach this code on top

    Inside the content, you need to attach the code below to using the control.

    Description: Initially the Page_Load will bind the data into the control. You may bind the data with the database. For the “Format” property you can use either “bullet” or “number” to display your list. The “Title” property, it is just a title for the listing and in “BOLD” format.

    Thanks for reading and try it out. Any suggestion or recommendation about this control are welcome reply to me.

    source : http://www.asp101.com/articles/misc/usercontrol/default.asp

    Read Full Post »

    Apabila Anda ingin menambahkan user ke Windows 2000 server dan setelah cek Control Panel tidak menemukan icon User Account, silakan coba langkah-langkah berikut :

    1. From the Windows Start menu select Programs | Administrative Tools | Computer Management. If this menu item does not exist, you are either not an administrator for the computer or the server is a domain controller and you need to create a domain user instead.
    2. From the Computer Management dialog, navigate to System Tools | Local Users and Groups | Users on the left panel; right click on Users and select New user from the popup menu.
    3. In the New User dialog, enter prtracker, PR-Tracker and Problem Tracking System for the User name, Full name and Description, respectively.
    4. Uncheck box User must change password at next login and then check box Password Never Expires.
    5. Click the Create button to create the user and then click Close button.
    6. Optional steps follow: double-click the prtracker username on the right panel.
    7. From the prtracker Properties dialog, select tab Member Of and click the Add button.
    8. From the Select Groups dialog double-click Administrators and click the OK button.

    Note that optional steps 6, 7 and 8 are only recommended if you plan to use SQL Server as your database provider. Even if you do plan to use SQL Server as the database provider, these steps are optional if you choose to configure the server roles in SQL Server instead.

    Source : prtracker

    Read Full Post »

    Hari Rabu minggu kemaren, seperti biasanya aku suka download software-aplikasi untuk belajar dan senang-senang. Setelah install-uninstall berbagai macam software-aplikasi, ternyata di desktop Windows 2000-ku meninggalkan icon antivirus. Iconnya seperti gambar ini :

    Vista Antivirus 2008 Icon

    Sekilas tidak curiga, tapi setelah beberapa saat muncul tanda tanya muter-muter di atas kepala (seperti di pelm kartun, tuing..tuing). Koq aneh ya ada vista antivirus di sini padahal kompie ini OS-nya Windows 2000? Dan kecurigaan semakin besar karena mulai bermunculan pop-up yang mewajibkan pengguna untuk meng-klik pop-up tersebut. Ini screen capture pop-up yang muncul :

    Vista Antivirus 2008 Pop-up

    Wah, apabila sudah seperti ini artinya kompie ini memang sudah terjangkit trojan. Pekerjaan selanjutnya adalah mencari anti-spyware untuk menghancurkan Vista Antivirus gadungan ini.

    Beberapa anti-spyware yang aku coba antara lain Ad-Aware, Spyware Doctor (tidak berhasil diinstall, i don’t know why), Spyware Terminator (menurut referensi yang aku baca sich bagus, tapi kelemahannya banyak sekali warning-warning yang sangat mengganggu, sampai open Control Panel saja ada warningnya, duhh)  dan masih banyak lagi anti-spyware yang aku coba terutama yang menurut review mendapat rating good.

    Bagaimana hasil akhirnya? Kompieku terserang trojan-spyware yang jauh lebih banyak. Mungkin karena terburu-buru atau memang lagi apes yang membuat trojan semakin beranak-pinak di kompieku. Dan puncaknya adalah ketika kompieku benar-benar tidak dapat diakses. Dan solusi klasik dan salah satu jurus pamungkas adalah install ulang. Sebenarnya install ulang bukan hal yang berat dalam kondisi ini karena memang tidak banyak aplikasi yang ada di kompie ini, tapi ada hal yang lebih penting dari kejadian ini. Pelajaran menghadapi serangan virus, trojan, spyware dan berbagai penyakit dunia online.

    Berikut ini beberapa riset yang masih aku lanjutkan tentang Vista Antivirus 2008 meskipun kompie sudah aku install ulang. Penasaran.

    Ini salah satu referensi detail tentang cara menghapus Vista Antivirus 2008 :
    http://www.spywareremove.com/removeVistaAntivirus2008.html

    Tulisan ini aku tulis sambil riset tentang Vista Antivirus 2008. Jadi masih ada kemungkinan tulisan ini akan aku update sesuai perkembangan risetku.

    Read Full Post »