New Adventures in Software » More Stupid Java Tricks
My previous post was reasonably popular so I decided to follow-up with some more stupid Java tricks. It should go without saying that you shouldn’t use these techniques in any serious code, unless of course your objective is to write unmaintainable code. It was pointed out to me by a couple of people that the puzzle I posed previously is also in Josh Bloch and Neal Gafter’s excellent Java Puzzlers book. If you are interested in all of the ugly corners of the Java platform, this book is well worth buying. Unchecked Checked Exceptions Throw checked exceptions without the hassle of dealing with them There’s a lot of debate about the relative merits of checked and unchecked exceptions in Java. The slightly more socially-acceptable Class.newInstance() method is another way. Note that this method propagates any exception thrown by the nullary constructor, including a checked exception. Invasion of Privacy Strings aren’t really immutable, even literals can’t be trusted then this prints this Any more?
bartaz/impress.js
8 useful sites for web developers
Min.us: The easiest way to upload images Any developer, designer or webmaster have to share images online with clients and co-workers. Min.us is an all new service that allow you to upload images extremely easily: Just drag and drop them into Min.us and the image will be saved on their servers. A short url will be automatically created so you can share it across the web.» Wirify: Transform any web page into wireframes Wireframes are extremely useful when designing a website. CSS Resetr: View and compare CSS resets CSS resets are a must have in any stylesheet in order to render differences between browsers. Head JS: Speed up your site with 2.30 kb of Javascript Head JS is a simple and light (2.3 kb) script that will make your site faster by loading other scripts as images. Copy Paste Character: Use special characters with ease Special characters are often a pain to deal with, because they’re not on your keyboard, and because you don’t know the related ASCII code.
Creating a picture gallery with HTML5 canvas
Displaying pictures in a gallery is something that so easy to do with one of the many jQuery Plugins, but what if you want to use the HTML5 canvas tag? Capital FM recently created a HTML5 showcase page called Be A Star and at the bottom they show off a rather fancy image gallery. The gallery uses HTML5 canvas and below I’m going to show how you can create something like this yourself. If you want to see how they also used CSS3 check this post out. The canvas tag is like a bitmap, once we draw an image on the canvas we can’t go back and query that image to obtain it’s properties. Unlike DOM objects we can not simply animate them by altering their x and y coordinates. If you want to animate an image it’s up to you to hold a reference to that image and then redraw the image by placing it in a different position on the canvas on every tick of the loop. Because this is so complicated I’m going to use a nice little library called Easel.js. Next we add the init function to the page.
Desktop Fun: Video Game Fonts
If you love video games and the stylish text shown in them, then we have a great collection of game fonts that you can add to your system. Note: To manage the fonts on your Windows 7, Vista, & XP systems see our article here. Perfect Dark Download Resident Evil Download SoulCalibuR Download *shown here in all capital letters Download Mortal Kombat Download Unreal Tournament Download AmazDooM Download Shadow Of Xizor Download Halo Outline Download Metal Gear Solid Download Diablo Download Download Starcraft Download Super Mario Bros. Download Mario Luigi 2 Download Zelda DX Download pacfont Download Gamegirl Classic Download Atari Kids Download Zrnic (PlayStation) Download For more great ways to customize your computer be certain to look through our Desktop Fun section.
Effective Use of Color Psychology in Web Design
Colors are vital elements it web designing. It can make a site look visually attractive. It is important for web designers to consider colors for it can greatly influence the site and the visitors as well. Different colors influence the mood and state of the human mind. 1. The color red is considered as the hottest and most dynamic color. View Site Finer Home uses red as its primary color and is made even more appealing with the use of floral patterns. View Site Also using patterns and two shades of red for its stripe background, Holiday To Go succeeded to make the site look more inviting for costumers. 2. The color orange can show comfort, creativity, celebration, fun, youth, and affordability. View Site Colourpixel managed to use different shades of orange for their site which make it look creative and vibrant. View Site A darker shade of orange is seen in Traffik giving it a more serious and professional look. 3. View Site View Site 4. View Site Green is the coolr of nature. View Site 5. Ads 6.
Awesome WordPress hacks to make your blogger life easier
Hardcode to make WordPress faster Hardcoding is generally not a good practice, however in the case of an established website, hardcoding your blog url, site url, template path and stylesheet path will make your blog run faster. When a function such as bloginfo('url') is called, WordPress executes a query to your database to get the value, except if the value can be found on your wp-config.php file. To hardcode those constants, edit wp-config.php and paste the following (Don’t forget to change the values!): define('WP_HOME', ' // blog url define('WP_SITEURL', ' // site url define('TEMPLATEPATH', '/absolute/path/to/wp-content/themes/cwc5'); define('STYLESHEETPATH', '/absolute/path/to/wp-content/themes/cwc5'); Source: Set HTML editor as the default I know a lot of tech-savvy persons who don’t really like WordPress “visual” editor. <?
How to Create Your First Web Page
Note: If you know anything at all about HTML and CSS, don’t bother reading this, it’s a guide for the uninitiated, technophobes, luddites, computer-illiterates, anyone who is more comfortable with a pen and paper than a keyboard and mouse. If making a web page seems like brain surgery to you, then this is the article for you. What you need to know The only prior knowledge I will assume is that you’ve used a computer before, you’re familiar with using a keyboard and a word processor, and you’ve at least seen a website. The Basics When you visit a website (for example the one you’re reading now), you see a page in your web browser (the program you use to access the internet) , containing text, images and maybe some other things like videos, music etc. In order to display a page correctly, the web browser needs to know about the structure of the page, e.g. What HTML Looks Like HTML uses ‘tags’ to identify different parts of a page. Getting Started Next, the page must contain a HEAD section.