C******e 发帖数: 1850 | 1 请教大侠们一个文件IO的问题,我有一段程序要读出一个文件里的数据进行处理,但由
于文件很长,
所以想用一个CALLBACK函数专门来分批的读文件,每次读一段。主程序处理完了现有的
数据,就让
CALLBACK去读下一块。思想如下:
int callback(int **databuf, void* userdata)
{
state = userdata;
fseek(state->fp, OFFSET, 0);
r = fread();
return r;
}
main()
{
declare userdata;
userdata.fp = fopen("file","r");
datastruct = function1(par1, par2, ..., &callback);
for(;;)
dataprocess(datastruct);
fclose(userdata.fp);
}
但是好像不对,一运行就死了,请大侠指正。多谢了。 |
|
t*********e 发帖数: 630 | 2 package org.converter;
import java.net.URI;
import java.net.URISyntaxException;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;
@FacesConverter("org.converter.UrlConverter")
public class UrlConverter implements Converter {
@Override
public Object getAsObject(FacesContext facesContext,
... 阅读全帖 |
|
r*****s 发帖数: 985 | 3 或者tomcat的CLASSPATH应该怎么设?
An error occurred at line: 1 in the jsp file: /jsp/GetName.jsp
Generated servlet error:
/.../jsp/GetName$jsp.java:56: Class org.apache.jsp.UserData not found.
UserData user = null;
^
Here I defined a class UserData. Where should I put it to? I just installed
a new tomcat 4.0.3. I haven't changed any path yet.
请大虾们指教! 多谢了. |
|
t*********e 发帖数: 630 | 4 package org.converter;
import java.net.URI;
import java.net.URISyntaxException;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;
@FacesConverter("org.converter.UrlConverter")
public class UrlConverter implements Converter {
@Override
public Object getAsObject(FacesContext facesContext,
... 阅读全帖 |
|
l**t 发帖数: 64 | 5 谁说一定出现段错误,搞缓冲区溢出攻击的人岂不死绝了
举个最简单的例子:
void BufferTest()
{
char prompt[] = "input:";
char userdata[1];
strcpy(userdata, "bhello!");
printf("%s", prompt); //变成"hello!"
}
如果把填入userdata的数据再搞大点,里面加点自己的代码,可以把栈里函数返回地址
冲掉成自己的代码的入口地址,然后执行代码
系统里每个内存页面都有属性,比如只读,可写,可执行,如果用户对只读的页面做写
操作,或者超过权限访问内核页面,等等,就会引发系统异常 |
|
F***Q 发帖数: 6599 | 6
easy
first, use treesizefree to find out all your "hidden treasures".
https://www.jam-software.com/treesize_free/
then, move a big non-system folder to another drive (for example, move c:\
Users\myname\mydata to d:\userdata), then type
mklink /j c:\Users\myname\mydata d:\userdata
in a command window (win+R and type "cmd" followed by enter) to create a
junction (or link).
if one is not enough, move more.
I only use this approach as my last resort. before coming to this step, I
will try disk cl... 阅读全帖 |
|
t*******y 发帖数: 21396 | 7 https://medium.com/@topjohnwu/huaweis-undocumented-apis-a-backdoor-to-
reinstall-google-services-c3a5dd71a7cd
Huawei’s Undocumented APIs — A Backdoor to Reinstall Google Services
by John Wu
Ever since news broke out that Huawei’s latest flagship smartphone would
not be allowed to ship with Google services due to the U.S. trade ban (
source: Reuters), people were curious about the impact to sales, and how the
Chinese tech giant will react.
After the unveiling event, media got their hands on the “... 阅读全帖 |
|
B******Q 发帖数: 58 | 8 这个是大智慧的.
注意!!! 如果你的"自选股8"已经设有股票,请将此文件改名 (改成你不用的自选股#).
否则后果自负!!!
俺刚刚试用大智慧, 所以连新增自选目录都不会. 不过我发现dzh里已经有自选1-8. 所
以操作更简单:
把这个文件 (改名后的!!!) 复制到大智慧的 \userdata\block 里面, 然后打开大智慧. 打开相应
的自选股版块. 因为不经常用大智慧, 可能会有错. 大家帮忙检查一下.
不知道千户用matlab是在大智慧的哪个阶段? |
|
j**y 发帖数: 462 | 9 still hiring, thanks guys for sending me resume, good luck for all of us!
some guys have started onsite already.
DevOps
The ideal candidate will be a Linux system administrator coder with hands-on
experience supporting highly available production systems. They are
passionate about authoring tools to reliably manage infrastructure.
Responsibilities
Linux systems operations architecture and setup
Systems monitoring and alerting strategies and implementation
Design, implement and maintain our syste... 阅读全帖 |
|
j**y 发帖数: 462 | 10 still hiring, thanks guys for sending me resume, good luck for all of us!
some guys have started onsite already.
DevOps
The ideal candidate will be a Linux system administrator coder with hands-on
experience supporting highly available production systems. They are
passionate about authoring tools to reliably manage infrastructure.
Responsibilities
Linux systems operations architecture and setup
Systems monitoring and alerting strategies and implementation
Design, implement and maintain our syste... 阅读全帖 |
|
|
|
|
M*********8 发帖数: 15312 | 14 Loreal $10 rebate wyb $30 revitalift products
有效期:purchase made by 9/30/2010, mail by 10/23/2010
厂家:Loreal
form来源:http://www.lorealparisusa.com/_us/_en/default.aspx#/#/?page=top{userdata//d+d//|diagnostic|main:brandpage:advancedrevitalift|media:_blank|nav|overlay:revitalift_rebate}
胖子来源:RP
deal:RA据说有? |
|
|
i****y 发帖数: 316 | 16 【 以下文字转载自 LanZhu 俱乐部 】
发信人: ificcy (ificcy), 信区: LanZhu
标 题: shampoo Sample and save on jet setting essentials--from loreal
发信站: BBS 未名空间站 (Fri Jul 29 15:11:24 2011, 美东)
http://www.lorealparisusa.com/_us/_en/#/?page=top{userdata//d+d |
|
z**p 发帖数: 6 | 17 代友发文,请勿拍砖,谢谢!
安徽省政府新闻发布会
以全球视野招引人才团队 为创新安徽建设集聚力量
新闻发布人:安徽省科技厅副厅长 罗平
(2014年4月22日)
http://www.ah.gov.cn/UserData/DocHtml/1/2014/4/22/1833005645486
各位新闻界的朋友:
大家好!
首先,感谢并欢迎各位参加今天的新闻发布会。为贯彻党的十八大及十八届三中全
会精神,实施创新驱动发展战略,安徽省委、省政府于今年2月份出台了《关于实施创
新驱动发展战略进一步加快创新型省份建设的意见》,省政府办公厅同时颁布了《安徽
省扶持高层次科技人才团队来皖创新创业实施细则》等六个配套文件,下面,我就扶持
高层次科技人才团队来皖创新创业政策的相关情况,向新闻界的朋友们作一通报。
实施创新驱动发展战略,人才是关键。近年来,省委、省政府高度重视创新人才的
引进和培养工作,省委书记张宝顺多次在全省性重要会议上强调人才工作,并提出要求
,深入基层调研时经常看望慰问人才,他要求把人才工作作为“硬任务”,出实招、办
实事、见实效。省委、省政府先后出台了一系列吸... 阅读全帖 |
|
|
C*******C 发帖数: 723 | 19 有不同level的。。。有人不爱留时间长。。。
你要希望长,用permanent的。。。。
Superior preference
http://www.lorealparisusa.com/_us/_en/default.aspx#/?
page=top{userdata//d+d//|diagnostic|main:brandpage:superiorpreference|medi
a:_blank|nav|overlay:_blank}
再说了,长出来新的又要染, 你要它留那么长干吗?
L'oreal主要是感觉对头发伤害小。。。也许也是为什么留时间短吧。。。
不过也许大家说得花王不错,我没用过。。。(因为决定不染头发了。。。染了快十年了发现染拉就没
完没了。。。呵呵) |
|
c****y 发帖数: 246 | 20
page=top{userdata//d+d//|diagnostic|main:brandpage:superiorpreference|medi
这个太黄了呀
:(
我就想要个不明显的 |
|
C*******C 发帖数: 723 | 21 在superior preference 里有无数颜色选呀。。。
page=top{userdata//d+d//|diagnostic|main:brandpage:superiorpreference|medi |
|
a***8 发帖数: 4735 | 22 There are different type of primer available for different skin concern. UV
protection, smoth pores, or just keep the foundation to stay longer on your
face.
I have been using laura mercier foundation primer oil free version for about
two years now. It is good product.
Sorry the only YSL product i have is the lipstick, so no comment for the pen
. Actually, L'Oreal has something smiliar come out recently and in a much
reasonable price. It is called Megic Lumi highlighter
http://www.lorealparisus... 阅读全帖 |
|
m*d 发帖数: 7658 | 23 你需要退出xbmc再进去,就看不见beta了吧
实在不行把userdata\database\Addons15.db删了看看 |
|
p**p 发帖数: 10318 | 24 Here is the music:
http://netcity6.web.hinet.net/UserData/ken790/ken001/004.rmj
Here is the lyric:
Take A Look At Me Now
(feat. Mariah Carey)
[Shane:]
How can I just let you walk away,
Just let you leave without a trace,
When I'm standing taking every breath,
With you, ooohhh,
You're the only one who really knew me,
At all.
[Mariah:]
How can you just walk away from me,
When all I can do is watch you leave,
Cause we shared the laughter and the pain,
And even shared the tears,
You're the only one |
|
x*******z 发帖数: 27 | 25 Windows 序列号在操作系统中的位置
Windows 98的安装序列号:
1、在能进入操作系统的前提下打开注册表编辑器,展开
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion分支,在右侧窗口中
找到“ProductKey”字符串值,它的键值就是序列号!
2、如果进入不了操作系统可以在DOS下查看Windows 98 的序列号:用启动盘启动电脑,
然后输入C:\Windows\Command\Find/l “ProductKey” C:\Windows\System.dat(假设C
盘为系统盘),回车后就会显示出Windows 98的序列号了。
Windows 2000\XP\2003的安装序列号:
1.
上述方法1依然有效
2.
进入Windows 2000的系统安装文件夹,打开\System32文件夹,找到$winnt$.inf文件,直
接双击用记事本打开,[userdata]小节“Productid=”后面引号中的字符串,就是
Windows 2000的序列号!XP和2003都一样。不过某些系统可能没有这项 |
|
r*****j 发帖数: 7481 | 26 进去windows安装的那个分区,我是C分区,
然后进Users-->your user name-->AppData-->Local-->google-->Chrome-->UserData-
->PepperFlash
打开文件夹后,你应该有一个文件夹,我的是11.6.602.167文件夹,
然后右键--》Properties-->security tab,
里面有个permissions,设置所有人都有permissions for system.
在edit里面,我基本上所有的 组都打勾了,然后就可以已使用了。
如果你觉得很麻烦的话,那还有一个简单的方法,就是让chrome run as
administrator |
|
|
m********5 发帖数: 17667 | 28 0.4.1版,不知道什么问题
很多拼音直接认不出,比如: `yue`
根本显示不出任何字,类似的情况还有很多,常用音打不出来。
升级之前好好的。
不知道有没有人遇到类似问题
删了所有userdata还是没用,看来不是词库问题。 |
|