Install Asterisk in Mac (including Lion)

Mac port packages are available for Asterisk in mac As a first step, do a port update to get all new packages: port selfupdate Step 2: sudo port install asterisk [This is a long process, it will start installing many dependancy packages] Possible errors you can see: 1) Image error: /opt/local/bin/a2p is being used by [...]

0 Comments

Pass parameter to an iframe embedded Fan Page in Facebook

Those who use their on hosting inside an iframe  for Facebook Fan page, there is a mechanism to pass additional parameters to your iframe page if you need to create a deep URL. A normal Fan page of Facebook would like this: https://www.facebook.com/apps/application.php?id=xxxxxxxxxx&sk=app_XXXXXX This Url will call your domain, say example.com inside the iframe to [...]

0 Comments

jRecorder 1.1 with Preview option is released

Two months ago, I published a jQuery plugin to record audio from browser (without any Media server) called jRecorder I got many responses and requests to maintain the code with new enhancements and some bug fixes. Based on that, a new version (1.1) is released which has the capability to preview the recorded audio before [...]

3 Comments

Adobe Air 3 Beta for Flash Builder

Adobe released Air 3 this month. The new Flash Builder is coming with Adobe Air 3. Those who already installed Flash Builder can upgrade the Air SDK to 3. This video will help you in this case. Thanks CrosByMichaela for sharing this. Air 3 has many support for mobile development. For example, it has now [...]

0 Comments

Audio recording using Flash

Audio recording using Flash ====================== To Record voice from web we need the following thing: 1) A flash media server (eg: Adobe Media Server [paid] or Red 5 [free]) 2) Java6 3) Webserver (eg, Apache, PHP) 4) A flash client app to record voice The one I used ========= We used Red 5 Server, because [...]

5 Comments , , , ,

Find and Remove a particular folder or file in Mac/Linux

Open a Terminal, and browser to the folder we want to start recursive deletion and run the following command , for example to delete all folder named .svn find ./ -name “.svn” | xargs rm -Rf   Share

0 Comments , , , ,

QR Code Generator

A PHP based tool to generate QR Code for your website URL. http://qrcode-factory.com/ Now a days, the usage of QR code is higher and this is becoming one of the PR generating mechanisms. QR code is another kind of bar code called matrix bar code.  QR stands for Quick Reader (source: WikiPedia) The tool is [...]

0 Comments

Install FFMPEG in MAC

Install port first Run: sudo port -fvds selfupdate (to get the recent list) port search ffmpeg port variants ffmpeg sudo port install ffmpeg +gpl +lame +x264 +xvid Install java before these steps Share

0 Comments , , , ,

New URL Shortener

I recently started a new URL shortener service. If you’re bored with old short-url services, you can start using this http://zip.ms Here you can set your-own custom alias, than some random string. I used Phurl library to create this website. I have no spam guard added in the site, please be a real human, I [...]

3 Comments , , ,

Check Public IP in Unix (Linux)

Use the below code to check your public IP from your linux console. wget -q -O – checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/

1 Comments , , , , ,

getId3 – PHP library for audio contents

I recently use getId3 library to manipulate audio files from PHP. It is very accurate than FFMPEG. For example, FFMPEG is not helpful for audio files having VBR (Various Bit Rate). It returns error max_analyze_duration reached OR “Estimating duration from bitrate, this may be inaccurate” But by using getId3, we can retrieve detailed information about [...]

0 Comments , , , , , , , ,

Rsync, not FTP

FTP is good for smaller projects. But when you work on big projects, with a team, it is hard to manage your deployment with FTP alone. You need to sort items by date and need to upload one by one. So, use rsync from command line, which does the synchronisation and it is much faster [...]

0 Comments

Meebo Social Toolbar

I was waiting for a good social toolbar for my blog and finally I was recommended  one, it is Meebo Social Toolbar. The video here I attached is from meebo website. Share

1 Comments

Symfony 1.4 + Codeigniter = Symfony 2

Recently I tried Symfony 2 Sandbox for one of my projects. I realised this fact that Symfony 2 is so powerful because they restructured the Symfony 1.4 architecture and made a system like Codeigniter Framework. I wrote a post some months back about Codeigniter vs Symfony here. I need to re-edit that post now, because, [...]

8 Comments , , , , , , , , ,

PHP Session problem with cloud server

There is a very strange issue with PHP session when you prefer session to save in files other than database (normal session). The problem is: some times you can access all the saved session values from $_SESSION and sometimes it returns a empty array. If you refresh 10 times, perhaps 4 times you will get [...]

1 Comments , , , , , , , , , , , ,

VARDUMP.IT – PHP remote debugging console

In PHP coding, we spend most of the time for debugging. Either we use echo, print_r or var_dump to check variable values or check whether a particular function is executing or not. These all things are outputting something to browser. This is not applicable in case of redirection, or image processing (GD) or sometimes with [...]

1 Comments , , , , ,

Multi-language support with PHP

If you aim to create a multi-language  website using PHP + Mysql , remember the following tips. You can use mysql database for this purpose rather than using separate language files as usual content management system does. You can create a table with following structure for this purpose.Table: muli-lang string_id: page_id: en: arb: fr: Here [...]

6 Comments , , , , , , , , ,

Management Lessons – Funny but interesting

A very interesting presentation I got from  one of my friend last week. I found somebody uploaded that in slideshare. It is here. Remember, you can forward this ppt to your friends. Only friends ! Don’t forward to your company members or to your boss !  :) Share

0 Comments

IE6 Transparent PNG problem

We all have faced this problem during HTML development. Internet Explorer 6 renders transparent PNG images in different way.  It puts some other color , it damages the design. One solution is create gif images for IE6 and mention those in separate style sheet file for IE6 <!–[if IE 6]> <link rel=”stylesheet” href=”css/style-ie6.css” type=”text/css” media=”screen” [...]

1 Comments

Algorithm for range of dates

Here is a php function which returns from and to date as an array for a range: <?php function get_rangeof_dates($time_frame = ‘all_time’) { $from_date = ”; $to_date = ”; switch($time_frame) { case ‘all_time’:        $from_date = ’1170-01-01 00:00:00′; $to_date = ’2250-12-31 23:59:59′; break; case ‘today’: $from_date = date(‘Y-m-d 00:00:00′); $to_date = date(‘Y-m-d 23:59:59′); [...]

0 Comments , , , , , , , , , , , , , , , , , ,

MxCheck PHP library

This library can be used to check whether an email address is valid or not before sending any email. This is not a syntax validation. It communicates with mail server and check whether the account is really existing or not. The steps involved in this library are: Check syntax of email ( if it is [...]

1 Comments

HTML5 – Demos

1) Amazing game developed with html5 (without any flash) http://www.kevs3d.co.uk/dev/asteroids/ 2) 12 Examples http://htmlfive.appspot.com/ 3) HTML5 Demos http://html5demos.com/ 4) HTML5 Image uploader http://demos.hacks.mozilla.org/openweb/imageUploader/ 5) A list of html5 bookmarking http://delicious.com/khalweir/html5 6) A good HTML5 implementation http://www.nissanusa.com/leaf-electric-car/ 7) Basic video player http://htmlfive.appspot.com/static/video.html A simple game http://www.benjoffe.com/code/games/torus/ 9) A good presentation http://apirocks.com/html5/html5.html#slide1 Share

0 Comments , , , , ,

Facebook Styles from jQuery

A wide range of jQuery plugin which help us to create Facebook style designs are follows: I got this huge collection from this website. I am just rewriting that post here. 1) Facybox Website here 2) Facebox http://famspam.com/facebox 3) FCBKComplete Go to webstie 4) Facebook style registration Go to website 5) Gmail/Facebook style jQuery chat [...]

2 Comments , , , , , , ,

HTTP authentication from PHP

Do you know you can implement http authentication using php code? HTTP authentications are those you see when  you open control panel or administrative backend website, prompting for username and password in html  authentication prompt. This can be done in php using following code: <?php if (!isset($_SERVER['PHP_AUTH_USER'])) { header(‘WWW-Authenticate: Basic realm=”My Realm”‘); header(‘HTTP/1.0 401 Unauthorized’); [...]

1 Comments , , , , , , , , , , ,

Facebook application development – Quick note

This is a quick note for myself to remember some tricks while we develop a Facebook application. If you are a beginner in Facebook application development, go here first. If  you an expert in Facebook development, go here. The steps in creating a facebook app. 1) Register an application in facebook 2) Add Canvas URL [...]

0 Comments , , , , , , , ,

PHP Spider – Sphider

We can create a search page for a dynamic website using Database queries and looping over resultant record sets. But what can we do if the website main contains static html files than dynamically populated content. In this case , we usually put Google search box inside website (Google custom search) Sphider is a php [...]

1 Comments , , , , , , , , , , , , ,

Skip or Hide PHP errors / warnings

Errors are hints from compiler for the programmer to correct. But sometimes we face some unwanted or dynamic error. For example, $content = file_get_contents(http://www.twitter.com/feed/234); Here , the url is invalid, or the server of the url is down , PHP shows Warning: Failed to open stream or file access is disabled. Use @ in front [...]

1 Comments

Quick Favicon

Some days back I got a new website from my friend Lee to generate favicon for website. Here is the url : http://www.convertico.com/ Thanks Sajith Share

1 Comments , , , ,

jQtouch – amazing jQuery for iPhone

I think, i am becoming jQuery fan day by day. If you have an iPhone or iPod Touch or iPad, try this url in your browser: http://sajithmr.me/jqtouch/demos/main/ You will wonder for some minutes. Yes, it is not a application, it is a website and every action is created by our dearest jQuery using jQTouch library [...]

0 Comments , , , , , , , ,

Flexigrid

In most of the project, we need to write a lot of queries to create admin backend. Especially for report generation.  In old days I used phpTables. But recently I started using Flexigrid, a jQuery plugin for displaying tables. It is very simple to write code and all work in Ajax Here is the url: [...]

1 Comments