Corona SDK Ambassador
Volodymyr Sergeyev himself
RSS feed   View Volodymyr Sergeyev's profile on LinkedIn
Welcome to my portfolio. I provide software development, primarily in Python (Django, Flask, GAE, Java Script, CSS, XHTML, JQuery) and Lua (Corona SDK)
Feel free to contact me by E-mail. My Skype ID: v.sergeyev. CV: CV_2013.PDF
Quantum computing on OSX at Nov. 19, 2013

Quantum computing is highly promising area in software. It highly suitable for tasks where complexity grows with elements count: searching path in graph, iterating over list of data, searching for match in DB. Quantum algorithms operates with Qubits, some kind of classical "bits" of data. When classical computers relay on defined state of information bit, programmed Qubit at given moment of time holds all possible values for given data chunk. Every value has own probablity to be true, depending on input data and operations over Qubit.

To start with quantum programming it is good to use Quipper Language. This is high level functional language at top of Haskell.

0. Download Haskell for OSX if it is not already installed. Haskell has nice graphical installer so it is obviously easy to set it up on OSX.

1. Download Quipper.

2. Install pre-required packages:

cabal install random
cabal install mtl
cabal install primes
cabal install Lattices
cabal install zlib
cabal install fixedprec
cabal install containers
cabal install set-monad
cabal install quickcheck

3. Unpack Quipper, open terminal application in it's folder and use make to install it.

make

Read or post comments
Sol Control RTS game pushed to Open Source at Feb. 8, 2013

We worked on this game about a year, and it looks no chanse to publish it in App Store.
So it is pushed to Open Source on GitHub: https://github.com/vsergeyev/sol

Here is game video samples:

Read or post comments
Rain library update (Corona SDK) at Feb. 8, 2013

Just added two useful functions to Rain class.


rain.pause()

pause() - removes rain renderer from on-frame handler.


rain.resume()

resume() - set rain renderer back to Corona on-frame handler, so it will make it rain again :)

GitHub: https://github.com/vsergeyev/Rain

Read or post comments
Highlight search results with JS at Oct. 27, 2012

IMHO: highlighting search patterns in text result better UX and love.

Found this idea somewhere and little improved it:


highlight: function(q) {
var re = new RegExp("(" + q + ")", "gi");
// Highlights search results
$(".highlight-on-search").each(function() {
var el = $(this);
el.html(el.text().replace(re, "<span style='background:red'>$1</span>"));
});
}

Read or post comments
Order items by field in admin at Oct. 5, 2012

Ndbadmin is my pet project to create lightweight and easy to use admin UI for Google App Engine webapp2 projects.

Today I added an option to specify sort order for items in admin UI.

`order_by` - set it in model's Meta and specify a field, same as in Model.query().order()

Example:


class Item(ndb.Model):
name = ndb.StringProperty()
class Meta():
def __init__(self):
self.order_by = Item.name

Read or post comments
Admin panel for Google App Engine ndb.Model at Sept. 23, 2012

Maybe I reinvented the wheel, but working on gae project with webapp2 I haven't found good and lightweight admin UI to meet my needs. So I have spent one day to write an universal CRUD handler and UI for it to create, edit, remove and list items of specified Model.

Twitter Bootstrap CSS has been used to make it look good.

admin panel for gae models

The idea of admin UI is to place Meta() class inside model (yes, it's feels Django-like :), and define in it templates and fields for create/edit form.


class Meta():
def __init__(self):
self.fields = [
fields.TextField("name", "Name", required=True),
fields.BigTextField("description", "Description")
]
# optional
# templates, '/templates/admin/[model]/' path
self.c = "" # new item template
self.r = "" # items list template
self.u = "" # edit item template
self.d = "" # delete item template

It is pushed to github at https://github.com/vsergeyev/ndbadmin

On github lives live gae application with demo models and usage samples.

Read or post comments
Lutsk.io at Aug. 2, 2012

Lutsk.io - July 28, Lutsk.

It was a lot of fun to make it happens and I want to say "Big thank you" to all spokespersons and participants. We discussed a lot of interesting things: Corona SDK framework, UDK kit from Unreal, node.js and npm, Flask micro-framework and Erlang. All this new experience is damn great.

Right now it finished uploading videos from conference and you may watch it on Lutsk.io page: http://www.facebook.com/lutskio

Read or post comments
Quick sheet: Understanding display groups in Corona SDK at July 13, 2012

Consider display groups as layers in your on-screen scene.

It is always already exists 1 main group on scene - "self.view".

Group is regular display object with (x, y) position and (width, height).




(click on image to open google drawing)

Read or post comments
Miniredis - python client for redis in 20 lines of code at July 12, 2012

Inspired by miniredis-ruby I spend a few minutes to play with python. And so it is - "miniredis", 20 lines long redis client (Pypi, Github).

Usage is quite simple:


import miniredis
cli = miniredis.MiniRedis()
cli.set('a', 1)
cli.get('a')
cli.sadd('b', 1, 2, 3)
cli.smembers('b')

Read or post comments
Quick sheet: multi param sorting with redis at July 10, 2012

Redis has sorted sets, which is quite useful to create indexes.

ZADD [param_name] [item_id] [param_value]

This will add element into sorted set [param_name] with reference to [item_id]. Item ID is member of set:

SET [item_id] [payload]

Payload can be for example JSON encoded string, so later you may retrieve it and pass to web-browser. In browser JavaScript engine will use this JSON data to display, for example, in jQuery template. Efficient and easy.

Here is actual quick sheet:



(click on image to open google drawing)

Read or post comments
« Recent posts
This site is © 2007-2013 V.Sergeyev. Powered by Django