自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(45)
  • 收藏
  • 关注

原创 Python Data Science Toolbox (Part 1)

Bringing it all together (2)Wow, you’ve just generalized your Twitter language analysis that you did in the previous chapter to include a default argument for the column name. You’re now going to generalize this function one step further by allowing the u

2021-05-15 13:53:52 309 1

原创 How to turn off automatic OCR when editing a scanned document?

How to turn off automatic OCR when editing a scanned document?Anonymous commented · March 22, 2020 5:32 PM · Flag as inappropriateUsing Adobe Acrobat Pro XI, this is what worked for me:Edit > Preferences… > ReadingReading Order: “Use reading ord

2021-01-31 01:19:54 215

原创 How to find RaspberryPi 4 IP address after installation?

In your windows machine, open cmd, isue the ping raspberrypi -4 command:C:\Windows\System32>ping raspberrypi -4Pinging raspberrypi.local [192.168.0.12] with 32 bytes of data:Reply from 192.168.0.12: bytes=32 time=9ms TTL=64Reply from 192.168.0.12:

2020-12-05 22:48:41 238

原创 wordpress更改IP后,不能访问问题

安装wordpress的时候里面的域名、ip都已固定。安装好后的通过IP访问,如http://192.168.1.101即打开首页,但是日后需要更改系统IP,改为192.168.1.102,这个时候在通过http://192.168.1.102访问就打不开首页了,其实wordpress的域名、IP等配置已经固定到数据库里了,在wp_options这个表里,需要对里面的字段做些修改,才能通过新的ip访问,我这里的wordpress是4.2.3版本。做以下修改:通过可视化的工具连接数据库,我用的是Navica

2020-12-02 21:38:48 1628

原创 Install vBulletin on Raspberry Pi 4B

Install LAMPhttps://projects.raspberrypi.org/en/projects/lamp-web-server-with-wordpress/7Install php-xmlsudo apt-get install php-xmlThen you need to restart apache so it takes effectsudo service apache2 restartChange modepi@raspberrypi:/var/www/ht

2020-11-30 15:27:40 155

原创 How to Download Torrents from the Command Line in Ubuntu

Installationsudo apt install transmission-cliHow to add a torrentURLtransmission-cli http://releases.ubuntu.com/16.10/ubuntu-16.10-desktop-amd64.iso.torrent -w ~/DownloadsMagnet Linkstransmission-cli magnet:?xt=urn:btih:e249fe4dc957be4b4ce3ecaac280

2020-11-30 13:11:29 242

原创 How to Install Xrdp Server (Remote Desktop) on Ubuntu 18.04

Installing Desktop Environmentsudo apt updatesudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utilsInstalling Xrdpsudo apt install xrdp sudo systemctl status xrdpYou will see output like the following:xrdp.service - xrdp daemon L

2020-11-30 12:25:03 311

原创 RaspberryPi 4 USB SSD

Before:pi@raspberrypi:~ $ lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTmmcblk0 179:0 0 115.3G 0 disk ├─mmcblk0p1 179:1 0 256M 0 part /boot└─mmcblk0p2 179:2 0 115.1G 0 part /pi@raspberrypi:~ $ sudo hdparm -Tt /dev/mmcblk0/

2020-11-29 14:15:18 430

原创 Raspberry Pi 4 Headless Setup

Install OSadd a file named “ssh” into boot folderOn your laptop, find ip address of Raspberry PiC:\Windows\System32>ping raspberrypi -4Pinging raspberrypi.local [192.168.0.90] with 32 bytes of data:Reply from 192.168.0.90: bytes=32 time=8ms TTL=64

2020-11-29 13:56:32 299

原创 Check Hard Drive Speed

sudo hdparm -Tt /dev/sdb/dev/sdb: Timing cached reads: 18136 MB in 1.99 seconds = 9097.50 MB/sec Timing buffered disk reads: 1484 MB in 3.00 seconds = 494.47 MB/secsudo hdparm -Tt /dev/sda/dev/sda: Timing cached reads: 17126 MB in 1.99 seco

2020-11-26 12:03:15 612

原创 Add new hard drive as swap

Identify hard diskFirst you need to identified the new hard disk.press CTRL+ALT+T to open a console then type :lsblkYou will see something similar with this:loop0 7:0 0 86.6M 1 loop /snap/core/4486sda 8:0 0 5G 0 disk ├─sda1 8:1

2020-11-26 01:08:44 288

原创 Synology IP address blocked due to too many failed attempts…

Control PanelSecurityAccountAllow/Block ListBlock ListIf yoiur address is here Remove it.

2020-11-24 03:29:23 525

原创 Change Mac Terminal to Default bash

If you installed other terminals such as zsh, and it changed your default Terminal, when you want to change it back, simply issue the following code in terminal.chsh -s /bin/bash

2020-09-25 02:53:21 261

原创 Install pygame on Raspberry Pi

Ubuntu 20.04 64 bit on Raspberry Pi 4 with 8GB ram.Install Dockersudo snap install docker # version 19.03.11, orsudo apt install docker.io # version 19.03.8-0ubuntu1.20.042. Install Anaconda(1) Display a list of available images:docker search

2020-09-15 12:29:03 860

原创 2020年度最佳的23个的机器学习项目(附源代码)     

2020年度最佳的23个的机器学习项目(附源代码) 大数据文摘出品编译:Luna我们都知道,教科书上所学与实际操作还是有出入的,那关于机器学习有什么好的项目可以实操吗?文摘菌为你推荐这篇文章,在本教程中,涵盖面向初学者,中级专家和专家的23种机器学习项目创意,以获取有关该增长技术的真实经验。这些机器学习项目构想将帮助你了解在职业生涯中取得成功、和当下就业所需的所有实践。通过项目学习是你短期内能做的最好投资,这些项目构想使你能够快速发展和增强机器学习技能...

2020-08-27 09:36:33 7616

原创 Installing Anaconda on Raspberry Pi 4 with Ubuntu 20.04

Raspberry Pi 4 runs on 32-bit. Use the 32-bit versions and you should be okay!I’ve recently installed miniconda on my Raspberry Pi 4. I did it using the following commands:# Update linuxsudo apt update -y# Install python3sudo apt install -y python3

2020-08-15 08:26:20 1393

原创 Disable Unattended Upgrades On Ubuntu

Disable Unattended Upgrades On UbuntuTo disable unattended upgrades on Ubuntu and its derivatives, run:sudo dpkg-reconfigure unattended-upgradesChoose No and hit ENTER to disable unattended upgrades.You can also remove it altogether if you don’t want

2020-08-14 00:50:49 243

原创 Using SSH in MacOS

scan aviliable machines for SSH connection in intranetsudo nmap -sS -p 22 192.168.10.0/24Scan all machines in intranetarp -a

2020-08-12 02:18:34 120

原创 Install Xournal on Mac OS

First you need to install pkg-configbrew install pkg-configThe official guide tell you that:Installation in /usr/local:./autogen.shmake(as root) make install(as root) make desktop-installInstallation in $HOME:./autogen.sh./configure --prefix=

2020-06-10 08:11:07 1266

原创 Fibonacci and Dynamic Programming

FibnacciRecursionStore (Memoize)Bottom-up

2020-02-28 02:03:59 175

原创 Operations Research Syllabus

Zhejiang University (PhD)Henan University (Master)河南大学的运筹学与控制论专业于2003年获得硕士学位授予权,经过多年的积累和发展,目前形成了相对稳定的研究领域,具有一定的特色和优势。建立了中青年并重的科研梯队,在运筹学与图论、最优化理论与计算、组合论与组合优化、数学规划等方向招收硕士研究生。...

2020-01-20 13:21:50 334

原创 Run auto start task at startup for Ubuntu

You can add commands to/etc/rc.localsudo vim /etc/rc.localThis executes the commands as root.To execute commands as a specific user, use sudo -i -u (-i to also run the login shell). For example...

2020-01-14 11:30:31 210

原创 Catboost with GPU

## quick test with AUC X_tr, X_val, y_tr, y_val = train_test_split(X_less_nas, y, test_size=0.2, random_state=SEED,stratify = y) cat_params = { 'loss_function': 'Logloss',...

2020-01-14 04:16:22 1842

原创 NVIDIA-SMI GPU 系列命令总结

Simple command:pertain@ubuntu:~$ nvidia-smiMon Jan 13 14:28:38 2020 +-----------------------------------------------------------------------------+| NVIDIA-SMI 430.26 Driver Version: 4...

2020-01-14 03:23:07 634

原创 运筹学有哪些经典教材?

运筹学有哪些经典教材?如何自学运筹学?https://www.zhihu.com/question/20887019在清华的时候也是看的胡运权的书,但其实真正能让我运筹学知识能窥个门径的,还是Bertsimas和Tsitsiklis的《Introduction to Linear Optimization》和Stephen Boyd《Convex Optimization》,认真读...

2020-01-13 11:46:57 4990

原创 sas使用proc report实现同比 环比 占比。顺带实现了sql的窗口函数

使用sas实现同比 环比 占比,其中环比和占比是使用proc report实现的,环比使用data步实现,但是其中每年的总计是使用proc report来实现的。proc report 可以实现proc print proc tabluate proc sort proc means 以及data步的一些功能,所以有中想法,把proc report当做是进行复杂统计的实现方法之一,比如sql中的...

2020-01-08 00:54:23 1123

原创 Mac 电脑使用“终端”重新创建 Fusion Drive 融合硬盘(合并硬盘)

Mac 电脑使用“终端”重新创建 Fusion Drive 融合硬盘(合并硬盘)梅森简书0.1712019.01.30 11:20:53字数 679阅读 8,843须知SATA 接口硬盘和自带 32GB 或 128GB 融合为一块硬盘。以下步骤将永久删除所有数据,请先备份。如方案一失败,请选择方案二。如一直出现错误,请重新开机按 Command-Option-R。方案一:如果...

2019-11-24 04:42:27 13930 4

原创 如何修复拆分的 Fusion Drive

如果您的 Fusion Drive 在 Finder 中显示为两个驱动器,而不是一个,则说明它已不再用作 Fusion Drive。下文介绍了如何解决这个问题。作为部分 iMac 和 Mac mini 电脑上的储存方案,Fusion Drive 将硬盘驱动器和闪存融合在一个宗卷中,从而提高了性能和储存容量。如果您的 Fusion Drive 在 Finder 中显示为两个驱动器,而不是一个,则说...

2019-11-23 22:50:40 1387

原创 ubuntu下休眠/唤醒远程计算机

ubuntu下唤醒或休眠远程计算机休眠 是一种更加省电的模式,它将内存中的数据保存于硬盘中,所有设备都停止工作。当再次使用时需按开关机键,机器将会恢复到您的执行休眠时的状态,而不用再次执行启动操作系统复杂的过程。sudo pm-hibernate #休眠-断电-保存在硬盘待机(挂起) 是将当前处于运行状态的数据保存在内存中,机器只对内存供电,而硬盘、屏幕和CPU等部件则停止供电。由于数据存...

2019-11-01 11:33:30 3693

原创 Ubuntu 16.04 安装 NVIDIA GeForce GTX 1060 显卡驱动,以及 CUDA 10.1

首先安装nvidia显卡驱动打开终端,先删除旧的驱动:sudo apt-get purge nvidia*禁用自带的 驱动 (很重要!),通过如下命令创建一个文件:sudo vim /etc/modprobe.d/blacklist-nouveau.conf在文件内添加如下内容:blacklist nouveauoptions nouveau modeset=0更新...

2019-11-01 00:36:46 3525

原创 美国的金融操作

美国的金融操作美国金融操作的技巧非常细致和巧妙,属于专业行为。笔者虽然不是金融专业,但是这种金融理论并不深奥,原理和规则都非常简单,属于一看就懂,笔者在此简单扼要地叙述一下,包你一听就懂。美国的金融操作分为三期。第一期:量化宽松在这个时期美联储大量发行美元,透过美国在世界各地的银行把美元以贷款的形式流入当地市场。这个时候美元货币供应充足、利息又低,各种公司大量借款进行扩张,市场一片繁荣,造成...

2019-09-20 14:10:58 314

原创 Sublime 美化 SQL代码:SqlBeautifier

安装SqlBeautifier后,重启Sublime。Mac先按command+K,再按command+F,即可格式化SQL。

2019-09-19 10:54:52 6525

原创 将 python 脚本编译成可执行文件

安装 pyinstallerpip install pyinstaller编译 python scriptpyinstaller train.py若想删除编辑好的binary 文件rm -rf buildrm train.spec

2019-09-18 16:26:21 1325

原创 Adobe Acrobat "reading untagged document" window pops up

here is how to disable it:go to Edit>Preferences>Reading> and focus on the 'Screen Reader Options' section. In the 'Page vs Document' dropdown box choose 'Only read the currently visible pag...

2019-09-03 10:49:56 1002 1

原创 在 JupygterNotebook 里面设置最大显示列数

import pandas as pdfrom IPython.display import displaydf = pd.read_csv("some_data.csv")pd.options.display.max_columns = Nonedisplay(df)

2019-09-02 11:16:48 341

原创 安装 catboost 的正确方式

conda installCatBoost 原生支持 GPU。首先添加频道。conda config --add channels conda-forge安装 CatBoost:conda install catboost安装 visualization 工具:Install the ipywidgets Python package (version 7.x or higher...

2019-09-02 11:05:28 14981

原创 在 Mac 上安装和运行 postgres sql

安装 docker上官方网站下载安装 docker desktop community 版本:https://docs.docker.com/docker-for-mac/install/下载 SQL 代码https://github.com/chenyu-yang/SQL_cookbook_sqlite安装 Postgres 最新版本docker pull postgres如果希...

2019-08-28 18:27:24 598

转载 在数据科学行业,求职被拒的原因其实就这几个

在数据科学行业,求职被拒的原因其实就这几个原因1:使用Python语言处理数据科学的技能数据挖掘。特征选择。管道机制。原因2: 概率论和统计学知识贝叶斯法则。模型评估。原因3: 软件工程小窍门版本控制。网页开发。网页抓取。清晰简洁的代码。原因4:商业嗅觉想别人之所想,并付诸行动。问对问题。将你的成果解释清楚。除了上面的原因,还有……原创 读芯术 2019-07-12 11:07:42全文共37...

2019-08-21 16:57:05 308

原创 SQL LIKE 通配符的用法

_ 与任意单字符匹配 % 与包含一个或多个字符的字符串匹配 [ ] 与特定范围(例如,[a-f])或特定集(例如,[abcdef])中的任意单字符匹配。 [^] 与特定范围(例如,[^a-f])或特定集(例如,[^abcdef])之外的任意单字符匹配。使用like比较字,加上SQL里的通配符,请参考以下:a.. LIKE 'Mc%' 将搜索以字母 Mc 开头的所有...

2019-08-12 00:52:41 1051

原创 配置 Anaconda 下的 Zeppelin

配置 Anaconda 下的 Zeppelin步骤 1. 下载和安装 Anaconda从以下网址下载合适的版本:https://www.anaconda.com/download/#linux以最新的 python 3.7 版本为例:wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh下载后,...

2019-07-31 14:40:12 474

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除