• Draw an arrow on Google map

    April 25, 2010

    I wrote a simple javascript function that draws an arrow on a Google Map (based on http://wtp2.appspot.com/BdccArrowedPolyline.js): function drawArrow(pt1, pt2, color) { var lineWidth = 10; var lineOpacity = 0.7; var arrowSize = 50; function addHead(point, theta, zoom, color) { var p = prj.fromLatLngToPixel(point, zoom) var x = p.x, y = p.y; var t = […]

  • django add bitwise logics to the filter query

    April 9, 2010

    Django has a great ORM, but it has some limitations while performing queries, e.g. it does not allow to do bitwise operation. Likely, django’s QuerySet has extra method (http://docs.djangoproject.com/en/dev/ref/models/querysets/#extra-select-none-where-none-params-none-tables-none-order-by-none-select-params-none). This method allows developers to write raw sql that will be included into the generated by ORM query. The tricky part is that all fields included […]

  • Твиттер – первые впечатления

    April 6, 2010

    Около месяца я активно использую твиттер и успел сформировать свое мнение о данном сервисе, коим и хочу поделиться. Как я вышел на твиттер На конференции i-Community, на которой я не был, но информации с нее так или иначе стала доступна, в частности упоминалось, что за последний год число русскоязычных пользователей твиттера возросло в десятки раз […]

  • Why dmitko.ru was down

    April 6, 2010

    For almost the whole day this blog was down with fatal error Cannot allocate memory. After changing php.ini and setting memory_limit=32М instead of previous 8M the site became working. Sorry for the inconvenience.

Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org