EmbLogic's Blog

CBD Oil Biotech Pain Cream Review – Sore Muscle – Inflammation Relief 1

There are dozens of studies which demonstrate the effectiveness of cannabidiol in handling a variety of conditions. The majority of these studies conclude that this cannabinoid is secure and free of side effects does hemp oil help pain.
This review paper about the Safety and side effects of cannabidiol by the NCBI for example indicates that controlled cannabidiol management is secure and nontoxic in people and animals.

Also, according to this review newspaper, "high doses as much as ,500 mg/day of CBD are reportedly well tolerated in people. "
There are hardly any known side effects of CBD, all these are mainly minor but you need to be advised before taking CBD.
. Inhibition of hepatic drug metabolism.
CBD can really interact with a succession of pharmaceuticals, as it inhibits the activity of a liver enzymes called cytochrome P450.

The family of enzymes contained most of the pharmaceutical medications used to treat individuals. If one chooses high levels of CBD, the cannabinoid can temporarily neutralize the activity of P450 enzymes and so alter the way drugs are metabolized within the body. This action of CBD can thought of as a side effect, but it is not necessarily a negative attribute, as the deactivation of all P450 enzymes is one of the mechanisms via which CBD neutralizes THC as well.
Placing this in view, eating some of grapefruit would have a similar effect on the aforementioned liver enzymes.

So this ought to be seen as a minor complication of cannabidiol. However, if you are taking prescription drugs and would like to choose CBD, you should go over any potential complications regarding reduced P450 enzyme activity with your physician and/or pharmacist.
Another reported side effect of CBD management is a disagreeable dry sensation in the mouth. This effect appears to be a result of the participation of the endocannabinoid system in the inhibition of saliva secretion.

A study published by Argentinian researchers in 2006 revealed that cannabinoid receptors (form 2 and ) are present in the submandibular glands that are responsible for generating saliva. The activation of these receptors changes the salivary production, resulting in mouth dryness (also referred to as "cotton-mouth"). Dry mouth will pretty much just make you thirsty.

3. Greater tremor in Parkinson’s disease at elevated dose CBD.
Early research indicates that CBD found in large doses might worsen tremor and muscular movement in Parkinson’s disease victims. Yet, in addition, there are studies which indicate that cannabidiol is secure and well-tolerated by individuals affected by this condition.

If this occurs, reducing the dose should decrease this potential side effect. Parkinson’s disease victims should consult their doctor before you take CBD and begin any routine by taking smaller doses.
Greater doses of CBD petroleum can lead to a small reduction in blood pressure, generally within a couple of minutes of this CBD entering your system.

This drop in blood pressure is often connected with a feeling of lightheadedness. If you are taking medicine for blood pressure, you should talk to your physician before you take CBD.
This can result from the drop in blood pressure which can influence those with higher doses.

The side effect of CBD is temporary and can often be resolved by drinking a cup of coffee or tea.
In greater doses, CBD can lead to drowsiness. If you are affected by this manner, you shouldn’t operate machinery or drive a car.

In most cases however, CBD is still a wake-inducing agent.

Posted in Uncategorized | Leave a comment

Education could be the most significant for the article you’re applying for.

An essay may seem to be a straightforward homework till you understand how long and attempt you’ll have to finish and receive an incredible score on it. It is easy to purchase special faculty essays and don’t neglect to tell friends and family members about it. Writing essays is only that over here which we do. We create custom essays for students predicated on their personal demands on a predetermined theme. Continue reading

Posted in Uncategorized | Leave a comment

Binary Search

Searching is one of the most important task for any programmer. We have too many techniques to do this ,among all the techniques we are using Binary search right now because
Binary search is too good for searching a number in a large number-list it takes less time.
The necessary condition to perform Binary search is that the list should be Shorted.
Algo:
It break down the list in to two parts in every iteration
the number you want to search is compare with lowest number , middle number, largest number of the shorted list,
*if the number you want to search is less then the middle number then
lowest number will be same
the previous middle number will be consider as largest
new middle number will be assigned using ((a+b)/2)
// because number is greater then the lowest number but less the the middle number , so no need to . search it in a number range above the middle number.
*if the number you want to search is greater then the middle number then
largest number will be same
the previous middle number will be consider as smallest
new middle number will be assigned using ((a+b)/2)
// because number is greater then the middle number but less then the largest number , so no need to . search it in a number range below the middle number.

see the Programme
follow the link.

https://drive.google.com/drive/folders/0B-dkmspcBW7aZnRVZTM5NklELTA?usp=sharing

Posted in Uncategorized | Tagged , | Leave a comment

Program to Multiply Two 3 X 3 Matrices


#include

int main() {
int a[10][10], b[10][10], c[10][10], i, j, k;
int sum = 0;

printf("\nEnter First Matrix : n");
for (i = 0; i <3; i++) {
for (j = 0; j < 3; j++) {
scanf("%d", &a[i][j]);
}
}

printf("\nEnter Second Matrix:n");
for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) {
scanf("%d", &b[i][j]);
}
}

printf("The First Matrix is: \n";);
for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) {
printf(" %d ", a[i][j]);
}
printf("\n");
}

printf("The Second Matrix is : \n");
for (i = 0; i< 3; i++) {
for (j = 0; j < 3; j++) {
printf(" %d" , b[i][j]);
}
printf("\n");
}

//Multiplication Logic
for (i = 0; i <= 2; i++) {
for (j = 0; j <= 2; j++) {
sum = 0;
for (k = 0; k <= 2; k++) {
sum = sum + a[i][k] * b[k][j];
}
c[i][j] = sum;
}
}

printf("\nMultiplication Of Two Matrices : );
for (i = 0; i <3; i++) {
for (j = 0; j< 3; j++) {
printf("%d" , c[i][j]);
}
printf("\n");
}

return (0);
}

Posted in Uncategorized | Leave a comment

Swap / Interchange two variables without using Third Variable

#include

int main() {
int num1, num2;

printf(“\nEnter First Number : “);
scanf(“%d”, &num1);

printf(“\nEnter Second Number : “);
scanf(“%d”, &num2);

num1 = num1 ^ num2;
num2 = num1 ^ num2;
num1 = num1 ^ num2;

printf(“\n Numbers after Exchange : “);
printf(“\n Num1 = %d and Num2 = %d”, num1, num2);

return(0);
}

Posted in Uncategorized | Leave a comment

Time calls in system Programming.

In system programming it is very important to know the current time of your system ,Because you will be often needed to use that information i.e every time when you create any File or Directory and then you want to replace it with it’s upgrade. You should know how to find out the older version.
Time of Linux/Unix time was started at 5:30 ,1st jan. 19970 (epoch). While in Dos it was started at 1980.
so we uses a very basic function in C that is {time_t time(time_t var)}; this function is in header file time.h, so don’t forget to include that.
{time_t} is a data type of C the only purpose to store value of Time (in low level language)
further we have functions like
gmtime(),difftime(),localtime(),mktime(),asctime(),ctime().

see programme

https://drive.google.com/drive/folders/0B-dkmspcBW7aUlo3R0hsZ1BhRlE?usp=sharing

Posted in Linux Internals and System Programming, Uncategorized | Tagged , , | Leave a comment

disadvantages of global

  1. Too many variables , if declared as global , then they remain in the memory till program execution is over
  2. Unprotected data : Data can be modified by any function
Posted in Uncategorized | Leave a comment

insert unique characters in an array from a file(string) using functions,makefile,shell script,rcs.

RCS file: dec.h,v
Working file: dec.h
head: 1.2
branch:
locks: strict
parvinder: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
declare the prototypes of functions
—————————-
revision 1.2 locked by: parvinder;
date: 2017/03/07 09:26:38; author: parvinder; state: Exp; lines: +1 -0
declare open’s prototype
—————————-
revision 1.1
date: 2017/03/07 06:42:11; author: parvinder; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
parvinder: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
declare all header files
—————————-
revision 1.1 locked by: parvinder;
date: 2017/03/07 06:43:08; author: parvinder; state: Exp;
Initial revision
=============================================================================

RCS file: main.c,v
Working file: main.c
head: 1.4
branch:
locks: strict
parvinder: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
all functions call here to encript data
choose by user
—————————-
revision 1.4 locked by: parvinder;
date: 2017/03/07 09:40:35; author: parvinder; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2017/03/07 09:34:24; author: parvinder; state: Exp; lines: +0 -7
*** empty log message ***
—————————-
revision 1.2
date: 2017/03/07 09:26:03; author: parvinder; state: Exp; lines: +8 -7
call open func. also
—————————-
revision 1.1
date: 2017/03/07 06:38:45; author: parvinder; state: Exp;
Initial revision
=============================================================================

RCS file: mainmenu.c,v
Working file: mainmenu.c
head: 1.1
branch:
locks: strict
parvinder: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
choices available for user
and slect which he want
—————————-
revision 1.1 locked by: parvinder;
date: 2017/03/07 06:39:53; author: parvinder; state: Exp;
Initial revision
=============================================================================

RCS file: marr.c,v
Working file: marr.c
head: 1.2
branch:
locks: strict
parvinder: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
call a file nd creat a master arry
all the charactors print one by one
—————————-
revision 1.2 locked by: parvinder;
date: 2017/03/07 06:45:41; author: parvinder; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2017/03/07 06:40:26; author: parvinder; state: Exp;
Initial revision
=============================================================================

RCS file: open.c,v
Working file: open.c
head: 1.3
branch:
locks: strict
parvinder: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
to open a file this function is used
—————————-
revision 1.3 locked by: parvinder;
date: 2017/03/07 09:35:07; author: parvinder; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.2
date: 2017/03/07 09:34:31; author: parvinder; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.1
date: 2017/03/07 09:26:17; author: parvinder; state: Exp;
Initial revision
=============================================================================

RCS file: unique.c,v
Working file: unique.c
head: 1.2
branch:
locks: strict
parvinder: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
remove the repetable charactors nd unique charactors stored in array
—————————-
revision 1.2 locked by: parvinder;
date: 2017/03/07 06:47:03; author: parvinder; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2017/03/07 06:41:20; author: parvinder; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | 2 Comments

Binary search using random function taking size of array and range of integer at run time

RCS file: arrayinput.c,v
Working file: arrayinput.c
head: 1.4
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
take input for hte array
—————————-
revision 1.4
date: 2017/03/06 10:16:39; author: mayank; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.3
date: 2017/03/04 11:57:48; author: mayank; state: Exp; lines: +2 -2
error resolved
—————————-
revision 1.2
date: 2017/03/04 11:54:33; author: mayank; state: Exp; lines: +3 -0
printing function
—————————-
revision 1.1
date: 2017/03/04 10:13:23; author: mayank; state: Exp;
Initial revision
=============================================================================

RCS file: arrayoutput.c,v
Working file: arrayoutput.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
print the output of array
—————————-
revision 1.3
date: 2017/03/06 10:16:42; author: mayank; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.2
date: 2017/03/04 11:55:26; author: mayank; state: Exp; lines: +3 -0
printing function
—————————-
revision 1.1
date: 2017/03/04 10:13:43; author: mayank; state: Exp;
Initial revision
=============================================================================

RCS file: main.c,v
Working file: main.c
head: 1.6
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
performing the main operation
—————————-
revision 1.6
date: 2017/03/06 05:53:51; author: mayank; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.5
date: 2017/03/04 16:05:52; author: mayank; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.4
date: 2017/03/04 15:58:19; author: mayank; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.3
date: 2017/03/04 11:55:36; author: mayank; state: Exp; lines: +3 -1
printing function
—————————-
revision 1.2
date: 2017/03/04 10:42:20; author: mayank; state: Exp; lines: +3 -0
return 0
—————————-
revision 1.1
date: 2017/03/04 10:13:57; author: mayank; state: Exp;
Initial revision
=============================================================================

RCS file: search.c,v
Working file: search.c
head: 1.16
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 16; selected revisions: 16
description:
binary search
—————————-
revision 1.16
date: 2017/03/06 09:51:05; author: mayank; state: Exp; lines: +1 -1
logical correction
—————————-
revision 1.15
date: 2017/03/06 06:03:16; author: mayank; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.14
date: 2017/03/04 17:28:55; author: mayank; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2017/03/04 17:13:16; author: mayank; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.12
date: 2017/03/04 17:12:19; author: mayank; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.11
date: 2017/03/04 17:03:35; author: mayank; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.10
date: 2017/03/04 17:01:17; author: mayank; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2017/03/04 16:30:42; author: mayank; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2017/03/04 16:27:55; author: mayank; state: Exp; lines: +4 -2
*** empty log message ***
—————————-
revision 1.7
date: 2017/03/04 16:22:18; author: mayank; state: Exp; lines: +8 -6
*** empty log message ***
—————————-
revision 1.6
date: 2017/03/04 16:14:57; author: mayank; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2017/03/04 16:13:38; author: mayank; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2017/03/04 15:58:33; author: mayank; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.3
date: 2017/03/04 11:55:43; author: mayank; state: Exp; lines: +2 -0
printing function
—————————-
revision 1.2
date: 2017/03/04 11:40:12; author: mayank; state: Exp; lines: +1 -1
errors resolved
—————————-
revision 1.1
date: 2017/03/04 11:32:58; author: mayank; state: Exp;
Initial revision
=============================================================================

RCS file: sorting.c,v
Working file: sorting.c
head: 1.8
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
sorting the array
—————————-
revision 1.8
date: 2017/03/06 10:16:42; author: mayank; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.7
date: 2017/03/04 15:58:36; author: mayank; state: Exp; lines: +7 -4
*** empty log message ***
—————————-
revision 1.6
date: 2017/03/04 11:55:50; author: mayank; state: Exp; lines: +2 -0
printing function
—————————-
revision 1.5
date: 2017/03/04 11:40:34; author: mayank; state: Exp; lines: +2 -2
sorting errors resolved
—————————-
revision 1.4
date: 2017/03/04 11:35:37; author: mayank; state: Exp; lines: +1 -1
sorting
—————————-
revision 1.3
date: 2017/03/04 11:34:31; author: mayank; state: Exp; lines: +1 -1
semicolumn error removed
—————————-
revision 1.2
date: 2017/03/04 11:33:09; author: mayank; state: Exp; lines: +6 -10
sorting algo
—————————-
revision 1.1
date: 2017/03/04 10:14:20; author: mayank; state: Exp;
Initial revision
=============================================================================

RCS file: declear.h,v
Working file: declear.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
declearing all the functions
—————————-
revision 1.1
date: 2017/03/04 10:14:28; author: mayank; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
calling all the headers
—————————-
revision 1.1
date: 2017/03/04 10:14:43; author: mayank; state: Exp;
Initial revision

Posted in Uncategorized | Leave a comment

Programs to search elements in an array using rcs and make file

RCS file: display.c,v
Working file: display.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
displays the list
—————————-
revision 1.1
date: 2017/03/04 11:59:48; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: getarray.c,v
Working file: getarray.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
gets the input value
—————————-
revision 1.1
date: 2017/03/04 12:00:02; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: linearsearch.c,v
Working file: linearsearch.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
linear search function execution
—————————-
revision 1.1
date: 2017/03/04 12:00:10; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: main.c,v
Working file: main.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
all the functions are called here
—————————-
revision 1.1
date: 2017/03/04 12:00:47; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
all the header files are included
—————————-
revision 1.1
date: 2017/03/04 12:00:59; author: emblogic; state: Exp;
Initial revision
=============================================================================
RCS file: display.c,v
Working file: display.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
displays the list
—————————-
revision 1.1
date: 2017/03/04 11:59:48; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: getarray.c,v
Working file: getarray.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
gets the input value
—————————-
revision 1.1
date: 2017/03/04 12:00:02; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: linearsearch.c,v
Working file: linearsearch.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
linear search function execution
—————————-
revision 1.1
date: 2017/03/04 12:00:10; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: main.c,v
Working file: main.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
all the functions are called here
—————————-
revision 1.1
date: 2017/03/04 12:00:47; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
all the header files are included
—————————-
revision 1.1
date: 2017/03/04 12:00:59; author: emblogic; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

sorting a list and search element by using Insertion sort,Linear search and Binary search

 

RCS file: dec.h,v
Working file: dec.h
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;	selected revisions: 3
description:
declartion prototyps
----------------------------
revision 1.3
date: 2017/03/04 06:48:30;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.2
date: 2017/03/04 06:34:02;  author: parvinder;  state: Exp;  lines: +1 -0
declare prototypes of bsearc
----------------------------
revision 1.1
date: 2017/03/03 12:03:04;  author: parvinder;  state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
all header files
diclared
----------------------------
revision 1.1
date: 2017/03/03 12:03:20;  author: parvinder;  state: Exp;
Initial revision
=============================================================================

RCS file: basic.c,v
Working file: basic.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;	selected revisions: 3
description:
main file
alll func called here
----------------------------
revision 1.3
date: 2017/03/04 06:48:20;  author: parvinder;  state: Exp;  lines: +1 -1
se
----------------------------
revision 1.2
date: 2017/03/04 06:32:58;  author: parvinder;  state: Exp;  lines: +1 -0
calling binary search func as bsearch
----------------------------
revision 1.1
date: 2017/03/03 12:01:11;  author: parvinder;  state: Exp;
Initial revision
=============================================================================

RCS file: bsearch.c,v
Working file: bsearch.c
head: 1.5
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;	selected revisions: 5
description:
to find thr location of an element using binarysearch
----------------------------
revision 1.5
date: 2017/03/04 06:59:05;  author: parvinder;  state: Exp;  lines: +1 -0
*** empty log message ***
----------------------------
revision 1.4
date: 2017/03/04 06:52:54;  author: parvinder;  state: Exp;  lines: +2 -2
*** empty log message ***
----------------------------
revision 1.3
date: 2017/03/04 06:51:08;  author: parvinder;  state: Exp;  lines: +4 -2
*** empty log message ***
----------------------------
revision 1.2
date: 2017/03/04 06:48:26;  author: parvinder;  state: Exp;  lines: +6 -5
*** empty log message ***
----------------------------
revision 1.1
date: 2017/03/04 06:33:23;  author: parvinder;  state: Exp;
Initial revision
=============================================================================

RCS file: display.c,v
Working file: display.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
displys an array
----------------------------
revision 1.1
date: 2017/03/03 12:01:43;  author: parvinder;  state: Exp;
Initial revision
=============================================================================

RCS file: getarr.c,v
Working file: getarr.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
take input from user side
----------------------------
revision 1.1
date: 2017/03/03 12:01:58;  author: parvinder;  state: Exp;
Initial revision
=============================================================================

RCS file: is.c,v
Working file: is.c
head: 1.15
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 15;	selected revisions: 15
description:
sorting array by using insertion algo.
----------------------------
revision 1.15
date: 2017/03/04 06:12:08;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.14
date: 2017/03/04 06:10:27;  author: parvinder;  state: Exp;  lines: +5 -5
*** empty log message ***
----------------------------
revision 1.13
date: 2017/03/04 06:07:42;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.12
date: 2017/03/04 06:05:49;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.11
date: 2017/03/04 06:04:35;  author: parvinder;  state: Exp;  lines: +4 -2
*** empty log message ***
----------------------------
revision 1.10
date: 2017/03/04 06:00:10;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.9
date: 2017/03/04 05:58:42;  author: parvinder;  state: Exp;  lines: +8 -8
*** empty log message ***
----------------------------
revision 1.8
date: 2017/03/04 05:45:04;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.7
date: 2017/03/03 12:32:28;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2017/03/03 12:30:54;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.5
date: 2017/03/03 12:26:34;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.4
date: 2017/03/03 12:20:39;  author: parvinder;  state: Exp;  lines: +2 -2
*** empty log message ***
----------------------------
revision 1.3
date: 2017/03/03 12:13:14;  author: parvinder;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.2
date: 2017/03/03 12:10:36;  author: parvinder;  state: Exp;  lines: +2 -2
l.e.
----------------------------
revision 1.1
date: 2017/03/03 12:02:19;  author: parvinder;  state: Exp;
Initial revision
=============================================================================

RCS file: ksearch.c,v
Working file: ksearch.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
searching element from array
----------------------------
revision 1.1
date: 2017/03/03 12:02:44;  author: parvinder;  state: Exp;
Initial revision
=============================================================================

 

Posted in Uncategorized | Leave a comment

using curl to access ftp server

The title doesn’t sound interesting if you have no idea what is curl. Why we need to use curl to access ftp server, if we can access ftp with tools like ftp in console or gFTP?

Well gFTP is a very handy ftp client with gtk front end, as I use it daily to maintain my files in my web servers. But sometimes we need a command that allows us to put into script, then gFTP is not suitable for that. And default ftp command surprise me that we cannot do things inline. Let say, I wanna download a file from a ftp server by passing the username and password within one line of command, so I can put into my script. I can’t do this with default ftp command!

Curl provides you a way to access ftp server and download, upload files, listing directories and file, and you can write your routine into a script using curl.

Lets look at how we can do it with curl.

The simplest way to access a ftp server with username and password

#curl ftp://myftpsite.com –user myname:mypassword

With the command line above, curl will try to connect to the ftp server and list all the directories and files in the ftp home directory.

To download a file from ftp server

#curl ftp://myftpsite.com/mp3/mozart_piano_sonata.zip –user myname:mypassword -o mozart_piano_sonata.zip

To upload a file to ftp server

#curl -T koc_dance.mp3 ftp://myftpsite.com/mp3/ –user myname:mypassword

To list files in sub directories.

#curl ftp://myftpsite.com/mp3/ –user myname:mypassword

List only directories, silent the curl progress bar, and use grep to filter

#curl ftp://myftpsite.com –user myname:mypassword -s | grep ^d

Remove files from ftp server.
This is a bit tricky, because curl do not support that by default, well anyway, you can make use of -X and pass in the REAL FTP command.
(Check out a list of FTP service Command in rfc 959, under 4.1.3. FTP SERVICE COMMANDS)

#curl ftp://myftpsite.com/ -X ‘DELE mp3/koc_dance.mp3′ –user myname:mypassword

Caution: Make sure you are know what are you deleting! It will not prompts ‘Are you sure?’ confirmation.

Check out curl manual for more,

#man curl

or this, ^^ (contains different info)

#curl –manual | less

Posted in Uncategorized | Leave a comment

Program for rcs,makefile using shell

RCS file: main.c,v
Working file: main.c
head: 1.1
branch:
locks: strict
jgeorge: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
enter enter array
—————————-
revision 1.1 locked by: jgeorge;
date: 2017/02/28 07:41:41; author: jgeorge; state: Exp;
Initial revision
=============================================================================

RCS file: sorting.c,v
Working file: sorting.c
head: 1.1
branch:
locks: strict
jgeorge: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
sorting function
—————————-
revision 1.1 locked by: jgeorge;
date: 2017/02/28 07:42:49; author: jgeorge; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
jgeorge: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
header files
—————————-
revision 1.1 locked by: jgeorge;
date: 2017/02/28 07:43:06; author: jgeorge; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

RCS system

RCS file: arrfunc.c,v
Working file: arrfunc.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
basic array program
—————————-
revision 1.1 locked by: root;
date: 2017/02/28 10:58:27; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: main.c,v
Working file: main.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
main array program
—————————-
revision 1.1 locked by: root;
date: 2017/02/28 10:59:37; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: sorting.c,v
Working file: sorting.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
sorting program
—————————-
revision 1.1 locked by: root;
date: 2017/02/28 11:00:37; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
header files
—————————-
revision 1.1 locked by: root;
date: 2017/02/28 11:01:11; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

About Addition Of Two Mtrixes Using 2d Array

RCS file: 2dadd.c,v
Working file: 2dadd.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
Program to addition of 2 matrixes
----------------------------
revision 1.1
date: 2017/02/28 08:09:30;  author: parvinder;  state: Exp;
Initial revision
=============================================================================

RCS file: 2dadd.c,v
Working file: 2dadd.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
Program to addition of 2 matrixes
----------------------------
revision 1.1
date: 2017/02/28 08:09:30;  author: parvinder;  state: Exp;
Initial revision
=============================================================================
Posted in Uncategorized | Leave a comment