I Made Krisna's Times My Way to Write the Times

10Aug/110

Get All Local Network Interface Card (NIC) C# Source Code

Yeah, actually i'm back to blogger activities... This is the part of my next projects, M-NIC Projects. The goal is to get all information of our network interface card (NIC) information such as IP addresses, link speed, name, etc. So after doing some head-to-head within some programming languages, my choices is C# .NET, because i think it's easiest way to get that. The result is something like below, i retrieve all of my NIC which status is UP

Name            : Wireless Network Connection 2
Type            : Wireless80211
Status          : Up
Speed           : 4294967295
Description     : Microsoft Virtual WiFi Miniport Adapter
InterNetworkV6  : fe80::e1cf:b2ee:f5c7:e23e%31
InterNetwork    : 192.168.2.1
=======================================
Name            : Local Area Connection
Type            : Ethernet
Status          : Up
Speed           : 100000000
Description     : Atheros AR8152 PCI-E Fast Ethernet Controller
InterNetwork    : 192.168.1.3
=======================================
Name            : Loopback Pseudo-Interface 1
Type            : Loopback
Status          : Up
Speed           : 1073741824
Description     : Software Loopback Interface 1
InterNetworkV6  : ::1
InterNetwork    : 127.0.0.1
=======================================

And here is the code:

31Mar/111

.htaccess URL Rewrite on IIS 7.5

Many web applications distributed with .htaccess file to work properly, especially PHP sites. The problem is coming when the web server that is used cannot read or support the .htaccess operation like url rewrite that is common use of .htaccess files. One of that web server is Microsoft IIS, in this post it will be IIS 7.5.

How to do the .htaccess operation with Microsoft IIS 7.5? There is no way (as i know, please tell me if there is). But there is the equivalent operation with .htaccess file do using web.config on IIS.

First we need the IIS module for importing the .htaccess configuration and convert it to web.config configuration, it's named "URL Rewrite 2.0". The module can be downloaded from Mircosoft IIS official site (http://www.iis.net/download/urlrewrite) choose your windows version x86/x64 or install it automatically using Mircosoft Web Platform Installer.

24Feb/110

Fix Bootloader Windows 7 and Ubuntu 10.04 using EasyBCD

Installing Windows 7 and Ubuntu sometimes make a mess to bootloader on some computers or laptops. After rebooting the PCs, the bootloader won't shown or some case the Windows choice didn't shown by bootloader or vice versa.  One of the solutions is using application to rewrite the master boot record (MBR). One of the application that can be do this is EasyBCD,  and it can fix the bootloader problems.

EasyBCD Entry Settings

Then how to fix the problems using EasyBCD?

15Sep/100

Set Up HTTPS/SSL with Apache2.2 for Windows

First, make sure you’re downloading the Apache from http://httpd.apache.org/download.cgi and choosing the Win32 Binary including OpenSSL.

After installing the Apache, by default your Apache will be located at “C:/Program Files/Apache Software Foundation/Apache2.2″. Then open your “conf/httpd.conf” because in this post we will play just with this configuration file. First, search for “LoadModule ssl_module modules/mod_ssl.so” make sure there is no comment (#) in front of that line. This step will enable your server to accept HTTPS request.

...
#LoadModule speling_module modules/mod_speling.so
LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
...

Next, because of HTTPS/SSL connection by default using port 443 so we must set the apache to listen port 443.

...
#Listen 12.34.56.78:80
Listen 80
Listen 443
...