Archive for January, 2010

Multi-Platform IDE For C# And Other .NET Languages: MonoDevelop

// January 31st, 2010 // No Comments » // Website Resources

MonoDevelop is a free & advanced IDE that is mainly built for C# & other .NET languages.

It works in Linux, Windows & Mac OSX which is great, specially for developers who use multiple platforms but still want to work from the same interface.

MonoDevelop

MonoDevelop comes with advanced text editing features like code completion support for C# 3, code templates & code folding.

It also has an integrated debugger, web server (for instantly testing ASP.NET applications) & a GTK# visual designer.

The software also offers much more features like source control, makefile integration, unit testing, packaging & deployment, localization & more.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags: , ,

Related posts

A Set Of User Interface Design Elements (PSD)

// January 30th, 2010 // No Comments » // Website Resources

MediaLoot is presenting a free set of user interface elements that can help designing/prototyping faster.

It has 3 distinct styles: glossy, satin/light gradient, and one-color which the satin/light gradient set is available in 7 different colors.

The set comes in both .PNG & .PSD formats and includes items like:

  • control buttons
  • info boxes
  • breadcrumbs
  • forms
  • scrollbars
  • & more..

PSD UI Set

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags: ,

Related posts

WordPress Plugin For E-Commerce: GetShopped

// January 29th, 2010 // No Comments » // Website Resources

GetShopped is a free WordPress plugin for adding e-commerce capabilities into WordPress-powered websites.

It is a very easy-to-setup plugin which can work with any standards compliant WordPress theme (and WordPress MU).

GetShopped WordPress Plugin

The plugin offers a flexible pricing structure for products with features like:

  • flexible coupon/discount pricing rules
  • product specific sales
  • quantity discounts
  • free shipping options
  • multi-tier pricing for quantity discounts

and supports multiple payment providers like Google Checkout, Paypal & Payment Express.

GetShopped makes it possible to complete the shopping process quickly with a one-page-checkout & optionally, guest checkouts is supported.

It is easy to manage orders with the help of a powerful admin interface, print invoices, packing slips & more.

The plugin also offers lots of other features from comments to new/featured product widgets.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags: ,

Related posts

Cross-Domain JavaScript With Simple PHP Proxy

// January 28th, 2010 // No Comments » // Website Resources

Using JavaScript, it is possible to load HTML, XML or JSON data with XMLHttpRequest.

However cross-domain JavaScript requests (reaching remote pages) are not possible due to browser security limitations except JSONP-formatted JSON data.

Cross-Domain JavaScript

Simple PHP Proxy is a PHP script which aims to fill this gap by creating a layer between your JavaScript code and the remote domain to get data in HTML, XML or JSON formats.

Some features of Simple PHP Proxy:

  • requested URLs can be white-listed & validated against a regex.
  • optionally forward client cookies / SID to the remote server.
  • optionally forward configurable User Agent to the remote server.
  • requests can use either GET or POST request methods.
  • remote data can be delivered as-is with all remote headers intact.
  • remote data can be wrapped in a JSON/P structure that includes status codes & remote headers.
  • if using JSON/P & remote data is valid JSON, it will be merged into the resulting data object.

There is also a demo which you can request any URL.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags: , , ,

Related posts

Website Footer Inspiration: Footerama

// January 28th, 2010 // No Comments » // Website Resources

Footers of websites are being used more & more effectively everyday to provide a better navigation and more information.

Footerama is a fresh design gallery which presents inspiring footers of beautiful websites.

From Footerama:

footer became an area where the web designers had the maximum opportunity to show their creativity, craziness and umm..personality, individuality.

The footers presented are well-categorized with their themes/colors & new items are added regularly.

Footerama

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags:

Related posts

Lightweight Flash MP3 Player: 1 Bit Audio Player

// January 27th, 2010 // No Comments » // Website Resources

1 Bit Audio Player is a lightweight & free Flash MP3 player that can be automatically inserted into webpages with JavaScript.

It is not a feature-rich or complicated player, rather, it is so simple & ideal for offering quick in-page previews for audio files.

1 Bit Audio Player

The player comes in flavors

  • Standalone version (for implementing it into any website)
  • Wordpress plugin
  • A bookmarklet for displaying the player besides any MP3 link on any website

1 Bit Audio Player uses its own unobtrusive JavaScript and SWFObject to embed Flash players into the pages.

It is possible to display players near every MP3 link or selected ones using CSS selectors.

The icons can be customized by simply editing the .FLA source file.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags: ,

Related posts

Open Source PHP-Based News Aggregator: Lilina

// January 27th, 2010 // No Comments » // Website Resources

Lilina is an open source PHP application for aggregating feeds from a web-based interface.

It supports RSS, Atom & podcasts inside them. It is also possible to import/export feeds with an OPML file.

Lilina RSS Aggregator

The application only requires PHP(5) to run & makes use of 2 built-in libraries: HTML Purifier and SimplePie.

Lilina has a plugin system for extending its capabilities & the look/feel can be customized with the theming support.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags: , ,

Related posts

Tips For Sending Valid E-mails From Websites

// January 26th, 2010 // No Comments » // Website Resources

E-mails are one of the key elements of a website/web application. They are used in contact forms, sign-ups, notifications, newsletters, etc.

It is a common experience that sometimes e-mails sent from websites go to the junk folders or never reach.

Although it is not always possible to detect the reasons for this, there are several things that we can do to minimize the risk. Here they are:

Spam Check

Send E-mails Through A Valid E-mail Server With Authentication

This is the most important one which you may be automatically offering all the tips below.

It is mostly a good idea to send website e-mails through the e-mail server that will require authentication rather than the web server's SMTP server. Servers that are specifically set to send e-mails generally have Reverse DNS & SPF records, support greylisting ,etc.

Every scripting language offers methods to send e-mails with authentication.

On the other hand, sometimes, using e-mail servers are not enough as you may need to send lots of e-mails but the hosting provider may be applying limits, etc. In such cases, if you'll be sending e-mails through your web server, make sure to check these all:

Reverse DNS (rDNS)

As every domain resolves to an IP address, optionally, IPs can resolve to domain names which is called reverse DNS.

Many spammers use non-existing or dynamic e-mails without reverse DNS records. E-mail servers generally check if the sender IP has a reverse DNS record or not.

How to add reverse DNS records?: reverse resolving uses the pointer DNS record type (PTR record) which you should be asking your hosting provider to create it (check if it exists).

SPF Records

Sender Policy Framework is being used by more & more e-mail providers everyday (Gmail, Hotmail & Yahoo uses it) as a criteria to detect if a message is spam or not.

It simply allows the owner of a domain to specify their mail sending policy, (like which mail servers they use to send mail from their domain).

SPF records are DNS TXT records which an online setup wizard can help you creating it (you'll need to create new DNS records).

Using A SMTP Server That Supports Greylisting

A very powerful spam prevention method used by mail servers is called greylisting.

When you send an e-mail, the server receiving it can say to your SMTP server:  "send it to me again in x minutes" which is mostly not supported by the methods spammers use.

So, you need a smart SMTP server who can understand this command (IIS SMTP can not) that will re-send the e-mails when requested.

No Bulk Mailing

Both the SMTP server you'll be sending e-mails & the servers that will receive them generally have rules to define an IP/e-mail as spammer who sends x number of mails in y seconds.

So, if you have a large userbase to send e-mail, it will be a good idea to send them in intervals.

No Sending Of E-mails In Alphabetical Order

Again, if you'll be sending e-mails to a large userbase, don't send them in alphabetical order of e-mails as mail servers can mark them as a dictionary attack.

Check If The Server IP Is Blacklisted

Blacklists are systems, that are used by most of the e-mail service providers, that has bot or human e-mail accounts which analyze the common e-mail traffic & can blacklist IPs according to e-mails sent from them.

The server you're using to send e-mails can be shared by many other users. And, a spam that is sent by anyone on that server can lead to a "blocking" by e-mail blacklists which will damage the communication of every account on it.

You can check if you IP is blacklisted from different resources.

 

Any more tips that you have?

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags: ,

Related posts

A Complete CSS Framework: Markercss

// January 25th, 2010 // No Comments » // Website Resources

Markercss is a complete CSS framework for creating website layouts quickly.

It comes with a set of stylesheets: layout, borders, backgrounds, links, forms, text, colors & tables which makes it possible to use only what is needed.

Markercss CSS Framework

The framework has a combination of references like adding a w10 class (10-1000 is defined) will make an element 10px or p5 (5-50 is defined) will add a 5px padding.

It doesn't force or limit the designer with preset widths/heights, rather, it focuses on offering the most used styles in a flexible way.

There is a set of examples provided which shows how Markercss works.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags:

Related posts

9 Tips For Working with MySQL Databases

// January 25th, 2010 // No Comments » // Uncategorized

MySQL is one of the most popular relational database management systems (RDBMS) around, with over 6 million installations.

It’s a fantastic choice for any new developer, because of its open source nature, wide support and abundance of tutorials available on the subject.

Here are some great tips and tools (beside phpMyAdmin) to improve your MySQL coding, and to help you save time.

Installing SQL

If you’re a newbie to the server side coding arena, don’t worry. Installing SQL is very, very simple. Ok, well if you do it the geeky way it could take you hours, but there are several scripts out there that come packaged with an SQL installer. They also typically provide a server on your local machine which is very handy.

MAMP

Mamp

Mac only PHP, SQL & Apache Installer

XAMPP

Windows, Linux & Mac installer

WAMP

A windows only LAMP installer

MySQL Server 5.1

If you just want MySQL server, and like using command line then this might suit you.

For info on how to install and work with the MySQL server, check this NetTuts tutorial: Everything You Need to Get Started With MySQL. This article will introduce you to the world of relational databases allowing you to maximize your data’s potential.

SQL Tips

1- Optimize your code

Imagine if you have 100 records, 10 columns.Your working with a database of your clients details, and need to select their name, phone number and address. You’d write:

SELECT * FROM clients;

What’s up with that? Nothing. You’d then simply reference the columns you want later. Wrong!

That single line of code is highly inefficient. It’s fetching 1000 pieces of information from the database! However, if you wrote this:

SELECT name, phone, address FROM clients;

You’ve now cut down to only 300 calls. That’s a 700 saving. Probably not noticeable on a database that size, but you should always think about what your code is actually doing. That way, you can code efficiently in the first place, and make your app much more scalable.

Super Tip: In some cases, you can cut down to simply 3, by using a well thought out ‘WHERE’ clause.

2- Understand the code

Its been said that 60% of sql optimisation is understanding sql and the basics of databases. Spend time learning the difference between joins and sub selects. Its important that you know what technique to use and under what circumstance, so every hour spent here will yield noticeable results. So purchase a good book on MySQL and get learning. Knowledge is the root of power.

3- Keep Your Code Tidy and Organised

As with any coding you do, keep your SQL tidy and well formatted. Doing so will help you when debugging & generally managing code. There are several tools available to help you do so, complete with colour coding and code formatting.

Instant SQL Formatter

Instant SQL formatter is a free online service that beautifies and tidies your SQL code. It also converts SQL to html for easy posting to blog’s or web sites, and makes a great tool in any developers arsenal.

4- Add tables and columns sparingly

One of the most effective methods for keeping your application simple, performance consist ant and code streamlined is asking yourself, "Do I really need to add this table or column?" Could the task be accomplished by using a join or simply by storing data in one row and using coding later on to separate it out. By doing so you are cutting down and bloat, and making your app as dynamic and streamlined as possible.

5- Change one thing at once

Like SQL, racing cars are pretty technical. They require tuning and set-up in order to work to the absolute optimum. So does SQL. But, one thing that race car engineers never, ever do is change more than 1 thing at once. If you alter one table, one field, one column the effects multiplied over 1000’s could be disastrous. Even if it doesn’t break your whole database, and just has one little quirk, changing your code to do only one new thing at once will mean you know exactly what’s breaking your code.

6- Back-up Regularly

Whether your on a shared host, dedicated server or running on a local dev machine, backing-up is essential. On your local machine, make sure you back-up to an external hard drive (including your databases) or even better, to an online service such as Carbonite. Then, if you have a fire or flood in your office your backed-up, and all your development projects are stored away safely.

On shared / dedicated servers, you can set-up CRON jobs to back-up databases regularly, meaning if the site goes down, you can simply reload the database and carry on from where you left off, give or take a days worth of data.

Finally, when working on dev projects, before altering databases, its a great idea to back-up. That way, if your alteration breaks the whole database, you can simply replace the corrupt one with a back-up and try again. Combined with one alteration at once, and you have a solid SQL programming plat from to work from.

7- Caching

If your database is going to be read more than written to, consider using a cache. Doing so cuts down on calls to the server, and thus reduces load on the server.

The MySQL site has a great tutorial on using Query Cache, which essentially saves a SELECT command in the cache, then if its called again, the cache can serve the results rather than call the database again.

8- Use a cheatsheet / reference

Cheatsheet’s always seem to have a stigma attached to them. Probably because of the name, and their usage in exams. But, cheatsheet and references will help you no end in your general day to day working with SQL. Who wants to become an SQL walking encyclopedia? Remember all the stuff you really need, and the more obscure / less used functions are always only a few clicks away:

The MySQL official reference is essentially the SQL bible. Loads of great tips and advice, plus help in case you need a refresher on what an Identifier Qualifier is.

They also have past versions of SQL documented, plus SQL 5.0, 5.1 and 5.4.

9- Never stop learning

Just because you buy several books on MySQL doesn’t mean you’ll be Mr RDBSMS Rockstar straightaway. You need to practice what you’ve learned in real world situations, and always, always top up your knowledge by going back and re-learning what you’ve learned or checking out new tutorials on the matter. Here’s a few refreshers

MySQL GUI’s

A GUI (Graphic User Interface simplifies working with MySQL. Instead of working purely on the command line, you get a friendly interface that formats date, gives you a code editor and generally improves the whole experience of working with raw code. Think user friendly and time saving.

Here’s a few of the better ones on the market, both free and paid

RazorSQL

RazorSQL is an SQL query tool, database browser, SQL editor, and database administration tool for Windows, Mac OS X, Linux, and Solaris. RazorSQL has been tested on over 29 databases, can connect to databases via either JDBC or ODBC. Its available for $59.95.

Querious

Viewing, searching, editing, importing, exporting, and structuring your data has never been so easy. With Querious, you can even open up raw CSV or Tab files in a spreadsheet-like document. Need to rename or reorder the columns? No problem. Searching for data is a breeze, and you can even convert the whole file to another format in a snap. It costs $25

SQLEditor

A Database design and entity relationship diagram (ERD) tool for Mac OS X. SQLEditor replaces typing SQL by hand with dragging, dropping and clicking. It makes creating databases much faster and really reduces errors.
If you already have a database then SQLEditor can help you see what it looks like by creating a diagram of it. SQLEditor works on Mac, and supports Snow Leopard.

SQLGrinder2

SQLGrinder”! is an SQL editor and developer tool that gives you the tools needed to make your database development easy. Using SQLGrinder you can create, edit and execute SQL statements. You can browse your database schema. SQL Grinder costs $59 and works on OSX.

SequelPro

Sequel Pro is a fast, easy-to-use Mac database management application for working with MySQL databases. Sequel Pro is free, open source and well worth a look at.

MySQL GUi Tools

The MySQL GUI Tools Bundle for 5.0 includes the following products which are also supported for MySQL 5.1, and offered by the official MySQL site.

  • MySQL Administrator 1.2
  • MySQL Query Browser 1.2
  • MySQL Migration Toolkit 1.1

Enjoy being a MySQL Rockstar, with heightened coding abilities! Why not share your favorite MySQL coding tip or GU editor with our readers. What’s the most useful hack you’ve learned?

Originally Written for DevSnippets.com by: Joel Rays