Monday, June 24, 2013

Study: Parallax Scroll


  • Simple Parallax

http://blog.fraser-hart.co.uk/jquery-parallax-scrolling/

One solid background image and 2 transparent PNG’s 

For every X pixels you scroll the window, with jQuery, you move the “nearest” layer 0.8 x X pixels, the middle layer at 0.5 x X pixels and the “furthest” layer 0.2 x X pixels.

Pro: Basic parallax scroll, dead simple and easy to understand the parallax principle.
Con: Not fancy animation


  • Skrollr (by Alexander Prinzhorn)

https://github.com/Prinzhorn/skrollr

U se the HTML5 data- attributes to define multiple sets of styles (we call each of them keyframe) and skrollr interpolates between them
<div class="elements pineapple"
    data-start="left: 10%; top: 325px; opacity: 1;transform:rotate(-30deg)"
    data-20-start="left: 20%; top: 400px; opacity: 1; transform:roate(20deg)"

    data-50-start="left: 30%; top: 325px; opacity: 0.5; transform:rotate(40deg)">

skrollr.init({
  forceHeight: false

});

Great Demo http://sammarkiewi.cz/
The body is fixed
clothes coming from different direction.
Pro: fairly easy to use and understand;
Con: only scrolling up and down, doesn't scroll sideways


  • Scroll Path

https://github.com/JoelBesada/scrollpath#readme

rotate or move canvas   


  • Parallax-JS (by Razorfish)

https://github.com/razorfish/Parallax-JS

Any <section> tag, along with any element with the animate class is parsed for parallax effects. <section> tags are assumed to line up one-after-another, all other tags can have any effect desired.


  • Parallax.js (by stolksdorf)
https://github.com/stolksdorf/Parallaxjs/

slide in pages of your site with having a parallaxing background



  • Scrollorama (by John Polacek)

http://johnpolacek.github.io/scrollorama/
http://johnpolacek.github.io/superscrollorama/

transitions, zooms, rotations, etc. using any animatable CSS property that takes a numeric value







  • Stellar.js (by Mark Dalgleish)

https://github.com/markdalgleish/stellar.js

Scrolling sideways












  • jParallax (by stephband)

http://stephband.info/jparallax/







Monday, May 27, 2013

Unobtrusive JavaScript

http://dev.opera.com/articles/view/graceful-degradation-progressive-enhancement/

<p id="printthis">Thank you for your order. Please print this page for your records.</p> <script type="text/javascript"> (function(){ if(document.getElementById){ var pt = document.getElementById('printthis'); if(pt && typeof window.print === 'function'){ var but = document.createElement('input'); but.setAttribute('type','button'); but.setAttribute('value','Print this now'); but.onclick = function(){ window.print(); }; pt.appendChild(but); } } })(); </script>


  • By wrapping the whole functionality in an anonymous function and immediately executing it — this is what(function(){})() does — we don’t leave any global variables behind.
  • We test for DOM support and try to get the element we want to add the button to.
  • We then test if the element exists and if the browser has a window object and a print method (by testing if the type of this property is function).
  • If both are true, we create a new click button and apply window.print() as the click event handler.
  • The last step is to add the button to the paragraph.

Thursday, May 16, 2013

Develop Website on Mac

1. Set up Development Environment

Download and Install XAMPP on Mac OS X
http://www.apachefriends.org/en/xampp-macosx.html#849

X (to be read as "cross", meaning cross-platform)
Apache HTTP Server
MySQL
PHP
Perl
Local folder location:
/User/YourUserAccount/Sites/

Access Vis
http://localhost/~YourUserAccount

or /Applications/XAMPP/htdocs/
It cannot be modified at first, asks for authentication
Refer to: http://stackoverflow.com/questions/9046977/xampp-permissions-on-mac-os-x
  1. Open applications folder
  2. Locate XAMPP folder
  3. Right click, get info (as described above)
  4. In pop-up window locate the 'sharing & permission' section
  5. Click the 'locked' padlock symbol
  6. Enter admin password
  7. Change 'Everyone' permissions to read & write
  8. In the get info window still, select the 'cog' icon' drop down option at the very bottom and select 'Apply to enclosed items' this will adjust the permission across all sub-folders as well.
  9. Re-lock the padlock symbol
  10. Close the 'Get Info' window.

2. Install Eclipse
 I used Eclipse PDT (PHP Development Tool)

Refresh a view, hold "fn" key + F5

3. Add favicon
Create your favicon
http://tools.dynamicdrive.com/favicon/

Add between <head>
<head>
    <link rel="icon" type="image/ico" href="favicon.ico"/>
</head>

Problem: refresh browser doesn't change to new favicon
Solved: clear cache in browser, force-refresh (Command +R)

but it only works when files are on the server, not locally.

4. Setup MySQL
http://localhost/phpmyadmin/
#2002 The server is not responding (or the local MySQL server's socket is not correctly configured) 

Re-opened in a New Incognito Window, it worked; so clear the browser cache did the trick.

Refer to: Creating a MySQL Database using XAMPP
http://complete-concrete-concise.com/web-tools/creating-a-mysql-database-using-xampp

Refer to: Access MySQL Command Line in XAMPP
http://ja.meswilson.com/blog/2007/04/07/access-mysql-command-line-in-xampp/


5. Setup Wordpress
Refer to: http://www.siteground.com/tutorials/wordpress/wordpress-installation.htm


  1. Download wordpress  http://wordpress.org/download/
  2. Unzip it
  3. Put the folder under your web directory, in my case /Applications/XAMPP/htdocs/
  4. Open a browser  http://localhost/wordpress/
  5. It will say I don't have a wp-config.php file, click the button "Create a Configuration File", enter Database name, User name
  6. Next page "Sorry, but I can’t write the wp-config.php file.You can create the wp-config.php manually and paste the following text into it." so create wp-config.php and change database name, user name and password.
  7. Run and install http://localhost/wordpress/wp-admin/install.php







Saturday, December 1, 2012

SVN on Mac

Use Mercurial 
1. download, open, and run
2. open Terminal window, verify Mercurial is running
hg --version

https://blogs.oracle.com/edwingo/entry/using_mercurial_on_mac_os

MercurialEclipse
In Eclipse, Help > Install New Software
add http://cbes.javaforge.com/update

http://javaforge.com/project/HGE#download

In Eclipse, File > Import, 
select Mercurial > Project from Local Mercurial Repository 



Wednesday, November 28, 2012

UX Design Process

UPA Usability Poster

Analysis Phase
- Meeting with stakeholders (meeting, conference calls)
- Develop usability goals and objectives
- Conduct field studies (visit work environment, watch how users work)
- Look at competitive product
- Create user profiles (Persona)
- Develop a task analysis (Mental Model)
- Document scenario

Design Phase
- Brainstorm concepts and ideas
- Develop screen flow
- Walkthrough the screen flow with the team
- Create low-fidelity wireframe (Balsamiq)
- Walkthrough the low-fidelity wireframe with the team / user
- Create high-fidelity wireframe (Photoshop)
- Walkthrough the high-fidelity wireframe with the team / user
- Document design specification

Implementation Phase
- Conduct usability testing as soon as possible

Deployment Phase
- Gather user feedbacks (Surveys, Field studies)
- Check usability objectives


Friday, November 16, 2012

Wireframe Tools

Balsamiq
http://www.balsamiq.com/products/mockups
Web based / Desktop version
Free
Single user license $79

Mockingbird
https://gomockingbird.com/

Web based
Free
Personal $9/moth







Friday, November 2, 2012

Logo Design

Logo Design Tips
http://www.creativebloq.com/graphic-design/pro-guide-logo-design-21221
Preparation:
01. Research your audience
02. Immerse yourself in the brand
03. Do your online research
Logo Moose http://logomoose.com/
Logo Gala http://www.logogala.com/
04 Seek inspiration
05 Fight the temptation to imitate
06 Don't let the client dictate
07 Create a board and rip it up

Initial Design Work
08 Sketch it out
09 Create vectors

Nailing the Typography
10 Choose your typeface carefully
11 Adapt an existing typeface
12 Avoid gimmicky fonts
13 Consider a type-only approach

Use of Space
14 Think about the space around your logo design
15 Use negative space carefully

Graphic Design
16 Make your design active, not passive
17 Consider tones as well as colours
18 Be experimental

Keep it Clean and Modern
19 Don't use more than two fonts
20 Ensure it works on dark backgrounds
21 Keep abreast of trends
22 Subtract as much as possible
23 Don't try to do too much
24 Create a lock up version
25 Make your logo design responsible

Functionality
26 Create different size versions
27 Make it legible
28 Create a non-print variants
29 Make it future-proof

Business Consideration
30 Don't confuse logo with brand
31 Get the tone right

Feedback
32 Show your logo design around
33 Stick to your convictions
34 Ask the client specific questions
35 Test it internationally
36 Check for hidden words
37 Expect your logo design to be panned

Style Guides
38 Create a logo style guide
39 Dictate color options
40 Specific sizes
41 Advice on positioning
42 Advice on spacing
43 Define no-nos

Going future
44 Download the logo design flowchart
http://mos.computerarts.co.uk/pdf/CAP148_chart.pdf