February 18, 2011 - 5:03 pm
We really like Typus at Blazing Cloud, and we end up using it in most of our Ruby on Rails projects. It provides good enough UI for a lot of our data entry needs, and is very quick to set-up. We also use Devise for authentication, and frequently end up with both in the same [...]
September 24, 2010 - 3:34 pm
I was just refactoring some HTML and needed to move some of my markup out of the HTML file and into a JavaScript method so I can re-use it in multiple HTML files. Using document.write, I didn’t want to put all of the HTML on one line, and also didn’t want to have to add [...]
September 17, 2010 - 9:57 pm
I recently embarked on the task of converting an interactive Flash widget to SVG (Scalable Vector Graphics) and DHTML. The incentive for this project is primarily to make this widget work on the iPad which does not support the Flash player. SVG has been supported in all major browsers except for IE including mobile browsers [...]
August 9, 2010 - 11:56 am
Aright, what’s up with this? This code using a double works just fine:
|
double myDouble = 2.2;
NSLog(@"myDouble %f", myDouble);
[self testDouble:myDouble];
- (void) testDouble:(double)myDouble {
NSLog(@"testDouble %f", myDouble);
} |
This code prints: myDouble 2.200000 testDouble 2.200000 No surprises there. But the same code using a float behaves very strangely:
|
float myFloat = 3.3;
NSLog(@"myFloat %f", myFloat);
[self testFloat:myFloat];
- (void) testFloat:(float)myFloat {
NSLog(@"testFloat %f", myFloat);
} |
This code prints myFloat 3.300000 testFloat 36893488147419103232.000000 So what happens to the float that is passed to the testFloat method? [...]
August 9, 2010 - 11:56 am
Aright, what’s up with this? This code using a double works just fine:
|
double myDouble = 2.2;
NSLog(@"myDouble %f", myDouble);
[self testDouble:myDouble];
- (void) testDouble:(double)myDouble {
NSLog(@"testDouble %f", myDouble);
} |
This code prints: myDouble 2.200000 testDouble 2.200000 No surprises there. But the same code using a float behaves very strangely:
|
float myFloat = 3.3;
NSLog(@"myFloat %f", myFloat);
[self testFloat:myFloat];
- (void) testFloat:(float)myFloat {
NSLog(@"testFloat %f", myFloat);
} |
This code prints myFloat 3.300000 testFloat 36893488147419103232.000000 So what happens to the float that is passed to the testFloat method? [...]
One of the recommendations that came out of our recent retrospective was to create a Blazing Cloud wiki where we would store all of our project information, best practices, how to’s, etc. We wanted a wiki that was free, configurable/customizable and could be easily deployed to either Heroku or another hosting provider we are familiar [...]
Tracking down the root of an unmet expectation is even trickier when you can’t see what the expectation is being compared to… one great resource I’ve been using as-of-late is cucumber_rails_debug. Here’s the readme, in all of its complexity: Usage: Add: require ‘ruby-debug’ require ‘cucumber_rails_debug/steps’ To features/support/env.rb Then use: Then debug # opens the debugger [...]
In Honor of Ada Lovelace Day I would like to highlight the hard work and accomplishments of Danielle Wheeler, a Software Engineer I had the pleasure of working with at Laszlo Systems. Danielle came to Laszlo straight out of college, and quickly became a key contributor to a large production code base. She picks up [...]
February 20, 2010 - 7:07 pm
UPDATE: Check out the project source code at: http://github.com/blazingcloud/iphone_logic_testing Here at Blazing Cloud we really like Test-Driven Development (TDD). We try to use it for all of our development projects, and we recently learned how to do it for IPhone development. The unit test tool available for Cocoa development is more like JUnit for Java [...]
January 15, 2010 - 5:39 pm
I’m integrating a beautiful Javascript app, InfiniteCarousel, into the Radiant extension architecture. The app creates a photo carousel: A scrollable panel of images with nice left and right buttons, captioning, and links. If interested, feel free to install from github. The app is built largely in JQuery and has a pretty simple mark-up:
|
<ul id="headerCarousel">
<li><a href=""><img src="" /></a><p>the caption</p></li>
</ul> |
To [...]