Sunday, January 31, 2010

Spring as a Full Stack Web Framework - Dave Syer

This session at Spring eXchange 2008, explored the "full stack" web framework trend and answered the question: how does Spring stack up? This session defined what a full-stack web framework is, then provided a fair technical comparison between a Spring-centric web development stack and the alternatives. Attendees learned the feature-set of modern "full stack" web frameworks, and what Spring has that differentiates itself from the pack.

in reference to:

"Spring as a Full Stack Web Framework - Dave Syer"
- Spring as a Full Stack Web Framework - Dave Syer (view on Google Sidewiki)

Friday, January 29, 2010

Logan’s Internet is super fast

Akamai’s Technologies’ State of the Internet Report for the third quarter of 2009 says. Akamai is a Cambridge, Mass.-based firm that, very simply put, stores content for clients and delivers it to the Internet. It calculates speeds by monitoring time it takes for data to move between locations and the company’s data servers.

in reference to: The Herald Journal Serving Logan and Cache Valley > News > Report: Logan’s Internet is super fast (view on Google Sidewiki)

Saturday, January 23, 2010

Automation Testing Tools

Open Source:-

FitNesse: http://fitnesse.org/
FitNesse is an acceptance testing tool that allows tests to be expressed as tables of input data and expected output data, described in Fit for Developing Software: Framework for Integrated Tests.


Watir: http://wtr.rubyforge.org/
Watir is an open source library for automating web browsers allowing automated testing of web applications. It started out on Internet Explorer on Windows but is in the process of being ported to other browsers.


Selenium: http://selenium.openqa.org/
Selenium is a cross-platform suite of tools to automate web application testing.


Sahi: http://sahi.co.in/
Sahi is an automation and testing tool for web applications that runs as a proxy server.


The Grinder: http://grinder.sourceforge.net/
This is an open source load testing tool in which scripts are written Jython.


JMeter: http://jakarta.apache.org/jmeter/
This is an open source load testing tool in which scripts are written in Java.


Peach Fuzzing Platform: http://peachfuzzer.com/
Peach is a fuzzer that is capable of performing both generation- and mutation-based fuzzing.


RFuzz: http://rfuzz.rubyforge.org/
RFuzz is a Ruby library that allows web applications to be easily fuzz tested.

Friday, January 22, 2010

Understanding Windows 7's 'GodMode'

Although its name suggests perhaps even grander capabilities, Windows enthusiasts are excited over the discovery of a hidden "GodMode" feature that lets users access all of the operating system's control panels from within a single folder.

in reference to: Understanding Windows 7's 'GodMode' | Beyond Binary - CNET News (view on Google Sidewiki)

Thursday, January 21, 2010

Working with legacy database - a challenge in Groovy

One of the most important topics in Groovy and Grails is
"Managing legacy tables for 1:M, M:M relationship and using composite keys (without using separate id field or manipulating Hibernate mapping files)"
We had to struggle with legacy database and Grails and finally came up with some kind of crude solution. This requires a lot of manual intervention and I definitely would not call it a simple CRUD as other Groovy-Grails application. Are there any good pointers to the topic of legacy database?

I received a few replies which say the January and February issues of GroovyMag have articles on the "Legacy database from Hell". There is also a lot of information about this in Grails in Action. Many use static mappings. Your mileage will vary depending on how far your database deviates from the Hibernate norm. The Grails user mailing list a useful resource for answering specific database mapping questions. As for ROI, there is a one-off hit in advance associated with the legacy mapping, but you gain the advantage of the dynamic finders, transactional services, GSPs, and other benefits.

On the legacy mapping front, I don't think the GORM mapping DSL supports every feature of Hibernate, so you may have to map some of your classes using Hibernate XML mapping files. It's not pleasant, but at least you only have to do it once.

Some resources :

1. "The Definitive Guide to Grails" (2nd edition) by Graeme Rocher and Jeff Brown has a whole chapter on integrating legacy databases and Grails using Hibernate (re-mapping keys and relationships etc).

2. This link provides very easy to use sample code and straightforward tricks.
http://denistek.blogspot.com/2009/12/grails-and-legacy-database.html

3. Mastering Grails: Grails and legacy databases - Can convention over configuration survive unconventional databases schemas? http://www.ibm.com/developerworks/library/j-grails07158/index.html

Wednesday, January 20, 2010

2010 CPU forecast: What's coming for desktop and mobile PCs

From mighty six-core desktop chips to minuscule smartbook processors, here's a look at what's in the CPU cards this year.

in reference to: 2010 CPU forecast: What's coming for desktop and mobile PCs (view on Google Sidewiki)

Tuesday, January 19, 2010

Friday, January 15, 2010

Edit results of query in data grid - Toad

Query statements MUST return the ROWID to be updatable. For example:

select * from employee where salary > 2000

would not be updatable, whereas:

select employee.*, rowid from employee where salary > 2000

would be updatable.

To reduce this obvious nuisance, you can use the TOAD-specific EDIT statement. For example:

edit employee where salary > 2000

If the resultset should be editable but remains read-only, make sure the TOAD Options > Data Grids - Data tab, Default to Read-Only Queries checkbox is NOT enabled

in reference to:

"Query statements MUST return the ROWID to be updatable. For example: select * from employee where salary > 2000 would not be updatable, whereas: select employee.*, rowid from employee where salary > 2000 would be updatable. To reduce this obvious nuisance, you can use the TOAD-specific EDIT statement. For example: edit employee where salary > 2000 If the resultset should be editable but remains read-only, make sure the TOAD Options > Data Grids - Data tab, Default to Read-Only Queries checkbox is NOT enabled"
- faq:answers:datagrid - TOAD Wiki (view on Google Sidewiki)

Tuesday, January 12, 2010

What to Do When You Cannot Open a Particular Website

Your computer is connected to the Internet but you are unable to open a particular website though all the other sites are loading without issues.

For instance, you can open yahoo.com and bing.com but it takes forever to load www.google.com even though the site is up for everyone else in the world.

Error Loading Website - Flowchart
How to Troubleshoot your Internet Connection

Step 0: Like with everything else, switch off the modem, restart the computer, and turn on the modem again. Also clear the Internet cookies and browser cache. Problem gone? No, proceed to the next step.

Step 1: Temporarily disable your computer’s firewall and close any anti-virus software that may be running in the background. If you are now able to access the websites that were previously not loading, your security program is causing the problem. As as workaround, you can add that site to the “trusted” zone in Internet Explorer and see if it works.

Step 2: Open your hosts file and see if there are any entries for sites that are currently unreachable from your computer. The hosts file is located in the following folder:

c:\windows\system32\drivers\etc\hosts

Step 3: Try a remote screen capture using Aviary. For instance, if the URL of the error site is abc.com, try opening aviary.com/http://abc.com in your browser. This will help you make sure that the site you are trying to access is not down at the source.

Step 4: Clear your DNS cache and run the ping and traceroute commands against the problematic site to make sure that it is not an ISP specific issue.

ipconfig /flushdns
tracert www.error-website.com
ping www.error-website.com

If the DNS server is an issue, you can easily switch to Google DNS or OpenDNS without having to call the ISP’s support. However, if the ping and traceroute connections are successful but the sites remain unreachable, proceed to the next step.

Step 5. Reset the modem to factory defaults and re-configure it with the same username and password that was provided by the ISP. You can reset the modem by pressing a pin inside the hole located at the back of the modem for about 10 seconds. Or you can call your ISP support and let them guide you through the steps over phone.

The last step is very likely to fix your internet connectivity problem.

in reference to:

"What to Do When You Cannot Open a Particular Website"
- When you Cannot Open a Particular Website - Troubleshooting Internet Connection (view on Google Sidewiki)

Thursday, January 07, 2010

Get a better handle on Struts actions, with Spring

The Inversion of Control (IOC) design pattern has been generating buzz for long enough now that you've surely heard of it. If you've used the Spring framework in any capacity, then you've seen its principles in action. In this article, you'll learn about the power of the IOC pattern first-hand as I use its principles to inject a Struts application into the Spring framework.

The advantages of integrating a Struts application into the Spring framework are manifold. First off, Spring was explicitly designed to resolve some of the real-world problems of JEE, such as complexity, poor performance, testability, and much more. Second, the Spring framework includes an AOP implementation that lets you apply aspect-oriented techniques to normal object-oriented code. Third, some might say that the Spring framework just handles Struts better than Struts handles itself. But that's a matter of opinion, so follow along as I demonstrate three approaches to integrating Struts applications into the Spring framework, and then decide for yourself.

in reference to:

"The Inversion of Control (IOC) design pattern has been generating buzz for long enough now that you've surely heard of it. If you've used the Spring framework in any capacity, then you've seen its principles in action. In this article, you'll learn about the power of the IOC pattern first-hand as I use its principles to inject a Struts application into the Spring framework. The advantages of integrating a Struts application into the Spring framework are manifold. First off, Spring was explicitly designed to resolve some of the real-world problems of JEE, such as complexity, poor performance, testability, and much more. Second, the Spring framework includes an AOP implementation that lets you apply aspect-oriented techniques to normal object-oriented code. Third, some might say that the Spring framework just handles Struts better than Struts handles itself. But that's a matter of opinion, so follow along as I demonstrate three approaches to integrating Struts applications into the Spring framework, and then decide for yourself."
- Get a better handle on Struts actions, with Spring (view on Google Sidewiki)

Wednesday, January 06, 2010

Memoov - create & share animated videos

Memoov is offering a unique set of Online Animation tools, including Character personalization,
Audio recording online, and a great timeline-based easy to use Animation method.
Our state of the art Video generation app and the YouTube synchronization service providing a whole new video creation and sharing experience.

We are offering an open content development platform, enabling Animators and
Designers to create and upload their own Figures, Backgrounds and Objects that later
will be used in user generated videos, ensuring that new content is generated and added easily.

We are providing a large scale of services - from server side video generation, to user generated content campaigns.
Our technologies can be used in a variety of web applications, content sites and social apps.

in reference to: Memoov - Animation Studio online (view on Google Sidewiki)

Bring the Web to your Living Room

Internet Videos on your TVWhen you have nothing interesting to watch on TV, you can always switch to the Internet for an unlimited supply of videos ranging from television shows, podcasts, music, full-length movies, news and even live concerts.

Your computer screen is not always the best option to watch web videos, especially if the whole family wants to join in, so let’s look at some devices that will let you enjoy Internet TV on your widescreen television without requiring any complicated setup.
Enjoy Internet Videos on your TV

Apple TVApple TV – Connect the device to your TV using a HDMI or component video cable and you’ll be able to download movies, TV shows, podcasts and music from iTunes’ vast library directly through your TV.

You can also use Apple TV for watching YouTube videos, for listening to Internet radio stations and for viewing photos that are on your computer or on Flickr. Apple TV will connect to the Internet through Ethernet or built-in Wi-Fi and retails at $229.

Roku HD PlayerRoku – If you are looking for a simple and cheap option to watch streaming movies from Netflix or Amazon on your TV, Roku Player should fit the bill.

Roku offers quick access to video channels including Netflix, Amazon on demand, Pandora radio and Blip.tv as well as photos from Flickr and Facebook on your TV. The Roku player will connect with virtually any TV and it supports both wireless and wired connections. Starts at $79.99.

Vudu Box for YouTubeVudu – Vudu has a large collection of movies in HD quality that you can instantly buy or rent using the Vudu box.

Additionally, Vudu allows access to Youtube videos, Flickr pictures, Pandora music as well as streaming video from sites like CBS and ESPN. The Vudu box costs $149.00 though you’ll have to buy an additional wireless kit to connect Vudu to your home network over Wi-Fi.

Boxee TV Box from D-LinkBoxee Box – Boxee is a free media center software that lets you access content from a variety of sources including YouTube, CNN, BBC, Netflix, TED, University lectures, etc. on your computer. The company has also developed a set-top box that will let you enjoy Boxee’s content directly on your TV.

Other than streaming videos, you can also access content from sites like Flickr, Picasa, Last.fm, Pandora as well as media files store on your TV through the Boxee Box. It is expected to cost around $200.

TiVo HD DVRTiVo HD – The TiVo, that made DVRs a standard household item, now lets you watch millions of videos from YouTube, TV shows and movies from Amazon, Netflix, etc. on your TV.

You can subscribe to video podcasts with TiVo and if a show is not listed, subscribe to it directly by specifying the RSS feed. In addition to videos, TiVo also lets you enjoy music and pictures that are stored on your PC or Mac. Price starts at $249, plus a $12/month service plan for TiVo service.

VuNow HD Set-Top BoxVuNow – VuNow is an affordable set-top box that will let you watch online videos on your TV without requiring a computer. It supports both wired and wireless network connectivity.

With VuNow, you can watch Live TV channels, YouTube videos, content from video sites like CNN, ESPN, etc. or even listen to Internet radio through your TV. You can also play photos, videos and music directly from your PC or an attached USB Storage device. The VuNow box starts at $129.

Neuros LINK with UbuntuNeuros LINK – This is an Ubuntu based set-top box that will bring virtually any web video to your TV using the home network. With Neuros, you can play videos and audio on TV that are on your computer or a USB device.

The device will connect to your television via an HDMI port and is designed for use with a "keymote", a wireless keyboard with an integrated trackball. Available for about $300.

Netgear EVA2000Netgear EVA2000 – The Netgear Digital Entertainer Live is a small box that allows you to easily access digital media stored on USB devices and other networked computers from your television. You can also use the device to watch streaming videos from Youtube, CinemaNow and VuNow

in reference to: How to Watch Internet Videos on your TV - Bring the Web to your Living Room (view on Google Sidewiki)

Setup a Virtual Private Network in Minutes

VPN Tutorial Virtual Private Networks, or VPN for short, allow employees to securely connect their desktop or laptop computers to the office network from any location in the world using a regular Internet connection.

If you are working from home, you can connect to the corporate network over VPN and you’ll have immediate access to your emails, internal web pages, network drives, and stuff that is otherwise only available from computers within the office premises. Some VPN clients also allow screen sharing and remote access to facilitate communication among team members.
Create a Virtual Private Network for Free

If you regular need to connect to your home computer(s) from the office or if you have a group of friends and family members with whom you share files quite frequently, you can consider setting up a virtual private network between all these computers.

While businesses generally invest in VPN solutions for companies like Cisco, we can create own VPN for free using Gbridge – this is a software only solution that is available for all versions of Windows and the best part is that it uses your Google Account for authentication.

Once you install this application*, simply sign in with your Gmail or Google Apps account. Then enter a hostname for your computer; this is what your computer will show up as to other computers that will connect to the VPN. Your hostname must be 8 characters long or less and include only letters, numbers, and/or dashes.

[*] If you are using a DNS service like OpenDNS that does automatic typo correction, you may see a notification saying that it is interfering with Gbridge. You can either add an exception for Gbridge, or simply let Gbridge automatically raise its virtual adapter’s binding order to override this.
Share Files and Folders

You’ll now see a list of all your Google Talk friends listed in the Gbridge window, as well as a list of folders that you are current sharing. You can share files as well as chat with your friends directly in Gbridge. They do not have to install Gbridge to chat with you, but will need the software to access your shared files from their computer.

login gbridge startup DNS problem Main screen Shared Folders

Gbridge has a sample folder shared by default, but can easily add others from the SecureShare tab. Simply select a folder and choose friends with whom you wish to share that folder with. They’ll now will be able to browse the contents of that shared folder as well download files using a web browser.
Remotely Access another Computer

In addition to file sharing, Gbridge also let you to remotely access your other computers (or that of your friends) over VPN. You can do this via the built-in VNC client (called DesktopShare) or through Windows Remote Desktop. The latter option is only available if you are on XP Pro, Vista Business or Windows 7 Professional.

setup DesktopShare DesktopShare Configuration DesktopShare Configuration 2 DesktopShare Password Acces desktopShare

Simply select the DesktopShare option on the computer that you wish to control, click “Configure Gbridge DesktopShare,” select who should access that computer and add a password. These people can now remotely access and control the computer.

Alternatively, create a common Google account and use it on both the computers – you can then remotely control the other computer without DesktopShare.

With GBridge, you can sync selected folders that you always have the same file on all your computer. This option may also be used to backup files on a remote computer.
Limitations of your VPN Setup

Gbridge requires Windows 2000, XP, Vista, and Windows 7 but there’s no support for Mac or Linux machines. The application uses unsigned drivers, and while this will only prompt a security dialog in 32 bit versions of Windows, it won’t install in 64 bit editions since these require signed drivers.

Gbridge is otherwise a brilliant solution. You can stream MP3 files, show photos and video without uploading them anywhere, remotely fix a problem on your friend’s computer, access your home f

in reference to:

"Setup a Virtual Private Network in Minutes"
- How to Setup a Virtual Private Network (VPN) in Windows - Step by Step Guide (view on Google Sidewiki)

format date in Grails view

I had a lot of issues formatting date in the JSP view of Grails. You have to be very careful in the argument you provide to format date. In the case
${fieldValue(bean:domainInstance, field:'dateChanged')} did not work for me and I had to use this:- . Do not forget the double quotes else it will print SYSDATE!!

Style your HTML tables

I use the following CSS on my TR of TBODY in a table to help user to identify rows under inspection. On mouse over the row turns to light green and on double click it holds an orange color helpful for comparing rows.

I hate to add any intrusive JavaScript libraries and keep my table very simple.

onmouseover="if(this.style.backgroundColor!='orange'){this.style.backgroundColor='lightGreen';}" onmouseout="if(this.style.backgroundColor=='lightgreen'){this.style.backgroundColor='';}" ondblclick="if(this.style.backgroundColor=='lightgreen'){this.style.backgroundColor='orange';}else if(this.style.backgroundColor=='orange'){this.style.backgroundColor='';}"

Tuesday, January 05, 2010

7 Quick Fix 1.0

There are a lot of excellent Windows comprehensive repairing and fixing tools around the internet.
But there are times when you want just one quick fix for example when you are under a virus attack and you just want to enable the Task Manager or the Registry Editor so you can fight the virus back, or when some new installation changed your Windows 7 behavior and you want to restore it.
This is the right time to draw 7 Quick Fix with 21 common Windows 7 fixes, only 472kb, portable with no install just click and run, small and fast, a must have on every computer !
If the day will come and you will need it, you will not regret for this 472kb on your drive or USB drive.
7 Quick fix, like its successful predecessor "XP Quick Fix Plus" is a simple, fast and efficient click and fix tool.

in reference to:

"7 Quick Fix 1.0 There are a lot of excellent Windows comprehensive repairing and fixing tools around the internet.But there are times when you want just one quick fix for example when you are under a virus attack and you just want to enable the Task Manager or the Registry Editor so you can fight the virus back, or when some new installation changed your Windows 7 behavior and you want to restore it.This is the right time to draw 7 Quick Fix with 21 common Windows 7 fixes, only 472kb, portable with no install just click and run, small and fast, a must have on every computer !If the day will come and you will need it, you will not regret for this 472kb on your drive or USB drive.7 Quick fix, like its successful predecessor "XP Quick Fix Plus" is a simple, fast and efficient click and fix tool.Watch a demo on YouTube"
- Leelu Soft: 7 Quick Fix 1.0 (view on Google Sidewiki)

Friday, January 01, 2010

5 tips for fixing your Facebook page

1. Hide friends' posts
2. Reduce newsfeeds
3. Hide actions
4. Show more newsfeeds
5. Control photo access

in reference to: 5 tips for fixing your Facebook page - CNN.com (view on Google Sidewiki)