Tareq Alam

i have promises to keep and miles to go before i sleep – Robert Frost

File upload with ajax April 23, 2008

Filed under: AJAX, PHP — tareqalam @ 8:46 am
Tags: , , ,

I have suffered finding a code to easily upload file using ajax. Then I have found a Plugin which uses Jquery and PHP to upload file. I should not take the credit to make it. here is the link from where i got the code
http://www.phpletter.com/Our-Projects/AjaxFileUpload/
This is free and very easy to use. And the code is really helpful. U can customize it in your own way.

Please thank him for this code. I am really greatful to the person who made this and gave that to us totally free.

 

Google App Engine!! April 23, 2008

Filed under: python — tareqalam @ 2:28 am
Tags: , ,

google

What is it??

Google App Engine lets you run your web applications on Google’s infrastructure. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs grow. With App Engine, there are no servers to maintain: You just upload your application, and it’s ready to serve your users.

The Application Environment..

Its just too cool!!

Google App Engine makes it easy to build an application that runs reliably, even under heavy load and with large amounts of data. The environment includes the following features:

  • dynamic web serving, with full support for common web technologies
  • persistent storage with queries, sorting and transactions
  • automatic scaling and load balancing
  • APIs for authenticating users and sending email using Google Accounts
  • a fully featured local development environment that simulates Google App Engine on your computer

Google App Engine applicationsgoogle are implemented using the Python programming language. The runtime environment includes the full Python language and most of the Python standard library.

To download the sdk clickhere . Follow the installation instructions.
For getting started with this engine click here
This is a great engine for python developer. I am just learning this and I believe this is very much helpful for all developer from beginner to advanced… So long live google….

 

I am in love with Ubuntu April 22, 2008

Filed under: Ubuntu — tareqalam @ 10:06 am
Tags: , , ,

For some professional reason I had to work with Zope,Plone,Python Mysql in Ubuntu linux server. That’s why I had to install Ubuntu. In my opinion its the coolest operating system. Installation couldn’t have been simpler — you honestly don’t need to have a tech background to get this up and running; just download and burn a disc image, boot from the CD, and Ubuntu does the rest. It recognized all of my hardware automatically, which is more than Windows can claim

Ubuntu is an entirely open source operating system built around the Linux kernel.

Now let me tell you why I am in love with ubuntu…. If you have got an internet connection then you are relaxed in ubuntu. The Ubuntu project is entirely committed to the principles of free software development; people are encouraged to use free software, improve it, and pass it on.

So lets see how it works..

If you can see the menu … there you will see a menu named System. click that .

good. then go to Administration->Synaptic Package Manager. Then root password is needed. Then in the package manager there is a search button (one with the binocular icon)..

see that. nice work pal.. then click it.. then type what you need… if that package is avail able you will get it in the result.. then just click on it press right mouse button and select mark for installation.

then on the toolbar press apply… and the download and installation starts .. then you just sit back and relax..

hey isn’t it simple? What can be simpler than that ? But folks be careful of installing pacages dont install anything you dont understand or you don’t need..

After all Love Ubuntu with care… Coz everything needs care…

Wish all the people be happy with Ubuntu…

 

CakePHP April 21, 2008

Filed under: PHP, PHP Frameworks — tareqalam @ 8:21 am
Tags: , ,

CakePHP is a nice PHP framework. Its as delicious as it’s name.
Installation is too easy. Just follow the steps..

  • download cake php from here http://www.cakephp.org/
  • just unpack it to your host and point the url and do as the introductory page say

Now I want to discuss how i have intigrated Smarty in CakePHP

I know there are few drawbacks of smarty but its helpful for the people who are already master in smarty.

Intigrating Smarty with cakePHP will be like blessing for them. Because they dont need to learn the template engine of cakephp then :) . Hope you guyz find this helpful

Steps

1. Download a version of SmartyView from here:
http://cakeforge.org/snippet/detail.php?type=snippet&id=6

  1. Save SmartyView as /(app)/views/smarty.php

2. Download Smarty

http://smarty.php.net/download.php
Extract tarball so Smarty.class.php sits at /vendor/smarty/Smarty.class.php

3. Create “smarty/compile” and “smarty/cache” within your tmp dir

(/(app)/tmp/ by default) and make them writable by the apache user

4. Include in your controller

(in app_controller.php to do it app-wide) var $view = 'Smarty'; and (to enable the SmartyHtml/SmartyJavascript helpers) var $helpers = array('SmartyHtml','SmartyJavascript'); to use Smarty templates and helpers.

You now have SmartyView installed!

Notes:

  1. /views/smarty_templates is parsed for smarty plugins : http://smarty.incutio.com/?page=SmartyPlugins
  2. SmartyView will fall back to .thtml templates for views.
  3. By default Smarty views must reside in ’smarty’ subdirectories — see addendum for information regarding removing this requirement.
 

Mojavi Framework April 21, 2008

Filed under: PHP, PHP Frameworks — tareqalam @ 8:00 am
Tags: , ,

I have worked with Mojave framework for more than 1 year while i was in ECBBBD. This is a true MVC(Model View Controller) Framework.

With this framework its easy to develop any kind of site and web application. Smarty is intigrated with this framework.

The original project site can be found at http://www.mojavi.org

This site’s development is currently stopped. But you can have a brief idea there.

If you’re looking for the Mojavi 2.0 API Documentation it can now be found at http://www.tannerburson.com/docs/mojavi/api please update your bookmarks accordingly.

I have worked on many projects using this framework. Though its not that much famous framework, its simple and easy.

 

Install Eclipse,Pydev and Subeclipse April 17, 2008

Filed under: Ubuntu, ploneCMS, python — tareqalam @ 6:50 am
Tags: , , , ,

Install eclipse, Pydev and Subeclipse in ubuntu

1.apt – get  install eclipse
or
go to System->Administration->Synaptic Package Manager
I. Enter Root Password
ii. click search
iii. type eclipse
iv. select eclipse click right mouse button select mark for installation
v. click apply
vi. click next then sit back and relax
2. Install Pydev
apt -get install pydev
or
go to System->Administration->Synaptic Package Manager
i. Enter Root Password
ii. click search
iii. type pydev
iv. select pydev click right mouse button select mark for installation
v. click apply
vi. click next then sit back and relax
3. Install Subeclipse
start eclipse
Install Subclipse:
Again navigate the menus to: “Help” – “Software Updates” – “Find and Install…”.
Select “Search for new features to install” and click “Next >”.
On the “Install” page click the button “New Remote Site”.
For “Name:” enter “Subclipse”. For “URL:” enter “http://subclipse.tigris.org/update_1.0.x”
Ensure that only “Subclipse” is included (checked) in the “Sites to include in search” and click the “Finish” button.
In the “Updates” window select “Subclipse” by checking the box next to it and click the “Next >” button.
Read the License Agreement, accept the terms, and click the “Next >” button.
The downloads should be installed into the .eclipse folder in your home directory by default. If this is acceptable click the “Finish” button.
Wait for the downloads to complete.
Once the downloads are complete click the “Install” button on the “Verification” screen.
When it is recommended that Eclipse be restarted click “Yes”.