For example, it is very easy to write badly performing code using ORMs. And yet, ORM is often chosen for good reasons initially to give development speed (e.g. Django forms) The problem with quickly prototyped ORM based apps is that initially the performance is good enough but when the data grows the amount of queries goes through the roof. It is not the amount of data per se, but number of queries. Fixing these performance problems afterwards for small customer projects is often too expensive for the customer, but if there were a plug'n'play in-memory SQL cache/replica with disk-based writes, it would easily handle the problem for many sites.
Configuring PostgreSQL to do something like reading data from in-memory replica is likely possible, but I see that there would be value in plug'n'play configuration script/solution.
I use Reddit for all the other subjects than programming and startups that I'm interested in.
For example, I'm interested in energy production, energy policy and climate change, and there are several interesting energy related subreddits providing different view points and opinions (e.g. /r/energy, /r/climate, /r/nuclear, /r/hardenergy)
Also, I'm currently recreationally training running, swimming and weight lifting and Reddit gives a good view to all of these through /r/running, /r/swimming, /r/fitness and more specific subreddits ...
I did a lot of testing of a few WebRTC platforms last summer for a product idea that we had.
I came to the conclusion that on mobile phones, WebRTC video is not yet usable. Even with just audio on a cellular network, call quality started deteriorating after a few minutes on every platform that I tried. Video without a WiFi signal was hopeless.
I discussed this with an WebRTC expert, and the problems are partly with WebRTC, partly with how mobile operators shape their data traffic.
Also all platform implementations that were considered the best of the breed were bought by mobile chat companies (both SnapChat and OK Hello did acquisitions on this front)
What I've been wondering is if Apple gets any QoS concessions from the carriers for Facetime, because it usually works pretty well on 4G. Not sure if Facetime's quality is due to robust error correction, or because they've been able to wrangle special QCI/bearer status for Facetime data.
> mobile phones, WebRTC video is not yet usable
Once VoLTE + Video becomes common (eg, Verizon Advanced Calling), then it'll be interesting to see the impact on video-call quality, and whether V/VoLTE sessions can be established with the other end of a SIP trunk, and hence (browser) WebRTC from there.
Yeah, Facetime video seems to work well compared to others. It was a bit hard to explain to a couple of business guys, that "no, we are unlikely to get anything close to Facetime quality with WebRTC solution, but I don't know why."
You could try writing a FaceTime dara packet wrapper/unwrapper, which packs your application data into FaceTime video/audio packets, and unpacks it at the receiving end. If the carriers shape FaceTime traffic differently, it should be possible to establish whether this is the case, by emulating a FaceTime connection, as far as I can see. The content is encrypted, so I don't think they can shape traffic based on anything else than headers.
The issue is mostly due to the nature of the mobile IP, rather than inherent WebRTC variables.
However, ORTC does seek to improve with simulcast/SVC, and attributes of ORTC will merge into WebRTC as well, ultimately providing more hooks, finer-grained control and better instrumentation/visibility to the upper layers.
All that said, you can do acceptable quality WebRTC voice and video over 4G LTE today. But you do need a rock solid signal and be prepared to with a fully charged battery if you are not plugged in.
At Tuenti, a cell phone operator in Spain, we have been using webRTC very successfully for audio. In fact, we built android/iOS/web apps to make regular phone calls (to mobile or landline) using webRTC, either from WiFi or 3G/4G networks.
In my humble opinion, your comment is unwarranted. I never said that it will never work.
I actually spent several days last summer evaluating and developing prototypes on top of platform APIs (e.g. TokBox, Sinch) and tested the call quality in several different situations (moving from WiFi to 3G, dropping and regaining signal during the call, call behavior while moving in public transport etc.)
I described my experience and conclusion, hoping to spark informed discussion of the topic. Your comment didn't add any information to it.
If the problem (CO2 pollution) is considered serious enough by multiple governments, Government A can join forces with Government C, D, and E and form a trade agreement against B. They can create a trade embargo against B, or have higher customs tax for products from Government B or other kinds of trade sanctions.
Isn't this just international politics 101? EU and US have trade sanctions against Russia at the moment. UN had embargo against South Africa during the apartheid. Environmental issues are no different.
First, if it works against Russia, it can work against China. It's just harder. Level of dependence between many EU countries and Russian energy sources are comparable to US trade with China.
Second, there's a false assumption in your real-world example that China doesn't want to protect their environment. If the danger is real and serious, they will. Currently they are just playing catch up with economic activity and living standards and at some point the environmental issues will become to focus. There is already raising environmental awareness in Chinese cities due to pollution.
Barkley is not a sports competition in traditional sense. It is more like an ultra-ultra running event meets performance art and the very point of the event is to make it harder. Participants understand this and they are not there to compare their performance (sic) to the previous competitors.
Also, competitors are screened by totally different criteria than their previous ultra running successes: they have to write a letter to the organizer explaining why they should participate. Reasons can be something personal, not that they won Spartathlon in Greece in 2010.
It should be noted that this is mostly hydro power. If I recall right, hydro is up to 90% of the electricity generation in Costa Rica and if there is a drought in the country, they will burn coal to support their base load power generation.
I read about QuickChck over 10 years ago in Uni, I was just reintroduced to property based testing this week in HelsinkiJS meetup and now this Python implementation hit Hacker News.
Question: most of my backend code is rather dull CRUD and business logic code. Are there good tutorials about randomly generating objects with a few of fields and relationships between them and testing business logic using hypothesis?
There is no single solution to track everything. And I believe there won't be, because for a tool to provide value for a specific subdomain of information, it needs to be tailored to that subdomain. For example, Evernote is great for capturing and tracking unstructured information, but bad for tracking numerical information (because aggregating numbers requires structure). If you look my list below, you see that each subdomain can have very specific use flow (e.g. passwords) and generic tool would likely to be really bad for that subdomain.
Evernote for capturing unstructured (or semi-structured) information: thoughts, links, excerpts.
Asana for tasks that need to be done.
Google Calendar for events and alerts.
Dropbox for files & media. For example, I put things like work contracts or flight tickets and other travel documents there instead of Evernote.
Keychain and 1password for passwords.
Various programs to track exercise: different programs for different sports: Strava for running, swimming and cycling, my own prototype iOS app for gym.
I think it’s quite amazing what Facebook/Instagram are doing. They are creating a legacy that will hopefully inform what Apple and Google do with their frameworks too.
Properly designed C++ library using templates and macros can lead to surprisingly terse application code - not your standard STL/Boost template syntax mess. I've seen it in one of our gaming frameworks, and in e.g. Google's C++ unit testing framework.
However developing the library code itself requires some serious C++ template fu and the abstraction leaks to the library user in the form of complex error messages.
Strategically used, like in this case, it certainly leads more succint and readable code than pure Objective-C alone.