SVN Ignore

In some case, we would not like the SVN server contain some configration, so we need ignore some files or folders when we update the data. svn propedit svn:ignore . File format: abc.htm *bc.htm

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);