WordPress database error: [Table 'johannsg_wp1.wp_post2cat' doesn't exist]
SELECT post_id, category_id FROM wp_post2cat WHERE post_id IN (18,15,9,7,3)

Johanns Sani-GREGORIAN

“died in a computing accident”

April 2nd, 2008

HA?

Index me.

WordPress database error: [Table 'johannsg_wp1.wp_post2cat' doesn't exist]
SELECT post_id, category_id FROM wp_post2cat WHERE post_id IN (18)

Uncategorized | 1 Comment »

.NET: Receive disk / media notifications from Windows Shell

July 17th, 2007

ShellMediaChangeNotifier: Provide means of  receiving drive addition and removal notifications triggered by Windows Shell (a.k.a: Explorer). This is a not a FileSystemWatcher clone, which raises events on changes made to specific files or directories.

ShellMediaChangeNotifier class is C++/CLI (why waste time with P/Invoke); while the provided demo is in C#.

Download: ShellMediaChangeNotifier and Demo Application

How-to use:
Read the rest of this entry »

WordPress database error: [Table 'johannsg_wp1.wp_post2cat' doesn't exist]
SELECT post_id, category_id FROM wp_post2cat WHERE post_id IN (15)

Uncategorized | 1 Comment »

GeSHi C++ and Windows Data Types

June 5th, 2007

I’ve updated the GeSHi C++ langauge file to include Microsoft Windows (Win API) Data Types (I was bored I guess).

To install, replace “cpp.php” in your GeSHi directory with the attached file.

GeSHi C++ Langauge File with Windows Data Types

WordPress database error: [Table 'johannsg_wp1.wp_post2cat' doesn't exist]
SELECT post_id, category_id FROM wp_post2cat WHERE post_id IN (9)

Uncategorized | No Comments »

Dynamips + Vista + UAC

June 4th, 2007

To run Dyamips/Dynagen as Administrator in Vista, you have to modify the .cmd files created by the Dynagen package installer, to use absolute path(s).

You can download the modified batch files here: Dynamips Windows Command Script files

Simply, replace those files in the Dynamips installation folder.

See my previous post for additional details (link).

EDIT: You may also need to give your user Modify or Full control permission over the Dynamips (Dynagen) install folder if you want to be able to modify any file (including the script files). The real pain is when you try to modify the sample lab files (e.g.: simple1.net, etc.).

The Dynagen package installer, installs in %SYSTEMDRIVE%\Program Files\Dynamips.

WordPress database error: [Table 'johannsg_wp1.wp_post2cat' doesn't exist]
SELECT post_id, category_id FROM wp_post2cat WHERE post_id IN (7)

Uncategorized | 7 Comments »

Cisco 26xx/36xx/72xx Router Simulator (Windows)

May 29th, 2007

UPDATE: I highly recommend anyone interested in Dynamips to check-out GNS3 (Graphical Network Simulator). It’s designed around Dynamips, Dynagen, and Pemu. Cisco IOS/PIX binary images not included! :)

Link: http://www.gns3.net/

Dynamips is a Cisco router emulator. It support various Cisco 2600, 3600, 3700, and 7200 series router models.

Dyangen is a front-end for Dynamips router emulator. It utilizes Dynamips’ Hypervisor mode to make lab simulation management very easy.

Installing / Running Dynamips and Dynagen on Windows (XP, 2003, Vista):

  • Install WinPcap 4 (Windows Packet Capture Library) from WinPcap.org (link to auto-installer).
  • Install the latest version of the Dynamips/Dynagen “package” installer from SourceForge.
    NOTE
    : April 29th, 2007 build is labeled: dynagen-0.9.2_dynamips-0.2.7-RC3_Win_XP_setup.exe

NOTE: Users with Vista UAC enabled may encounter issue(s) when trying to run Dynamips/Dynagen. Solutions:

  1. Disable UAC! ;)
  2. Run the Dynamips server and Dynagen as Administrator; however, you must first modify the “dynamips-start.cmd“, “dg-local.cmd“, and “Network device list.cmd” script files, located in the DynMIPS installation folder:
    (e.g.:
    Before
    : start /belownormal /B /wait “Dynamips” “dynamips.exe” -H 7200
    After
    : start /belownormal /B /wait /D “\Program files\Dynamips\” “Dynamips” “dynamips.exe” -H 7200
    )
    UPDATE: Check my next blog entry to download the updated startup scripts (.cmd) files.

Quick Start:

Read the rest of this entry »

WordPress database error: [Table 'johannsg_wp1.wp_post2cat' doesn't exist]
SELECT post_id, category_id FROM wp_post2cat WHERE post_id IN (3)

Uncategorized | 19 Comments »