LiTWol @ Oleg Terenchuk

  • Contact
  • Tips & Tricks
  • About me

User login

  • Request new password
To prevent automated spam submissions leave this field empty.

litwol's tweets

  • For if I speak I will have altered your existence, even if its only reinforcing your stance against my beliefs. — 2 years 21 weeks ago
  •  
  • 1 of 9
  • ››
more

Processing large or multiple related XML files efficiently in PHP

Submitted by litwol on Tue, 10/11/2011 - 20:33

Click here to scroll to conclussion.

I had to learn the hard way that a 512MB RAM VPS cannot handle 70MB worth of plain text XML files, when i saw a pretty simple importer script consume more than a gig of RAM sending my VPS into swap hell. What did I do wrong and how can I improve things?


Measuring RAM consumption in PHP

  • Add new comment
  • Read more
Tags:
  • php
  • xml

Developing PHP in VIM - VIM IDE for PHP

Submitted by litwol on Mon, 02/15/2010 - 22:18

I was going to write something long and smart about how its important to know what YOUR NEEDS are when it comes to coding and using specific IDEs and how do they satisfy them, but decided its best to cut to the chase and just post my VIM configs as requested by several from NYC Drupal User Group during our Feb 10 2010 monthly meetup.

VIM

  • 5 comments
  • Read more
Tags:
  • php ide
  • vim
  • vim php
  • vim php ide

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.

  • 1 comment
  • Read more
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 :

  • 3 comments
  • Read more
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).

  • 1 comment
  • Read more
Syndicate content

LiTWoL © Oleg Terenchuk - Hosted on Linode.com 512