Do they belong to you? Claim these comments.
Unregistered
aliases
- Oliver
- Oliver
- Oliver
- Oliver
- oliver
- Oliver
- OLIVER
- oliver
- oliver
Oliver
Is this you? Claim Profile »
5 months ago
in Buena Vista Palace Resort and Spa Review on Extreme John5 months ago
in Kobes Steakhouse Review and Pictures on Extreme John5 months ago
in Breckenridge Colorado Pictures on Extreme John5 months ago
in Bulldog tug of war pictures on Extreme John5 months ago
in After the Christmas Party Pictures on Extreme John1 year ago
in My Git Workflow on Languages of the real and artificialIt would be nice to have all the checkpoints persisted until the next persistable commit, and then blow them away at that point. (I just made up "persistable commit" to mean one that I want to keep in the repository, as opposed to the ones that represent ephemeral checkpoints, if I implement checkpointing as commit.) The alternative for doing that that I mention is to commit checkpoints, and then rebase them away. One disadvantage of doing this is the extra step of the rebase, along with having to remember where to rebase from. The other is that "git diff head" won't tell me what I want. Maybe tagging every persistable commit solves both these problems.
Or I could, as you suggest, make a branch, commit my checkpoints into it, "merge -squash" it into the target branch, and then delete the branch. Then a persistable commit becomes "git checkout {original}; git merge --squash wip; git commit; git checkout -b wip", where {original} depends on which branch I started from. And "git diff head" becomes "git diff {original}", where, again, {original} depends on where I started. This is heavier weight than I want, but again, maybe some scripting and/or tags makes it easier.
Right now I like the fact that "git checkout head .", "git stash", and "git checkout -m -b" operate on everything since the last persistable commit. All those things would be harder, or I'd need to write more scripts/tagging to do them, if checkpoints were commits too.
Anyway, I really started out trying to draw a picture of how the index fit in, not to try to promote my particular workflow. I've added a disclaimer paragraph to try to make this clearer.
1 year ago
in Ambimation on Languages of the real and artificial[code language="xml"]
<canvas>
<include href="filter-effects.lzx">
<class name="oflip" width="${canvas.width}" height="${canvas.height}" resource="oflip.swf" stretches="both">
<view id="outer" x="${canvas.width/2}" y="${canvas.height/2}">
</view><view id="rotor">
<oflip id="inner" x="${-canvas.width/2}" y="${-canvas.height/2}" onclick="spin()">
<blurfiltereffect name="fx">
</blurfiltereffect></oflip>
</view>
<script>
function spin() { rotor.animate('rotation', 180, 1500, true) }
</script>
</class></include></canvas>
[/code]
@class@ defines a view that's scaled to the canvas size and that embeds a Flash movie of the image. The three levels of view hierarchy are because 'rotation' is relative to the origin (the upper left corner); the @x@ and @y@ on @inner@ place the center of the image at the origin of the rotor, and the @x@ and @y@ on @outer@ place the origin of the rotor at the center of the canvas. With matrices you rotate around a point by sandwiching the rotation between a translation and its inverse; instead I represent each transformation as a view and let the rendering engine do this, so that I can animate the @rotation@ attribute and let the animation system handle the rest.
To get the shadow, move the @x@ and @y@ from @inner@ to the definition of @oflip@ in the code above, and then make two more copies of @oflip@ right above @rotor@. An interval timer copies the rotations from @inner@ -> @s1@ -> @s2@ on each frame.
[code language="xml"]
<view id="shadows">
</view><view id="s2" opacity="0.25"><oflip></oflip></view>
<view id="s1" opacity="0.5"><oflip></oflip></view>
[/code]
Mouse tracking uses
Math.atan2 and the mouse position relative to outer. Motion blur animates the blur effect's blur radius up to 4 when the image is spinning and back down to 0 when it stops. Both of these piggy-back on the same interval timer that makes the shadow. I tried to turn off the effects when the frame rate got slow, but I don't think this worked, and I ran out of time.
1 year ago
in Minimizing Code Paths in Asychronous Code on Languages of the real and artificialMaking each part of program not rely on the order of execution may seem like a good thing, but it increases the number of required test cases exponentially, if nothing else. Some indeterminacy is inherent in distributed processing; the rest can be determinized.
1 year ago
in The Shadow of a Legacy on Languages of the real and artificial1 year ago
in Three Small JavaScript Libraries on Languages of the real and artificial1 year ago
in Synchronizing Client Models on Languages of the real and artificialA quick update on queue ball: you can download it from http://github.com/osteele/mop-js, and you can get a little bit of a taste for how to use it in the specs in that repo, but I haven't had a chance yet to write up exactly how to use it for the problem described here.
1 year ago
in Google Calendar suhtleb mobiilidega on Selge Pilt1 year ago
in FizzBuzz Station on Languages of the real and artificial1 year ago
in La TNT sur le portable ASUS EEEPC sous Xandros ! on Blogeee.netJe suis bloqué, quoi faire maintenant?
Par contre j'ai l'icone Digital TV.
Merci pour ton aide...
1 year ago
in Monads on the Cheap I: The Maybe Monad on Languages of the real and artificialI prefer to place the 'var' where the variable is first defined, but this is misleading to anyone coming from Java (or practically any other language), so it's a real trade off.
(I also prefer to treat variables as read-only except where there loop indices, which somewhat mitigates the problem, at least.)
1 year ago
in More Monads on the Cheap: Inlined fromMaybe on Languages of the real and artificialArray! (a non-nullable Array, to borrow ECMAScript 4.0 notation), such that it could handle Array? (analogous Haskell Maybe [], or Scala Option[List] -- arrays aren't the same as lists, but JavaScript arrays are used where Haskell and Scala use lists). The new code is only valid if the type of @products@ is a nullable array. It won't work if you throw arbitrary data at it. After all, if products could be _anything_, it might be an object with a @length@ _method_, and then @count@ would end up with the wrong type too.
1 year ago
in Now, What Would Make You Think There’s Anti-muslim Bias in the USA? on The Washington Independent1 year ago
in Monads on the Cheap I: The Maybe Monad on Languages of the real and artificialThese typos happen to exactly illustrate my point -- that when you add a temporary variable just to get a value from one line to the next, you've introduced an error site -- but I won't pretend that I did this on purpose. I've fixed these (I think) now.
1 year ago
in Kuidas loobuda asendustegevustest? on Selge Pilt"(title unknown)" has no unread items.
1 year ago
in Allard Joins Roan Plateau Debate on The Colorado Independent
For groups like IPAMS and 'Americans for American Energy' (which I believe describes what Hugo Chavez believes he's doing, putting multi-national energy companies under the rule of Americans (in this case, Venezuelans...but I digress), any citizen involvement that runs counter to the agenda of industry getting what it can while the gettings good is dangerous and must be stopped.
1 year ago
in Friday Last Day for Public Comment on Roan Plateau on The Colorado Independent
That is all spelled out specifically in the BLM plan and EIS, BTW, not spun from my head.