- python基于django/flask的NBA球员大数据分析与可视化python+java+node.js
QQ_511008285
pythondjangoflaskjavaspringboot数据分析
前端开发框架:vue.js数据库mysql版本不限后端语言框架支持:1java(SSM/springboot)-idea/eclipse2.Nodejs+Vue.js-vscode3.python(flask/django)--pycharm/vscode4.php(thinkphp/laravel)-hbuilderx数据库工具:Navicat/SQLyog等都可以本文针对NBA球员的大数据进行
- Java基于spring boot的国产电影数据分析与可视化python+java+node.js
QQ_511008285
javaspringboot数据分析pythondjangovue.jsflask
前端开发框架:vue.js数据库mysql版本不限后端语言框架支持:1java(SSM/springboot)-idea/eclipse2.Nodejs+Vue.js-vscode3.python(flask/django)--pycharm/vscode4.php(thinkphp/laravel)-hbuilderx数据库工具:Navicat/SQLyog等都可以 该系统使用进行大数据处理和
- 【Redis】Redis缓存
1886i
JavaRedis缓存redis数据库
目录一、缓存1、概念2、作用3、缺点二、缓存模型三、缓存的更新1、更新策略2、主动更新的三种模式1.cacheasidepattern2.read/writethroughpattern3.writebehindcachingpattern3、线程安全问题1.缓存删除还是更新缓存2.先删除缓存后操作数据库3.先操作数据库后删除缓存4.如何保证缓存与数据库操作同时成功或失败4、最佳选择一、缓存1、概
- Livewire Flash 教程
巫文钧Jill
LivewireFlash教程livewire-flashALaravelLivewire-basedFlashmessagecomponent项目地址:https://gitcode.com/gh_mirrors/li/livewire-flash项目介绍LivewireFlash是一个专为Laravel框架设计的Livewire组件,它提供了简单易用的方式来添加和显示flashed(闪烁)消息
- Redis7_16 高阶篇 第七章 Redis中的缓存预热/缓存雪崩/缓存击穿/缓存穿透问题详解
孤尘Java
Redis从小白到精通缓存
大家好!欢迎来到“孤尘”的Java世界!️感谢认可!事不宜迟,一起尽情地畅享编程之旅吧!目录面试题(文末有答案)概念(是什么?)缓存预热缓存雪崩缓存击穿缓存穿透缓存预热定义怎么做?实现缓存雪崩定义引起缓存雪崩的原因规避/解决方案1.Redis中key设置为永不过期或过期时间错开2.Redis缓存集群实现高可用3.多缓存结合预防雪崩4.服务降级5.使用云服务缓存击穿定义引起缓存击穿的原因规避/解决方
- 缓存预热/雪崩/穿透/击穿
当归. z Z
Redis缓存
1.缓存预热预先将MySQL中的数据同步至Redis的过程2.缓存雪崩Redis主机出现故障,或有大量的key同时过期大面积失效导致Redis不可用Redis中key设置为永不过期,或者过期时间错开Redis缓存集群实现高可用多缓存结合预防雪崩服务降级3.缓存穿透每次请求数据Redis上都没有,导致MySQL压力增大,此时Redis形同摆设空对象缓存或者缺省值回写增强如果发生了缓存穿透,我们可以针
- Redis 缓存深度解析:穿透、击穿、雪崩与预热的全面解读
加勒比海涛
Redis入门实践缓存redis数据库
Redis缓存深度解析:穿透、击穿、雪崩与预热的全面解读一.什么是缓存?二.使用Redis作为缓存三.缓存的更新策略3.1定期生成3.2实时生成四.缓存预热、缓存穿透、缓存雪崩、缓存击穿4.1缓存预热4.2缓存穿透4.3缓存雪崩4.4缓存击穿Hello,大家好,这个专栏给大家带来的是Redis系列!本篇文章给大家讲解的是Redis的缓存.在Redis缓存系统中,缓存穿透、缓存击穿、缓存雪崩和缓存预
- Redis缓存机制(详解)
就是有缘人
redis缓存数据库
1.Redis是什么?*redis是*一个运行在内存上的key-value存储系统。是NoSQL数据库之一2.缓存穿透,缓存击穿,缓存雪崩/**缓存穿透*/它会先查询Redis,Redis没有会查询数据库,数据库也没有这就是缓存穿透业界主流解决方案:布隆过滤器布隆过滤器的使用步骤布隆过滤器的使用步骤:1.针对现有所有数据,生成布隆过滤器2.在业务逻辑层,判断Redis之前先检查这个id是否在布隆过
- PHP与出库单打印预览,包含下载与打印功能
assasinSteven
PHP框架PHP打印预览
咱们的开发语言还是用框架:laravel5。应用场景出库单打印出三色单,这个很普遍,以下用PHP来实现出库单的打印预览,主要用到tcpdf插件,整合到laravel项目中。tcpdf插件可以到官网下载最新的版本。我这里用的是最新版本,这里提供下载插件链接:链接:https://pan.baidu.com/s/1Mn8ho_AxyJfWR7YUa0wzhQ提取码:9doa三色单截图:插件截图:开发功
- 用Docker为Laravel5.4部署本地开发环境:php7.1+redis+mysql+nginx
咸鱼真咸
dockerredismysqlphplaravel
记一次用Docker为Laravel5.4部署本地开发环境:php7.1+redis+mysql+nginx首先我们在官方镜像php:7.1-fpm-alpine的基础上安装pdo_mysql和redis扩展,以及composer#使用官方的PHP7.1FPMAlpine镜像作为基础镜像FROMphp:7.1-fpm-alpine#更新软件包索引RUNapkupdate#安装必要的依赖包RUNap
- Github 2024-09-08 php开源项目日报 Top10
老孙正经胡说
githubphp开源Github趋势分析开源项目PythonGolang
根据GithubTrendings的统计,今日(2024-09-08统计)共有10个项目上榜。根据开发语言中项目的数量,汇总情况如下:开发语言项目数量PHP项目10TypeScript项目1JavaScript项目1Laravel:以优雅语法简化Web开发创建周期:4028天开发语言:PHP协议类型:MITLicenseStar数量:30824个Fork数量:10526次关注人数:30824人贡献
- Laravel Prometheus Exporter 教程
郁俪晟Gertrude
LaravelPrometheusExporter教程laravel-prometheus-exporterAprometheusexporterforLaravel项目地址:https://gitcode.com/gh_mirrors/la/laravel-prometheus-exporter项目介绍LaravelPrometheusExporter是一个专为Laravel框架设计的开源工具,
- Github 2024-05-19 php开源项目日报 Top10
老孙正经胡说
githubphp开源Github趋势分析开源项目PythonGolang
根据GithubTrendings的统计,今日(2024-05-19统计)共有10个项目上榜。根据开发语言中项目的数量,汇总情况如下:开发语言项目数量PHP项目10C项目1Laravel:以优雅语法简化Web开发创建周期:4028天开发语言:PHP协议类型:MITLicenseStar数量:30824个Fork数量:10526次关注人数:30824人贡献人数:383人OpenIssues数量:27
- Github 2024-06-23php开源项目日报Top10
老孙正经胡说
github开源Github趋势分析开源项目PythonGolang
根据GithubTrendings的统计,今日(2024-06-23统计)共有10个项目上榜。根据开发语言中项目的数量,汇总情况如下:开发语言项目数量PHP项目10JavaScript项目1Laravel:以优雅语法简化Web开发创建周期:4028天开发语言:PHP协议类型:MITLicenseStar数量:30824个Fork数量:10526次关注人数:30824人贡献人数:383人OpenIs
- .NET Core —如何使用Redis缓存提高应用程序性能
weixin_26737625
redisjava缓存pythonmysql
Redisisaverypowerfuldistributedcachingengineandoffersverylowlatencykey-valuepaircaching.Ifusedintherightbusinesscontext,Rediscansignificantlyboostapplicationperformance.Inthisarticlewewilldoawalkthrou
- 推荐开源项目:市场平台解决方案 - Sectheater Marketplace
虞熠蝶
推荐开源项目:市场平台解决方案-SectheaterMarketplacemarketplaceThefluentlaravelmarketplace项目地址:https://gitcode.com/gh_mirrors/marke/marketplace在快速发展的电商领域,拥有一个灵活且功能全面的市场系统是每个开发者和企业梦寐以求的。今天,我们来探索一款基于Laravel构建的强大开源项目——
- 习惯在PHP使用Laravel,转go语言之后,也可以简单又高效的开发高性能的web服务
zhuyasen
laravelgolangginweb
如果您是一名PHP开发者,应该了解Laravel,它是PHP中最流行的web开发框架之一,它提供了强大的功能和灵活性,可以帮助开发者快速构建高质量的web应用程序。当你将目光转向Go语言时,你可能在寻找一种同样简单而高效的方式来进行Web服务开发,那么sponge值得推荐的工具之一。你可能会担心Go语言的开发web服务效率会比PHP低,其实完全不必担心,Go语言的语法很简单,非常容易掌握,况且Go
- CoreUI免费Laravel管理模板安装与使用指南
皮静滢Annette
CoreUI免费Laravel管理模板安装与使用指南coreui-free-laravel-admin-templateCoreUIFreeLaravelBootstrapAdminTemplate项目地址:https://gitcode.com/gh_mirrors/co/coreui-free-laravel-admin-template1.项目目录结构及介绍CoreUI免费Laravel管理
- 你知道Laravel 用到了哪些设计模式 ?都是如何用的
Remember to smile
设计模式PHPlaravel
1:工厂模式例如:Auth::user()此处Auth这个类就是工厂中的方法,Auth是注册树中的别名。好处:类似于函数的封装,使对象有一个统一的生成(实例化)入口。当我们对象所对应的类的类名发生变化的时候,我们只需要改一下工厂类类里面的实例化方法即可。2:单例模式好处:对象不可外部实例化并且只能实例化一次,节省资源。实现方式:privatestatic$ins=null;//设置私有的属性pri
- laravel SQLSTATE[HY000] [2002] Connection refused
HaRun
新安装的laravel框架,填好数据库信息,准备提交数据,突然来了个错误SQLSTATE[HY000][2002]Connectionrefused这是怎么回事?网上很多解决答案是把DB_HOST=localhost这样设置,但是我的如果mysql服务器本来就是远程服务器呢?后来经过一段时间的研究发现不是这样的,最简单正确的方式是:终端输入命令:phpartisanconfig:cache因为引用
- Redis缓存穿透、缓存击穿、缓存雪崩详解及解决方案
CopyLower
Java学习数据库缓存redis数据库
引言缓存系统如Redis在提高应用响应速度和减轻数据库负担中扮演了至关重要的角色。然而,在使用过程中可能遇到缓存穿透、缓存击穿和缓存雪崩等问题,这些问题不仅影响系统性能,还可能导致系统瘫痪。本文深入探讨这三个问题的成因、影响,并提供有效的解决策略,最后通过代码示例展示如何在实际项目中实施这些策略。第一部分:问题定义与影响1.缓存穿透定义:请求查询不存在的数据,由于缓存未命中导致每次请求都要访问数据
- Laravel小程序学习日记2018-07-10
Purson
有那么一个星期没有写日记了,因为答应了Sheldon15号前完成小程序的学习,很多东西都来不及总结,但是由于有vuejs的基础,wepy的使用是比较清楚的。今天为什么记录主要有1个原因,就是我在laravel小程序课程里面提交的修改被合并了,这次不是一两个错字那么简单,是一个小方法,这里截图庆祝一下。投稿小记录在wepy里面异步函数更新数据,一定要在后面加个this.$apply()
- 【springboot开发】Redis缓存
idiotyi
springboot开发redis缓存springboot
目录1.Redis简介1.1数据类型1.2redis的使用2.Springboot整合Reids2.1添加依赖2.2修改配置2.3开启缓存2.4Config设置2.5使用redis缓存2.6redisrepository方法2.6.1修改config文件2.6.2修改实体类2.6.3repository使用redis2.7keyGenerator2.7.1自定义规则2.7.1使用自定义规则前言:每
- lararvel-shop 创建应用
胡萝卜的兔
phplaravelphp服务器前端
创建应用composer加速composerconfig-grepo.packagistcomposerhttps://packagist.laravel-china.org创建Laravel-Shop项目使用最新框架composercreate-projectlaravel/laravellaravel-shopCreatinga"laravel/laravel"projectat"./lara
- php laravel restful api,laravel怎么请求第三方restful api接口?
weixin_39855796
phplaravelrestfulapi
这么强大的框架,开发文档里居然没有告诉如何用http请求访问第三方api。目前百度出来的几个方案:1。这个方案会报NotFoundHttpException,大致调试了一下,好像是输入的路由不合法,也没有文档说一下这2个方法如何使用。。$req=Request::create('http://localhost:1920/api/User/GetUser','GET');$resp=Route::
- laravel 几种第三方接口
Lisa_Miss
PHPlaravel
1、微信和支付宝支付接口:用Yansongda扩展包,这个还蛮好用的,对于都会composer的小伙伴,安装也特简单(composerrequireyansongda/pay-vvv),官方文档(https://pay.yanda.net.cn/docs/2.x/overview)写得也有条理,清晰,就算不会接支付接口的人,也一看就会了几成,不过官方只支持RSA2加密,因此各位小伙伴注意咯。然后把
- Laravel 用户授权 policy
CaptainRoy
应用场景:比如一个用户创建一篇文章,或者对文章进行修改,这个时候就要对其进行认证,是否有权进行修改或创建.用户表:users表id;文章表:posts表对应user_id1.phpartisanmake:policyPostPolicy生成策略,生成的策略将放置在app/Policies目录2.在PostPolicy里面添加需要增加的权限,比如用户修改,删除权限,判断当前用户的id和要修改的文章用
- 心跳机制大揭秘:Redis、数据库与 PING 命令的多面演绎
coding侠客
java开发语言微服务rediseurekaping++springboot
在日常的开发工作中,大家肯定都接触过心跳机制。心跳机制被广泛应用于多种场景,以确保服务的高可用性和稳定性。比如Eureka的服务续约,Redis中的哨兵节点,Kubernetes的存活探针等等。今天我们来探究下心跳机制具体是如何实现的。本文主要介绍三种实现方式,第一种依赖Redis作为缓存,第二种方式从数据库层面入手,第三种方式使用命令。首先来看第一种方式。一、基于Redis缓存每当客户端通过AP
- Redis缓存穿透/雪崩/击穿
凌晨去看海
缓存redisjava
目录一缓存穿透1.什么是缓存穿透2.解决方法①在请求api接口时对数据进行非法校验②在redis中对没有的数据作个标记③布隆过滤器二缓存雪崩1.什么是缓存雪崩2.解决方法三缓存击穿1.什么是缓存击穿2.解决方法一缓存穿透1.什么是缓存穿透我们使用redis请求数据的时候,正常流程是先去redis缓存中查找,如果查到了数据,那么就直接返回,不需要再去查数据库,如果没有查到,就需要去查询数据库。所以缓
- 【Redis】什么是Redis缓存 雪崩、穿透、击穿?(一篇文章就够了)
Mxin5
Redis缓存redis数据库
目录什么是Redis?Redis的正常存储流程?什么是Redis缓存雪崩?缓存雪崩缓存预热缓存失效时间的随机性什么是Redis缓存穿透?缓存穿透缓存空对象BloomFilter(布隆过滤器)什么是Redis缓存击穿?缓存击穿互斥锁逻辑过期时间什么是Redis?Redis:是一种高性能开源的基于内存的,采用键值对存储的非关系型数据库,不保证数据的ACID特性【事务一旦提交,都不会进行回滚】采用键值对
- jvm调优总结(从基本概念 到 深度优化)
oloz
javajvmjdk虚拟机应用服务器
JVM参数详解:http://www.cnblogs.com/redcreen/archive/2011/05/04/2037057.html
Java虚拟机中,数据类型可以分为两类:基本类型和引用类型。基本类型的变量保存原始值,即:他代表的值就是数值本身;而引用类型的变量保存引用值。“引用值”代表了某个对象的引用,而不是对象本身,对象本身存放在这个引用值所表示的地址的位置。
- 【Scala十六】Scala核心十:柯里化函数
bit1129
scala
本篇文章重点说明什么是函数柯里化,这个语法现象的背后动机是什么,有什么样的应用场景,以及与部分应用函数(Partial Applied Function)之间的联系 1. 什么是柯里化函数
A way to write functions with multiple parameter lists. For instance
def f(x: Int)(y: Int) is a
- HashMap
dalan_123
java
HashMap在java中对很多人来说都是熟的;基于hash表的map接口的非同步实现。允许使用null和null键;同时不能保证元素的顺序;也就是从来都不保证其中的元素的顺序恒久不变。
1、数据结构
在java中,最基本的数据结构无外乎:数组 和 引用(指针),所有的数据结构都可以用这两个来构造,HashMap也不例外,归根到底HashMap就是一个链表散列的数据
- Java Swing如何实时刷新JTextArea,以显示刚才加append的内容
周凡杨
java更新swingJTextArea
在代码中执行完textArea.append("message")后,如果你想让这个更新立刻显示在界面上而不是等swing的主线程返回后刷新,我们一般会在该语句后调用textArea.invalidate()和textArea.repaint()。
问题是这个方法并不能有任何效果,textArea的内容没有任何变化,这或许是swing的一个bug,有一个笨拙的办法可以实现
- servlet或struts的Action处理ajax请求
g21121
servlet
其实处理ajax的请求非常简单,直接看代码就行了:
//如果用的是struts
//HttpServletResponse response = ServletActionContext.getResponse();
// 设置输出为文字流
response.setContentType("text/plain");
// 设置字符集
res
- FineReport的公式编辑框的语法简介
老A不折腾
finereport公式总结
FINEREPORT用到公式的地方非常多,单元格(以=开头的便被解析为公式),条件显示,数据字典,报表填报属性值定义,图表标题,轴定义,页眉页脚,甚至单元格的其他属性中的鼠标悬浮提示内容都可以写公式。
简单的说下自己感觉的公式要注意的几个地方:
1.if语句语法刚接触感觉比较奇怪,if(条件式子,值1,值2),if可以嵌套,if(条件式子1,值1,if(条件式子2,值2,值3)
- linux mysql 数据库乱码的解决办法
墙头上一根草
linuxmysql数据库乱码
linux 上mysql数据库区分大小写的配置
lower_case_table_names=1 1-不区分大小写 0-区分大小写
修改/etc/my.cnf 具体的修改内容如下:
[client]
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/va
- 我的spring学习笔记6-ApplicationContext实例化的参数兼容思想
aijuans
Spring 3
ApplicationContext能读取多个Bean定义文件,方法是:
ApplicationContext appContext = new ClassPathXmlApplicationContext(
new String[]{“bean-config1.xml”,“bean-config2.xml”,“bean-config3.xml”,“bean-config4.xml
- mysql 基准测试之sysbench
annan211
基准测试mysql基准测试MySQL测试sysbench
1 执行如下命令,安装sysbench-0.5:
tar xzvf sysbench-0.5.tar.gz
cd sysbench-0.5
chmod +x autogen.sh
./autogen.sh
./configure --with-mysql --with-mysql-includes=/usr/local/mysql
- sql的复杂查询使用案列与技巧
百合不是茶
oraclesql函数数据分页合并查询
本片博客使用的数据库表是oracle中的scott用户表;
------------------- 自然连接查询
查询 smith 的上司(两种方法)
&
- 深入学习Thread类
bijian1013
javathread多线程java多线程
一. 线程的名字
下面来看一下Thread类的name属性,它的类型是String。它其实就是线程的名字。在Thread类中,有String getName()和void setName(String)两个方法用来设置和获取这个属性的值。
同时,Thr
- JSON串转换成Map以及如何转换到对应的数据类型
bijian1013
javafastjsonnet.sf.json
在实际开发中,难免会碰到JSON串转换成Map的情况,下面来看看这方面的实例。另外,由于fastjson只支持JDK1.5及以上版本,因此在JDK1.4的项目中可以采用net.sf.json来处理。
一.fastjson实例
JsonUtil.java
package com.study;
impor
- 【RPC框架HttpInvoker一】HttpInvoker:Spring自带RPC框架
bit1129
spring
HttpInvoker是Spring原生的RPC调用框架,HttpInvoker同Burlap和Hessian一样,提供了一致的服务Exporter以及客户端的服务代理工厂Bean,这篇文章主要是复制粘贴了Hessian与Spring集成一文,【RPC框架Hessian四】Hessian与Spring集成
在
【RPC框架Hessian二】Hessian 对象序列化和反序列化一文中
- 【Mahout二】基于Mahout CBayes算法的20newsgroup的脚本分析
bit1129
Mahout
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information re
- nginx三种获取用户真实ip的方法
ronin47
随着nginx的迅速崛起,越来越多公司将apache更换成nginx. 同时也越来越多人使用nginx作为负载均衡, 并且代理前面可能还加上了CDN加速,但是随之也遇到一个问题:nginx如何获取用户的真实IP地址,如果后端是apache,请跳转到<apache获取用户真实IP地址>,如果是后端真实服务器是nginx,那么继续往下看。
实例环境: 用户IP 120.22.11.11
- java-判断二叉树是不是平衡
bylijinnan
java
参考了
http://zhedahht.blog.163.com/blog/static/25411174201142733927831/
但是用java来实现有一个问题。
由于Java无法像C那样“传递参数的地址,函数返回时能得到参数的值”,唯有新建一个辅助类:AuxClass
import ljn.help.*;
public class BalancedBTree {
- BeanUtils.copyProperties VS PropertyUtils.copyProperties
诸葛不亮
PropertyUtilsBeanUtils
BeanUtils.copyProperties VS PropertyUtils.copyProperties
作为两个bean属性copy的工具类,他们被广泛使用,同时也很容易误用,给人造成困然;比如:昨天发现同事在使用BeanUtils.copyProperties copy有integer类型属性的bean时,没有考虑到会将null转换为0,而后面的业
- [金融与信息安全]最简单的数据结构最安全
comsci
数据结构
现在最流行的数据库的数据存储文件都具有复杂的文件头格式,用操作系统的记事本软件是无法正常浏览的,这样的情况会有什么问题呢?
从信息安全的角度来看,如果我们数据库系统仅仅把这种格式的数据文件做异地备份,如果相同版本的所有数据库管理系统都同时被攻击,那么
- vi区段删除
Cwind
linuxvi区段删除
区段删除是编辑和分析一些冗长的配置文件或日志文件时比较常用的操作。简记下vi区段删除要点备忘。
vi概述
引文中并未将末行模式单独列为一种模式。单不单列并不重要,能区分命令模式与末行模式即可。
vi区段删除步骤:
1. 在末行模式下使用:set nu显示行号
非必须,随光标移动vi右下角也会显示行号,能够正确找到并记录删除开始行
- 清除tomcat缓存的方法总结
dashuaifu
tomcat缓存
用tomcat容器,大家可能会发现这样的问题,修改jsp文件后,但用IE打开 依然是以前的Jsp的页面。
出现这种现象的原因主要是tomcat缓存的原因。
解决办法如下:
在jsp文件头加上
<meta http-equiv="Expires" content="0"> <meta http-equiv="kiben&qu
- 不要盲目的在项目中使用LESS CSS
dcj3sjt126com
Webless
如果你还不知道LESS CSS是什么东西,可以看一下这篇文章,是我一朋友写给新人看的《CSS——LESS》
不可否认,LESS CSS是个强大的工具,它弥补了css没有变量、无法运算等一些“先天缺陷”,但它似乎给我一种错觉,就是为了功能而实现功能。
比如它的引用功能
?
.rounded_corners{
- [入门]更上一层楼
dcj3sjt126com
PHPyii2
更上一层楼
通篇阅读完整个“入门”部分,你就完成了一个完整 Yii 应用的创建。在此过程中你学到了如何实现一些常用功能,例如通过 HTML 表单从用户那获取数据,从数据库中获取数据并以分页形式显示。你还学到了如何通过 Gii 去自动生成代码。使用 Gii 生成代码把 Web 开发中多数繁杂的过程转化为仅仅填写几个表单就行。
本章将介绍一些有助于更好使用 Yii 的资源:
- Apache HttpClient使用详解
eksliang
httpclienthttp协议
Http协议的重要性相信不用我多说了,HttpClient相比传统JDK自带的URLConnection,增加了易用性和灵活性(具体区别,日后我们再讨论),它不仅是客户端发送Http请求变得容易,而且也方便了开发人员测试接口(基于Http协议的),即提高了开发的效率,也方便提高代码的健壮性。因此熟练掌握HttpClient是很重要的必修内容,掌握HttpClient后,相信对于Http协议的了解会
- zxing二维码扫描功能
gundumw100
androidzxing
经常要用到二维码扫描功能
现给出示例代码
import com.google.zxing.WriterException;
import com.zxing.activity.CaptureActivity;
import com.zxing.encoding.EncodingHandler;
import android.app.Activity;
import an
- 纯HTML+CSS带说明的黄色导航菜单
ini
htmlWebhtml5csshovertree
HoverTree带说明的CSS菜单:纯HTML+CSS结构链接带说明的黄色导航
在线体验效果:http://hovertree.com/texiao/css/1.htm代码如下,保存到HTML文件可以看到效果:
<!DOCTYPE html >
<html >
<head>
<title>HoverTree
- fastjson初始化对性能的影响
kane_xie
fastjson序列化
之前在项目中序列化是用thrift,性能一般,而且需要用编译器生成新的类,在序列化和反序列化的时候感觉很繁琐,因此想转到json阵营。对比了jackson,gson等框架之后,决定用fastjson,为什么呢,因为看名字感觉很快。。。
网上的说法:
fastjson 是一个性能很好的 Java 语言实现的 JSON 解析器和生成器,来自阿里巴巴的工程师开发。
- 基于Mybatis封装的增删改查实现通用自动化sql
mengqingyu
DAO
1.基于map或javaBean的增删改查可实现不写dao接口和实现类以及xml,有效的提高开发速度。
2.支持自定义注解包括主键生成、列重复验证、列名、表名等
3.支持批量插入、批量更新、批量删除
<bean id="dynamicSqlSessionTemplate" class="com.mqy.mybatis.support.Dynamic
- js控制input输入框的方法封装(数字,中文,字母,浮点数等)
qifeifei
javascript js
在项目开发的时候,经常有一些输入框,控制输入的格式,而不是等输入好了再去检查格式,格式错了就报错,体验不好。 /** 数字,中文,字母,浮点数(+/-/.) 类型输入限制,只要在input标签上加上 jInput="number,chinese,alphabet,floating" 备注:floating属性只能单独用*/
funct
- java 计时器应用
tangqi609567707
javatimer
mport java.util.TimerTask; import java.util.Calendar; public class MyTask extends TimerTask { private static final int
- erlang输出调用栈信息
wudixiaotie
erlang
在erlang otp的开发中,如果调用第三方的应用,会有有些错误会不打印栈信息,因为有可能第三方应用会catch然后输出自己的错误信息,所以对排查bug有很大的阻碍,这样就要求我们自己打印调用的栈信息。用这个函数:erlang:process_display (self (), backtrace).需要注意这个函数只会输出到标准错误输出。
也可以用这个函数:erlang:get_s