I was at the Enterprise Ireland ‘The Business Value of Open Source Software’ event yesterday. The speakers included: Simon Phipps (Open Source Initiative) Tim Willoughby and Tom Mackey (Limerick City Council) Ronan Kirby (Red Hat) David Coallier (Open Source Programmer) Mark Shuttleworth (Canonical/Ubuntu) Simon Phipps provided the overview of software freedom(gratis vs libre) including the… Read more »
Posts By: jonny
Text mangling with Grep, Sed and Awk
Just an example for future reference of text mangling on unix/linux making use of sed, awk, and grep on a CSV/text file containing names, email addresses etc delimited with a semi-colon ; cat emailaddresses.csv | grep “@” | awk -F “;” ‘{print $1}’ | sort | uniq | tr [:upper:] [:lower:] | sed ‘s/\@mydomain\.tld\.uk/\ $… Read more »
PHP Reporting Errors
To get PHP error reporting for a file or web application use one of the following methods:1. Add the following to the PHP code in the file: error_reporting(E_ALL);ini_set(‘display_errors’, ‘1’); 2. Add the following to a .htaccess file in the same directory: php_flag display_errors onphp_value error_reporting 2039 3. Edit the server php.ini file setting: display_errors =… Read more »
Firefox Windows 7 and Linux proxy.pac
Had a problem today with Firefox on Windows 7 and Firefox on Linux. Upon reading our proxy.pac (wpad) file the if statements were not working: if(isInNet(myIpAddress(), “123.111.123.0”,”255.255.254.0″)) According to this post on Mozilla the problem is due to how FF/Win7 reports the ipv6 address, rather than the ipv4 version. So the solution was to add… Read more »
Justniffer Monitoring Network Traffic
Just read about Justniffer on UbuntuGeek and decided to give it a whirl. Downloaded deb installer from SourceForge and ran with: justniffer -i eth0 I received the following output showing a few web connections and a telnet session to a mail server. 192.168.1.100 – – [27/Oct/2010:21:33:52 +0100] “GET /wikipedia/en/b/bc/Meta-logo-35px.png HTTP/1.1” 200 1611 “http://en.wikipedia.org/wiki/Main_Page” “Mozilla/5.0 (X11; U; Linux… Read more »
TinyMCE for Sending Email
I had an issue today with TinyMCE WYSIWYG editor which uses proper XHTML and CSS for aligning elements. This is all good for CMS style usage but my usage was for sending HTML emails and on some email clients the alignment in CSS is ignored. I really needed the images to be aligned with align=”right”…. Read more »
Images Working in IE but not Firefox
I had an issue today while working on Peter Fitzpatrick Estate Agents website. I had an image to add to the side bar to focus visitors attention on a new service. Mistakenly I had named that image with the word ‘ad’ in it. It loaded OK in Internet Explorer but Firefox refused to load it…. Read more »
Ashtree Show Jumps Newry Ireland
Ashtree construct and supply quality affordable show jumps for beginner to advanced levels. Our speciality is mobile easy-to-move cross-country fences built on a one-fits-all removable axle system. We supply jumps at complete height range with delivery nationwide. If you’re after something out of the ordinary talk to us about your requirements for a custom-build.
Some vi Tips
A few tricks using vi for increased? productivity: Global Search and Replace :% s#changefrom#changeto#g Delete from the cursor to the end of the line: D Replace from here to the end of line: C Delete All Remaining Lines in a File, (from here to the end of the file delete) :.,$d Return to the Command-Line… Read more »
Exporting Active Directory Data
I had a need to export particular data of users from a specific group in Active Directory. Windows has two tools for this: cvsde and ldifde – the de stands for Directory Exchange.So the following gives an example of exporting to CSV data of users from a group. I just ran this from a Windows… Read more »