LiTWol @ Oleg Terenchuk

  • Contact
  • About me

User login

What is OpenID?
To prevent automated spam submissions leave this field empty.
  • Log in using OpenID
  • Cancel OpenID login
  • Request new password

litwol's tweets

  • Youth is spent learning to turn our brain on producing results. No one bothers teaching us how to turn it off. Damn you insomnia — 17 weeks 4 days ago
  •  
  • 1 of 9
  • ››
more

Creating custom fields using Drupal 7 field api

Submitted by litwol on Thu, 01/28/2010 - 06:03

** Work in progress **

This article describes which Drupal 7 field api hooks one must implement to create fully functional custom field. This field then may be usable on any fieldable object in Drupal 7.

// tells drupal which field(s) your module defines and implements
function hook_field_info() {}

// tells drupal which widgets your module defines and implements
// these widgets may be made available to other fields defined elsewhere (ex, core fields). but for our purpose i will describe how this hook interacts with hook_field_info()
function hook_field_widget_info() {}

  • Add new comment
  • Read more
  • 128 reads
Tags:
  • Drupal
  • Drupal 7
  • field api

Creating 3d cube movieClip using Sprites and animating rotation through ActionsScript 3.0

Submitted by litwol on Mon, 01/18/2010 - 17:53

The point of this exercise is to learn how to create a 3d object from primitive 2d shapes in Flash ActionScript 3.0.

I added very simple animation effect just to demonstrate that it actually is 3d and rotates.

Note: I left final 6th side out on purpose.

No special instructions to run this code, just drop it into actions editor and preview your movie.

  • Add new comment
  • Read more
  • 253 reads
Tags:
  • ActionScript 3
  • CS4
  • Flash

Adding sprite from inside an external class onto stage and animating it using arrow key movement.

Submitted by litwol on Mon, 01/18/2010 - 03:41

Flash demo is at the bottom of the post, scroll there!

Initially i had difficulty attaching a sprite created inside a class onto the stage. I haven't found documentation yet that explains the right way of doing it but i did stumble onto my own solution. I will not know whether this is the right way of doing it until i find some documentation that explains it. If some one has a tip please leave a comment.

I instantiated my class from the main FLA using the following code passing 'this' into the construct. "This" represents /stage/ in this file :

  • 1 comment
  • Read more
  • 253 reads
Tags:
  • ActionScript 3
  • CS4
  • Flash

High throughput web architecture with drupal - *For authenticated users*

Submitted by litwol on Tue, 09/22/2009 - 03:47

Attached is visual representation of my research. I've been studying how to optimize drupal for authenticated users (Unlike every other solution out there that focuses on delivering content to anonymous users... that task is easy).

Attachment: 
image/jpeg icon
High throughput web architecture with drupal design
  • 1 comment
  • Read more
  • 4877 reads

Pre-generating drupal forms

Submitted by litwol on Mon, 07/20/2009 - 23:23

Theoretically we can pre-genrate drupal form output and cache it which then will be served instead of regenrating form html on every form view.

Few issues:
1) CSRF tokens make form caching useless.
2) Form action in HTML makes cross-page caching useless because on each page form action is set to be that page's URL.

Possible solutions:
1) Cache based on session_id, which is what the form token is based on
2) We can perform string replacement on the cached form output to correct form action.

  • Read more
  • 806 reads
  • 1
  • 2
  • next ›
  • last »
Syndicate content

Recent posts

  • Creating custom fields using Drupal 7 field api
  • Creating 3d cube movieClip using Sprites and animating rotation through ActionsScript 3.0
  • Adding sprite from inside an external class onto stage and animating it using arrow key movement.
  • Playing with flash keyboard click events
  • Script to benchmark API execution time.
  • Very good dvcs guide
  • High throughput web architecture with drupal - *For authenticated users*
  • About me - Oleg Terenchuk
  • Note to self
  • Pre-generating drupal forms
  • Change memcached admin stats page
  • The cult of done

LiTWoL © Oleg Terenchuk - Hosted on Linode.com 360