Doctrine Schema

Data Types Doctrine offers several column data types. When you specify the portable Doctrine type it is automatically converted to the appropriate type of the DBMS you are using. Below is a list of the available column types that can be used as well as the type it is translated to when using the MySQL … Read more

Create Control Array in Visual Baisc 2005 & 2008

Public Class Form1 Dim MyPictureBoxes() As PictureBox Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ReDim MyPictureBoxes(29) Dim i As Integer For i = 0 To UBound(MyPictureBoxes) MyPictureBoxes(i) = New PictureBox Me.Controls.Add(MyPictureBoxes(i)) With MyPictureBoxes(i) .Visible = False .BorderStyle = BorderStyle.Fixed3D .Name = “MyPicterbox ” & i.ToString ‘U’ll have to set the … Read more

Cent OS 5 PPTPD Setup VPN + NAT

PPTP Server Installation in CentOS 5 This document is shown how to build a Linux Point to Point Tunneling Protocol (PPTP) server using Poptop. This allows roaming users to connect to their corporate network from anywhere on the Internet securely and inexpensively. It supports Windows 95/98/Me/NT/2000/XP PPTP clients and Linux PPTP clients. The requirements are: … Read more

Using Multi Database In Symfony

all: database1: class: sfPropelDatabase param: dsn: pgsql://foo:bar@hostname/database1 database2: class: sfPropelDatabase param: dsn: mysql://foo:bar@hostname/database2 Create one PROJECT_DIR/config/database1.schema.xml Create another one PROJECT_DIR/config/database2.schema.xml Rebuild DB model: $ symfony propel-build-model $database1_connection_handler = Propel::getConnection(FooPeer::DATABASE_NAME); $database2_connection_handler = Propel::getConnection(BarPeer::DATABASE_NAME);