2,192 karma · joined Aug 8, 2012 (14y ago) · 545 submissions
comment 10y ago · link · parent
The main roadblock in upgrades is unicode text vs bytes handling.
Python2 was lax about using bytes for text. You could do unicode and bytes properly if you really tried hard enough, but it took a conscious effort. So most people just used bytes for text, and hoped for the best (if the data is ASCII or UTF-8, it will work most of the time).
Python3 is strict about the text vs bytes separation. Patching this into a program afterwards is a lot of work.
But if your Python2 program already does unicode carefully in Python2 (unicode type internally everywhere, from __future__ import unicode_literals, explicit encode/decode when talking to external APIs), then you are 90% done with the upgrade to Python3.
comment 10y ago · link · parent
The notice does not matter. Patents cover not only manufacturing and sales, but also use of the invention. The patent owner does not need a contract with you, the patent law is enough.
If there exists a valid patent, and you don't have permission from the patent owner, then you technically are not allowed to use your widget regardless of what the packaging does or does not say or where you got it from.
comment 10y ago · link · parent
Almost every country in the world taxes their residents' income, even if it arrives from a company abroad. And US (in)famously taxes their citizens' income, even if they do not live in US.
So if you run a company remotely, you still have to check with your local tax rules to see how much tax you may need to pay if this company pays you salary or dividend.
comment 10y ago · link · parent
But the reality is that both the career advancement and funding for further experiments is almost entirely based on the number of publications in prestigious journals.
And effort put into collecting data is not by itself publishable: you must add analysis, and very often analysis that successfully confirms a new hypothesis or invalidates previous beliefs to publish. Journals prefer to publish exciting results, and "we ran experiment X, and found no significant effects" is usually rejected.
Fixing this is desperately needed, but so far nobody has come up with a solution that would actually fix this.
A middle ground would be to require data publication after a certain time period. For example, NASA and ESA release original data 6-12 months after collection. Releasing original data together with the paper also works.
comment 10y ago · link · parent
Hopefully there will be more data available and released in the future, as Tesla and Nissan Leaf have been the best-selling cars in Norway for multiple years in a row.
For anecdata, an Uber driver with a Nissan Leaf told me recently that range on very cold days is about half of the summer range.
comment 10y ago · link · parent
But perhaps I also have some practical advice to try.
I had a similar issue: I have a few tables with sensor data, 300-500 million rows, indexed among other things by event type. Some counting queries kept defaulting to full table scans. It turned out that this was because of limited statistics on the distribution of counts by event type.
The default_statistics_target config parameter sets how many entries Postgres keeps in the histogram of possible values per column, the default is 100 I think. Because my event types were not evenly distributed, the less frequent ones were missing from the statistics histogram altogether, and somehow this resulted in bad query plans.
As a fix, I upped the default_statistics_target to 1000, and to set it to 5000 for the biggest tables. Then after a vacuum analyze, the query planner started making sensible choices.
Another thing to try is perhaps reducing the random_page_cost config parameter from it's default of 4.0. On SSDs, random page costs are much closer to 1 than they are 4 (compared to long sequential reads).
comment 10y ago · link · parent
A safe compiler will have to add checks to guard against undefined behaviour happening at runtime.
comment 10y ago · link · parent
You absolutely need a company, and a chat with an accountant before you start singing contracts with and paying partners who create content for you.
If you just wing it, there's a good chance that you will end up owing the government employment taxes.
comment 11y ago · link · parent
My guess is that this would cost at least 80% of a similar quality laptop that also includes "computer parts" and works as an actual computer. Hell, the current HDMI video streaming dongles like Chromecast have more processing power built in than my first actual laptop.
comment 11y ago · link · parent
You can get it back close to native speed by adding a type annotation and compiling the python file with Cython: http://docs.cython.org/src/userguide/language_basics.html#in...
def f(NUMBER):
cdef int i
for i in range(NUMBER):
passcomment 11y ago · link · parent
Apps can ask for permissions only if/when they are actually needed for a niche feature, and the user can reject or revoke each permission individually.
comment 11y ago · link · parent
For example, there was news recently about a breakthrough discovery of a -70C superconductor. The media spun it as if loss-free electricity transport and maglev trains are just around the corner. But in reality, this material (Hydrogen Sulfide) required 2 million atmospheres of pressure for superconducting at this temperature.
No conspiracy or lack of funding is behind the lack of practical applications, in this case it is just utterly unfeasible outside of a laboratory. But even if the material will never make it to the market, it's still a scientific breakthrough that will give scientists new understanding of how the processes work, and perhaps lead to other discoveries with more practical applications in 2, 20 or 200 years.
comment 11y ago · link · parent
The interesting part of this solution is realising that for terminals, using the mouse nor long complicated keyboard shortcuts are needed. Terminals have text input, you can type where the window is supposed to go. There commands can be memorable, and there is no risk of collision with other global hotkeys.
comment 11y ago · link · parent
An independent miner with an average affordable rig might find somewhere on the order of one block per year on average. This means that due to variability, a good proportion of miners would not find any blocks at all within the lifetime of their hardware, and give up forever.
If low-income-variability pooled mining becomes impossible, then my guess is that mining will be centralised to people who run purpose-built datacentres full of miners, not the casual users.
comment 11y ago · link · parent
But for some reason, the plane was turned around, and flew towards the Indian Ocean instead of China for at least an hour: https://upload.wikimedia.org/wikipedia/commons/f/f2/MH370_fl...
Merely incompetent crew or a technical failure would not cause that - it has to either be a hijacking or an unstable pilot doing it on purpose.
comment 11y ago · link · parent
In theory, having your "own" driver would not be a bad thing. But the main difference is in scheduling.
With taxis and Uber, you want a car to show up in 10 minutes at any time of the day without advance booking. This requires a large pool of drivers on standby and a middleman to handle the communication.
A cleaner can visit pretty much any time during the week, and is usually pre-booked for every week indefinitely into the future. This doesn't need a middleman, since you can arrange the details directly.
comment 11y ago · link · parent
With passengers, the only real risk is a traffic accident, which are reasonably rare.
With cargo, traffic accidents are still rare, but it is much more likely for the movers to damage something while loading/unloading or when boxes shift in transit. It's hard to accidentally damage a passenger, while it's easy to drop a TV while carrying it down the stairs.
Perhaps these risks can be minimised if the owner is responsible for loading/unloading and for safe packing of boxes in the truck.
comment 11y ago · link · parent
The restrictions only apply to non-profits that want to be tax-exempt by the IRS. If you aren't considered charitable enough, then you just pay taxes as usual, but nobody is going to force a shut down of the non-profit because of that.
comment 11y ago · link · parent
> "... credentials are added to the database so that everyone else on the app can also use that hotspot. Users cannot actually view these credentials so as to protect user data."
But if a client app can download the wifi key from the server and use it to log in, then a modified client app could also download all wifi keys and show them to the user.
There is no practical way for the server to distinguish the original client app from a modified one as long as the user is in control of the hardware and OS it runs on.
comment 11y ago · link · parent
For example, upsert that is worth releasing should:
* Work with all unique indexes that may exist on a table, not only a primary key,
* Be correct even at highly concurrent writes, at any isolation level from Read Uncommitted to Serializable,
* Be fast even at highly concurrent writes, so no table locks, locks may not be held for more than an instant, and no re-running the entire transaction in a loop,
* Never throw an "another transaction modified data" exception at Read Committed isolation level, it should always correctly succeed as an insert or update even if another parallel transaction inserted or deleted the matching row.
I'm not familiar much with the other database engines, but my impression has been that their upsert or SQL merge do not provide all of these.
comment 11y ago · link · parent
And if you are an US citizen, then you have to file and pay US taxes regardless of where you live, or where you earn income from.
comment 11y ago · link · parent
* It is an open algorithm based on http://tools.ietf.org/html/rfc6238
* Both the server and client work completely offline based on a pre-shared key and current time. It does not need any third-party services, network calls, or paid plans.
* The Google Authenticator app for saving secrets and generating tokens is open-source and available on Android and iOS. It does not share the secrets or tokens with Google. Others have also published compatible apps.
* There is already a Debian/Ubuntu package for adding it to logins, including SSH logins: libpam-google-authenticator
* If that's not sufficient, then there are libraries for various languages.
* And if not, or if you want to build your own branded client, then both the server and client implementations take about 10 lines of code: http://en.wikipedia.org/wiki/Google_Authenticator#Technical_...
comment 11y ago · link · parent
But if you're not signing any black- or grey-hat documents or transactions, then you can just pick a trustworthy central party to receive the hashes and publish the chain.
The startup GuardTime has been doing document timestamping and integrity checks with a blockchain for a bit while longer than bitcoin.
* You hash documents that you want to timestamp, and send the hash to them.
* They hash all received hashes and the previous head of the blockchain together, and publish the head hash in the paper copy of Financial Times: https://guardtime.com/photos/ft14-2.png
* The exact contents and "created before than" timestamp of the documents can now be fully verified, unless someone can manage to gather and destroy all paper copies of Financial Times published after it was sent to them.
The incentive for them is an usual freemium payment model.
comment 11y ago · link · parent
Out of curiosity, what was your motivation for applying? It seems to me that the only obvious use-case for e-residency is to run a company registered in Estonia while living elsewhere.
comment 11y ago · link · parent
A few of the most successful freelancers I know have formed 2-3 person partnerships. All of the partners were individual freelancers before, but teaming up allows them to tackle bigger projects, and reassure clients that a holiday or sick time won't stop their project.
Every project still needs some project and client management, but overall it seems that the time each partner spends on "management" is actually reduced in this format.
comment 11y ago · link · parent
In dense, built-up areas there is no space to land. You can't fly between buildings and land on a sidewalk in Manhattan, and where would you leave the package there?
In rural and suburban areas, where houses have backyards, the flight range starts to be a problem. Amazon isn't going to build a full warehouse every 5-10km, even "drone depots" seem doubtful with that density. With "drone depots" instead of proper warehouses, the packages would still have to be trucked in, so 1-2 day delivery instead of 1-2 hour delivery, and the only motivation would be cost saving over traditional mail carriers.
Perhaps if batteries become a lot more capable, then having drone depots every 20-50km in suburbia might end up profitable over paying for mail.
comment 11y ago · link · parent
Is it really a negotiation mistake, rather than a result of growing valuation?
The point of stock options is to grant and receive them early at a low price. There's a good chance that they won't amount to much, but there's also a hope that they will be worth a lot. That's the entire point of accepting stock options over salary as an early employee.
But if stock options are likely to be cancelled if they appreciate in value, then their expected value quickly falls to zero, and it would make more sense to just offer yearly cash bonuses instead.
comment 11y ago · link · parent
While this sounds plausible, it doesn't follow that building roads or adding buses is a bad idea. Even if the congestion stays constant, now more people get to travel.
comment 11y ago · link · parent
The only issue to keep yourself aware of is whether their human contact expectations (support, meetings, custom development) match the price they are willing to pay.