Contact Us

Contact the author of the blog

Samar Dhwoj Acharya
E-mail: samar@techgaun.com
coolsamar207[at]gmail[dot]com
samar_acharya[at]hotmail[dot]com

Please email me if you need to send me your words of suggestions, appreciations or hates. Also, you can email me for link exchange.

Facebook: fb.me/techgaun

Twitter: http://www.twitter.com/techgaun

Brisha Pote
E-mail: brisha@techgaun.com

Freelance service

We now offer services as a freelancers and you can hire me on oDesk.
Read more...

Comments (10)

Loading... Logging you in...
  • Logged in as
SAMAR, Could you just make post about SEO !!! with all methods and tips for a website to get good PR
1 reply · active 711 weeks ago
Truly speaking, I don't care about PRs and all those stuffs. So I don't have much knowledge of SEO. One thing I would say is update your site constantly with unique contents and that's gonna help you always.
%thanks samar for this code%
%parent relations

parent(pam, bob).
parent(tom, bob).
parent(tom, liz).
parent(bob, ann).
parent(bob, pat).
parent(pat, jim).

%male and female predicates

male(tom).
male(bob).
male(pat).
male(jim).
female(liz).
female(ann).
female(pam).

offspring(X, Y) :-
parent(Y, X).

brother(X, Y) :-
parent(A, X), parent(A, Y), male(X), X == Y.

sister(X, Y) :-
parent(A, X), parent(A, Y), female(X), X == Y.

aunt(X,Y) :-
parent(Z,Y),parent(W,Z),parent(W,X), female(X), Z== X.

uncle(X,Y) :-
parent(Z,Y),parent(W,Z),parent(W,X), male(X), Z== X.

happy(X) :-
parent(X, A).

has_two_children(X) :-
parent(X, A), sister(B, A), parent(X, B).

grand_child(X, Y) :-
parent(Z, X), parent(Y, Z).
%Prolog lab 1
male(abraham).
male(benjamin).
male(brown).
male(ceil).
male(chris).
male(dane).
male(dough).
male(dune).
male(ace).
male(bradly).
male(chunck).

female(brondie).
female(cathy).
female(chrony).
female(eva).
female(barbara).
female(cathy).

parent(abraham, benjamin).
parent(abraham, brondie).
parent(abraham, brown).
parent(brondie, cathy).
parent(brondie, ceil).
parent(brown, chris).
parent(brown, chrony).
parent(cathy, dane).
parent(ceil,dough).
parent(chris, dune).
parent(dough, eva).
parent(ace, barbara).
parent(barbara, chunck).
parent(bradly, chunck).

cousin(X,Y) :-
parent(Z,X),parent(W,Y),sibling(Z,W),Z=W.

ancestor(X, Y) :-
parent(X, Y).

ancestor(X, Y) :-
parent(X, Z), ancestor(Z, Y).

sibling(X,Y) :-
parent(Z, X), parent(Z, Y).

descendant(X, Y) :-
ancestor(Y,X).

aunt(X,Y) :-
parent(Z,Y),sibling(Z, X), female(X), Z = X.

uncle(X,Y) :-
parent(Z,Y),sibling(Z,X), male(X), Z = X.

grandfather(X, Y) :-
parent(Z, Y), parent(X, Z), male(X).
%tower of hanoi
hanoi(N):- move(N, left,center, right).

move(0,_,_,_):- !.

move(N, A, B, C):-
M is N-1,
move(M, A, C, B),
stepsinfo(A,B),
move(M, C, B, A).

stepsinfo(X,Y):-
write([move,the,disc,from,X,to,Y]), nl.

%factorial
fact(0,1).
fact(N, F):-
N > 0, M is N - 1, fact(M, F1), F is F1 * N.

%fibonacci
fibo(0,1):-
!, write('1, ').
fibo(1,1):-
!,write('1, ').

fibo(N, X):-
N > 1, N1 is N-1, N2 is N-2, fibo(N1,X1),fibo(N2, X2), X is X1+X2,write(X), write(', '),nl.
sir, I need to download pdf from scribd...could you please let me know the latest tricks to download ?. The tricks available in the internet is obsolete...they don't work. plz help
download from this "http://nepali.netau.net/scribd/index.php" is not working, can you provide another trick for free download from scribd.com
1 reply · active 633 weeks ago
Sameer: Scribd changed different things on their site lately thus rendering the tool I coded useless. I am yet to find any new trick that works on the site. Once I find, I will definitely update my script.
Ashraf Sohel's avatar

Ashraf Sohel · 552 weeks ago

There is good news for those students who are learning business as there is a way to overcome the time constraints in the writing process. http://www.smartcustomwriting.net/ for the quality and on time writing services. Students can now overcome by taking help with assignment from professional writing companies.
Hi friend,

I am using Scribd app on Air Pad 2. I have saved couple of books on the device. I can see that files are saved in Scribd app. however I can not synic them with my PC nor convert on PDF.

Do you have any suggestions.

Thanks

Sunil

Post a new comment

Comments by