#HAR

leetcode 3-> Longest Substring Without Repeating Characters

 classSolution(object):deflengthOfLongestSubstring(self,s):d=""f=""foriinrange(len(s)):ifs[i]notinf:f+=s[i]else:iflen(d)<len(f):d=ff=f[f.index(s[i])+1::...

解决UnicodeEncodeError: 'gbk' codec can't encode character u'u25aa' in position 344 : illegal multiby

  Python拿来做爬虫的确很不错,但是字符串的编码的确是稍不留神就是一个坑,GBK编码和Unicode编码的转化出现问题也是很多的,今天在解析网页数据的时候出现上述错误,解决方案如下: one_str.encode("GBK","ignore")   由于...

UnicodeEncodeError: 'gbk' codec can't encode character 'u25aa' in position 15: illegal multibyte sequence

 UnicodeEncodeError:'gbk'codeccan'tencodecharacter'u25aa'inposition15:illegalmultibytesequence ...

memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

 1.在http://libevent.org/  下载libevent-2.0.22-stable.tar.gz2.tar-zxvf libevent-2.0.22-stable.tar.gz3.cd libevent-2.0.22-stable4./configur...

wireshark 下载

 https://www.wireshark.org/download/win64/ ...
代码星球 ·2020-08-09

Hardcoded string should use @string resource 警告

 在布局文件中,文本的设置使用如下写法时会有警告:Hardcodedstring"下一步",shoulduse@stringresource<Buttonandroid:id="@+id/button1"android:layout_width="118dp"android:layout_height=...

Ubuntu14.04 libboost_program_options.so.1.54.0: cannot open shared object file: No such file or directory

 macname@ubuntu:~/Desktop$roslaunchblackrospack:errorwhileloadingsharedlibraries:libboost_program_options.so.1.54.0:cannotopensharedobjectfile:Nosuchfileor...

Ubuntu14.04 ,libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory

 macname@ubuntu:/opt$roslaunchblarospack:errorwhileloadingsharedlibraries:libboost_filesystem.so.1.54.0:cannotopensharedobjectfile:NosuchfileordirectoryTra...

ubuntu14.04, libtinyxml.so.2.6.2: cannot open shared object file: No such file or directory

 打包/opt/ros打包项目文件install 到一台没有安装ros环境的机器上启动项目sourceros/indigo/setup.bashsourceinstall/setup.bashmacname@ubuntu:~/Desktop$roslaunchblackrospack:errorwh...

jekins,报错 stderr: Could not create directory '/usr/share/tomcat7/.ssh'. Failed to add the host to the list of

publickey是在~/.ssh/id_rsa.pub,而privatekey是~/.ssh/id_rsa设置的时候,Jenkins需要的是privatekey...
代码星球 ·2020-08-08

jenkins网页报错,Unable to create the home directory ‘/usr/share/tomcat7/.jenkins’. This is most likely a permission problem

cd/usr/share/tomcat7sudomkdir.jenkinssudochowntomcat7:nogroup.jenkins  执行以上操作,重启解决...

集成ShareSdk一键分享和第三方登录

在Mob官网http://mob.com/注册,创建应用,下载SDK,申请APP_key根据官网开发指南导入SDK到你的项目中:在assets/ShareSDk.xml中修改你的APP_keypackagecom.loaderman.thirdpartylogindemo;importandroid.content.I...

sharesdk短信验证码的集成

在ShareSDK官网http://mob.com/注册并创建Android应用.申请APP_key,下载SDK等根据官网开发文档导入SDK,目录结构如下将以上文件按需放入AndroidStudio项目所要使用SMSSDK的Module所在的Libs里面,再在Module的build.gradle里面将libs加入仓库...
代码星球 ·2020-08-08

itextsharp图片生成pdf模糊问题解释

IforgettomentionthatI'amusingitextsharp5.0.2.ItturnedoutthatPDFDPI=110,whichmeans110pixelsperinch,andsinceitextsharpusespointsasmeasurmentunitthen:npixels=n/110...
首页上一页...4243444546...下一页尾页