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 | |
/** | |
* Retrieves a web content from given URL | |
* @todo Apply best scapper method among curl, post, file_get_contents, url fopen | |
* @see methods used in API engines as well | |
*/ | |
private function web_contents($url = '') | |
{ | |
$options = array( | |
'http'=>array( |
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 | |
/** | |
* Opens an URL with POST parameter and keeps quiet. Useful to post the data. | |
* @todo Make sure curl is initialized on the server, otherwise, the sytem may not perform | |
* @todo Handle $parameters if it is a multi dimentional array | |
*/ | |
function web_contents($url='http://', $parameters_associative=array(), $fetch_data=false) | |
{ | |
$fetch_data = ($fetch_data===true); |
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
Pages for each of your locations | |
https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-prn1/851562_1421673971381315_1695787876_n.pdf | |
Image Dimensions | |
- Profile Picture: 160 x 160 px | |
- Cover Picture: 851 x 315 px | |
https://www.facebook.com/help/315809258465467 |
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
@echo off | |
SET HOSTNAME=localhost | |
SET USERNAME=root | |
SET PASSWORD=password | |
SET DATABASE=database | |
REM Backup everything | |
mysqldump --routines -h%HOSTNAME% -u%USERNAME% -p%PASSWORD% %DATABASE% > %DATABASE%-all.dmp |
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 | |
$mail = new PHPMailer(); | |
$mail->isSMTP(); | |
$mail->SMTPDebug = 2; | |
$mail->SMTPAuth = true; | |
$mail->Host = 'smtp.gmail.com'; | |
$mail->SMTPSecure = 'tls'; | |
$mail->Port = 587; |
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
http://xplus3.net/2013/10/10/remove-definer-clause-mysqldump/ | |
mysqldump > non-portable.dmp | |
$ sed -E 's/DEFINER=`[^`]+`@`[^`]+`/DEFINER=CURRENT_USER/g' non-portable.dmp > portable.dmp | |
http://dbperf.wordpress.com/2010/04/12/removing-definer-from-mysql-dump/ | |
perl -p -i.bak -e "s/DEFINER=\`\w.*\`@\`\d[0-3].*[0-3]\`//g" portable.dmp |
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
SET GLOBAL log_output = 'FILE'; | |
SET GLOBAL general_log_file='/tmp/mysql_general.log'; | |
SET GLOBAL general_log = 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
How to review and choose staffing software | |
http://www.tempworks.com/staffing-software-checklist.php | |
eempacat | |
http://www.bond-us.com/Bond_eEmpACT_Staffing_Software_Business_Benefits.php | |
Talent Management | |
http://www.workday.com/applications/human_capital_management/talent_management.php |
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
check digits | |
http://www.augustana.ab.ca/~mohrj/algorithms/checkdigit.html | |
Check Digit Algorithm | |
https://wiki.openmrs.org/display/docs/Check+Digit+Algorithm | |
http://www.codeproject.com/Articles/16540/Error-Detection-Based-on-Check-Digit-Schemes | |
Damm algorithm | |
http://en.wikipedia.org/wiki/Damm_algorithm |
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
http://yysource.com/2011/03/debugging-with-css-outline-all-elements/ | |
* { outline: 2px dotted red } | |
* * { outline: 2px dotted green } | |
* * * { outline: 2px dotted orange } | |
* * * * { outline: 2px dotted blue } | |
* * * * * { outline: 1px solid red } | |
* * * * * * { outline: 1px solid green } | |
* * * * * * * { outline: 1px solid orange } | |
* * * * * * * * { outline: 1px solid blue } |