首页 > 编程语言
JavaScript 学习(2-2)
参考: http://www.w3cschool.cc/js/js-window.html 四、浏览器 BOM ????浏览器对象模型(BOM)使JavaScript有能力与浏览器“对话”。 ????(1)Window ????????浏览器对象模型(Browser Object ...
分类:编程语言   时间:2014-10-01 08:38:11    收藏:0  评论:0  赞:0  阅读:355
[欢度国庆]为什么我们今天还要学习和使用C++?(转载)
在各种新的开发语言层出不穷的今天,在Java和C#大行其道今天,我们为什么还要学习和使用C++?现在学习C++将来有用吗?学习C++要花费那么多时间和精力,这一切都值得吗?现在学习C++有钱途吗? 这几乎是每一个C++的初学者都会问的问题,在选择开发语言进行学习的时候,就像高考填报志愿一样...
分类:编程语言   时间:2014-10-01 08:38:50    收藏:0  评论:0  赞:0  阅读:480
Hadoop on Mac with IntelliJ IDEA - 5 解决java heap space问题
本文讲述在CentOS 6.5中提交作业到hadoop 1.2.1于reduce阶段遇到Error: java heap space错误导致作业重新计算的解决过程。解决办法适用Linux、Mac OS X 和Windows操作系统。环境:Mac OS X 10.9.5, IntelliJ IDEA ...
分类:编程语言   时间:2014-10-01 03:30:00    收藏:0  评论:0  赞:0  阅读:407
求救:如何在Eclipse IDE for C/C++ Developers中正确编译GTK程序?
出现错误信息如下,请问大牛该如何解决? 00:52:56 **** Incremental Build of configuration Debug for project Again **** make all  Building file: ../why.c Invoking: GCC C Compiler gcc "../why.c" -I/usr/include/glib-2.0...
分类:编程语言   时间:2014-10-01 02:23:20    收藏:0  评论:0  赞:0  阅读:376
ArcGIS for javascript 构建GraphicsLayer
ArcGIS for javascript 构建GraphicsLayer,并解决居中效果无效的问题。...
分类:编程语言   时间:2014-10-01 02:19:30    收藏:0  评论:0  赞:0  阅读:443
<<Python基础教程>>学习笔记 | 第11章 | 文件和素材
打开文件 open(name[mode[,buffing]) name: 是强制选项,模式和缓冲是可选的 #如果文件不在,会报下面错误: [python] view plaincopyprint? >>> f = open(r'D:\text.txt','r') Traceback (most recent call last): File "", line 1, in IOError: [Errno 2] No such file or direc...
分类:编程语言   时间:2014-10-01 02:21:40    收藏:0  评论:0  赞:0  阅读:428
python list 线性访问和随机访问比较
线性访问速度是随机访问的2倍左右一下是数组长度和两种访问的时间,单位是秒数组长度线性随机1000.010.0110000.010.01100000.0150.0151000000.020.0310000000.10.21000000012比较的时候把产生随机数的时间减掉了,长度是一亿的时候程序直接挂...
分类:编程语言   时间:2014-10-01 02:16:20    收藏:0  评论:0  赞:0  阅读:323
[leetcode] Longest Valid Parentheses @python
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:编程语言   时间:2014-10-01 02:18:00    收藏:0  评论:0  赞:0  阅读:381
常用的正则表达式归纳—JavaScript正则表达式
2、常用的正则表达式: 匹配中文字符的正则表达式: [\u4e00-\u9fa5] 匹配双字节字符(包括汉字在内):[^\x00-\xff] 匹配空白行的正则表达式:\n\s*\r ps:可以用来删除空白行 匹配HTML标记的正则表达式:]*>.*?| 匹配首尾空白字符的正则表达式:^\s*|\s*$ ps:可以用来删除行首行尾的空白字符(包括空格、制表符、换页符等等),非常有用的表达式 匹配Email地址的正则表达式:\w+([-+.]\w+)*@\...
分类:编程语言   时间:2014-10-01 01:16:30    收藏:0  评论:0  赞:0  阅读:326
[leetcode] Valid Parentheses @Python
https://oj.leetcode.com/problems/valid-parentheses/Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the inp...
分类:编程语言   时间:2014-10-01 01:13:10    收藏:0  评论:0  赞:0  阅读:323
[Leetcode][JAVA] LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu...
分类:编程语言   时间:2014-10-01 01:12:30    收藏:0  评论:0  赞:0  阅读:383
常用的正则表达式归纳—JavaScript正则表达式
来源:http://www.ido321.com/856.html1、正则优先级首先看一下正则表达式的优先级,下表从最高优先级到最低优先级列出各种正则表达式操作符的优先权顺序:2、常用的正则表达式:匹配中文字符的正则表达式: [\u4e00-\u9fa5]匹配双字节字符(包括汉字在内):[^\x00...
分类:编程语言   时间:2014-10-01 01:05:40    收藏:0  评论:0  赞:0  阅读:365
介绍一个懒人创建springmvc项目的方法
PS:我是一个懒人,我懒得搭建项目连pom都不想去找,连web.xml都不想配置.所以就会想着找一些简便的办法,来适应我这种懒人.----------------------------本人介绍的是用eclipse和sts插件创建springmvc项目,其他项目目前用不着,等用着的时候在研究吧.前提...
分类:编程语言   时间:2014-10-01 01:12:21    收藏:0  评论:0  赞:0  阅读:561
aapt: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
前阵子在ubuntu上搭载安卓的开发环境(Eclipse+Sdk+Adt),搭载是完成了,但是却出现了该问题:aapt: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64该问题还导致了创...
分类:编程语言   时间:2014-10-01 01:03:10    收藏:0  评论:0  赞:0  阅读:677
c++设计一个不能被继承的类,原因分析
用C++实现一个不能被继承的类(例1) #include?<iostream> using?namespace?std; template?<typename?T> class?Base{ ????friend?T; private: ????Base(){ ????????cout?<<?"base"?<...
分类:编程语言   时间:2014-10-01 00:07:00    收藏:0  评论:0  赞:0  阅读:563
python copy
importcopya=[1,2,3,4,[‘a‘,‘b‘]]#原始对象b=a#赋值,传对象的引用c=copy.copy(a)#对象拷贝,浅拷贝d=copy.deepcopy(a)#对象拷贝,深拷贝a.append(5)#修改对象aprinta[1,2,3,4,[‘a‘,‘b‘],5]>>>printb[1,2,3,4,[‘a‘,‘b‘],5]>>>printc[1,2,3,4,[‘a‘,‘b‘]]>&..
分类:编程语言   时间:2014-10-01 00:03:30    收藏:0  评论:0  赞:0  阅读:642
python copy
importcopya=[1,2,3,4,[‘a‘,‘b‘]]#原始对象b=a#赋值,传对象的引用c=copy.copy(a)#对象拷贝,浅拷贝d=copy.deepcopy(a)#对象拷贝,深拷贝a.append(5)#修改对象aprinta[1,2,3,4,[‘a‘,‘b‘],5]>>>printb[1,2,3,4,[‘a‘,‘b‘],5]>>>printc[1,2,3,4,[‘a‘,‘b‘]]>&..
分类:编程语言   时间:2014-10-01 00:04:31    收藏:0  评论:0  赞:0  阅读:719
zabbix sendmail(python)
#!/usr/bin/python #coding:utf-8 importsmtplib fromemail.mime.textimportMIMEText importsys mail_host=‘smtp.163.com‘ mail_user=‘username‘ mail_pass=‘password‘ mail_postfix=‘163.com‘ defsend_mail(to_list,subject,content): me=mail_user+"<"+mail_user+"@"+mail..
分类:编程语言   时间:2014-09-30 23:56:40    收藏:0  评论:0  赞:0  阅读:492
Mybatis学习笔记-Mybatis与Spring的整合
项目结构User.java实体类publicclassUserimplementsSerializable{ privatestaticfinallongserialVersionUID=1L; privateintid; privateStringusername; privateintage; privateStringsex; //... }UserMapper接口publicinterfaceUserMapper{ publicvoidsave(Useruser);..
分类:编程语言   时间:2014-09-30 23:45:41    收藏:0  评论:0  赞:0  阅读:370
工作笔记3.手把手教你搭建SSH(struts2+hibernate+spring)环境
本文以搭建SSH(struts2+hibernate+spring)框架为例,通过3个独立配置、2个整合,基本完成SSH框架搭建。通过“资源分类”养成良好的编码习惯...
分类:编程语言   时间:2014-09-30 23:49:00    收藏:0  评论:0  赞:0  阅读:389
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!