- 博客(74)
- 资源 (1)
- 收藏
- 关注
原创 理解 Ruby Symbol
在 Ruby 中 Symbol 表示“名字”,比如字符串的名字,标识符的名字。创建一个 Symbol 对象的方法是在名字或者字符串前面加上冒号:有读者可能会问,为什么要存在 Symbol 对象呢?因为 symbol 可以大大提高速度。Symbol 的内
2011-10-05 19:55:18 471 1
原创 安装 ruby on rails
1. 准备安装时使用的库view plainprint?$ sudo apt-get install gcc g++ build-essential libssl-dev libreadline5-dev zlib1g-dev linu
2011-10-04 14:22:58 399
原创 ERP系统介绍
ERP系统是指建立在信息技术基础上,以系统化的管理思想,为企业决策层及员工提供决策运行手段的管理平台。它是从MRP(物料需求计划)发展而来的新一代集成化管理信息系统,它扩展了MRP的功能,其核心思想是供应链管理。它跳出了传统企业边界,从供应链范围去优化企业的资源。ERP系统集信息
2011-10-04 13:21:12 776
原创 centOS下解决java生成图片中文乱码问题
,好像没什么问题,继续查找程序中的日志信息,发现从ppt中取出来的内容没有乱码,查看代码发现是生成图片时使用宋体字,猜测是字体没有安装。于是通过:fc-list :lang=zh显示为空。查看自己的linux服务器时发现:AR PL UMing TW:style=LightAR PL UMing HK:style=LightAR PL UMing CN:style=LightAR PL UKai TW MBE:style=BookAR PL UKai CN:style=Boo
2015-12-18 23:57:20 533
[angularjs之我见] AngularJs 的DI实现
ovider: supportObject(provider), factory: supportObject(factory), service: supportObject(service), value: supportObject(value), constant: supportObject(constant), decorator: decorator}2.$injector: providerCache.$injector =
2015-11-01 00:10:48 131
看看谁聪明,类游戏寻找算法
本人用了游戏寻路算法做了一个程序,没有解出答案,如果差一个圈的有1064个解法。欢迎高手们解答 import java.util.ArrayList;/** * @author xtiger ([email protected]) 2015-09-09 23:39 */public class Game { private static int[][] t = new int[7][7]; //记录圈子,外围多加一圈,免得判断 ,0:可以走,1:走过,2:不可走
2015-09-11 09:36:03 95
[Android] 动态语言切换
uration(); if (configuration.locale.equals(locale)) return; DisplayMetrics displayMetrics = resources.getDisplayMetrics(); configuration.locale = locale; resources.updateConfiguration(configuration, displa
2014-12-27 10:43:21 84
原创 [angularjs之我见] angularjs,那些特性让我很好奇
3.服务(Serivce或Provider)4.作用域(Scope)5.双向绑定(Tow way binding) 问题:1.函数的DI是什么时间产生的?在使用他的场景中,一般为:module中的config,module中的run,$ControllerProvider触发2.双向绑定是通过scope的$watch和$digest实现的,那系统是什么时间调用$digest这个函数的呢?(所有的可输入控件和事件都会去调用$apply,而$apply间接调用$di
2014-12-12 00:57:38 82
[angularjs之我见]注入器
入器主要是用来将provider作为参数注入到被注入的函数中。其包合:1.invoke(fn, self, locals):通过fn的参数列表(获取[]方式指定,或$inject)得到需要注入的provider作为fn的参数调用fn。注:如果提供了locals,系统会先通过locals查找注入列表,只有找不到时,才找provider args.push( locals && locals.hasOwnProperty(key)
2014-12-10 23:22:31 87
原创 android sdk 让SDK Manager来自动安装上面下载的文件
按钮。 4.2.这时在android-sdk-windows(SDK Manager.exe所在目录)下会生成一个temp文件夹,这是可以点cancel键取消 下载。 4.3.将上面用迅雷下载的SDK等文件放到temp目录下。 4.4.关闭并重新打开SDK Manager.exe然后同样在Available packages中勾选刚放到temp目录下的要安装的SDK和 Google API,然后同样点击Instal
2014-07-09 22:13:24 101
原创 Generating SSH Keys
h generating an SSH key and then adding the public key to your GitHub account.Step 1: Check for SSH keysFirst, we need to check for existing ssh keys on your computer. Open up Terminal and run:cd ~/.sshls# Lists the files in your .ssh director
2014-02-28 10:14:35 70
[Js++开发历程] 难搞的DOM元素的Rect
积扩大 因此,滚动条不影响offsetWidth,但影响clientWidth边框影响offsetWidth,但不影响clientWidthpadding同时影响offsetWidth和clientWidth 2.getBoundingClientRect获取元素相对于页面视图左上角的位置区域。只要加上文档滚动的距离,就可以精确元素的偏移坐标了
2014-01-06 12:27:34 91
[Js++开发历程] 巧妙使用querySelector实现类似JQuery.is函数
那我们如何使用querySelector模仿呢? 由于querySelector只能查找dom以下的DOM,所以我考虑到将采用dom的父dom来使用querySelector 由于querySelector无法查找精确子DOM(它将会查找其所有的子孙DOM),而且,要查找的dom可能会有很多兄弟 所以要重新定位到要查找的dom就有困难了,这时,我又想到id,由于在HTML中我们会规范,界面中需要唯一的ID 有了以上的条件,JQuery.is的模拟就有可能了,直接上代码第一种方案
2014-01-03 10:44:21 99
[Js++开发历程] 模拟面向对象
禁让我联想到闭包1.2.1 闭包 闭包是能够读取其他函数内部变量的函数。1.2.2 链式作用域 JavaScript语言特有的"链式作用域"结构(chain scope),子对象会一级一级地向上寻找所有父对象的变量。所以,父对象的所有变量,对子对象都是可见的,反之则不成立。 综合以上两点,Js++ 的面向对象都在函数体内实现“成员变量”和“成员函数”。1.2.3 现在疑问就是这些“成员变量”和“成员函数”如何能开放出来,使得外界可以访问呢?其实有普遍有
2014-01-02 00:34:35 67
原创 Java版本的mysql每天23:00自动备份
tatic void backup(String dbdir, String dbname, String backdir) { Calendar calendar = Calendar.getInstance(); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy_MM_dd_HHmmss"); String currentTime = dateFormat.forma
2013-12-22 19:42:46 68
原创 The last packet successfully received from the server was 596,688 milliseconds a
2013-08-07 14:55:02 74
[Javascript技巧]代码编辑器的行号,通过hash定位
he file source view. $('.linenums>li').each(function () { $(this).set('id', 'l' + (index + 1)); $(this).addClass('file-line'); hasLines = true; }); // Scroll to the desired line. if (hasLines &
2013-06-26 09:56:02 70
[J框架知识扫盲]之Object.prototype.toString.call()
.2.4.2的一段话: Object.prototype.toString ( ) When the toString method is called, the following steps are taken: 1.If the this value is undefined, return "[object Undefined]".2.If the this value is null, return "[object Null]"
2013-06-24 15:16:49 62
原创 Javascript 面向对象编程
nfig */ hidden:true, constructor: function (config) { var jthis = this; $.extend(jthis, config); }, addEvents: function (o) { } });});'package jui'.j(function (
2013-06-22 21:54:46 48
原创 Nginx的安装
cre-8.33为pcre的源码目录,不是安装目录,pcre可以从http://www.pcre.org/下载./configure --prefix=/usr/local/pcre-7.8 --libdir=/usr/local/lib/pcre --includedir=/usr/local/include/pcre4. make & make install ps -ef|grep nginx
2013-06-16 11:33:11 45
原创 Mysqldump的应用
ions from the given file #.--defaults-extra-file=# Read this file after the global files are read. --all Deprecated. Use --create-options instead. -A, --all-databases Dump all the databases. This will be same as --databases
2013-06-02 09:52:59 54
原创 linux 命令搜集-2
ot (hd0,0)grub> setup (hd0)grub> reboot 修改 vi /boot/grub/menu.lst中的 (hd1,0)为(hd0,0) yum 判断提供商:yum provides */lspci 安装无线网卡vi ./os/linux/usb_main_dev.cchange the file by adding line: 'MODULE_LICENSE("GPL");' as in
2013-04-28 18:38:28 76
仿QQ宠的VC程序
2008-01-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人