weistar
weistar · 共 268 篇文章
How to convert Javascript Arrays to CSV (Comma separated values)
文章源自:http://viralpatel.net/blogs/convert-javascript-arrays-to-csv/ How to convert Javascript Arrays to CSV (Comma separated values) Let’s see a small code snippet in Javascript that converts JS arrays in Comma separated values. It is also possible to convert an array to delimited text where one can…
2013-06-19 17:10 · JAVASCRIPT · 评论(0)
Create ZIP Files in JavaScript
文章源自:http://viralpatel.net/blogs/create-zip-file-javascript/ Create ZIP Files in JavaScript Zip is a very useful file type if I must say most used. It is the most used file format for data compression and archiving. There are number utilities available to create/generate Zip file. Also most of the …
2013-06-19 16:58 · JAVASCRIPT · 评论(0)
Create a Clearable TextBox with jQuery
文章源自:http://viralpatel.net/blogs/clearable-textbox-jquery/ Create a Clearable TextBox with jQuery Recently I came across a wonderful article by David Walsh on Clearable Textboxes with Dojo Toolkit [ link ]. This is a simple implementation where a clear button (x) added in a textbox which lets user …
2013-06-19 16:48 · JAVASCRIPT · 评论(0)
ubuntu tomcat 自启动
apache-tomcat-6.0.28.tar.gz tomat的版本 tar zvxf apache-tomcat-6.0.28.tar.gz 切换路径到tomcat的bin目录下。 Tomcat自启动:cp catalina.sh /etc/init.d mv catalina.sh tomcat 打开tomcat 找到< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" /> cygwin=false os400=false < xmlnamespace prefix ="st1" ns ="…
2013-06-18 17:22 · Linux/Ubuntu · 评论(0)
Ubuntu JDK安装配置详解
Ubuntu JDK安装配置详解 Ubuntu JDK安装配置的详细步骤: 1.下载jdk 下载连接http://java.sun.com/javase/downloads/index.jsp 选择jdk-6u14-linux-i586.bin下载,将jdk-6u14-linux-i586.bin放置于目录/home/liyouliang/develop 2.解压文件 ◆打开终端,进入放置jdk的目录[cd /home/java]; ◆更改文件权限为可执行[chmod u+x jdk-6u14-linux-i586.bin] 若是tar.gz,则需要使用tar xvf *.tar.gz解压.…
2013-06-18 11:10 · Linux/Ubuntu · 评论(0)
wbox源码简析
工作常要用到wbox,今天刚好用到,看看源码,其实很简单. (function($){ //class为.wBox_close为关闭 $.fn.wBox = function(options){ // 配置项 var defaults = { wBoxURL: "css/wbox/",// 改变loading.gif图片路径 opacity: 0.5,//背景透明度 callBack: null, noTitle: false, show:false, timeout:0, target:null, requestType:null,//iframe,ajax,img title: "wBo…
2013-06-14 15:50 · JAVASCRIPT · 评论(0)
jquery.pagination.js分页插件的运用
插件官方地址: http://plugins.jquery.com/project/pagination 插件js源码 代码 /** * This jQuery plugin displays pagination links inside the selected elements. * * @author Gabriel Birke (birke *at* d-scribe *dot* de) * @version 1.2 * @param {int} maxentries Number of entries to paginate * @param {Object} opts Seve…
2013-06-13 17:00 · JAVASCRIPT · 评论(0)
ubuntu下7z rar文件的解压方法
打开终端,键入以下命令: apt-get install p7zip-full 命令安装完成后,解压文件,如下: 使用方法:7z x file file是你要解压的文件 一般通过默认安装的ubuntu是不能解压rar文件的,只有在安装了rar解压工具之后,才可以解压。其实在ubuntu下安装rar解压工具是非常简单的,只需要两个步骤就可以迅速搞定。 ubuntu 下rar解压工具安装方法: 压缩功能 安装 sudo apt-get install rar 卸载 sudo apt-get remove rar 如:$rar a abc.rar file1 $rar e abc.rar 解压功能…
2013-06-13 09:39 · Linux/Ubuntu · 评论(0)
给你的Ubuntu安装中文字体
Ubuntu 10.04 LTS的出现让我眼前一亮,其中有一个很明显的进步就是对于中文字体的支持。在Firefox 3.6中,中文字体的显示同Windows下显示效果基本相同,至少让我相当满意。但是Ubuntu 10.04的英文版在安装之初,字体显示并不尽如人意,需要稍作修改。 1. 安装中文语言包 Ubuntu 10.04英文版默认安装是不包含中文语言包的。这时,firefox可以显示中文,但是效果很差。手动安装中文字体非常简单,在设置好Ubuntu数据 源之后,进入:System -> Administration -> Language Support,选择install/remove…
2013-06-09 17:33 · Linux/Ubuntu · 评论(0)
Ubuntu下MySQL中文乱码解决
安装mysql如下: # apt-get install mysql-server 修改/etc/mysql/my.cnf sudo gedit /etc/mysql/my.cnf 在my.cnf文件中的[client]段和 [mysqld]段加上以下两行内容: [client] default-character-set=utf8 [mysqld] default-character-set=utf8 需要重启mysql服务 停用: sudo mysqladmin shutdown -u root -p 然后输入mysql的root用户的密码 启用: sudo mysqld_safe -u…
2013-06-09 16:39 · Linux/Ubuntu · 评论(0)
编写高效的JavaScript程序
文章源自: http://www.csdn.net/article/2012-11-14/2811887-writing-fast-memory-efficient-javascript 编写高效的JavaScript程序 一、JavaScript如何在V8中工作? 如果你对JS引擎没有较深的了解,开发一个大型Web应用也没啥问题,就好比会开车的人也只是看过引擎盖而没有看过车盖内的引擎一样(这里将Web网页比如成汽车)。Chrome浏览器是我的优先选择,这里我将谈下V8的核心组件: 一个基本的编译器 ,在代码执行前分析JavaScript、生成本地机器代码而非执行字节代码或是简单的解释,该段…
2013-05-31 17:01 · JAVASCRIPT · 评论(0)
Understanding jQuery animate() function
文章源自:http://viralpatel.net/blogs/understanding-jquery-animate-function/ Understanding jQuery animate() function jQuery animate() function is very powerful API to manipulate html elements and add animation functionality. The use of animate function is very simple. First lets check the syntax of this…
2013-05-29 21:16 · JAVASCRIPT · 评论(0)
Multiple Checkbox Select/Deselect using jQuery – Tutorial with Example
文章源自:http://viralpatel.net/blogs/multiple-checkbox-select-deselect-jquery-tutorial-example/ Multiple Checkbox Select/Deselect using jQuery – Tutorial with Example Almost all the user interfaces that I have created had this functionality of selecting multiple items from a list to process them or del…
2013-05-29 20:37 · JAVASCRIPT · 评论(0)
Dynamically shortened Text with “Show More” link using jQuery
文章源自:http://viralpatel.net/blogs/dynamically-shortened-text-show-more-link-jquery/ Dynamically shortened Text with “Show More” link using jQuery Update: The plugin is now on GitHub: https://github.com/viralpatel/jquery.shorten Facebook user updates has a great functionality. If the comment text is …
2013-05-29 20:37 · JAVASCRIPT · 评论(0)
Web开发者不容错过的20段CSS代码
文章源自: http://www.csdn.net/article/2013-05-24/2815422-20-Useful-CSS-Snippets-Every-Designer-Should-Have Web开发者不容错过的20段CSS代码 Web开发技术每年都在革新,浏览器已逐渐支持CSS3特性,并且网站设计师和前端开发者普遍采用这种新技术进行设计与开发。但仍然有一些开发者迷恋着一些CSS2代码。 本文将分享20段非常专业的CSS2/CSS3代码供大家使用,你可以把它们保存在IDE里、或者存储在CSS文档里,这些代码片段绝对会给你带来意外的惊喜。 1. CSS Resets 网络上关于…
2013-05-29 20:37 · HTML5 · 评论(0)