uiwebview底部黑边解决
摘要:解决方法 设置webview的opaque为no
阅读全文
ssh连接速度慢解决
摘要:这些天,公司新安装的几台服务器,发现SSH本地连接上去,速度非常慢,慢的难以忍受,大概30秒左右。 后来到网上查了下,尝试了一种办法,效果还可以,特发上来给大家共享。 [root@data208 ~] vi /etc/ssh/sshd_config 修改 UseDNS yes 为 UseDNS no
阅读全文
rutime中动态调用类的方法
摘要:Dynamically invoke a class method in Objective C 代码 import import "A.h" @implementation A (NSString )description { return [NSString stringWithString:
阅读全文
performSelector may cause a leak because its selector is unknown解决
摘要:解决方法 SEL selector = NSSelectorFromString(@"applySketchFilter:"); IMP imp = [FWApplyFilter methodForSelector:selector]; UIImage ( func)(id, SEL, UIImag
阅读全文
The certificate used to sign “AppName” has either expired or has been revoked. An updated certificate is required to sign and install the application解决
摘要:问题 The certificate used to sign “AppName” has either expired or has been revoked. An updated certificate is required to sign and install the applicati
阅读全文
手机抓包xcode自带命令行工具配合wireshark实现
摘要:三、最佳方式:rvictl命令 优点:简单,而且可以抓所有网络接口的数据; 缺点:似乎没有,要求手机iOS5以上不算要求吧?如果说缺点,就是这个命令是Xcode的Command Line Tools 中的。 步骤: 1. 手机通过USB线连接到PC; 2. 查看手机的UDID,因为rvictl需要使
阅读全文
expecting SSH2_MSG_KEX_ECDH_REPLY ssh_dispatch_run_fatal问题解决
摘要:设置client的mtu ifconfig eth0 mtu 576 Ultimately, I added the following to /etc/ssh/ssh_config: Host SendEnv LANG LC_ HashKnownHosts yes GSSAPIAuthentica
阅读全文
使用ssh-keygen设置ssh无密码登录
摘要:http://lhflinux.blog.51cto.com/1961662/526122 ssh keygen t rsa 输入后,会提示创建.ssh/id_rsa、id_rsa.pub的文件,其中第一个为密钥,第二个为公钥。过程中会要求输入密码,为了ssh访问过程无须密码,可以直接回车 。
阅读全文
远程复制文件到服务器
摘要:scp P1010 .ssh/id_rsa.pub root@139.x.x.x:~/.ssh/authorized_keys
阅读全文
ipsec配置strongswan.conf和ipsec.conf
摘要:配置strongswan.conf vi /usr/local/etc/strongswan.conf strongswan.conf strongSwan configuration file Refer to the strongswan.conf(5) manpage for details
阅读全文
strongSwan大坑一直重启(ubuntu)
摘要:报错 Starting strongSwan 5.3.2 IPsec [starter]... charon (20533) started after 40 ms charon stopped after 200 ms 这种报错一直在auth.log里面循环报错,每个3秒钟出现一次 解决方法 se
阅读全文
scrollviews page分页实现方式
摘要:代码 buttonX = 0; buttonW = 50; buttonH = 20; margin = (self.view.width 5 buttonW) / 6; CGFloat ymargin = 17; for (int i = 0; i 20 ? (self.platformArr.c
阅读全文
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY解决
摘要:设置mtu ifconfig en1 mtu 1200 代理工具 退出lantern,退出***
阅读全文
mac ssd开启trim模式
摘要:开启方法 sudo trimforce enable
阅读全文
iOS打包上传app store各种问题解决总结
摘要:问题1 this action could not be completed. try again 问题2 there was an error sending data to the iTunes Store. 问题1,2解决方法 __点击上一步,继续上传__ 都是网络问题,重试就可以了,不要网上
阅读全文
adhoc无法下载应用程序 此时无法安装-解决
摘要:解决方法 点击xcode,进入build setting,选择code signing,provisioning profile选择automatic 或者选择adhoc的provisioning profile
阅读全文
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY解决
摘要:本机上修改了mtu为1500 sudo ifconfig en1 mtu 1200 vi .ssh/config Host ControlMaster auto ControlPath ~/.ssh/%h %p %r ControlPersist yes ssh命令 ssh root@139.162
阅读全文
Could not load OpenSSL解决
摘要:问题 Could not load OpenSSL. You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to 'http'. Instructions for
阅读全文
mac重启privoxy命令
摘要:重启命令 brew services restart privoxy
阅读全文