Wednesday, 2 November 2016

Best Windows + Microsoft office activator

KMSpico is the best activator to activate the Windows operating system and Microsoft office. This activator works for all the latest versions of Windows and Office. Click hare to download the Activator.

How to use it...

  1. Download the file
  2. Unzip the file 
  3. Click on the .exe file to install
  4. Follow the simple steps to install it
  5. After installation just Restart the system
And you have done it successfully .......enjoy............

Monday, 13 June 2016

Internship Opportunity in System Ltd

Company name :

System Ltd.

Location:

Karachi, Pakistan

Description:

System Ltd is hiring freshers and experienced for the internship programs. Hare is an opportunity for you to grab this internship and work with sharpest minds in the industry.

Applying Date:

14th, June 2016

Apply Now 

Microsoft to acquire LinkedIn in 26 Billion $


Today it is a historical day for Microsoft and LinkedIn both have reached at an agreement according to which Microsoft will buy the LinkedIn shares as $196/share which is almost 30% more than market value $131. The total worth of this deal is 26 Billion Dollars .
The Redmond giant said that the LinkedIn CEO Jeff Weiner will still work as company CEO but under Microsoft CEO Satya Nadella. 
According to News Reports deal will be finalized till this running financial year.

“The LinkedIn team has grown a fantastic business centered on connecting the world’s professionals,” Nadella said.

Wednesday, 1 June 2016

How to Download Youtube Videos Without any Downloader (Amazing Trick)

Today you will learn an amazing trick to download YouTube videos in both Audio and Video format.
You have to follow bellow steps to download the video.

Step 1:

Go to  youtube.com and play the video you want to download.

Step 2: 

Now remove the last three charterers of YouTube which are "ube" and press Enter


Yor URL should be look like
You Will be directed to the new window where you can change the file either MP3 of MP4 and press the Record Button
Congratulations !!!!! You have done it . Please comment bellow if this article was helpful for you

Tuesday, 31 May 2016

Tools that make .NET Development very easy

Coding in .NET is such a lovely thing but using some usefull tools make it more easy to do this loveable work.There are so many tools for .NET coding but here we will learn about some most usefull tools, that a developer should keep in mind while coding, debbuging or deploying their applications.



lets explore these tools.....

JSON Viewer:

This tool is used to convert object data to JSON and JSON data to object data .It is also use for checking the JSON data validity

AppScan:

 An IBM based tool used to check the security threat in the applications.It analyze the code to check the end-to-end user activity..Most common threats like cross site scripting, cookies stealing and sensitive data exposures are being reported using this tool.   

Code collaborator:

It is a great tool to review the  code , by uploading it on URL based controller .end user can review the code and comment about the code. The developer fix it later

NCover

The best tool to help test driven application development. This tool detects the code and suggest the developer where test case code has been missed.Higher  code coverage will give the higher value to the application 

There are more usefull tools . Some of these tools are free and for some tools you have to buy the license.
Thanks for Reading. Please comment if you found it Help full  
Happy coding...........

Sunday, 29 May 2016

How to make an Analog Clock in OpenGL (cmplete code)

Coading in OpenGL is a fun . Here in this post you will learn to make an analog clock in OpenGL.



// GLclock.c
// A openGL example program, displays a 3D clock face
// Happy Coding
// Keyboard inputs: [ESC] = quit
// 'L' = enables/disables lighting
// 'V' = toggle ortho/prespective view


#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif

#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>

// define glu objects


GLUquadricObj *Cylinder;
GLUquadricObj *Disk;

struct tm *newtime;
time_t ltime;

GLfloat rx, ry, rz, angle;

// lighting
GLfloat LightAmbient[] = { 0.5f, 0.5f, 0.5f, 1.0f };
GLfloat LightDiffuse[] = { 0.5f, 0.5f, 0.5f, 1.0f };
GLfloat LightPosition[] = { 5.0f, 25.0f, 15.0f, 1.0f };
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };

static int light_state = 1; // light on = 1,  off = 0
static int view_state = 1; // Ortho view = 1, Perspective = 0


void Sprint(int x, int y, char *st)
{
int l, i;

l = strlen(st);
glRasterPos3i(x, y, -1);
for (i = 0; i < l; i++)
{
glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, st[i]);
}

}

static void TimeEvent(int te)
{
int timent;
int i;
float M_TWOPI = 2 * 3.1416;

rx = 30 * cos(angle);
ry = 30 * sin(angle);
rz = 30 * cos(angle);
angle += 0.01;
if (angle > M_TWOPI) angle = 0;

glutPostRedisplay();
glutTimerFunc(100, TimeEvent, 1);
}

void init(void)
{


glClearColor(0.0, 0.0, 0.0, 0.0);
glShadeModel(GL_SMOOTH);
glEnable(GL_DEPTH_TEST);
// Lighting in the scene
glLightfv(GL_LIGHT1, GL_AMBIENT, LightAmbient);
glLightfv(GL_LIGHT1, GL_DIFFUSE, LightDiffuse);
glLightfv(GL_LIGHT1, GL_POSITION, LightPosition);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT1);


Cylinder = gluNewQuadric();
gluQuadricDrawStyle(Cylinder, GLU_FILL);
gluQuadricNormals(Cylinder, GLU_SMOOTH);
gluQuadricOrientation(Cylinder, GLU_OUTSIDE);
gluQuadricTexture(Cylinder, GL_TRUE);

Disk = gluNewQuadric();
gluQuadricDrawStyle(Disk, GLU_FILL);
gluQuadricNormals(Disk, GLU_SMOOTH);
gluQuadricOrientation(Disk, GLU_OUTSIDE);
gluQuadricTexture(Disk, GL_TRUE);


}

void Draw_gear(void)
{

int i;
glPushMatrix();
gluCylinder(Cylinder, 2.5, 2.5, 1, 16, 16);
gluDisk(Disk, 0, 2.5, 32, 16);
glTranslatef(0, 0, 1);
gluDisk(Disk, 0, 2.5, 32, 16);
glPopMatrix();
for (i = 0; i < 8; i++)
{
glPushMatrix();
glTranslatef(0.0, 0.0, 0.50);
glRotatef((360 / 8) * i, 0.0, 0.0, 1.0);
glTranslatef(3.0, 0.0, 0.0);
glutSolidCube(1.0);
glPopMatrix();
}


}

void Draw_clock(GLfloat cx, GLfloat cy, GLfloat cz)
{

int hour_ticks, sec_ticks;
glPushMatrix();

glTranslatef(cx, cy, cz);
glRotatef(180, 1.0, 0.0, 0.0);


glPushMatrix(); // Drawing large wire cube
glColor3f(1.0, 1.0, 1.0);
glTranslatef(0.0, 0.0, 6.0);
glutWireCube(14.0);
glPopMatrix();

glPushMatrix(); // Drawing clock face
glTranslatef(0, 0, 1.0);
gluDisk(Disk, 0, 6.75, 32, 16);

glPopMatrix();

glPushMatrix();// Drawing hour hand
glColor3f(1.0, 1.5, 0.5);
glTranslatef(0, 0, 0.0);
glRotatef((360 / 12) * newtime->tm_hour + (360 / 60) * (60 / (newtime->tm_min + 1)), 0.0, 0.0, 1.0);
glPushMatrix();
glTranslatef(0.0, 0.0, 2.0);
Draw_gear();
glPopMatrix();
glRotatef(90, 1.0, 0.0, 0.0);
gluCylinder(Cylinder, 0.75, 0, 4, 16, 16);
glPopMatrix();

glPushMatrix();// Drawing minute hand
glColor3f(1.5, 1.5, 1.0);
glTranslatef(0, 0, 0.0);
glRotatef((360 / 60) * newtime->tm_min, 0.0, 0.0, 1.0);
glPushMatrix();
glTranslatef(0.0, 0.0, 3.0);
glScalef(0.5, 0.5, 1.0);
Draw_gear();
glPopMatrix();
glRotatef(90, 1.0, 0.0, 0.0);
gluCylinder(Cylinder, 0.5, 0, 6, 16, 16);
glPopMatrix();

glPushMatrix();// Drawing second hand
glColor3f(1.0, 0.0, 1.5);
glTranslatef(0, 0, -0.0);
glRotatef((360 / 60) * newtime->tm_sec, 0.0, 0.0, 1.0);
glPushMatrix();
glTranslatef(0.0, 0.0, 4.0);
glScalef(0.25, 0.25, 1.0);
Draw_gear();
glPopMatrix();
glRotatef(90, 1.0, 0.0, 0.0);
gluCylinder(Cylinder, 0.25, 0, 6, 16, 16);
glPopMatrix();


for (hour_ticks = 0; hour_ticks < 12; hour_ticks++)
{
glPushMatrix();// Drawing next arm axis.
glColor3f(0.0, 1.0, 1.0); //Now give it a color
glTranslatef(0.0, 0.0, 0.0);
glRotatef((360 / 12) * hour_ticks, 0.0, 0.0, 1.0);
glTranslatef(6.0, 0.0, 0.0);
glutSolidCube(1.0);

glPopMatrix();
}
for (sec_ticks = 0; sec_ticks < 60; sec_ticks++)
{
glPushMatrix();
glTranslatef(0.0, 0.0, 0.0);
glRotatef((360 / 60) * sec_ticks, 0.0, 0.0, 1.0);
glTranslatef(6.0, 0.0, 0.0);
glutSolidCube(0.25);
glPopMatrix();
}


glPopMatrix();

}


void display(void)
{

time(&ltime); // Get time
newtime = localtime(&ltime); // Convert to local time

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

// easy way to put text on the screen.
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(-8.0, 8.0, -8.0, 8.0, 1.0, 60.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glDisable(GL_LIGHTING);
glDisable(GL_COLOR_MATERIAL);

// Put view state on screen
glColor3f(1.0, 1.0, 1.0);
if (view_state == 0)
{
Sprint(-3, -4, "Perspective view");
}
else Sprint(-2, -4, "Ortho view");


Sprint(-4, -8, asctime(newtime));

// Turn Perspective mode on/off
if (view_state == 0)
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();

gluPerspective(60.0, 1, 1.0, 60.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt(rx, 0.0, rz, 0.0, 0.0, -14.0, 0, 1, 0);
}

if (light_state == 1)
{
glEnable(GL_LIGHTING);
glEnable(GL_COLOR_MATERIAL);  // Enable for lighing
}
else
{
glDisable(GL_LIGHTING);
glDisable(GL_COLOR_MATERIAL);  // Disable for no lighing
}

Draw_clock(0.0, 0.0, -14.0);



glutSwapBuffers();
}

void reshape(int w, int h)
{
glViewport(0, 0, (GLsizei)w, (GLsizei)h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
}

void keyboard(unsigned char key, int x, int y)
{
switch (key)
{
case 'L':
light_state = abs(light_state - 1);
break;
case 'V':
view_state = abs(view_state - 1);
break;
case 27:
exit(0); // exit program when [ESC] key presseed
break;
default:
break;
}

}

int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
glutInitWindowSize(500, 500);
glutInitWindowPosition(10, 10);
glutCreateWindow(argv[0]);
glutSetWindowTitle("GLclock");
init();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
glutTimerFunc(10, TimeEvent, 1);
glutMainLoop();
return 0;
}



Happy coading............

Popular tools used for web development

There are bundles of tools used for web development , basically all these tools works same but they have some extra features that makes any tool better than others .
In this article we will discus about these tools and there features. Here you will also be  able to download these softwares.

Visual Studio 

           Visual Studio is a product of Microsoft, One of the most powerful IDE for web development and Windows Software development and for Windows services.

                
                                       

You can download Visual Studio from Here

Sublime Text

            Sublime Text is also a good user friendly text editor, Which provides good user interface for the developer, even newbies can feel easy while writing their code.Its new version Sublime text 3 is out now, available for both Windows (32/64 bit) and Ubuntu(32/64 bit)


You can download Sublime Text 3 from Here

Notepad ++

          Notepad ++ is a free  text editor. It supports many languages. This editor has a good user friendly graphical interface that also makes the favorite of most developers. All of its reported bugs has been fixed.

You can download Notepad ++ from Hare

eclipse

    eclipse has been designed for the development of web applications and other apps. it also support many languages including Java, C and C++ etc


You can download the eclipse editor from Here