由买买提看人间百态

topics

全部话题 - 话题: unpacked
首页 上页 1 2 3 4 5 6 7 8 9 下页 末页 (共9页)
g*********s
发帖数: 1782
1
【 以下文字转载自 Java 讨论区 】
发信人: gandjmitbbs (Nothing), 信区: Java
标 题: Help: how to use Eclipse as C++ IDE in Linux?
发信站: BBS 未名空间站 (Tue Jan 8 14:20:38 2008)
Redhat Enterprise 4.0 x64.
Downloaded and unpacked Eclipse. When running it, got the following error
message consistently. Is there any setting that I need to modify to install
Eclipse? Any other free C++ IDE in Linux to recommend? Thanks a lot!
JVM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m
-jar /home/f
f*********u
发帖数: 455
2
来自主题: Programming版 - GNU make problem of Solaris
I want to install lapack into a Solaris machine. However, when i unpack the
source code and try to compile the files for LAPACK, i always met with such
a problem in SRC/Makefile
( cd SRC; make )
make: Fatal error in reader: Makefile, line 75: Unexpected end of line seen
(the line of ifdef USEXBLAS)
Current working directory /home/wliu/lapack-3.2.2/SRC
*** Error code 1
make: Fatal error: Command failed for target `lapacklib'
I almost went crazy. I delete all the multilines since it is said that m
b******n
发帖数: 592
3
来自主题: Programming版 - 请教一个命名的问题
pack, unpack for variable to structure
toString fromString for string to variable
or you can use words such as dump, copy
you shouldn't worry about the length of a name, using precise name
is more important anything else.
l*****r
发帖数: 15615
4
来自主题: Programming版 - python question, easy one
well, you could explain better just saying somthing like
pack the list into binary then unpack them;
but throwing out web links, didn't really help.
and you have more WB than me, so I guess you will be fine if I don't pay you
any.
w******p
发帖数: 166
5
来自主题: Programming版 - python question
several ways with s='0001001101111111'
''.join(x if i%4 or i==0 else '-'+x for i,x in enumerate(s))
'-'.join(['{0:04b}'.format(int(x,16)) for x in "%x"%(int(s,2))])
reduce(lambda x, y: x+'-'+y, [s[i::4] for i in range(len(s)/4)])
import re; re.sub(r'(....)', lambda x: '-'+x.group(0), s)[1:]
import struct; '-'.join(struct.unpack(">"+"4s"*(len(s)/4),s))
w*s
发帖数: 7227
6
perl very simple,
# this sub converts a dotted IP to a decimal IP
sub ip2dec ($) {
unpack N => pack CCCC => split /\./ => shift;
}
can python do it ?
p**o
发帖数: 3409
7
import struct
import socket
def inet_atoi (ipstr):
""" Converts xxx.xxx.xxx.xxx IPv4 string to a 32-bit int.
"""
#Equivalent pure Python implementations:
#lambda ipstr: reduce(lambda x, y: (x << 8) | y,
# map(int, ipstr.split('.')))
#lambda ipstr: long(''.join("%02x" % int(i)
# for i in ipstr.split('.')), 16)
#
return struct.unpack ("!I", socket.inet_aton (ipstr)) [0]
def inet_itoa (ipint):
""" Converts 32-bit int IPv4... 阅读全帖
w*x
发帖数: 518
8
来自主题: Programming版 - 咋用python做一个3D surface plot? 请教
传入keyword写unpack=True就可以,看文档~

CSV
S*A
发帖数: 7142
9
我当时理解错了,说的是 PC, 是 ARM 当然外设就简单很多。
其实 dmesg 里面有是时钟显示,你可以看出时间在什么地方花
调的。ramdisk 不一定快,因为读 zimage/initram 是用 BIOS
int 13 完成的,每次一两个扇区。
我的 PC, 看 dmsg,我之看大头时间:
ACPI 和 PCI 扫描需要一定时间。
引导其他 CPU 需要一定时间。(IPI call smap)
初始化 SATA port reset 需要时间,然后进入 SATA 3G mode
需要再次 port reset, 这些都有固定的 reset 时间的。
USB 同样, port reset 所有设备需要时间。
然后进入 init ram disk 就已经 2 秒钟了。
找 USB 设备需要 从新 port reset。
mount 文件系统等等。
[ 0.156718] ACPI: All ACPI Tables successfully acquired
[ 0.183241] smpboot: CPU0: Intel(R) Xeon(R) CPU ... 阅读全帖
S*A
发帖数: 7142
10
我当时理解错了,说的是 PC, 是 ARM 当然外设就简单很多。
其实 dmesg 里面有是时钟显示,你可以看出时间在什么地方花
调的。ramdisk 不一定快,因为读 zimage/initram 是用 BIOS
int 13 完成的,每次一两个扇区。
我的 PC, 看 dmsg,我之看大头时间:
ACPI 和 PCI 扫描需要一定时间。
引导其他 CPU 需要一定时间。(IPI call smap)
初始化 SATA port reset 需要时间,然后进入 SATA 3G mode
需要再次 port reset, 这些都有固定的 reset 时间的。
USB 同样, port reset 所有设备需要时间。
然后进入 init ram disk 就已经 2 秒钟了。
找 USB 设备需要 从新 port reset。
mount 文件系统等等。
[ 0.156718] ACPI: All ACPI Tables successfully acquired
[ 0.183241] smpboot: CPU0: Intel(R) Xeon(R) CPU ... 阅读全帖
i**i
发帖数: 1500
11
http://readwrite.com/2014/08/14/google-android-open-soure
把苹果的命给革了以后,却发现革命群众不是那么好带的.
Never has a tweet been more true, or potentially more disastrous for a
vendor. Years ago Google's Andy Rubin, stung by Steve Jobs' criticism that
Android wasn't truly open, tweeted that anyone could fork - i.e., modify -
Android, making it "open" in the truest sense of the word.
Unfortunately for Google, many OEMs took Rubin at his word.
Today, Google's Android business is booming, but it's clear that Android
fr... 阅读全帖
l*******b
发帖数: 2586
12
来自主题: Programming版 - scala开发效率确实奇高
整点统计的, 一个模型各种参数, 各种输入接口。包装是一定的, call别人的库必须
unpack, 一家和另一家结构都不一样。
a*****e
发帖数: 1700
13
绝对的 kill time 利器 :-)
ByteString.Lazy 和 ByteString.Lazy.Char8 怎么会不兼容呢,后者是为前者提供向
Char 转化的工具(直接 truncate),但是操作的结果和对象可都是 ByteString.Lazy
啊。所以你用 Codec.Archive.Zip 读写的 ByteString.Lazy.ByteString 类型的值,
直接用 ByteString.Lazy.Char8 里面的函数操作即可。
不过说实在话,我不知道你为什么喜欢用 Char,直接用 Word8 并没有很不方便。
尤其是 String literal 可以直接使用 {-# LANGUAGE OverloadedStrings #-}
如果你说的是 ByteString 和 [Char] 之间转换,只需要用到 ByteStirng.Lazy.Char8
.pack 和 unpack 两个函数,其它不需要考虑。如果你需要 UTF8 编码转换,用 utf8-
string 这个库。
p****n
发帖数: 51
14
unpack("N", inet_aton("1.2.3.4"))
o********e
发帖数: 474
15
比如我下载的字体宏包psnfss, 安装说明说
Obtain the archive files lw35nfss.zip and freenfss.zip from
CTAN:macros/latex/required/psnfss. If the file system
layout of your TeX system complies with TDS, unzip them in
the texmf root directory (usually named texmf) of your TeX
system; all files will be unpacked into the right
directories then. Otherwise you have to sort out manually
the files from the .zip archives and copy them to the
appropriate directories of your TeX system.
但我找不到texmf这个目录。怎么办?
还有一般的安装思路步骤是什么,大
c*****t
发帖数: 1879
16
Usually uname -a would report the cpu type (and hopefully the speed
as well).
uname -X reports the #of cpu's.
fpversion may be available on your machine. It can check the cpu
speed...
My suggestion to you if you really want to know more information
about your CPU is to download any system patches from Sun, unpack
them, and there are usually some scripts designed to detect many
system wide informations.
c*****t
发帖数: 1879
17
来自主题: Unix版 - 哪里可以下载EMACS
In that case, download emacs from prep.ai.mit.edu.
After unpack, run
configure --prefix=/your-home-dir
make
make install
that's it.
t***y
发帖数: 110
18
来自主题: Unix版 - how to unpack .rpm file

Here is the answer from NCIC BBS:
m*****e
发帖数: 4193
19
来自主题: Unix版 - how to unpack .rpm file
Except that this totally missed the point he was asking.
a*z
发帖数: 141
20
来自主题: Unix版 - [转载] installed a NtEmacs..
there is no "\home" directory,
only:
/bin
/data
/etc
/info
/leim
/lisp
/lock
/site-lisp
I did't installl it, just unpacked from a .zip file and run it directly.
I can see the 'latex 'and 'command'
at this stage.
but when I used 'view'in command menu.
"Running `View' on `doc7' with ``windvi -single doc7.dvi''
'windvi' is not recognized as an internal or external command,
operable program or batch file.
View exited abnormally with code 1 at Tue May 27 00:09:20"
u****s
发帖数: 2186
21
uncompress for *.Z files
unpack for *.z files
p****m
发帖数: 19
22
来自主题: Unix版 - gcc in mac OSX
Thanks, the problem is that I didn't unpack the whole thing, but now the new
problem appears, it says "/var/tmp//ccaRSDw8.s:1089:Unknown pseudo-op: .
subsections_via_symbols", I don't know what this means.
p****m
发帖数: 19
23
来自主题: Unix版 - gcc in mac OSX
Thanks, the problem is that I didn't unpack the whole thing, but now the new
problem appears, it says "/var/tmp//ccaRSDw8.s:1089:Unknown pseudo-op: .
subsections_via_symbols", I don't know what this means.
r****y
发帖数: 1437
24
来自主题: Unix版 - a question about cpio
I have cpio files created on a 64-bit big-endian machine. Now I
tried to unpack them on another 64-bit little-endian machine, I used
"cpio -ibv" but cannot get right results, it kept telling me
cpio: cannot swap halfwords of AIRS.2005.01.hdf: odd number of halfwords
cpio: cannot swap bytes of AIRS.2005.01.hdf: odd number of bytes
Anyone know how to fix this? Thanks a lot.
n****1
发帖数: 474
25
来自主题: Windows版 - 求助:误删大文件夹
http://www.megaupload.com/?d=554IHF4Z&f=/EASEUS.Data.Recovery.W
1,unrar
2,unpack to USB with Universal Extractor
T**********t
发帖数: 1604
26
1. Unpack & Install ...
2. Replace flowjo.jar in FlowJo 7.5\jars with patched one
3. Have fun
T**********t
发帖数: 1604
27
Unpack everything...
你要一层一层的解压缩下去,就能找到了。
有个叫I_LOVE_DVT.RAR的文件,那里面就是Patched flowjo.jar。
不要问我为什么压缩那么多层,也不是我干的。
c*****u
发帖数: 357
28
来自主题: Computation版 - 求助 python装package的问题
在学python2.7.6,用的是MAC 10.6.8,
需要装一个package,但要先装pip,按照网上那个instruction死活装不进去,下载了
get-pip的文件后运行总是显示下列提示,昨天在win7的电脑上装了貌似没问题,,
Downloading/unpacking pip
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
Cleaning up...
No distributions at all found for pip
Storing debug log for failure in /Users/wangz59/.pip/pip.log
难道要我再重装个python 3?
c*****u
发帖数: 357
29
来自主题: Computation版 - 求助 python装package的问题
在学python2.7.6,用的是MAC 10.6.8,
需要装一个package,但要先装pip,按照网上那个instruction死活装不进去,下载了
get-pip的文件后运行总是显示下列提示,昨天在win7的电脑上装了貌似没问题,,
Downloading/unpacking pip
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
Cleaning up...
No distributions at all found for pip
Storing debug log for failure in /Users/wangz59/.pip/pip.log
难道要我再重装个python 3?
a*****g
发帖数: 19398
30
A draft of newly revised math standards to be used as the basis for
instruction in the state's kindergarten-through-12th-grade classrooms is now
available online for public scrutiny and comment.
The proposed Arkansas Mathematical Standards, the work of some 170 educators
including teachers, content specialists and higher education faculty
members, will go to the state Board of Education for approval, probably in
March. The draft math standards are a change from the Common Core State
Standards th... 阅读全帖
x*x
发帖数: 46
31

basically ppl use SVD to do pseudoinverse.
1. Let B = pinv(A), where pinv(A) is the pseudoinverse of A, m x n matrix.
i.e., ABA = A
2. SVD (Singual Value Decomposition)
Let A = USV', where U & V are orthogonal matrices (U'U=I) and S is
a diagonal matrix.
3. -1
B = V S U'
so what u need is a SVD algorithm. U can get it from
" target="_blank" class="a2">http://www.geocities.com/xiaomaoxiong2000/lin-alg-cpp.hqx
it's been packed in HQX format. use some tools to unpack it first.
c******k
发帖数: 237
32
来自主题: MedicalCareer版 - 问一个搬家的问题
More suggestion (mainly from my friends) if you decide to use ABF u-pack
Service:
1) It is very important to use boxes with same dimension. You don't need to
purchase them from Uhaul, Lowes, or Homedepot. My wife has been collecting
lab supply boxes from the medical center where we are working at.
2) Use vertical space more wisely; label your boxes as ‘heavy’, ‘medium’
, and ‘light’, according to their weight, therefore you know how to stack
them.
3) It is wise to use protective stuff such as pa... 阅读全帖
c******k
发帖数: 237
33
明天(也许一周内吧)我要给一个prematch的网友电话或SKYPE讨论MATCH后要做的事情
,欢迎参加。站内联系。
四点建议:
1. MAKE A LIST !!
2. 把STEP3考了。
3. CASE PRESENTATION PRACTICE。
4. 把MKSAP 14 OR 15 做二遍,很多临床用的GUIDELINE上面都有,比STEP3更
有实际意义。
刚刚翻出来去年prematch后发的一个贴子,供参考:
Post match 准备工作汇报,希望对已matched者有所提示
发信站: BBS 未名空间站 (Mon Mar 15 17:23:01 2010, 美东)
去年12月初prematch后接到老刀的一封email,提醒我提前准备正式开始住院医前必须做
的事情。虽然我早已读过老刀以及许多前辈post match的经验体会,心里还是非常感动
。以下就算是我的一点工作汇报吧,也希望对其他即将开始住院医的xdjm们有所提示。
如果有orientation club什么的,请一定叫上我。
1. 立即去信和电话给录取单位的主任和/或负责住院医生工作的... 阅读全帖
c***z
发帖数: 6348
34
【 以下文字转载自 DataSciences 讨论区 】
发信人: chaoz (晨钟暮鼓), 信区: DataSciences
标 题: generating percentile-percentage charts
发信站: BBS 未名空间站 (Mon Nov 24 20:11:11 2014, 美东)
Spent some time generating this kind of charts from raw data. There might be
better ways of doing so, but I would just post my method and 抛砖引玉。
Raw table has three columns: clinic | age | count, which records the age of
patients, rather, how many of each age category.
Target table has three columns: clinic | age_percentile | count_percentage... 阅读全帖
z**********u
发帖数: 754
35
来自主题: Hawaii版 - 有谁能讲讲夏威夷的传说么?
应该也不是什么恶运啦, 就是生活上的不如意, 工作不顺之类的巧合. 不过也听说过连
续遇上车
祸, 老婆得怪病的, 这些故事我听一个加拿大的电台的灵异节目听到的.
http://www.volcanogallery.com/lavarock.htm
Enclosed are 5 lava rocks that my wife & I took from the Big Island
during our honeymoon in April of 1991. We've regretted it ever since.
Our luck has been tough the last 13 years. Well, today is our 13th
Wedding Anniversary. We've rededicated ourselves to each other and
setting things right. ..not only with each other, but with Pele. Please
return these missing rocks to h... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 下页 末页 (共9页)