467 reputation
1416
bio website gaman.pl
location Upper Silesia, Poland
age 36
visits member for 2 years, 11 months
seen yesterday

I'm just an average person, that uniquely combines strict, engineering mind with a non-schematic, humanistic and magical way of looking on life and surrounding world.

Add a little bit of madness, and you'll get entire picture of me! :]

I'm a developer, both desktop and mobile, with 15+ years of experience and 50+ small-to-big projects on account. In the very same time I'm a writer with similar experience and a lot of books, articles, blog posts or own blogs ideas on account.


May
24
accepted How should an API or server respond when a device connects with a different account than it is bound to?
May
22
comment How to store data that is recorded with different frequency?
@Euphoric I'm completely fine with post-processing of data retrieved from database before it is actually rendered as a graph. This is even necessary in this case, as data will be provided by API means and rendered into graph by an end-point client, after whatever post-processing it needs.
May
22
revised How to store data that is recorded with different frequency?
added 1522 characters in body
May
22
revised How should an API or server respond when a device connects with a different account than it is bound to?
added 380 characters in body
May
22
comment How should an API or server respond when a device connects with a different account than it is bound to?
I do use pre-existing hardware identification to identify devices, so second scenario occurs. However, please note, that we're talking about non-computer devices. Dropbox is just an example. I'm talking about scenario, where 95% of devices is always used by one and the same user and are not shared among others. And described situation could (per assumption) only occurs as an result of error or intentional, but non-standard actions (hacking, checking what will happen, if, etc.).
May
22
comment How should an API or server respond when a device connects with a different account than it is bound to?
Well, I tried to make it as simple and clear as possible. Try to take the Dropbox example and do not go far beyond it. Let's say that entire system design enforces what is given in first three points -- each device must be strictly bind to any user account, and always one account per moment. And any rebind is treated as non-normal situation. Please, let's not try to turn this question into wide discussion on whether my system design is correct or not. I'm mainly looking for an inspiration, how this system should respond in this precisely described situation. Thanks.
May
22
asked How should an API or server respond when a device connects with a different account than it is bound to?
May
22
comment How to store data that is recorded with different frequency?
Nope, I don't think so. Data will be recorded with 1/s or 10/s freq. by a mobile reader, but it will be pushed to server and recorded into database with frequency around 1 write per 5-10 seconds.
May
22
asked How to store data that is recorded with different frequency?
May
21
accepted Why store flags/enums in a database as strings instead of integers?
May
21
asked Why store flags/enums in a database as strings instead of integers?
Mar
24
accepted Recurring database migration
Mar
24
comment Recurring database migration
Yes, you're right. And sorry. In Yii, the migration system works like this: each successfully applied migration is added to internal migration table in database, which assures, that each migration wil be applied only once. This, of course does not cover migrations, that fails at any point. Therefore, to implement, what I was suggested, such recurring migration would have to tamper with timestamp in that internal migration table, to make itself "always on top". Hope, that clears some doubts.
Mar
24
comment Recurring database migration
I'm using database migrations in Yii and Yii2 PHP frameworks. However, that shouldn't matter (?) as I'm asking for a general rule of a thumb here (that's why posting on Programmers, not on SO).
Mar
24
asked Recurring database migration
Mar
16
awarded  Yearling
Feb
1
awarded  Famous Question
Dec
19
revised Why do we have to use break in switch?
Formatting. Answer contains an answer to two separate problems. Underlining each question answered.
Dec
19
revised Why do we have to use break in switch?
formatting
Dec
19
suggested approved edit on Why do we have to use break in switch?