Project Last Edit: Thursday, September 23, 2010, 3:00:12 PM When I was first introduced to wordpress 1 year ago free themes weren’t good enough to me so I wanted to try out my self and design one, the experience I gained was mostly in CSS and HTML I had small experience with PHP and I [...]
Smoke WordPress theme
Sep 24
JobHunterFriend
Sep 24
Java Extractors or Regex Java Extractors is a Java command line application which extracts Email addresses and Website addresses (may more in future) out of text files using Regex. Sample code from the following posts: Regex pattern For detecting website address. Regex pattern for detecting Email address.
X-O Game Extended in Prolog
Sep 23
Tuesday, November 20, 2007, 6:21:10 PM Intelligent Application (Play Against Machine) using Prolog language to play X-O of any Dimensions (3+x)*(3+x) where x=1,2,3… I’ve reached high levels of experience in Logic Programming It was a very tiring nights to build a 5 lines of code. I love prolog and I will never forget it’s the [...]
Neural X-O Game in prolog
Sep 23
December 21st 2007 A crazy Idea came to my head to build an algorithm using a Neural Network design, I’ve lost the code, but this image contains all the knowledge of it. I’ve found it in Artificial Intelligence (AI) for everyone a group on Facebook that I created long time ago and left it there. [...]
Palindromic test
Sep 23
Palindrome Generator /* * File: newmain.cpp * Author: marmoush * * Created on October 25, 2010, 11:33 AM * palindrome numbers */ #include <iostream> #include <math.h> using namespace std; void fun(int start1, int start2, int end); void fun2(int num); int main() { // fun(1, 2, 5); int max=0,min=11,number=0,m=0,x,n; cout<<”Please enter bla bla number”<<endl; cin>>n; number=n; [...]
Combinations Generator
Sep 23
Note that the following code is a legacy code in my early programming courses in college in 2006. Visit wiki page to know more about combinations #include<iostream> using namespace std; void incrementone (int last,int n,int *array); void incrementtwo (int elementnum,int last,int *array); void out(int last,int *array); void main (void) { int max,n,r,*array,last; cin>>n>>r; array =new [...]
Faster Prime Number Checker
Sep 23
Note that the following is legacy code since 2006, first programming course. Please visit Naïve methods in wiki it’s a short passage. #include <iostream.h> #include <math.h> void main() { float n1,n2,k1,k2; float prime; int k=1,z; cin>>prime; if (prime==1||prime==2||prime==3||prime==5||prime==7) cout<<”number is prime…..”; else { k1=(prime-1)/6; //cout<<k1<<endl; k2=(prime+1)/6; //cout<<k2<<endl; if (k1==floor(k1)||k2==floor(k2)) //25 test { //cout<<”the number is semiprime”<<endl; z=6*k-1; [...]
Please Note that the following code was written in February 2006 my first programming course, so I don’t recommend using such legacy code was written with no obvious knowledge of String manipulation and only based on Math modulus techniques for extracting digit by digit. Introduction The numeral system of ancient Rome, or Roman numerals, uses combinations of letters from [...]
Comics PHD and research
Sep 14

Hi I want to (multiply,add,etc) vector by scalar value for example myv1 * 3 , I know I can do a function with a forloop , but is there a way of doing this using STL function ? something like the {Algorithm.h :: transform function } ?? Answer: Yes, using std::transform: std::transform(myv1.begin(), myv1.end(), myv1.begin(), [...]





