Career Planning Resources #76

http://www.astd.org/publicpolicy
http://www.careeronestop.org
http://www.ccr.gov
http://www.cfda.gov
http://www.commerce.gov
http://www.dnb.com
http://www.doleta.gov
http://www.foundationcenter.org
http://www.gpoaccess.gov
http://www.grants.gov
http://www.house.gov
http://www.regulations.gov
http://www.senate.gov
http://www.thomas.gov
http://www.workforce3one.org

From: http://sitestree.com/?p=5056
Categories:76
Tags:
Post Data:2009-02-15 23:15:29

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

C++ Code Examples. Bitset, Vector, Valarray #77

Bitset

Transform binary representation into integral number using bitset

Use bitset with enum together

Vector

Call member function for each element in vector

Valarray

Print minimum, maximum, and sum of the valarray

valarray slice

valarray with double value inside

Std Algorithms

Sort objects stored in deque

Use sorting criterion in sort function

File

Read file content From: http://sitestree.com/?p=5246
Categories:77
Tags:
Post Data:2007-04-11 09:31:35

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Are C++ Templates Slow? #77

According to: http://yosefk.com/c++fqa/templates.html#fqa-35.10, C++ Templates are slow.

Though theoretically, templates can be as efficient as straightforward code or more efficient than straightforward code. However, commercial compilers don’t optimize templates code in that level. So practically templates are slower. Also, some other complexities may arise while using templates.

FAQs about templates http://yosefk.com/c++fqa/templates.html

Great resource to review C++

From: http://sitestree.com/?p=5244
Categories:77
Tags:
Post Data:2006-07-04 06:20:15

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

C++ Concepts and Syntax #77

Not really for the beginners. If you had experience working with C++ in the past, then taking a look at this short-note will help to recover your knowledge in C++.

Multiple inheritance means that one subclass can have more than one superclass. This enables the subclass to inherit properties of more than one superclass and to “merge” their properties.

char *strp; /* strp is `pointer to char’ */

*strp = ‘a’; /* A single character */

A pointer to characters can be used to point to a sequence of characters

Class Structure:
class Foo {
// private as default …

public:
// what follows is public until …

private:
// … here, where we switch back to private …

public:
// … and back to public.
};

Struct:
class Struct {
public: // Structure elements are public by default
// elements, methods
};

Method definition – outside of the class
void Point::setX(const int val) {
_x = val;
}

void Point::setY(const int val) {
_y = val;
}

Access a method:
apoint.setX(1); // Initialization

Inheritance:
class Point3D : public Point {}
C++ has two types of inheritance: public and private. By default, classes are privately derived from each other

You can inherit as private, protected, public. Private members always come as private in the subclass. Public members of the super class come to the subclass according/(as) to the inheritance type

Multiple Inheritance:
class DrawableString : public Point, public DrawableObject {}

Virtual Function in C++
You can use the keyword ‘virtual’ before a function declaration to make the function virtual. Subclasses to these class can define the function as they want. It still remains virtual in the subclasses.
http://www.codersource.net/published/view/325/virtual_functions_in.aspx

— will update and add later

Reference: http://gd.tuwien.ac.at/languages/c/c++oop-pmueller/tutorial.html

From: http://sitestree.com/?p=5240
Categories:77
Tags:
Post Data:2006-08-17 00:14:30

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

C++ Syntax: in brief #77

Just to review
cout < < "Enter two integers:" << endl;     // output to screen
cin >> n >> m;    // Note: Using endl prints out a newline and flushes the output 

buffer.cout << "number of digits in char: " << numeric_limits::digits < < 'n';

if (n > m) { // if n is bigger than m, swap them    
int temp = n;   // declare temp and initialize it    
n = m;         // assign value of m to n    
m = temp;     // assign value of temp to m
}

long iii = i;          // implicit conversion from int to long
iii = long(i);         // explicit conversion from int to long  

for (double d = 1.1; d < = 9.9; d += 0.2) 
   sum += sin(d);

using namespace std; 
#include  
int main() 
{  

using namespace std;

}

const int mxdigits = 999500;
int* p = &n;
int m = 200;
*p = m;
double* tryd = new double (x);
unsigned int jj = ii;
cout.width(2);
cout < < i;

struct point2d {  
char nm;  
float x;  
float y;
};

point2d pt2 = { 'A', 3.14, -38 };
union val {  int i;  
double d;  
char c;
};

double* tmv = new double[n];
int n = atoi(argv[1]);  // first integer is assigned to n

int* local = new int;
*local = 555;

namespace Vec {  

const int maxsize = 100000;     // a const number          
double onenorm(double*, int);           // L 1 norm  
}


double Vec::onenorm(double* v, int size) { 
}

std::cout <<"Approx root near 7.7 by newton method is: " << root << 'n';

---std::srand(time(0));    // seed the random number generator
for (int i = 0; i< n; i++) dp[i]  = std::rand()%1000;std::sort(dp, dp+n);      

---
double d = - 12345.678987654321;
cout.setf(ios_base::scientific, ios_base::floatfield);   // scientific formatcout.setf(ios_base::uppercase);cout.width(25);cout.precision(15);cout.setf(ios_base::left, ios_base::adjustfield);        // adjust to leftcout << d << "n";--------double sum(int num, ...);va_list argPtr;va_start(argPtr, num);  // initialize argPrt. num is the last known argumentdouble sum = 0;for( ; num; num--) {   sum += va_arg(argPtr, double);   // argument of type double is returned}va_end(argPtr);          // deallocate stack pointed to by argPtrreturn sum;--struct point2d {  double x;  double y;  friend double norm(point2d p) {                   // a friend    return sqrt(p.x*p.x + p.y*p.y);                 // distance to origin  }};----class triangle {  point2d* vertices;public:  triangle(point2d, point2d, point2d);         // constructor    ~triangle() {         }                                           // destructor  double area() const;                         // a function member };----class triple {                                  // a triple of numbers  float* data;public:  triple(float a, float b, float c);            // constructor   ~triple() { }                  // destructor, also defined here          friend triple add(const triple&, const triple&);      // add is a friend};inline triple::triple(const triple& t) {  data = new float [3];  for (int i = 0; i < 3; i++) data[i] = t.data[i];}-----operator overloadingclass Cmpx {      // class for complex numbersprivate:  double re;      // real part of a complex number  double im;      // imaginal part of a complex numberpublic:  Cmpx(double x = 0, double y = 0) { re =x; im =y; }  // constructor  Cmpx& operator+=(Cmpx);                          // operator +=, eg z1 +=  z2  Cmpx& operator-=(Cmpx);                          // operator -=, eg z1 -=  z2  Cmpx& operator++();                              // prefix,  z1 = ++z  Cmpx operator++(int);                            // postfix, z1 =  z++  friend Cmpx operator*(Cmpx, Cmpx);               // binary *, z = z1 * z2  friend std::ostream& operator<<(std::ostream&, Cmpx);      // operator <<  friend std::istream& operator>>(std::istream&, Cmpx&);     // operator >> };----------------template class Vcr {         int lenth;                       // number of entries in vector  T* vr;                           // entries of the vectorpublic:   Vcr(int, T*);                    // constructor  Vcr(const Vcr&);                 // copy constructor  ~Vcr(){ delete[] vr; }           // destructor };// partial specializationtemplate class Vcr< complex > {         int lenth;                       // number of entries in vector  complex* vr;                  // entries of the vectorpublic:   Vcr(int, complex*);           // constructor  Vcr(const Vcr&);                 // copy constructor  ~Vcr(){ delete[] vr; }           // destructor  };// complete specializationtemplate<>class Vcr< complex > {         int lenth;                       // number of entries in vector  complex* vr;             // entries of the vectorpublic:   Vcr(int, complex*);      // constructor  Vcr(const Vcr&);                 // copy constructor  ~Vcr(){ delete[] vr; }           // destructor  };----------complex aa = complex(3, 5);--- list nodes;                   // a list of integers for nodes  nodes.push_front(10);              // add 10 at the beginning  nodes.push_back(5);                // add 5 at the end  nodes.pop_back();                  // remove last element  nodes.remove(10);                  // remove element 10for (list::iterator j = nodes.begin(); j != nodes.end(); j++)     cout < < *j << "  ";              // *j is the element at position jnodes.sort(); nodes.unique();nodes.reverse();nodes.insert(i, 2);                // insert before element that i refers to  nodes.insert(i, 5, 7);             // insert 5 copies of 7  nodes.erase(i);ft.merge(sd);               // ft has the merged list, sd will be emptylist::iterator ii = find(ft.begin(), ft.end(), 5.5);   sd.splice(sd.begin(), ft, ii);     ----VECTORstd::vector vi(10);for (int i = 0; i < 10; i++) vi[i] = (i-5)*i; std::sort(vi.begin(),vi.end());std::unique(vi.begin(),vi.end());-----

From: http://sitestree.com/?p=5239
Categories:77
Tags:
Post Data:2012-04-01 12:11:46

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Lesson 1: Short Notes on C++ #77

This short note is for those who already know C++ and want to refresh their memory. Beginners can still take a look to get an overall idea.

  • Three pillars of object-oriented development: encapsulation, inheritance, and polymorphism.
  • C++ supports encapsulation through (user-defined) classes. Class properties and internal workings can be hidden from outside world.
  • C++ supports polymorphism through overloading, overriding
  • C++ supports inheritance by allowing classes to share (extend) the properties and workings of other classes
  • Managed C++ is an extension of the C++ language. Managed C++ allows the use of Microsoft’s new platform (.Net) and libraries
  • How to include header files: #include or #include
  • Print in the console: std::cout < <"Hello World!n"; or cout <<"Hello World!n"; std::cout << "Number and String together:t" << 70000;
  • Read from the console: std::cin >> response; where response is a variable
  • If you do not want to use ‘std::’ in the previous examples, you can use the statement ‘using namespace std;’ before
  • How to comment: use // to comment single line or use /*c++ code*/ to comment a block
  • [ Code commenting is a good practice only when you describe why is the code block than what the block does.]
  • C++ is case sensitive
  • Keywords, Reserved words: Some words are reserved in C++. You can not use them as variable names.
  • Keywords:
    asm else new thisauto enum operator throwbool explicit private truebreak export protected trycase extern public typedefcatch false register typeidchar float reinterpret_cast typenameclass for return unionconst friend short unsignedconst_cast goto signed usingcontinue if sizeof virtualdefault inline static voiddelete int static_cast volatiledo long struct wchar_tdouble mutable switch whiledynamic_cast namespace template
  • Reserved words: And bitor not_eq xorand_eq compl or xor_eqbitand not or_eq
  • Variable declaration: unsigned int age;
  • How to create aliases: typedef unsigned short int USHORT;
  • C++ Escape characters:
    a Bell (alert)
    b Backspace
    f Form feed
    n New line
    r Carriage return
    t Tab
    v Vertical tab
    ‘ Single quote
    ” Double quote
    ? Question mark
    Backslash
    00 Octal notation
    xhhh Hexadecimal notation
  • Define constants:
    #define numberOfContinents 7
  • Enumerated constants:
    enum WeekDays { Monday

From: http://sitestree.com/?p=5062
Categories:77
Tags:
Post Data:2007-12-08 06:35:30

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

How to Use Multiple Browsers on a Single Machine #79

Pre-activated copies of Windows with various versions of IE in virtual machineshttps://www.modern.ie/en-us/virtualization-toolsHow to Use Multiple Browsers on a Single Machinehttp://www.thesitewizard.com/webdesign/multiplebrowsers.shtmlWhat Does HTML and CSS Validation Mean?Should You Validate Your Web Page?http://www.thesitewizard.com/webdesign/htmlvalidation.shtml From: http://sitestree.com/?p=5348
Categories:79
Tags:
Post Data:2008-05-03 09:17:52

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

CSS Topics to learn #79

Some important CSS topics to learn and master at

From: http://sitestree.com/?p=5337
Categories:79
Tags:
Post Data:2007-12-28 02:50:52

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Tutorials on Photoshop Tools #79

Knowing a painting/graphics software well can be a plus for a software developer and designer. If you work with web-sites and web-applications, still if you are a developer, if you know software such as Photoshop well, it will always be beneficial.

Many software designers may actually use such software to create the prototype user interfaces of software (and web-applications) (Many times designers use Visual Studio like IDEs just to create software prototypes). You can just use paint brush for similar purpose. However, if aesthetic user interface is also important for the software and you want to reflect it in the prototype as well you may want to use Photoshop. (in addition to creating and editing images to be used in your software and web-applications)

Just Check the Following:

From: http://sitestree.com/?p=5287
Categories:79
Tags:
Post Data:2012-10-28 12:51:35

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Online Resources: Photoshop Tutorial/Courses in Computer Graphics #79

Some Photoshop tutorial links are given below:[Remember, people don’t study Computer Science (CS) to work with software such as Photoshop. Though no harm if you do and can do [as a CS graduate as part of your job/hobby]. CS study may help to create software such as Photoshop. All the logic, and algorithms that such software use in the background to create the effects in the user interfaces/images are pretty complex (but interesting) (significantly mathematics (usually advanced) intensive). Follow the links at the end to understand what does (knowledge/understanding) it involves to create software such as Photoshop ]

Courses on Computer Graphics

  • Graphics Courses at Other Universities:

Ref: http://www.cs.princeton.edu/courses/archive/fall00/cs426/

From: http://sitestree.com/?p=5286
Categories:79
Tags:
Post Data:2012-02-15 10:17:08

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada