Blog | 博客

Add UTF-8 BOM header to Flask-Admin export

A simple trick to add additional bytes prepending Flask’s stream_with_context from flask_admin.contrib.sqla import ModelView from itertools import chain class MyAdminView(ModelView): can_export = True column_export_list = [‘field1’, ‘field2’] def _export_csv(self, return_url): r = super(MyAdminView, self)._export_csv(return_url) r.response … This article is reprinted from: https://blog.est.im/2022/stdout-05 This site is for inclusion only, and the copyright belongs to the original […]

Add UTF-8 BOM header to Flask-Admin export Read More »

360 browser was sentenced to pay 100,000 yuan for filtering Youku’s pre-title ads

IT House reported on April 26 that the civil first-instance judgment of Youku Information Technology (Beijing) Co., Ltd. and Beijing Qihoo Technology Co., Ltd. for unfair competition disputes was announced today. According to the judgment, the defendant Qihoo Company provided plug-ins such as “Bingmei Go to Ads” in the “360 Safe Browser” operated by Qihoo.

360 browser was sentenced to pay 100,000 yuan for filtering Youku’s pre-title ads Read More »

Coca-Cola’s sales in China declined in the first quarter; the national highway passenger and freight volume is operating at a low level

Coca-Cola’s sales in China fell in the first quarter “It’s hard to find a company that can match Coca-Cola in size and sales, and keep its product unchanged for ten years,” Fortune magazine wrote in 1938. Over the past 84 years, Coca-Cola’s production line has expanded many times and its business lines have become more

Coca-Cola’s sales in China declined in the first quarter; the national highway passenger and freight volume is operating at a low level Read More »

Est’s Blog

As a Phase 1 CEO, you are the lead rower on the boat. But in a Phase 2 startup, your job is no longer to row. Instead, it’s to define the purpose of the voyage, set the direction of the boat, and measure the pace and performance of a much larger number of rowers. In

Est’s Blog Read More »

Est’s Blog

A simple trick to add additional bytes prepending Flask’s stream_with_context from flask_admin.contrib.sqla import ModelView from itertools import chain class MyAdminView(ModelView): can_export = True column_export_list = [‘field1’, ‘field2′] def _export_csv(self, return_url): r = super(MyAdminView, self)._export_csv(return_url) r.response = chain((b’\xef\xbb\xbf’,), r.response) return r I am still using Python2 and Flask-admin shit. It’s a shame but anyway. This article

Est’s Blog Read More »

wait for the wind

For some reason, I have an unpublished article in my drafts box called “Wait for the Wind”. The time shown is five days ago, and I tried hard to recall why I wrote such a title five days ago. Why wait for the wind five days ago, and what do you do when the wind

wait for the wind Read More »