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 [...]
Author Archives: admin
Multiline document.write
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 [...]
SVG Scripting with JavaScript Part 1: Simple Circle
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 [...]
What's weird about floats in objective-c?
Aright, what’s up with this? This code using a double works just fine:
1 2 3 4 5 6 7 8 9 |
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:
1 2 3 4 5 6 7 8 9 |
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? [...]
What’s weird about floats in objective-c?
Aright, what’s up with this? This code using a double works just fine:
1 2 3 4 5 6 7 8 9 |
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:
1 2 3 4 5 6 7 8 9 |
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? [...]
Deploying a Redmine Wiki to Heroku
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 [...]
Cucumber Debugging Tip
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 [...]
Finding Ada Through… Danielle Wheeler!
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 [...]
Test Driven Development for iPhone
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 [...]
Wrangling Custom Radius Tags
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:
1 2 3 |
<ul id="headerCarousel">
<li><a href=""><img src="" /></a><p>the caption</p></li>
</ul> |
To [...]