- LLM 词汇表
落难Coder
LLMsNLP大语言模型大模型llama人工智能
Contextwindow“上下文窗口”是指语言模型在生成新文本时能够回溯和参考的文本量。这不同于语言模型训练时所使用的大量数据集,而是代表了模型的“工作记忆”。较大的上下文窗口可以让模型理解和响应更复杂和更长的提示,而较小的上下文窗口可能会限制模型处理较长提示或在长时间对话中保持连贯性的能力。Fine-tuning微调是使用额外的数据进一步训练预训练语言模型的过程。这使得模型开始表示和模仿微调数
- 读书||陶新华《教育中的积极心理学》1—28
流水淙淙2022
读一本好书,尤如和一位高尚者对话,亦能对人的精神进行洗礼。但是若不能和实践结合起来,也只能落到空读书的状态。读书摘要与感想1、塞利格曼在《持续的幸福》一书中提出了幸福2.0理论,提出幸福由5个元素决定——积极情绪、投入的工作和生活、目标和意义、和谐的人际关系、成就感。2、人的大脑皮层在进行智力活动时,都伴有皮下中枢活动,对这些活动进行体验请假,并由此产生了情感解读。人的情绪情感体验总是优先于大脑的
- 2021.11.18
星初呀
2021.11.18#小狗钱钱金金先生和吉亚的对话,金先生说,我总感觉你和大多数小孩很不一样。吉雅说我思考的问题不一样。很惊讶于一个小孩这样的归纳能力。我们思考问题方式是怎样的?自从跟着小狗群练习,思考问题方式也在跟着转变,关注自己做到的,写成功日记,关注微小事情,思考问题消耗我们的注意力。注意力放在哪里,哪里就会开花结果。所以我们琢磨的东西会塑造我们的大脑,建立稳固的价值观。今天听了定投课堂一节
- 使用datepicker和uploadify的冲突解决(IE双击才能打开附件上传对话框)
zhanglb12
在开发的过程当中,IE的兼容无疑是我们的一块绊脚石,在我们使用的如期的datepicker插件和使用上传附件的uploadify插件的时候,两者就产生冲突,只要点击过时间的插件,uploadify上传框要双才能打开ie浏览器提示错误Missinginstancedataforthisdatepicker解决方案//if(.browser.msie&&'9.0'===.browser.version
- Sissi书单|《每天刷本书》365天不间断阅读第28天
每天刷的sissi
以前我是一个不太会和自己对话的人,但是后来经历得多了,就慢慢变得喜欢自省起来。喜欢通过做各种测试题来更好的了解自己。测出来什么点,我觉得需要改善,就会到处去找调整的方法。这本书就是我在找方法的时候看到的,看的过程中除了觉得有用,还是觉得有用,非常推荐阅读!
- 关闭Windows自动更新的6种方法
Gemini1995
windows
在Windows操作系统中,可以使用多种方法来关闭自动更新。以下是其中一些常用的方法:使用设置应用:打开“设置”应用(Win+I),选择“更新和安全”。在左侧菜单中选择“Windows更新”。点击“更改活动时间”或“高级选项”。在“更新选项”下拉菜单中选择“通知我但不自动下载或安装”或“从不检查更新”。通过服务管理器:打开“服务”管理器,可以通过在运行对话框中输入services.msc来打开。找
- 知错不责
白开水的幸福时光
上课做卷子时,班上有三个同学半天了还找不到试卷。别的同学已经埋头做题了,他们三个有的钻在桌子兜里,有的蹲在地上,哗哗啦啦地整理凌乱的书桌,找试卷。我在教室里转了两圈,他们还在低头找试卷。换做以前,我肯定会质问他们:“连个东西都看不住,人家都开始做了,你们还找不到,快点找!”这话已经到嗓子眼儿上了,又被自己硬生生咽了下去。我在心里与自己对话:别批评他们了,他们又不是坐着不动,他们已经在四处寻找了,不
- 心情不好时,去做这四件事
绿茵下
01读书当一个人的智慧不够时,最容易胡思乱想,将自己困住思维的牢笼里。想要开悟,首先要与智者对话,与高人同行,那么与智者对话最经济实惠的方式,莫过于读书了。于时光的静美中,手捧一本高质量的书籍,在书中窥见先贤们的所思所想,仿佛进入了一个平静的世界,让人思绪越来越清晰明了。或许读书不能够马上帮你解决眼前的难题,可日复一日地坚持下去,总能让你内心更加笃定,心灵更加沉静,生出智慧之花。在书中人物不同的经
- 2021-08-19
fengxianzi2001
姜英中原焦点团队初中24期坚持分享第326天2020.08.19咨询和约练共计140次今天约练同一个问题的来访者两次。上午咨询师在充分倾听后采用了外化技术,让我体会到了焦虑和身体的分离,尤其是对话部分,让我看到自己对情绪的不接纳、排斥、反感;如果他这里让我充分的停留,可能会看到更多;假想自己在理想的地方工作,加强了这份期待;最后未来的我和自己对话,让自己更清醒的意识到现在所有的焦虑都是无效的,只能
- 地缚少年:源光被喊变态,八寻宁宁没有撩到源辉,却撩到了源光
ACGN安乐
细想之下花子君和八寻宁宁之所以可以走到一起,主要还是因为花子君在未经过八寻宁宁允许就亲吻了八寻宁宁,虽说这是花子君给八寻宁宁的保护咒,但严格来讲这种kiss的结果确实在八寻宁宁的心中种下了爱情的种子。动画《地缚少年花子君》第五话,神秘女生出现,可能是花子君的女票,八寻宁宁这是吃醋了。神秘女生出现后与八寻宁宁进行了一番对话,声称花子君像猫咪不但可爱还喜欢撒娇,可花子君从未在八寻宁宁身边撒过娇,随后神
- 5条实操干货有效打造你的个人品牌
长安行动派
这是ZerK的第46篇原创相信大家对个人品牌这个词已经不在陌生。尤其是在知识付费的年代,你的个人品牌,就是你的标签!在《深度工作》中说到,在未来有三种人会越来越贵第一种人:能与机器对话,操纵机器的人。人工智能时代的到来,机器毕竟部分取代人类。第二种人:IP,知识产权或者文学潜在财产就像有些网上课程一周卖出的钱和一个机构卖一年一样多。价值99元的课程,10万人购买,是很常见的。爱产出大概就是10万✖
- 深入探讨:如何在Python中通过LangChain技术精准追踪大型语言模型(LLM)的Token使用情况
m0_57781768
pythonlangchain语言模型
深入探讨:如何在Python中通过LangChain技术精准追踪大型语言模型(LLM)的Token使用情况在现代的人工智能开发中,大型语言模型(LLM)已经成为了不可或缺的工具,无论是用于自然语言处理、对话生成,还是其他复杂的文本生成任务。然而,随着这些模型的广泛应用,开发者面临的一个重要挑战是如何有效地追踪和管理Token的使用情况,特别是在生产环境中,Token的使用直接影响着API调用的成本
- 2018-03-24武隆
大林_Rbenefit
1.当一个人提出问题后,内心是希望对方也能回问自己一句相同问题的。比如,你周末计划去哪玩?在回答玩你的计划后,应该追问句,你哪?2.重复对方说过的话,或者把对方的心情用语言描述出来,适当运用这两种方法,能够帮助你获得对方的信任。比如,上次去巴厘岛挺好的,立刻把对方的心情用语言表达出来,提起巴厘岛,你好像很兴奋。3.作为成年人,这种Yes-But型对话方法是最基本的原则。先肯定,再表达自己想法。
- 法治的细节——对话(六)
玄灵
六、对话阅读随笔:我虽然不是法盲,但对法律的认知却是留在很浅显的层次。青铜时代,亦如最初的梦想。不是每个人都能有自己的青铜时代或把握住自己的青铜时代,亦如不是我们每个人都能去追寻我们最初的梦想和去实现她。当然梦想是会变得,我们对最初的梦想也会有自己的修正。我不想对自己最初的梦想去定义什么,亦如我认为的完美。最终无论她能否实现,我都愿与她同行,去求索最初的人生梦想,无论是喜悦还是困苦,无论是兴趣使然
- 释放“AI+”新质生产力,深算院如何“把大数据变小”?
YashanDB
YashanDB国产数据库数据库数据库大数据
近期,南都·湾财社推出《新质·中国造》栏目,深入千行百业,遍访湾区企业,解锁湾区新质生产力,共探高质量发展之道。本期对话深圳计算科学研究院YashanDB首席技术官陈志标,探讨国产数据库如何实现创新突围,抢抓数字经济时代的新机遇。以下是专访内容:如何应对AI时代所面临的算力挑战?南都·湾财社:数据、算力和算法是发展人工智能的三要素,深算院做了怎样的前瞻性布局?陈志标:今年,政府工作报告中首次提及开
- Android Dialog圆角设置无效的问题
ly969434341
android
一,参考AndroidDialog圆角设置无效的问题https://blog.csdn.net/woshi_awei/article/details/99664527Android自定义Dialog实现通用圆角对话框https://cloud.tencent.com/developer/article/1740956二,原因Diallog的默认背景是白色(直角背景),我自定义的Dialog背景也是
- 与自己对话01
彭宏豪
患得患失患得患失,百度上给出的解释是指对于个人的利害得失斤斤计较。做一件事之初,我会想到,如果最终得到的结果不是自己满意的或者最终的结果不是明朗的那这个过程投入的时间、精力岂不白白浪费了……患得患失的心理,让我会花费较多的时间在起初的选择上,而以往大多选择的结果都是——算了吧,让我想起了美国诗人弗罗斯特在《未选择的路》中所说的但我却选了另外一条路,它荒草萋萋,十分幽寂,显得更诱人,更美丽;我多数时
- vue el-dialog嵌套解决无法点击问题
javachen__
vue.jselementui
产生原因:当你在el-dialog上嵌套另一个el-dialog窗口时,可能会遇到内部对话框无法点击的问题。这通常是由于嵌套对话框的遮罩层(overlay)或其他样式问题造成的。解决方案:如果你的el-dialog组件支持append-to-body属性,你可以将对话框附加到body元素上,以避免z-index问题。外层对话框内层对话框
- 21天故事疗愈书写营小结
西游之狼
听到21天故事疗愈书写营的时候,是参与007交作业的时候,看到金玲姐的一篇叙事疗愈的文章,感觉写的特别好,很亲切,她是与自己的一个对话,真情实感的一个交流,从发现内心的小孩,到接触,从抗拒到接受鼓舞!感觉很神奇!然后自己状态也不太好,失眠的厉害!情绪经常低落!所以参加了金玲姐的一个课程。想想自己近30年的岁月里,感觉自己毫无目标、不知道为啥活着,曾经也上过情商课,希望还遇到指点迷津的大师,一个老师
- 48
Love你本来的样子
心理咨询磨炼人际沟通能力,这是行业对其从业者的一大挑战。所以,提高咨询沟通力意味着咨询师要学会倾听,并用简洁、明快的语言响应来询者复杂甚至是混乱的内心感受,尽量做到话语中肯、言辞贴切。由此,咨询对话修炼的最高境界是:多说一句话就是罗唆,少说一句话就是不明确。用杜希的话来讲:“咨询对话重质量,不重数量。”一次,我与杜希专门讨论起咨询场合下的语言艺术。他形象地评论说:“人们常用回音板来比喻咨询对话对来
- 你有没有不知不觉就陷入学习死循环?
苏尘阿
图片发自App你有没有恍然有一天发现自己就好像进了一个死循环?晚上熬夜早上想早起也起不来又导致很多事儿做不完又熬夜,这样反复的循环。我有,并且震惊。01恶性循环的表现昨天晚上和朋友的对话让我震惊,才恍然发现自己进入了学习的恶性循环。我:“我先去洗澡了,等下再说”。他:“这么晚了才去洗澡,在九点以后洗澡湿气侵入对身体不好”。我:“要做的事儿太多了,没办法”。他:“借口”。看到‘借口’两个字,我陷入沉
- 《昇思 25 天学习打卡营第 25 天 | 基于 MindSpore 实现 BERT 对话情绪识别 》
Sam9029
Mindscope模型学习深度学习
《昇思25天学习打卡营第25天|基于MindSpore实现BERT对话情绪识别》活动地址:https://xihe.mindspore.cn/events/mindspore-training-camp签名:Sam9029环境配置确保安装了正确版本的MindSpore和MindNLP库。!pipuninstallmindspore-y!pipinstall-ihttps://pypi.mirror
- 【N4】No.17“高”定目标激发自己前行——《云访谈9陈嘉谊:后浪奔涌-90后如何带着使命去奋斗》
于杰雄
2018年在在刚接触青椒计划的时候就加了陈嘉谊老师为好友,当时我在的《十年规划,不负流年》的阅读量超过了一万五,被陈老师发现,聊了一些微不足道的小事。一、今晚对话后浪,让你印象最深的是什么?不妨定一个远一点的目标身为年过三十的“社会人”,我很少挑战自己的极限,处理的多是眼前的一些事情。常常是领导交代一个任务,我就去做一个任务,很少去多想一步为什么。听了今天的对话,我也发现了如果想让成长速度快起来,
- 休要胡闹6
永不望天
背景:休休爸决定,从2020年2月29日开始,休言休语更名为休要胡闹,以记录对话和调皮捣蛋为主!2020年3月5日(星期四),天气阴雨,休休2岁2个月零24天。国内的新冠肺炎疫情已经得到很好的控制,但是国外的形势越来越不乐观,特别是韩国、意大利、伊朗、日本等国家,不知道会对疫情产生什么样的影响!1、出去玩了今天,经不住休休的软磨硬泡,休休奶奶带着休休出去玩了一趟。休休:啊,终于出去玩了,好开心呀!
- 惊喜!国足福将被施密特神奇复活,他的作用比肩外援,里皮开心了
枫桥落夜
2018年7月22日晚,北京工人体育场进行了一场精彩激烈的新京津德比大战,由北京中赫国安对阵天津权健。这是一场强强对话,天津权健是上赛季的中超第三名,亚冠也打进了8强,实力强劲。而北京国安联赛已经11轮不败,领跑积分榜,本赛季是奔着冠军而去的。北京中赫国安本场比赛是有非常大的优势的,因为他们的内外援齐整,巴西国脚奥古斯托从世界杯回来也已经归队,而权健的维特赛尔和莫德斯特都还没有回来,只能有两外援上
- 我们终其一生的追求,就是成为自己。
营销文案教练梅兰香
#和自己灵魂对话#我们终其一生,就是要摆脱他人的期待,成为自己。以前,在公众场合说句话都会脸红,更不懂得去推广自己,因为从小的教育里都是要内敛低调,不到30岁的我却处处小心,谨小慎微。后来,我学习了演讲,我学习了真实的表达自己,推销自己,慢慢的活出自己,这一路我都在寻找那个丢失的“我”接大哥的电话,他说“听说你加入到一个平台,经常去上海,还是要脚踏实地,一步一个脚印,不要追求什么一步登天的方法”挂
- 解锁网页交互利器:深入浅出 AJAX,用 JavaScript 与后端服务器对话,局部请求刷新数据
微特尔普拉斯
ajaxjavascriptajax前端javascript
在当今互联网时代,网页早已不再是静态的信息展示平台,而是充满动态交互的应用体验场。而实现这种流畅交互体验的关键技术之一,便是AJAX(AsynchronousJavaScriptandXML)。它允许网页在后台悄无声息地与服务器交换数据,无需刷新整个页面,便可实现内容的动态更新,为用户带来行云流水般的操作体验。在AJAX出现之前,网页开发采用的是前后端不分离的模式。前端开发者编写好HTML和CSS
- 返利机器人在导购电商平台中的集成与应用
微赚淘客系统@聚娃科技
机器人microsoft
返利机器人在导购电商平台中的集成与应用大家好,我是微赚淘客返利系统3.0的小编,是个冬天不穿秋裤,天冷也要风度的程序猿!今天我们将深入探讨如何将返利机器人集成到导购电商平台中,以及其在实际应用中的具体实现。这包括从用户交互到数据处理,最终实现返利推荐和通知。1.返利机器人的功能概述返利机器人通常具备以下功能:用户交互:与用户进行对话,提供返利信息。数据获取:从电商平台获取最新的返利数据。数据处理:
- 东郭子问道,庄子说道在屎溺?庄子破除成见的视野,可救人于迷乱
颜小二述哲文
《庄子》一书中曾记录了一段庄子与东郭子的有趣对话,大概就是,东郭子向庄子问道,庄子却说道在蝼蚁,在路边的砖瓦、在屎溺中,最后东郭子无言以对。乍一看,有朋友可能觉得庄子在戏弄东郭子,实际上,庄子是在向东郭子展现“道”无处不在的特性,同时还暗示东郭子,要以破除先入为主之成见的视野看待事物,往往能发现新天地。庄子是道家先贤之一,其名常跟在老子之后,道家老子提出的“道”,在道家庄子那里得到了进一步的“丰富
- 微信小程序的四种弹窗使用
少年负剑去
开发知识微信小程序小程序
在做小程序的过程中,弹窗也算是非常实用的功能了,这几天写的几个功能就用到了弹窗,也可能是初学者的问题,比较菜,想找一个可以带图片的自定义的弹窗,,这里简单介绍一下官方封装好的四个弹窗,感觉适合简单的使用,,想在展示多点内容就不太够了。。一、wx.showModal微信小程序提供的用于显示模态对话框的API,它允许开发者创建一个居中显示的弹窗,用来显示重要信息或请求用户确认操作。参数说明:标题(ti
- ios内付费
374016526
ios内付费
近年来写了很多IOS的程序,内付费也用到不少,使用IOS的内付费实现起来比较麻烦,这里我写了一个简单的内付费包,希望对大家有帮助。
具体使用如下:
这里的sender其实就是调用者,这里主要是为了回调使用。
[KuroStoreApi kuroStoreProductId:@"产品ID" storeSender:self storeFinishCallBa
- 20 款优秀的 Linux 终端仿真器
brotherlamp
linuxlinux视频linux资料linux自学linux教程
终端仿真器是一款用其它显示架构重现可视终端的计算机程序。换句话说就是终端仿真器能使哑终端看似像一台连接上了服务器的客户机。终端仿真器允许最终用户用文本用户界面和命令行来访问控制台和应用程序。(LCTT 译注:终端仿真器原意指对大型机-哑终端方式的模拟,不过在当今的 Linux 环境中,常指通过远程或本地方式连接的伪终端,俗称“终端”。)
你能从开源世界中找到大量的终端仿真器,它们
- Solr Deep Paging(solr 深分页)
eksliang
solr深分页solr分页性能问题
转载请出自出处:http://eksliang.iteye.com/blog/2148370
作者:eksliang(ickes) blg:http://eksliang.iteye.com/ 概述
长期以来,我们一直有一个深分页问题。如果直接跳到很靠后的页数,查询速度会比较慢。这是因为Solr的需要为查询从开始遍历所有数据。直到Solr的4.7这个问题一直没有一个很好的解决方案。直到solr
- 数据库面试题
18289753290
面试题 数据库
1.union ,union all
网络搜索出的最佳答案:
union和union all的区别是,union会自动压缩多个结果集合中的重复结果,而union all则将所有的结果全部显示出来,不管是不是重复。
Union:对两个结果集进行并集操作,不包括重复行,同时进行默认规则的排序;
Union All:对两个结果集进行并集操作,包括重复行,不进行排序;
2.索引有哪些分类?作用是
- Android TV屏幕适配
酷的飞上天空
android
先说下现在市面上TV分辨率的大概情况
两种分辨率为主
1.720标清,分辨率为1280x720.
屏幕尺寸以32寸为主,部分电视为42寸
2.1080p全高清,分辨率为1920x1080
屏幕尺寸以42寸为主,此分辨率电视屏幕从32寸到50寸都有
适配遇到问题,已1080p尺寸为例:
分辨率固定不变,屏幕尺寸变化较大。
如:效果图尺寸为1920x1080,如果使用d
- Timer定时器与ActionListener联合应用
永夜-极光
java
功能:在控制台每秒输出一次
代码:
package Main;
import javax.swing.Timer;
import java.awt.event.*;
public class T {
private static int count = 0;
public static void main(String[] args){
- Ubuntu14.04系统Tab键不能自动补全问题解决
随便小屋
Ubuntu 14.04
Unbuntu 14.4安装之后就在终端中使用Tab键不能自动补全,解决办法如下:
1、利用vi编辑器打开/etc/bash.bashrc文件(需要root权限)
sudo vi /etc/bash.bashrc
接下来会提示输入密码
2、找到文件中的下列代码
#enable bash completion in interactive shells
#if
- 学会人际关系三招 轻松走职场
aijuans
职场
要想成功,仅有专业能力是不够的,处理好与老板、同事及下属的人际关系也是门大学问。如何才能在职场如鱼得水、游刃有余呢?在此,教您简单实用的三个窍门。
第一,多汇报
最近,管理学又提出了一个新名词“追随力”。它告诉我们,做下属最关键的就是要多请示汇报,让上司随时了解你的工作进度,有了新想法也要及时建议。不知不觉,你就有了“追随力”,上司会越来越了解和信任你。
第二,勤沟通
团队的力
- 《O2O:移动互联网时代的商业革命》读书笔记
aoyouzi
读书笔记
移动互联网的未来:碎片化内容+碎片化渠道=各式精准、互动的新型社会化营销。
O2O:Online to OffLine 线上线下活动
O2O就是在移动互联网时代,生活消费领域通过线上和线下互动的一种新型商业模式。
手机二维码本质:O2O商务行为从线下现实世界到线上虚拟世界的入口。
线上虚拟世界创造的本意是打破信息鸿沟,让不同地域、不同需求的人
- js实现图片随鼠标滚动的效果
百合不是茶
JavaScript滚动属性的获取图片滚动属性获取页面加载
1,获取样式属性值
top 与顶部的距离
left 与左边的距离
right 与右边的距离
bottom 与下边的距离
zIndex 层叠层次
例子:获取左边的宽度,当css写在body标签中时
<div id="adver" style="position:absolute;top:50px;left:1000p
- ajax同步异步参数async
bijian1013
jqueryAjaxasync
开发项目开发过程中,需要将ajax的返回值赋到全局变量中,然后在该页面其他地方引用,因为ajax异步的原因一直无法成功,需将async:false,使其变成同步的。
格式:
$.ajax({ type: 'POST', ur
- Webx3框架(1)
Bill_chen
eclipsespringmaven框架ibatis
Webx是淘宝开发的一套Web开发框架,Webx3是其第三个升级版本;采用Eclipse的开发环境,现在支持java开发;
采用turbine原型的MVC框架,扩展了Spring容器,利用Maven进行项目的构建管理,灵活的ibatis持久层支持,总的来说,还是一套很不错的Web框架。
Webx3遵循turbine风格,velocity的模板被分为layout/screen/control三部
- 【MongoDB学习笔记五】MongoDB概述
bit1129
mongodb
MongoDB是面向文档的NoSQL数据库,尽量业界还对MongoDB存在一些质疑的声音,比如性能尤其是查询性能、数据一致性的支持没有想象的那么好,但是MongoDB用户群确实已经够多。MongoDB的亮点不在于它的性能,而是它处理非结构化数据的能力以及内置对分布式的支持(复制、分片达到的高可用、高可伸缩),同时它提供的近似于SQL的查询能力,也是在做NoSQL技术选型时,考虑的一个重要因素。Mo
- spring/hibernate/struts2常见异常总结
白糖_
Hibernate
Spring
①ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException
缺少aspectjweaver.jar,该jar包常用于spring aop中
②java.lang.ClassNotFoundException: org.sprin
- jquery easyui表单重置(reset)扩展思路
bozch
formjquery easyuireset
在jquery easyui表单中 尚未提供表单重置的功能,这就需要自己对其进行扩展。
扩展的时候要考虑的控件有:
combo,combobox,combogrid,combotree,datebox,datetimebox
需要对其添加reset方法,reset方法就是把初始化的值赋值给当前的组件,这就需要在组件的初始化时将值保存下来。
在所有的reset方法添加完毕之后,就需要对fo
- 编程之美-烙饼排序
bylijinnan
编程之美
package beautyOfCoding;
import java.util.Arrays;
/*
*《编程之美》的思路是:搜索+剪枝。有点像是写下棋程序:当前情况下,把所有可能的下一步都做一遍;在这每一遍操作里面,计算出如果按这一步走的话,能不能赢(得出最优结果)。
*《编程之美》上代码有很多错误,且每个变量的含义令人费解。因此我按我的理解写了以下代码:
*/
- Struts1.X 源码分析之ActionForm赋值原理
chenbowen00
struts
struts1在处理请求参数之前,首先会根据配置文件action节点的name属性创建对应的ActionForm。如果配置了name属性,却找不到对应的ActionForm类也不会报错,只是不会处理本次请求的请求参数。
如果找到了对应的ActionForm类,则先判断是否已经存在ActionForm的实例,如果不存在则创建实例,并将其存放在对应的作用域中。作用域由配置文件action节点的s
- [空天防御与经济]在获得充足的外部资源之前,太空投资需有限度
comsci
资源
这里有一个常识性的问题:
地球的资源,人类的资金是有限的,而太空是无限的.....
就算全人类联合起来,要在太空中修建大型空间站,也不一定能够成功,因为资源和资金,技术有客观的限制....
&
- ORACLE临时表—ON COMMIT PRESERVE ROWS
daizj
oracle临时表
ORACLE临时表 转
临时表:像普通表一样,有结构,但是对数据的管理上不一样,临时表存储事务或会话的中间结果集,临时表中保存的数据只对当前
会话可见,所有会话都看不到其他会话的数据,即使其他会话提交了,也看不到。临时表不存在并发行为,因为他们对于当前会话都是独立的。
创建临时表时,ORACLE只创建了表的结构(在数据字典中定义),并没有初始化内存空间,当某一会话使用临时表时,ORALCE会
- 基于Nginx XSendfile+SpringMVC进行文件下载
denger
应用服务器Webnginx网络应用lighttpd
在平常我们实现文件下载通常是通过普通 read-write方式,如下代码所示。
@RequestMapping("/courseware/{id}")
public void download(@PathVariable("id") String courseID, HttpServletResp
- scanf接受char类型的字符
dcj3sjt126com
c
/*
2013年3月11日22:35:54
目的:学习char只接受一个字符
*/
# include <stdio.h>
int main(void)
{
int i;
char ch;
scanf("%d", &i);
printf("i = %d\n", i);
scanf("%
- 学编程的价值
dcj3sjt126com
编程
发一个人会编程, 想想以后可以教儿女, 是多么美好的事啊, 不管儿女将来从事什么样的职业, 教一教, 对他思维的开拓大有帮助
像这位朋友学习:
http://blog.sina.com.cn/s/articlelist_2584320772_0_1.html
VirtualGS教程 (By @林泰前): 几十年的老程序员,资深的
- 二维数组(矩阵)对角线输出
飞天奔月
二维数组
今天在BBS里面看到这样的面试题目,
1,二维数组(N*N),沿对角线方向,从右上角打印到左下角如N=4: 4*4二维数组
{ 1 2 3 4 }
{ 5 6 7 8 }
{ 9 10 11 12 }
{13 14 15 16 }
打印顺序
4
3 8
2 7 12
1 6 11 16
5 10 15
9 14
13
要
- Ehcache(08)——可阻塞的Cache——BlockingCache
234390216
并发ehcacheBlockingCache阻塞
可阻塞的Cache—BlockingCache
在上一节我们提到了显示使用Ehcache锁的问题,其实我们还可以隐式的来使用Ehcache的锁,那就是通过BlockingCache。BlockingCache是Ehcache的一个封装类,可以让我们对Ehcache进行并发操作。其内部的锁机制是使用的net.
- mysqldiff对数据库间进行差异比较
jackyrong
mysqld
mysqldiff该工具是官方mysql-utilities工具集的一个脚本,可以用来对比不同数据库之间的表结构,或者同个数据库间的表结构
如果在windows下,直接下载mysql-utilities安装就可以了,然后运行后,会跑到命令行下:
1) 基本用法
mysqldiff --server1=admin:12345
- spring data jpa 方法中可用的关键字
lawrence.li
javaspring
spring data jpa 支持以方法名进行查询/删除/统计。
查询的关键字为find
删除的关键字为delete/remove (>=1.7.x)
统计的关键字为count (>=1.7.x)
修改需要使用@Modifying注解
@Modifying
@Query("update User u set u.firstna
- Spring的ModelAndView类
nicegege
spring
项目中controller的方法跳转的到ModelAndView类,一直很好奇spring怎么实现的?
/*
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* yo
- 搭建 CentOS 6 服务器(13) - rsync、Amanda
rensanning
centos
(一)rsync
Server端
# yum install rsync
# vi /etc/xinetd.d/rsync
service rsync
{
disable = no
flags = IPv6
socket_type = stream
wait
- Learn Nodejs 02
toknowme
nodejs
(1)npm是什么
npm is the package manager for node
官方网站:https://www.npmjs.com/
npm上有很多优秀的nodejs包,来解决常见的一些问题,比如用node-mysql,就可以方便通过nodejs链接到mysql,进行数据库的操作
在开发过程往往会需要用到其他的包,使用npm就可以下载这些包来供程序调用
&nb
- Spring MVC 拦截器
xp9802
spring mvc
Controller层的拦截器继承于HandlerInterceptorAdapter
HandlerInterceptorAdapter.java 1 public abstract class HandlerInterceptorAdapter implements HandlerIntercep