-
Developer Links
- Get coding advice with HTML5 Please
- HTML5 Communication Interfaces Tutorial
- wikipedia.org Canvas element
- HTML5 Canvas KineticJS Text Tutorial
- w3schools.com – HTML5 Canvas
- Canvas tutorial
- Html Reference – The canvas element
- How to Draw with HTML 5 Canvas
- HTML5 canvas – the basics
- IMPROVING HTML5 CANVAS PERFORMANCE
- HTML 5 Canvas Deep Dive
- RGraph: HTML5 Javascript charts library
- A Developer’s Guide to HTML5 Canvas
- How to Use the HTML 5 Tag CANVAS
- HTML5 Canvas
- Html5 Canvas tutorial
- Unleash the Power of HTML 5 Canvas for Gaming
- Html5 test website
- HTML5 Canvas Drag and Drop Tutorial
- Making Use of HTML5 Storage
- HTML5 Image Effects: Sepia
- HTML5 jQuery Paint Plugin – Paint On A Canvas Area With Various Shapes & Colors Including An Eraser
Canvas and Image manipulation
- Html5 drawing images
- Optimize Images With HTML5 Canvas
- Sketching with HTML5 Canvas and “Brush Images”
- Resizing an image in an HTML5 canvas
- HTML5 Canvas Image Size Tutorial
- KineticJs Javascript library
- HTML5 Canvas Planets Image Map
- HTML5 Canvas Drag, Drop, and Resize Images
- Create a Drawing App with HTML5 Canvas and JavaScript
- Detect mouseover of certain points within an HTML canvas?
- HTML5 Canvas Shape Events with KineticJS
- USING IMAGE DATA INSIDE THE HTML5 CANVAS ELEMENT
- Creating an HTML 5 canvas painting application
- Making and Moving Selectable Shapes on an HTML5 Canvas: A Simple Example
- Core HTML5 Canvas: Graphics, Animation, and Game Development (Core Series) [Kindle Edition]
- Using HTML Elements in a Canvas
- Image Manipulation with HTML5 Canvas: A Sliding Puzzle
- Display Images in Black & White Using the HTML5 Canvas
- Creating a picture gallery with HTML5 canvas
- Using images in HTML5 Canvas
- Adjusting Image Brightness and Color Using the HTML5 Canvas API
- http://www.qoncious.com/questions/how-load-image-html5-canvas-and-do-pixel-manipulation
- http://www.html5rocks.com/en/tutorials/canvas/imagefilters/
- http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-brighten-or-darken-image-tutorial/
- http://thecodeplayer.com/walkthrough/7451e323c97069c09b63cfae5e9f6a32
- http://old.haxe.org/doc/haxe_instructors/justinfront/javascript_canvas_pixels
- http://stackoverflow.com/questions/22097747/getimagedata-error-the-canvas-has-been-tainted-by-cross-origin-data
Templates, Applications, Tutorials
- 35 Best Free HTML5 and CSS3 Templates
- Picozu Editor
- NEW HTML5 POWERED WEBSITES FOR INSPIRATION
- 21 Ridiculously Impressive HTML5 Canvas Experiments
- AtG Weekend Gaming: HTML5 games, id on github
- 9elements Canvas demos
- Canvas Demos
- Tag Canvas demo
- HTML5 Canvas Clock (Keeps Accurate Time)
- Application Development: HTML5 and CSS3: Elements That Are Safe to Use
- Kendoui Demos
- Learn HTML5 in 5 Minutes!
- Sky Scissors
- Livewire javascript library
- Car orientor
- Image car annotation
- Live 3d
HTML5 Programming
Posted by lubosp on March 8, 2012
Posted in java | Leave a Comment »
Generating Java Properties String retrieval class
Posted by lubosp on March 4, 2012
Resource file frequency – Source File
| Retrieval Class | Package | Bundle name | Properties file | |
| no package, no retrieval class | <source file name> + "ResourceStringManager" | source file package | from properties file <source file name> | <source file name>.properties |
| package, no retrieval class | <source file name> + "ResourceStringManager" | package | from properties file <source file name> | <source file name>.properties |
| no package, retrieval class | retrieval class | source file package | from properties file <source file name> | <source file name>.properties |
| package, retrieval class | retrieval class | package | from properties file <source file name> | <source file name>.properties |
Notes
- Generated Retrieval class use bundle with the name of the source file when generate. If the same retrieval class is used for multiple source classes (row 3 and 4), the retrieval class has to be manually extended to use multiple bundles. The retrieval method has to pass the source file name and the method has to extract the bundle name from it. See how to create multiple resource files bundle below.
- If no retrieval class is specified (row 1 and 2) the retrieval class is generated for each source file/properties file.
Resource file frequency – Project
| Retrieval Class | Package | Bundle name | Properties file | |
| no package, no retrieval class | capitalized scan name (spaces removed) + "ResourceStringManager" | source file package | from properties file | specified properties file |
| package, no retrieval class | capitalized scan name (spaces removed) + "ResourceStringManager" | package | from properties file | specified properties file |
| no package, retrieval class | retrieval class | source file package | from properties file | specified properties file |
| package, retrieval class | retrieval class | package | from properties file | specified properties file |
Notes
- If no package is specified (row 1 and 3) the source file package is used, which means that Retrieval class will be created in each package.
Notes
How to create Resource file per package
Use Frequency project, externalize one package at the time and after each package modify package and retrieval class.
If "Do not use Retrieval Class" selected (default)
Uses only String retrieval method (getString(key)). This will always generate Java error if the source class definition does not contain getString(key).
How to create multiple resource files bundle
ResourceBundle.Control() controls the list of files for the ResourceBundle. You can overwrite getCandidateLocales and toBundleName. toBundleName converts locale to the "file name" and the list of locales you can control in getCandidateLocales. For example like (It works only in Java 1.6+):
final String[] variants = new String[]{"your names"};
ResourceBundle.getBundle(baseName, locale,
new ResourceBundle.Control() {
public List<Locale> getCandidateLocales(String baseName, Locale locale) {
List<Locale> out = new ArrayList<Locale>();
String language = locale.getLanguage();
String country = locale.getCountry();
for (String variant : variants) {
out.add(new Locale(language, country, variant));
}
out.addAll(super.getCandidateLocales(baseName, locale));
return out;
}
public String toBundleName(String baseName, Locale locale) {
Locale l = new Locale(locale.getLanguage(), locale.getCountry());
return locale.getVariant() + "." + super.toBundleName(baseName, l);
}
});
Links
Posted in java | Leave a Comment »
Using IzPack Installer
Posted by lubosp on February 8, 2012
IzPack installer
IzPack is the best open source Java installer. Documentation is available here.
Tutorials
Debugging
Following links describe how to debug IzPack installer:
Posted in java | Leave a Comment »
My Google Chrome Extensions
Posted by lubosp on June 2, 2010
Intro
I started using Google Chrome browser (now using 5.0.375.55 beta) about 5 months ago after using Mozilla Firefox for quite a few years. Firefox 3.5+ started hanging (maybe extension?) so I decided to give Chrome a try. Here are the reasons why I decided to switch to Chrome:
- Each Chrome tab and extension runs in separate process, so rogue web site or extension cannot take down the whole browser. Memory consumption of Chrome and Firefox is about the same, but Chrome is more robust and doesn’t hang.
- Extensions are still better in Firefox, but Chrome is getting better and has most of the extensions I need, and Google stuff like Gmail, Reader, Voice, Calendar integration is better in Chrome (and I use a lot of Google tools).
- Speed, javascript rich sites like Gmail are quite faster.
- Screen real estate management is better in Chrome.
- Faster development cycle for Chrome, and better chance Chrome will get better faster than Firefox.
List of Extensions I use
General
- AdBlock – AdBlock for Chrome! Blocks ads all over the web
- AniWeather – AniWeather = Animated Weather + Any Weather
- Copy Without Formatting – Provides various ways (customizable keyboard shortcut, floating button, or auto-copy) to copy your selection WITHOUT formatting
- Docs PDF/PowerPoint Viewer (by Google) – Automatically previews pdfs, powerpoint presentations, and other documents in Google Docs Viewer
- FastestChrome – Browse Faster – Save time and enhance your productivity! Get quick definitions, auto-load next pages, search faster, and more
- IE Tab – Display web pages using IE in a tab
- LastPass – LastPass is a free password manager and form filler. LastPass is also available for Firefox, Internet Explorer and Safari (Mac)
- MegaUpload DownloadHelper – No More Countdowns – Automatic Downloads
- Session Manager – Session Manager lets you save sessions of your opened tabs and windows, and to quickly re-open them whenever you like
- Speed Dial – Speed Dial for Chrome – replace Chrome new tab with your predefined visual bookmarks
- Google Calendar Checker (by Google) – Quickly see the time until your next meeting. Click the button to open your calendar
- Google Dictionary (by Google) – View definitions easily as you browse the web
- Google Mail Checker – Displays the number of unread messages in your Google Mail inbox. You can also click the button to open your inbox
- Google Reader Notifier (by Google) – Displays the number of unread items in your Google Reader account. Clicking can show a preview popup or open your Reader account
- Google Voice (by Google) – Make calls, send SMS, preview Inbox, and get notified of new messages
- RSS Subscription Extension (by Google) – Adds one-click subscription to your toolbar
- Mini GoogleMaps – Google maps in a click away
Social
- Facebook for Google Chrome – Extension which lets you read your Facebook news feed and wall. You can also post status updates.
- Chromed Bird – Chromed Bird is a Twitter extension that allows you to follow your timelines and interact with your Twitter account
- Diigo Web Highlighter and Bookmark – Highlight webpages with multiple colors as you read online. Also allow tagging and sticky notes
- Xmarks Bookmarks Sync – Backup and sync your bookmarks and open tabs across computers and browsers. Xmarks is also available for Firefox, Safari and IE
Development
- Firebug Lite for Google Chrome – Firebug Lite for Google Chrome, supported by the Firebug Working Group
- GWT Developer Plugin
- Regular Expression Checker – Regular Expression Testing Tool
- Simple REST Client – Construct custom HTTP requests to directly test your web services
You can set a theme in Options/Personal Stuff/Themes/Get Theme…
You can import data from different browser in Options/Personal Stuff/Browser Data/Import Data from different browser
Posted in web browser | Tagged: web browser chrome | Leave a Comment »
Facebook API notes
Posted by lubosp on May 22, 2010
- Facebook API
- How Facebook Authenticates Your Application
- Authorizing Applications
- Authorization and Authentication for Desktop Applications
- Verifying The Signature
- Connect/Authentication and Authorization
- Facebook Connect
- Auth.createToken
- Facebook Java API
- Getting started with Facebook application
- Facebook Java libraries
- Social Java: Social Application development using Java
Posted in tools, web | Tagged: facebook api | Leave a Comment »
Using Git SCM
Posted by lubosp on May 22, 2010
Following post is just a collection of links I collected while started using Git source control system:
- Git in 5 minutes
- Pro Git Book
- Git for Subversion users, Part 1: Getting started
- Git with Eclipse (EGit) – Tutorial
- EGit User’s Guide
- Git for Eclipse users
- Git – SVN Crash Course
- Howto use Git and SVN together
- DVCS -> install Git/EGit and Mercurial/HgEclipse
- DVCS part 2: initialize and import from local Repositories (EGit – HgEclipse)
- DVCS part 3: team… options and first steps using EGit, HgEclipse
Posted in tools, vcs | Tagged: vcs | Leave a Comment »
Prettier failures using Swing TaskDialog « Schneide Blog
Posted by lubosp on April 6, 2010
Prettier failures using Swing TaskDialog « Schneide Blog
via Prettier failures using Swing TaskDialog « Schneide Blog.
Posted in swing | Tagged: dialog | Leave a Comment »
Promiscuous Integration vs Continuous Integration
Posted by lubosp on February 11, 2010
Excellent article from Martin Fowler about VCS, DVCS and Continuous Integration Promiscuous Integration vs Continuous Integration.
Posted in build, vcs | Tagged: integration, vcs | Leave a Comment »
Introduction to Quartz Scheduled Jobs
Posted by lubosp on February 5, 2010
Excellent introduction to Quartz Scheduled Jobs. Quartz is Java framework for sophisticated jobs scheduling.
Posted in java | Tagged: java, scheduling | Leave a Comment »
Developing Blackberry application
Posted by lubosp on January 7, 2010
This blog entry has been moved as a page to my Mobile Development blog.
Posted in blackberry, java | Tagged: blackberry, java | Leave a Comment »