Developing with Google Chrome – Disable Cache

If you’re like me and do web developing you have to use Google Chrome one time or another to check the results (depends on everyone, I like Chrome’s developer tools, so I use it a lot).

One of the things that bothers most web developers is the browser’s cache (which is a very nice feature, but sometime it just hinders the development process as we don’t know if our change didn’t work out because it was wrong, or the browser didn’t update the html/css/javascript file).

So, to disable Google Chrome’s cache while developing, fire the Developer Tools (F12) and press the little “gear” icon on the right bottom of the screen (see picture bellow)

Google Chrome Settings

Google Chrome Settings

If you do that, the settings screen will appear and you should see the “Disable Cache” setting, check the box and happy coding (see picture bellow):

Disable Chrome Cache

Disable Chrome Cache

And that disables Google Chrome’s Cache. Hope this tip is as helpful to you as it was to me.

CreateView vs CreateChildView why do I lose my boObject reference?

When you are developing an application using XEO you’ll need to open specific views as a result of certain actions. In order for you to achieve that you need to create the view in memory and for that you have two choices:

XUIViewRoot viewRoot = getSessionContext().createChildView("viewers/path/to/viewer/Viewer.xvw");

or

XUIViewRoot viewRoot = getSessionContext().createView("viewers/path/to/viewer/Viewer.xvw");

The main difference between the two is regarding the current context. Creating a view with createView uses a new context and switches the context immediately upon invocation (meaning you loose access to anything that was available in the current context) . If you use the createChildView method you maintain the same context in the two views ( which is important if the two views share some relationship – hence the name create ” child ” view)

So if your two views have no relationship but you need information for the current context… Save them in variables before creating the view – or else. Most of the times createChildView is the correct usage, but if the two views are disconnected, use createView.

Happy coding!

Technical Goals for 2012

Hi everyone,

First day of the year, I thought I should try and write down some goals for 2012 πŸ™‚

First – Read, read, read

2011 was a nice year in terms of reading, I read some really great books, such as Effective Java (mandatory for anyone developing in Java) and ExtJS in Action. I also did some reading regarding the much popular JQuery framework with Learning JQuery Third edition and JQuery Mobile First Look and I’m currently reading Code Complete and Clean Code (both excelente so far).

For 2012 I hope to have the time to read more about programming in general in order to continue to improve my programming skills. I have some recommended books I want to read including classics such as the Pragmatic Programmer, Programming Pearls, Design Patterns (Elements of Reusable OOS),

Things to Learn – Git, Html5, Mobile, NoSQL, IOS

This year I would like to take a look at some of the things that were very hot in 2011, namely the Git source control mechanism (as I mostly use SVN) and check out if its a better tool than what I currently use.

I want to take a look at HTML5 (especially because of frameworks using HTML5 to create mobile apps such as JQuery Mobile) as we’re seeing browsers having greater support for it, yes, even IE :).

On another note, I think I want to see a NoSQL database in action to see what all the fuss is about :P. IOS programming has been in my agenda for some time but I Β haven’t been able to find the time to commit to it πŸ™ I have some ideas for applications, need commit to this one.

XEO Community

I really hope to have more time to contribute to the community version of XEO. Maybe a set of mobile components? (which would be a way to force me to try out the JQuery Mobile framework). I have a project being done with XEO, I also hope to finish that πŸ™‚

The Blog

I really need to commit to this blog more often.

Happy 2012 to everyone (until December 21, that is :P)!

Update: Post title updated because my friend Ygor reminded me of a big goal for 2012 πŸ˜‰