WP SuperCache PlugIn for converting your MySQL DB based blog content to static content

WP Super Cache   – You can serve out static HTML pages instead of

  • running php
  • accessing database
  • running more php to form the HTML page

On shared servers you sometimes have trouble getting access to the shared MySQL server when its overloaded.  This way you can just rip the pages out.

Notes on Installation:

When I first looked at this I was worried the .htaccess file update would foul up my already existing .htaccess file through which I use candied URL's.  I tested it and it works fine.

How to Register an OCX File

If you are receiving errors about an ocx file, registering the file may solve the problem. To register an ocx file simply follow the simple steps below.

  • 1.Locate the file using windows explorer or My Computer. Alternatively search for the filename.
  • 2.Hold down the shift key and right click on the file. Then click 'Open With…' from the menu.
  • 3.An 'Open With' dialog box should appear. Click the button 'Other…'.
  • 4.Navigate to your windows\system32 directory and select the file 'RegSvr32.exe'. Do a file search for it if you have trouble locating the exact folder. On Windows 2000 it is typically located in c:\WINNT\System32. Click Open to select the file. Then click OK on the 'Open With' dialog.
  • 5.You should see a message indicating the file was successfully registered. If you see an error message, try restarting your computer and going through the above process again.

Writing a Custom Control for Visual Basic

First Phase is always looking for example code to allow untangling very poorly written explanations.

Variable Visibility

You can pass variables / objects back and forth between a Visual Basic Form and a UserControl.  This archive has source code showing you how to do this:

     Scribble.zip 

 

You can make properties for the following things: Forms, UserControls and Class Modules. Basically any element that will behave as an object.

When to use properties?

Properties are handy when you want to generalize your code: if you're changing a setting of something, it might be better to create it as a property. Especially if you might have a need to get a return value as well. The property code can then do some additional stuff, such as switching form's menu items automatically to correct value, so you don't need to do it from whereever you set the property.

Property Passing

This accesses a property of the Custom Control

Parent Form Custom Control

 

ParentForm.Caption=UserControl1.Caption  

Dim m_Caption As String

Public Property Get Caption() As String
   Caption = m_Caption
End Property

 

……..more

Visual Basic Error Codes and Messages

 

Feed me only good things or I will crush kill destroy.

 

 The information in this article applies to: – Standard, Professional and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0
 
Trappable Errors for Visual Basic 4.0
————————————-
 
3     Return without GoSub
5     Invalid procedure call
6     Overflow
7     Out of memory
9     Subscript out of range
10    This array is fixed or temporarily locked
11    Division by zero

…….more

Google Chrome Simon – Try to remember the sequence of the colored lights and tones of your browser

         

           

Was I not supposed to see the similarity between the google chrome browser symbol and the old Simon game?    Does it help to smoke a little pot before using Google Chrome?  It certainly did with Simon.   In college I used to put the speaker to my ear and go solely by sound and worked the buttons like lightning.