Peterson's algorithm (AKA Peterson's solution) is a concurrent
programming algorithm for mutual
exclusion that allows two processes to share a single-use resource without conflict, using only shar...
分类:
编程语言 时间:
2014-06-25 19:38:19
阅读次数:
748
今天,在项目中遇到一个问题,两个js页面要共享一个就js对象。js全局变量和静态变量都不行,其他苦逼的小农们就不要去强求了。而LZ又不想用cookie来存放,一是不安全,二个人喜好。最后发现一种超级方法来解决这个困扰,那就是用window.top['_CACHE']来存放这个变量,即可实现,不同Jsp页面直接的对象共享。
var share = {
/**
* 跨框架数据共享接...
分类:
Web程序 时间:
2014-06-25 06:44:55
阅读次数:
253
java可以实现对图片的裁剪功能么 代码下载地址:http://www.zuidaima.com/share/1550463233002496.htm...
分类:
编程语言 时间:
2014-06-24 23:41:07
阅读次数:
240
http://www.cnblogs.com/qingche/p/3727559.html1.前言 作为现在App里必不可少的用户分享需要,社交化分享显然是我们开发app里较为常用的。最近因为公司App有社交化分享的需要,就特此研究了会,拿出来与大家分享。想要集成社交会分享,我们可以使用Share....
分类:
移动开发 时间:
2014-06-24 23:13:07
阅读次数:
331
jsp有办法实现word/excel的在线预览吗?谁帮忙解决下呀.代码下载地址:http://www.zuidaima.com/share/1550463230954496.htm...
分类:
Web程序 时间:
2014-06-24 23:03:30
阅读次数:
211
那位帮忙提供一个java mongodb多个collection进行mapreduce的操作。代码下载地址:http://www.zuidaima.com/share/1550463227890688.htm...
分类:
数据库 时间:
2014-06-24 19:51:56
阅读次数:
262
【题目】
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one and sell one share of the stock multiple times). H...
分类:
其他好文 时间:
2014-06-24 19:40:53
阅读次数:
240
Thread 1 cannot allocate new log, sequence 415
Private strand flush not complete
Current log# 4 seq# 414 mem# 0: /dev/rora_redotb04
Thread 1 advanced to log sequence 415...
分类:
其他好文 时间:
2014-06-24 17:44:29
阅读次数:
285
[root@localhost~]#system-config-kickstartXlib:extension"RANDR"missingondisplay"localhost:10.0"./usr/share/system-config-kickstart/kickstartGui.py:103:GtkWarning:GtkSpinButton:settinganadjustmentwithnon-zeropagesizeisdeprecatedxml=gtk.glade.XML("/usr/share/s..
分类:
其他好文 时间:
2014-06-24 16:36:29
阅读次数:
553