- 推荐收藏!Python Flask 项目生产环境部署指南
Python数据开发
学习笔记pythonflask开发语言
Flask是一个轻量级的Pythonweb框架,适合快速地开发小型到中型的web应用。本文将详细介绍如何将Flask应用部署到生产环境中。文末有技术交流和练手项目,喜欢去练习一下开始之前在部署Flask应用之前,确保你有以下几点:一个Flask应用,经过彻底测试无误。基本的服务器知识,包括SSH连接远程服务器。一台可以访问的服务器,Ubuntu或其他Linux发行版。对于服务器的root或sudo
- 1.2+1.3服务器知识补充与命令基础格式
浅笑_7cad
5.修改文件内容vi创建/修改/oldboy/oldboy.txt[root@first~]#vi/oldboy/oldboy.txt[root@first~]#ls-l/oldboytotal4-rw-r--r--.1rootroot15Jan219:16oldboy.txt[root@first~]#第1个里程碑-vi文件名名称vi/oldboy/oldboy.txt第2个里程碑-vi文件编辑
- 进阶学习——Linux系统服务器硬件认识与RAID磁盘
一坨小橙子ovo
学习服务器运维
目录一、服务器知识补充1.硬件2.服务器常见故障二、认识RAID1.什么是RAID2.RAID的优点3.RAID的实现方式三、RAID磁盘陈列1.RAID0磁盘陈列介绍——RAID02.RAID1磁盘陈列介绍——RAID13.RAID5磁盘陈列介绍——RAID54.RAID6磁盘陈列介绍——RAID65.RAID1+0磁盘陈列介绍——RAID1+06.总结对比四、实现RAID——RAID模拟(一)
- 使用代理IP的好处有哪些?
属狼的男人
代理服务器的好处防止攻击隐藏自己的真实地址信息,还可隐藏自己的IP,防止被黑客攻击。突破限制代理服务器还可以突破网络限制。比如局域网对上网用户的端口,目的网站,协议,游戏,即时通讯软件等的限制,都可以突破这些限制。(有些公司禁止员工玩游戏或上某些网站,这种情况就可以试试看代理服务器喽)掩藏身份代理服务器知识是黑客基本功,黑客的很多活动都是通过代理服务器,比如扫描、刺探,对局域网内机器进行渗透,黑客
- gitee和jenkins_Jenkins+gitee+nuxt自动化部署
滨封
gitee和jenkins
前序在大前端时代下的前端工程师,再也不是一个简简单单写下页面,拿到UI图,画画页面布局等简单的操作了,相反各种各样的业务需求,服务器知识,前端工程化,项目部署等扑面而来。而针对于部署的知识,对于笔者而言,之前的操作都是装一个Xshell和Winscp工具,然后要学习相关的linux命令,在了解相关的nginx操作,然后每一次项目进行更新迭代,推送到服务器,进入服务器,进行行云流水的阿巴阿巴的操作~
- 性能测试学习笔记
testerzzz
性能测试
性能测试学习笔记测试基础性能测试并不是并发越大,响应时间越快,那性能一定就越好。性能测试需要依赖服务器硬件,所以要分析性能,需掌握服务器知识作为性能测试工程师来说,我们需要对系统行为做分析:系统调用是如何执行的,CPU是如何调度线程,有限大小的内存是如何影响性能的,或者是文件系统是如何处理IO的,这些都是我们判断系统瓶颈的依据和线索。性能测试流程不同角色看性能黑盒测试的角度黑盒测试只关注应用的单步
- 老男孩教育-服务器知识补充与命令基础
憨憨的背锅侠
1.物理服务器补充内存临时存放数据的地方,关机或重启数据就会丢失。CPU>内存>磁盘程序、进程、守护进程查询服务器配置信息:官网/中关村zol.com磁盘永久存放数据的地方:机械硬盘固态硬盘机械硬盘:主轴转速54007200/10k/15krbm(rounbperminute一分钟5400圈)磁盘接口分类:磁盘的接口相当于水壶的壶嘴磁盘接口磁盘与服务器主板之间连接方式常见的磁盘接口:sata(家用
- 做SEO需要掌握哪些核心技术!
octcenqtwk
每一个像我咨询SEO培训的学员都问同一个问题,做SEO需要掌握哪些技术,SEO分为专职SEO跟兼职SEO,无技术也能做SEO,我认为掌握更多的技术是提高SEO的基本。做SEO优化不像做数学加减法,更像是文章写作,没有固定的套路。理想中的SEO需掌握建站知识,代码开发知识,服务器知识掌握等。假设是专职SEO,只懂优化,网站代码需修改,不懂程序操作,此时需要向身边懂程序的朋友咨询,这样一去一来,耗费的
- seo优化需要掌握哪些技术?
seo科技
seo优化需要掌握哪些技术?无技术也能做seo,掌握更多的技术能提升做好seo的概率。做seo不像做数学加减法,更像是文章写作,没有固定的套路,多种方法都能达成既定目标。理想状态下,将seo以及周边技术如建站知识,部分代码知识,服务器知识掌握到,能明显提升seo效率。假设是专职seo,只懂优化,网站代码需修改,得联系程序员操作,一去一来,耗费的就是时间。作为seo老司机,需要掌握哪些与seo优化密
- 每日总结
Java纪元
笔记
11.161)做翻牌游戏,while循环用break结束循环,continu跳过该次循环,执行下一次。2)直击核心,就是从输入的判断,不用双循环判断。找中间回滚。后台管理登录,通过请求进入controller层调用——》service实现业务—》调用mapper接口—》实现数据库查询。查询条件有封装好的equl…这种。看视频,直接拷网上代码,,,自己改改。11.171)服务器知识:安装失败,配置问
- 给linux(Ubuntu)服务器安装Java开发环境(jdk)
小郭me
最近免费白嫖了一款服务器,想着给他装一个jdk,用来学习相关的服务器知识服务器信息root@ubuntu:~#lsb_release-aNoLSBmodulesareavailable.DistributorID:UbuntuDescription:Ubuntu16.04.7LTSRelease:16.04Codename:xenial安装JDK下载jdk安装包我这里选择的是Oracle官网的Ja
- 【C#】并行编程实战:异步流
魔术师Dix
多线程编程C#c#多线程编程学习
本来这章该讲的是ASP.NETCore中的IIS和Kestrel,但是我看了下这个是给服务器用的。而我只是个Unity客户端程序,对于服务器的了解趋近于零。鉴于我对服务器知识和需求的匮乏,这里就不讲原书(大部分)内容了。本章节里面有一部分还是客户端也可以学习的,就是异步流。所以这个章节就改为只学习异步流即可。本教程学习工程:魔术师Dix/HandsOnParallelProgramming·Git
- 服务器知识
️恩左yo
服务器
一、服务器硬件和linux的初识和安装1.1服务器的硬件1、计算机的硬件组成主要有:主板、内存、电源、CPU(CentralProcessingUnit,中央处理器)、硬盘。2、显卡、声卡、网卡、光驱,是一般电脑自带的硬件。3、输入输出设备主要包括:显示器、键盘、鼠标、音箱、摄像头、打印机和扫描仪等。1.2什么是服务器1、服务器是为网络上用户提供服务和信息资源的一种高性能计算机。英文名称叫做ser
- 给linux(Ubuntu)服务器安装Java开发环境(jdk)
java
最近免费白嫖了一款服务器,想着给他装一个jdk,用来学习相关的服务器知识服务器信息root@ubuntu:~#lsb_release-aNoLSBmodulesareavailable.DistributorID:UbuntuDescription:Ubuntu16.04.7LTSRelease:16.04Codename:xenial安装JDK下载jdk安装包我这里选择的是Oracle官网的Ja
- 给linux(Ubuntu)服务器安装Java开发环境(jdk)
java新手向linux
最近免费白嫖了一款服务器,想着给他装一个jdk,用来学习相关的服务器知识服务器信息root@ubuntu:~#lsb_release-aNoLSBmodulesareavailable.DistributorID:UbuntuDescription:Ubuntu16.04.7LTSRelease:16.04Codename:xenial安装JDK下载jdk安装包我这里选择的是Oracle官网的Ja
- 选轻量应用服务器or云服务器ECS?一图帮你彻底区分
服务器
简介:轻量应用服务器适合轻量级且访问量低的应用场景,更适合个人开发者、对新手小白更友好;而云服务器ECS可覆盖全业务场景(如大数据分析,深度学习等),要求用户有一定的开发技术能力。本文首发于公众号“弹性计算百晓生”,专注分享云计算与云服务器知识。不少人在接触轻量应用服务器之后,都不免拿它和云服务器ECS做比较,心里可能也有疑问,到底该选哪个更合适?如果用一句话来介绍两者的区别,那么会是“轻量应用服
- 文韬互联:我所理解的品牌注意事项(1)
叨声依旧
文韬互联:我所理解的品牌注意事项(1)前言:前面我们讲的知识对互联网各方面均有过涉猎,比如服务器知识、域名知识、网页设计的知识等,今天讨论的一个主题是品牌,本文曾在本月发在百度站长社区里,也是文韬互联的原创文章,节选部分,希望能对各位朋友有所用处。由于今天讨论的主题是本月之前已经写过的一篇文章,而关于品牌运营方面,文韬互联还会对此话题写很多自己的运营心得,故此本篇文章属于第一篇吧。(正文开始,请君
- GO语言初级学习之代码案例10 (TCP并发服务器&并发客户端)
大爬虫Shalom
@(go语言黑马)[GO语言]简单版TCP服务器题目:搭建一个简单版TCP服务器知识点:TCP通信逻辑:_1.创建服务器的IP+port(端口号)_2.创建通信socket_3.读写客户端数据代码如下:packagemainimport"fmt"funcmain(){listener,err:=net.Listen("tcp",":8000")//创建服务器的IP+port(端口号)iferr!=
- 从入门到入土,阿里大佬整理的软件测试入门全套资料,20天自学到找工作
小码哥说测试
测试面试测试工具软件测试测试工程师面试
其实入门很简单,对着下面的技能树,自学20天足矣你要学什么?测试理论、测试工具、http知识、数据库知识、Linux服务器知识、自动化工具知识学完这些,放心大胆的开始找工作吧测试理论一.测试用例1.等价类划分法2.边界值分析法3.因果图法4.正交实验设计法5.判定表驱动分析法6.场景法7.错误推测法8.功能图分析法二.测试类型回归测试黑盒测试白盒测试单元测试(模块测试)集成测试系统测试验收测试兼容
- Django学习笔记
光阴的故事WEI
从毕业到现在一直做iOS开发,对服务器知识一直充满好奇,最近几周在学习完python后学习了django框架。于是对一些关键知识点做一下笔记,持续更新中//创建项目test7django-adminstartprojecttest7//创建应用testpythonmanage.pystartapptest
- 2017总结和2018年计划
有话好好说之南京潇洒哥
2017年已经过去了,现在对这一年做一个简单的总结。1.2017年又一次开通了个人主页和博客网站。学习win2008server和Linux服务器知识。2.今年工作上带领一个团队做了一个pms2.0的项目。从头到尾都是我一个人实施的。人员管理,项目管理,每一个细节都是自己做的。3.健康管理上,没有太大进步,但今年去医院挂水感冒发烧的次数明显越来越少,这是好事情。要保持。4.写作方面没有太大的进步基
- 测试问题集锦
倔强的潇洒小姐
本文内容是根据老徐的软件测试圈和职场人每日进阶筛选后进行整理的,处于不断更新的状态1、想学性能测试,该如何开始了解性能测试是什么学点服务器知识学点网络知识1)《HTTP权威指南》,这本书还不错,但其厚度令人望而生畏2)《TCP/IP详解,卷1》,内容艰涩难懂,学习难度较大3)《图解HTTP》,推荐理由:图文并茂,正所谓一图胜千文找个工具助手(Loadrunner、Jmeter)找个项目实战Linu
- 0329-百人计划-面试经验谈
绿豆粥lv
主讲人:老徐听课链接:从业十年,我作为技术面试官的面试经验谈。主要内容1、如何提前准备2、提前多久准备3、如何定位自己的薪资区间?4、如何精准投递(先通过简历筛选)?5、如何1分钟介绍自己?6、如何主动出击?7、如何谈薪资?8、如何选择最终入职的公司?9、如何选择性去面试?各主题详细介绍1、如何提前准备1)提前几个月为下一份工作做些准备准备哪些:1)测试理论知识2)基础网络知识3)服务器知识4)往
- 干货!让小白都能轻易掌握的服务器知识
编程侠Java
2020年的一场疫情袭击了整个世界,疫情限制了大家的出行,也改变了不少人工作学习的方式,足不出户在家线上工作学习已经成为一种常态。为什么可以进行线上工作学习,得益于近年来互联网的快速发展和支撑,让大家都能在云上进行沟通交流。互联网中指代的云并不是自然界中的云朵,而是互联网虚拟的一种线上服务,但他们有异曲同工之妙,自然界中云是大量的水滴漂浮在空中聚合成了云,而互联网中的云是由众多的计算资源、存储资源
- Java 进阶day12 网络编程、TCP、UDP、模拟B\S服务器、BIO和NIO
halulu.me
Java小白的学习之路#Java基础知识汇总
目录知识点1、网络编程知识点2、UDP通信知识点3、TCP通信知识点4、模拟B\S服务器知识点5、BIO和NIO知识点1、网络编程网络编程概述:实现不同计算机上进行数据传输的程序。网络编程三要素:(IP地址、端口号、协议)IP地址找到电脑、端口号找到程序、协议传输数据IP地址IP地址:指互联网协议地址(InternetProtocolAddress),俗称IP。IP地址用来给一个网络中的计算机设备
- 从零搭建php环境
文艺の张
php8lnmpcentos7mysql8
前言:开发人员要一定时间段是需要接触服务器知识,比如搭建自己语言或者项目运行的环境,定时脚本,监控系统等,该系列文章即为php-web应用的环境搭建教程。一、目标环境系统:centos8.2后端语言:PHP8.0.0数据库:mysql8web服务器:openresty缓存:redis扩展:swoole,phalcon二、准备工作1、centos7的服务器,我这里是阿里云ECS2、将各种需要安装的软
- openoffice实现word文档转pdf,并实现预览功能
qq_38293154
学习经验总结java
之前写的一篇文件转pdf,页面实现预览功能,访问项目外的静态资源解决方法很不幸的失败了,原因是本地服务器使用的是tomcat,可以很方便的通过设置虚拟路径实现页面对本地文件的访问,但是正式服务器使用的是websphere,设置虚拟路径的方式及其复杂(服务器知识不够),所以采用了代码的方式实现预览,方法如下:pom.xml引入相关依赖org.jodconverterjodconverter-loca
- 做SEO需要掌握哪些核心技术
大宝SEO
每一个像我咨询SEO培训的学员都问同一个问题,做SEO需要掌握哪些技术,SEO分为专职SEO跟兼职SEO,无技术也能做SEO,我认为掌握更多的技术是提高SEO的基本。做SEO优化不像做数学加减法,更像是文章写作,没有固定的套路。理想中的SEO需掌握建站知识,代码开发知识,服务器知识掌握等。假设是专职SEO,只懂优化,网站代码需修改,不懂程序操作,此时需要向身边懂程序的朋友咨询,这样一去一来,耗费的
- seo需要掌握哪些技术
qq_42505682
无技术也能做seo,掌握更多的技术能提升做好seo的概率。做seo优化不像做数学加减法,更像是文章写作,没有固定的套路,多种方法都能达成既定目标。理想状态下,将seo以及周边技术如建站知识,部分代码知识,服务器知识掌握到,能明显提升seo效率。假设是专职seo,只懂优化,网站代码需修改,得联系程序员操作,一去一来,耗费的就是时间。笔者有优化一个网站,程序是单独开发的非大众类建站程序,平常的一个代码
- seo需要掌握的技术
c3212254
seo
没有技术也能做seo,但是掌握更多的技术能提升做好seo的概率。将seo以及周边技术如建站知识,部分代码知识,服务器知识掌握到,能明显提升seo效率。作为seo老司机,需要掌握哪些与seo密切相关的技术呢?掌握前端代码知识,即HTML,DIV+CSS,JavaScript。熟悉大众类开发语言如PHP。了解通用服务器如apache,nginx,IIS。熟练使用普及率较高的建站程序如织梦cms,wor
- java短路运算符和逻辑运算符的区别
3213213333332132
java基础
/*
* 逻辑运算符——不论是什么条件都要执行左右两边代码
* 短路运算符——我认为在底层就是利用物理电路的“并联”和“串联”实现的
* 原理很简单,并联电路代表短路或(||),串联电路代表短路与(&&)。
*
* 并联电路两个开关只要有一个开关闭合,电路就会通。
* 类似于短路或(||),只要有其中一个为true(开关闭合)是
- Java异常那些不得不说的事
白糖_
javaexception
一、在finally块中做数据回收操作
比如数据库连接都是很宝贵的,所以最好在finally中关闭连接。
JDBCAgent jdbc = new JDBCAgent();
try{
jdbc.excute("select * from ctp_log");
}catch(SQLException e){
...
}finally{
jdbc.close();
- utf-8与utf-8(无BOM)的区别
dcj3sjt126com
PHP
BOM——Byte Order Mark,就是字节序标记 在UCS 编码中有一个叫做"ZERO WIDTH NO-BREAK SPACE"的字符,它的编码是FEFF。而FFFE在UCS中是不存在的字符,所以不应该出现在实际传输中。UCS规范建议我们在传输字节流前,先传输 字符"ZERO WIDTH NO-BREAK SPACE"。这样如
- JAVA Annotation之定义篇
周凡杨
java注解annotation入门注释
Annotation: 译为注释或注解
An annotation, in the Java computer programming language, is a form of syntactic metadata that can be added to Java source code. Classes, methods, variables, pa
- tomcat的多域名、虚拟主机配置
g21121
tomcat
众所周知apache可以配置多域名和虚拟主机,而且配置起来比较简单,但是项目用到的是tomcat,配来配去总是不成功。查了些资料才总算可以,下面就跟大家分享下经验。
很多朋友搜索的内容基本是告诉我们这么配置:
在Engine标签下增面积Host标签,如下:
<Host name="www.site1.com" appBase="webapps"
- Linux SSH 错误解析(Capistrano 的cap 访问错误 Permission )
510888780
linuxcapistrano
1.ssh -v
[email protected] 出现
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
错误
运行状况如下:
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuratio
- log4j的用法
Harry642
javalog4j
一、前言: log4j 是一个开放源码项目,是广泛使用的以Java编写的日志记录包。由于log4j出色的表现, 当时在log4j完成时,log4j开发组织曾建议sun在jdk1.4中用log4j取代jdk1.4 的日志工具类,但当时jdk1.4已接近完成,所以sun拒绝使用log4j,当在java开发中
- mysql、sqlserver、oracle分页,java分页统一接口实现
aijuans
oraclejave
定义:pageStart 起始页,pageEnd 终止页,pageSize页面容量
oracle分页:
select * from ( select mytable.*,rownum num from (实际传的SQL) where rownum<=pageEnd) where num>=pageStart
sqlServer分页:
 
- Hessian 简单例子
antlove
javaWebservicehessian
hello.hessian.MyCar.java
package hessian.pojo;
import java.io.Serializable;
public class MyCar implements Serializable {
private static final long serialVersionUID = 473690540190845543
- 数据库对象的同义词和序列
百合不是茶
sql序列同义词ORACLE权限
回顾简单的数据库权限等命令;
解锁用户和锁定用户
alter user scott account lock/unlock;
//system下查看系统中的用户
select * dba_users;
//创建用户名和密码
create user wj identified by wj;
identified by
//授予连接权和建表权
grant connect to
- 使用Powermock和mockito测试静态方法
bijian1013
持续集成单元测试mockitoPowermock
实例:
package com.bijian.study;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
import or
- 精通Oracle10编程SQL(6)访问ORACLE
bijian1013
oracle数据库plsql
/*
*访问ORACLE
*/
--检索单行数据
--使用标量变量接收数据
DECLARE
v_ename emp.ename%TYPE;
v_sal emp.sal%TYPE;
BEGIN
select ename,sal into v_ename,v_sal
from emp where empno=&no;
dbms_output.pu
- 【Nginx四】Nginx作为HTTP负载均衡服务器
bit1129
nginx
Nginx的另一个常用的功能是作为负载均衡服务器。一个典型的web应用系统,通过负载均衡服务器,可以使得应用有多台后端服务器来响应客户端的请求。一个应用配置多台后端服务器,可以带来很多好处:
负载均衡的好处
增加可用资源
增加吞吐量
加快响应速度,降低延时
出错的重试验机制
Nginx主要支持三种均衡算法:
round-robin
l
- jquery-validation备忘
白糖_
jquerycssF#Firebug
留点学习jquery validation总结的代码:
function checkForm(){
validator = $("#commentForm").validate({// #formId为需要进行验证的表单ID
errorElement :"span",// 使用"div"标签标记错误, 默认:&
- solr限制admin界面访问(端口限制和http授权限制)
ronin47
限定Ip访问
solr的管理界面可以帮助我们做很多事情,但是把solr程序放到公网之后就要限制对admin的访问了。
可以通过tomcat的http基本授权来做限制,也可以通过iptables防火墙来限制。
我们先看如何通过tomcat配置http授权限制。
第一步: 在tomcat的conf/tomcat-users.xml文件中添加管理用户,比如:
<userusername="ad
- 多线程-用JAVA写一个多线程程序,写四个线程,其中二个对一个变量加1,另外二个对一个变量减1
bylijinnan
java多线程
public class IncDecThread {
private int j=10;
/*
* 题目:用JAVA写一个多线程程序,写四个线程,其中二个对一个变量加1,另外二个对一个变量减1
* 两个问题:
* 1、线程同步--synchronized
* 2、线程之间如何共享同一个j变量--内部类
*/
public static
- 买房历程
cfyme
2015-06-21: 万科未来城,看房子
2015-06-26: 办理贷款手续,贷款73万,贷款利率5.65=5.3675
2015-06-27: 房子首付,签完合同
2015-06-28,央行宣布降息 0.25,就2天的时间差啊,没赶上。
首付,老婆找他的小姐妹接了5万,另外几个朋友借了1-
- [军事与科技]制造大型太空战舰的前奏
comsci
制造
天气热了........空调和电扇要准备好..........
最近,世界形势日趋复杂化,战争的阴影开始覆盖全世界..........
所以,我们不得不关
- dateformat
dai_lm
DateFormat
"Symbol Meaning Presentation Ex."
"------ ------- ------------ ----"
"G era designator (Text) AD"
"y year
- Hadoop如何实现关联计算
datamachine
mapreducehadoop关联计算
选择Hadoop,低成本和高扩展性是主要原因,但但它的开发效率实在无法让人满意。
以关联计算为例。
假设:HDFS上有2个文件,分别是客户信息和订单信息,customerID是它们之间的关联字段。如何进行关联计算,以便将客户名称添加到订单列表中?
&nbs
- 用户模型中修改用户信息时,密码是如何处理的
dcj3sjt126com
yii
当我添加或修改用户记录的时候对于处理确认密码我遇到了一些麻烦,所有我想分享一下我是怎么处理的。
场景是使用的基本的那些(系统自带),你需要有一个数据表(user)并且表中有一个密码字段(password),它使用 sha1、md5或其他加密方式加密用户密码。
面是它的工作流程: 当创建用户的时候密码需要加密并且保存,但当修改用户记录时如果使用同样的场景我们最终就会把用户加密过的密码再次加密,这
- 中文 iOS/Mac 开发博客列表
dcj3sjt126com
Blog
本博客列表会不断更新维护,如果有推荐的博客,请到此处提交博客信息。
本博客列表涉及的文章内容支持 定制化Google搜索,特别感谢 JeOam 提供并帮助更新。
本博客列表也提供同步更新的OPML文件(下载OPML文件),可供导入到例如feedly等第三方定阅工具中,特别感谢 lcepy 提供自动转换脚本。这里有导入教程。
- js去除空格,去除左右两端的空格
蕃薯耀
去除左右两端的空格js去掉所有空格js去除空格
js去除空格,去除左右两端的空格
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>&g
- SpringMVC4零配置--web.xml
hanqunfeng
springmvc4
servlet3.0+规范后,允许servlet,filter,listener不必声明在web.xml中,而是以硬编码的方式存在,实现容器的零配置。
ServletContainerInitializer:启动容器时负责加载相关配置
package javax.servlet;
import java.util.Set;
public interface ServletContainer
- 《开源框架那些事儿21》:巧借力与借巧力
j2eetop
框架UI
同样做前端UI,为什么有人花了一点力气,就可以做好?而有的人费尽全力,仍然错误百出?我们可以先看看几个故事。
故事1:巧借力,乌鸦也可以吃核桃
有一个盛产核桃的村子,每年秋末冬初,成群的乌鸦总会来到这里,到果园里捡拾那些被果农们遗落的核桃。
核桃仁虽然美味,但是外壳那么坚硬,乌鸦怎么才能吃到呢?原来乌鸦先把核桃叼起,然后飞到高高的树枝上,再将核桃摔下去,核桃落到坚硬的地面上,被撞破了,于是,
- JQuery EasyUI 验证扩展
可怜的猫
jqueryeasyui验证
最近项目中用到了前端框架-- EasyUI,在做校验的时候会涉及到很多需要自定义的内容,现把常用的验证方式总结出来,留待后用。
以下内容只需要在公用js中添加即可。
使用类似于如下:
<input class="easyui-textbox" name="mobile" id="mobile&
- 架构师之httpurlconnection----------读取和发送(流读取效率通用类)
nannan408
1.前言.
如题.
2.代码.
/*
* Copyright (c) 2015, S.F. Express Inc. All rights reserved.
*/
package com.test.test.test.send;
import java.io.IOException;
import java.io.InputStream
- Jquery性能优化
r361251
JavaScriptjquery
一、注意定义jQuery变量的时候添加var关键字
这个不仅仅是jQuery,所有javascript开发过程中,都需要注意,请一定不要定义成如下:
$loading = $('#loading'); //这个是全局定义,不知道哪里位置倒霉引用了相同的变量名,就会郁闷至死的
二、请使用一个var来定义变量
如果你使用多个变量的话,请如下方式定义:
. 代码如下:
var page
- 在eclipse项目中使用maven管理依赖
tjj006
eclipsemaven
概览:
如何导入maven项目至eclipse中
建立自有Maven Java类库服务器
建立符合maven代码库标准的自定义类库
Maven在管理Java类库方面有巨大的优势,像白衣所说就是非常“环保”。
我们平时用IDE开发都是把所需要的类库一股脑的全丢到项目目录下,然后全部添加到ide的构建路径中,如果用了SVN/CVS,这样会很容易就 把
- 中国天气网省市级联页面
x125858805
级联
1、页面及级联js
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
&l