9,102 reputation
2144
bio website dmitry.cheryasov.in
location
age
visits member for 3 years, 7 months
seen 20 mins ago

I constantly try to expand the little I know about programming.

google profile


Apr
25
answered Strategy for maintaining offline repository safely using git
Apr
25
answered How to design this better?
Apr
22
comment Practical Primes In P
Try also on cs.stackexchange.com
Apr
17
comment Http meta tag for refreshing/redirecting
Most metadata in HTTP headers is about the value returned by the request: encoding, length, etc. But some metadata is about the request itself and not directly applied to the returned value: referer, ETag, modification time, caching policy, and validity duration (for which 'refresh' is not the best name, I agree).
Apr
17
comment Http meta tag for refreshing/redirecting
Can you consider this kind of data about data: "The data will expire in N seconds and need to be refreshed"?
Apr
1
comment Cloud differential backup
Do you know how rsync works? It basically calculates hashes of file blocks on either side, without transferring the files. AFAICT the same does bacula. Hopefully storing small hashes (e.g. 16-byte hash per 16-KiB block) would be more economical.
Mar
31
comment Strategy for Website Talking to API on Same Server
In an ideal world you don't think about hosts at all; you only think about services and call them by canonical names. It lets you scale out easily, etc. Unfortunately, there are non-locality penalties. But your case is strictly local.
Mar
31
comment Why is CPU cache memory so fast?
SRAM is also more power-hungry per bit, so you'd have to add radiators to it, and anything battery-powered would suffer.
Mar
31
comment Strategy for Website Talking to API on Same Server
If you could replace example.com with a reference to a Unix socket, you could avoid the TCP/IP stack altogether. I wonder if it's worth doing, though: unless your application server layer is very low latency, the overhead of going through the network layer locally may be negligible.
Mar
27
comment Tablet development for a dedicated system
Android not a general-purpose computing platform. It is designed with mobile devices in mind. Such devices have very constrained energy budget. If your app wants to play nice with the rest of the device, you better use the API. Hardware may be actively power-managed, so in best case a non-conforming app would drain the battery, in worst case it might see 'malfunctioning' hardware that the OS just sent to sleep.
Mar
27
comment Tablet development for a dedicated system
I suppose that for native UI you don't need all the code to be in Java, only the UI-handling part. The rest can be in any reasonable JVM language (Clojure, Jython, etc).
Mar
26
comment How can I explain this is an anti-pattern?
Anti-pattern? It looks like an entire anti-carpet.
Mar
20
answered reloading singleton classes and dependency
Mar
16
reviewed Approve suggested edit on Why is using 'final' on a class really so bad?
Mar
9
reviewed Approve suggested edit on How to locate source code that implemented a certain feature?
Mar
6
reviewed Approve suggested edit on Is it appropriate for interviewers to ask candidates for their Stack Exchange user name?
Mar
3
comment How to write a very basic compiler
@Prog: I don't seem to follow you. Did you mean to build a compiler for a processor that does not yet exist? If so, your best bet is to write a good emulator for it first.
Feb
27
answered What is the absolute minimum set of instructions required to build a Turing complete processor
Feb
24
reviewed Approve suggested edit on Understanding the difference between mutable and immutable classes
Feb
21
revised What to do when coding begins to feel boring, like it is all just more of the same?
added 4 characters in body