existdissolve.com
the singularity of being and nothingness
the singularity of being and nothingness
Oct 11th
One of the things I <3 about Sencha is the data store. They are super-simple to create, but very powerful for creating robust, data-driven applications. The other day, I found myself creating 3 data stores that were extremely similar, simply because of the fact that the data returned was fairly complex and nested. You see, with a Sencha store, you define a “root” of your data, which is really just how the store’s Reader will treat the “rows” of data that are fed into the store. This works very well, but in my scenario, I was wanting to create a master store of data defined at the highest possible root, and then create child stores based on some of the nested objects belonging to my initial data set. So in this case, instead of making 3 remote calls to get the same, but differently-structured data, I wanted to make 1 request and use the result 2 more times for different stores.
At first, I looked to the store itself for something like a “copy” or “clone” method, but there was none. There IS an option for doing an “each” loop for every record, but that just seemed a bit overkill. But More >
Oct 11th
If you’ve ever created a data store with the Sencha framework, you’re familiar with defining the “fields” for the store’s data. Something like this does the trick:
var myStore = new Ext.data.JsonStore({ id: "myJsonStore", url: "datasource.js", fields: [ "id", "name", "age" ] });
This method of defining data fields works perfectly well, but is not very extensible. After all, what if you have several stores for which you want to use the same field definitions? Yeah, you can define the same fields for each store, but wouldn’t it be better to define it once, and then customize it as needed?
Fortunately, this is super-simple to do. When you define fields “inline” while creating the data store, what you are really creating is something of an impromptu MixedCollection (a Collection class that maintains both numeric indexes and keys and exposes events, per the docs). Ah, so if it’s nothing more than a Sencha object, we can abstract it from the store itself, and reuse it to our heart’s desire!
var mydef = new Ext.util.MixedCollection(); mydef.addAll([ "id", "name", "age" ]);
Obviously, this looks extremely similar to what we did inline. However, the huge difference is that this new, abstracted object has some handy methods for retrieval, addition More >
Oct 5th
In preparation for release of their “Disambiguation” album (look for it 11.09.10), Underoath has been releasing “layers” of a new song over the course of several days. These layers finally came together into their newest finished song, “Illuminator.”
Overall, I like this song a lot. It’s not terrifically innovative for Underoath, but if you like what Underoath has done in the past, you’ll like what’s offered here. Hope you enjoy 🙂
IlluiminatorAwake to the sound of emptiness. Alone in a room that is filled with the darkest of light. I was told there was nothing beyond here. How do I know what side I'm on? Breathe! A captive with nothing but the thoughts increasing, Worsening I dont belong here But I cant find my exit. This is where they all come to hunt me down, hunt me down Where they go to hunt me down, they hunt me down Weigh out the options Pave the narrow I know what you're thinking Come on man I swear you can do this Come on man I swear you can do this I break free from this room they built for me I break free from this room they built for me This is More >
Sep 30th
In an app I’m currently working on, I came across the need to be able to invoke methods from a particular component dynamically. On the surface, this is pretty simple:
myComp = createobject("component","com.utils").init(); dyn = myComp[methodvariable]; dyn();
While this technically *works*, there is one huge gotcha: there does not appear to be any persistence of the initialized component from init() to dyn(). That is, if the init method, say, sets up datasource names and other component properties, these will no longer be available in the invocation of dyn(). Not a big deal, I guess, if you don’t have need of the init function…but a killer if you do.
Fortunately, it’s easy enough to work around this. After you’ve instantiated the component, just use to call the dynamic method:
<cfinvoke component="#myComp#" method="#methodvariable#" /> (cfinvoke is still tag-bound...sorry! :))
Anyway, easy enough, but something a person can easily spend FAR too much time trying to work out. Uggh.
Share this:Sep 24th
I recently learned about Ivoryline from the Solid State sampler released by Tooth and Nail Records a while ago. First off, their latest album “Vessels” is pretty good–be sure to check it out.
So anyway, over the last few weeks, Tooth and Nail has been hyping and teasing about the release of the new video for Ivoryline’s song “Instincts.” It finally came out yesterday…
To be honest, I’m not terribly impressed with the video. There are parts that are interesting, but I think it doesn’t do justice to the song.
Anyway, here’s the video, and the lyrics for the song. If you agree or disagree with my take, leave a comment!!
InstinctsYou'll show me love, no matter what I do. You'll show me love, even when my back turns on you. And I will go about my friends Like I know just what to do, But I really need your hand To pull me through. Let it up, let it up, Let it out on. Instincts, can not keep me from falling I've learned that by now. Instincts, can not keep me from falling I've learned that by now Your start is love, and give us the choice On who we become, and if More >
Sep 13th
I recently had several comments like this left on an old blog. I have reproduced the offending comment, mostly untouched save for corrections of the more offensive grammatical errors 🙂
—-
If I speak in the Cheap Authentic NFL Jerseys of men and of angels, but have not love, I am only a resounding gong or a clanging cymbal.
If I have the gift of prophecy and can fathom all mysteries and all Official NFL Jerseys, and if I have a faith that can move mountains, but have not love, I am nothing.
If I give all I possess to the poor and surrender my USA Jerseys Shop to the flames,but have not love, I gain nothing.
Love is patient, NFL Jerseys are kind.
It does not envy, it does not boast, it is not proud. It is not rude, it is not self-seeking, it is not easily angered, NHL Jerseys keep no record of wrongs.
Love does not delight in evil but rejoices with the truth.
It always protects, always trusts, MLB Jerseys always hope, always persevere.
NHL Hockey Jerseys never fail.
But where there are prophecies, they will cease; where there are tongues, they will be stilled; where there is knowledge, it will pass away.
For More >