Chris - Latest Posts

Though it’s super simple, I couldn’t find anything online to easily figure out our Azure usage.

Scott Gu’s blog post from a month+ ago comes through though:

http://weblogs.asp.net/scottgu/archive/2012/01/19/getting-started-with-windows-azure.aspx

For me, I clicked on my account and saw my free trial but didn’t think to click again on the trial membership to see the details:

https://account.windowsazure.com/Subscriptions

image

After clicking again, I finally could see the usage.

image



http://stackoverflow.com/questions/7966149/core-data-crash-nsarraym-insertobjectatindex-object-cannot-be-nil

answered Feb 24 at 7:35



I had a similar problem with the same error message when my code ran [NSManagedObjectModel mergedModelFromBundles:nil]. This happened after xCode crashed on me unexpectedly. Even when I reverted back to a known good version of my code, I still had the same error that was due to some sort of corruption.

After much experimenting, I was able to solve the problem by exiting Xcode and the iPhone simulator, and then deleting all files from the following directories:

$ cd /Users/john/Library/Developer/Xcode/DerivedData

$ rm
-R -f ./(folder corresponding to my project name)

$ cd
/Users/john/Library/Application Support/iPhone Simulator/5.0/Applications

$ rm
-R *

This was able to clear the corrupted temporary files and state for the simulator, and the error disappeared.



When trying to work with xcode with source control, it has been a bit painful to get everything connected up and working.

This link helped a lot:

http://davidbomba.com/index.php/2011/04/26/xcode-4-source-control-woes/

Open up a terminal window, and begin a manual attempt at downloading the SVN repo with something like this..


svn co https://........

 1. DynDNS.com
- great for DNS, also do SMTP, limit around 3k / day
 - better in DNS Exit if not amazon

 2. Amazon
- SES, > 10k a day

Documentation from Another Site:

http://www.quirksmode.org/js/associative.html

Associative arrays

So we have to use one of JavaScript's minor mysteries. In JavaScript, objects are also associative arrays (or hashes). That is, the property

theStatus.Home

can also be read or written by calling

theStatus['Home']

Thus, you can access each property by entering the name of the property as a string into this array. Such an array associates each keywith a value (in this case the key Home is associated with the valuenormal). In the Perl programming language it is also called a hash.

Unlike Perl, which requires you to create such an associative array explicitly, JavaScript automatically creates a associative array for each object.

You see this behaviour with common objects like a form. You can access a form by performing either of these DOM calls:

document.forms['theForm']
document.forms.theForm

(You can also use document.theForm but that's a special case, not regular behaviour of JavaScript objects/associative arrays).

So when we want to set the status of each image to 'normal' in our object, we do

var x = document.images;
for (var i=0;i<x.length;i++)
{
  var theName = x[i].name;
  theStatus[theName] = 'normal';
}

and it works. Now theName (a string) is put into the brackets [] where a string is expected. So you create a new key/value pair, which is the same as a new property with a value.

All this is JavaScript magic at its fullest. I don't completely understand what I'm doing either, but it works just fine. Basically you now have the power to let one name or string refer to another one.

My Example


The code is so simple yet so nice to have. _loadedSounds is my variable (global). I instantiate a new object and then I can just reference it as an associative array. Note, I must instantiate it as a new Object for it to work:

_loadedSounds = new Object();
$('.pnlPlayer').each(function(i, current) {
  var id = $(current).attr("id");
var dataFile = $(current).attr("data-file"); _loadedSounds[id] = new buzz.sound(dataFile,  { preload: 'metadata', autoplay: false, loop: false }); _loadedSounds[id] = dataFile; });