I suppose this is the real reason Isaac cleaned the office - he has set up his computer and is now 'working' with me.
Thursday, October 29, 2009
Sunday, October 25, 2009
Wednesday, October 21, 2009
Wednesday, October 14, 2009
Monday, October 12, 2009
rocket repairs and thor
I am a huge fan of the kits from Semroc and my Explorer and Arcas have been flying for a couple years. My most recent flight on the Arcas used an F42T and 2 of the fins were ripped off. I was never real happy with my fin alignment on the Arcas so I took the opportunity to remove all the fins and reseat them. The fins are all in place and this time I used a bit more epoxy and fiberglass filler. The Arcas is in serious need of a paint job but I think that these fins will be solid!
The Explorer had a cracked fillet. The crack survived a few flights on E motors but I wouldn't be confident putting an F in it as it was. I ground out the old fillet, sanded, and then put in a few fillet. I love this rocket and have flown it at many parks and both NCR launch sites. I plan to fly it at the Nov NCR launch (if my Shanelle lets me go).
I'm finally making progress on the Thor. Curtis has been making a lot of noise and I'm even thinking he really is going to get the airframe to me. I used JB Weld to attach the fins to the motor mount tube and am now in the process of putting in large JB Weld fillets. Sometime in the near future, Warren M is going to help me do tip to tip fiberglassing on the fins and then when the airframe arrives it will pretty much just slip on.
Thursday, October 08, 2009
Snowing a bit in Boulder
Monday, October 05, 2009
App Engine Redirects - some good some bad
I'm working on authn and authz for my app that uses App Engine. I was hoping to force HTTPS and make it so DELETE was only available App Engine administrator (i.e. me and others on the project). The force of HTTPS is obviously done in config and I would prefer the DELETE authz info in config as well because it would save a lot of coding.
After setting that in my web.xml file and deploying, I was able to immediately curl and browse and verify that http redirects to https.
Super duper.
I was hoping for a 403 there. I guess it isn't bad but I don't like it that an auth failure gives a 302 status rather than 403. Thinking about now whether I want to stick with this convenience or move the authz for DELETE to code and return my 403 status.
<security-constraint>
<web-resource-collection>
<web-resource-name>default</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>admin</web-resource-name>
<url-pattern>/buckets/200908/bucket/*</url-pattern>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
After setting that in my web.xml file and deploying, I was able to immediately curl and browse and verify that http redirects to https.
$ curl -i -X GET http://mrtidy.appspot.com/buckets/200908/bucket/
HTTP/1.1 302 Found
Location: https://mrtidy.appspot.com/buckets/200908/bucket/
Date: Mon, 05 Oct 2009 02:14:42 GMT
Content-Type: text/html
Server: Google Frontend
Content-Length: 0
X-XSS-Protection: 0
Super duper.
$ curl -i -X DELETE https://mrtidy.appspot.com/buckets/200908/bucket/1
HTTP/1.1 302 Found
Location: https://www.google.com/accounts/ServiceLogin?service=ah&continue=https://mrtidy.appspot.com/_ah/login%3Fcontinue%3Dhttps://mrtidy.appspot.com/buckets/200908/bucket/1<mpl=gm&ahname=...2
Date: Mon, 05 Oct 2009 02:22:26 GMT
Content-Type: text/html
Server: Google Frontend
Content-Length: 0
X-XSS-Protection: 0
I was hoping for a 403 there. I guess it isn't bad but I don't like it that an auth failure gives a 302 status rather than 403. Thinking about now whether I want to stick with this convenience or move the authz for DELETE to code and return my 403 status.
Sunday, October 04, 2009
Beautiful in Broomfield!
Waver closed NCR 20091004
Bad weather again this morning so the waver was closed and we've taken down the pads. Vendors are gone too.
Saturday, September 26, 2009
Saturday, September 19, 2009
Friday, September 18, 2009
gas overnight
James says mixes that use Mg or Al (possibly any metals?) mix til
change then gas overnight - good for density and also splits process
to 2 days.
change then gas overnight - good for density and also splits process
to 2 days.
Tuesday, September 15, 2009
Deer at the Office
Thursday, September 03, 2009
trouble with ViewFlipper
I got totally side-tracked in my Android app trying to do a quick implementation of onFling. The intent was to not have to worry about my GridView filling up with buckets - I thought I could just max out the current view at 9 and implement onFling to take in the swipe gesture from the user to move over and look at the next (or previous) 9 buckets.
My first surprise was that it was harder than I expected! I shouldn't have been surprised :) Seriously, I thought that I could just wrap my existing view with the ViewFlipper and provide an index for 'paging'. I ended up implementing (hard-coding) 3 static pages with the intention of just ignoring the swipe if there weren't any next / previous screens. My second surprise was that I couldn't get the onFling / GestureDetector to fire. I thought I had grown a solid understanding of Android but sheesh - this should be trivial stuff.
Added to onCreate
Then I added this inner class. Just a quick reminder, this doesn't currently work - I'm just recording the notes here.
Blah blah blah - just a distraction. I need to get back to fixing sync'ing and adding buckets.
My first surprise was that it was harder than I expected! I shouldn't have been surprised :) Seriously, I thought that I could just wrap my existing view with the ViewFlipper and provide an index for 'paging'. I ended up implementing (hard-coding) 3 static pages with the intention of just ignoring the swipe if there weren't any next / previous screens. My second surprise was that I couldn't get the onFling / GestureDetector to fire. I thought I had grown a solid understanding of Android but sheesh - this should be trivial stuff.
Added to onCreate
mViewFlipper = (ViewFlipper) findViewById(R.id.main_flipper);
mGestureDetector = new GestureDetector(new FlingGestureDetector());
mGestureListener = new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
Log.d(getClass().getSimpleName(), "HERE onTouch");
if (mGestureDetector.onTouchEvent(event)) {
return true;
}
return false;
}
};
Then I added this inner class. Just a quick reminder, this doesn't currently work - I'm just recording the notes here.
class FlingGestureDetector extends SimpleOnGestureListener {
@Override
public boolean onFling(MotionEvent eventStart, MotionEvent eventEnd, float velocity, float unusedVelocity) {
Log.i(getClass().getSimpleName(), "onFling (" + eventStart + ", " + eventEnd + ", " + velocity + ")");
try {
if (Math.abs(eventStart.getY() - eventEnd.getY()) > FLING_MAX_DEVIATION) {
Log.d(MainActivity.class.getSimpleName(), "onFling too much Y in motion, not fling");
return false;
}
if (eventStart.getX() - eventEnd.getX() > FLING_MIN_DISTANCE && Math.abs(velocity) > FLING_MIN_VELOCITY) {
mViewFlipper.setInAnimation(AnimationUtils.makeInAnimation(MainActivity.this, true));
mViewFlipper.setOutAnimation(AnimationUtils.makeOutAnimation(MainActivity.this, true));
mViewFlipper.showNext();
} else if (eventEnd.getX() - eventStart.getX() > FLING_MIN_DISTANCE && Math.abs(velocity) > FLING_MIN_VELOCITY) {
mViewFlipper.setInAnimation(AnimationUtils.makeInAnimation(MainActivity.this, false));
mViewFlipper.setOutAnimation(AnimationUtils.makeOutAnimation(MainActivity.this, false));
mViewFlipper.showPrevious();
}
} catch (Exception e) {
Log.w(MainActivity.class.getSimpleName(), "onFling ignoring unexpected exception: " + e);
}
return false;
}
}
OnTouchListener mGestureListener;
/**
* Most people will probably just have the 1 page of buckets but for the
* people lucky enough to have more than 9 / 12 / whatever the number is,
* they can fling thru the pages.
*/
private int mViewIndex = 0;
Blah blah blah - just a distraction. I need to get back to fixing sync'ing and adding buckets.
Friday, August 28, 2009
Create ISO on Mac OS X
This should have been obvious to me but it wasn't so I'm blogging it to make sure I remember.
sudo umount /dev/disk1
dd if=/dev/disk1 of=~/Desktop/mydisk.iso bs=2048
Friday, August 14, 2009
hg clone with tag
hg clone -r WithSplits https://bergl@bitbucket.org/madsidy/buckfiiglaasd/
Golly, that's good.
Subscribe to:
Posts (Atom)
