This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#dialogue').dialog({ | |
modal: true, | |
open: function() { | |
$("#ui-datepicker-div").css("z-index", $(this).parents(".ui-dialog").css("z-index")+1); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// With ID | |
$populate =& $this->getContext()->getRequest()->getAttribute('populate', 'org.agavi.filter.FormPopulationFilter'); | |
$populate['form-id-1'] = new AgaviParameterHolder(array( | |
'question[0]' => 'Can you eat cheese?', | |
'answer[0]' => 'No' | |
)); | |
$populate['form-id-2'] = new AgaviParameterHolder(array( | |
'question[0]' => "How many frags do I have to get before I'm considered awesome?", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Like so | |
$this->getContext()->getRequest()->setAttribute('populate', new AgaviParameterHolder(array( | |
'question[0]' => 'Can you eat cheese?', | |
'answer[0]' => 'No' | |
)), 'org.agavi.filter.FormPopulationFilter'); | |
// Or like so... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Get the currently selected option's value | |
$(this).val(); | |
//Get the currently selected option's title | |
$(this).text(); | |
//Set the currently selected option to the supplied value | |
$(this).val('value'); | |
//Get an option with a specified value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var iFrameBody = ''; | |
$('#iframe').load(function(){ | |
iFrameBody = $(this).contents().find('body'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sp_addumpdevice 'disk', 'pseudoName', 'C:yourFilename.mdb'; | |
GO | |
DUMP DATABASE yourDatabaseName TO pseudoName; | |
GO | |
sp_dropdevice pseudoName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Import a MS SQL T-SQL dump file into | |
* and ODBC connection via a PHP browser | |
* script. | |
* | |
* I have not tested the script with binary DB fields so | |
* I cannot confirm whether it works or not. | |
* | |
* @author Simon Holywell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mass Virtual Hosting | |
UseCanonicalName Off | |
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon | |
CustomLog /var/log/apache2/access.log vcommon | |
VirtualDocumentRoot /mnt/htdocs/%1 | |
<Directory /mnt/htdocs/> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
Allow from all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schtasks /Create /RU username /RP password /SC MINUTE /MO 2 /TN taskname /TR "C:\Program Files\wget\wget.exe --header=TASK_KEY:my-secret-key -U my-agent http://www.webaddress.com/script.php --spider" |