WISHMASTER THE INSPIRATION

See also: Other Geeks@INDC
Add .exe reference

Today I'm exploring how to encapsulate .exe files to a dll and inherit it from my new screen. I'm doing this for a purpose I don't have to customize the Solomon's screen from a customization tools. I prefer customize it from Visual Studio to Customization tools.

The theory is not difficult to understand, I just add it as a reference, and done. But why I could not import the Solomon's screens into my new screen? When I added it as a reference, the Solomon's screen could not be loaded in Imports function. I also could not inherit it. Does Solomon protect it? Hmm

Share this post: | | | |
Configuring Microsoft Loopback Adapter

Microsoft Loopback Adapter merupakan suatu hardware virtual yang biasa digunakan untuk mengkoneksikan virtual PC dengan PC induknya tanpa adanya kabel LAN. Nah ini yang sekarang saya lagi explore, dan sebalnya belum bisa juga membaca pc root saya dari virtual pc saya :( saya sudah melakukan langkah” sebagai berikut:

1. Click Start, and then click Control Panel.
2. If you are in Classic view, click Switch to Category View under Control Panel in the left pane.
3. Double-click Printers and Other Hardware, and then click Next.
4. Under See Also in the left pane, click Add Hardware,and then click Next.
5. Click Yes, I have already connected the hardware, and then click Next.
6. At the bottom of the list, click Add a new hardware device, and then click Next.
7. Click Install the hardware that I manually select from a list, and then click Next.
8. Click Network adapters, and then click Next.
9. In the Manufacturer box, click Microsoft.
10. In the Network Adapter box, click Microsoft Loopback Adapter, and then click Next.
11. Click Finish.

(Source:  http://support.microsoft.com/kb/839013)

Pada awal waktu saya belum configure LoopBack Adapter, saya dapet message warning kalo network tidak akan terkoneksi karena belum aktifnya loopback adapter ini. Tapi setelah saya configure ini, message warning memang belum keluar, tapi pc root saya masih belum terbaca dari virtual pc saya ini [:'(]. Saya ping, server itu masih belum dibaca dan saya sudah berikan administrator access, tetap saja masih belum terbaca. What should I do?

Now, I’m out of knowledge of this, do anyone could help me?

 

Share this post: | | | |
Implement Singleton

Singleton…have you ever hear it? Yes, it’s kind of design pattern. Actually I have just apply it in my assignment and successfully run as I wish :). Do you know design pattern? Design pattern is kind of patterns that usually happen when you develop object-oriented programming. It’s kind of an algorith, not an implementation code. Singleton is one of them, the functionality is to prevent class was defined more than once. In case, I defined a new object form class a, it will allocate memory for class a object. In others time, I’d like to create a new one in another screen, it will allocate memory for class a object too. What if I create object from class a in a double double ? So pure if I become the memory :)

Below code is an implementation of singleton in VB .Net.

#RegionDesign Pattern Singleton
    Private Shared instance_Dgr As cDigram

    Protected Sub New()
    End Sub

    Public Shared Function getInstance_Digram() As cDigram
        If instance_Dgr Is Nothing Then
            instance_Dgr = New cDigram
        End If

        Return instance_Dgr
    End Function

#End Region

In your associated class, you could put your code as below to instantiate a new object.

Private oDigram as cDigram
oDigram = cDigram.getInstance_Digram

I’m happy finally I could implement it Wink
Share this post: | | | |