- 2.2.6 通知类控件 Toast、Menu
常思行
本文例程下载:WillFlow_Toast、WillFlowMenu一、什么是Toast?Toast也被叫做吐司,是Android系统提供的一种非常好的提醒方式,在程序中可以使用它将一些短小的信息通知给用户,它有如下两个特点:Toast是没有焦点的Toast显示的时间有限过一定的时间就会自动消失所以一般来讲Toast的使用并不会影响我们的正常操作,并且它通常不会占用太大的屏幕空间,有着良好的用户体
- Android应用性能优化
轻口味
Android
Android手机由于其本身的后台机制和硬件特点,性能上一直被诟病,所以软件开发者对软件本身的性能优化就显得尤为重要;本文将对Android开发过程中性能优化的各个方面做一个回顾与总结。Cache优化ListView缓存:ListView中有一个回收器,Item滑出界面的时候View会回收到这里,需要显示新的Item的时候,就尽量重用回收器里面的View;每次在getView函数中inflate新
- 崩坏星穹铁道哪个角色值得培养 崩坏星穹铁道新手角色优先级教学
会飞滴鱼儿
崩坏星穹铁道新手角色培养攻略:哪些角色值得投资?在《崩坏星穹铁道》中,角色的强度和培养一直是玩家们关心的焦点。要想体验更爽快的游戏过程,选对角色至关重要。那么,哪些角色值得投资培养呢?本篇教学文章将针对新手玩家,从T0到T1强度的角色中为你做出详尽解析。游戏豹官网现在的手游平台很多,但是在游戏界有这么一个传说:“喜欢肝的玩家不如氪金玩家,氪金玩家不如内部福利玩家”,这就是游戏界可悲的生物链,很多平
- 说说莫兰迪色和中国色
o_delia
说起当季最流行的色系小仙女们一定如数家珍,什么雾霾蓝、燕麦色等等,其实你知道嘛?当季最流行的这些颜色皆是来自意大利画家莫兰迪,也就是所谓的“莫兰迪色系”。这个色系咋听上去有种云里雾里的感觉,其实“莫兰迪色系”是以意大利画家乔治·莫兰迪命名的,他是意大利著名的油画家。一生不曾结婚,人们都叫他僧侣画家。他的创作风格也非常鲜明,以瓶瓶罐罐居多,色系也很简单。图片发自App图片发自App图片发自App而最
- 红尘焉有忘机语,梦醒愿为无羡人
旧时约
一生至少该有一次,为了某个人而忘了自己,不求有结果,不求同行,不求曾经拥有,甚至不求你爱我,只求在我最美的年华里,遇到你。明月清风晓星尘,傲雪凌霜宋子琛。敛芳瑶琴金光散,泽芜洞箫蓝曦痕。君子如兰茶未满,旧识思追酒已温。红尘焉有忘机语,梦醒愿为无羡人。图片发自App那一世,人人叫你魏无羡,也有人叫你阿羡、魏公子,更多人叫你夷陵老祖。只有他,叫你:魏婴。“魏婴!”你在他那里,拥有专属的名。“魏婴,凝神
- 钙片
阿哈牧童
母亲的小蓝圆细胞癌似乎并不满足于被囿于左侧肺部的支气管,而吞噬了髋部的骨质以后,已经让她行走都出现了困难,添置了拐杖,她希望用自己的意志力与病魔抗争,因此迟迟不用,而轮椅更是上了灰一般,她说现在还没有到用那个的年纪呢,她哪里知道,无论是中山医院,还是省医,市医院或者州医院的检查结果,都已经是过滤了的,她到现在还认为自己是骨质疏松,原因是自己大意了,没有按照要求喝奶,吃钙片,而差不多年纪的父亲,由于
- 病毒式传播?游戏行业才是真正的鼻祖
0浩
图片发自App以前,一则广告可以引发病毒式传播,大家几乎都知道挖掘机技术哪家强,几乎都知道古天乐和张家辉代言的贪玩蓝月。现在,一篇文章可以引发病毒式传播,大家能看到的阅读量十万+的文章已不在少数。但游戏行业才是传播的鼻祖。一、游戏行业的暴利登录过苹果应用商店的人都知道现在手游是最赚钱的,根据数据显示,每年手机游戏的收入数额可达数百亿美元。再来看一组数据,来自旧金山的手游市场营销公司Swrve发布报
- 蓝花草
文森林木
我在这里工作了五个年头公司的东西南北公司的哪栋楼层有时我还要靠路牌加以确认我承认自己是个路痴但这并不意味着别人知道的更好三点一线的生活太紧张太明确了像是被绷紧的生活弓弦直直发射出去的箭只为了击中靶心没有时间没有空闲让自己身心放松认识容纳周遭的一切只是每年路过看见这些花它们的蓝让我迷醉让我难忘我苦于不知道它们的名字这几乎变成了心病问别人,他们也不懂还落得成了怪物“你还有心思关心花花草草”也许是强迫症
- 柿子红遍的季节
相宜人生
曾经与鹤山有约:“秋去冬来万物休,唯有柿树挂灯笼”的暮秋时节来鹤山踏秋赏秋摘柿话秋思,给劳累的心灵放个假,让万千思绪自由飞翔!今天半晌如约而至。沿着石板小路径直来到山脚下,顺着高低错落的大大小小方方圆圆的怪石蜿蜒盘旋而上,在高高的山岗觅了一块平整洁净的巨石坐下来。沐浴着暖暖的阳光和清风做伴和仙山私语。天空,是那么的湛蓝没有一丝的白云。如水,蓝的清澈蓝的透亮蓝的晴明在心田缓缓流淌,心醉了心净了心亮了
- 【621】幼儿园亲子阅读之《小蓝和小黄》
登登一君
我是昭君,我想记录我生活工作的点点滴滴,今天是我每日一篇文章的第621天。公众号搜索赵君可以查看最新文章。《小蓝和小黄》大部分的家长都看过,故事的诞生特别有戏剧性,当时是一位爷爷带着一个五岁的孙子,还有三岁的孙女坐火车,我们都知道三五岁的孩子是特别闹的时候,爷爷想让他们安静下来,拿出了自己讲故事的绝活。他随手从本杂志上撕下了几个不同颜色的纸块,把小颜色的纸块做成了故事的主角,然后就开始讲故事了。小
- 破解游戏app哪个好用 无限99999钻999999金币的游戏盒子排行榜
诸葛村夫123
2024游戏盒子网站排行榜大全随着数位科技的发展,2024年手游市场持续火爆,各种新开手游持续涌现。本文为广大手游爱好者带来巅峰推荐,总结五个最具实力的手游新服发布网站,为您提供最全面的游戏资讯以及专业的游戏攻略。▶无限99999钻999999金币的游戏盒子排行榜TOP1:游戏豹官网特点:内部特权游戏类型:多类型推荐日活跃人数:15万网址链接:www.ystt88.cn游戏介绍:游戏豹官网以快速获
- 钱二爷的闲话风波(2)
蓝江365
网络图片/钱二爷的闲话风波文/蓝江02钱海洋家就在爷爷家前边,离得不太远,步行也就五分多钟。敞敞亮亮的四间大瓦房,是三年前盖好的。盖房子总共花了二十万挂零,其中有十五万是爷爷资助的。即便这样,钱海洋的妈妈林秀美依然不满意:老爷子的家底儿厚着呢,立立整整拿出个二十万有多好,干嘛还这么抠抠搜搜的!所以,一说起房子的事儿,秀美老是窝着火。秀美的丈夫钱毅,一贯支持媳妇的主张,见媳妇流露出不满意,笑呵呵地说
- 平平无奇的逃命小天才carry全场,李春来凭啥全剧血条最长?
娱史通鉴
如果问我,最近印象最深刻的角色是哪个?我一定会说——李春来!刚刚收官的《龙岭迷窟》以豆瓣8.3分的高口碑持续发酵,如果你跟上潮流看了这部剧,一定会知道这个胆小的农民是谁。本来是冲着《鬼吹灯》系列的好口碑点开了这部剧,却万万没想到,竟然被一个在原著里出场几章就领盒饭的农民圈了粉;也万万没想到,胡明饰演的李春来成了新一届快乐源泉。作为胆小贪财的农民,李春来的出场就诠释了他的“怂”,以马大胆为首的古蓝十
- 类似拳头游戏的官网有哪些 除了拳头游戏官网还有哪些好用?
会飞滴鱼儿
免费在线游戏网站为我们的日常休闲娱乐提供了丰富多样的游戏体验。有些游戏平台相当优质,同时还提供实时动态、活动福利等。现在让我们一起探寻哪些免费在线游戏网站值得你投入时间和精力,沉浸在游戏的世界中,畅玩各种好玩的游戏。2024最火的免费游戏网站排行榜大全───┅┈━━━━━━━━┅┈─────────────Top1──────────游戏名字:游戏豹官网-特点-:手机游戏门户网站日活跃量:1.3w
- 蓝易云 - 诊断并修复SSH连接Github时遇到的“connection closed“错误。
蓝易云
sshgithub运维linuxvscoderedis
解决SSH连接GitHub时遇到的"connectionclosed"错误,需要依次排查网络连通性、认证信息、SSH配置和服务器响应等多个可能影响连接的因素。下面是解决步骤和方法:网络连通性检查:使用ping命令检查您的机器是否能够到达GitHub的服务器。pinggithub.com如果不能ping通,可能是网络问题,检查代理设置或网络连接。使用traceroute或tracert命令(取决于操
- 主流行架构
rainbowcheng
架构架构
nexus,gitlab,svn,jenkins,sonar,docker,apollo,catteambition,axure,蓝湖,禅道,WCP;redis,kafka,es,zookeeper,dubbo,shardingjdbc,mysql,InfluxDB,Telegraf,Grafana,Nginx,xxl-job,Neo4j,NebulaGraph是一个高性能的,NOSQL图形数据库
- 因在船上做噩梦,他坚持中途下船,结果船上211人只有他幸存!
三晋风云客
大家都知道,现代社会是讲究科学和逻辑的理性社会。不过依旧有一些科学无法解释的情况存在,比如英国一位神秘的巫婆,据悉她从小便有预言能力,在长大后更是预言了美国总统的人选。但是医学和科学方面并不能解释这种奇怪的现象。今天要向大家介绍的这个神秘事件,也是一个至今未能得到科学解释的谜题,它就是瓦拉塔赫失踪之谜。正文事情发生在英国,1908年,蓝猫航运公司将造船的任务委托给巴克利与柯尔公司。经过这家造船公司
- Pyqt5实现listwidget自定义右键菜单
Saudade957
pyqt5前端前端python编程语言
Pyqt5实现listwidget自定义右键菜单基于网上搜到的各种教程失败以后(ps:可能有的可以成功,但是我都没成功),组合了一下一些代码最终成功实现相关内容。首先在ui文件生成的py文件中添加self.listWidget.setContextMenuPolicy(Qt.CustomContextMenu)self.listWidget.customContextMenuRequested.c
- 南朝周兴嗣《千字文》(四十七)
卫俊智
〈一〉原文:纨扇圆絜,银烛炜煌。昼眠夕寐,蓝笋象床。〈二〉注音:千字文注音卡〈三〉注释:纨扇:(纨:很细的丝制品)细绢制成的圆扇。圆絜:(絜:同“洁”。)圆而洁白。银烛:银色的蜡烛。炜煌:(炜:光明。)火光明亮。昼眠:白天休息,休憩。夕寐:晚上睡觉,长睡。蓝笋:(蓝:竹子青皮的颜色。)铺着青竹编成的席子。象床:住着用象牙装饰的床。〈四〉译文:圆圆绢扇,洁白素雅,白白蜡烛,明亮辉煌。白天休息,晚上睡
- 回首
静竟
2019.1.29听了表姐一席话,感触良多浪漫之后是柴米油盐酱醋茶的现实我的蓝朋友标准:1.年龄大5岁2.身高1.8米左右3.学历本科以上4.脾气好,不轻易生气5.工作稳定,福利齐全,周末双休,节假日正常,还有年休假6.在万科买房7.对我大方8.有上进心9.不抽烟不喝酒,无不良嗜好10.寒暑假调休出门旅游11.有车12.至少比我弟帅
- 变态单职业手游网站有哪些 单职业版本手游网站排行榜大全
会飞滴鱼儿
免费在线游戏网站为我们的日常休闲娱乐提供了丰富多样的游戏体验。有些游戏平台相当优质,同时还提供实时动态、活动福利等。现在让我们一起探寻哪些免费在线游戏网站值得你投入时间和精力,沉浸在游戏的世界中,畅玩各种好玩的游戏。2024最火的免费游戏网站排行榜大全───┅┈━━━━━━━━┅┈─────────────Top1──────────游戏名字:游戏豹官网-特点-:手机游戏门户网站日活跃量:1.3w
- 一招改掉孩子磨蹭的坏习惯
路姐说
https://shop43404796.youzan.com/wscvis/knowledge/index?p=contentshow&alias=2xctkvk0tdnk4&kdt_id=43212628&reft=1572314576745_1572320684212&spm=f.80650183_uc.43212628_fake43212628&sf=wx_menu#/contentsho
- 深圳最东边
Wednesday_f08b
来深一年多,至今依稀记得第一天所见到的深圳,天空是白色的,没有云南的蓝天、白云、碧水。心情也是白色的,这里没有朋友、没有同学、没有家人。嗯,一切都是崭新的,从头开始。第一份工作还算是轻松,每天5点半准时下班,把肚子填饱,骑上小蓝把周边路线逛到熟透。对了,我是个路痴。到现在,还能深切的体会到骑着自行车到处瞎逛后不知道此刻在哪里的心慌。慢慢的,一切都好起来了,工作、生活,只是夜深人静的时候偶尔会觉得孤
- 我整天心肝宝贝的猫在我床上拉了一泡屎
中国嘉嘉
蓝小咪发脾气的样子妈妈你被子怎么这么臭啊!儿子本来过来跟我道晚安的,却嫌弃的在我被子上闻起来。我也闻到了很臭的味道。我们开始满被子寻找…结果一泡屎赫然的突兀在被子上!蓝小咪居然跑我床上拉屎了!三个月就买回来一直心肝宝贝的养到快三岁了的蓝小咪。今天它干了什么?太生气了!这被子还能要了嘛!被它气疯了!新被子和我喜欢的被罩,都让它毁了!还是这么恶心的方式!全都拿出屋,丢到院子里,连下面的床单一股脑都丢出
- 如何在工作中如何践行“细.快.实”的工作作风
马玉峰
【如何在工作中如何践行“细.快.实”的工作作风】1、细:细节决定成败,精耕细作,丝缕求细,才能把事情做好。窥一斑而知豹,落一叶便知秋,每处细节,都是标签,都是名片。一件小事,可以成就你,也可以否定你。就有这么一段关于英国理查三世脍炙人口的民谣:丢失一个钉子,坏了一只蹄铁;坏了一只蹄铁,折了一匹战马;折了一匹战马,伤了一位骑士;伤了一位骑士,输了一场战斗;输了一场战斗,亡了一个帝国。说的就是理查三世
- 彩色的时刻
冰夫
喜欢这样的彩色时刻:红霞、蓝月、绿山、黄河、紫花、白雪--当一种颜色与另一种颜色在一起,便会觉得美丽与甜蜜在一起。自然的颜色就是生命的颜色,生命的颜色就是心灵的颜色。彩色的心灵在天空飞舞,在大地跳跃,也在我的光阴里行走。
- 汤臣倍健,中建三局,宁德时代,金证科技,途游游戏,得物,蓝禾,顺丰,康冠科技24春招内推
weixin_53585422
c++pythonjava前端算法硬件工程嵌入式硬件
汤臣倍健,中建三局,宁德时代,金证科技,途游游戏,得物,蓝禾,顺丰,康冠科技24春招内推①汤臣倍健【内推岗位】:市场类、营销类、研发类、电商类、职能类、IT技术类、商业分析类、生产运营类【内推链接】https://sourl.cn/JSDhLU【推荐码】ES3W2T②得物【岗位】技术,设计,供应链,风控,产品,运营,商品研究等【内推码】:RTHEA59【一键内推】:https://poizon.j
- 小女孩天台玩“死亡游戏”:儿童世界里,有多少种“危险关系”?
九力国际教育综合体
这几天,一个视频让无数人胆战心惊。一个蓝衣女孩,带着两个大约七八岁的女童,爬上了高楼楼顶露天天台,并翻过天台的栏杆,正在玩着危险的游戏。在她们的身边,没有任何防护,稍有不慎万丈深渊。更让人背脊发冷的是,两个女童还在相互搀扶着往天台边缘后移。再反观蓝衣女孩,自己则站在安全的角落,紧紧抱着栏杆,对着两个女童喊着:松手,松手。image所幸,视频拍摄者发现了这一幕,用温柔的声音把两个女童劝回到防护栏里面
- 那闲适的午后
落凡_
一穗一穗的金黄,迎着风的方向,摇摇曳曳,包裹金黄的浓绿一定很有成就感,是它向秋天奉献了这沉甸甸、殷实实。这一切,都被柔软的棉花糖和广袤的宝石蓝看在眼里。好一幅沉静美好的秋实图啊!我沿着直直的田垄,走进秋的怀抱里。一望无际的稻田,洁白无瑕的碧空,屏蔽了城市的嘈杂,阻挡着俗世的喧嚣。我听得见秋风吹着金黄的唰唰声,我看得见棉花糖在慵懒地伸着胳膊。远处结队的小鸟飞来飞去,不敢靠近我。只有几只忙碌的蜜蜂停在
- 一文说透 Android 应用架构 MVC、MVP、MVVM 和 组件化,Android基础入门教程
Java后时代
2024年程序员学习android架构mvc
然后,就是我们的View层的代码,同样,我对代码做了删减:@Route(path=BaseConstants.EYEPETIZER_MENU)publicclassHomeActivityextendsCommonActivityimplementsHomeContract.IView{//实例化PresenterprivateHomeContract.IPresenterpresenter;{p
- 开发者关心的那些事
圣子足道
ios游戏编程apple支付
我要在app里添加IAP,必须要注册自己的产品标识符(product identifiers)。产品标识符是什么?
产品标识符(Product Identifiers)是一串字符串,它用来识别你在应用内贩卖的每件商品。App Store用产品标识符来检索产品信息,标识符只能包含大小写字母(A-Z)、数字(0-9)、下划线(-)、以及圆点(.)。你可以任意排列这些元素,但我们建议你创建标识符时使用
- 负载均衡器技术Nginx和F5的优缺点对比
bijian1013
nginxF5
对于数据流量过大的网络中,往往单一设备无法承担,需要多台设备进行数据分流,而负载均衡器就是用来将数据分流到多台设备的一个转发器。
目前有许多不同的负载均衡技术用以满足不同的应用需求,如软/硬件负载均衡、本地/全局负载均衡、更高
- LeetCode[Math] - #9 Palindrome Number
Cwind
javaAlgorithm题解LeetCodeMath
原题链接:#9 Palindrome Number
要求:
判断一个整数是否是回文数,不要使用额外的存储空间
难度:简单
分析:
题目限制不允许使用额外的存储空间应指不允许使用O(n)的内存空间,O(1)的内存用于存储中间结果是可以接受的。于是考虑将该整型数反转,然后与原数字进行比较。
注:没有看到有关负数是否可以是回文数的明确结论,例如
- 画图板的基本实现
15700786134
画图板
要实现画图板的基本功能,除了在qq登陆界面中用到的组件和方法外,还需要添加鼠标监听器,和接口实现。
首先,需要显示一个JFrame界面:
public class DrameFrame extends JFrame { //显示
- linux的ps命令
被触发
linux
Linux中的ps命令是Process Status的缩写。ps命令用来列出系统中当前运行的那些进程。ps命令列出的是当前那些进程的快照,就是执行ps命令的那个时刻的那些进程,如果想要动态的显示进程信息,就可以使用top命令。
要对进程进行监测和控制,首先必须要了解当前进程的情况,也就是需要查看当前进程,而 ps 命令就是最基本同时也是非常强大的进程查看命令。使用该命令可以确定有哪些进程正在运行
- Android 音乐播放器 下一曲 连续跳几首歌
肆无忌惮_
android
最近在写安卓音乐播放器的时候遇到个问题。在MediaPlayer播放结束时会回调
player.setOnCompletionListener(new OnCompletionListener() {
@Override
public void onCompletion(MediaPlayer mp) {
mp.reset();
Log.i("H
- java导出txt文件的例子
知了ing
javaservlet
代码很简单就一个servlet,如下:
package com.eastcom.servlet;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.net.URLEncoder;
import java.sql.Connection;
import java.sql.Resu
- Scala stack试玩, 提高第三方依赖下载速度
矮蛋蛋
scalasbt
原文地址:
http://segmentfault.com/a/1190000002894524
sbt下载速度实在是惨不忍睹, 需要做些配置优化
下载typesafe离线包, 保存为ivy本地库
wget http://downloads.typesafe.com/typesafe-activator/1.3.4/typesafe-activator-1.3.4.zip
解压r
- phantomjs安装(linux,附带环境变量设置) ,以及casperjs安装。
alleni123
linuxspider
1. 首先从官网
http://phantomjs.org/下载phantomjs压缩包,解压缩到/root/phantomjs文件夹。
2. 安装依赖
sudo yum install fontconfig freetype libfreetype.so.6 libfontconfig.so.1 libstdc++.so.6
3. 配置环境变量
vi /etc/profil
- JAVA IO FileInputStream和FileOutputStream,字节流的打包输出
百合不是茶
java核心思想JAVA IO操作字节流
在程序设计语言中,数据的保存是基本,如果某程序语言不能保存数据那么该语言是不可能存在的,JAVA是当今最流行的面向对象设计语言之一,在保存数据中也有自己独特的一面,字节流和字符流
1,字节流是由字节构成的,字符流是由字符构成的 字节流和字符流都是继承的InputStream和OutPutStream ,java中两种最基本的就是字节流和字符流
类 FileInputStream
- Spring基础实例(依赖注入和控制反转)
bijian1013
spring
前提条件:在http://www.springsource.org/download网站上下载Spring框架,并将spring.jar、log4j-1.2.15.jar、commons-logging.jar加载至工程1.武器接口
package com.bijian.spring.base3;
public interface Weapon {
void kil
- HR看重的十大技能
bijian1013
提升能力HR成长
一个人掌握何种技能取决于他的兴趣、能力和聪明程度,也取决于他所能支配的资源以及制定的事业目标,拥有过硬技能的人有更多的工作机会。但是,由于经济发展前景不确定,掌握对你的事业有所帮助的技能显得尤为重要。以下是最受雇主欢迎的十种技能。 一、解决问题的能力 每天,我们都要在生活和工作中解决一些综合性的问题。那些能够发现问题、解决问题并迅速作出有效决
- 【Thrift一】Thrift编译安装
bit1129
thrift
什么是Thrift
The Apache Thrift software framework, for scalable cross-language services development, combines a software stack with a code generation engine to build services that work efficiently and s
- 【Avro三】Hadoop MapReduce读写Avro文件
bit1129
mapreduce
Avro是Doug Cutting(此人绝对是神一般的存在)牵头开发的。 开发之初就是围绕着完善Hadoop生态系统的数据处理而开展的(使用Avro作为Hadoop MapReduce需要处理数据序列化和反序列化的场景),因此Hadoop MapReduce集成Avro也就是自然而然的事情。
这个例子是一个简单的Hadoop MapReduce读取Avro格式的源文件进行计数统计,然后将计算结果
- nginx定制500,502,503,504页面
ronin47
nginx 错误显示
server {
listen 80;
error_page 500/500.html;
error_page 502/502.html;
error_page 503/503.html;
error_page 504/504.html;
location /test {return502;}}
配置很简单,和配
- java-1.二叉查找树转为双向链表
bylijinnan
二叉查找树
import java.util.ArrayList;
import java.util.List;
public class BSTreeToLinkedList {
/*
把二元查找树转变成排序的双向链表
题目:
输入一棵二元查找树,将该二元查找树转换成一个排序的双向链表。
要求不能创建任何新的结点,只调整指针的指向。
10
/ \
6 14
/ \
- Netty源码学习-HTTP-tunnel
bylijinnan
javanetty
Netty关于HTTP tunnel的说明:
http://docs.jboss.org/netty/3.2/api/org/jboss/netty/channel/socket/http/package-summary.html#package_description
这个说明有点太简略了
一个完整的例子在这里:
https://github.com/bylijinnan
- JSONUtil.serialize(map)和JSON.toJSONString(map)的区别
coder_xpf
jqueryjsonmapval()
JSONUtil.serialize(map)和JSON.toJSONString(map)的区别
数据库查询出来的map有一个字段为空
通过System.out.println()输出 JSONUtil.serialize(map): {"one":"1","two":"nul
- Hibernate缓存总结
cuishikuan
开源sshjavawebhibernate缓存三大框架
一、为什么要用Hibernate缓存?
Hibernate是一个持久层框架,经常访问物理数据库。
为了降低应用程序对物理数据源访问的频次,从而提高应用程序的运行性能。
缓存内的数据是对物理数据源中的数据的复制,应用程序在运行时从缓存读写数据,在特定的时刻或事件会同步缓存和物理数据源的数据。
二、Hibernate缓存原理是怎样的?
Hibernate缓存包括两大类:Hib
- CentOs6
dalan_123
centos
首先su - 切换到root下面1、首先要先安装GCC GCC-C++ Openssl等以来模块:yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel2、再安装ncurses模块yum -y install ncurses-develyum install ncurses-devel3、下载Erang
- 10款用 jquery 实现滚动条至页面底端自动加载数据效果
dcj3sjt126com
JavaScript
无限滚动自动翻页可以说是web2.0时代的一项堪称伟大的技术,它让我们在浏览页面的时候只需要把滚动条拉到网页底部就能自动显示下一页的结果,改变了一直以来只能通过点击下一页来翻页这种常规做法。
无限滚动自动翻页技术的鼻祖是微博的先驱:推特(twitter),后来必应图片搜索、谷歌图片搜索、google reader、箱包批发网等纷纷抄袭了这一项技术,于是靠滚动浏览器滚动条
- ImageButton去边框&Button或者ImageButton的背景透明
dcj3sjt126com
imagebutton
在ImageButton中载入图片后,很多人会觉得有图片周围的白边会影响到美观,其实解决这个问题有两种方法
一种方法是将ImageButton的背景改为所需要的图片。如:android:background="@drawable/XXX"
第二种方法就是将ImageButton背景改为透明,这个方法更常用
在XML里;
<ImageBut
- JSP之c:foreach
eksliang
jspforearch
原文出自:http://www.cnblogs.com/draem0507/archive/2012/09/24/2699745.html
<c:forEach>标签用于通用数据循环,它有以下属性 属 性 描 述 是否必须 缺省值 items 进行循环的项目 否 无 begin 开始条件 否 0 end 结束条件 否 集合中的最后一个项目 step 步长 否 1
- Android实现主动连接蓝牙耳机
gqdy365
android
在Android程序中可以实现自动扫描蓝牙、配对蓝牙、建立数据通道。蓝牙分不同类型,这篇文字只讨论如何与蓝牙耳机连接。
大致可以分三步:
一、扫描蓝牙设备:
1、注册并监听广播:
BluetoothAdapter.ACTION_DISCOVERY_STARTED
BluetoothDevice.ACTION_FOUND
BluetoothAdapter.ACTION_DIS
- android学习轨迹之四:org.json.JSONException: No value for
hyz301
json
org.json.JSONException: No value for items
在JSON解析中会遇到一种错误,很常见的错误
06-21 12:19:08.714 2098-2127/com.jikexueyuan.secret I/System.out﹕ Result:{"status":1,"page":1,&
- 干货分享:从零开始学编程 系列汇总
justjavac
编程
程序员总爱重新发明轮子,于是做了要给轮子汇总。
从零开始写个编译器吧系列 (知乎专栏)
从零开始写一个简单的操作系统 (伯乐在线)
从零开始写JavaScript框架 (图灵社区)
从零开始写jQuery框架 (蓝色理想 )
从零开始nodejs系列文章 (粉丝日志)
从零开始编写网络游戏 
- jquery-autocomplete 使用手册
macroli
jqueryAjax脚本
jquery-autocomplete学习
一、用前必备
官方网站:http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
当前版本:1.1
需要JQuery版本:1.2.6
二、使用
<script src="./jquery-1.3.2.js" type="text/ja
- PLSQL-Developer或者Navicat等工具连接远程oracle数据库的详细配置以及数据库编码的修改
超声波
oracleplsql
在服务器上将Oracle安装好之后接下来要做的就是通过本地机器来远程连接服务器端的oracle数据库,常用的客户端连接工具就是PLSQL-Developer或者Navicat这些工具了。刚开始也是各种报错,什么TNS:no listener;TNS:lost connection;TNS:target hosts...花了一天的时间终于让PLSQL-Developer和Navicat等这些客户
- 数据仓库数据模型之:极限存储--历史拉链表
superlxw1234
极限存储数据仓库数据模型拉链历史表
在数据仓库的数据模型设计过程中,经常会遇到这样的需求:
1. 数据量比较大; 2. 表中的部分字段会被update,如用户的地址,产品的描述信息,订单的状态等等; 3. 需要查看某一个时间点或者时间段的历史快照信息,比如,查看某一个订单在历史某一个时间点的状态, 比如,查看某一个用户在过去某一段时间内,更新过几次等等; 4. 变化的比例和频率不是很大,比如,总共有10
- 10点睛Spring MVC4.1-全局异常处理
wiselyman
spring mvc
10.1 全局异常处理
使用@ControllerAdvice注解来实现全局异常处理;
使用@ControllerAdvice的属性缩小处理范围
10.2 演示
演示控制器
package com.wisely.web;
import org.springframework.stereotype.Controller;
import org.spring