Bash scripts to start and stop Apache Tomcat

Introduction In attempting to convert my Java knowledge into a web technology, i.e. learning Java web applications I have found that starting and stopping Apache Tomcat with the commands “/Library/Tomcat/bin/startup.sh” and “/Library/Tomcat/bin/shutdown.sh” (on MacOS) a little long winded for my memory. Solution By creating two simple bash scripts I can now start and stop Apache […]


Accessing the WordPress JSON API

GitHub [gitrepo author=”f13dev” repo=”WordPress-API-PHP-class”] Introduction APIs are a great thing, especially if you want to access data hosted on another website. WordPress, like many other websites with a large public data store offer an API. Accessing data from an API via PHP can be a little daunting if you have little experience with functions such […]


Add #HashTag and @UserName Twitter links to plain text

Github [f13gist gid=”85ea6e90e79cad8dfe7c7cd699b13f41″] What does it do This short and simple PHP function takes a plain text String as it’s input and returns rich text HTML. If any #HashTags, Twitter @UserNames or URLs are included within the input string then these are converted to clickable links to their Twitter counterpart. Usage example Using the getLinksFromTwitterText […]