从前
日复一日
突然有一天
因为这天发生的事情
更因为如此
终于
按照10分钟、30分钟、1小时来排练
按照10分钟、30分钟、1小时来排练
几年前,我安排小李加入一个社团,社团名称很有古意,叫做“青林馆” 。
青林馆的主要活动是剑道,社员不分老幼,不论种族,偶有国际友人造访,时不时还举办迎新活动。小李第一杯免费奶茶,就是迎新时享受到的。
不过平时社团活动,是非常严肃,社员更衣后,不分老幼、不论种族、男女平等,一言不发就拔剑互殴 。
互殴之后,社团团长会组织大家团团坐,面向东方先行大礼,之后便是团长solo聊天,此刻社员也不得放松,尿意盎然也必须憋着,喝水则更是不被允许。
除了互殴,稽古也是非常重要的部分,有时候还会有静止动作练习,毕竟“学会忍耐,就能控制自己的心-某剑道名人名言”
小李学业负担较重,暑假期间也是日理万机,奔波在B站和Xbox之间,在剑道社团的表现一直比较佛系。这几天东京奥运盛会,我们全家也深受鼓舞,热烈的气氛感染了小李,击剑金牌得主孙一文的一剑封喉,更让小李跃跃欲试,大有王侯将相吾大丈夫可取而代之的豪情霸气。
也许奥运精神真的激励小李,周日剑道活动结束后,社团团长发来贺电,要求为小李加鸡腿。
从青林馆离开,我采访小李有啥感想,小李淡淡的说,我动作标准吧,好像夸了夸我。。。
适逢东京奥运,以兹留念。
我们常说,“这次是对事不对人啊” 。但最终结果往往演变为对人采取行动,或者由具体的人来承担后果。
我看这个问题,类似炒股票。短期看每一支股票的涨跌,似乎都是有不确定的因素影响着,例如昨天互联网股票大跌,很大程度是滴滴安全事件造成的。这就是典型黑天鹅本身。
而长期来看一支股票,它的内在价值,又是相对确定的。例如腾讯、阿里。
所以,发生一件具体的事情,从各方反馈、搜集的信息,会有意无意忽略各种细节,加上时空因素,人的因素,不确定性就很高了。
而具体到一个人,则脾气秉性,自我定位相对稳定。如果又是一个执拗不肯听劝的人,有时候只能远离了。
树挪死,人挪活,核心就是说自我定位。自我定位过高,就会时不时陡生怨气;定位过于狭窄,则被他人看作畏难退缩,站位不高。
我是老员工,我是老专家,我是甲方,都是自己给自己扣帽子,上枷锁的行为。
自我定位不准,是负面情绪产生的根源。
不过,企业组织内为了利益,发生对抗是可以理解的,不过被情绪驱动,就不是一个leader要做的事情。
傍晚送马达去康桥。
在电梯里聊到四季的不同,我问他喜欢哪一个季节?马达排序是夏天、秋天、冬天、春天。春天在最后因为没有什么景色。
马达补充到,夏天傍晚最好,秋天是早晚,冬天是中午。
http://www.broadview.com.cn/book/156
0.1 https://www.nostarch.com/pythonwithminecraft/
1.1 https://www.nostarch.com/pythonwithminecraft/
1.2 https://minecraft.net/
1.3 https://minecraft.net/download
1.4 http://www.python.org/downloads/
1.5 http://www.java.com/en/download/
1.6 http://www.java.com/en/ download/help/path.xml
1.7 https://www.nostarch.com/pythonwithminecraft/
1.8 https://minecraft.net/download
1.9 https://www.python.org/downloads/mac-osx/
1.10 http://www.oracle.com/technetwork/java/javase/downloads/index.html
1.11 https://www.nostarch.com/pythonwithminecraft/
1.12 http://www.raspberrypi.org/
10.1 https://www.nostarch.com/pythonwithminecraft/
11.1 http://pypi.python.org/
11.2 http://flask.pocoo.org/docs/0.10/tutorial/
12.1 https://www.nostarch.com/pythonwithminecraft/
https://nostarch.com/minecrafthelp
The book Learn to Program with Minecraft requires Minecraft 1.8 or 1.9, Python 3.6 or newer and Java 8 or newer. If you're having difficulty getting your environment set up, software versions are the most likely problem. Follow the instructions on this page to check that you are using the correct versions of Minecraft, Python, and Java.
If you've confirmed that you have the correct versions and you're getting other errors, refer to the later sections in this document (linked below).
Pick the Right Minecraft Version
Am I Using the Right Version of Python?
Am I Using the Right Version of Java?
What If I Have Two Versions of Python on My Computer?
Start_Server, File Cannot Be Found (For Windows)
Connection Refused Error (For Mac)
Nothing Happens After I Click Install_API (For Windows)
Permissions Error When Installing API (For Mac)
Unicode Decode Error (For Windows)
I Got a Different Error!
Unfortunately, we do not have any dedicated Python programmers on our team, so we are unable to troubleshoot more complex errors. Sorry for the inconvenience!
Pick the Right Minecraft Version
Purchase the standard Minecraft version from minecraft.net to follow along with the book. You must have Java Edition for Windows and OSX or Pi Edition for the Raspberry Pi.
Please know that Minecraft Windows 10 Edition, Minecraft for Xbox, Minecraft: Education Edition, and Minecraft: Pocket Edition are not compatible with the book.
In order to use your Spigot server, your Minecraft version needs to match the Spigot version exactly. But new versions of Minecraft come out all the time, so if you update Minecraft, Spigot won’t work with the new version anymore. In order to make your Spigot and Minecraft versions match, you can set up a profile.
When you set up a profile, you tell Minecraft that you only want to use the version of the game that will work with the version of the server that you are using. In other words, a profile allows you to continue using the same server even when newer versions of Minecraft are released.
Once you set up a profile, you should be able to use our book’s coding directions and you'll know one more of Minecraft’s secrets, and will be further along on your journey to become a Minecraft Master!
Let’s get started.
For Windows
You’ll need to set up a profile to make sure Spigot and Minecraft are always running the same version. To start Spigot, follow these steps:
Step 1. Go to your Minecraft Python folder and open your Minecraft Tools folder.
Step 2. In the Minecraft Tools folder, double-click the Start_Server file. If you get a message asking whether you want to allow access, click Allow.
Step 3. A window will appear and begin to set up the server. If you see a message that says the server is out of date, don’t worry; you don’t need to update the server for it to work.
Step 4. Once the setup is finished, scroll to the top of the text in the window. Near the top (around the third or fourth line), you should see text saying Starting minecraft server version x.x.x. For example, 1.16.3.
Step 5. Make a note of the version number shown on your screen, and keep this window open.
Now that you know which server version you’re using, you can set up the game profile:
Step 1. Open the Minecraft launcher, but don’t click the green PLAY button quite yet (make sure you leave the server window open when you do this).
Step 2. At the top-right of the Minecraft launcher, click the menu button (which looks like three parallel lines), then click the Launch Options button. This will allow you to access the profile editor.
Step 3. Click the Add New button to create a new configuration.
Step 4. In the Name field, type Learn to Program with Minecraft.
Step 5. In the Version drop-down menu, select the version of the server that you’re using. For example, version 1.16.3.
Step 6. Click the Save button. Your profile has now been set up. Click the central Minecraft logo to return to the screen with the green PLAY button.
From now on, every time you want to use Minecraft with this book, click the arrow next to the Minecraft launcher’s start button. Select the Learn to Program with Minecraft option to use the correct version for the server. You can swap back to the latest version of Minecraft at any time by changing this drop-down menu to the Latest Release option. Once you have selected the correct version, click PLAY!
For Mac
You’ll need to set up a profile to make sure Spigot and Minecraft are always running the same version. To start Spigot, follow these steps:
Step 1. Go to your MinecraftPython folder and open your MinecraftTools folder.
Step 2. In the MinecraftTools folder, CONTROL-click the Start_Server file and select Open. (If you get an error message, go to System Preferences and then to Security and Privacy and click Open Anyway.)
Step 3. Once the setup is finished, scroll to the top of the text in the window. Near the top (around the third or fourth line), you should see text saying Starting minecraft server version x.x.x. For example, version 1.16.3.
Step 4. Make a note of the version number shown on your screen, and keep this window open.
Now that you know which server version you’re using, you can set up the game profile:
Step 1. Open the Minecraft launcher, but don’t click the green PLAY button quite yet.
Step 2. In the top-right corner of the Minecraft launcher, click the menu button (which looks like three parallel lines), then click the Launch Options button. This will allow you to access the profile editor. Click the Add New button to create a new configuration.
Step 3. In the Name field, type Learn to Program with Minecraft.
Step 4. In the Version drop-down menu, select the version of the server that you’re using. For example, version 1.16.3.
Step 5. Click the Save button. Your profile has now been set up. Click the X in the upper-right corner, then click the central Minecraft logo to return to the screen with the green PLAY button.
From now on, every time you want to use Minecraft with this book, select the Learn to Program with Minecraft option in the drop-down menu to the right of the green PLAY button. You can swap back to the latest version of Minecraft at any time by changing this drop-down menu to the Latest Release option.
Am I Using the Right Version of Python?
Follow these steps to make sure you're running Python 3.6 or newer.
Note: If you find that you have both Python 2 and Python 3 installed, you should uninstall Python 2—or follow the instructions in “What If I Have Two Versions of Python on My Computer?” below.
For Windows
The simplest way to confirm you’ve gotten the right version of Python is to go to the Start menu, then search for Python. If you don’t see a search box, you can just start typing Python to search. This will show you every version of Python that you have installed on your machine. The Python version number might be part of the name that shows up in the Start menu; if not, open IDLE and the version number will be displayed in the shell.
If you don’t have version 3.6 or newer, you’ll need to install the updated version. Follow the steps in “Installing Python” in the book.
For Mac
Step 1. Open Finder and search for Terminal. Click Terminal to open it.
Step 2. At the Terminal prompt, enter Python -V (note that the V is uppercase).
Step 3. You will see the Python version number—if it's anything older than 3.6, you'll need to install an updated version. Follow the steps in Chapter 1 to install Python version 3.6.
Am I Using the Right Version of Java?
Follow these steps to make sure you're running Java 8 or newer.
For Windows
You should be able to see all the installed programs in the Windows Start menu, including Java. The simplest way determine which version you have installed is to do the following:
Step 1. Go to the Start menu.
Step 2. Choose All Programs.
Step 3. Find the Java folder and click About Java.
You can also test the version of Java by using this method:
Step 1. Open the Start menu, search for cmd, and open the command prompt.
Step 2. Run the command java -version. You will see a message that says something like java version "1.8.0_72". The version of Java that you are using is the number after the first dot, which is version 8 in our example message. If your version is older than 8 (or if Java isn’t installed at all!), you’ll need to update or install Java. To do so, follow the installation instructions in Chapter 1.
For Mac
Step 1. Open Finder and search for Terminal. Click Terminal to open it.
Step 2. At the Terminal prompt, type java -version and press RETURN.
Step 3. You will see a message that says something like java version "1.8.0_72". The version of Java that you are using is the number after the first dot, in this case version 8. If your version is older than 8, you'll need to update Java. To do so, follow the installation instructions in Chapter 1.
What If I Have Two Versions of Python on My Computer?
If you want to have both Python 3 and an older version of Python installed, and if you have an older version of the Install_API file, you need to modify the file to specify that it should use Python 3 rather than the older version.
The Minecraft Python API will work with older versions of Python, but you must use Python 3 if you want to run all the code examples from this book—otherwise you’ll get an error if you try to use the print() function and a few other Python things. But you can still keep another, older version of Python on your computer if you want to.
Install the Minecraft Python API by following the Windows or Mac instructions in the following sections. Once you’ve installed the API, you’ll need to make sure that you use the correct version of IDLE. Make sure you use IDLE 3 when writing and running code—otherwise the programs from this book will not work.
For Windows
If you have the older version of the Install_API file, then you’ll need to modify it. To modify the In-stall_API file, follow these steps:
Step 1. Open the Minecraft Tools folder and find the Install_API file.
Step 2. Right-click the Install_API file and select Edit.
Step 3. Once the file opens, find the line that begins with this:
python -m pip install minecraftPythonAPI.zip
Step 4. Edit the line by changing python to python3 so that the line looks like this:
py -3 -m pip install minecraftPythonAPI.zip
Step 5. Save the file and close it.
Step 6. Double-click the Install_API file to install the Minecraft Python API.
For Mac
If you have the older version of the Install_API file, then you’ll need to modify it. To modify the In-stall_API file, follow these steps:
Step 1. Open the Minecraft Tools folder and find the Install_API file.
Step 2. Control-click the Install_API file and select Edit.
Step 3. Once the file opens, find the line that begins with this:
python -m pip install minecraftPythonAPI.zip
Step 4. If you can’t find that line, then you already have the new file and don’t need to do anything else. Otherwise, edit the line by changing python to python3 so that the line looks like this:
python3 -m pip install minecraftPythonAPI.zip
Step 5. Save the file and close it.
Step 6. Double-click the Install_API file to install the Minecraft Python API.
Start_Server, File Cannot Be Found (For Windows)
When you click on the Start_Server file you might see a window saying “Windows cannot find 'C:\Users\Frank\Documents'” or something similar.
To work around this issue, open the server folder and double click on the start.bat file. The server should start normally. Every time you need to start the server in the future repeat these steps.
Alternatively, download the latest version of the book's setup files, Minecraft Tools, linked on the book's web page.
Connection Refused Error (For Mac)
In Python, after typing the line mc = Minecraft.create(), you might get an error message like this:
ConnectionRefusedError: [Errno 61] Connection refused
or a similar error like this:
ConnectionRefusedError: [Errno 10061] No connection could be made because the target machine actively refused it.
This error is most frequently caused by an out-of-date version of Java installed on your computer. In order to fix this issue, follow the Java installation instructions in Chapter 1.
If you still get this error after reinstalling Java, your Mac might be using an old version of Java only on the command line. To fix this issue, do the following:
Step 1. Click the search icon on the top-right corner of your screen.
Step 2. In the search box, enter Java Preferences.
Step 3. When the preferences box opens, make sure that only the Java 8 checkbox is ticked.
After you have changed these preferences, the problem should be resolved. However, if you still have this issue, uninstall older versions of Java and then reinstall Java 8.
Nothing Happens After I Click on Install_API (For Windows)
When you run the Install_API file during step 5 of “Installing the Minecraft Python API and Spigot” (page 6), you might see a black window pop up.
If you see a window like this, you might be experiencing a bug with pip, which is used to install the API. To work around this, you need to install the Minecraft Python API via the command line. Follow these steps:
Step 1. Open the Minecraft Tools folder. You should see the minecraftPythonAPI.zip file.
Step 2. In the file browser, click the address bar to highlight it, then copy the text (right-click and select Copy, or press CTRL-C). The address should look something like this:
C:\Users\user\Minecraft Python\Minecraft Tools
Step 3. Click the Start menu and search for PowerShell. Click PowerShell to open it.
Step 4. At the PowerShell prompt, type cd and then right-click to paste the address of your Minecraft Tools folder.
Step 5. Add single quotation marks around the text you just pasted. The line should look something like this:
cd 'C:\Users\user\Minecraft Python\Minecraft Tools'
Step 6. Press ENTER. Now you can run commands in PowerShell using the contents of the Minecraft Tools folder.
Step 7. On the next line, type the following command to install the API:
python -m pip install minecraftPythonAPI.zip
Step 8. Press ENTER. The Python API should now be installed correctly.
Permissions Error When Installing API (For Mac)
During step 8 of “Installing the Minecraft Python API and Spigot” in Chapter 1, you might get this error:
The directory '/Users/YourUserName/Library/Caches/pip/http' or its parent
directory is not owned by the current user and the cache has been
disabled. Please check the permissions and owner of that directory. If
executing pip with sudo, you may want sudo's -H flag.
Check all the folders that the Install_API file is inside of and remove any spaces from the folder names. To do this, follow these steps:
Step 1. Control-click the icon of the folder with a space in the name.
Step 2. From the pop-up menu, select Rename, then remove the space from the folder’s name. Note that you should not have to do this with the hard drive itself (Macintosh HD)!
Once you have done this, try running the Install_API file again.
On some Macs, you might still get an error—however, the API has still installed correctly. If you see the following line, the API has installed correctly and you can ignore the error message:
Requirement already satisfied (use -–upgrade to upgrade): py3minepi…
Unicode Decode Error (For Windows)
When you run the Install_API file during step 5 of “Installing the Minecraft Python API and Spigot” in Chapter 1, you might get this error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 44: invalid start byte
Your Windows system may be using an encoding method that's different from the one Python assumes. Follow these steps:
Step 1. Navigate to
'C:\Users\user\AppData\Local\Programs\Python\Python36\Lib\site-packages\pip\compat'
This path is for those running Python 3.6 and will differ slightly for other versions.
Step 2. Open init.py in a text editor, and change line 75 to this:
return s.decode('cp949')
Making this change and saving the file should resolve the problem.
I Got a Different Error!
Unfortunately, we do not have a dedicated Python programmer on our team, so we are unable to troubleshoot more complicated issues on your behalf at this time. If you get an error that isn't listed on this page, we would encourage you to search for the error online. We're sorry for the inconvenience, but thank you for your understanding!
这两天,依图IPO中止了,尽管他们出面澄清是自己主动申请,而且强调是“中止”不是“终止”,但是面对一夜暴富的机会,谁会中止呢?阿桑奇也没止住。
最近吧,遇到一个问题,要为AI智能平台找到应用的场景,实际就是要找到这个产品的价值。
市场是最公平的,你压货、对倒,最终都会被市场打出原形,谁的钱是平白无故给你呢?只有政府这个傻冒吧。
政府也不傻,这类高科技独角兽,在大G面前,就是痰盂、夜壶,想端出来的时候,就端一下,
那么,就做一个集成商吧,被另外一个集成商当作痰盂,来,单一来源采购吧。
上周五,团队的一个同学找我,说有些事要聊聊。去往会议室的路上,我心里猜他是不是要离职。
果然,刚刚落座,他有些不好意思的说,我打算辞职,过了年就要走。
“是什么原因呢?”我问到。
“现在对家里照顾不到,2个小孩子都在小学,全靠我爱人,她太辛苦了.”同学说。
“打算去哪里,有下家吗?”我问他。
“BXX和HXX,他们在苏州都有基地。”同学犹豫了一下,还是说了。
“具体负责哪方面工作?”我比较好奇,毕竟一个是互联网公司,一个是安防领域的,似乎和我们现在的行业有点距离。
“是交通行业,华东地区的售前,其实来公司之前,他们就给了offer,你知道的,他们的HR一直没有放弃联系我,加上现在对小孩照顾不到,家里人意见非常大。”同学有些无奈的说。
我很理解他,中年人到了这个阶段,生活的重心基本都在孩子,两个小孩都上小学,仅仅辅导功课,就可以让家长崩溃,我自己深有体会。
”我能做些什么吗?比如和HR商量,让你把常驻地改回苏州,这样可以解决问题吗?“我征询他的意见。
”这个办法我也和HR沟通过,非常困难,而且五险一金也没法在苏州缴纳,对个人影响蛮大的。“他有点不相信。
”让我试试吧。“我建议,我印象山东有位负责售前的同学,他的常驻地就在南京,也许我抓紧和HR沟通,这个问题可以有办法。
”也行。“他有些勉强答道,”不过是不是要提前一个月提辞职,我担心到时候时间来不及。“
”没事,你今天和我说了,就算是提了辞职,如果HR那边搞不定,差几天问题不大,这事我能做主。“我给了他一个承诺。
因为这个,周末两天心情不太好,小李问了我两次,爸爸你为什么这么严肃?我和他说了此事,他也给不出什么建议,不过至少小李从小明白一个道理:工作后很多事情难如人意。
同学做事很认真,碰到问题会积极主动解决,也不畏学习新的知识和技能,加上工作经验丰富,是非常合适的员工。
不过,有些事情不能勉强,毕竟同学离职,还有一个原因,他说过去一年的成就感不强,未来短期内也看不到高速行业能有什么突破。
后面这个因素,对我是有触动的,毕竟选择什么方向是团队leader的责任,我把这个方向交给他,推进的如此艰难,如果还要劝他再等等,岂不是太自私?为什么要在一个看不到曙光的赛道上挣扎呢?就算2年后真的会爆发,谁又能保证我们不被淘汰呢?
2021,开始的征兆就不好。
明天去杭州,18年经手的一个项目,政府进行审计,要求项目负责人必须到达现场。
回想2018年,Alick经常会来杭州视察项目组,他回去时,我会送他到楼下,有时候也会陪他抽烟。
时间很快。
老婆问我,你在公司做什么?你们不是人工智能公司吗,你为什么这么蠢,一点不智能,你是在人工智能公司做保安吗?
我是从实交通行业的,交通行业,前两年说要互联网+,然后是大数据+,现在是AI+,好像我们夹什么,什么就到我们的碗里来,但是客户不这样想,我们去见客户,总是问他,你的需求是什么,我看看怎么用AI夹一下,客户对这个不感兴趣。
上周我去一个高速公司,信息部的主任告诉我,我们的数据很宝贵的,你们的产品是要用我们行业数据来训练的,这样吧,你们用产品来换数据吧,打个折也行啊,这样对你们很公平的。我心里想,NND,你去董家渡做毛料西装,让裁缝师傅量您的尺寸,然后你说,师傅我贡献了我的尺寸数据,您打个折吧?
还有的客户,TMD,好烦,你和他谈业务需求,他说等一哈,你先介绍下人工智能简史吧,从二次大战开始,从图灵的同性恋故事开始,NND,我是人工智能公司的保安好吧,你想学习AI,去B站一键三连啊。
疫情爆发一年来,初期各地采取隔离封闭措施,造成交通出行骤降,随着四月复工复产,交通出行逐渐恢复,而公共出行工具的载客量却恢复不及往常。
特别是公交出行,在拥有地铁的大城市,公交已经从公共出行主力,降格为轨道交通配套,主要就是进行居住和工作区域往返轨交站点的接驳工具。而在中小城市,也有面临中运量交通工具的竞争,例如brt、有轨电车。
除了新型交通工具,给公交带来压力外,城镇居民出行习惯的改变,才是最大影响因素:
前瞻1 :
https://www.qianzhan.com/analyst/detail/220/201103-1cc24c5a.html
http://www.stats.gov.cn/tjsj/zxfb/202001/t20200119_1723767.html
人口1:
http://www.stats.gov.cn/tjsj/zxfb/202001/t20200119_1723767.html