Thursday, May 30, 2013

New York City for the first time: Part 1 - Expectations and Surprises

We decided to go to New York City. We arrived on the 1. of  May and we stayed for a week. It was our first time in NYC and first time in the USA at all. That's why I want to share my experience, thoughts and how it surprised me with parks in the middle of the city and its cultural richness.

I thought that NY is something like a big Paris but without  the nice architecture. I didn't like Paris so I thought that NY is even worse. Big dirty city full of stressed people who are hurrying somewhere all the time. But I said OK, let's go and check it out.

After our arrival I found out that I was quite wrong...When we traveled from airport to our accommodation trough the whole Brooklyn and Manhattan I elbowed Daniel and asked him, if he knew, that there are so many black people. I knew that there are many black people in America, but I really didn't know it's this many. Surprise No. 1.

Something about our accommodation. We booked a room at a "bed and breakfast" in Harlem, Manhattan.
This place has only 6 rooms and one small dining room, where you can experience a family atmosphere and eat great homemade cookies. I really liked the Victorian era style of the rooms. I recommend this place for  staying in NY. Here is their website http://sugarhillharleminn.com/

On the first day we planned to go to camera store to buy Daniel a new camera. And the surprise No. 2 was waiting for me there. It was a really big store and they were closed on Saturday but open on Sunday. Guess why. The employees were about 90% Jews. I don't know why, you don't see them in other shops, but here. It was quite funny.

About that cleanliness of this city. The city is not dirty at all. OK it isn't Zurich, but really, the subway and streets were quite clean. So that marks surprise No. 3. Although we heard, that during the summer it gets much worse.

Surprise No. 4: People. They didn't look so stressed, actually they looked relaxed and they were really friendly. We expected something what is normal in touristic destinations in Europe. People shouting at you buy this, you need to have this... and they talk to you only when they want to sell something. Of course you can find those people in NY too, but just a few. We were in many shops and we talked with people just about normal stuff and they kept talking to us regardless whether  we bought something or not. We were looking into the map on the street and people just stopped and asked if we needed help.
Another surprise about people was, that they are not that fat. Actually you can find so many restaurants or fast foods only with salads or low carb food and you can eat your lunch in one of many parks in the city. Funny is, that there are many squirrels in these parks and they are not timid at all.

This is the first part of our trip to NY. I will come back with the second part about our insights and with the third part about useful information and must visit places off the beaten path.

Tuesday, October 2, 2012

Re: Čo je pravda?

V tomto článku by som chcel stručne reagovať na túto esej, na ktorú som bol odkázaný ľudmi, ktorí prehlasujú že pojem "pravda" je absolútny a objektívny.

Sunday, September 30, 2012

Personal analytics with Selfspy and Google Spreadsheets

In the spirit of the Quantified Self movement, this article provides steps to:
  • use an activity tracking daemon SelfSpy to capture the usage habits for all your applications and
  • Google Drive spreadsheets to store and graph productivity stats/aggregates

Monday, September 17, 2012

Stanford HCI Class - Notes


Hi folks,
here is a dump of my notes based on the magnificent HCI class held at:
https://www.coursera.org/course/hci
These notes include a recommended reading list + the essential points of each lecture.

Wednesday, July 25, 2012

Weight tracking/exercise spreadsheet+

We started a protein diet with Mana a couple weeks ago and over the time I put together a spreadsheet to track your weight + fat/water/muscle percentages. The setup is simple, you just enter your height in cm. Then just enter a date of measurement together with the measured values and it gives you your current BMI. In addition to that for each of the measured values you get:

  • total difference between the first value (when you started tracking) and the current value - good for motivation ;-)
  • you can specify a target value for any of the measured variables and the spreadsheet calculates an estimated date when you reach your target (linearly considering the progress so far)
  • nice charts!
Here is a link to the spreadsheet with some sample values - just create your own copy and good luck!
https://docs.google.com/spreadsheet/ccc?key=0AnJ2BfrzQpQGdFRkcDB6XzVCLVU5RlpWZ2hoSEhvcGc

Tuesday, May 8, 2012

Berlin Tegel - hostile for the unprepared

This is a little story of how the Berlin Tegel airport is awesome. NOT!

Saturday, March 3, 2012

Gevent+Psycopg2 = execute cannot be used while an asynchronous query is underway

I am using a stack composed of, among others, Django + Gevent + Gunicorn + psycopg2 (greened with https://bitbucket.org/dvarrazzo/psycogreen/src).
Until recently, I was occasionally getting the following errors, if I rapidly reloaded our application that generates a couple of ajax calls on the startup:
ProgrammingError: execute cannot be used while an asynchronous query is underway
DatabaseError: execute cannot be used while an asynchronous query is underway
After getting the following versions:
Django 1.4 b1
Gunicorn 0.14
Gevent 0.13.6
psycopg2 2.4.4
And greening psycopg2 pre_fork like this (in the Gunicorn config):
worker_class = "gevent"
def def_pre_fork(server, worker):
    from psyco_gevent import make_psycopg_green
    make_psycopg_green()
    worker.log.info("Made Psycopg Green")
pre_fork = def_pre_fork
And using the gunicorn_django in a virtualenv to run the server from supervisor (instead of the manage.py shortcut):
[program:photobooks]
command=/path/bin/gunicorn_django -c /path/conf/photobooks_gunicorn.conf.py
directory=/path/src/photobooks
environment=PATH="/path/bin"
I was not able to reproduce the problem any more.