Posts

Showing posts with the label Work

How to create a Email Server under Linux

Email Platform  Although this email service can’t send email to other people due to server providers email port block , it can be used to receive email. There are 2 options, but I decided to use other solution since my VPS has limited memory and disk storage: https://github.com/mailcow/mailcow-dockerized https://github.com/Mailu/Mailu I’m going to make a SMTP(Simple Mail Transfer Protocol) service by myself: https://stackoverflow.com/a/10850619/8667243 https://aiosmtpd.readthedocs.io/en/latest/migrating.html https://docs.python.org/3/library/email.examples.html https://petri.com/configure_mx_records_for_incoming_smtp_email_traffic/ https://stackoverflow.com/questions/7297373/smtp-directly-to-a-hosts-mx-record How I did  For the python part, you can simply use python to set up a SMTP service, which will listen to a port, for google, they use 25 . Then if you want the outside world to be able to send email to you, you have to set up a MX record and an A recor...

A simple filter to filter out those Unfair Chinese Companies

If they give low-salary to those associate degree holders while give high-salary to those bachelor degree holders, then it is an unfair company. Keep away from those companies, it's not worth for your time. > You could check it at `kanzhun.com`, from `boss app`. ___  So far, what I see is: EPAM: 15k vs 17k Neteast: 15k vs 21k Tencent: 14k vs 21k Neusoft: 12k vs 14k Tiktok: 11k vs 27k OnePlus: 11k vs 14k Alibaba: 10k vs 22k JD: 8k vs 23k PDD: 8k vs 19k

Freelance Principle for Programmers

English Version  Pay based on time For your own health, don’t work over 8 hours per day. Pay based on product Make sure you understand what the user need. If what the user need is not practical, I mean, if it can’t be implemented easily by programming, don’t take it. You must ask the user to pay you 5$ to verify if he really wanted to make a product or not. Do not accept those project that has mess code and un-unified components, because it will take tons of time to put garbage code together and make it running. But the user thinks it is easy, which will make you feel annoyed. Then you could start to split the needs into a need list (If the user have a need list, that’s also OK). For that need list, for each need, there has to have a price for it. Whenever you finished one need, the user should pay you with that price. (You could record a demo video -> send it to user -> user confirm -> user pay you -> you send or not send the un-complete code to user) Once ...

<转> MBA关注:写给想创业但还在犹豫等机会的人

http://edu.sina.com.cn/bschool/2011-12-15/1438320905.shtml       (一)温州人的思路   发现很多朋友创业的心里很矛盾,既有创业单干的激情,同时又有担心失败后悲惨的命运!  所以很多朋友思考了很长时间,最后还是决定等等再看,一月过了一月,一年过了又一年,岁月流逝,光阴不再,沉浸在打工的生涯中难以自拔,结婚供房,身上的经济枷锁日益沉重,无力再搏,最后只好认命,打工一辈子。   中国温州人号称中国最富有的人群,我认识好几个温州的年轻朋友,在她们还在上大学时,理念就与众不同,最喜欢挂在嘴边的话就是:“宁愿睡地板,也要做老板”或者“宁愿做生意一个月只赚1000元,不愿打工一月赚3000元”。这些理念相信是他们的长辈在生活中告诫他们的,潜移默化中成为他们心中做事情的原则。   这种理念却是很先进的,正是这样的理念使得温州人与众不同,成为中国最富有的人群。   “思路决定出路”!!!   这句话很多人听说过,但是转眼即忘,但是我身边的事实却随时都在验证这个道理!   我所在的大学有一个女同学,是班级唯一的温州人,长的比较丑,学习也不用心,家里父母是开皮鞋厂的,所以经济宽裕一点。在班上每次考试都处于中下等,有点钱喜欢炫耀,挺拽,所以男同学不追她,女同学瞧不起她。   可是这个女孩最喜欢吹嘘自己毕业后5年内要买辆宝马车,送给未来的老公做结婚礼物,别人都觉得她是意想天开,更加讨厌她了。   但是这个女孩行为方式就是不一样,别人忙着考证过级,学习考研,提高知识储备将来好找工作,她最不喜欢的就是学习,最喜欢的是晚上在学院门口摆地摊,从周围的小商品市场进来一些劣质小玩意,高声叫卖,不怎么赚钱,后来自己又卖糖葫芦,不赚钱后来又自己买个高压锅,晚上崩爆米花,两块钱一锅的那种,这样混到毕业,竟然听她亲口说自己大学四年共赚了近2万元。   毕业后,她没有找工作,直接去杭州丝绸一条街,在亲戚的帮助下开了一个小门面,三年后据说就发财了,同学聚会时竟然开辆本田来参加。5年还没有到,但是她原来说的送宝马车给老公的诺言,很多同学开始相信了。   这个现实的例子说明什么?   说明这个女孩的理念比较先进,别人费了老鼻子力气在考研,在学习,在考证,她却认准了做生意,压根就没有想着将来去打工,结果毕业几年后就变成所谓的成功...

What I have learned from the frontend development

1. Always add a loading indicator for any actions that consume your user's waiting time. 2. Always add a confirm window for an action that may risk users to make

How to be a good teammate player

Know why I’m here(my expertise). Respect others proficiency Support failure. (Other’s failure is not the end of the world Communicate respectfully. Express, don’t suppress. (You can for sure say your idea, but don’t say other’s solution is shit or other is garbage Be committed as a group. (Share task progress to teammates Resolve conflicts within 48 hours. (Don’t let argue existing for two days long  Ask for help. ( You ask help from others, others ask help from you. It saves time for problem-solving Get a little personal. ( Let other’s think you are a human that has a human life Help my teammates succeed. ( What do they say, when all of your friends’ are successful, you would be successful Stop and listen. (Try to hear other’s voices about something Follow. ( Time to time, let others be the leader to guide you to do things Understand your colleague’s tools. (Put them into the most fitting place Be positive. (It’s always good to be positive. ( embrace difference in diff...

How to fake mqtt messages by using Python

Catch  import paho.mqtt.client as mqtt from auto_everything.io import IO io_ = IO() def on_connect (client, userdata, flags, rc) : print( "Connected with result code " +str(rc)) client.subscribe( "#" ) def on_message (client, userdata, msg) : text = msg.payload.decode( "utf-8" ) print(text) io_.append( "data.txt" , "\n" + text) client = mqtt.Client() client.on_connect = on_connect client.on_message = on_message while True : try : client.connect( "192.168.201.81" , 1883 , 60 ) client.loop_forever() except Exception as e: print(e) Replay import paho.mqtt.client as mqtt import json from time import sleep from auto_everything.io import IO io_ = IO() import socket socket.setdefaulttimeout( 1000 ) data_list = io_.read( "data.txt" ).split( "\n" ) index = 0 length = len(data_list) client = mqtt.Client() client.connect( "192.16...

Common English in stock app development

stock: 正股 bond: 债券 found: 基金 option: 期权 index: 指数 Anti-Money Laundering (AML) : 反洗钱 ___  A 涨跌理论(Advance-Decline Theory) 套利(Arbitrage) 套利者(Arbitrageur) 做代理(As Agent) 竞价系统(Ask-Bid System) 收盘指令(At-the-Close Order) 按市价(At-the-Market) 开盘指令(At-the-Opening(Opening Only)Order) B 逆向变化(Back Up) 条线图(Bar Chart) 基准市场价值(Base Market value) 行情看跌(Bearish) 熊市(Bear Market) 大量抛空者(Bear Raiders) 买方报价和卖方报价(报价)(Bid-and-Asked Quotation(or Quote)) 畅销(Blowout) 蓝筹股(Blue-Chip Stocks) 突破(Breakout) 行情看涨(Bullish) 牛市(Bull Market) 购买力(Buying Power) C 取消(Cancellation) 资本(Capitalization) 证券证书(Certificate) 放量(买/卖)(Climax(Buying/Selling)) 收盘价(Close) 平仓交易(Closing Transaction) 佣金(Commission) 震荡区(Congestion Area) 纵市场(Cornering the Market) 股份公司(Corporation) 含权(Cum Rights) 周期性股票(Cyclical Stock) 普通股(Common Stock) D 登记日(Date of Record) 当日委托指令(Day Order) 日交易(Day Trading) 交易商(Dealer) 下降顶点趋势(Descending Tops) 回调谷(Dip) 整理区(Distribution Area) 分散投资(Diversification) 红利(Dividends) 顺行情交易(Don't Fight the Tape) 双底(Double Bottom) 双顶(Doubl...

What is K-line

Image
Candlestick Charts are also known as candlesticks, Japanese lines, yin and yang lines, and bar lines. The commonly used term is “K-line”, which originated from the 18th century Tokugawa shogunate era in Japan. The rice market transaction (1603-1867) is used to calculate the daily rise and fall of rice prices. A K-line records the price movements of the stock in one day. The daily K-line is arranged in chronological order to form a historical change in the stock price, called the K-line chart.  ​

What is OHLC

Image
Definitions  OHLC: An open-high-low-close chart (also OHLC) is a type of chart typically used to illustrate movements in the price of a financial instrument over time. Each vertical line on the chart shows the price range (the highest and lowest prices) over one unit of time, e.g., one day or one hour. It may look like this Let me explain it again OHLC stands for the open, high, low, and close prices of a share’s price on a trading day. Normally on a chart, this is visually represented by a vertical line between the low price and the high price with a left and right horizontal ledge showing the open price (left) and close price (right). Normally a green bar indicates a close price above an open price and a red bar indicates a close lower than the open ​