码迷,mamicode.com
首页 >  
搜索关键字:struct2 container inject getinstance    ( 7511个结果
每日计划 - html+css作品 : CSS3动画实现钟摆效果
#container{ transition:all 3s; margin:-20px auto; width:1px; height: 500px; animation: around 8s infinite ease;} #line{width: 1p...
分类:Web程序   时间:2014-05-10 00:39:24    阅读次数:4537
[ios5 cocos2d游戏开发实战] 笔记3-FileUtils, notificationCenter
FileUtils//文件管理工具FileUtils::getInstance()std::string getStringFromFile(const std::string& filename);//读取文件中的字符串Data getDataFromFile(const std::string&...
分类:移动开发   时间:2014-05-08 23:00:07    阅读次数:419
LeetCode Container With Most Water
class Solution{ public: int maxArea(vector& height) { int len = height.size(), low = 0, high = len -1 ; int maxArea = 0; ...
分类:其他好文   时间:2014-05-08 10:23:54    阅读次数:287
山寨版QQ
登录界面: import java.awt.BorderLayout; import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.PreparedStatement; ...
分类:其他好文   时间:2014-05-08 00:10:47    阅读次数:617
Android自定义TabActivity(实现仿新浪微博底部菜单更新UI)
如今Android上很多应用都采用底部菜单控制更新的UI这种框架,例如新浪微博 点击底部菜单的选项可以更新界面。底部菜单可以使用TabHost来实现,不过用过TabHost的人都知道自定义TabHost究竟是有多麻烦的,原生TabHost的风格是不依附屏幕的底部的,要依附底部就要重写布局。 TabHost设置的Container可以管理UI的显示,UI可以用LayoutInflater动态生成,也可以是Activity,但不好管理Activity的生命周期。然后用TabHost控制显示UI的显示。...
分类:移动开发   时间:2014-05-07 13:32:36    阅读次数:465
hadoop yarn running beyond physical memory used
老是报物理内存越界,kill container,然后把yarn.scheduler.minimum-allocation-mb设成2048就好了跟这个yarn.nodemanager.pmem-check-enabled参数应该也有关系在这篇文章中得到启发:http://bise.aliapp.c...
分类:其他好文   时间:2014-05-07 02:15:35    阅读次数:409
内核链表list.h
stddef.h #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) kernel.h /** * container_of - cast a member of a structure out to the containi...
分类:其他好文   时间:2014-05-07 02:10:07    阅读次数:410
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the
Sys.Application.add_load(function() { var form = Sys.WebForms.PageRequestManager.getInstance()._form; form._initialAction = form.action = window.location.href; }); if (!documen...
分类:Web程序   时间:2014-05-06 23:36:38    阅读次数:408
no view for id xxx for fragment错误
用tabhost时,动态添加fragment,从网上找了好多处理结果还是不行。结果是在fragment中   返回的view   View v=inflater.inflate(R.layout.fragment2, container);这个方法需要三个参数才行,添加最后一个参数 View v=inflater.inflate(R.layout.fragment2, container,fals...
分类:其他好文   时间:2014-05-06 19:41:21    阅读次数:293
手动搭建struct2中碰到的一点问题
手动搭建struct2的时候,总是会碰到找不到Filter的问题,到底是怎么回事呢? 其实,关键就在于导入的五个jar包,我们最好是将它放在web-inf目录下,然后再组织导入,这样web.xml才能顺利找到。 至于struct.xml,目前放在src目录下就好。 自己的技术水平一向让自己无语,碰到这样个问题都得搞半天……...
分类:其他好文   时间:2014-05-06 15:31:26    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!