How to Avoid blank line in RSS???

When I made this site, I spend hours figuring out why my feed wasn’t working. There are several examples in the WordPress Support Forums telling, that feeds aren’t working because of a blank line in the beginning of the feed before the XML declaration. Some feedreaders have no problem with this, but Feedburner does. And Feedburner is very important.

Well, let’s get to it! The fix was found at Wejn.org and is very simple to use. First of all, you need to download the script file, called wejnswpwhitespacefix.php and upload it to your blog’s root (in the same folder as index.php. Then, get your index.php file. It usually looks something like this:

Read More>>

How To Create Stylesheet only for IE

Sometimes it is better to create alternate css files for different browsers (esp. IE), than using hacks. It is important in big projects, when client requires the site to be fully cross-browser. The basic technique to attach an IE-Only stylesheet is using the HEAD section conditions:

CSS FILE LOADED FOR BROWSERS OTHER THAN Internet Explorer:

<![if !IE]>
<link rel=“stylesheet” type=“text/css” href=“NOT-IE.css” />
<![endif]>


 IE 6 ONLY CSS FILE:
<!??[if IE 6]>
<link rel=”stylesheet” type=”text/css” href=”IE-6-SPECIFIC.css” />
<![endif]??>

IE 5 ONLY:

<!??[if IE 5]>

<link rel=”stylesheet” type=”text/css” href=”IE-5-SPECIFIC.css” />
<![endif]??>

IE 5.5 ONLY:

<!??[if IE 5.5000]>

<link rel=”stylesheet” type=”text/css” href=”IE-55-SPECIFIC.css” />
<![endif]??>

VERSION OF IE VERSION 6 OR LOWER: (I find this one pretty handy)

<!??[if lt IE 7]>

<link rel=“stylesheet” type=“text/css” href=“IE-6-OR-LOWER-SPECIFIC.css” />
<![endif]??>

IE 7 ONLY:

<!??[if IE 7]>
<link rel=“stylesheet” type=”text/css” href=“ie7.css” />
<![endif]??>

The biggest advantage of using this methos is that it passess W3C validation and you don’t have a mess of different hacks in your css code.

Open-source PHP applications that rules the world !!!

From managing databases to shopping, writing blogs to sending emails. Ten years of passion, great software architectures, team work and revolutionary ideas. Here are the most influential open-source PHP applications to date:

1998

phpMyAdmin

phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web. Currently it can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, manage keys on fields, manage privileges, export data into various formats and is available in 50 languages. Development is backed up by the phpMyAdmin team.

1999

SquirrelMail

SquirrelMail is a standards-based Webmail package. It includes built-in pure PHP support for the IMAP and SMTP protocols, and all pages are rendered in pure HTML 4.0 for maximum compatibility across browsers. It has very few requirements, and is very easy to configure and install. It has all the functionality you would want from an email client, including strong MIME support, address books, and folder manipulation.

PHP-Nuke

PHP-Nuke is a Web portal and online community system that includes Web-based administration, surveys, access statistics, user customizable boxes, a themes manager for registered users, friendly administration GUI with graphic topic manager, the ability to edit or delete stories, an option to delete comments, a moderation system, referer tracking, integrated banner ad system, search engine, backend/headlines generation (RSS/RDF format), Web directory like Yahoo, events manager, and support for 33 languages and 9 database servers.

2000

eZ Publish

eZ Publish is an Enterprise Content Management platform with an easy to use out of the box Web Content Management System. It is available as a free Open Source distribution and serves as the foundation for the rest of the eZ Publish Product Family. As a CMS it’s most notable feature is its revolutionary, fully customisable and extendable content model. It is also a platform for general web development, allowing you to develop professional PHP applications. Standard eZ Publish functionality: easy to create and edit content, workflow system, content versioning, multilanguage possibilities, collaboration, e-commerce functionality, revolutionary content class system, role based access control are implemented and ready for you to use. High quality software and total product responsibility from eZ systems make eZ publish the leading Open Source Enterprise Content Management System. Enterprises, governmental offices, organizations and educational institutions trust eZ Publish.

osCommerce

osCommerce is an open source e-commerce solution under on going development by the open source community. Its feature packed out-of-the- box installation allows store owners to setup, run, and maintain their online stores with minimum effort and with no costs involved. osCommerce combines open source solutions to provide a free and open development platform, which includes the powerful PHP web scripting language, the stable Apache web server, and the fast MySQL database server.

phpAdsNew

OpenX began as phpAdsNew, a fork from a similar project called phpAds, created by Tobias Ratschiller in 1998. OpenX is a hugely popular, free ad server designed by web publishers for web publishers. It provides everything you need to manage your on-line advertising. It allows paid banners to be easily rotated along with your own in-house advertisements, and can even integrate banners from third party advertising companies.

phpBB

phpBB is a fast, efficient discussion board program built in PHP with a muti-database backend. Features include: posting, replying, private messages, polls, username/ip banning, strong encryption for storing passwords, user rankings, very advanced access control for private forums, full templating, simple yet robust translation system and much more.

2001

Gallery

Gallery is a slick Web-based photo album written using PHP. It is easy to install, includes a config wizard, and provides users with the ability to create and maintain their own albums in the album collection via an intuitive Web interface. Photo management includes automatic thumbnail creation, image resizing, rotation, ordering, captioning and more. Albums can have read, write, and caption permissions per individual authenticated user for an additional level of privacy.

Drupal

Drupal is a modular content management system, forum, blogging and community engine. It is database driven and can be used with MySQL, MySQLi and PostgreSQL. Its features include (but are not limited to) discussion forums, Web-based administration, theme support, a submission queue, content rating, content versioning, taxonomy support, user management with a fine-grained permission system based on user roles (groups), error logging, support for content syndication, locale support, and much more. It is considered to be an excellent platform for developers due to its clean code and extensibility, and it can also be used as a Web application framework.

2002

MediaWiki

MediaWiki is a web-based wiki software application used by all projects of the Wikimedia Foundation, all wikis hosted by Wikia, and many other wikis, including some of the largest and most popular ones. Originally developed to serve the needs of the free content Wikipedia encyclopedia, today it has also been deployed by companies for internal knowledge management, and as a content management system. Notably, Novell uses it to operate several of its high traffic websites.

2003

WordPress

WordPress is a state-of-the-art, semantic, personal publishing platform with a focus on aesthetics, Web standards, and usability. It was born out of a desire for an elegant, well-architected personal publishing system. While primarily geared towards functioning as a Weblog, WordPress is also a flexible CMS capable of managing many types of Web sites. In addition to the basic blog functions, it also has an integrated link manager (e.g. for blogrolls), file attachments, XFN support, support for stand-alone pages, Atom and RSS feeds for both content and comments, blogging API support (Atom Publishing Protocol, Blogger, MetaWeblog, and Movable Type APIs), spam blocking features, advanced cruft-free URL generation, a flexible theme system, and an advanced plugin API.

Zencart

Zen Cart™ truly is the art of e-commerce; free, user-friendly, open source shopping cart software. The ecommerce web site design program is being developed by group of like-minded shop owners, programmers, designers, and consultants that think ecommerce web design could be and should be done differently.Some shopping cart solutions seem to be complicated programming exercises instead of responding to users’ needs, Zen Cart™ puts the merchants and shoppers requirements first. Similarly, other shopping cart software programs are nearly impossible to install and use without an IT degree, Zen Cart™ can be installed and set-up by anyone with the most basic web site building and computer skills.

2004

SugarCRM

SugarCRM is a complete CRM system for businesses of all sizes. Core CRM functionality includes sales force automation, marketing campaigns, support cases, project mgmt, calendaring and more. Built in PHP, supports MySQL and SQL Server.

2005

Joomla!

Joomla! is an award-winning Web-based content management system. It provides for split front end content access and backend administrator access. Group-based access control allows for different levels of system control for both the site and the administrator. The Joomla! framework allows for extension by installable components (applications), modules (template blocks), languages, templates, and mambots (plugins that enhance system functions).

Symfony

Symfony is a full-stack framework, a library of cohesive classes written in PHP5. It provides an architecture, components and tools for developers to build complex web applications faster. Choosing symfony allows you to release your applications earlier, host and scale them without problem, and maintain them over time with no surprise. Symfony is based on experience. It does not reinvent the wheel: it uses most of the best practices of web development and integrates some great third-party libraries.

OrangeHRM

OrangeHRM aims to be the world’s leading open source HRM solution for small and medium sized enterprises (SMEs) by providing a flexible and easy to use HRM system affordable for any company worldwide.The project was started during fall 2005 and the first beta release was made in January 2006. Today OrangeHRM has users worldwide enjoying a free, stable and highly usable HRM solution. The system is backed by professional support and services as well as a fast growing, receptive and knowledgeable worldwide open source community. By building and leveraging this community of users, developers and partners, the usability, scope and international adoption of OrangeHRM is continuously being improved.

2006

Zend Framework

Extending the art & spirit of PHP, Zend Framework is based on simplicity, object-oriented best practices, corporate friendly licensing, and a rigorously tested agile codebase. Zend Framework is focused on building more secure, reliable, and modern Web 2.0 applications & web services, and consuming widely available APIs from leading vendors like Google, Amazon, Yahoo!, Flickr, as well as API providers and cataloguers like StrikeIron and ProgrammableWeb.

2007

Magento eCommerce

Magento is a new professional open-source eCommerce solution offering unprecedented flexibility and control. It was designed with the notion that each eCommerce implementation has to be unique since no two businesses are alike. Magento’s modular architecture puts the control back in the hands of the online merchant and places no constraints on business processes and flow.

Cake PHP

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.

Free Online Web Form Builder

Whether you are a novice web designer or a professional programmer, JotForm saves both time and energy and helps you create a form in seconds.

This WYSIWYG editor allows you to add/delete fields in your form without writing a single line of code. You can also set restrictions and change the label and size of any of the fields with just one click. Once you are done creating the form, just copy the code and paste it on your website or blog. If you really want to play with the code, it also allows to edit the actual CSS behind your design and make changes to it.

simple-form1

The also have a few themes that you can chose from. For example the “Baby Blue” theme or the “Jot” theme.

You also have the ability to save your forms and come back to them. It also allows you to email the form to your friends, in case you want a second opinion before publishing it. All these features are available for free, however, there is a limit of 100 submissions which can be removed by paying $9 a month.

Over all, I think it is a pretty handy tool if you don’t have the skills or the time to create a custom form. However, you might have to play around with the CSS a little bit to integrate the theme/colors of the form with your website.

baby-blue2

jot-theme11

The ways to create thumbnail image by php with thumbnail generators.

When you want to display an image into your web page, maybe you need to resize it, make it smaller than the original, such as the headline images, image which represents for a post…That’s all images are called Thumbnail. I’ll not say much about what thumbnail means in this entry, and not about how to make thumbnail image in PHP because it’s just a common skill that everyone who works with PHP can not live without. I just want to show you same useful code to make thumbnail that you dont need to do any coding…and maybe some people not know about PHP can do that easily. That all usefull tools (i dont know i use “tool” here is correct or not, just let me call it “tool”) below are Thumbnail Generators.

1. phpThumb()

phpThumb() uses the GD library to create thumbnails from images (JPEG, PNG, GIF, BMP, etc) on the fly.  ImageMagick is used wherever possible for speed. Basic functionality is available even if GD functions are not installed (as long as ImageMagick is installed). It supports almost image formats or any image format ImageMagick can read. The output are, too and even ICO format.

Images can be rotate, cropped. Output is antialiased into the alpha channel where appropriate when PNG output is selected. Quality can be auto-adjusted to fit a certain output byte size.

This script support a large number of filters can be applied. It’s an excellent set of free PHP scripts which can process and generate thumbnails very easily.

2. Zubrag Thumbnail Creator / Generator

PHP Thumbnail Creator is designed to generate thumbnails from JPG, GIF, or PNG images. Script can save rendered thumbnail as file on your server or output it directly to the browser.  There’re nothing special from this tools, it’s just a normal thumbnail generator. It supports JPG, PNG, GIF image type but depends on GD2 library. You can customize default value from source code. Script can also help you if you need to show few thumbnails based on the same source image but in different sizes, when you cannot afford saving created thumbs on your server for some reason.

3. PHP Thumbnail generator with shadow


This one is simple, simple to use, but the main feature it supports is so amazing. It can drop soft shadows below the thumbnails. Because the simplified of this tool, it just support 2 image type: PNG and JPG. PNG transparency is allowed, but when IE Browser is not version 7 or above, it will be detected and convert to JPG format instead. Absolutely, it can save the images in server in cache folder like others can do.

4. TimThumb PHP Script of Tim McDaniels

Just a simple script but is the most useful tool people using. Make a thumbnail, crop size or not and the quality of output. Main feature is users dont have to do nothing, if users want to crop the image, it will automatically crop width size if width size is larger than the height or do the same with height. This tool is the most popular tool to create thumbnail image by WordPress users. It’s supports cache, too.

Support: JPG, PNG (Resize a PNG with transparency and you’ll get a white background), GIF (Reducing a GIF in quality will discard the transparency of the image, resulting in a black background)

5. Drop Shadowed Thumbnail Creator

This class allows you to very easily create thumbnails of images, on which you can also apply a drop-shadow effect. You can control the colour of the background so that drop-shadow will fit better onto your page and the size of the thumbnail.

You can resize in an absolute or relative way (to a certain size or by a certain size), both as a pixel number or a percentage.

6. jQuery easyThumb


jQuery easyThumb is a plugin for jQuery. The easy description is that it turns a list of full-scale images to a list of thumbnails on-the-fly. It uses a php-script to return a thumbnail for each image, and jQuery to generate the list. Let’s jump right to the installation.

Maybe you cant access the homepage because he is now hosting this script in a stupid host. Let try again later or try google with “jQuery easyThumb”, you can find some useful informations about this script.

Final words:

These all tools above is just make us feel quickly when working. If you are a web developer, you can download and add some function to. Because of creating thumbnail in PHP with GD library support is just a common skill with php programmer, so if you are new to PHP, want to work with image, you should take a look at GD Functions in php manual page.

CMS battle: Drupal vs Joomla

If you are digging for CMS comparisons and trying to decide which one is best for you, here is the comparison

Here are some statistics from CMS Matrix for a more detailed comparison. It shows that Drupal is extremely modular and Joomla has a heavy core, thus a terrible architecture. That means Joomla is hard to extend and messy under the hood. Drupal, on the other hand, looks beautiful.

Continue reading

Vista Vs. Linux … The search battle

Hello people, at this blog, i am just giving some search results that are reflected back by Google and yahoo on some nice keywords regarding Vista and Linux…

Jet Set… Go…

  • Who is Greater
    “Vista is great”
    137,000,000 results from Google
    51,400,000 results from Yahoo

    “Linux is great”
    165,000,000 results from Google
    48,500,000 results from Yahoo

  • Which has more bugs
    “Vista has bugs”
    18,200,000 results from Google
    4,920,000 results from Yahoo

    “Linux has bugs”
    69,700,000 results from Google
    9,710,000 results from Yahoo

  • Who suck more ??
    “Vista sucks”
    2,340,000 results from Google
    6,530,000 results from Yahoo

    “Linux sucks”
    2,290,000 results from Google
    5,180,000 results from Yahoo

  • Stability
    “Vista is Unstable”
    1,720,000 results from Google
    2,020,000 results from Yahoo

    “Linux is unstable”
    2,100,000 results from Google
    2,430,000 results from Yahoo

  • Who use what
    “I use Vista”
    461,000,000 results from Google
    118,000,000 results from yahoo

    “I use Linux”
    450,000,000 results from Google
    146,000,000 results from Yahoo

  • Which is secure
    “Vista is secure”
    62,000,000 results from Google
    21,700,000 results from Yahoo

    “Linux is secure”
    119,000,000 results from Google
    30,600,000 results from yahoo

Amazingly, according to Google, there are more Vista users, while according to Yahoo, there are more Linux users.
One thins is clear, no doubt that Linux has much more bugs than Vista, but still people think that Linux is great than Vista.