过了宗教改革,就有理性主义和自然神论。理性主义就将神的话割裂,客观的宗教只是限制在神,美德和不朽。意思是说,圣经说什么呢,你只需要知道

  1. 神存在

就够了。没有堕落,没有罪,没有地狱,没有神迹也没有审判。当时的自然神论宗教和理性主义就只讲这么多。

神存在,我们要彼此相爱,四海之内皆兄弟

基督教不是说博爱的吗?

自由派的神学,不相信圣经的,是怎么一码事?

康德和施来马赫将客体转到主体。就是不是一个客观的启示,而是人主观的经验,将人主观的宗教经验和客观的启示分开了

康德认为是什么呢?宗教是一种道德的行动方法 (a form of moral action).人认识到他在道德上所要尽的义务,是神所吩咐的。道德成为宗教,当人看到伦理告诉我们人生的目标是什么

基督教当然谈做人的道理,


Postgres Tables reside on disk as files 1GB in size

Files consists of 8K pages or blocks

A page is the unit of transfer from disk to memory

Transferring from disk to memory. Unit of transfer is 8K block

MVCC architecture

Multi version concurrency control

Single row of data 1 writer and multiple readers


Before Aggregating

SELECT o.occured_at AS date,
a.sales_rep_id,
o.id AS order_id,
we.id AS web_event_id
FROM demo.accounts a
JOIN demo.orders o
ON o.account_id = a.id
JOIN demo.web_events_full we
ON DATE_TRUNC('day', we.occured_at) = DATE_TRUNC('day', o.occured_at)
ORDER BY 1 desc

Aggregate the data separately for more efficient query, first subquery

SELECT DATE_TRUNC('day', o.occured_at) AS date,
COUNT(a.sales_rep_id) AS active_sales_reps,
COUNT(o.id) AS orders
FROM demo.accounts a
JOIN demo.orders o
ON o.account_id = a.id
ORDER BY 1

Next , the second subquery

SELECT DATE_TRUNC('day', we.occured_at) AS date,
COUNT(we.id) AS web_visits,
FROM demo.web_events_full we
GROUP BY 1

Finally the whole query

SELECT COALESCE(orders.date, web_events.date) AS date…

Configuring collection name for MongoDB in VnPy

The default database solution for VnPy is MongoDB

Configure the MongoDB settings in vt_settings.json , the file is located under C:\Users\<YourUser>\.vntrader\

“database.driver”: “mongodb”,
“database.database”: “vnpytest”,
“database.host”: “localhost”,
“database.port”: 27017,
“database.user”: “root”,
“database.password”: “”,
“database.authentication_source”: “admin”,

Change the file vnpy/trader/database/database.py to include the collection name input

Change the vnpy/trader/database/database_mongdo.py to have collection_name as input

Change the load_bar_data() and load_tick_data() functions too in vnpy/trader/database/database_mongdo.py

And it’s done!

The BarData is now saved to the collection , easily loaded from the collection

Quant Vernon

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store