<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.7" -->
<rss version="0.92">
<channel>
	<title>Snippets</title>
	<link>http://www.zydecode.net/snippets</link>
	<description>Snippets</description>
	<lastBuildDate>Mon, 28 Apr 2008 20:14:28 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Launch Flex in same Firefox window</title>
		<description>about:config >> browser.link.open_external >> set to 1 </description>
		<link>http://www.zydecode.net/snippets/?p=41</link>
			</item>
	<item>
		<title>PNG2SWF batch file</title>
		<description>Option Explicit
&#160;
Dim fso: Set fso = CreateObject("Scripting.FileSystemObject")
Dim CurrentFolder: Set CurrentFolder = fso.GetFolder(".\png")
Dim WShell: Set WShell = WScript.CreateObject("WScript.Shell") 
&#160;
Dim Files: Set Files = CurrentFolder.Files
Dim File
Dim fileName
Dim objFile
Dim str
&#160;
For Each File In Files
    Set objFile = fso.GetFile(File)
    fileName = fso.GetBaseName(objFile)
  &#160;  
   ...</description>
		<link>http://www.zydecode.net/snippets/?p=40</link>
			</item>
	<item>
		<title>phpMyAdmin CSS/theme not displayed</title>
		<description>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, ...</description>
		<link>http://www.zydecode.net/snippets/?p=39</link>
			</item>
	<item>
		<title>find text within a BSD file</title>
		<description>find / -iname "*.conf" -print0 &#124; xargs -0 grep "the text you need to find" </description>
		<link>http://www.zydecode.net/snippets/?p=38</link>
			</item>
	<item>
		<title>Apache MSI installer</title>
		<description>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. </description>
		<link>http://www.zydecode.net/snippets/?p=37</link>
			</item>
	<item>
		<title>Scanning workflow</title>
		<description>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
 </description>
		<link>http://www.zydecode.net/snippets/?p=36</link>
			</item>
	<item>
		<title>php5 on FreeBSD 6.1</title>
		<description>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. </description>
		<link>http://www.zydecode.net/snippets/?p=35</link>
			</item>
	<item>
		<title>FTP script for Windows batch file</title>
		<description>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
 </description>
		<link>http://www.zydecode.net/snippets/?p=33</link>
			</item>
	<item>
		<title>Wordpress on IIS</title>
		<description>
	replace /? with /index.php?

	replace ?cat with index.php?cat

	function wpautop($pee, $br = 1) : set 1 to 0



 </description>
		<link>http://www.zydecode.net/snippets/?p=32</link>
			</item>
	<item>
		<title>CF database schema dump</title>
		<description>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

 ...</description>
		<link>http://www.zydecode.net/snippets/?p=31</link>
			</item>
</channel>
</rss>
