How to Install GLUT to Dev C++

GLUT is a platform-independent OpenGL library. We need to follow the steps below in order to use it on Dev C++

  • glut.h – Copy to C:Dev-CppincludeGL
  • glut32.def – Copy to C:Dev-Cpplib
  • glut32.dll – Copy to C:WINDOWSsystem32

 

Let’s try it:

#include <glgl.h>
#include <glglut.h>
void init(void);
void display(void);

int main(int argc, char *argv[])
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGB);
glutInitWindowSize(250,250);
glutInitWindowPosition(100,200);
glutCreateWindow("My OpenGL Application");
init();
glutDisplayFunc(display);
glutMainLoop();
return 0;
}

void init(void)
{
glClearColor(0.0f ,0.0f ,0.0f ,0.0f);
glColor3f(0.0f,0.0f,1.0f);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(45.0f,(GLfloat)250/(GLfloat)250,0.1f,100.0f);
}

void display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_TRIANGLES);
glVertex3f( 0.0f, 1.0f, -10.0f);
glVertex3f(-1.0f,-1.0f, -10.0f);
glVertex3f( 1.0f,-1.0f, -10.0f);
glEnd();
glutSwapBuffers();
}

Forefront Threat Management Gateway Easy Configuration

Microsoft Forefront Threat Management Gateway (TMG) is the successor of Microsoft Internet Security and Acceleration (ISA) Server. Windows Server 2008 or Windows Server 2003 can be utilized in order to setup a secure internet for your network.

The easy configuration scenario:

  • Forefront TMG installed computer needs to have two network adapters.
  • One of them for local network (adapter #1) which demands internet access and the other one (adapter #2) is internet access input.

Example:

Adapter #1 IP: 10.10.1.1
Adapter #1 Mask: 255.255.255.0
Adapter #1 Gateway: –
Adapter #1 DNS: 10.10.1.2

Adapter #2 IP: 10.20.1.20
Adapter #2 Mask: 255.255.255.0
Adapter #2 Gateway: 10.20.1.1
Adapter #2 DNS: 10.20.1.2

Client Adapter IP: 10.10.1.51
Client Adapter Mask: 255.255.255.0
Client Adapter Gateway: 10.10.1.1
Client Adapter DNS: 10.10.1.2

If you don’t wish to operate DNS servers in your network, you should allow DNS protocol to external and use 8.8.8.8 or any other famous DNS servers.

Convert iPhone SMS Database to Excel File

  • Back up your iPhone using iTunes.
  • Open the directory ~/Library/Application Support/MobileSync/Backup/ for Mac or C:UsersYourUserNameAppDataRoamingApple ComputerMobileSyncBackup for Windows 7.
  • Find the file 3d0d7e5fb2ce288813306e4d4636395e047a3d28. This is a SQLite database file.
  • Open the database file by using a SQLite Editor such as SQLite Expert.
  • Your SMS messages are inside the database named “message”.

All Applications Open with Windows Media Center

One of the most common Windows 7 problems is that all programs try to open with Windows Media Center.

The solution is quite simple as below:

  • Open Control Panel->User Accounts
  • Create a new user with administrator privileges
  • Start Windows with the new user
  • Open Control Panel->Programs
  • Enter Windows Features
  • Disable Media Features
  • Restart Windows when asked

Set up FileZilla Server behind Windows Firewall

If you are having problems with setting up FileZilla Server to run behind Windows Firewall (specifically, it fails on “List” and the client receives a “Failed to receive directory listing” error), you must add the FileZilla Server application to Windows Firewall’s Exceptions list. To do this, follow these steps:

  • Open Windows Firewall under Control Panel.
  • If using Vista, click “Change Settings”
  • Select the “Exceptions” tab.
  • Click “Add program…”
  • Do NOT select “FileZilla Server Interface” from the list, instead click on “Browse…”
  • Locate the directory you installed FileZilla Server to (normally “C:Program FilesFileZilla Server”)
  • Double click or select “FileZilla server.exe” and press open (Once again, NOT “FileZilla Server Interface.exe”)
  • Select “FileZilla server.exe” from the list and click “Ok”
  • Verify that “FileZilla server.exe” is added to the exceptions list and that it has a check mark in the box next to it
  • Press “Ok” to close the window

Passive mode should now work. If you are still having problems connecting (from another computer or outside the network), check your router settings or try to add the port number in the Windows Firewall settings located in the Exceptions tab.