Marks Distribution
Time limit: 3.000 seconds
In an examination one student appeared in N subjects and has got total T marks. He has passed in all the Nsubjects where minimum mark for passing
i...
分类:
其他好文 时间:
2014-10-13 21:55:37
阅读次数:
259
Linux下mysql安装完后是默认:区分表名的大小写,不区分列名的大小写; root登录,修改/etc/my.cnf,在末尾添加一行:lower_case_table_names=1 lower_case_table_names参数:?0为敏感,1为不敏感。 MySQL在L...
分类:
数据库 时间:
2014-10-13 20:09:47
阅读次数:
292
今天非常有挫败感,啥都没做,配了一天的环境,结果还不行,现在卡在这个问题了,mark下。看看明天能不能搞定,今天先做点其他的,不然一天就这样子耗完了,太不值了。问题是:导入模块时,为什么会出现“undefined symbol: PyUnicodeUCS2*”错误 (转自http://chinaah...
分类:
其他好文 时间:
2014-10-12 20:20:18
阅读次数:
198
主要是今天看到论坛有人问这个问题,帮忙解决之后, 顺便Mark下。很简单, 代码写的很清楚。 直接上代码。UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 300, 50)];
label.text = @"今天下午全市多云到阴有阵雨或雷雨,今天夜里到明天阴有阵雨,雨量可达大雨。 东北风5-6级阵风7级,...
分类:
移动开发 时间:
2014-10-11 17:21:36
阅读次数:
243
Mark一下, 今天确实用这个方法找到了问题 http://www.iteye.com/topic/1114219 1. top找到目标进程,记下pid 2. top –p pid, 并用shift+h打开线程模式 这样可以看到这个进程中,到底哪个线程占用大量cpu 记下threadid,tid 3...
分类:
Web程序 时间:
2014-10-10 19:09:24
阅读次数:
145
接下来介绍几种PNG图片在IE6中不透明的解决办法1、用自己的PNG,让IE6一边去吧首先制作PNG图片的时候,另存为一个GIF图片,因为IE6是支持GIF图片透明,然后在css定义.pngtest{ background:url(mark.png); _background:url(mark.gi...
分类:
Web程序 时间:
2014-10-10 17:16:44
阅读次数:
231
网上一位前辈高人的一段精髓代码让我眼前一亮……ShellExecute(NULL,"open","explorer.exe","/select,C:\\a.txt",NULL,SW_SHOWNORMAL);这段代码实在是太好用了,在此mark一下。网上还有其他的代码,比如SHOpenFolderAn...
#pragma mark - 通过控件获取cell-(UITableViewCell*)GetCellFromTableView:(UITableView*)tableView Sender:(id)sender { CGPoint pos = [sender convertPoint:CGPoi....
分类:
其他好文 时间:
2014-10-09 22:41:57
阅读次数:
188
#pragma mark -- UIScrollViewDelegate 代理
#pragma mark 去掉UItableview headerview黏性(sticky)
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
CGFloat sectionHeaderHeight = 40;
if (s...
分类:
移动开发 时间:
2014-10-08 15:07:05
阅读次数:
473