magp.ie

Please wait for loading...




      (433):

    /
     3  +3 2014 aug 12php validate xmlCheck for Valid XML with PHP | Magp.ieSimple function to check if XML is valid. It just loads the XML into DOMDocument and checks for errors.
     4  +97 2014 sep 11wp codes por codaTidy and format your PHP and meet WordPress standards on Coda When you are reading through code that you haven't written, it helps if it ... If you are using Coda , there is an excellent plugin called Coda PHP ..... Why are the WP folks still trying to inflict K&R's most blatant error on others?
     4  +2 2014 aug 30polldaddy rating wordpress shortcodesWordPress Polls and Rating Plugin | Magp.ieYou can also use the Polldaddy shortcodes in a text widget, similar to on WordPress .com, to embed a survey, poll and a rating into the sidebar.
     4  +26 2014 aug 01php tail fileGet last line of file in PHP | Magp.ieUse Linux's Tail command to get last line of a file . [Update] Here is a PHP fseek function that utilises a dynamic buffer which is more efficient ...
     4  +2 2014 jul 31php xml validateIt just loads the XML into DOMDocument and checks for errors. ... entry was posted in Code and tagged DOMDocument, php , validate , XML .
     5  +33 2014 sep 25array duplicateFind duplicates in an array with PHP | Magp.ieHere is a function to find duplicate items in an array .
     6  ~ 2014 aug 15php xml over httpPost XML with HTTPS Authentication using PHP and cURL | Magp.ieRecently I needed to post XML to a particular API and this API required HTTPS authentication. So I needed to send a username / password with ...
     6  ~ 2014 aug 05html tidy for wordpressAs I work with Automattic, the keepers of WordPress .com, I get the ... This is easy to install, and all you have to do to tidy your HTML , PHP, ...
     6  +1 2014 jul 27send xml http phpSo I needed to send a username / password with the request. ... switch($ returnCode){ case 200: break; default: $result = ' HTTP ERROR -> ' . ... entry was posted in Code and tagged cURL, HTTPS Authentication, php , XML .
     6  +6 2014 jul 18php sleep functionPhp Sleep function in javascript | Magp.ieHere is a tidy javascript function that I found on stack overflow to mimic PHP's usleep function which has been useful when testing javascript.
     7  +1 2014 oct 03duplicate value in array
     7  +43 2014 aug 16xml to post
     7  -2 2014 jul 20gmail bulk forwardHow to Auto- Forward Gmail Messages in Bulk | Magp.ieUnfortunately, Gmail will not allow you to forward old email via a filter. I found a way that you can transfer all email from one Gmail account to ...
     9  -2 2014 sep 01php curl post xml
     9  +1 2014 aug 10php post xmlRecently I needed to post XML to a particular API and this API required ... But it was a bit difficult to find a similar way of doing this in PHP … but ...
     9  +11 2014 aug 08posting xml data phpRecently I needed to post XML to a particular API and this API required ... This uses cURL which is just a library to send and receive data from ...
     10  +5 2014 oct 02php search in arraySearch Associative Array with Wildcard in PHP | Magp.ieHere are a pair of functions that will allow you to search an associative array for either a key or a value, using a string with a wildcard (*). Kudo's ...
     10  +13 2014 aug 18transfer email to gmailTransfer email from one Gmail account to another | Magp.ieI had a case where I wanted to move a bunch of email with a particular label to another Gmail account. I couldn't find a tool in Gmail to migrate ...
     10  +11 2014 aug 02string to xml phpSimple function to check if XML is valid. It just loads the XML into DOMDocument and checks for errors. /** * Takes XML string and returns a ...
     11  +1 2014 sep 27external interface consoleJavaScript, ExternalInterface , Flash and Local Shared Objects This is pretty straightforward thanks to Flash's ExternalInterface class. This class allows ... ExternalInterface .call( ' console .log' , 'Flash error: ' +e.
     11  -7 2014 sep 12svn revert to revisionRevert or rollback a SVN revision | Magp.ieIf you have ever deployed code from a SVN repository with a bug in it and you need to revert to a working revision then you may find the ...
     11  ~ 2014 sep 02coda validate phpIf you are using Coda , there is an excellent plugin called Coda PHP .... I plan to use John Godley's CodeSniffer code, to validate the code and ...
     11  +17 2014 jul 21jquery auto rangeAuto highlight text inside pre tags using jQuery | Magp.ieSo I had a look for a jQuery hack to auto select all the text inside the pre ... function() { var refNode = $( this )[0]; if ( $.browser.msie ) { var range  ...
     11  +45 2014 jul 21sleep in php
     12  -1 2014 sep 24php remove symbolsRemove non-UTF8 characters from string with PHP | Magp.ieRemove non-UTF8 characters from string with PHP .... After a couple of hours in testing i'm got solution: <? php // Remove all none utf-8 symbols
     12  +12 2014 sep 22utf8 invalid charactersRemove non- UTF8 characters from string with PHP | Magp.ieIf you have come across the cursed ' Invalid Character ' error while using PHP's XML or JSON parser then you may be interested in this.
     12  -8 2014 sep 12svn rollback
     12  +3 2014 aug 05transfer mail to gmail
     12  +10 2014 aug 04php fix encodingThen I found this excellent explanation of using UTF8 with PHP , which is well worth a read. Encoding gives me a headache but from this ...
     12  -5 2014 aug 03send xml php
     12  +2 2014 jul 31format php codeThis is easy to install, and all you have to do to tidy your HTML, PHP , Javascript and CSS is right click on your code and select the plugin's Tidy ...
     14  +18 2014 sep 29wordpress debug phpHow to debug your WordPress plugin | Magp.ieIf you are developing a plugin on WordPress , you will need to debug your code as you go. To enable debugging , go to your wp-config. php file.
     14  +9 2014 sep 18find duplicates mysqlQuick way to find duplicate entries in MySQL table | Magp.ieI recently needed a script that could find duplicate entries in a particular table so I wrote the following bash script... The script does the following.
     14  ~ 2014 sep 17char phpGet last character in a string using PHP | Magp.ieSimilar to how you get the last character in a string using Javascript, you just slice off the last N characters.
     14  +2 2014 sep 14reverse marge svnIf you have ever deployed code from a SVN repository with a bug in it and ... svn merge --dry-run -r 4057:4056 some_root_dir/update-data.php.
     14  +5 2014 sep 09search array php
     14  +2 2014 sep 08javascript last ieJavaScript Tricks; URLEncode, Foreach and Remove last ... - Magp. ieI have come across some neat (if not mind blowing) tricks with JavaScript recently . Firstly, I needed JavaScript code that copied PHP's ...
     14  +6 2014 aug 30php string to xml
     14  +26 2014 aug 23php monitoring logsDebugging PHP by monitoring errors in terminal | Magp.iea temporary error log file that stores PHP errors on the server. . Update: ... true )) with this command, you can monitor the call stack in real time.
     14  +14 2014 aug 13bulk move email accountsI had a case where I wanted to move a bunch of email with a particular label to another Gmail account . I couldn't find a tool in Gmail to migrate  ...
     14  +87 2014 jul 29regular expression domain nameRegular Expressions Cheat Sheet & Practical Uses | Magp.ieRegular Expressions Cheat Sheet Also, this serves as a useful reminder when returning to regular ... Verify if a string is a valid domain name .
     15  +5 2014 aug 15javascript remove characterJavaScript Tricks; URLEncode, Foreach and Remove last character
     16  +29 2014 sep 27php formatThe best thing about this, it meets WordPress PHP formatting standards with only a couple of exceptions. To fix them, you need to locate the ...
     16  +3 2014 sep 26urlencode javascriptJavaScript Tricks; URLEncode , Foreach and Remove last character Firstly, I needed JavaScript code that copied PHP's urlencode (). This function returns an encoded string where all non-alphanumeric characters ...
     16  +13 2014 sep 21mysql find duplicates
     16  +1 2014 sep 21javascript sleepHere is a tidy javascript function that I found on stack overflow to mimic PHP's usleep function which has been useful when testing javascript .
     16  +15 2014 aug 24php check valid urlSimple function to check if XML is valid . It just loads the XML into DOMDocument and checks for errors.
     16  +48 2014 aug 05format xml codeFormat XML with TextWrangler | Magp.ieNow anytime you want to format an XML file, just go to the Text menu and ... UPDATED:: Added a post to format PHP code in TextWrangler.
     17  +7 2014 oct 03mysql find duplicate
     17  -2 2014 oct 01sleep in javascript
     17  -7 2014 sep 16svn reverse merge
     17  +5 2014 sep 08search in array php
     17  +2 2014 aug 10domain name reg expression
     18  +24 2014 sep 19screen rHow to access attached screen after connection dropped | Magp.iescreen - r '1234.somescreensession' There is a screen on: 1234. somescreensession (Attached) There is no screen to be resumed matching ...
     18  -3 2014 aug 05csv to array phpConvert CSV data into an associative array | Magp.ieConvert a comma separated file into an associated array . ... This entry was posted in Code and tagged array , CSV , format, github, parse, php .
     18  +6 2014 jul 31php source formatterThe best thing about this, it meets WordPress PHP formatting standards with only a couple of ..... Unix\ Support/phptidy. php source orig > output
     18  +15 2014 jul 27php array search
     18  +4 2014 jul 23if element exists jqueryHow to check if an element exists in jQuery | Magp.ieBriefer again... via ists - using- jquery /
     19  +7 2014 sep 14javascript urlencode
     19  +20 2014 aug 18javascript menu floatingCreate a smart, cross browser floating menu using Javascript | Magp.ieI recently wrote a Javascript library to show a floating menu that works cross browser and displays the menu based on a set of co-ordinates that ...
     19  +36 2014 aug 10jquery element lengthHow to check if an element exists in jQuery . if ( $("#mydiv"). length ){ // do something here }. Briefer again… if ( $("#mydiv")[0] ){ // do something ...
     20  +19 2014 aug 26php check url valid
     20  +28 2014 aug 09gmail new accountI had a case where I wanted to move a bunch of email with a particular label to another Gmail account . I couldn't find a tool in Gmail to migrate ...
     20  +81 2014 jul 30css files vergleichenTextwrangler Tips – Compare files , keyboard shortcuts | Magp.ieA few quick TextWrangler tips. I never knew until recently that you can compare files in TextWrangler... and its easy. Simply highlight the 2 files  ...
     22  +48 2014 sep 11screenr wordpress plugin... is still attached... ~$ screen -r '1234.somescreensession' There… ... How to debug your WordPress plugin In "Code". Posted on February 29, ...
     22  +8 2014 aug 27php code format
     22  +34 2014 aug 11new account gmail
     22  +4 2014 aug 10php post request sendenSo I needed to send a username / password with the request . This was pretty straightforward in C#.NET ( at least from my foggy memory ).
     22  +40 2014 jul 24new account in gmail
     23  -6 2014 sep 23svn merge reverse
     24  +16 2014 aug 19cross browser floatI recently wrote a Javascript library to show a floating menu that works cross browser and displays the menu based on a set of co-ordinates that ...
     25  +57 2014 sep 13php utf8 encodeIf you have come across the cursed 'Invalid Character' error while using PHP's XML or JSON parser then you may be interested in this.
     25  +51 2014 aug 12wordpress php codeWhen you are reading through code that you haven't written, it helps if it follows ... The best thing about this, it meets WordPress PHP formatting ...
     26  +5 2014 sep 21javascript url encode
     26  +34 2014 aug 26thunderbird mass setup... Mac Mail or Thunderbird – guide to set up IMAP on Gmail and your email client ... How to Auto-Forward Gmail Messages in Bulk In "Guides".
     26  +25 2014 aug 23coda wordpress themeAs I work with Automattic, the keepers of WordPress .com, I get the opportunity to work on the ... If you are using Coda , there is an excellent plugin called Coda PHP & Web Toolkit written by Mario Fischer. ..... The tonal Theme .
     27  +16 2014 sep 11tidy indent tabsBasically, it looked a mess and there was no way to tidy the file up so that I could ..... -If you prefer to indent with spaces instead of tabs , replace ...
     27  +29 2014 aug 20url encode javascript
     27  +20 2014 aug 17new gmail acctI couldn't find a tool in Gmail to migrate email from one account to ... option and select your new forwarding address – mybusiness@ gmail .com ...
     27  +45 2014 aug 09php split csvNote: The code uses the first row of your CSV data to determine the keys ... posted in Code and tagged array, CSV , format, github, parse , php .
     28  -1 2014 oct 02in string php
     28  +17 2014 sep 19theme wp coda zipAs I work with Automattic, the keepers of WordPress .com, I get the opportunity to work
     28  ~ 2014 aug 28matching braces pear... that are sensible without being pedantic and are similar to the PEAR standard. ... Adds one space after a start round bracket and before an end round .... the block structure & making you search for the matching braces .
     28  +19 2014 aug 25site valide php
     29  +12 2014 sep 20tidy indent with tabs
     29  +44 2014 jul 31flash local storageJavascript library to manage Flash Local Stored Objects | Magp.ieIn an earlier post, I explained how to use Javascript to talk to a Flash file to create and read Local stored objects, a.k.a. Flash cookies. The only ...
     30  -17 2014 oct 02file in php
     30  +24 2014 sep 26javascript foreach for associative arrayAnother tiny trick that I liked is a JavaScript foreach loop. I use this ... This is particularly handy with associative arrays like above. Final ickle ...
     30  +71 2014 aug 12gmail outgoing serverMac mail not sending Gmail email | Magp.ieIt appears the Mac mail client could not connect to the outgoing Gmail SMTP server , smtp. gmail .com , then after a few hours the connection ...
     30  +14 2014 jul 29preg match urlpreg_match (), The preg_match () function searches string for pattern, returning true if ... i', $ url )) { echo "Your url is ok."; } else { echo "Wrong url .
     31  -11 2014 sep 26js sleep
     31  ~ 2014 aug 23bulk gmail accountHow to Auto-Forward Gmail Messages in Bulk | Magp.ie
     31  +40 2014 aug 15php replace special charactersUnfortunately, PHP's XML and JSON parsers do not ignore non-UTF8 characters , but rather they stop and throw a rather unhelpful error. I found ...
     31  +33 2014 aug 13php parse csvExample : * * @param string $filename Path to the CSV file * @param ... was posted in Code and tagged array, CSV , format, github, parse , php .
    1 2 of 5 pages