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…
July, 2009Archive
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. […]
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…
Developers and productivity
Scott Bellware has an interesting post on this topic. Read it if you can.
PT LINQ book mentioned on MVP blog
More info here.
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> […]
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 […]
JQuery: chaining
[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 […]
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 […]
JQuery: getting started
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 […]
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.
Live mesh running on my HTC
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 […]
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?
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 […]
Multithreading: using VolatileXXX instead of the volatile keyword
[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 […]
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 […]
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, […]
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 […]
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 […]
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 […]
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 […]
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 […]