by Mr Me
on January 9, 2012
in php
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 [...]
by Mr Me
on January 5, 2012
in php, php source code, webworld
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 [...]
by Mr Me
on December 14, 2011
in Downloads, Flash, general, html, php, php source code, webworld
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 [...]
by Mr Me
on October 8, 2011
in php
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 [...]
by Mr Me
on July 8, 2011
in php
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 [...]
by Mr Me
on July 5, 2011
in php
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
by Mr Me
on May 22, 2011
in general, php
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 [...]
by Mr Me
on April 29, 2011
in php
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
by Mr Me
on April 22, 2011
in general, php
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 [...]
by Mr Me
on April 5, 2011
in php
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/
by Mr Me
on January 6, 2011
in php
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 [...]
by Mr Me
on October 19, 2010
in php
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 [...]
by Mr Me
on October 6, 2010
in php
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
by Mr Me
on September 8, 2010
in php
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, [...]
by Mr Me
on July 8, 2010
in php
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 [...]
$_session, asp, cloud, empty, error, php, refresh, saving, server, session, session not saving, session_save_path, session_start
by Mr Me
on June 11, 2010
in php, php source code, webworld
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 [...]
by Mr Me
on June 6, 2010
in general, 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 [...]
by Mr Me
on May 22, 2010
in php
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
by Mr Me
on May 14, 2010
in php
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” [...]
by Mr Me
on May 12, 2010
in php, php source code
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′); [...]
algorithm, date, download, from date, last 7 days, last month, last quarter, last week, php, php code, range, source code, this month, this quarter, this week, this year, to date, today, yesterday
by Mr Me
on May 11, 2010
in php
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 [...]
by Mr Me
on May 10, 2010
in php
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
by Mr Me
on May 8, 2010
in php
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 [...]
by Mr Me
on May 6, 2010
in 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’); [...]
admin, auth, authentication, control panel, http, http protocol, login, password, php header, prompt, restrict, username
by Mr Me
on May 6, 2010
in php
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 [...]
by Mr Me
on May 1, 2010
in php
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 [...]
bot, crawl, custom search, google, google like crawl, indexing, location search, php, search, search engine, search html, search static, static page, yahoo
by Mr Me
on April 30, 2010
in php
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 [...]
by Mr Me
on April 27, 2010
in php
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
by Mr Me
on April 26, 2010
in php
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 [...]
by Mr Me
on April 19, 2010
in php
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: [...]