Zydecode Studio

Launch Flex in same Firefox window

April 23rd, 2007

about:config >> browser.link.open_external >> set to 1

PNG2SWF batch file

October 18th, 2006

Option Explicit
 
Dim fso: Set fso = CreateObject("Scripting.FileSystemObject")
Dim CurrentFolder: Set CurrentFolder = fso.GetFolder(".\png")
Dim WShell: Set WShell = WScript.CreateObject("WScript.Shell")
 
Dim Files: Set Files = CurrentFolder.Files
Dim File
Dim fileName
Dim objFile
Dim str
 
For Each File In Files
Set objFile = fso.GetFile(File)
fileName = fso.GetBaseName(objFile)
 
str = "C:\progra~1\swftools\png2swf.exe -X 540 -Y 360 -o E:\path\to\swf\" & fileName & ".swf -r 30 E:\path\to\png\" & fileName & ".png"
 
WShell.Run str, 0
 
Next

phpMyAdmin CSS/theme not displayed

October 4th, 2006

This little bug is a pain, but luckily only shows up on certain configs…

So far, it seems to be an issue that only surfaces with Apache2.0 and PHP5, on Windows.. and is caused by the chdir(..) call - the main one being phpmyadmin.css.php. Change the “..” to your root directory, and all should be solved.

BTW - it has nothing to do with ./ syntax being used in phpMyAdmin.

find text within a BSD file

September 29th, 2006

find / -iname “*.conf” -print0 | xargs -0 grep “the text you need to find”

Apache MSI installer

September 21st, 2006

if the installer just bails on the initial screen, make sure that the computer has a domain set up in the networking dialog. This is used to auto-configure the install of Apache, and looks like there is no detection other than failure during the installation process.

Scanning workflow

September 20th, 2006

for 645 on ArtixScan 120tf, Silverfast Ai

  • 48 bit Color, fit levels to ends of curve.
  • NO colour correction, NO sharpening.
  • Scale 1000%, 228 DPI

In Photoshop:
Shadow/Highlights, tweak shadows for radius. Color balance - add yellow

php5 on FreeBSD 6.1

September 11th, 2006

After downloading the 6.1 version php5 port config files you have to do “make config” and select the apache module. The “make install” will automatically make the correct changes to your httpd-config file for serving up php pages correctly. php5-extensions is not normally needed.

FTP script for Windows batch file

August 5th, 2006

REM set file name by today's date - %ftpFile% format will be "FTP-2004-03-25.txt" SetLocal
FOR /F "tokens=2-4 delims=/ " %%i in ('DATE/T') do SET ftpStr=FTP-%%k-%%i-%%j
echo %ftpFile% if NOT exist C:\FTP\%ftpStr% EXIT
(echo open 10.0.9.5
echo ftp_user
echo ftp_password
echo put C:\FTP\%ftpStr%.txt inbound/%ftpStr%.txt
echo quit)>myFTP.txt ftp -s:myFTP.txt del myFTP.txt echo %ftpStr%.txt uploaded: %Date% %Time%>>ftp.log
exit

Wordpress on IIS

August 5th, 2006
  • replace /? with /index.php?
  • replace ?cat with index.php?cat
  • function wpautop($pee, $br = 1) : set 1 to 0

CF database schema dump

July 20th, 2006

needed to get a dump of an old database schema via Cold Fusion:

SELECT *
FROM Information_Schema.Tables
ORDER BY Table_Name

SELECT COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH
FROM Information_Schema.Columns
WHERE Table_Name = ‘#Table_Name#’

ORDER BY Ordinal_Position