解决android studio设置版本号
摘要:获取版本号代码 / 获取版本号 @return 当前应用的版本号 / public static String getVersion(Context context) { try { PackageManager manager = context.getPackageMana...
阅读全文
Android的Activity之间传对象的方法
摘要:传值代码块 //Serializeable传递对象的方法 public void SerializeMethod(){ Person mPerson = new Person(); mPerson.setName("frankie"); mPerson.setAge(25); ...
阅读全文
iOS图片目录批量复制到android图片目录
摘要:复制shell脚本 !/bin/bash for i in do for imgname in do echo $imgname cp $i/$imgname 目录/app/src/main/res/mipmap hdpi/recipes/$img...
阅读全文
shell批量转换iOS和Android图标
摘要:icon_ios.sh !/bin/sh convert icon 1024.png resize 180x180 icon 180@3x.png convert icon 1024.png resize 152x152 icon 152@2x.png convert icon...
阅读全文
activeandroid复制本地数据库问题总结
摘要:activeandroid no such table "解决activeandroid no such table" failed to read row 0 column 1 from a cursorwindow which 原因是没有添加主键id @Table(na...
阅读全文
解决Starting to watch source with Jekyll and Compass. Starting Rack on port 4000
摘要:问题 Starting to watch source with Jekyll and Compass. Starting Rack on port 4000 rake aborted! Errno::ENOENT: No such file or directory jekyll /Users...
阅读全文
解决Errno::ENOENT: No Such File or Directory - Jekyll ~ Octopress and El Capitan
摘要:参考<http://schalkneethling.github.io/blog/2015/10/16/errno enoent no such file or directory jekyll octopress el capitan 原因 Mac升级系统到El Capitan出现了这个问题 解...
阅读全文
雅虎天气接口
摘要:广州天气 https://query.yahooapis.com/v1/public/yql?q=select%20 %20from%20weather.forecast%20where%20woeid=2502265%20and%20u=%22c%22&format=json雅虎天气接口 查询时...
阅读全文
解决activeandroid no such table
摘要:场景:activeandroid拷贝数据库(1)复制sql数据库到项目的assets目录,例如/myapp/src/main/assets/prepop.db(2)确保manifest的AA_DB_NAME值与数据库名称一致,<meta data android:name="AA_DB_NAME" ...
阅读全文
解决Genymotion Error: “Unable to load VirtualBox Engine” on Yosemite. VirtualBox installed
摘要:Mac 环境,输入命令 sudo ln s /usr/local/bin/VBoxManage /usr/bin/VBoxManage
阅读全文
存金宝 价格提示
摘要:存金宝 价格提示 !/usr/bin/python coding: utf 8 import re, urllib2, threading, os resp = urllib2.urlopen('https://goldetfprod.alipay.com/gold/queryChart.ht...
阅读全文
添加 SSH 公钥
摘要:生成 SSH 密钥 ssh keygen t rsa C "YOUR_EMAIL@YOUREMAIL.COM" 获取 SSH 公钥信息 cat ~/.ssh/id_rsa.pub 测试 GitCafe SSH 连接 ssh T git@gitcafe.com 如何处理 U...
阅读全文
ImportError: No module named flask.ext.wtf 解决方法
摘要:install pip install flask.ext.wtf
阅读全文
Cannot fetch index base URL https://pypi.python.org/pypi/ 解决方法
摘要:vi /etc/resolv.conf Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) DO NOT EDIT THIS FILE BY HAND YOUR CHANGES WILL BE...
阅读全文
mac下只遍历目录不遍历文件
摘要:install brew install tree 命令 tree d
阅读全文
ssh复制remote
摘要:rsync rsync localdirectory username@10.211.55.4:/home/username/Downloads/localdirectory r
阅读全文
查看进程lsof
摘要:查看8000端口 lsof i :8000 杀死进程 pkill —ns <pid
阅读全文
清空iptables
摘要:/sbin/iptables-PINPUTACCEPT/sbin/iptables-Fiptables-L
阅读全文
cannot load such file -- bundler/setup解决
摘要:sudo gem install bundlerbundle update celluloid
阅读全文
解决github push错误The requested URL returned error: 403 Forbidden while accessing
摘要:remote加上用户名git remote add origin https://username@github.com/username/example.git
阅读全文
易宝支付文档
摘要:一键支付标准版(手机端收银台+PC端收银台)开发手册与开发工具包http://mobiletest.yeepay.com/file/file/paymobile/devdoc
阅读全文
iOS 查看包架构信息
摘要:lipo -info libUMSocial_Sdk_4.2.a 查看包架构信息
阅读全文
kvc to nsdata
摘要:[NSKeyedArchiver archivedDataWithRootObject:arr]; [NSKeyedUnarchiver unarchiveObjectWithData:data];
阅读全文
设置windows status bar隐藏
摘要:info.plistView controller-based status bar appearance 为 NOCGContextSaveGState: invalid context 0x0 (Xcode 7 GM)This also happens for me on 7 GM, but r...
阅读全文
系统报错undefine not symbol armv7
摘要:libz.dyliblibsqlite3.dyliblibstdc++.dylib添加这些动态链接库
阅读全文
decompressedResponseImageOfSize:completionHandler:]_block_invoke
摘要:原因:It turns out the linker error was caused by the CGImageSourceCreateWithData call. And the root cause was because I didn't include ImageIO.framework...
阅读全文
App Transport Security has blocked a cleartext HTTP
摘要:打开info.plist源代码复制粘贴 NSAppTransportSecurityNSAllowsArbitraryLoads
阅读全文