由买买提看人间百态

topics

全部话题 - 话题: 000000
首页 上页 1 2 3 4 5 6 7 下页 末页 (共7页)
l**x
发帖数: 86
1
前两天在lenovo outlet 买了个X1 Carbon 2,全新的,不是翻新的那种,至少Title上
写的是。
结果今天刚收到,初始化启动之后,发现admin需要密码登陆,还有个OIT账户,也需要
密码,研究了一晚上也没登陆成功(admin, 000000都实验了,没有用),我在想是不
是卖给我了一个翻新机???不会这么背吧。。
另外,有个ATT的Simcard,说什么Activate Lenovo,打了电话又打不通。。。。这是
要闹哪般?难道必须开通什么 mobile broadband service才让我登陆我的新电脑吗?
???
求高人解答。。。。
j****h
发帖数: 219
2
来自主题: Hardware版 - 1080显卡挖了一天的ethereum
一个 1050 ti, 都有 13 Mh/s. 每天还赚 1 美元。
Period ETH BTC USD
Minute 0.00000 0.000000 0.000
Hour 0.00004 0.000004 0.043
Day 0.00113 0.000108 1.053
Week 0.00791 0.000761 7.374
Month 0.03390 0.003263 31.604
S*A
发帖数: 7142
3
来自主题: Linux版 - quick question, timer on multi-core
It depends on which timer resource you are using.
You can register many different timer resource
and the system will pick on of the best.
In my machine, I have this in dmesg:
[ 0.000000] hpet clockevent registered
[ 0.731028] Switching to clocksource tsc
So the it will be getting the tsc from the current
core.
r***e
发帖数: 2000
4
来自主题: Linux版 - quick question, timer on multi-core

thank you, I did that on my computer,
========
$ dmesg | grep clock
[ 0.000000] hpet clockevent registered
[ 0.308020] Switching to clocksource tsc
[ 0.648807] Switching to clocksource hpet
[ 0.689338] rtc_cmos 00:03: setting system clock to 2011-02-16 02:06:08
UTC (1297821968)
========
What does that (two switching) mean?
d******i
发帖数: 7160
5
来自主题: Linux版 - debian上时钟总设不上...
前面时间对的呀:
root@dsdebian:~# dmesg | grep 2013
[ 0.000000] Linux version 2.6.32-5-kirkwood (Debian 2.6.32-48) (ben@
decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 Sat Feb 16 04:43:
37 UTC 2013
d******i
发帖数: 7160
6
来自主题: Linux版 - debian上时钟总设不上...
前面时间对的呀:
root@dsdebian:~# dmesg | grep 2013
[ 0.000000] Linux version 2.6.32-5-kirkwood (Debian 2.6.32-48) (ben@
decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 Sat Feb 16 04:43:
37 UTC 2013
s*****l
发帖数: 2041
7
来自主题: Linux版 - Debian不能播放1080p的mkv文件
呵呵,多谢耐心解答。如下是avconv输出信息:
avconv version 0.8.16-6:0.8.16-1, Copyright (c) 2000-2014 the Libav
developers
built on Sep 16 2014 23:10:48 with gcc 4.7.2
[matroska,webm @ 0x1ff34c0] Unknown/unsupported CodecID V_MPEGH/ISO/HEVC.
[matroska,webm @ 0x1ff34c0] max_analyze_duration reached
[matroska,webm @ 0x1ff34c0] Estimating duration from bitrate, this may be
inaccurate
Input #0, matroska,webm, from '阿 f 达 A vatar.2009.BluRay.1080p.DTS.x265-
CHD.mkv':
Duration: 02:41:41.69, start: 0.000000, bitrate:... 阅读全帖
w*******t
发帖数: 960
8
来自主题: Linux版 - ubuntu这个崩溃法什么原因?
看下面log,倒是第二行是机器最后手动重启前的最后一条记录
系统其实是ubuntu的变种 mint 17
kernel 3.16
cpu j1900
这种情况是不是该upgrade kernel?多谢
==========================================================================
Nov 6 22:16:29 JCC-File kernel: [ 26.152724] usbcore: registered new
interface driver xpp_usb
Nov 6 17:24:51 JCC-File kernel: [ 4136.499882] perf interrupt took too long
(2555 > 2500), lowering kernel.perf_eve$
Nov 6 18:27:52 JCC-File kernel: [ 7924.561172] perf interrupt took too long
(5012 > 5000), lowering kernel.perf_e... 阅读全帖
l*0
发帖数: 19
9
来自主题: Programming版 - C++文件读取数值问题
现在有一个文件(a.txt)格式如下:
30
0 1.000000
0.5 0.975310
1 0.951229
1.5 0.927743
2 0.904837
2.5 0.882497
3 0.860708
3.5 0.839457
4 0.818731
4.5 0.798516
5 0.778801
5.5 0.759572
第一行为一个整数,以后每行都有两个double的数,用tab格开,
请问如何把这个文件内容读入到
int m(第一行那个数值)
double a[] 每行第一个数
double b[] 每行第二个数
有没有人帮忙写个小程序实现一下啊?多谢!!
c***g
发帖数: 472
10
来自主题: Programming版 - 谁帮我解释一下这个代码
#include
#include
main(){
typedef union {
int a;
char b[10];
float c;
}
Union;
Union x,y ={100};
x.a = 50;
strcpy(x.b,"hello");
x.c = 21.50;
printf("Union x: %d %s %f \n",x.a,x.b,x.c);
printf("Union y: %d %s %f \n",y.a,y.b,y.c);
}
为什么我的输出是
Union x: 1101791232 21.500000
Union y: 100 d 0.000000
g*********s
发帖数: 1782
11
来自主题: Programming版 - double转换int的问题
出现了这样的情况:double = 28032400.000000,int = 28032399。怎么回事呢?
w***g
发帖数: 5958
12
来自主题: Programming版 - C++怎么不打印小数结尾的0
这个页面上这些我都知道,Google和C++手册我也查过,但都不解决问题。下面是我的测
试程序。我希望的输出是
1. Hello, world!
但是事实上我得到的是
1.000000 Hello, world!
setprecision在这儿没用,因为如果我用setprecision(1),则打印3.14的时候就会精
度不够。我需要产生一个MPS输入文件,所以才需要用到这么变态的格式。其实多加几
个0没什么区别,只是C++的格式化I/O不能做到某些事情让我很不爽。
#include
#include
using namespace std;
int main ()
{
cout << left << fixed << showpoint << setw(12);
cout << 1.0 << "Hello, world!" << endl;
return 0;
}
b***y
发帖数: 2799
13
来自主题: Programming版 - [合集] float data type question
☆─────────────────────────────────────☆
Savant (期待奇迹中) 于 (Sun Sep 18 22:35:12 2005) 提到:
i have two lines of code as:
//////
float myFloat = 99999999;
printf("%f", myFloat);
//////
it gives 100000000.000000
i am really confused about the result. does somebody have experience on this?
how can i resolve this (giving the correct output) without changing the data
type
to integer or double? thanks.
☆─────────────────────────────────────☆
thrust (Thrust Jaeina) 于 (Mon Sep 19 00:23:48 2005) 提到
b********e
发帖数: 58
14
来自主题: Programming版 - no log2() in visual studio, only log() ?
Actually, for the specific example, I got 3.000000 on my machine. If you are
only concerned with integer numbers and very sticky on the precision of the
result, maybe log function (no matter what the base is) is not your choice.
Good luck.
w***g
发帖数: 5958
15
来自主题: Programming版 - 问个编程算法题
假设你所要的函数为 f(N, k), k为最高位1的位置-1,不知道的话就按数据类型设成3
1或63.
举个例子吧。用二进制表示 N = 1011001 (共7位), 求f(N, k=6).
先数整的,从000000 数到 111111 (六个1)。这些数里面出现了所有可能的01组合,所
以1的个数为 k * 2^k / 2 (每个数k=6位,一共有2^k个数,其中一半是1).
然后数1000000到1011001。另N' = N - (1 << k) = 11001。所有这些数的第一位都是1
,所以有N' + 1个1, 再加上从0数到N'出现的1的个数f(N',k-1)
这样就可以递归了
f(N, k) {
if (k == 0) return N;
b = N >> k; // 最高为是0或者1
N' = N - b * (1 << k);
return b * (k * (1 << k-1) // 整的
+ N' + 1) + f(N', k-1); // 零的 // hatemaths指出错误,已改正
}
一共递归k次,k=log N,... 阅读全帖
P********e
发帖数: 2610
16
来自主题: Programming版 - 问个编程算法题
better than 0(logN), contest的解法。

假设你所要的函数为 f(N, k), k为最高位1的位置-1,不知道的话就按数据类型设成3
1或63.
举个例子吧。用二进制表示 N = 1011001 (共7位), 求f(N, k=6).
先数整的,从000000 数到 111111 (六个1)。这些数里面出现了所有可能的01组合,所
以1的个数为 k * 2^k / 2 (每个数k=6位,一共有2^k个数,其中一半是1).
然后数1000000到1011001。另N' = N - (1 << k) = 11001。所有这些数的第一位都是1
,所以有N' + 1个1, 再加上从0数到N'出现的1的个数f(N',k-1)
这样就可以递归了
f(N, k) {
if (k == 0) return N;
b = N >> k; // 最高为是0或者1
N' = N - b * (1 << k);
return b * k * (1 << k) // 整的
+ N' + 1 + f(N', k-1); // 零的
}
h**j
发帖数: 2033
17
来自主题: Programming版 - Cassandra returns null row keys?
OperationResult> result = keyspace
.prepareQuery(cf).withCql(String.format("SELECT * FROM users
"))
.execute();
cqlsh:testks> DESCRIBE COLUMNFAMILY users;
CREATE TABLE users (
user_id int,
fname text,
lname text,
PRIMARY KEY (user_id)
) WITH
bloom_filter_fp_chance=0.010000 AND
caching='KEYS_ONLY' AND
comment='' AND
dclocal_read_repair_chance=0.000000 AND
gc_grace_seconds=864000 AND
index_interval=128 AND
read_repair... 阅读全帖
b*********n
发帖数: 2284
18
来自主题: TeX版 - 用xelatex出现问题
第一次用xelatex,才发现这个东西很难用,始终编译不过去。
请教一下谁知道这两个错误是怎么回事。
\char_make_active:n{"
20}%
! Undefined control sequence.
l.974 \tl_new:Nn
\g_fontspec_hexcol_tl {000000}
gw
发帖数: 2175
19
来自主题: Windows版 - latex => winxp+ winedt+yap 0.98 + gs8.11
为什么不能显示 latex 里的想欠的eps文件呀?
用dvipdf生成的PDF文件里也没有图.其他正常.
同样的latex文件在 linux 下 latex + dvipdf能显示图形.
logbook里有这样的信息:
....
phvr8r: checksum mismatch
32: no glyph!
Sending D:\Program Files\texmf\dvips\base\tex.pro...
d:\PROGRA~1\gs\gs8.11\bin\gswin32c.exe -I"d:\program
files\gs\gs8.11\lib;d:\program files\gs\fonts;d:\program
files\gs\gs8.11\Resource" -r75.000000x75.000000 -g876x619 -sDEVICE=bmp256 -q
-DBATCH -dNOPAUSE -dSAFER -sOutputFile=andle -start:
d:\PROGRA~1\gs\gs8.11\bin\gswin32c.exe -I"d:\progra
h*****x
发帖数: 47
20
谁知道用excel怎么做这题?下面是一道例题,解法一模一样,只有future value不一
样,是$80000 ,所以用excel算得annual return是5.47%,请查看例题。
虽然有这个例题,可是老师把formula给删除了,所以,我不知道那个5.47%是怎么算出
来的。
例题:
Return on Investment 5.472432%
Post Retire Return 5.472432%
Cost of Living Adjustment 0.000000%
First Contirbution $5,000
First Withdrawal $0
Total Contribution $304,000
Age Beginning Balance Returns (%) Dollar Return Annual Contribution Ending
Balance
26 $0.00 5.47% $- $5,000 $5,000.00
27 $5,000.00 5.47% $273.6
K****n
发帖数: 5970
21
看,这就是google这个网站全部的源代码:
大哥大嫂过年好!
content="text/html; charset=UTF-8">Google