sponsored links

blog

暴笑的日记

November 3

How to open the dialog out of iframe by using jquery dialog

November 3
How to open the dialog out of iframe by using jquery dialog
The solution is from http://stackoverflow.com   Once, i want to trigger the dialog in iframe, and want it to be openned in the parent page. but it always displayed in the iframe.   Here is a solution to let it open in the parent page, not iframe, jus

Three linkage menu for Province, City, County

November 3
Three linkage menu for Province, City, County
To load adzone faster, we need to use ajax to load the province, city or county when it's parent changed. Here is the major code: 1. Main page <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8&

Display the google map in jQuery ui dialog

November 3
Display the google map in jQuery ui dialog
Use the default settings, the google map can be displayed in a separate page. But, can't be displayed in the jQuery dialog. After debug in Firebug, i found that the major javascripts are never be loaded, maybe the javascript functions are disabled wh

You should know this about google(plus)

November 3
You should know this about google(plus)
203.208.46.29 picadaweb.google.com203.208.46.29 lh1.ggpht.com203.208.46.29 lh2.ggpht.com203.208.46.29 lh3.ggpht.com203.208.46.29 lh4.ggpht.com203.208.46.29 lh5.ggpht.com203.208.46.29 lh6.ggpht.com203.208.46.29 lh6.googleusercontent.com203.208.46.29 l

Assign privilege to SA for drawing the relationship diagram in MsSQL

November 3
Assign privilege to SA for drawing the relationship diagram in MsSQL
When click "Database relationship diagram" in MsSQL, warning "此数据库没有有效所有者" will be shown up.To fix this issue, just execute below sql to assign the privilege:ALTER AUTHORIZATION ON database::YourDatabaseName TO sa

An effective way to use pattern to instead of multiple if else statements

November 3
An effective way to use pattern to instead of multiple if else statements
We often face many if-else statements during the development, that's a little boring.We can use pattern to change this, such as Strategy, and Command patterns.Here is an example for Command pattern:package com.stefli.test.pattern.ifelse; public class

Convert string to JSONObject by net.sf.json library

November 3
Convert string to JSONObject by net.sf.json library
Just for reminder.JSONObject json = (JSONObject) JSONSerializer.toJSON( jsonTxt );

You should know this about T &amp; F &amp; Y!

November 3
You should know this about T &amp; F &amp; Y!
Add below hosts, then you can access Twitter & Facebook.And please add "Https://" before the url if encountered the access issue.#twitter 199.59.148.84 oauth.twitter.com 199.59.148.84 twitter.com 199.59.148.84 www.twitter.com 199.59.148.84 a

Sample of HTML 5 game development

November 3
Sample of HTML 5 game development
Just a sample of HTML 5 game development.<!DOCTYPE html> <html> <head> <script type="text/javascript"> var VehicleGame = function() { var ctx; var goRight = false, goLeft = false, pause = false; var vx = 0, vy = 0, dx = 4

Create menu by javascript dynamically

November 3
Create menu by javascript dynamically
There are many ways to create menu dynamically:1. Split url by "/", then create menu for each part.You can search the solution from internet, there are many articles for reference.2. Create menu manually.<script type="text/javascript&quo

Keycode list

November 3
Keycode list
Just for reminder. key: { a: {code: 65}, b: {code: 66}, c: {code: 67}, d: {code: 68}, e: {code: 69}, f: {code: 70}, g: {code: 71}, h: {code: 72}, i: {code: 73}, j: {code: 74}, k: {code: 75}, l: {code: 76}, m: {code: 77}, n: {code: 78}, o: {code: 79},

消防安全培训总结

November 3
消防安全培训总结
  1. 哨子:对于家中有老人,特别是独居老人或有慢性病老人的的非常重要,一旦老人独自在家发生意外(摔伤.生病.紧急情况)而导致行动不便或无力呼救时,随手可拿的哨子将能够引起邻居或救援人员注意.如遇地震等情况,哨子也能够起到呼救功能.再配个手电给老人放床头.   2. 厨房:用肥皂水检查燃气管道是否泄露:将肥皂水抹在管道接口.阀门处,看是否出现气泡,如出现,立即关闭阀门并报修,电话:96777(可将此电话贴在管道可见处).   3. 家用电器:电视随时关闭,不要保留待机状态(将小红指示灯彻底关闭

&quot;your computer needs to restart&quot; when install Windows 8 on Virtualbox

November 3
&quot;your computer needs to restart&quot; when install Windows 8 on Virtualbox
When i install the Windows 8 Preview on Virtualbox, it always stopped at black screen with "your computer needs to restart, params.....". After some research on internet, i found the solution. Due to i'm using intel processer, and it supports vi

Set wlan for mobile devices in Wn7

November 3
Set wlan for mobile devices in Wn7
Add a bat file(wlan.bat) with content: netsh wlan set hostednetwork mode=allow ssid=testt key=12345678 netsh wlan start hostednetwork pause And execute it with administrator privilege. Then your mobile devices can find the wifi ssid.

Translate C++ Dijkstra to Javascript version

November 3
Translate C++ Dijkstra to Javascript version
The C++ Dijkstra is at: http://www.cnblogs.com/tanky_woo/archive/2011/01/19/1939041.html Calculate the path from 1 to 5! Here is the Javascript version which is translated from above version: <script type="text/javascript"> var maxnum = 10

如何用xmanager连接redhat9

November 3
如何用xmanager连接redhat9
1.选用PASSIV模式运行2.在Linux主机上设置 export DISPLAY=xxx.xxx.xxx.xxx:0.0(其中xxx.xxx.xxx.xxx就是你现在的windows 主机IP)3.连结LINUX主机的终端运行指令 startkde 一切就OK了 . 最简单的做法是在/etc/profile 里面加入这句话export KDESTARTSVR=xxx.xxx.xxx.xxxexport DISPLAY=$KDESTARTSVR:0.0以后登陆直接使用命令:startkde 就

基于SIP的集中式视频会议模型介绍

November 3
基于SIP的集中式视频会议模型介绍
近几年来,随着计算机技术.通信技术和互联网技术的飞速发展,视频会议的应用范围正逐渐从传统的专业领域.大型企业等高端用户向中小企业等普通用户和个人用户拓展.据有关机构的分析结果显示,2004年我国视频会议市场的规模已经达到18.7亿元,并以每年26%的速度递增,市场前景十分广阔. 本文主要介绍了一种基于SIP的集中式视频会议模型,并根据此模型设计了初步的实现方案,分析了此方案的工作原理.目前,IETF领导的对SIP会议模型的研究还处于草案阶段,并没有成为标准,因此,对SIP会议框架及其实现技术的研

支付宝大规模SOA系统(转载)

November 3
支付宝大规模SOA系统(转载)
  大家好,这里是首届QCon Beijing的现场,现在坐在我的旁边是的支付宝的首席架构师程立.先给大家介绍一下,支付宝架构发展到今天,经历哪些时期,都有哪些里程碑?我 回忆一下,支付宝系统架构发展大概有这么几点.我本人大概是2004年下半年参与支付宝系统建设的.当时的目标,支付宝系统是面向整个互联网,而不是淘宝 网内部的一个产品.那应该说是支付宝系统的一个起点,那当时非常的简单,就是一个应用程序,提供了我们所有的功能.功能也不多,有我们基本的支付功能,还 有清算的功能,基本的会员管理功能,包

LVS NAT模式简介

November 3
LVS NAT模式简介
 LVS 简称 Linux Virtual Server,在实际环境中经常作为B/S结构的网络应用中的负载均衡器来使用,工作在7层网络模型中的,网络层,也就是通常说的IP层,由于数据的处理是在Linux内核态完成的,所以性能很高,比起 Apache,Nginx,Haproxy来说,性能不在一个级别. 这里我简单画一下LVS在应用时的部署环境:  简单解释一下一个用户访问www.opencfg.com的流程: 1.用户在浏览器输入http://www.opencfg.com, 用户的电脑通过网络询