上一页 1 2 3 4 5 6 7 ··· 455 下一页
Linux网络设备驱动架構學習(二)接下來會從以下幾個方面介紹網絡設備驅動的編寫流程:1、網絡設備的註冊與註銷2、網絡設備的初始化3、網絡設備的打開與釋放4、網絡數據發送流程5、網絡數據接收流程6、網絡連接狀態7、網絡參數設置和統計數據瞭解了這幾部份內容,網絡設備驅動的編寫方法也就基本明白了網絡設備的註冊與註銷 网络设备驱动的注册与注销使用成对出现的register_netdev()和unregister_netdev()函数完成,这两个函数的原型为:int register_netdev(struct net_device *dev);void unregister_netdev(struc Read More
posted @ 2013-08-09 23:40 javawebsoa Views(307) Comments(0) Diggs(0) Edit
这道题是长沙邀请赛的题,当时是道签到题。这种题还是很常见的,讲一下思路。首先是预处理出每个宝藏之间的距离,还有到边的距离,直接对每个宝藏进行一次SPFA就可以了。然后就是经典的求TSP的过程。#include #include #include #include #include #include #include #include #include #include #include #include #define Max 2505#define FI first#define SE second#define ll long long#define PI acos(-1.0)#defin Read More
posted @ 2013-08-09 23:38 javawebsoa Views(237) Comments(0) Diggs(0) Edit
本篇文章讲述了不使用java代码来改变 Button 按下和未按下时的背景。首先准备两张图片, 分别是按钮按下和按钮未按下的。在res/drawable 文件夹中创建一个button_selector.xml 文件, 内容如下: 再把目标按钮的背景换成android:background="@drawable/button_selector"即可。 Read More
posted @ 2013-08-09 23:36 javawebsoa Views(552) Comments(0) Diggs(0) Edit
第四章中提到了通过CompressionCodec对streams进行压缩和解压缩,并提供了示例程序:输入:标准输入流输出:压缩后的标准输出流// cc StreamCompressor A program to compress data read from standard input and write it to standard outputimport org.apache.hadoop.conf.Configuration;import org.apache.hadoop.io.IOUtils;import org.apache.hadoop.io.compress.Compre Read More
posted @ 2013-08-09 23:34 javawebsoa Views(310) Comments(0) Diggs(0) Edit
130808 23:30:23 [Warning] Disk is full writing './mysql-bin.000063' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space) 130808 23:30:23 [Warning] Retry in 60 secs. Message reprinted in 600 secs 130808 23:40:23 [Warn Read More
posted @ 2013-08-09 23:32 javawebsoa Views(366) Comments(0) Diggs(0) Edit
1.发布到 ipad字体显示不出来,改变Position位置的Z轴为-12.发布打包有问题,记得用户权限有没有设置3.ipad4分辨率:2048*15364.调整界面大小,尽量调整底下子对象位置5.Anchor->offset->(锚定位置,让位置固定)6.加载fbx模型不能太大,ipad运行不了,塌陷下就可以用7.reset panning 复位平移8.在prefab上右击导出package,会自动关联到所有该prefab调用的资源并导出。如果导出场景,就在场景文件上右击导出,场景内的所有资源关联都不应该丢失。9.物体重新设置位置,相对坐标(记得移除位置编译脚本)btn1.tra Read More
posted @ 2013-08-09 23:30 javawebsoa Views(219) Comments(0) Diggs(0) Edit
调用这个函数function refresh(){ history.go(0); }实现了地图新建 Read More
posted @ 2013-08-09 23:28 javawebsoa Views(220) Comments(0) Diggs(0) Edit
";echo "文件名大小类型修改日期";while ($file = readdir($open_dir)) { if ($file!= "." && $file != "..") { echo "" . $file . ""; echo "" . filesize($file) . ""; echo "" . filetype($file) . ""; echo "" Read More
posted @ 2013-08-09 23:25 javawebsoa Views(200) Comments(0) Diggs(0) Edit
本例提供的是通过查表发来实现CRC校验。CRC余式表如下:unsigned int crctab[256] ={/*CRC余式表 */0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6,0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc3 Read More
posted @ 2013-08-09 23:23 javawebsoa Views(977) Comments(0) Diggs(0) Edit
Android记录3--ExpandableListView使用+获取SIM卡状态信息 2013年8月9日Android记录ExpandableListView是一个可以实现下拉列表的控件,大家可能都用过QQ,QQ中的好友列表就是用ExpandableListView实现的,不过它是自定义的适配器。本篇博客除了要介绍ExpandableListView的使用,还整合了获取SIM的状态,这个很简单也就是获取系统服务,再调用相应的方法就可以实现,在这里只是记录一下。本票博客要实现效果图如下: 除了子列表不怎么好看之外,组列表还是蛮好看的,这里只是为了演示,子列表就没做特... Read More
posted @ 2013-08-09 23:21 javawebsoa Views(380) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 7 ··· 455 下一页