Agent0x45
Personal Ideas
| My Idea | Idea Group | Category | Details | Edit |
|---|---|---|---|---|
| Moral relativism | doocracy | Belief | Percentage: 80 Idea Group: Idea Category: Belief | |
| Straight Edge | Straight Edge | Criticism | Percentage: 50 Idea Group: Idea Category: Criticism Im all about controlling what you put into your body and mind, but limitations based on arbitrary morality and a narrow perception of what is "healthy" is counterproductive. Chemecals are vital for effective self-programming, and can be a priceless form of recreation, and a means of breaking social boundries.
Absolutes are artificial. Any line you aren't willing to cross is a wall. |
Personal Skills
| My Skill | Skill Group | Category | Details | Edit |
|---|---|---|---|---|
| Learn Common Lisp | Lisp | Learning | Skill Group: Skill Category: Learning | |
| CSS | CSS | Learning | Skill Group: Skill Category: Learning | |
| Drupal Development | Drupal Development | Learning | Skill Group: Skill Category: Learning | |
| Factorization | Factorization | Past Skill | Skill Group: Skill Category: Past Skill | |
| C++ and c like languages | C++ | Skill | Skill Group: Skill Category: Skill C++ has changed considerably since last I used it, but not necessarily in a good way. I belong to the school that thinks that C++'s proper place is "C with classes." Newer features are intended to facilitate tasks that are much more suited to other languages.
I have used relatively c/c++ in the last decade, but am still fairly up on it due to recent usage of other c-like languages. | |
| Identification and appraisal of old and new tech, many varieties. | Technology Appraising | Skill | Skill Group: Skill Category: Skill | |
| Soldering Iron and Tweezers stat!!! | Basic Electronics | Skill | Skill Group: Skill Category: Skill Not as fresh as I once was. I also have shakey hands :< Electric tape and a lighter work with good ventilation. | |
| The mechanics of a web page | HTML | Skill | Skill Group: Skill Category: Skill Familiarity with html et al, and several related server-side technologies. Need references to work with newer elements, css, or anything browser specific.
I can produce usable javascript, but haven't used it extensively in a very long time. Brushing up would be a good idea, because current design trends heavily use new(er) language features. | |
| Objective-C | Objective-C | Need To Learn | Skill Group: Skill Category: Need To Learn Reading ahead ahoy. Fortunately, Objective-C is a lot like a smalltalk but without as much gay. Cocoa resembles qt, and has a basic model/view and sometimes controler type setup that everything else uses. | |
| Drupal Module Development | Drupal Module Development | Need To Learn | Skill Group: Skill Category: Need To Learn | |
| Making things run faster | Software optimization | Skill To Teach | Skill Group: Skill Category: Skill To Teach | |
| iPhone Development | iPhone Development | Want To Learn | Skill Group: Skill Category: Want To Learn |
Personal Tools Wishlist
| # | Wishlist Wanted Tools | Tech Group | Cost (US$) | Supplier | Location | Description | Edit | Updated |
|---|---|---|---|---|---|---|---|---|
| 1 | Duct Tape | Duct Tape | Category: Wishlist Owner: Quantity: 1 Tool: | 2008-09-08 00:28 |
Posts
| Post Type | Post Title | Description | Updated | Replies | Edit |
|---|---|---|---|---|---|
| News Story | Congress OKs historic bailout bill | 2008-10-03 19:14 | 0 | ||
| Skill | Ruby on Rails | Rails is a simple, estensible MVC frameworks for make web applications with ruby. | 2008-09-29 16:02 | 0 | |
| News Story | I want a jet pack too | 2008-09-25 05:12 | 1 | ||
| Book page | Perl Handbook | 2008-09-17 12:16 | 0 | ||
| Skill | Perl | A general purpose multi-paradigm programming language. | 2008-09-17 12:16 | 0 | |
| News Story | PHP jumps on the closure bandwagon | 2008-08-11 07:44 | 1 | ||
| Blog entry | Unraveling the mysteries of the cck (and the cck docs) | 2008-07-25 00:20 | 0 | ||
| Blog entry | Content needed? | 2008-07-21 17:19 | 0 | ||
| Skill | Ruby | Ruby On Rails is a popular new web app development language | 2008-07-21 16:16 | 0 | |
| Book page | C++ | 2008-07-21 15:32 | 0 | ||
| Ranking poll | Which programming language are you most familiar with? | 2008-07-21 13:59 | 0 | ||
| Book page | Small Talk | 2008-07-21 13:52 | 0 | ||
| Blog entry | Sometimes I think that I think too much | 2008-07-16 02:10 | 2 | ||
| News Story | Zealots vs Zealots ... will justice be a collateral casualty? | 2008-05-23 00:55 | 0 | ||
| Skill | 2d Art | Creating two-dimensional art with the aid of a computer. | 2008-04-07 03:45 | 0 | |
| Skill | Lisp | Programming in the Lisp family of Lisp programming languages | 2008-04-03 00:44 | 0 | |
| Book page | Java | 2008-03-31 00:08 | 0 | ||
| Skill | Software optimization | Making software more efficient | 2008-03-29 04:43 | 0 | |
| Book page | Taking Chances With Skills | 2008-03-26 10:58 | 1 | ||
| Blog entry | I have sinned | 2007-11-29 00:40 | 1 |
My Blog
Unraveling the mysteries of the cck (and the cck docs)
blog posted by Agent0x45 Fri, 2008-07-25 00:20Groups: Developing: Code the Future, Empowerment Drupal Dev, Programming
Tags:Unraveling some of the mysteries of the CCK api. Here are some of my notes.
I have descovered that one of the biggest problems with the cck api documentation is the lack of consistant terminology. For example, "field" can have 3 distinct meanings.
- A "field type"
- Each filed type has its own unique behavior
- The node hooks are designed to work on a single field type. Most of them pass a reference to it in the $field variable
- They are stored in the table {node_field} It has the following columns:
- name and type (name is the long one used in forms)
- global configuration (the most global level of configuration you can immagine a field having. not used an awfull lot)
- a flag named "required" which means that fields of this type can never be left blank when a form is submitted (the cck does this validation, not the field implimentation, which can do additional validation)
- a flag named "multiple" which is primarily used when selecting multiple items from a list.
- The data that are stored, displayed, and made editable are defined by the field hooks for the field type.
- In the context of a hook implimentation, this is usually just called a field.
- Each filed type has its own unique behavior
- A "field instance"
- These are properties of individual node types.
- They are stored in the table {node_field_instance}
- I haven't yet found a php variable that stores a list of them. If there is a variable that stores the type, it will probably have such a list. Otherwise, I haven't found a variable storing these.
- Each "field instance" is essentially a field that has been added to a content type.
- These are generally called "field" when you are adding them to a content type
- An "item" represents the data associated with each instance of a field instance
- It is often just a single value.
- Each node has its own items.
- If "multiple" is enabled for this node type, then there will be more than nodes can have several of these for each field instance.
- I have seen these called field in several places in the cck docs, but not very consistantly. I mostly see "item" in the source.
- Items are arrays that contain key-value pairs.
- A "value" ... I haven't seen these called anything but "fields", and I am running out of names...
- I haven't seen any consistant termanology for these, but they are what each are stored in the php variables $node->field_... variables.
- They are arrays of items.
- If multiple is not turned on for the node
type
- Then the only item will allways be in $node->field_...[0]
- and the items will be stored in the table {content_type_fieldname}
- The table stores
- the nid of the node the data is attached to
- A "vid" that is used to associate the item with a field instance
- the values defined by the field type (through its hooks)
- this table (as opposed to content_field_fieldname) guarantees uniqueness of (nid,vid) pairs
- If multiple is turned on
- The items are in an un-ordered list in $node->field_fieldname
- they are stored in the table {content_field_fieldname}
- The table stores the same info as {content_type_fieldname} would, except that (nid,vid) pairs are not unique.
- The names of the tables used to store records were different in Drupal 4 and earlier, but the contents are the same.
Also, I see the phrase "multiple fields" thrown around a lot. There is a lot of multiplicity in the cck. In many cases where a singleton is the most common case, arrays are used instead.
- Each item can contain multiple values. These essentially represent columns in the virtual table for that node type. Items are arrays of key value pairs, with the key being the name of the column and the value being the data stored there. Most fields store, display, and allow the editing of a single value, and so the php variable $node->field_fieldname[0]['value'] often contains the value.
- Prior to drupal 5, the nodes were stored differently. I see lots of code that uses $node->field_fieldname_value[0] instead of $node->field_fieldname[0]['value']
- You can have multiple field instances of the same field type attached to a single node type, or to different node types.
- Each field instance has its own name, label, and some unique configuration
- The records are stored in the same tables. There isn't a table of items for each field instance, rather for each field type.
- You can have multiple Items per field instance per node. That is what the multiple flag in the node_field table does. The affects are described above in "values
Also, there are 3 different circumstances when a field provides a list of its fields. It can return separate lists for each
- The list of fields to save to the db, and the list of values to save to the db
- When rendering the field
- When editing the field (though this case is limited by the wigit used... the editing behavior is detached from the field)
This allows for very elaborite behavior. For example, a date can be presented as a single item when editing the node, can look however you want, but can be stored in an appropriate format (separate columns for day, week, and year, for example, to allow faster sorting and searching). Localization is often handled this way by cck modules.
That pretty much summs up the stuff that I found terribly unclear in the cck docs and source (including the sources of several cck modules). Its definitely not a complete guide (or even my complete notes) but if anyone else is struggling with the cck docs, it could save them a few hours of staring at phpmyadmin or the source of random contributed modules.
- Agent0x45's blog
- Login or register to post comments
- Email this page
Content needed?
blog posted by Agent0x45 Mon, 2008-07-21 17:19So in a few short days, I will be empowering full time. I have been browsing over the empowerment, and looking at a lot of content that needs expanded and/or cleaned up. I have started filling in a few stubs that I created months ago, but much more needs done. If there is anything that you would like to see on the empowerment, but don't have time to add it, or content that exists but needs more work, post a comment here and I will see what I can do. Anything that will take more than a couple of hours, or is way out side of my area of experties will get posted up to the mission system.
Also, add comments to any existing missions that you feel should be a higher priority or might need review, and post up missions for site improvements and feature requests (both for the iphone and regular www interface)
- Agent0x45's blog
- Login or register to post comments
- Email this page
Sometimes I think that I think too much
blog posted by Agent0x45 Wed, 2008-07-16 02:10Other times I know I do.
It sucks working a soul sucking job because, not only does a sense of dread and disdain build up and grow, but also it drains the mind and body, leaving me exhausted and inept. I spend all day talking to people, explaining stupid shit, then when I actually have something worthwhile to explain, the words come out all wrong. My concentration fails me.
After finally finding the entry-level document to the Cocoa architectural guides (its titled "Cocoa fundamentals guide" and lays the groundwork for the other introductory guides) I read it for about an hour last night. It was fairly redundant after all the other reading I have been doing, but I still feel that its necessary, because any flaws in how I see the overall architecture now will be very troublesome later. When I started reading again today, about 20 hours after I found it, I realized that I am 50 pages in and don't remember what I have already read. What a bummer. Hope it wasn't anything important that I didn't already know.
On the up side, I only have 12 more days of customer service. Too bad I need the money.
- Agent0x45's blog
- Login or register to post comments
- Email this page
I have sinned
blog posted by Agent0x45 Thu, 2007-11-29 00:40 Tags:Tonight I have posted more on this site than any other week in the past. Not that I had anything of interest to say. Perhaps the greatest sin i am capable of commiting online.
All your head space are belong to meeez.
Since the last time i posted, a lot has happened, including a full frontal digging my first empowerment spam, and some fairly significant site modifications. These make me happy, but I don't see much new content and that makes me sad.
Thats the excuse that i'll use. Its been quiet here lately.
- Agent0x45's blog
- Login or register to post comments
- Email this page
I feel raped
blog posted by Agent0x45 Sat, 2007-08-11 23:39- Agent0x45's blog
- Login or register to post comments
- Email this page
Agent0x45
History
- Blog
- View recent blog entries
- Member for
- 1 year 15 weeks
- Links
- View recent links.
Personal
- Full Name
- Ben Ogle
- Interests
- Ron Paul, The .Net framework/mono
- Phone Number
- 3174412510
- Location
- Indianapolis, IN
Affiliate
- Affiliate points
- Agent0x45 has earned 0 points.
Buddy List
- Buddies
- buddy of
Organizational Entities
- (Not a member of any entities)
Private messages
Referrals
- Referral link
- Register to this site using my referral link
Gold Stars
- User gold stars
- 616
Badges
Watched Posts
- Agent0x45's Watched Posts List
- Click to view Agent0x45's shared watched posts lists






