recentpopularlog in
« earlier   later »
python - sqlalchemy IS NOT NULL select - Stack Overflow |
Starting in version 0.7.9 you can use the filter operator .isnot instead of comparing constraints, like this:
<code class="language-python">query.filter(</code>
python  sqlalchemy  flask-admin  sql  orm  solution 
june 2018
Mixins and Python - Ian Lewis |
The correct way to use mixins is like in the reverse order:
<code class="language-python">class MyClass(Mixin2, Mixin1, BaseClass):

This kind of looks counter-intuitive at first because most people would read a top-down class hierarchy from left to right but if you include the class you are defining, you can read correctly up the class hierarchy (MyClass => Mixin2 => Mixin1 => BaseClass. If you define your classes this way you won't have to many conflicts and run into too many bugs.
python  mixins  multipleinheritance  mro  reference  newbie  devel 
june 2018
python - Flask url_for generating http URL instead of https - Stack Overflow |
<code class="language-python">
viewarg1=1, ...)
flask  flask-admin  annoyance  sortof  solution 
june 2018
Fixers — Werkzeug Documentation (0.12) |
This wasn't the solution to any of the stupid mixed-content problems I ran into at work--yet.
flask  proxy  loadbalancer  maybesolution 
june 2018 database incident | GitLab |
Yesterday we had a serious incident with one of our databases. We lost six hours of database data (issues, merge requests, users, comments, snippets, etc.) for Git/wiki repositories and self-hosted installations were not affected. Losing production data is unacceptable and in a few days we'll publish a post on why this happened and a list of measures we will implement to prevent it happening again.
backupandrecovery  backups  sysadmin  dba  database  fail  postmortem 
june 2018
GitHub on Twitter: "We're thrilled to announce that we've entered into an acquisition agreement with @Microsoft!… " |
Yes; but with the BS going on with telemetry, it wouldn't surprise me if they tried to buy GitHub to get everyone to use something with built-in spying functionality.
github  windows  microsoft  acquisition  spyware 
june 2018
Microsoft + GitHub = Empowering Developers - The Official Microsoft Blog |
Most importantly, we recognize the responsibility we take on with this agreement. We are committed to being stewards of the GitHub community, which will retain its developer-first ethos, operate independently and remain an open platform. We will always listen to developer feedback and invest in both fundamentals and new capabilities.

Once the acquisition closes later this year, GitHub will be led by CEO Nat Friedman, an open source veteran and founder of Xamarin, who will continue to report to Microsoft Cloud + AI Group Executive Vice President Scott Guthrie; GitHub CEO and Co-Founder Chris Wanstrath will be a technical fellow at Microsoft, also reporting to Scott. You can see how Chris, Nat and I envision the opportunity ahead in this public presentation.
github  microsoft  acquisition 
june 2018
The myths of bioinformatics software | Bits of DNA |
If you make your software free for commercial use, you are effectively creating a subsidy for companies, one that is funded by your university / your grants. You are a corporate hero! Congratulations! You have found a loophole for transferring scarce public money to the private sector. If you’ve licensed your software with BSD you’ve added another subsidy: a company using your software doesn’t have any reason to share their work with the academic community. There are two reasons why you might want to reconsider offering such subsidies. First, by denying yourself potential profits from sale of your software to industry, you are definitively removing any incentive for future development/maintenance of the software by yourself or future graduate students. Most bioinformatics software, when sold commercially, costs a few thousand dollars. This is a rounding error for companies developing cancer or other drugs at the cost of a billion dollars per drug and a tractable proposition even for startups, yet the money will make a real difference to you three years out from your Ph.D. when you’re earning a postdoc salary.
licensing  bioinformatics  devel  software  myths  debunked 
june 2018
Hazard Communication. - 1910.1200 | Occupational Safety and Health Administration |


This section does not require labeling of the following chemicals:



Any food, food additive, color additive, drug, cosmetic, or medical or veterinary device or product, including materials intended for use as ingredients in such products (e.g. flavors and fragrances), as such terms are defined in the Federal Food, Drug, and Cosmetic Act (21 U.S.C. 301 et seq.) or the Virus-Serum-Toxin Act of 1913 (21 U.S.C. 151 et seq.), and regulations issued under those Acts, when they are subject to the labeling requirements under those Acts by either the Food and Drug Administration or the Department of Agriculture;
osha  regulation  standard  hazmat 
may 2018 settings | GitLab |
DSA 7a:47:81:3a:ee:89:89:64:33:ca:44:52:3d:30:d4:87 p8vZBUOR0XQz6sYiaWSMLmh0t9i8srqYKool/Xfdfqw
ECDSA f1:d0:fb:46:73:7a:70:92:5a:ab:5d:ef:43:e2:1c:35 HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw
ED25519 2e:65:6a:c8:cf:bf:b2:8b:9a:bd:6d:9f:11:5c:12:16 eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8
RSA b6:03:0e:39:97:9e:d0:e7:24:ce:a3:77:3e:01:42:09 ROQFvPThGrW4RuWLoL9tq9I9zJ42fK4XywyRtbOz/EQ
gitlab  ssh  fingerprint  hostkeyfingerprints  reference  fuckina  solution 
may 2018
COLUMN: 3 things Greater Cincinnati cyclists need beyond 3-foot law - Insider - Story |
The idea behind the "share the road" mentality was to illustrate the oft-forgotten reality that bicycles aren't just road-legal vehicles: They're required by law -- with very little exception -- to utilize the roadway.

The problem with "share the road," though, is that it portrays a mixed message. On one hand, it could convey to motorists that they will see cyclists on the road, and that's where they mutually belong. On the other hand, it can also convey to motorists that bicycles should get out of their way. Most commonly, "getting out of the way" would mean either moving to the shoulder -- often littered with dangerous debris -- or moving to the sidewalk -- always against the law.

"Bicycle May Use Full Lane," however, conveys a direct and clear message that bicycles should be treated like any other road-legal vehicle. In the sense that, when passing, drivers should treat bicycles like they would another automobile.
cycling  cincy  laws 
may 2018
A Non-Cyclist's Case For Bike Lanes - Blogs | Planetizen |
I believe that walkers benefit from bike lanes as well. Here's why: when a traffic lane is devoted to bicycles and taken away from cars, this means that the remaining lanes are either narrower or there are fewer of them. As a matter of common sense, it seems obvious that motorists drive more slowly on narrower streets. And when motorists drive more slowly, they are less dangerous to walkers or to each other. For example, if you are a walker hit by a car going 20 miles per hour, you have a 5 percent chance of death. By contrast, if you are hit by a car going 40 miles per hour, you have an 85 percent chance of death. Thus, a street design that calms traffic is likely to reduce the amount of injuries and deaths caused by vehicle traffic. It follows that bicycle lanes reduce danger to pedestrians by calming traffic.*
cycling  safety  urbanplanning  infrastructure  transportation  cities 
may 2018
The Grammarphobia Blog: Far be it from me … |
A: The correct expression is, as you say, “far be it from me.” The Oxford English Dictionary says the phrase is “a form of deprecation” equal to “God forbid that (I, etc.).”
grammar  solution  english  idiom  colloquialism 
may 2018
« earlier      later »
per page:    204080120160

Copy this bookmark:

to read