04 2016 档案
摘要:参考: http://www.linfo.org/path_env_var.html PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which
阅读全文
摘要:value=nil时删除该item value=[NSNull null]时在iOS7.1的系统是否会引起crash?
阅读全文
摘要:原文:https://www.bignerdranch.com/blog/javascriptcore-example/ JavaScriptCore is not a new framework; in fact, it’s been lurking on Mac OS X ever since
阅读全文
摘要:参考: http://stackoverflow.com/questions/992348/reading-html-content-from-a-uiwebviewNSString *html = [yourWebView stringByEvaluatingJavaScriptFromStrin
阅读全文
摘要:参考: http://vim.wikia.com/wiki/Indent_a_code_block =i{ reindents "inner block" (inside the braces).=a{ reindents "a block" (including the braces).=2a{
阅读全文
摘要:参考: http://www.cyberciti.biz/faq/copy-folder-linux-command-line/In this example copy /home/vivek/letters folder and all its files to /usb/backup direc
阅读全文
摘要:参考:http://vim.wikia.com/wiki/Copy,_cut_and_pastePosition the cursor where you want to begin cutting.Press v to select characters (or uppercase V to se
阅读全文
摘要:参考: http://stackoverflow.com/questions/53664/how-to-effectively-work-with-multiple-files-in-vim You can use tabs (introduced in Vim 7) to switch betwe
阅读全文
摘要:参考:http://www.macworld.com/article/2981585/operating-systems/how-to-make-a-bootable-os-x-10-11-el-capitan-installer-drive.html sudo ~/Desktop/createin
阅读全文
摘要:用gradlew build --info获取错误原因
阅读全文
摘要:参考: JavaScriptCore框架在iOS7中的对象交互和管理教程 http://blog.csdn.net/kaitiren/article/details/23256191 UIWebView 中JavaScript 与 Objective-C 通信 http://blog.csdn.ne
阅读全文
摘要:参考:http://stackoverflow.com/questions/14334047/how-to-call-javascript-function-in-objective-c [_webView stringByEvaluatingJavaScriptFromString:@"metho
阅读全文
摘要:参考:http://stackoverflow.com/questions/17206514/where-is-the-warnings-view-in-android-studioon the toolbar, you click Analyze -> Inspect Code; then in
阅读全文
摘要:参考:http://stackoverflow.com/questions/20252180/how-to-find-string-in-project-in-android-studio How to find string in project in Android Studio?First o
阅读全文
摘要:原文:http://www.codecoffee.com/tipsforlinux/articles/20.html The simplest way to find files under Linux is to use the locate program. This article expla
阅读全文
摘要:原文:http://www.codecoffee.com/tipsforlinux/articles/21.html Files can be found under Linux in many different ways. Using the find tool is one of the be
阅读全文
摘要:self.bridge = [WebViewJavascriptBridge bridgeForWebView:self.webView]; 此时代理为self.bridge [self.bridge setWebViewDelegate:self]; 此时代理为self 如果self.webVie
阅读全文
摘要:Use the Gradle Wrapper for your Android projects http://kevinpelgrims.com/blog/2015/05/25/use-the-gradle-wrapper-for-your-android-projects/ Gradle ver
阅读全文
摘要:参考:http://vim.wikia.com/wiki/Inserting_text_in_multiple_linesIn visual block mode, you can press I to insert text at the same position in multiple lin
阅读全文
摘要:参考:http://www.ewhathow.com/2013/09/how-to-enable-mod_rewrite-on-apache/ Lets check if mod_rewrite exists as a module:ls /etc/httpd/modules | grep mod_
阅读全文
摘要:http://www.tutorials.kode-blog.com/laravel-hello-world http://www.tutorials.kode-blog.com/laravel-install-and-configure 注意: 要添加文件权限和文件所有权 # chmod 775
阅读全文
摘要:To display line numbers::set numberor::set nu This will turn off the line number display::set nonumber
阅读全文
摘要:重启apache服务器 service httpd start 或 /bin/systemctl restart httpd.service
阅读全文
摘要:http://www.photonvps.com/billing/knowledgebase.php?action=displayarticle&id=58&language=chinese
阅读全文
摘要:showError: 会在[self.textfield resignFirstResponder];执行时隐藏不能达到显示2.5秒左右的效果 解决方法:延时执行隐藏键盘的代码,延时正好等于showError:显示时长 [self performSelector:@selector(hideKeyB
阅读全文
摘要:http://stackoverflow.com/questions/19274408/drawinrectwithattributes-vs-drawinrectwithfontlinebreakmodealignment- (void)drawRect:(CGRect)frame{ NSMuta
阅读全文
摘要:http://stackoverflow.com/questions/2694411/text-inset-for-uitextfieldmyTextField.layer.sublayerTransform = CATransform3DMakeTranslation(5, 0, 0); 占位符和
阅读全文
摘要:参考:http://blog.csdn.net/hshl1214/article/details/6228275 命令行中执行如下:[root@fsc feng]# file /sys/power/state/sys/power/state: ASCII text[root@fsc feng]# c
阅读全文
摘要:http://stackoverflow.com/questions/18868869/ios7s-subview-trimmed-if-out-of-parent-view-bounds It's because iOS 7 introduced some changes to the view
阅读全文
摘要:Try setting self.automaticallyAdjustsScrollViewInsets = NO in your main view controller.This was introduced in iOS 7 so you might want to wrap that wi
阅读全文
摘要:#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending
阅读全文
摘要:centos yum 安装php 7.0 https://webtatic.com/packages/php70/
阅读全文
摘要:composer官网:https://getcomposer.org/ laravel官网:https://laravel.com/docs/5.2/installation Hi All, In this article we are going to setup Laravel on CentO
阅读全文