LA.NET [EN]

July, 2009Archive

Jul 30

Guys, which one of these do you prefer: the light one or the black one? For working I do really prefer darker schemes, but it seems like they don’t work very well with the JS editor…

Read the rest of this entry »

Jul 30

Today we’re going to start talking about JQuery event’s propagation. Before delving into JQuery’s behavior, I guess that we need to make a small detour and talk about JAvascript and DOM events levels compatibility. By now, most of us have already heard the terms DOM level 0 event compatible or DOM level 2 event compatible. […]

Read the rest of this entry »

Jul 14

Changing the color of JS strings in Visual Studio 2010: anyone?

Posted in Uncategorized       Comments Off on Changing the color of JS strings in Visual Studio 2010: anyone?

Ok, I guess I’ve probably missed the entry, but does anyone know how to change the color of the string text in the JS editor  of VS 2010? Thanks…

Read the rest of this entry »

Jul 14

Developers and productivity

Posted in Development       Comments Off on Developers and productivity

Scott Bellware has an interesting  post on this topic. Read it if you can.

Read the rest of this entry »

Jul 14

More info here.

Read the rest of this entry »

Jul 14

JQuery: more on selectors

Posted in JQuery       Comments Off on JQuery: more on selectors

On the previous post, we’ve started looking at selectors. In this post, we’ll close our study of selectors and we’ll talk about the remaining selectors. Let’s get started with child selectors. Before going on, we need an HTML tree. The one we used in the last post will do it: <h1 class="title">Getting started with selectors</h1> […]

Read the rest of this entry »

Jul 13

JQuery: getting started with selectors

Posted in JQuery       Comments Off on JQuery: getting started with selectors

In the last posts, we’ve started introducing JQuery. As we’ve seen, we start by getting a valid reference to a “JQuery object” that wraps one or more of the existing DOM nodes and then we can invoke one of several methods for interacting with those nodes. This  means that the first thing you need to […]

Read the rest of this entry »

Jul 13

JQuery: chaining

Posted in JQuery       1 Comment »

[Updated: thanks to nyx for detecting that the button ID wasn”t correct] As I’ve said in the last post, JQuery is all about writing simple and elegant code. One of its most interesting features is chaining. After getting a reference to the custom “JQuery object”, we can invoke several methods exposed by that object. What […]

Read the rest of this entry »

Jul 11

JQuery: understanding the jQuery function

Posted in JQuery       Comments Off on JQuery: understanding the jQuery function

Yesterday we’ve started looking at JQuery. One of the most important things we’ve seen yesterday was that there’s an important JQuery object which has lots of methods and events we can interact with. Today, we’re going to take a more detailed look at the code we’ve written yesterday and we’re going to start looking at […]

Read the rest of this entry »

Jul 10

It’s official: I’m on vacations :,,) while I was enjoying the sun on the beach today (I did managed to get there in time after leaving work), I though that it would be a good idea to write about JQuery. Why is this a good idea? First, because my experiences with it have shown me […]

Read the rest of this entry »

Jul 09

Silverlight 3 is out

Posted in Silverlight       Comments Off on Silverlight 3 is out

Incredible…version 3 is out and I still didn’t had the time to look at version 2. I guess I’ll jump write into 3 (or 4, if things keep going this way 🙂 ,,). btw, here’s the link for the VS tools.

Read the rest of this entry »

Jul 08

Sorry for the lack of posts on multithreading and C# but I’ve been really busy in these last days because Friday is the last day before my two week vacations! :,,) I promise to write more about it, though I’m not sure if I’ll be writing on the next couple of days… Finally got some […]

Read the rest of this entry »

Jul 08

Google Chrome OS?

Posted in Trivia       Comments Off on Google Chrome OS?

It wasn’t with great surprise that I’ve read this post on the Google blog. As many others, I’m really curious to see if it will work. Thoughts?

Read the rest of this entry »

Jul 07

So sad, really!

Posted in Trivia       Comments Off on So sad, really!

It’s lunch time, I turn on the TV for watching the news and what do I see? More than 45 mins of Cristiano Ronaldo’s presentation on Real Madrid…and then there’s the piece on the music he chose for his presentation…it’s from a Portuguese band, you know…and that’s why we need to interview the guys that […]

Read the rest of this entry »

Jul 06

[Update: Brad detected a flaw in the code: I had forgotten to initialize the _initialized field. Thanks!] [Update2: Brad detected another flaw in the code: return _instance must be outside the if. Thanks!] In the previous post we’ve seen how we can use the C# volatile keyword to guarantee that those nasty load-load reordering stay […]

Read the rest of this entry »

Jul 06

In the last post, I’ve showed you some code I’ve written in  the past and asked if there was anything wrong with it. Here’s the code again: class Lazy { private SomeObject _object; private Object _locker = new Object(); public SomeObject SomeObject { get { if (_object == null) { lock (_locker) { if (_object […]

Read the rest of this entry »

Jul 05

Today we’re only going to talk about the volatile keyword. The volatile keyword can be used on the declaration of a field, transforming it into a volatile field. Currently, you can only annotate a field with this keyword if it is: a reference type; a pointer type (unsafe code); one of the following types: sbyte, […]

Read the rest of this entry »

Jul 04

Multithreading: a final example on how CompareExchange might help you

Posted in C#, Multithreading       Comments Off on Multithreading: a final example on how CompareExchange might help you

In the last posts we’ve been poking around memory models, memory fences and other interesting things that might lead to the so called lock free programming. Before keep looking at how we can use those features from our C# code, I’d like to add one more example that shows how the interlocked operations might help […]

Read the rest of this entry »

Jul 03

In the last post, we’ve talked about memory fences. Today we’re going to keep looking at this topic, but we’re turning our attention to coding, ie, we’re going to talk about the options we have to add fences to our classes. In .NET, things are relatively straightforward. Whenever we use one of the interlocked methods […]

Read the rest of this entry »

Jul 03

Multithreading: introducing memory fences

Posted in C#, Multithreading       Comments Off on Multithreading: introducing memory fences

A few posts back, we’ve introduced the concept of load and store reordering. As we’ve seen, reordering operations exist as a way of improving performance and can be introduced on several levels (starting at compilation time and ending at runtime when the processor executes the instructions). We saw that even though things can get chaotic […]

Read the rest of this entry »

Jul 02

In the previous post, we’ve started looking at interlocked operations. As we’ve seen, interlocked operations are great at what they do but they won’t be usable in all scenarios (ie, don’t think that they’ll solve all your locks problems). To show how things might go awry when using interlocks, I’ll reuse a great example written […]

Read the rest of this entry »

Jul 02

Multithreading: introducing the interlocked operations

Posted in C#, Multithreading       Comments Off on Multithreading: introducing the interlocked operations

As we’ve seen in the previous post, most processors give us important insurances regarding memory loads and stores. However, even though those insurances are important and can be used in several scenarios, the truth is that they aren’t enough for all real world tasks. Fortunately, most processors also offer a group of interlocked operations which […]

Read the rest of this entry »