User login
Encourage the development of the Embedded System, Electronics and Software in Nepal.

Find the Environment Variable in VC++

In this article, I will show how to retrieve environment variables programatically in VC++ . I had to write a file in the windows temporary directory. In Windows Run command, when when you run "%TEMP" or "%WINDIR", windows explorer will directly open windows explorer at "C:\DOCUME~1\MSHRES~1\LOCALS~1\Temp"  or "C:\WINDOWS" respectively.

How to remove PC Security from Windows XP

In this article, I will show how to remove PC Security of Tropical Software from Windows machine using another Linux machine. PC Security™ from Tropical is the ultimate in computer security, offering multiple locking systems for the windows environment and internet. Lock files, monitor programs activities, even detect intruders! PC Security offers flexible and complete password protection, "Drag and Drop" support, plus many other handy features. All together, an incredible security package.

How to Write a Hello World Module of Linux Kernel

Every Journey starts with a single step. So does the kernel programming. In Linux kernel many vital functions are arranged in the form of modules, that can be loaded when needed. Here a small module is created that prints  “Hello World” when loaded into the kernel. When the module is removed from the kernel, “Good Bye” is printed.

How to convert NEF format to JPEG format?

Introduction

The NEF format is propriatory file format developed by Nikon. It is a raw dump of the CDD information and has 12 bits of data per pixel.

It can be converted to JPEG format using free software like IfranView with the help of its plugin(Formats).

 

Steps

Steps 1) Install the IrfanView (version 4.25). It can be downloaded from 

Javascript url validation

The code below Helps to validate the url submitted by the website users from any forms. You can control the submission of invalid url by using the code below:

Script:

<script language="javascript">
function validatewebform(theForm){
if(!(theForm.website.value.match(/\b(^((http)|(https))?:\/\/[0-9a-z-\.]+\.([a-z0-9-])+\.[a-z]{2,4}\/?([^\s<>\#%\,\{\}\\|\\\^\[\]]+)?)\b/))){
alert("Please enter a valid url");
theForm.website.focus();
return false;
}
}
</script>

HTML

Problem with ping command in Linux

I was working with KuroBoxPro (an embedded linux system) running from flash. I was having a problem with ping command.

I was able to ping the IP address,
    sh-2.05b# ping 209.131.36.159
    PING 209.131.36.159 (209.131.36.159): 56 data bytes
    84 bytes from 209.131.36.159: icmp_seq=0 ttl=47 time=341.0 ms

but I could not ping the hostname.

sh-2.05b# ping yahoo.com
ping: yahoo.com: Unknown host

Everything seemed fine. I checked the resolv.conf.  It was OK.

Configure Google Adsense in Drupal

In this article, I will show how to properly integrate the Google Adsense module in Drupal. I was not getting Google ads after I have installed everything properly. It took me nearly a day to figure out what was the problem. So I have listed out the steps so that it would be helpful to others.

Here are the basic steps.

1) Sign up for Google Adsense account and then create an Add for content. Then from the Adsense unit code, note down the three thing.

Kernel Programming

This section will contain the articles related to Linux Kernel.

Custom Search