language:

Articles on optimization by Adrian Kalbarczyk

„Half of a success is the skill to ask right questions”

, by unknown

WARNING! This site is under heavy development. It may crash, contain glitches etc. You can send bug report by "Report mistake on this page" link at the bottom of each page.

My work log

Activity: time spent in last week

3rd week of 2010

Activitytime
Python30h
ACXML40h

Comment: ACXML is codename of XML format that will be core of my framework

Currently working on...

  • Writing automatic way to submit Work-log,
  • JavaScript Widgets, UIs etc,
  • article on Data-Driven Programming and Configuration-Based Development,
  • polishing XSLT template engine of mine and writing XSLT recipes when I find something hard,
  • generally on this site which unfortunately includes administrating Linux (Debian), database (PostgreSQL), asynchronous framework on top of Cogen (Python), XSLT templates, CSS, JavaScript (not yet done, only some simple scripts), and all this data flow thing, XML structures etc etc; it's huge, believe me!

Year summary

It summarises my Python work in last year pretty much.

adrian@adrian-desktop:~/asyncode$ ~/cloc-1.08.pl .
      42 text files.
      37 unique files.
       1 file ignored.

http://cloc.sourceforge.net v 1.08  T=0.5 s (72.0 files/s, 7160.0 lines/s)
-------------------------------------------------------------------------------
Language          files     blank   comment      code    scale   3rd gen. equiv
-------------------------------------------------------------------------------
Python               36       334      1023      2223 x   4.20 =        9336.60
-------------------------------------------------------------------------------
SUM:                 36       334      1023      2223 x   4.20 =        9336.60
-------------------------------------------------------------------------------

About OYC

Optimize Your code serve as my personal home site and testing environment for upcoming AsynCode Web Platform.

I am not native English speaker so forgive me any grammar or other errors in my articles. Any help with improving these texts will be appreciated. If you wish, you can do it with "report mistake on this page" feature placed in the footer of each page!

the log

Make your website easy! - I don't think so...

After I've got familiar with Wix.com, I found out that much more sites allows user to create web pages. All of them are based on editor that can be used without any technical background.

It means that you can create only static pages which is in my opinion like going back to 1995 and make extinct technology alive again. On Wix.com you can do really amazing portfolio if you are artist/graphic designer/flash developer, so it has some sense, but others?

Seriously, if you need do your page without technical background, use wordpress.com which gives you powerful tools to manage your data. Nobody cares how your site looks, because people get used to everything. Even if the design is brilliant, it is going to be boring. What users do care is the usability - following well known patterns (wherein wordpress is best), use common colors etc.

For professional websites you NEED databases, sessions, internationalization and many other technical words ( ;) ) (e.g. JSON output from server if you going to use JavaScript).

Wix.com

Wix.com covers great idea which I am fan of, but I'm barely fan of using flash and other meaningless technologies (such as java applets or silverlight) as RIA foundation. Browsers are better than any of these because are open (instead of proprietary), faster, much more accessible and powerful. And yes, flash is great tool which makes possible to fill numerous gaps of standards and their implementation, but for sure nobody should create sites using mainly this technology.

Beside that, Wix can only do a static web pages. I couldn't find any option to connect it to some database or web service, not to mention sessions etc. Personally I don't believe that there are sites other than art galleries or portfolios that can benefit from this site. If you need to rotate any block by 15% this site is for you. If you feel better about readibility, usability and accessibility of your page go with HTML WYSIWYG editor (I haven't seen any but mine for about 9 years so don't ask me which one!).

This whole Wix made me think about my HTML AJAX Editor. I think it could be superior to Wix editor. I need only to rewrite it to YUI3. Time will tell if it will happen.

report mistake on this page
Report mistake on this page
Here you can let me know about errors on page. Reporting misspelings, grammar errors are very welcomed. If you are experiencing serious site bug please write how it is reproducable. You don't need to fill any of these fields!

Debug information

Execution Log

SeverityOriginFileMessage

Info

Time spent on page generation: 8.71ms
database 0.0, which is 0.0%
python 8.71
there was 0 queries.
POST data:
no POST data
HTTP headers:
{'AUTH_TYPE': '', 'cogen.call': cogen.web.async.COGENCallWrapper object at 0x8e8494c>, 'wsgi.multiprocess': False, 'cogen.core': cogen.web.async.COGENOperationWrapper object at 0xb75bf78c>, 'SERVER_SOFTWARE': 'cogen.web/0.2.1 EpollProactor', 'SCRIPT_NAME': '', 'ACTUAL_SERVER_PROTOCOL': 'HTTP/1.1', 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/', 'SERVER_PROTOCOL': 'HTTP/1.0', 'QUERY_STRING': '', 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'cogen.wsgi': cogen.web.async.COGENProxy object at 0xb72c493c>, 'HTTP_USER_AGENT': 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)', 'HTTP_CONNECTION': 'close', 'HTTP_REMOTE_ADDR': '38.107.191.106', 'SERVER_NAME': 'enhanced.provps.pl', 'REMOTE_PORT': '50519', 'wsgi.url_scheme': 'http', 'SERVER_PORT': '8003', 'cogen.http_connection': cogen.web.wsgi.WSGIConnection object at 0x8e6652c>, 'HTTP_PRAGMA': 'no-cache', 'cogen.yield': cogen.web.async.COGENSimpleWrapper object at 0x8e84c0c>, 'wsgi.input': cStringIO.StringO object at 0x90a9f40>, 'HTTP_HOST': 'www.optimizeyourcode.com', 'wsgi.multithread': False, 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'wsgi.version': (1, 0), 'HTTP_X_CC_ID': 'ccc04-02', 'wsgi.run_once': False, 'wsgi.errors': open file 'stderr>', mode 'w' at 0xb7e070b0>, 'REMOTE_ADDR': '127.0.0.1', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'cogen.sched': Scheduler@0xB760EA8C active:0 sigwait:0 timeouts:0 proactor:EpollProactor [{Accept at 0xB75AD20C sock@0xB75BF6EC conn:None to:-1>: function perform_accept at 0xb75bd1ec>}]> default_priority:3 default_timeout:5>, 'cogen.input': cogen.web.async.COGENOperationWrapper object at 0x8e8498c>, 'wsgi.file_wrapper': class cogen.web.wsgi.WSGIFileWrapper at 0xb75b4b9c>, 'HTTP_ACCEPT_ENCODING': 'gzip'}
Lang: en
Other data: