1. 53970

    在制作响应式页面是Less非常简单和实用,语法和使用方法都可以参考官网文档和中文教程。 本文简单提要学习摘录: Less最重要的几个概念:变量,样式扩展和混合 变量的主要几个作用: 用来定义CSS规则的属性值 用来定义选择器的名称 用来定义URL 用来定义变量使用在import语句中 用来定义属性的名称 甚至可以用来定义另一个变量的名称 使用变量的时候要以下注意点: 可以Lazy Load, 即定义申明的书写位置可以在实际引 ...

    阅读全文
  2. 学习Android的hello Android时,遇到一个主题相关的错误如下: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.soosmart.hellomobile/com.soosmart.hellomobile.AboutActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat the ...

    阅读全文
  3. #!是特殊的表示符,其后面跟的是用来解释该脚本的shell的路径。 告诉操作系统, 此脚本的解释器为 /bin/sh 这个可执行文件 类似地, 如果你的脚本用 bash, ksh, 解释, 第一行就应该是 #!/bin/bash #!/bin/ksh 之类的 或者, 你自己定义一种脚本语言, 再自己写个解释器去执行它, 比如说叫 xshell,  放在 /usr/local/bin 下, 你的脚本第一行就应该是 #!/usr/local/bin/xshell ...

    阅读全文
  4. Mac自带了php和apache. 但Mac OS X并没有默认的php.ini配置文件。不过提供了php.ini.default模版。可以复制一份出来修改。 sudo cp /private/etc/php.ini.default /private/etc/php.ini 然后根据需要修改php.ini 然后需要设置socket, 把php.ini里面所有的default_socket都改成/tmp的mysql.sock的正确位置即可。因为mysql的默认目录是 ...

    阅读全文
  5. Window->Preference->Java->Editor->Content Assist->Advanced 这里如果你去掉Java Proposals的选择,那么你就不会有任何java的提示。底下的选框是用来定义顺序的。 ...

    阅读全文
  6. Installing the Certificates to the Keystore If you receive a message that says "Certificate already exists in system-wide CA keystore under alias <...> Do you still want to add it to your own keystore? [no]:", select Yes. If succes ...

    阅读全文
  7. 如何在bash中设置一个变量的值为某指令的输出? 如希望将变量variable的值设置为ls -al的输出。 方法是: variable="$(ls -al)" echo $variable 注意是"$(指令)" 也可以是 variable=`ls -al` echo $variable 这里不是单引号,而是backticks 参考文档: http://stackoverflow.co ...

    阅读全文
  8. 本文只是快速了解bash的一些基本概念和命令的学习笔记。 认识bash shell Shell的变量使用 命令别名和历史命令 Bash的操作环境 资料流重定向(redirection) 管道命令 认识bash Shell 学习Shell有很多好处,在Linux中就是核心神器。文字界面效率就是快,通过命令用来远程管理以及批处理,工作效率大大提升。然后shell入门确也是一件头疼的事,如果不常使用,过一段时间就会忘了,只剩下几个常用命令。如果不系统的了 ...

    阅读全文
  9. 55490

    W3C Standards  (W3C侧重于在如下领域定义一系列标准) Web Design and Applications Web Architecture Semantic Web XML Technology Web of Services Web of Devices Browsers and Authoring Tools   Web Design and Applications HTML & ...

    阅读全文
  10. 画一个简图帮助直观理解Javascript获取屏幕,页面,浏览器的高度的方法: 通过window.screenX, window.screenY来获取浏览器在当前屏幕的坐标。 通过window.innerWidth, window.innerHeigher来获取浏览器当前的宽和高。 通过window.scrollX, window.screenY来获取当前页面的滚动条移动情况。 而再获取当前页面的高度时,为了实现浏览器的兼容性,需要通过下面的方式获取最大值。 ...

    阅读全文
  11. 51500

    百度和google的高级搜索指令: 双引号: 搜索和查询词完全匹配的页面。谷歌和百度都支持。 减号: 是排除减号后面的收索结果。百度和谷歌都支持。 星号: 通配符,可以代表任何文字。百度不支持。 inurl:  是用在查询词语出现在url中的页面。谷歌和百度都支持。 inanchor: 返回导入链接锚文字中包含查询词语。百度不支持。 intitle: 是返回title中包含查询词的页面。百度和谷歌都支持。 ...

    阅读全文
  12. HttpClient Examples Response handling This example demonstrates how to process HTTP responses using a response handler. This is the recommended way of executing HTTP requests and processing HTTP responses. This approach enables the caller t ...

    阅读全文
  13. jQuery.fn = jQuery.prototype = {..........}; // Give the init function the jQuery prototype for later instantiation jQuery.fn.init.prototype = jQuery.fn; jQuery.extend = jQuery.fn.extend = function() {........}; jQuery.extend(.... ...

    阅读全文
  14. http://en.wikipedia.org/wiki/Comparison_of_JavaScript-based_source_code_editors   ...

    阅读全文
  15. YUI 2.9 Samples2013-11-28

    Widget ImageCropper Control Examples: Simple Crop Interface Advanced Crop Interface Real Time Crop Feedback Connection Manager assisted image crop Skinning the ImageCropper     Layout Manager Exampl ...

    阅读全文
  16. YUI Drag & Drop2013-11-20

    http://developer.yahoo.com/yui/dragdrop/  Drag and Drop API Document: http://yui.github.io/yui2/docs/yui_2.9.0_full/docs/module_dragdrop.html  The following configuration properties are currently supported via the contructor ...

    阅读全文
  17. Maven是一个非常强大的软件项目管理工具(注意是软件项目,所以不只是java项目哦,也可以其他语言的软件项目)。可以用它来管理项目的建立,发布,文档等,它可以贯穿项目的整个生命周期。 本文只是为了快速浏览Maven的官方文档,纯粹新手入门。如需深入Maven,需要更多的实战。 官网:http://maven.apache.org/ 官方文档:http://maven.apache.org/guides/index.html 官文主要提供了 1)基本使用入门(下载,安装, ...

    阅读全文
  18. 遗憾的是不能或者说不是很方便,不过可以使用rsync工具来实现。 rsync -av --exclude '*.svn' user@server:/my/dir . 为什么不说不是很方便?因为网上看到的有些解决方案是通过正则表达式来实现的。如: scp -r [!.]* server:/path/to/something 这个例子就是将当前目录下除了“.***"格式的文件传输到server上。 当然还可以使用管道来组合命 ...

    阅读全文
  19. 今天测试mac的scp命令时,使用后报错 bash: scp: command not found。 提示scp的命令找不到,但是查找发现命令是存在的 [root@localhost ~]# whereis scp scp: /usr/bin/scp /usr/share/man/man1/scp.1.gz [root@localhost ~]# find / -name scp /usr/bin/scp 只有一个解释,那就是远程机器上没有安装scp。 ...

    阅读全文
  20. mac自带SVN2017-01-11

    mac自带了SVN,SCP。 可以使用SVN提供的命令来访问SVN服务器。 http://svnbook.red-bean.com/en/1.7/index.html 列些常用的命令以供参考: svn import localfiles svn://ip:repositoryname/path --username=test --password=pwd   Mac自带了scp,可以用来与远程服务器来传输文件,但如果复制远程文件出现下面的错误时,说明 ...

    阅读全文