- 算法学习笔记:概率与期望
Plozia
数学/数论学习笔记+专项训练
概率与期望1.前言2.定义3.理解4.期望方程5.总结1.前言概率我们很熟,在数学课本里面我们就已经学到过概率的基本定义以及计算方式。期望我们不熟,他与概率密切相关,计算方式基于概率。2.定义概率的计算方式不必我多说,各位在数学课中都有了解。而期望,从某种意义上来讲其实就是一个加了权值的概率。我将使用一个例子来说明期望是什么:假设某一天小z有一场满分为100分的数学考试。他妈妈说:“儿子,如果你能
- [算法学习笔记](超全)概率与期望
L('ω')┘脏脏包└('ω')」
c++题解算法
引子先来讲个故事······话说在神奇的OI大陆上,有一只papermouse有一天,它去商场购物,正好是11.11,商店有活动它很荣幸被选上给1832抽奖在抽奖箱里,有3个篮蓝球,12个红球papermouse能抽3次蒟蒻的papermouse就疑惑了:抽到至少1个篮蓝球的概率是多少???Answer:总共有15个球只抽到1个篮蓝球的概率是0.435165(很好理解吧,在4个篮蓝球里取一个,再在
- 专题·数学概率与期望【including 条件概率,贝叶斯定理, 全概率公式,数学期望, 绿豆蛙的归宿
樱狸❀
数论数论数学期望概率
初见安~~~又开启数论的探索啦~~:)一。概率1.基本定义在概率论中,我们把一个随机事件的一个可能结果称为其样本点,其所有样本点构成的集合称之为样本空间。(注意,随机事件并不一定只有一种可能结果)在样本空间中,我们称事件所包含的子集为随机事件。概率的定义就很简单了,我们也都知道样本空间中的任意随机事件的概率不会超过1不会小于0.就比如我们抛硬币连续扔三次(不考虑侧面稳落地),有8中可能:AAA,A
- 第十六章 隐马尔科夫模型
小酒馆燃着灯
机器学习手写AI深度学习机器学习
文章目录简介概念随机变量与随机过程马尔可夫链隐含马尔可夫模型两个基本假设三个基本问题算法观测序列生成算法概率计算算法前向概率与后向概率前向算法后向算法小结概率与期望学习问题监督学习方法Baum-Welch算法预测算法近似算法(MAP)维特比算法(Viterbi)简介动态贝叶斯网络的最简单实现隐马尔可夫模型。HMM可以看成是一种推广的混合模型。序列化建模,打破了数据独立同分布的假设。有些关系需要理清
- Algorithm Review 9 数学相关
Log_x
学习笔记概率论算法
概率与期望结论1设xxx为离散随机变量,且x∈Nx\in\mathbbNx∈N,则E(x)=∑i=1∞i⋅P(x=i)=∑i=1∞P(x≥i)E(x)=\sum\limits_{i=1}^{\infty}i·P(x=i)=\sum\limits_{i=1}^{\infty}P(x\gei)E(x)=i=1∑∞i⋅P(x=i)=i=1∑∞P(x≥i)。树上随机游走给定一棵树,从树中的某点xxx出发,
- SPSS卡方检验结果解读详解
nekonekoboom
SPSS
卡方检验(Chi-SquareTest)是由Pearson提出的一种统计方法,在一定的置信水平和自由度下,通过比较卡方统计量和卡方分布函数概率值,判断实际概率与期望概率是否吻合,通过比较理论概率和实际概率的吻合程度,可检验两个分类变量的相关性。用户可利用SPSS软件方便的完成卡方检验,在SPSS软件中,默认H0成立,即观察频数和实际频数无差别,即两组变量相互不产生影响,两组变量不相关,如果检验P值
- 算法学习笔记:概率/期望 DP
Plozia
动态规划学习笔记+专项训练算法动态规划数据结构
算法学习笔记:概率/期望DP1.前言2.例题3.练习题1.前言概率/期望DP,是一种DP,用来计算概率或者是期望。其实我认为这种DP就是计算期望的,毕竟概率可以看成代价为1的期望。没有学过期望的读者可以看看这篇文章:算法学习笔记:概率与期望而概率/期望DP,最关键的就是期望方程。下面看一道例题。2.例题CF1265EBeautifulMirrors以这题为例,详细讲解期望DP的一般套路。为了方便,
- 隐马尔可夫模型 (hidden Markov model, HMM)
连理o
机器学习概率论自然语言处理机器学习
本文为《统计学习方法》的读书笔记目录隐马尔可夫模型的基本概念隐马尔可夫模型的定义观测序列的生成过程隐马尔可夫模型的3个基本问题概率计算算法直接计算法前向算法(forwardalgorithm)后向算法(backwardalgorithm)一些概率与期望值的计算学习算法监督学习方法Baum-Welch算法(无监督学习方法)预测算法近似算法维特比算法(Viterbialgorithm)隐马尔可夫模型的
- 机器学习算法(十七):隐马尔科夫模型(HMM)
意念回复
机器学习机器学习算法机器学习
目录1隐马尔科夫模型1.1模型概念1.2定义1.3隐马尔科夫模型的两个性质1.4盒子与球模型1.5三个基本问题2概率计算算法2.1直接计算法2.2前向算法2.3后向算法2.4一些概率与期望值的计算3学习算法3.1监督学习方法3.2Baum-Welch算法3.3Baum-Welch模型参数估计公式4预测算法4.1近似算法4.2维比特算法5总结马尔科夫链:机器学习算法(十六):马尔科夫链_意念回复的博
- 机器学习面试题——朴素贝叶斯
冰露可乐
机器学习深度学习朴素贝叶斯贝叶斯公式大厂笔试面试题
机器学习面试题——朴素贝叶斯提示:这些知识点也是大厂笔试经常考的题目,我记得阿里和京东就考!!!想必在互联网大厂就会用这些知识解决实际问题朴素贝叶斯介绍一下朴素贝叶斯优缺点贝叶斯公式朴素贝叶斯中的“朴素”怎么理解?什么是拉普拉斯平滑法?朴素贝叶斯中有没有超参数可以调?你知道朴素贝叶斯有哪些应用吗?朴素贝叶斯对异常值敏不敏感?频率学派与贝叶斯学派的差别概率与期望的公式先验概率与后验概率文章目录机器学
- [NOI2005] 聪聪与可可
Sito_Ask
NOI2005聪聪与可可~~机器猫の传送门~~期望DP+记搜聪聪一直在向可可方向追,所以不会回到原处,不具有后效性,考虑用概率与期望DP+记忆化搜索求解用dp[x][y]表示可可在x点,聪聪在y点时步数的期望值判断边界①当x==y时结束(此时毫无疑问的,dp[x][y]=0)②当
- 2019暑期计划 / 每日刷题记录
weixin_30951743
计划##1.复习与提高###动态规划-数位DP-树形DP###图论-Tarjan-拓扑序的应用-树链剖分-点分治-树上距离-网络流/费用流###数据结构-平衡树-主席树-ST表###数论-整数研究-组合数学-概率与期望##2.新知学习###离线算法-CDQ分治-整体二分###数据结构-线段树扩展操作-树套树-LCT###图论-基环树每日刷题记录转载于:https://www.cnblogs.com
- 一文读懂NLP之隐马尔科夫模型(HMM)详解加python实现
Elenstone
NLP算法详解机器学习算法nlp
一文读懂NLP之隐马尔科夫模型(HMM)详解加python实现1隐马尔科夫模型1.1HMM解决的问题1.2HMM模型的定义1.2.1HMM的两个假设1.2.2HMM模型1.3HMM模型的三个基本问题2概率计算问题及算法2.1直接计算法2.2前向算法2.3后向算法2.4一些概率与期望值的计算3模型训练问题及算法3.1监督学习——最大似然估计3.2非监督学习——EM算法3.3Baum-Welch算法4
- 真正的决策都是不确定性决策
蓝色多莉
阅读笔记第126/365天今日阅读《升维——不确定时代的决策博弈》作者:【澳】王珞第3章:真正的决策都是不确定性决策一、企业利润来源于不确定性。1、什么是不确定性?风险是能被计算概率与期望值的是基于已经发生的事件的统计,而不确定性是无法被预见的,即使能被预见,其发生的概率也不能被计算的未来事件。不确定性事件是不可预见,没有概率的,包括灾难、命运、前景等一切未来可能发生的事件,是每个个体未来都要共同
- 解题报告(十七)概率与期望(概率论)(ACM / OI)
繁凡さん
【解题报告】-超高质量题单+题解概率与期望《概率论》
繁凡出品的全新系列:解题报告系列——超高质量算法题单,配套我写的超高质量题解和代码,题目难度不一定按照题号排序,我会在每道题后面加上题目难度指数(1∼51\sim51∼5),以模板题难度111为基准。这样大家在学习算法的时候就可以执行这样的流程:%阅读我的【学习笔记】/【算法全家桶】学习算法⇒\Rightarrow⇒阅读我的相应算法的【解题报告】获得高质量题单⇒\Rightarrow⇒根据我的一句
- 概率与期望习题总结
总结概率题一般正着推期望题一般倒着推图上的问题如果是\(DAG\)可以直接转移否则可能要用到高斯消元\(20\)的数据范围大概率是装压有些看似无限循环的式子其实可以倒着递推1、骰子基础版题目描述众所周知,骰子是一个六面分别刻有一到六点的立方体,每次投掷骰子,从理论上讲得到一点到六点的概率都是\(1/6\)。今有骰子一颗,连续投掷\(N\)次,问点数总和大于等于\(X\)的概率是多少?输入仅有一行包
- HDU 4254 A Famous Game(概率与期望)
clover_hxy
组合数学概率与期望
题目描述传送门题目大意:一个口袋里有n个红色或蓝色的球。n+1种颜色分布情况(i个红球n−i个蓝球)的概率是相等的。B从口袋中不放回地摸出了p个球,其中有q个是红色的。求B再摸一个球时,摸出的球是红色的概率。题解设Nk表示n个球中有k个红球的概率。A表示p个球中有q个红球B表示下次摸出的是红球那么P(Nk)=1n+1P(A)=C(k,q)C(n−k,p−q)C(n,p)P(B|ANk)=k−qn−
- HDU 5753 Permutation Bo (概率与期望)
等我学会后缀自动机
HDU习题集规律/递推概率论/博弈论
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5753#includeusingnamespacestd;#definedebugputs("YES");#definerep(x,y,z)for(int(x)=(y);(x)#definemk(x,y)make_pair(x,y)#definefifirst#definesesecondconstin
- 【总结】概率与期望
616156
总结数论DP高斯消元数学概率与期望
前言作为NOIP级的知识点,概率与期望算是比较困难的类型了。但其实也不是无法解决的难题。本文主要通过作者本人的刷题经历,对概率期望类题目进行总结。概率51Nod1639绑鞋带:有n根鞋带混在一起,每根鞋带有两个鞋带头。现在重复n次以下操作:随机抽出两个鞋带头,把它们绑在一起。求最终只形成一个环的概率?依次考虑每一步操作,现在已经选出来了一个头,它必须和非它所在的链的另一个头绑在一起,才能得到合法方
- 概率与期望详解!一次精通oi中的概率期望
Tyl18858230607
目录基础概念最大值不超过Y的期望概率为P时期望成功次数基础问题拿球随机游走经典问题期望线性性练习题例题选讲noip2016换教室区间交0-1边树求直径期望球染色区间翻转二位&三维凸包点数期望单选错位KILL后记@(期望与概率)基础概念随机变量:有多种可能的取值的变量万物都可以当做随机变量,包括常数,方便用\(\sum\)统计P(A):事件A发⽣的概率E(X):随机变量X的期望值,\(E(X)=Su
- 隐马尔可夫模型
tt12121221
隐马尔可夫模型隐马尔科夫模型的基本概念概率计算算法直接计算法前向算法后向算法一些概率与期望的计算学习算法Baum-Welch算法预测算法近似算法维特比算法是用于标注问题的统计学习模型,描述由隐藏的马尔可夫链随机生成的观测序列的过程,属于生成模型。马尔科夫模型中主要讨论三个问题:即概率计算算法、学习算法以及预测算法。隐马尔科夫模型的基本概念隐马尔科夫模型由初始概率分布、状态转移概率分布以及观测概率分
- 概率期望中高斯消元的几种用法
IDnumber4
数论题解总结
前置知识:高斯消元法博主理解浅显,只能膜piao别人的总结戳别人家的题解咳咳……还是简单介绍两句它可以用O(n3)O(n^3)O(n3)的复杂度解出n元方程组表示方法:矩阵tips:一般情况下高斯消元可能出现无解、无穷解的情况,我的做法里面没有判断,由于矩阵对角线上不会出现0。概率与期望:概率:发生的可能性期望:概率的加权平均数(表示对权值的一个预期值)eg.某图中从起点经过i步到达终点的可能性为
- codeforces 335E. Counting Skyscrapers (概率与期望)
clover_hxy
概率与期望
题目描述传送门中文题意题解先从简单的的入手吧。(1)由BOb推Alice我们需要证明的就是如果得分是2^i,那么经过的楼数也是2^i(这里经过的楼数指的是中间经过的数量+右端点)我们假设左端点一定可以连高度是i+1,编号是i的溜索,那么他的概率就是1.对于中间经过的溜索我们要求他们的高度是[1..i]之间的任意数,右端点的高度是[i+1…inf]那么中间经过的数量实际也是正无穷项。先考虑高度是[1
- 【专题】概率和期望
weixin_33923762
【参考】浅析竞赛中一类数学期望问题的解决方法信息学竞赛中概率问题求解初探WC2018冬令营课件《概率与期望及其应用》曹文【概率的定义】基本事件是一次实验可能出现的不可再分解的直接结果,样本空间Ω是全体基本事件的集合,随机事件是若干基本事件组成的集合。事件的并:事件C=”事件A与事件B至少有一个发生“,则C=A∪B。事件的交:同时发生,A∩B。一个随机事件的概率可以认为是事件占样本空间的比例(不严格
- 洛谷P1654 OSU!_概率与期望
EM-LGH
Code:#include#includeusingnamespacestd;constintmaxn=1000000+4;doublef[maxn],g[maxn],h[maxn];intmain(){intn;scanf("%d",&n);for(inti=1;i<=n;++i){doubleperc;scanf("%lf",&perc);h[i]=(h[i-1]+1)*perc;g[i]=(
- LuoguP1654 OSU! 概率与期望
EM-LGH
感觉数学期望这里始终都没太学明白.期望在任何时候都具有线性性,即$E(a+b)=E(a)+E(b)$,这个式子任何时候都成立.先考虑求$x$,$x^2$.令$x1[i]$表示$i$为$1$向前的极长$1$的期望长度,$x2[i],x3[i]$为$x^2,x^3$的期望.那么考虑从$i-1$那里转移过来,就是$E(j+1)=E(j)+E(1)=E(j)+1$.概率是$q[i]$,所以$x1[i]=(
- 老年(已退役)选手复习计划 PART2
CR1SceNT
放上来有些符号产生了一点偏差。。不知道怎么变成了问号。。比较懒懒得改了。。意会,意会。。2017.7.4:概率与期望:1.BZOJ1415:预处理p[x][y]表示,猫在x,鼠在y时猫下一步走哪里。然后记忆化搜索。2.BZOJ3450:再求一个期望长度就好解决了。斜率优化:1.BZOJ1010:推式子。2.BZOJ1096:同上。3.BZOJ3156:同上。4.BZOJ3437:同上。5.BZOJ
- [学习笔记]高斯消元求解两种特殊问题(带状矩阵/主元法)
C20190406Panda_hu
#OI知识点合辑
本文章是[学习笔记]概率与期望进阶的一部分由于时间问题我写的比较简略,所以我把大佬的总结链接贴上来了(应该没什么吧qwq)。1概述最常见的当然是随机游走问题了…•fu=∑pu,v∗(fv+wu,v)f_u=\sump_{u,v}*(f_{v}+w_{u,v})fu=∑pu,v∗(fv+wu,v)•计算期望在这个节点上,停留多少步:fu=∑pv,u∗fv+[u=S]f_u=\sump_{v,u}*f
- 【概率与期望】【暴力搜索】[Codeforces#621]题解+总结
weixin_30340775
WetSharkandOddandEven题目描述Today,WetSharkisgivennintegers.Usinganyoftheseintegersnomorethanonce,WetSharkwantstogetmaximumpossibleeven(divisibleby2)sum.Please,calculatethisvalueforWetShark.Note,thatifWet
- [CodeForces891E]Lust-生成函数-概率与期望
zlttttt
生成函数【GenerationFunction】Theory】
LustAfalsewitnessthatspeakethlies!Youaregivenasequencecontainingnintegers.Thereisavariableresthatisequalto0initially.Thefollowingprocessrepeatsktimes.Chooseanindexfrom1tonuniformlyatrandom.Nameitx.Add
- sql统计相同项个数并按名次显示
朱辉辉33
javaoracle
现在有如下这样一个表:
A表
ID Name time
------------------------------
0001 aaa 2006-11-18
0002 ccc 2006-11-18
0003 eee 2006-11-18
0004 aaa 2006-11-18
0005 eee 2006-11-18
0004 aaa 2006-11-18
0002 ccc 20
- Android+Jquery Mobile学习系列-目录
白糖_
JQuery Mobile
最近在研究学习基于Android的移动应用开发,准备给家里人做一个应用程序用用。向公司手机移动团队咨询了下,觉得使用Android的WebView上手最快,因为WebView等于是一个内置浏览器,可以基于html页面开发,不用去学习Android自带的七七八八的控件。然后加上Jquery mobile的样式渲染和事件等,就能非常方便的做动态应用了。
从现在起,往后一段时间,我打算
- 如何给线程池命名
daysinsun
线程池
在系统运行后,在线程快照里总是看到线程池的名字为pool-xx,这样导致很不好定位,怎么给线程池一个有意义的名字呢。参照ThreadPoolExecutor类的ThreadFactory,自己实现ThreadFactory接口,重写newThread方法即可。参考代码如下:
public class Named
- IE 中"HTML Parsing Error:Unable to modify the parent container element before the
周凡杨
html解析errorreadyState
错误: IE 中"HTML Parsing Error:Unable to modify the parent container element before the child element is closed"
现象: 同事之间几个IE 测试情况下,有的报这个错,有的不报。经查询资料后,可归纳以下原因。
- java上传
g21121
java
我们在做web项目中通常会遇到上传文件的情况,用struts等框架的会直接用的自带的标签和组件,今天说的是利用servlet来完成上传。
我们这里利用到commons-fileupload组件,相关jar包可以取apache官网下载:http://commons.apache.org/
下面是servlet的代码:
//定义一个磁盘文件工厂
DiskFileItemFactory fact
- SpringMVC配置学习
510888780
springmvc
spring MVC配置详解
现在主流的Web MVC框架除了Struts这个主力 外,其次就是Spring MVC了,因此这也是作为一名程序员需要掌握的主流框架,框架选择多了,应对多变的需求和业务时,可实行的方案自然就多了。不过要想灵活运用Spring MVC来应对大多数的Web开发,就必须要掌握它的配置及原理。
一、Spring MVC环境搭建:(Spring 2.5.6 + Hi
- spring mvc-jfreeChart 柱图(1)
布衣凌宇
jfreechart
第一步:下载jfreeChart包,注意是jfreeChart文件lib目录下的,jcommon-1.0.23.jar和jfreechart-1.0.19.jar两个包即可;
第二步:配置web.xml;
web.xml代码如下
<servlet>
<servlet-name>jfreechart</servlet-nam
- 我的spring学习笔记13-容器扩展点之PropertyPlaceholderConfigurer
aijuans
Spring3
PropertyPlaceholderConfigurer是个bean工厂后置处理器的实现,也就是BeanFactoryPostProcessor接口的一个实现。关于BeanFactoryPostProcessor和BeanPostProcessor类似。我会在其他地方介绍。PropertyPlaceholderConfigurer可以将上下文(配置文件)中的属性值放在另一个单独的标准java P
- java 线程池使用 Runnable&Callable&Future
antlove
javathreadRunnablecallablefuture
1. 创建线程池
ExecutorService executorService = Executors.newCachedThreadPool();
2. 执行一次线程,调用Runnable接口实现
Future<?> future = executorService.submit(new DefaultRunnable());
System.out.prin
- XML语法元素结构的总结
百合不是茶
xml树结构
1.XML介绍1969年 gml (主要目的是要在不同的机器进行通信的数据规范)1985年 sgml standard generralized markup language1993年 html(www网)1998年 xml extensible markup language
- 改变eclipse编码格式
bijian1013
eclipse编码格式
1.改变整个工作空间的编码格式
改变整个工作空间的编码格式,这样以后新建的文件也是新设置的编码格式。
Eclipse->window->preferences->General->workspace-
- javascript中return的设计缺陷
bijian1013
JavaScriptAngularJS
代码1:
<script>
var gisService = (function(window)
{
return
{
name:function ()
{
alert(1);
}
};
})(this);
gisService.name();
&l
- 【持久化框架MyBatis3八】Spring集成MyBatis3
bit1129
Mybatis3
pom.xml配置
Maven的pom中主要包括:
MyBatis
MyBatis-Spring
Spring
MySQL-Connector-Java
Druid
applicationContext.xml配置
<?xml version="1.0" encoding="UTF-8"?>
&
- java web项目启动时自动加载自定义properties文件
bitray
javaWeb监听器相对路径
创建一个类
public class ContextInitListener implements ServletContextListener
使得该类成为一个监听器。用于监听整个容器生命周期的,主要是初始化和销毁的。
类创建后要在web.xml配置文件中增加一个简单的监听器配置,即刚才我们定义的类。
<listener>
<des
- 用nginx区分文件大小做出不同响应
ronin47
昨晚和前21v的同事聊天,说到我离职后一些技术上的更新。其中有个给某大客户(游戏下载类)的特殊需求设计,因为文件大小差距很大——估计是大版本和补丁的区别——又走的是同一个域名,而squid在响应比较大的文件时,尤其是初次下载的时候,性能比较差,所以拆成两组服务器,squid服务于较小的文件,通过pull方式从peer层获取,nginx服务于较大的文件,通过push方式由peer层分发同步。外部发布
- java-67-扑克牌的顺子.从扑克牌中随机抽5张牌,判断是不是一个顺子,即这5张牌是不是连续的.2-10为数字本身,A为1,J为11,Q为12,K为13,而大
bylijinnan
java
package com.ljn.base;
import java.util.Arrays;
import java.util.Random;
public class ContinuousPoker {
/**
* Q67 扑克牌的顺子 从扑克牌中随机抽5张牌,判断是不是一个顺子,即这5张牌是不是连续的。
* 2-10为数字本身,A为1,J为1
- 翟鸿燊老师语录
ccii
翟鸿燊
一、国学应用智慧TAT之亮剑精神A
1. 角色就是人格
就像你一回家的时候,你一进屋里面,你已经是儿子,是姑娘啦,给老爸老妈倒怀水吧,你还觉得你是老总呢?还拿派呢?就像今天一样,你们往这儿一坐,你们之间是什么,同学,是朋友。
还有下属最忌讳的就是领导向他询问情况的时候,什么我不知道,我不清楚,该你知道的你凭什么不知道
- [光速与宇宙]进行光速飞行的一些问题
comsci
问题
在人类整体进入宇宙时代,即将开展深空宇宙探索之前,我有几个猜想想告诉大家
仅仅是猜想。。。未经官方证实
1:要在宇宙中进行光速飞行,必须首先获得宇宙中的航行通行证,而这个航行通行证并不是我们平常认为的那种带钢印的证书,是什么呢? 下面我来告诉
- oracle undo解析
cwqcwqmax9
oracle
oracle undo解析2012-09-24 09:02:01 我来说两句 作者:虫师收藏 我要投稿
Undo是干嘛用的? &nb
- java中各种集合的详细介绍
dashuaifu
java集合
一,java中各种集合的关系图 Collection 接口的接口 对象的集合 ├ List 子接口 &n
- 卸载windows服务的方法
dcj3sjt126com
windowsservice
卸载Windows服务的方法
在Windows中,有一类程序称为服务,在操作系统内核加载完成后就开始加载。这里程序往往运行在操作系统的底层,因此资源占用比较大、执行效率比较高,比较有代表性的就是杀毒软件。但是一旦因为特殊原因不能正确卸载这些程序了,其加载在Windows内的服务就不容易删除了。即便是删除注册表中的相 应项目,虽然不启动了,但是系统中仍然存在此项服务,只是没有加载而已。如果安装其他
- Warning: The Copy Bundle Resources build phase contains this target's Info.plist
dcj3sjt126com
iosxcode
http://developer.apple.com/iphone/library/qa/qa2009/qa1649.html
Excerpt:
You are getting this warning because you probably added your Info.plist file to your Copy Bundle
- 2014之C++学习笔记(一)
Etwo
C++EtwoEtwoiterator迭代器
已经有很长一段时间没有写博客了,可能大家已经淡忘了Etwo这个人的存在,这一年多以来,本人从事了AS的相关开发工作,但最近一段时间,AS在天朝的没落,相信有很多码农也都清楚,现在的页游基本上达到饱和,手机上的游戏基本被unity3D与cocos占据,AS基本没有容身之处。so。。。最近我并不打算直接转型
- js跨越获取数据问题记录
haifengwuch
jsonpjsonAjax
js的跨越问题,普通的ajax无法获取服务器返回的值。
第一种解决方案,通过getson,后台配合方式,实现。
Java后台代码:
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String ca
- 蓝色jQuery导航条
ini
JavaScripthtmljqueryWebhtml5
效果体验:http://keleyi.com/keleyi/phtml/jqtexiao/39.htmHTML文件代码:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jQuery鼠标悬停上下滑动导航条 - 柯乐义<
- linux部署jdk,tomcat,mysql
kerryg
jdktomcatlinuxmysql
1、安装java环境jdk:
一般系统都会默认自带的JDK,但是不太好用,都会卸载了,然后重新安装。
1.1)、卸载:
(rpm -qa :查询已经安装哪些软件包;
rmp -q 软件包:查询指定包是否已
- DOMContentLoaded VS onload VS onreadystatechange
mutongwu
jqueryjs
1. DOMContentLoaded 在页面html、script、style加载完毕即可触发,无需等待所有资源(image/iframe)加载完毕。(IE9+)
2. onload是最早支持的事件,要求所有资源加载完毕触发。
3. onreadystatechange 开始在IE引入,后来其它浏览器也有一定的实现。涉及以下 document , applet, embed, fra
- sql批量插入数据
qifeifei
批量插入
hi,
自己在做工程的时候,遇到批量插入数据的数据修复场景。我的思路是在插入前准备一个临时表,临时表的整理就看当时的选择条件了,临时表就是要插入的数据集,最后再批量插入到数据库中。
WITH tempT AS (
SELECT
item_id AS combo_id,
item_id,
now() AS create_date
FROM
a
- log4j打印日志文件 如何实现相对路径到 项目工程下
thinkfreer
Weblog4j应用服务器日志
最近为了实现统计一个网站的访问量,记录用户的登录信息,以方便站长实时了解自己网站的访问情况,选择了Apache 的log4j,但是在选择相对路径那块 卡主了,X度了好多方法(其实大多都是一样的内用,还一个字都不差的),都没有能解决问题,无奈搞了2天终于解决了,与大家分享一下
需求:
用户登录该网站时,把用户的登录名,ip,时间。统计到一个txt文档里,以方便其他系统调用此txt。项目名
- linux下mysql-5.6.23.tar.gz安装与配置
笑我痴狂
mysqllinuxunix
1.卸载系统默认的mysql
[root@localhost ~]# rpm -qa | grep mysql
mysql-libs-5.1.66-2.el6_3.x86_64
mysql-devel-5.1.66-2.el6_3.x86_64
mysql-5.1.66-2.el6_3.x86_64
[root@localhost ~]# rpm -e mysql-libs-5.1