Monthly Archives: June 2012

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

Useful links

FAQ: Zend Framework

  1. ZF2 Documentation

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

  2. ZF2 examples

    zf2 Album tutorial
    Project example
    zendframework / ZendSkeletonApplication
    eminetto / ZendSkeletonApplication
    zendframework/ZendSkeletonModule
    https://github.com/fwahlqvist
    https://github.com/ralphschindler
    https://github.com/akrabat
    akrabat / FormExample
    https://github.com/weierophinney
    ZfcUser
    zf2-mobile-theme
    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

    Download

  4. ZF2 + RESTful API

    ZF2-Restful-Module-Skeleton
    zf2-rest
    ZendFramework2RESTful
    EnriseRestfulApi

  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

    framework.zend.com/wiki/display/ZFPROP/Zend_Controller_Scaffolding
    Guthub Project: https://github.com/lex0r/zendscaffolding
    Zend CRUD Data Mapper Example
    Zend Framework Scaffolding Administration Panel
    Zend_CodeGenerator Examples
    ZendConsole
    Thinkscape/zf2-console-sandbox/
    Thinkscape/zf2/tree/feature/console
    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
    http://zendframework.ru

    Video

    CRUD generation using Doctrine

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

    ZFPlanet-v1.10.3
    Pastebin
    Postr
    Magento
    Digitalus CMS
    Storefront
    joobsbox
    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

FAQ: Debian&Ubuntu

  1. How to install enable apache mod_rewrite on ubuntu?

    sudo a2enmod rewrite
    To get installed Apache modules: apache2ctl -t -D DUMP_MODULES

  2. Install PHP 5.4 on Ubuntu 10.04/11.10/12.04

  3. Install LAMP

    sudo apt-get install lamp-server^
    Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3)
    Install LAMP and phpMyAdmin on Ubuntu 11.10 

  4. Where is httpd.conf for setting up apache ?

    /etc/apache2/apache2.conf
    On Ubuntu the main Apache configuration file is actually apache2.conf. Apache2.conf contains the default configuration for Apache on Ubuntu. Apache2.conf includes httpd.conf for “user configurations”.
    httpd.conf is usually the main configuration file for the Apache web server. This is the case on Red Hat Enterprise Linux (RHEL), CentOS and Mac OS X

    Where is Httpd.conf’s Location on Ubuntu?
    HTTPD – Apache2 Web Server

  5. Zip a Folder in Linux

    To zip a folder:         zip -9 -r <zip file> <folder name>
    To zip a single file:   zip -9 <zip file> <filename>
    Use “-9” for best compression.