FAQ: MongoDB

  1. Tools


Posted in Technologies | Comments Off on FAQ: MongoDB

Responsive Web Design

Responsive web design (often abbreviated to RWD) is an approach to web design in which a site is crafted to provide an optimal viewing experience—easy reading and navigation with a minimum of resizing, panning, and scrolling—across a wide range of devices (from desktop computer monitors to mobile phones).

5 APIs that will transform the Web in 2013
Changing Times For Web Developers – 6 Tips You Should Read To Survive


  1. Bootstrap
  2. YUI and responsive grids:
    http://www.youtube.com/watch?v=KpyBAQt7hUs, scroll to 43:10
    (although the first talk is very good – if you are familiar with jQuery UI, you will see that YUI one step ahead actually).
Posted in Technologies | Leave a comment

How to Mount a Remote Folder using SSH on Ubuntu

Connecting to a server across the internet is much more secure using SSH. There is a way that you can mount a folder on a remove server using the SSHFS service.

There are quite a few steps that you’ll have to follow, so get ready and open a terminal window.

First we’ll install the module:

sudo apt-get install sshfs

Now we will use the modprobe command to load it

sudo modprobe fuse

We’ll need to set up some permissions in order to access the utilities. Replace <username> with your username.

sudo adduser <username> fuse
sudo chown root:fuse /dev/fuse
sudo chmod +x /dev/fusermount

Since we’ve added ourselves to a user group, we need to logout and back in at this point before we continue.

Now we’ll create a directory to mount the remote folder in. I chose to create it in my home directory and call it remoteserv.

mkdir ~/remoteserv

Now we have the command to actually mount it. You’ll be prompted to save the server key and for your remote password.

sshfs <username>@<ipaddress>:/remotepath ~/remoteserv

Now you should be able to cd into the directory and start using it as if it was local.

cd ~/remoteserv
root@ubuntu:~/remoteserv$ ls -l

To unmount sshfs enter this command

fusermount -u ~/remoteserv
Posted in Debian&Ubuntu | Comments Off on How to Mount a Remote Folder using SSH on Ubuntu

How to start/stop IIS services from command prompt?

Open command prompt from start option

1) To start world wide web services c:\>net start w3svc
2) To start the ftp service c:\>net start msftpsvc
3) To start the smtp service c:\>net start smtpsvc
4) To start the plesk control panel service c:\>net start PleskControlPanel
5) To start the HTTP SSL service c:\>net Start HTTPFilter
6) To restart IIS services c:\>iisreset /restart
7) To check the status of the IIS services c:\>iisreset /status

To stop the services use stop instead of start in the above 5 commands .

Posted in Technologies | Leave a comment

How to install imagemagick on Ubuntu 10.04?

The solution is to go get the latest ImageMagick version and build it yourself;

> wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
> tar -xzvf ImageMagick.tar.gz
> ./configure --prefix=/usr/local --with-x=no --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
> make
> sudo make install
> sudo /sbin/ldconfig /usr/local
> sudo ln -f /usr/local/bin/Magick-config /usr/bin/Magick-config
> sudo PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ gem install rmagick


Building native extensions.  This could take a while...
Successfully installed rmagick-2.13.1
1 gem installed
Posted in Technologies | Comments Off on How to install imagemagick on Ubuntu 10.04?

For anyone who wants to upgrade Ubuntu 10.04 LTS to PHP 5.3.10

sudo apt-get remove –purge php*
sudo apt-get autoremove
sudo apt-add-repository ppa:brianmercer/php5
sudo apt-get update
sudo apt-get install php5 libapache2-mod-php5 php5-cli php5-cgi php5-mysql php5-gd
sudo service apache2 restart
sudo apt-get install php-pear
sudo pecl uninstall apc
sudo pecl install apc

Posted in Debian&Ubuntu | Comments Off on For anyone who wants to upgrade Ubuntu 10.04 LTS to PHP 5.3.10

How can I quickly find listening/open ports on my computer?

You can use the NETSTAT command to quickly see all the used and listening ports on your computer. Note it is not a complete substitute for a port scanning tool. If you’d like to have your computer remotely scanned for open ports use our Security Scan instead.

To see a list of listening ports, open Command Prompt and type:

C:\> netstat -an |find /i “listening”

You can change “listening” to “established” to see what ports your computer actually communicates with.

In Windos XP and Win2k3 Server you can use the -O switch with the NETSTAT command to also get a list of all the owning process ID associated with each connection:

C:\> netstat -ao |find /i “listening”

To see all open, closing, established and listening ports, simply use:

C:\> netstat -a (or netstat -ao in XP/Win2k3)

You can also make the netstat command refresh periodically by adding a number of seconds at the end, for example, to make it refresh every 5 seconds, use something like:

C:\> netstat -an 5

You can see process identifiers using the following command at the command prompt: tasklist and tasklist /svc

Posted in Technologies | Comments Off on How can I quickly find listening/open ports on my computer?

Open source Web Reports & Web Analytics

  • Web Reports

    Tried to use Reporting tool Jasper Report. http://jasperreports.sourceforge.net
    Report Manager http://reportman.sourceforge.net/
    BIRT http://www.eclipse.org/birt/phoenix/
    Talend Report http://uk.talend.com/index.php

  • Web Analytics

    DbFacePHP for MySQL

Posted in Technologies | Comments Off on Open source Web Reports & Web Analytics

Useful links

Posted in Technologies | Comments Off on Useful links

FAQ: Zend Framework

  1. ZF2 Documentation

    quick start
    Zend Code
    How to start with Zend Framework 2?
    Coding Standards
    ZF2 Guide
    ZF2 Documentation

  2. ZF2 examples

    zf2 Album tutorial
    Project example
    zendframework / ZendSkeletonApplication
    eminetto / ZendSkeletonApplication
    akrabat / FormExample
    BjyAuthorize – Adds ACL support for ZfcUser using Zend\Acl.
    CdliTwoStageSignup – Adds an e-mail address verification step to the signup process.
    CdliUserProfile – An extensible user profile system.
    CdliAutogenUsername – Allows for auto-generated usernames upon registration.
    ScnSocialAuth – Adds social network authentication to ZfcUser for sites like Google, Facebook, Twitter, Yahoo!, etc.
    EdpGithub – Adds Github authentication to ZfcUser. (ScnSocialAuth will eventually support Github and this will simply remain a Github API integration module).
    ZfcUser Wiki
    ZF-Commons ZfcUser RFC
    ZfcUser Concepts and Goals – This is a little out of date, but still useful, none-the-less.

  3. composer.json


  4. ZF2 + RESTful API


  5. Configuration in Zend Framework 2

    my-module.global.php overrides values from module.config.php and my-module.local.php overrides values from my-module.global.php
    config/application.config.php – mostly you will add modules there
    module/MyModule/config/module.config.php – put your module-specific configuration there, but make sure not to put any environment specific values (like concrete hostname) there, use default values
    config/autoload/my-module.global.php – override the default values from you module with ones specific for your environment
    config/autoload/my-module.local.php – may contain confidential values not to be submitted to the module such as authentication credentials

  6. Scaffolding CRUD in Zend Framework

    Guthub Project: https://github.com/lex0r/zendscaffolding
    Zend CRUD Data Mapper Example
    Zend Framework Scaffolding Administration Panel
    Zend_CodeGenerator Examples
    Zend Framework Wiki!
    Zendcasts  – is a weekly podcast in screencast format covering different parts of the Zend Framework
    Survive The Deep End!
    ZF Project Manager


    CRUD generation using Doctrine

  7. Using the CLI Tool
  8. Projects & Applications using ZF

    Digitalus CMS
    Tomato CMS
    DASPRiD – Ben Scholzen released the source-code for his blog as part of a series on modern app architecture. Well worth study as examples of dependency injection, service architecture, models/mappers, even using Phing for build.
    TweetGT – Twitter message sender. http://github.com/akrabat/TweetGT
    ZF components – like Zend_Application, Zend_Tag_Cloud
    Content management framework
    Dodo – an open-source todo list by Greg Wessels. A great example of module-based app using layout-switching via plugin and an API module
    Zend based applications – http://www.dotkernel.com/
    !ZFDebug  – It provides useful debug information displayed in a small bar at the bottom of every page. google,  github
    Enygma’s Ext-JS with ZF example app – This is a set of examples showing you how to do various things with the powerful combination of Zend Framework (PHP) and ExtJS
    !Open source eCommerce – Open source eCommerce
    !A short list of Projects created with Zend Framework and ( or ) Doctrine
    Tiki CMS

Posted in Zend Framework | Comments Off on FAQ: Zend Framework