EmbLogic's Blog

Today’s update

Implemented link-list and done fork and system system call..

Posted in Uncategorized | Leave a comment

Parallel Port “nibble mode” query…

sir,
in initialization and exit function i m sending 0 on data register. after it without changing data register from one pc, when i read status register from 2nd pc, sometimes it read 1111 in first nibble and some time 0000.

Posted in Uncategorized | 1 Comment

Recover deleted files in Linux

 

Scalpel

This is a filesystem-independent recovery tool for Linux and Mac OS, which you can also run on Windows by compiling it with MinGW. The latest version is 2.0. Install it in Fedora with

# yum install scalpel.

Next is some text editing — the configuration file is /etc/scalpel/scalpel.conf. You will find that everything has been commented out — uncomment the specific file format that you want to recover. For example, if I want to recover a deleted zip file, I will uncomment the .zip file section in scalpel.conf, as shown in Figure 1.

Figure 1: Scalpel.config fileFigure 1: Scalpel.config file

Next, in a terminal, run:

# scalpel  [device/directory/file name] -o [output directory]

The output directory, in which you want to store recovered files, should be empty before running Scalpel; otherwise, you will get an error.

Foremost

Foremost is a console program to recover files based on their headers, footers, and internal data structures. This process is commonly referred to as data carving. Foremost can work on disk or partition image files, such as those generated by dd, Safeback, Encase, etc, or directly on a drive.

The headers and footers can be specified by a configuration file, or you can use command-line switches to specify built-in file types. Install in Ubuntu and its derivatives with the following command:

# yum install foremost

There are a lot of options available. For example, to search for a deleted JPEG file, use:

# foremost -t jpg -i /dev/sda1

The -t (“type”) option can be given as -t all to search for all file types. Multiple file types are comma-separated, like -t jpg, pdf. The (required) option -i is the base device/directory for the search. You can also specify an output directory with -o.

 

Referrence :- http://www.linuxforu.com/2011/09/recover-deleted-files-in-linux/

 

 

 

Posted in Uncategorized | Leave a comment

What exectly this line says…??

Being Asynchronous with other code….

Posted in Uncategorized | Leave a comment

update

stacks and queues using arrays done..

Posted in Uncategorized | Leave a comment

cvs server

implemented cvs server and client

Posted in Uncategorized | Leave a comment

doubts of structure

struct abc{

char ch;

};

printf(“%d”,sizeof(abc));//prints 1 byte but

struct abc

{

int i;

struct a{

char ch;

};

}abc;

printf(“%d”,sizeof(abc));//prints only 4 bytes

but if we define the variable for struct a then it

prints the size along with the size of ch.

We want to ask if the structure is single then evem

if variable is not defined it shows the sizeof struct

but in nested structure it doesnt show sizeof that

struct whose variable is not defined.why??

Posted in Data Structures with C | 2 Comments

doubts on delay & sleep

what is diffference between delay ,sleep & wait…which one to use when?please clarify.

Posted in Uncategorized | 3 Comments

To Mr. Deepak.

Sir,

Please tell a way to improve my vocublery?

Posted in Uncategorized | Leave a comment

array assignment problem

#include
#define size 4
int main (void)
{
int val1=44;
int arr[size];
int val2=88;
int i;

printf(“value1 = %d,value2= %d\n”,val1,val2);
for(i=-1;i<=size;i++)
arr[i]=2*i+1;
printf("value1 =%d,value2=%d\n",val1,val2);
for(i=-1;i<7;i++)
printf("%2d %d\n",i , arr[i]);
printf("value1 =%d,value2=%d\n",val1,val2);
printf("value1 =%d,value2=%d\n",val1,val2);
return 0;
}

value1 = 44,value2= 88
-1 -1
0 1
1 3
2 5
3 7
4 9
5 44
6 6
value1 =44,value2=9
in the result why does the value of value2 has changed to 9
and
in array arr[i] what i sthe calculation going on for arr[6] and arr[7].

Posted in Uncategorized | Tagged | 2 Comments