How to fully remove/uninstall Zend server from OSX/Mac

To fully remove the Zend server from osX – and according to official documentation – here are the steps:
Stop all Zend Server processes
Delete all Zend Server installed files
Remove the .app from /Applications
Remove Zend users

so first – fire up the activity monitor – check out the zend processes. Make sure to check the username that runs them – usually zend and _zend
Also click on one of them and click “Sample process” – a new window will open – take note of the path – usually /usr/local/zend/

go to terminal:

sudo pkill -u <username> 

Go to /Applications – delete the zend folder.

Go to preferences – Users and Groups – delete any related zend users.
or
Go to Terminal

sudo dscl . delete /users/<username> 
rm -r /users/<username> 

– will delete the home folder

and now the last part removing the zend folders you found from the first step of sampling.
in terminal
cd /usr/local
sudo rm -f -R zend

and you should be done – restart – check out the processes – they should be clean of zendish things.
Let me know if I missed anything… i want to wipe it off as well ;p

Read More

Security tip: Batch cleaning/deleting EXIF data and geolocation from images

As webdev – to optimise images a common practice is to run them through jpegtran and pngcrunch – lossless image compression tools. This removes the EXIF data and geolocation and compresses the images without affecting the quality.

Today I ran into ImageOptim – a tool on OSX that supposedly removes the EXIF data and geolocation from images – but with an graphical user interface.

All you have to do is drag the image – it will crunch it – and the same image is replace with a new one – which looks exactly the same – minus the the EXIF data and geolocation. It is also a tad bit more compressed.

Here is a before/after of the same thing

As you can see – the what phone I used, color and additional info were removed (this one doesn’t have geo location, but if it was there,it would be gone too)

Read More

How to fully embed the google data explorer sidebar/controls in your website/page

Google explorer is super neat – and you get to embed whatever you see on its fancy graph.

If you click the Embed button and copy/pase the code – usually the result is like this

Code

 <iframe width="400" height="325" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" src="http://www.google.com/publicdata/embed?ds=d5bncppjof8f9_&amp;ctype=b&amp;strail=false&amp;bcs=d&amp;nselm=s&amp;met_x=sp_dyn_le00_in&amp;scale_x=lin&amp;ind_x=false&amp;met_y=sp_dyn_tfrt_in&amp;scale_y=lin&amp;ind_y=false&amp;met_s=sp_pop_totl&amp;scale_s=lin&amp;ind_s=false&amp;dimp_c=country:region&amp;ifdim=country&amp;hl=en_US&amp;dl=en_US&amp;ind=false&amp;icfg&amp;iconSize=0.5"></iframe> 

Result

But if you wanna embed google data explorer in your page and blog with the sidebar and controls here is one nasty little trick that you may not stumble upon easily (unless u are a dev)

in the above code – change the word “embed” in the iframe tag after src=”http://www.google.com/publicdata/embed?ds=d5bncppjof8f9
to
src=”http://www.google.com/publicdata/explore/fullembed?ds=d5bncppjof8f

here is the result where you can click and fiddle with the sidebar and results.

One small code edit – a whole lot of data for your readers to explore!

Read More

Example code : Realtime google chart with mysql / json / Ajax


Here is a litte code to help you in case you were looking how to use google charts to read from a mysql database and display the data in realtime (without refreshing page).
The google chart API documentation doesn’t provide direct documentation – so hope this is handy.

You need 2 files – index.php where the chart is displayed and a get_json.php that fetches the data.

You can download here (don’t you love big download links?) or copy paste the code below

Read More

FrontlineSMS 2.2.1 web connection API Documentation

If you are looking through frontlineSMS software – you are less likely to find this in the interface.
This file was lurking under /Applications/frontlinesms2.app/Contents/java/app/web-app/help/core/activities

If you are a developer and using frontline – I thought this might be worth putting out there.

# The FrontlineSMS Web Connection API

FrontlineSMS lets you set up Web Connections to external web services. The primary function of Web Connections is to trigger HTTP requests on the external service when messages are received. However, in addition to this, you can enable the FrontlineSMS API through a Web Connection Activity, which allows your external web service to trigger outgoing messages through FrontlineSMS.

## Enabling the API

In the Web Connection walkthrough, you will be given the option to enable the FrontlineSMS API for that Activity. The only required configuration is the API Key that the remote service will need to use in each request. See [Creating a Web Connection][] for details on setting up a Web Connection.

Read More

How to fully uninstall Frontlinesms 2.2.x on OSX

If you happened to have an old install of frontlinesms – and you want to un-install – removing the folder in /applications alone won’t do. (if you re-install again, you will see all “your stuff” again)

So to fully un-install (on osx) :

- shutdown frontlinesms

- command + space – type terminal (launch the little “black application”)

- type in : cd /users/replace-this-with-your-username

(to find out your user, on the command line, simply type in: whoami)

- type in : rm -f -r .frontlinesms2

- in Finder – go to /Application – delete the frontlinesms folder

Voila.

Now you are ready for a second fresh install

Read More

Guide to securing a Facebook fan page

It is a little kinda obvious on how to secure facebook fan pages – but sometimes businesses who invested time and money in building their social media presence feel the need to have a document or a guide on how to keep their Facebook fan page secure and an emergency plan to refer to if shit hit the fan.

So here is a little something i put together – hope it can be of some help -keep in mind that security settings and FB settings in general change every once in a while.

click for full view

original link

Read More

Delete really long paths and nested directories in windows using a Robocopy one line script


So, if you ever ran into a really long nested folder structure with really long names – cleaning up those files might be ugly since it gives you the “file too long to be deleted” error in Windows.

There are some workarounds with the SFN : short file names – installing 3rd party tools or creating a batch file to recursively rename/shorten/delete folders and files.

Read More

Scraping data off arabnet startup database for a better understanding of the MENA startup scene

Since I am an arabnet official blogger and all – I was checking out something interesting to blog about and I ran into the startup database http://startupdb.arabnet.me and i thought it would be interesting to actually get some statistics about the start up scene and why not visualize it too.

It is really important data for business decisions and no one can fail to see its value.

This is why I scrapped it off the arabnet website using excel – no, i did not hack into their database and steal it – i scrapped it off – here is a wikipedia link to explain data scrapping and here is how you do it.

Read More