brite, a MVC Framework for jQuery

CSS: Less JavaScript and Java Less Processor

February 23rd, 2012 by jeremychone | No Comments »

less

Asual Java Less processor (not on maven central yet ;(

Java: json parser and serializer

February 19th, 2012 by jeremychone | No Comments »

Jackson

Check the later Jackson JSON Parser core release (apache source license) for the latest version.

<dependency>
	<groupId>org.codehaus.jackson</groupId>
	<artifactId>jackson-mapper-asl</artifactId>
	<version>1.9.4</version>
</dependency>

All Jackson Maven Dependencies

Java: Eclipse Copyright Plugins to easily update java file headers

February 13th, 2012 by jeremychone | No Comments »

Copyright Plugins

HTML5: Display local images without going to server

January 25th, 2012 by jeremychone | No Comments »

Note: assuming jquery

// get the input element
var $fileElement = $("input[type='file']");
var $image = $("img:first");

// on change
$fileElement.on("change",function(){
   if (this.files && this.files.length > 0){
       var file = this.files[0];
       var reader = new FileReader();
       reader.onload = function(e) {
	   $img.attr("src", e.target.result);
       }
       reader.readAsDataURL(file);
   }
});

Google API References

December 11th, 2011 by jeremychone | No Comments »

Color Palette Builders: Kuler and Color Scheme

December 10th, 2011 by jeremychone | No Comments »

Grid Design Resources

November 30th, 2011 by jeremychone | No Comments »

font: Some fonts and their examples

September 8th, 2011 by jeremychone | No Comments »

Lucida

{font-size: 1.5em;
 font-family: "lucida grande","lucida sans unicode", sans-serif;
}

1.5em lucida granded

Live Example

phonegap: Phonegap 1.0 iOS Install Note

August 19th, 2011 by jeremychone | No Comments »

Thanks for installing PhoneGap 1.0.0!
Plugins
• Plugins MUST add their plugin mapping to their app’s PhoneGap.plist Plugins key, if not they will not work (see your plugin’s README)
• A lot of plugins have changed their mapping names in PhoneGap.plist, you might have to copy and use the new PhoneGap.plist in your app.
• Modify your Plugin headers as well: http://wiki.phonegap.com/PhoneGap-iOS-Plugins-Problems
• UN-DEPRECATED: Camera.getPicture core Plugin granted a reprieve.
• REMOVED: Network.isReachable core Plugin removed in 1.0, use the Network Information API instead
• REMOVED: Notification activityStart, activityStop, loadingStart, loadingStop core plugin functions removed in 1.0 and put in the plugins repo
• REMOVED: Image, Movie removed (unused)
• REMOVED: File.writeAsText removed
• REMOVED: Plugin base class ‘PhoneGapCommand’ is removed in 1.0, use the base class ‘PGPlugin’ instead in your third-party Plugins
• ADDED: Splash screen control plugin, to hide/show (use in conjunction with PhoneGap.plist setting AutoHideSplashScreen)
Upgraders
1. Add the existing framework "CoreMedia" to your project
2. Set it to weak/optional in your Target
3. Copy the new phonegap.*.js files in manually to your "www" folder (COPY from /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework/www)
4. Update your script references in your HTML files to point to the .js files above
5. Copy "Capture.bundle" from /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework and add it to your project as well (or copy from a new project)
6. Set the existing framework "UIKit" to "Weak/Optional" in your project (to support iOS 3.x devices)
7. Set the existing framework "AVFoundation" to "Weak/Optional" in your project (to support iOS 3.x devices)
8. You can remove "CoreTelephony.framework" if it exists (and none of your plugins use it), it is not used by PhoneGap anymore
9. Recommended steps: http://wiki.phonegap.com/Upgrading%20your%20iOS%20PhoneGap%20Project

Xcode 4
1. Launch Xcode 4
2. Select "New Project…" then under the File menu
3. Select "Application", under the "iOS" section
4. Select "PhoneGap-based Application" then in the right pane
5. Select the "Next" button
6. Name your project and bundle identifier
7. Select the "Next" button
8. Choose the location where you want the new project to be

*IMPORTANT*: On first run, it will create a sample "www" folder for you inside your project. After that, you MUST drag and drop the "www" folder into your project in Xcode, to create a folder reference for it.
*IMPORTANT*: For the "CoreMedia" framework, you MUST set the linkage as "Optional", if not iOS 3.x devices will crash. The linkage type could not be set in the template itself (undocumented).
*IMPORTANT*: For the "UIKit" framework, you MUST set the linkage as "Optional", if not iOS 3.x devices will crash. The linkage type could not be set in the template itself (undocumented).
*IMPORTANT*: For the "AVFoundation" framework, you MUST set the linkage as "Optional", if not iOS 3.x devices will crash. The linkage type could not be set in the template itself (undocumented).
That’s it! Modify the contents of the "www" directory to add your HTML, CSS and Javascript.

Xcode 3
1. Launch Xcode 3
2. Select "New Project…" then under the File menu
3. Select PhoneGap, under the "User Templates" section
4. Select "PhoneGap-based Application" then in the right pane
5. Select the "Choose…" button
6. Name your project
7. Choose the location where you want the new project to be.

That’s it! Modify the contents of the "www" directory to add your HTML, CSS and Javascript.

Links
• www.phonegap.com
• docs.phonegap.com
• github.com/phonegap/phonegap-iphone

OSX: How to edit/flush the hosts on Mac

August 14th, 2011 by jeremychone | No Comments »

Edit the hosts file

sudo vi /etc/hosts

Flush dns

dscacheutil -flushcache 

Source