
Questions
小白笑苍
沉默是一种生活方式。
展开
-
CHM文档打不开的问题解决方法
问题现象在网上下载了一个C++的CMH接口文档,但是打开却没有东西,显示已取消到该网页的导航。问题原因windows安装了一些软件,导致.chm和.exe文件失去关联,无法打开.chm文件解决方法右键.chm文件,选择属性->接触锁定。再次打开.chm文件即可。原创 2017-02-17 20:52:58 · 1009 阅读 · 0 评论 -
150. Evaluate Reverse Polish Notation
题目Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expression.Some examples: [“2”, “1”, “+”, “3”, “原创 2017-02-17 21:43:00 · 173 阅读 · 0 评论 -
linux安装网易云音乐
下载网易云音乐的linux包,我的是ubuntu16.04,包名为netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb进入下载目录,执行:sudo dpkg -i netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb这里出了一个问题,貌似是依赖关系导致安装失败了:再执行下:sudo apt-get install -原创 2017-04-17 22:41:03 · 12385 阅读 · 2 评论 -
如何转载优快云/博客园的其他博主的博客-转载
这篇博客就是用原博主的方法转载的,非常方便,原博客的URL是:http://blog.youkuaiyun.com/bolu1234/article/details/51867099 对于喜欢逛优快云的人来说,看别人的博客确实能够对自己有不小的提高,有时候看到特别好的博客想转载下载,但是不能一个字一个字的敲了,这时候我们就想快速转载别人的博客,把别人的博客移到自己的空间里面,当然有人会说我们可以收藏博客啊,转载 2017-07-11 16:29:49 · 586 阅读 · 0 评论 -
git push的时候每次都要输入用户名和密码的问题解决
换了个ssh key,发现每次git push origin master的时候都要输入用户名和密码原因是在添加远程库的时候使用了https的方式。。所以每次都要用https的方式push到远程库查看使用的传输协议:git remote -vwuxiao@wuxiao-C-B150M-K-Pro:~/MyGithub/DailyBlog$ git remote -v origin http原创 2017-06-22 22:50:38 · 25742 阅读 · 4 评论 -
git checkout 远程分支失败的问题解决
今天git checkout -b xxx origin/yyy 远程分支失败了,报错:fatal: Cannot update paths and switch to branch ...解决方法git fetch -p然后重新git checkout …-p的意思When you fetch a remote repository, say “origin”, you will get remo原创 2017-07-12 14:15:08 · 19061 阅读 · 1 评论 -
linux gedit显示行数的设置
今天通过gedit看一个文件的时候想找到具体的文件行数,但是gedit默认是不显示代码行数的,所以需要设置一下: Gedit 编辑->视图原创 2017-07-14 08:38:47 · 7793 阅读 · 0 评论 -
ubuntu下搜狗输入法偶尔崩溃的解决方法
参考:FanDao的博客新建restart_sogou文件保存到/user/bin/目录下,设置执行权限,当搜狗崩溃时输入restart_sogou重启软件即可。内容如下:#!/bin/shpidof fcitx | xargs killpidof sogou-qimpanel | xargs killnohup fcitx 1>/dev/null 2>/dev/null &nohu原创 2017-06-26 19:56:01 · 2099 阅读 · 0 评论 -
clion 如何设置main的入参,ubuntu的系统头文件路径
clion设置main函数的入参点击 Run->Edit Configurations->Program arguments,输入main的入参 ubuntu 系统头文件路径/user/include/原创 2017-06-26 22:49:52 · 4577 阅读 · 2 评论 -
shell下打开软件提示磁盘空间不足的问题解决
今天在/repo/ewwuxxo/racoam目录下想打开一个软件,提示打开失败,失败原因是磁盘空间不足。之前都用的好好的,怎么突然磁盘不足了呢,然后开始找原因。 输入 df -k /repo/ewwuxxo/racoam 查看当前目录磁盘使用情况: 100%使用率,是哪个文件搞得呢,再输入 du -lh –max-depth=1查看目录下的base目录的使用情况: node文件夹这么原创 2017-07-21 10:49:34 · 910 阅读 · 0 评论 -
How to solve the issue of RSARTE's starting problem
How to solve the issue of RSARTE’s starting problemSometimes if you use the RSARTE for a long time without an buffer memory cleaning,there will occur a problem that you can’t start the RSARTE because原创 2017-07-24 08:42:17 · 693 阅读 · 0 评论 -
How to install codeblocks in RedHat without root authority
How to install codeblocks in your user directory without root and system file authorityinstall wxWidgetsenter wxwidgets website to download the version of Source Code named “Source for Linux,OS X,etc”原创 2017-08-08 16:45:00 · 477 阅读 · 0 评论 -
git commit 两次导致无法push的问题解决
今天第二次commit的时候没注意添加 –amend 导致commit了2次无法push。想了想办法解决。git log查看你commit的前一次的commit号,然后输入git reset --mixed 你的commit号然后local repo 和stage的修改全部撤销了,但是workspace的修改不会动,再重新 add,commit就行啦~原创 2017-07-24 18:22:50 · 6900 阅读 · 0 评论 -
(转)Windows Server下查看当前登录用户命令
对于开通了远程桌面和终端服务的Windows服务器来说,特别是在通过域管理的情况下,如何确定目前登录用户的情况呢?有没有类似Linux下的whoami、w、who等命令呢?今天在配置某些目录的共享时,正好遇到这个问题,就研究了一下,别说,Window还是挺贴心的,也提供了相关命令,具体如下: 1、whoami命令 在命令行下执行此命令,则返回目前查询会话中的用户信息,具体如下:转载 2017-07-25 10:48:12 · 22167 阅读 · 1 评论 -
How to fix the problem of executing gitenv.csh file failed
How to fix the problem of executing “gitenv.csh” file failedThe ProblemToday when I checkout from one branch to another branch,I can’t use the command of ‘rsarte_rac_oam’.I guess there has someting wro原创 2017-07-26 16:54:58 · 603 阅读 · 0 评论 -
How to copy and paste quickly in the shell
We often need to do some copy and paste opreration in the shell,but it is too slow to use ctrl+c and ctrl+v,and sometimes even it does’t work and you have to do it by clicking the right button.But the原创 2017-07-27 08:09:00 · 369 阅读 · 0 评论 -
树莓派如何挂载硬盘/U盘
默认挂载外接U盘或移动硬盘时,默认不会自动挂载,所以需要用 mount 命令挂载。通常我们在 /mnt 或 /media 目录下新建一个目录作为挂载点。比如: 查询当前硬盘目录:sudo fdisk -l挂载硬盘,sda1 是取决于你的实际情况,a表示第一个硬盘,1表示第一个分区:sudo mkdir /mnt/1GB_USB_flashsudo mount -o uid=pi,gid=pi /转载 2017-08-18 15:54:01 · 1833 阅读 · 0 评论 -
How to config RaspBerry's Wireless Networking Setting
1.Check the status of Network Cardinput ifconfig -a to see if the output has information of wlan0.Yes means the status is OK,you can ignore the second topic.If not,you should setup the driver of the Ne原创 2017-08-18 16:43:29 · 402 阅读 · 0 评论 -
玩转树莓派-Raspberry,无线网配置方法
https://my.oschina.net/u/2306127/blog/392442摘要: 推荐树莓派上使用8188CUS芯片的无线网卡,如EDUP8188。这里介绍通过interfaces和wpa_supplicant配置WiFi的方法,以及设置静态IP地址,将树莓派变为一个低功耗的无线服务器的方法。 要想让树莓派方便操作,肯定需要配置无线网卡,这样可以大大增强树莓派的移动性和便利性,转载 2017-08-18 16:49:18 · 2689 阅读 · 0 评论 -
How to Setup RaspBerry Pi with RASPBIAN STRETCH LITE
enter the Download URL to download the setupfile named RASPBIAN STRETCH LITE.extract the file,get the .img file.insert the TF Card,find the directory of this device.Mine is /dev/sdc:sudo fdisk -lwr原创 2017-08-18 17:00:03 · 2220 阅读 · 1 评论 -
How to communicate with PI Through the SSH
If you don’t setup the software of ssh,input:##the one be controledsudo apt-get install openssh-server##the one controls the serversudo apt-get install openssh-clientmake sure the ssh server is star原创 2017-08-19 20:17:23 · 389 阅读 · 0 评论 -
How to Push the Video streams to DouYu/XiongMao/Bilibili using PI
Setup the decodersudo git clone git://git.videolan.org/x264cd x264./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-openclmakesudo make installcd ..rm -rf x264Setup the ffmpe原创 2017-08-19 20:27:55 · 1137 阅读 · 0 评论 -
Ubuntu 出现apt-get: Package has no installation candidate问题
今天在安装软件的时候出现了Package has no installation candidate的问题,如:apt-get install Reading package lists… Done Building dependency tree… Done Package aptitude is not available, but is referred to by another pac转载 2017-08-20 01:12:52 · 985 阅读 · 0 评论 -
How to Login Automatically in PI3
The question is that I don’t want to input the account and password whenever the PI reboot.It is boring and I have to connect the PI with a monitor.But many solutions on the Internet is to edit the fil原创 2017-08-25 10:18:34 · 370 阅读 · 0 评论 -
How to Ignore new commits for git submodule
the git occured serveral new commits like:Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working di原创 2017-08-25 10:41:32 · 1292 阅读 · 1 评论 -
(transshipment)What should you never say to a programmer?
Well, as a programmer myself, there are a lot of things, that I find immensely annoying. I usually ignore them, but I figured that this would be a good chance to rant a bit, so without further ado, her转载 2017-08-09 14:40:44 · 251 阅读 · 0 评论 -
How to Config the Pi with a Static IP
sudo nano /etc/network/interfacesthen modify the file.For example my IP is 192.168.1.102,like:auto loiface lo inet loopbackiface eth0 inet staticaddress 192.168.1.102netmask 255.255.255.0gateway 1原创 2017-08-22 17:22:06 · 294 阅读 · 0 评论 -
How to Install VIM without ROOT Permission
install in your user directorycd ~mkdir vimcd ~/Downloadsgit clone https://github.com/vim/vim.gitcd vim/src./configure --prefix=/home/$USER/vimmake make installthen in ~/vim/bin,you can see the原创 2017-08-15 17:02:35 · 1255 阅读 · 0 评论 -
Fix perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:
when I want to add a user named git,Here occurs a problem and the print is:perl: warning: Setting locale failed.perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_AL原创 2017-08-22 20:26:55 · 1663 阅读 · 0 评论 -
Fix the problem:xxx is not in the sudoers file.This incident will be reported
change to the root user:su rootedit the sudoers file:chmod u+w /etc/sudoersnano /etc/sudoersyou will find a line root ALL=(ALL:ALL) ALL,at the next line of it,add:yourUserName ALL=(ALL:ALL) ALLthen ca原创 2017-08-22 20:38:08 · 259 阅读 · 0 评论 -
git push failed Because the Fault of insufficient permission for adding an object
Here is the fault print:Counting objects: 3, done.Writing objects: 100% (3/3), 214 bytes | 0 bytes/s, done.Total 3 (delta 0), reused 0 (delta 0)remote: error: insufficient permission for adding an o原创 2017-08-23 00:32:15 · 390 阅读 · 0 评论 -
How to Install Git Server in the PI
install the git software:sudo apt-get install wget git-coreif you don’t have ssh,install it:sudo apt-get install sshstart ssh:sudo /etc/init.d/ssh startset default start:sudo update-rc.d ssh defaultsad原创 2017-08-23 00:57:36 · 358 阅读 · 0 评论 -
How to Install Nas System with PI
I want to share all of my files with all of my equipments in my home,so I want to install an Nas system in my PI. firstly setup some related softwares:sudo apt-get install samba samba-common-binsudo原创 2017-08-26 15:12:00 · 325 阅读 · 0 评论 -
How to Install a BTDownloader in the PI
install the transmission:sudo apt-get install transmission-daemoncreate the download file’s directory,because I have mounted the PI with a hard-driver,so I will choose it doing my store machine:##be ca原创 2017-08-23 01:27:16 · 322 阅读 · 0 评论 -
How to Fix the Problem "Could not get lock /var/lib/dpkg/lock"
The reason is that another process is using the resoure and it has been locked. So how to fix it,just input:sudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock原创 2017-08-27 00:46:34 · 315 阅读 · 0 评论 -
How to fix the problem that the Download rate is too Slow when doing "apt-get install"
sudo nano /etc/apt/sources.listdon’t use the address of the official one :deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpiand change it to ALi’s:deb http://mirrors.aliy原创 2017-08-27 02:33:02 · 327 阅读 · 0 评论 -
How to install pip3 for python 3.x
I want to install pip3 with the command buf failed:sudo apt-get install python3-pipSo I try to install it manually. I have already installed the python3,so firstly I should install the pipInstall pip原创 2017-08-27 17:08:09 · 1480 阅读 · 0 评论 -
How to Fix :NameError: name 'reload' is not defined
For Python 2.X:import sysreload(sys)sys.setdefaultencoding("utf-8")For <= Python 3.3:import impimp.reload(sys)Attention: - the default encoding in Python3 is UTF-8 - Python3 does’t have the functi原创 2017-08-27 19:13:38 · 531 阅读 · 0 评论 -
How to roll back/cherry-pick a specific file to a node you want?
roll back a specific file to the node I want:git checkout <the commit id> <file path>merge the specific file I want to the current branch:git checkout --patch <the branch name> <the file path>原创 2017-10-19 09:53:05 · 220 阅读 · 0 评论 -
How to compare the differences of the same file in the two nodes
Sometimes I want to know the differences of the same file in the two nodes but don’t know the command needed.So I search the answer and finally find it:git diff <commit id 1> <commit id 2> -- <the file原创 2017-10-19 15:30:59 · 266 阅读 · 0 评论