Friday, January 14, 2011
Use of HTTP in Building Dynamic Websites
Thursday, January 13, 2011
HTML5 High-Performance Best Practices for Web Sites
This video shows how you can make your sites faster in browsers.
5 Mistakes to End Your Freelance Career
Credit: doobybrain on Flickr
Please learn from my mistakes.
First, who is this guy?
I’m Allan and I started as freelance designer six years ago. After a few months I started hired developers because I started taking increasingly larger web projects. Within two years of starting freelancing I took on a business partner and we started to build web applications. These projects have done well and we’ve started hosting conferences for entrepreneurs. I’ve been lucky and blessed, I’ve made my share of mistakes but here’s the mistakes I’ve made and what I’ve learned in the past six years.
1. Avoid Meeting New People
Successful freelancers never say that they know too many people. On the flip side, failed freelancers say, “I didn’t have a strong enough network.” Which means “I sat at home and didn’t meet people”.
Looking back at the small successes I’ve had. They’ve all started with the people I’ve met. These real-life relationships, handshakes, dinners and conversations that have turned into friendships. Growing your network, making friends and then nurture those relationships, but to do this it takes time and effort.
How do I meet people?
- Attend conferences and introduce myself. To start a conversation ask them questions, people generally like to talk about themselves.
- Talk to people on Twitter, I actually reply back to tweets.
- Contribute to open source projects, blog, comment on blogs, guest blog.
2. Ignore Your Ideal Client.
Realize your potential client will visit several competitor’s websites before they make contact. They’ll call the person they feel can deliver the product/design/photos that they expect and desire. Example: if you’re a photographer with web galleries of black & white wedding pictures but this potential client wants color pictures of their children your portfolio won’t appeal to them. They won’t be able to visualize you taking their children’s pictures.
The good news is you can use this filter to your advantage to target the kinds of clients you want. The client’s critical eye spans further than just your portfolio. They’ll evaluate how the copy on your site is written, how your site looks and even how you talk to them when they call. Everything you do will be judged and if done properly can use to filter your clients into the ones you want.
3. Be a Mediocre Jack of All Trades.
Most people do one thing very, very well. If you’re a designer, don’t be programmer. You’re a photographer don’t try to be a designer. Even if you’re picking up new skills, stop and find someone that is better than you. Hire them for your next project. Sure you’ll spend more money now but your final product will be better. Your portfolio will get better and your next clients will pay more. It’s a beautiful cycle of awesome.
You can connect great people on these sites
4. Charge Too Little.
This is the culmination of points 1, 2 and 3. If you meet people and build a network of friends in your industry then make your skill set strong by focusing on one thing and then target the ideal client you’ll be able to charge more for your time. Charge 15% more for your time than you think it’s worth. Most freelancers don’t have the confidence to set their rate at a place where they’re not scrapping the bottom of the barrel for clients. You are good enough to get the rate you deserve.
5. Lose Track of Your Money.
This is the most important point.
Let’s be honest saving money isn’t as fun as spending it. I love buying new things. It’s human nature to want to spend your cash. But every business will have a cash flow hiccup, a dry spell, a downtime.
Now if you’re thinking “I run a good business and do good, things like that won’t happen to me.” you’re wrong! A hiccup in cash flow can happen to anyone even if you’re running a great business. Just look at the businesses along the Gulf Coast and how the BP oil spill effected their businesses. These businesses were faced with an worse economy due to outside forces. The businesses that are surviving have cash saved. Don’t fool yourself, you will hit a dry spell and that cash reserve will save your butt. Keep 2-4 months of overhead in savings. You’ll thank me later.
Other mistakes that just suck
- No backup of files, I lost 2 years of data from an external hard drive crash.
- Not saving for tax time.
- Working from home full-time. Find a coffee shop or coworking desk at least 2 days per week.
- Fixed bid pricing and client contracts.
What mistakes have you learned from?
By working faithfully eight hours a day you may eventually get to be boss and work twelve hours a day.
- Robert Frost
5 Mistakes to End Your Freelance Career
Credit: doobybrain on Flickr
Please learn from my mistakes.
First, who is this guy?
I’m Allan and I started as freelance designer six years ago. After a few months I started hired developers because I started taking increasingly larger web projects. Within two years of starting freelancing I took on a business partner and we started to build web applications. These projects have done well and we’ve started hosting conferences for entrepreneurs. I’ve been lucky and blessed, I’ve made my share of mistakes but here’s the mistakes I’ve made and what I’ve learned in the past six years.
1. Avoid Meeting New People
Successful freelancers never say that they know too many people. On the flip side, failed freelancers say, “I didn’t have a strong enough network.” Which means “I sat at home and didn’t meet people”.
Looking back at the small successes I’ve had. They’ve all started with the people I’ve met. These real-life relationships, handshakes, dinners and conversations that have turned into friendships. Growing your network, making friends and then nurture those relationships, but to do this it takes time and effort.
How do I meet people?
- Attend conferences and introduce myself. To start a conversation ask them questions, people generally like to talk about themselves.
- Talk to people on Twitter, I actually reply back to tweets.
- Contribute to open source projects, blog, comment on blogs, guest blog.
2. Ignore Your Ideal Client.
Realize your potential client will visit several competitor’s websites before they make contact. They’ll call the person they feel can deliver the product/design/photos that they expect and desire. Example: if you’re a photographer with web galleries of black & white wedding pictures but this potential client wants color pictures of their children your portfolio won’t appeal to them. They won’t be able to visualize you taking their children’s pictures.
The good news is you can use this filter to your advantage to target the kinds of clients you want. The client’s critical eye spans further than just your portfolio. They’ll evaluate how the copy on your site is written, how your site looks and even how you talk to them when they call. Everything you do will be judged and if done properly can use to filter your clients into the ones you want.
3. Be a Mediocre Jack of All Trades.
Most people do one thing very, very well. If you’re a designer, don’t be programmer. You’re a photographer don’t try to be a designer. Even if you’re picking up new skills, stop and find someone that is better than you. Hire them for your next project. Sure you’ll spend more money now but your final product will be better. Your portfolio will get better and your next clients will pay more. It’s a beautiful cycle of awesome.
You can connect great people on these sites
4. Charge Too Little.
This is the culmination of points 1, 2 and 3. If you meet people and build a network of friends in your industry then make your skill set strong by focusing on one thing and then target the ideal client you’ll be able to charge more for your time. Charge 15% more for your time than you think it’s worth. Most freelancers don’t have the confidence to set their rate at a place where they’re not scrapping the bottom of the barrel for clients. You are good enough to get the rate you deserve.
5. Lose Track of Your Money.
This is the most important point.
Let’s be honest saving money isn’t as fun as spending it. I love buying new things. It’s human nature to want to spend your cash. But every business will have a cash flow hiccup, a dry spell, a downtime.
Now if you’re thinking “I run a good business and do good, things like that won’t happen to me.” you’re wrong! A hiccup in cash flow can happen to anyone even if you’re running a great business. Just look at the businesses along the Gulf Coast and how the BP oil spill effected their businesses. These businesses were faced with an worse economy due to outside forces. The businesses that are surviving have cash saved. Don’t fool yourself, you will hit a dry spell and that cash reserve will save your butt. Keep 2-4 months of overhead in savings. You’ll thank me later.
Other mistakes that just suck
- No backup of files, I lost 2 years of data from an external hard drive crash.
- Not saving for tax time.
- Working from home full-time. Find a coffee shop or coworking desk at least 2 days per week.
- Fixed bid pricing and client contracts.
What mistakes have you learned from?
By working faithfully eight hours a day you may eventually get to be boss and work twelve hours a day.
- Robert Frost
A programmer on the cloud
Tuesday, January 11, 2011
Plupload - A beautiful file uploader powered by jQuery
Plupload v1.3.0
Allows you to upload files using HTML5 Gears, Silverlight, Flash, BrowserPlus or normal forms, providing some unique features such as upload progress, image resizing and chunked uploads.
Comments"
Thursday, January 6, 2011
5 Things You Might Not Know about jQuery
jQuery is a very powerful library, but some of its powerful
features are obscure, and unless you've ready the jQuery source code,
or my new book jQuery Pocket Reference,
you may not know about them. This article excerpts that book to
describe five useful features of jQuery that you might not know
about.
1) You don't have to use $(document).ready() anymore,
though you'll still see plenty of code out there that does. If you
want to run a function when the document is ready to be manipulated,
just pass that function directly to $().
2) attr() is jQuery’s master attribute-setting
function, and you can use it to set things other than normal HTML
attributes. If you use the attr() method to set an attribute
named “css”, “val”, “html”, “text”, “data”,
“width”, “height”, or “offset”, jQuery invokes the method
that has the same name as that attribute and passes whatever value
you specified as the argument. The following two lines have the same
effect, for example:
$('pre').attr('css', {backgroundColor:'gray'})
$('pre').css({backgroundColor:'gray'})
You probably already know that you can pass a tagname to $()
to create an element of that type, and that you can pass (as a second
argument) an object of attributes to be set on the newly created
element. This second argument can be any object that you would pass
to the attr() method, but in addition, if any of the
properties have the same name as the event registration methods, the
property value is taken as a handler function and is registered as a
handler for the named event type. The following code, for example,
creates a new element, sets three HTML attributes, and registers an
event handler function on it:
var image = $('', {
src: image_url,
alt: image_description,
className: 'translucent_image',
click: function() {$(this).css('opacity', '50%');}
});
3) jQuery defines simple methods like click() and change()
for registering event handlers and also defines a more general
event handler registration method named bind(). An important
feature of bind() is that it allows you to specify a
namespace (or namespaces) for your event handlers when you register
them. This allows you to define groups of handlers, which comes in
handy if you later want to trigger or de-register all the handlers in
a particular group. Handler namespaces are especially useful for
programmers who are writing libraries or modules of reusable jQuery
code. Event namespaces look like CSS class selectors. To bind an
event handler in a namespace, add a period and the namespace name to
the event type string:
// Bind f as a mouseover handler in namespace 'myMod'
$('a').bind('mouseover.myMod', f);
If your module registered all event handlers using a namespace, you
can easily use unbind() to de-register them all:
// Unbind all mouseover and mouseout handlers
// in the 'myMod' namespace
$('a').unbind('mouseover.myMod mouseout.myMod');
// Unbind handlers for any event in the myMod namespace
$('a').unbind('.myMod');
4) jQuery defines simple animation functions like fadeIn(),
and also defines a general-purpose animation method named animate().
The queue property of the options object you pass to
animate() specifies whether the animation should be placed
on a queue and deferred until pending and previously queued
animations have completed. By default, animations are queued, but you
can disable this by setting the queue property to false.
Unqueued animations start immediately. Subsequent queued animations
are not deferred for unqueued animations. Consider the following
code:
$('img').fadeIn(500)
.animate({'width':'+=100'},
{queue:false, duration:1000})
.fadeOut(500);
The fadeIn() and fadeOut() effects are queued, but
the call to animate() (which animates the width
property for 1000ms) is not queued. The width animation begins at the
same time the fadeIn() effect begins. The fadeOut()
effect begins as soon as the fadeIn() effect ends—it does
not wait for the width animation to complete.
5) jQuery fires events of type “ajaxStart” and “ajaxStop” to
indicate the start and stop of Ajax-related network activity. When
jQuery is not performing any Ajax requests and a new request is
initiated, it fires an “ajaxStart” event. If other requests begin
before this first one ends, those new requests do not cause a new
“ajaxStart” event. The “ajaxStop” event is triggered when the
last pending Ajax request is completed and jQuery is no longer
performing any network activity. This pair of events can be useful to
show and hide a “Loading...” animation or network activity icon.
For example:
$('#loading_animation').bind({
ajaxStart: function() { $(this).show(); },
ajaxStop: function() { $(this).hide(); }
});
These “ajaxStart” and “ajaxStop” event handlers can be bound
to any document element: jQuery triggers them globally rather than on
any one particular element.
Comments"
