Category: Concept/algorithm

  • Refreshing USB ports using C#

    Finished a project in which I need to refresh the USB ports by just before we start some particular benchmarking application my client has. Seems pretty easy job, if you know to gain access of system resource. But, it become fun job, when I found that knowledge of system is not even necessary for this…

  • MDI Window: C# way

    So how can we make MDI Parent and Child Window in C#. The answer I found was that there is nothing inbuilt for it. So, I have two choice, either I modify the Window class and add MDI [Multiple Document Interface] coding in them or I found a alternative interface.  It took less than 5…

  • Static Object in ASP.NET

    Recently I found a problem in one of application we developed. Here my colleague use a Static SqlConnection object through a class in his code. He did that to save his effort of writing and Connection everytime. Everything works great during our development and online reviewing. However as soon as we lauch website in beta…

  • Selecting menu item using Javascript

    Okay, I create a pure CSS menu that use UL/LI structure to maintain the child relationship. All was great with this menu except that when you are on any of menu item page it doesn’t highlight that menu item explicitly. If you consider this it is not a big deal. What you can do is…

  • MVC : First Encounter

    I have been reading about upcoming of MVC from quite few years, but I never feel the need of it. It is surprisingly but yes, I never feel of MVC in web development. I have created my own coding pattern which is good for most programming I have seen in my career. But still MVC…

  • PWNAT : Example

    I am having trouble to run PwNAT successfully. The problem was created due to sample provided on official site. Here is how you should run it for case Machine A (IP: 192.168.1.3) -> NAT A (IP: 122.x.x.x) -> Internet -> NAT B (IP: 59.x.x.x) -> Machine B (192.168.2.10) Now if Machine A wants to connect…

  • Linux User authentication using PHP

    In one of my last post i try to define how linux store its password. Today I will be putting Complete PHP code for it. Just run it on your local server(mind it your Http server must be running as root user in order to use this script ) Its a raw way of doing…