Meek Consulting

Just another WordPress weblog

Entries for December, 2009

Fixing VIM to allow smart match finding using the percent key

Edited the file /usr/share/vim/vim70/syntax/smarty.vim Added the following code: ” HTML:  thanks to Johannes Zellner and Benji Fisher. if exists(“loaded_matchit”) let b:match_ignorecase = 1 let b:match_skip = ‘s:Comment’ let b:match_words = ‘<:>,’ . \ ‘<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,’ . \ ‘<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,’ . \ ‘<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>’ endif This sets the HTML tag matching words for the matchit plug in when [...]

Background Gradient Image Creation Tool

If you need to create a gradient image for a background you might try this tool. It is pretty slick. http://www.ogim.4u2ges.com/gradient-image-maker.asp

Faster MYSQL Index creation

Creating indexes in mysql on large tables can take a long time. Because it makes a temporary copy of the entire DB file first then creates the indexes. So be sure you have enough free space for the complete DB ( MYI and MYD for MYISAM databases ) plus space for the new version. If [...]

Generate SQL to create indexes in mysql

If you have a mysql database table with indexes and you want to get the alter table  commands to “create” the same indexes on another db You can run this sql — replacing the tablename with your table. Just add alter table TABLENAME Then paste the add index commands generated by the SQL below SELECT    [...]

  

Secured for spam by MLW and Associates, LLP's Super CAPTCHASecured by Super-CAPTCHA © 2009-2010 MLW & Associates, LLP. All rights reserved.