Sites for developers

Mysql Format Date – http://codepen.io/andyfitz/pen/tvahJ

Script Src – http://scriptsrc.net

Em Conversion Chart – http://aloestudios.com/tools/emchart

Twitter API Explorer – http://twitapi.com/explore

Browser Sandbox – http://spoon.net/browsers

PHP Forms – http://www.phpform.org

.htaccess editor – http://www.htaccesseditor.com/en.shtml

Smush it! – http://developer.yahoo.com/yslow/smushit/

CSS Compressor – http://www.csscompressor.com

Site Checker – http://tester.jonasjohn.de

Recommended by Friend:

http://codepen.io/andyfitz/pen/tvahJ

 

 

Develop tricks for Web designing

Compiles into Javascript – http://jashkenas.github.com/coffee-script/

Backbone, for adding structure to large JavaScript-based web apps. http://documentcloud.github.com/backbone/

 

Underscore, a utility-belt library that adds functional programming features to JavaScript. http://documentcloud.github.com/underscore/

 

Knockout, a great way to simplify your user interfaces. http://knockoutjs.com/

 

Sugar, which extends the JavaScript language with a wealth of useful methods. http://sugarjs.com/

 

 

CSS Terminal: Live CSS Editing

http://barberboy.github.com/css-terminal/#install

http://www.css-101.org/articles/trick-for-rapid-prototyping/

 

Lorem Ipsum

http://www.lipsum.com/

 

TileMill: A Map Design Platform

http://tilemill.com/pages/index.html

 

Make Images Look Retro

http://vintagejs.com/

 

accounting.js

http://josscrowcroft.github.com/accounting.js/

 

wordpress theme

http://launcheffectapp.com/

 

Heads-Up Grid

http://bohemianalps.com/tools/grid/

 

Less

http://lesscss.org/

http://incident57.com/less/

 

Sass

http://thesassway.com/beginner/getting-started-with-sass-and-compass

 

Reliable Cross-Browser Testing, Part 1: Internet Explorer

http://coding.smashingmagazine.com/2011/09/02/reliable-cross-browser-testing-part-1-internet-explorer/

 

Sun’s VirtualBox

http://www.virtualbox.org/

 

Utilu IE Collection

http://utilu.com/IECollection/

 

Slicebox – A fresh 3D image slider with graceful fallback

http://tympanus.net/codrops/2011/09/05/slicebox-3d-image-slider/

 

Nine Image Expander Thing

http://css-tricks.com/examples/NineImages/#

 

JavaScript – onclick reload page

There are several ways to reload a current page.

 

<input type=”button” value=”Refresh page” onclick=”location.reload(true)”>

 

<p>

<a href=”javascript:location.reload(true)”>Refresh page</a>

</p>

 

<input type=”button” value=”Reload Page” onClick=”window.location.reload()”>

 

<input type=”button” value=”Reload Page” onClick=”history.go(0)”>

<input type=”button” value=”Reload Page” onClick=”window.location.href=window.location.href”>

 

 

http://javascript.internet.com/page-details/refresh-page.html

http://www.mediacollege.com/internet/javascript/page/reload.html

SVG uses

SVG is resolution-independent, making it ideal for rendering cross-platform user interface components, animations and applications where each element needs to be accessible via the DOM.

Synchronised animation and audio
http://svg-wow.org/camera/camera.xhtml

Animated world landmarks re-created in SVG
http://svg.kvalitne.cz/worldlandmarks/worldlandmarks.svg

SVG filters on HTML5 video

http://paulirish.com/2010/svg-filters-on-html5-video/

Adding a third dimension to SVG graphics
http://debeissat.nicolas.free.fr/svg3d.php

Rendering vector graphics in SVG vs Flash

http://codinginparadise.org/projects/svgweb/samples/demo.html

An interactive SVG jigsaw
http://lavadip.com/experiments/jigsaw/

SVG UI Components: a HTML5 subtitles bar
http://158.109.70.57/svg/final/svg_subtitles.html

Applying SVG masks over HTML5 video
http://atomicrobotdesign.com/blog_media/svg_mask.html

Path-tracing map routes with SVG and Raphael
http://www.alistapart.com/articles/svg-with-a-little-help-from-raphael/

Deconstructing Trajan columns with SVG
http://upload.wikimedia.org/wikipedia/commons/6/6c/Trajans-Column-lower-animated.svg

Animated Rube Goldberg machine in SVG
http://www.svgopen.org/2007/papers/SLOGO_Abstract/SLogo_Fig9_Goldberg_Machine.svg

Interactive Postcard of Ireland in SVG
http://svg.kvalitne.cz/ireland/irelandvacation.svg

Crime and poverty interactive SVG map
http://www.carto.net/papers/svg/us_crime_2000/map.svgz

Animated lyrics in SVG
http://svg-wow.org/audio/animated-lyrics.svg
Analytics with Raphael and SVG
http://raphaeljs.com/analytics.html

Visual representation Of Twitter connections
http://workshop.rs/projects/twings/#kopipejst

Blobular
http://www.themaninblue.com/experiment/Blobular/

The creepy mouth In SVG
http://svg-whiz.com/svg/linguistics/theCreepyMouth.svg

Animated SVG clock
http://www.bogotobogo.com/svg_source/SVGDigitalClock.svg

Interactive SVG on the iPad
http://techblog.floorplanner.com/2010/08/30/interactive-svg-for-the-ipad/

Resource: http://www.netmagazine.com/features/20-svg-uses-will-make-your-jaw-drop

HTML5 tips

HTML5

1.  <!doctype html> (simple and clean)

      in HTML4 it would be:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd”>

2. data-

<img id=”img1″ src=”eiffelTower.jpg” alt=”Eiffel Tower”
data-country=”fr”
data-imageType=”thumb”
data-fullURL=”/photos/large/eiffelTower.jpg”>

<img id=”img2″ src=”coliseum.jpg” alt=”Coliseum”
data-country=”it”
data-imageType=”thumb”
data-fullURL=”/photos/large/coliseum.jpg”>

access the values of data- attributes using the DOM methods such as element.getAttribute()

// Displays "/photos/large/eiffelTower.jpg": 
  alert( document.getElementById('img1').dataset.fullurl );

Morten Barklund has created a nice jQuery plugin that adds datasetsupport to all browsers.

3.  <figure> avoid the plague of divitis by replacing non-semantic div and span elements with more meaningful element types

header and footer for page and article headers and footers respectively

article for encapsulating an article or blog post

nav for representing the site navigation

figure and figcaption for including figures and figure captions

time for representing dates and times
<!doctype html>
<html lang=”en”>
<head>
<title>New WonderWidget Released</title>
</head>
<body>

<nav>
<ul>
<li><a href=”/”>Home</a></li>
<li><a href=”/archive/”>Archive</a></li>
<li><a href=”/about/”>About</a></li>
</ul>
</nav>

<article>

<header>
<h1>New WonderWidget Released</h1>
<p><time pubdate datetime=”2011-07-11″></time></p>
</header>

<p>Curabitur tortor. Pellentesque nibh. Aenean quam.
In scelerisque sem at dolor. Maecenas mattis. Sed
convallis tristique sem. Proin ut ligula vel nunc
egestas porttitor.</p>

<figure>
<img src=”eiffelTower.jpg” alt=”Eiffel Tower”>
<figcaption>The Eiffel Tower, earlier today</figcaption>
</figure>

<footer>
<p>Posted by: Matt Doyle</p>
<p><a href=”comments/”>Comments</a></p>
</footer>
</article>

</body>
</html>
Internet Explorer 8 and earlier don’t understand these new element types, which means that you can’t style them with CSS or access them in the DOM via JavaScript. To work around this, check out Remy Sharp’s HTML5 Shiv script.

 

4. New attributes

contenteditable is now officially part of the HTML standard, making it easier to create rich-text web editors.

spellcheck allows you to toggle spell checking for a text field or editable element.

reversed lets you create an ordered list in reverse (descending) order.

draggable and dropzone let you add browser-native drag-and-drop functionality to any element (here’s a great tutorial on HTML5 drag-and-drop).

target attribute, which lets you target iframes, open links in new windows has been  reinstated with HTML5

 

5. Wrap a link

  • links can contain flow content, which is an HTML5 term roughly equivalent to HTML4’s “block-level”

<a href=”mypage.html”>
<div>
<h2>Linked div</h2>
<p>Here’s an entire linked div containing an h2 heading,
a paragraph, and an image!</p>
<img src=”eiffelTower.jpg” alt=”Eiffel Tower”>
</div>
</a>

  • The RULE is that the content inside the link must not itself be interactive — this rules out other a elements, as well as buttons, iframes, select menus,

6. commonly-used snippets

  • <!– HTML4 –>
  • <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
  • <!– HTML5 –>
  • <meta charset=”utf-8″>
  •  ———————————————–
  • <!– HTML4 –>
  • <script type=”text/javascript”> … </script>
  • <!– HTML5 –>
  • <script> … </script>
  •  ———————————————–
  • <!– HTML4 –>
  • <style type=”text/css”> … </style>
  • <!– HTML5 –>
  • <style> … </style>

7. Enhanced forms

  • email, url, tel, number, range, date, datetime, search, and more. These serve 2 main purposes:

i.      Browsers can automatically validate the fields

ii.      Some browsers, such as Mobile Safari, can display context-aware keyboards based on the field type. For example, if the user is entering a telephone number into an <input type="tel"> field then the browser displays a telephone keypad.

  • autofocus attribute that automatically focuses a form field of your choosing when the form first loads.
  • placeholder attribute that lets you display placeholder text inside a field to guide the user.
  • required attribute for making form fields required. As with the input types, this triggers automatic browser validation — the user can’t submit the form until they’ve filled in all required fields.

 

http://www.elated.com/articles/7-lovely-things-about-html5-markup/
http://www.w3.org/TR/html5-diff/
http://diveintohtml5.org/peeks-pokes-and-pointers.html
http://firefogg.org/index.html
http://handbrake.fr/
http://flowplayer.org/

Setting up a database with MySQL and PHP

It is easy to set up a connection to a database.

Requirements for this guide:

  1. Must have a server that supports PHP and your database server must be MySQL.
  2. using phpMyAdmin – Version: 3.3.8

Create a database name, username, and password first. After you do this, then the rest is easy.

Create a connection file in php:

<?php
$host=”localhost”;
$username=”database name“;
$password=”password“;
$db_name=”username“;

mysql_connect(“$host”, “$username”, “$password”)or die(“cannot connect to server”);
mysql_select_db(“$db_name”)or die(“cannot select db”);
echo”Successful Connection”;
?>

Save this file as “conn.php” and uploaded to your web site, and then try to access this file from the Web.  If it works, it will say, “Successful Connection.”

Create a table using phpMyAdmin:

  1. In Create table, Name: web_members
  2. Number of fields: 4
  3. click ‘go’
  4. fill in the fields (id, name, lastname, email)
  5. for type(int, varchar, varchar, varchar)
  6. for length/values(4, 65, 65, 65)
  7. and then only for id select AUTO_INCREMENT

Insert data into your table using phpMyAdmin:

  1. select table, web_members
  2. click on insert tab
  3. in the value columns, skip id row but for name, lastname, email (  a, a, a@a.com)
  4. click ‘go’
  5. repeat steps 1. through 4. two more times with letter ‘b’ and then ‘c’

In the same folder, create a data retrieving file in php:

<?php

include(“conn.php”);

$tbl_name=”web_members”;
$sql=”SELECT * FROM $tbl_name”;
$result=mysql_query($sql);

// Start looping rows in mysql database.
while($rows=mysql_fetch_array($result)){
?>
<table width=”400″ border=”1″ cellspacing=”0″ cellpadding=”3″>
<tr>
<td width=”10%”><? echo $rows[‘id’]; ?></td>
<td width=”30%”><? echo $rows[‘name’]; ?></td>
<td width=”30%”><? echo $rows[‘lastname’]; ?></td>
<td width=”30%”><? echo $rows[’email’]; ?></td>
</tr>
</table>
<?
// close while loop
}
// close connection
mysql_close();
?>

Save this file as “webmembers.php” and uploaded to your web site, and then try to access this file from the Web.  If it works, it will show, “Successful Connection” and a table with the data we just entered into our database.

We are done. You should know how to connect to a database and retrieve data from a database using MySQL and php.

Source: http://www.phpeasystep.com

Exploring Perl – First-time user

Task::Kensho is list of recommended modules for Perl developers. There are too many modules on CPAN to choose from, but reviewing this list should be your first step into using Perl.

http://search.cpan.org/~apeiron/Task-Kensho/lib/Task/Kensho.pm

Basic Toolchain: Task::Kensho::Toolchain

App::cpanminus
Get, unpack, build and install modules from CPAN 

local::lib
Create and use a local lib/ for perl modules with PERL5LIB 

version
Perl extension for Version Objects 

Testing: Task::Kensho::Testing

Test::Simple
Basic utilities for writing tests. 

Test::Most
Most commonly needed test functions and features. 

Test::Exception
Test exception based code 

Test::Pod
Check for POD errors in files 

Test::Pod::Coverage
Check for pod coverage in your distribution. 

Test::Memory::Cycle
Check for memory leaks and circular memory references 

Devel::Cover
Code coverage metrics for Perl 

Logging: Task::Kensho::Logging

Log::Dispatch
Dispatches messages to one or more outputs 

Log::Log4perl
Log4j implementation for Perl 

Log::Contextual
Simple logging interface with a contextual log 

Exception Handling: Task::Kensho::Exceptions

Try::Tiny
Lightweight exception handling that handles the vagaries of $@. 

TryCatch
Flexible exception handling without source filters, handles $@ properly. 

autodie
Make builtins and other functions die instead of returning undef on failure. 

Object Oriented Programming: Task::Kensho::OOP

Task::Moose
Moose is a postmodern object system for Perl5. Task::Moose installs Moose and optionally a list of recommended modules that extend Moose. 

Asynchronous Programming: Task::Kensho::Async

POE
Multitasking and networking framework for Perl 

XML Development: Task::Kensho::XML

XML::LibXML
Perl Binding for libxml2 

XML::LibXSLT
Interface to the gnome libxslt library 

XML::SAX
Simple/Streaming API for XML 

XML::Generator::PerlData
Perl extension for generating SAX2 events from nested Perl data structures. 

XML::SAX::Writer
Output XML from SAX2 Events 

Web Development: Task::Kensho::WebDev

Task::Catalyst
Catalyst is The Elegant MVC Web Application Framework. Task::Catalyst is all you need to start with Catalyst. 

Template::Toolkit
Template Processing System 

CGI::FormBuilder::Source::Perl
Build CGI::FormBuilder configs from Perl syntax files. 

XML::RSS
Creates and updates RSS files 

XML::Atom
Atom feed and API implementation 

MIME::Types
Definition of MIME types 

Web Crawling: Task::Kensho::WebCrawling

HTTP::Lite
Lightweight HTTP client implementation 

LWP::UserAgent
Web user agent class 

LWP::Simple
Simple procedural interface to LWP 

WWW::Mechanize
Handy web browsing in a Perl object 

WWW::Mechanize::TreeBuilder
This module combines WWW::Mechanize and HTML::TreeBuilder

Database Development: Task::Kensho::DBDev

DBI
Database independent interface for Perl 

DBD::SQLite
Self Contained RDBMS in a DBI Driver 

DBIx::Class
Extensible and flexible object <-> relational mapper. 

DBIx::Class::Schema::Loader
Dynamic definition of a DBIx::Class::Schema 

SQL::Translator
Manipulate structured data definitions (SQL and more) 

Excel / CSV: Task::Kensho::ExcelCSV

Text::CSV_XS
Manipulate comma-separated values (CSV) 

Spreadsheet::ParseExcel::Simple
A simple interface to Excel data 

Spreadsheet::WriteExcel::Simple
Create Excel documents easily 

Module Development: Task::Kensho::ModuleDev

Dist::Zilla
Builds distributions of code to be uploaded to the CPAN. 

Module::Install
Standalone, extensible Perl module installer 

Devel::NYTProf
Powerful feature-rich perl source code profiler 

Perl::Tidy
Parses and beautifies perl source 

Perl::Critic
Critique Perl source code for best-practices. 

Carp::Always
Warns and dies noisily with stack backtraces 

Modern::Perl
enable all of the features of Modern Perl with one command 

Perl::Version
Parse and manipulate Perl version strings 

Software::License
Packages that provide templated software licenses 

Pod::Readme
Convert POD to README file 

CPAN::Uploader
Upload things to the CPAN 

Email: Task::Kensho::Email

Email::Simple
A simple email object. No, really! 

Email::Valid
Check validity of Internet email addresses 

Email::Sender
A library for sending email 

Email::MIME::Kit
The Swiss army chainsaw of assembling email messages 

Date Modules: Task::Kensho::Dates

DateTime
A date and time object 

Date::Tiny
A date object with as little code as possible 

Time::Tiny
A time object with as little code as possible 

DateTime::Tiny
A date object with as little code as possible 

Time::ParseDate
Date parsing both relative and absolute 

Scalability: Task::Kensho::Scalability

CHI
A unified cache interface, like DBI 

Config Modules: Task::Kensho::Config

Config::Any
Load configuration from different file formats, transparently 

Config::General
Generic Config Module 

Useful Command-line Tools: Task::Kensho::CLI

App::Ack
A grep-like text finder 

App::Nopaste
Easy access to any pastebin 

Devel::REPL
A modern perl interactive shell 

Module::Corelist
What modules shipped with versions of perl 

App::perlbrew
Manage perl installations in your $HOME 

Script Hackery: Task::Kensho::Hackery

These packages are included less for production work and more for whippitupitude. They reflect packages that people have found incredibly useful for prototyping and debugging before reducing down to a production script.

Smart::Comments
Comments that do more than just sit there 

Term::ProgressBar::Simple
Simple progress bars 

IO::All
IO::All combines all of the best Perl IO modules into a single nifty object oriented interface to greatly simplify your everyday Perl IO idioms.