由买买提看人间百态

topics

全部话题 - 话题: zlib
1 (共1页)
t**********o
发帖数: 124
1
I want to install perl GD module to Solaris, but it requires pre-install zlib,
libpng and gd-lib.
Anyone has some experience? I search the internet but still get confused.
Thanks in adv,
toto
t**********o
发帖数: 124
2
I tried your command, but it reponsed:
module: not found
It seems that Solaris (5.8 Generic) doesn't know this command?
toto
~{!>~} ~{TZ~} ottoz (~{3,<6C59eSM~}) ~{5D4sWwVPLa5=~}: ~{!?~}
zlib,
h******b
发帖数: 6055
3
来自主题: Programming版 - 十个包子求助:NodeJS多线程?
var directory = require('fs');
function processFile(filename) {
// dependencies
var fs = require('fs');
var zlib = require('zlib');
var csv = require('csv');
// filenames
var sourceFileName = filename;
mainFileName = 'main_' + filename;
// streams
var reader = fs.createReadStream(__dirname + '/original/' + sourceFileName),
writer = fs.createWriteStream(__dirname + '/transformed/' + mainFileName),
gunzip = zlib.createGunzip(),
gzip = zlib.createGzip();
//Main File
csv()
.from.stream(reader.pipe(g... 阅读全帖
k****i
发帖数: 101
4
来自主题: Programming版 - 十个包子求助:NodeJS多线程?
// tested, should work :)
(main = () => {
var cluster = require('cluster'),
fs = require('fs')
if (cluster.isMaster) {
(check = () => {
var mand = 'Usage: node thisScript inputDir outputDir ',
opt = '[optional: numberOfWorkerProcesses; default:
numberOfCpuCores]'
if (process.argv.length < 4) {
console.log(mand + opt)
process.exit(1)
}
})();
(schedule = () => {
var ind = process.argv[2],
files = fs... 阅读全帖
f***c
发帖数: 338
5
来自主题: Programming版 - 问问g++, gcc, cc之间的关系
写了一段代码,用g++编译顺利通过。
想到前几天曾讨论过编译器对int main(),void main()的处理不同问题,就顺手试了cc
和gcc。这一试不打紧,居然都不能通过。
OS: Debian GNU/Linux 6.0.3 (squeeze)
然后就看看个编译器的version,居然是一样的。但是对同样的代码的编译处理区别怎
么这么大呢?
彻底懵了,请达人解惑,谢谢。
g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --
with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c
++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared
--enable-multiarch --enab... 阅读全帖
k****i
发帖数: 101
6
来自主题: Programming版 - 十个包子求助:NodeJS多线程?
var fs = require('fs'),
zlib = require('zlib'),
csv = require('csv'),
P = require('paralleljs'),
ind = process.argv[2] + '/',
outd = process.argv[3] + '/',
files = fs.readdirSync(ind),
p = new P(files),
ins = function(file){return fs.createReadStream(ind+file)},
gnuzip = zlib.createGnuzip(),
parse = csv.parse(),
transform = csv.transform(function(rdata){/*todo*/}),
gzip = zip.createGzip(),
out = function(fil... 阅读全帖

发帖数: 1
7
亲测有效,牛,膝盖奉上
我来补充一下,mac下直接能用
但是因为mac 的openssl 没有zlib所以要用python
dd if=fp.data bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(
zlib.decompress(sys.stdin.read()))" | tar -xvf -

发帖数: 1
8
亲测有效,牛,膝盖奉上
我来补充一下,mac下直接能用
但是因为mac 的openssl 没有zlib所以要用python
dd if=fp.data bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(
zlib.decompress(sys.stdin.read()))" | tar -xvf -
q*p
发帖数: 963
9
来自主题: Hardware版 - 7zip到底靠谱不靠谱啊?
源于lzma,但青出于蓝而胜于蓝。
7z是LZMA,xz是LZMA2。
xz现在大行其道。
XZ Utils
XZ Utils is free general-purpose data compression software with high
compression ratio. XZ Utils were written for POSIX-like systems, but also
work on some not-so-POSIX systems. XZ Utils are the successor to LZMA Utils.
The core of the XZ Utils compression code is based on LZMA SDK, but it has
been modified quite a lot to be suitable for XZ Utils. The primary
compression algorithm is currently LZMA2, which is used inside the .xz
container fo... 阅读全帖
b*****l
发帖数: 9499
10
来自主题: Linux版 - 继续批评 gentoo
看这个:
[blocks B ] ress-Base-2.017" is blocking perl-core/IO-Compress-2.020)
[blocks B ] perl-core/IO-Compress-Zlib ("perl-core/IO-Compress-Zlib" is
blocking perl-core/IO-Compress-2.020)
[blocks B ] x11-drivers/xf86-video-cyrix ("x11-drivers/xf86-video-cyrix"
is blocking x11-base/xorg-server-1.5.3-r6)
[blocks B ] app-text/poppler-utils ("app-text/poppler-utils" is blocking
app-text/poppler-bindings-0.10.5-r1, app-text/pop
p****s
发帖数: 32405
11
奇怪了, 我记得zlib可以的, 要不试试这个
#ifndef _ZLIB_H
#include "zlib.h"
#endif
#include "unzip.h"
F*******i
发帖数: 190
12
zlib can not handle .Z file,
http://www.zlib.net/zlib_faq.html#faq12
Can I know whether unzip library is a standard one from linux?
Thanks!
j***n
发帖数: 301
13
来自主题: Programming版 - java GZip 求助
java 底层用的是zlib实现,去看zlib文档把
n******7
发帖数: 12463
14
基本就是试了一堆方法,最后只能password
然后chdir /home/nowhere7/失败
ssh -vvvv [email protected]/* */
OpenSSH_6.7p1 Debian-5, OpenSSL 1.0.1t 3 May 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ftp.mitbbs.com [8.8.8.8] port 22.
debug1: Connection established.
debug1: identity file /home/nowhere7/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity f... 阅读全帖
z*******w
发帖数: 79
15
Linux supports big file, unless your box is very old. I have many 4+GB
files. You probably can try extract it first.
Another way is to use "zlib" in C to read the file.
http://www.gzip.org/zlib/
r****y
发帖数: 26819
16
zlib 总找得到把。
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx

惺菅顾酢G胛剩現ramework 1.1 里边有没有方便的实现数据压缩的方法?谢谢指教
r****y
发帖数: 26819
17
There are tons of other commercial codes which are not opensource.
Just pay some money.
check this link: http://datacompression.info/Zlib.shtml
That's even easier.
j***n
发帖数: 301
18
来自主题: BuildingWeb版 - 用javascript做网页解压缩
嗯,其实是别人的想法。就是把网页压缩一下再传输,希望能够快一些。所以在客户端
是需要解压缩的。
搜了一下,还是有一些人有相同的想法的。就是没啥实现的库可用。
俺可不想写一个javascript版的zlib。。。
a*******t
发帖数: 85
19
We have all common php extensions ready other than imagemagick.
for example:
bz2, curl, gd, ldap, libxml, mbstring, mcript, memcache, mysql, mysqli,
odbc, openssl, pcre, sqlite, zip, zlib....
p******f
发帖数: 162
20
来自主题: Database版 - install problem for msyql on sunos
You need libz.so, install zlib? package first.
q*********u
发帖数: 280
21
Cool!
很牛的总结
的确看到LGPL在sencha的list里面
Open Source License List
License name Version(s)/Copyright Date
Academic Free License 2.0
Apache Software License 2.0
Apple Public Source License 2.0
Artistic license From Perl 5.8.0
BSD license "July 22 1999"
Common Development and Distribution License (CDDL) 1.0
Common Public License 1.0
Eclipse Public License 1.0
Educational Community License 2.0
GNU General Public License (GPL) 2.0
GNU Library or "Lesser" General Public ... 阅读全帖
b*****l
发帖数: 9499
22
来自主题: Linux版 - 继续批评 gentoo
难道 gentoo 就不能加个选项,回答个 y,就可以卸载再升级么?

IO-
Zlib"
blocking
E*V
发帖数: 17544
23
来自主题: Linux版 - 继续批评 gentoo
不用,不过因我们要用汉字
USE要相应设一下
mine:
USE="X acl alsa amd64 avahi bzip2 cdr cjk cli consolekit cracklib crypt cups
dbus dri dvd fortran gdbm gnome gpm gtk hal iconv isdnlog java kde kpathsea
mdnsresponder-compat mmx mng mudflap multilib mysql ncurses nls nptl
nptlonly nsplugin opengl openmp pam pcre perl pppd python qt3 qt3support qt4
readline reflection session sockets socks5 spl sql sse sse2 ssl svg sysfs
tcpd unicode webkit xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="
adpcm alaw asym copy dmix
c****a
发帖数: 24
A******g
发帖数: 612
F*******i
发帖数: 190
26
zlib can compress or uncompress a stream/file. but not for extract file from
an archive.
c**t
发帖数: 2744
27
没有RH Subscription,不能加repo,只好从源码编译PHP。
./configure --prefix=/usr/local --with-pdo-mysql --with-libdir=lib64 --
libdir=/usr/lib64 --enable-bcmath --enable-calendar --enable-exif --enable-
ftp --enable-mbstring --enable-soap --enable-zip --with-curl --with-freetype
-dir --with-gettext --with-iconv --with-jpeg-dir --with-kerberos --with-
mhash --with-mysql --with-mysqli --with-openssl --with-png-dir --with-regex
--with-xmlrpc --with-xsl --with-zlib-dir --with-config-file-path=/usr/local/
lib --with... 阅读全帖
o**o
发帖数: 3964
28
google "zlib". it's a free library, very easy to use.

3GB.
b********n
发帖数: 609
29
来自主题: Programming版 - error while building gcc
I downloaded gcc head(using svn), got errors while trying to build.
"
./configure --with-gnu-as --with-gnu-ld --verbose --with-system-zlib --
disable-nls --enable-version-specific-runtime-libs --enable-languages=c,c++
"
Error message:
"
/gcc/i686-pc-linux-gnu/libstdc++-v3/include/bits/stl_tempbuf.h:65:29: error:
bits/stl_memory.h: No such file or directory
In file included from /gcc/i686-pc-linux-gnu/libstdc++-v3/include/bits/stl_
algo.h:66,
from /gcc/i686-pc-linux-gnu/libstdc++
r****t
发帖数: 10904
30
来自主题: Programming版 - C Library (一个统计方面的) 安装一问
你到底看了 Makefile 没有,开头有很多你要改的东西。
/usr/local/lib 下面要有这些列出来的库,/usr/local/include 下面要有这些库的头
文件。没有的话或者按位置装好,或者装好再改这几行。
初用 make, 用 make -d 然后看看出错信息,理解不了贴上来问。你现在的问题是 gcc 在你给的 -I 选项里面列的目录里面找不到 GSL 的头文件,你就给个含有头文件的 -I path 就可以过这一步了。
# The path to the external libraries: metis, taucs, lapack, blas and zlib
LEXTPREFIX = /usr/local
LEXTLIBS = -L$(LEXTPREFIX)/lib
IEXTLIBS = -I$(LEXTPREFIX)/include
这还没列 GSL, 你要是 GSL 装在
/home/me/GSL
上面有两行你要改成
LEXTLIBS = -L$(LEXTPREFIX)/lib -L/home/me/GSL/lib
IEXTLIBS = -I$(LEXTP
F*******i
发帖数: 190
31
it seems zlib can only read .gz file.
thanks!
b******n
发帖数: 592
32
来自主题: Programming版 - 一个popen加gzip的问题
为什么不用zlib,很方便的阿..如果用popen, 要用 "gunzip -c xxxx | "吧。
b******n
发帖数: 592
33
来自主题: Programming版 - 有没有现成的模拟fread的bufferRead()?
Another solution to reduce I/O cost is to use compression library such as
zlib.
v*****r
发帖数: 2325
34
thanks. could you paste some c code snippet opening gzip and read line by
line.
open from pipe will be slower than using zlib i believe, but the code is
easier to write.
l*******G
发帖数: 1191
35
来自主题: Programming版 - VC++问题:如何解压zip文件? (转载)
zlib
t****t
发帖数: 6806
36
来自主题: Programming版 - C++方法全都内联有什么坏处?
ok, you win, I do the experiment for you.
One of the results is inlined, the other is not.
I'll omit the comments.
******30.C*******
#include
#include
using namespace std;
IL double foo(double x)
{
double a=10;
for (int i=0; i<10; i++) {
a=a+sin(i*x);
}
return a;
}
int main()
{
double g;
cin>>g;
cout< }
$ g++ -O2 -S -D IL="" 30.C -o - | c++filt >! 30_noinline.s
$ g++ -O2 -S -D IL="inline" 30.C -o - | c++filt > ! 30_inline.s
$ g++ -v ... 阅读全帖
x****u
发帖数: 44466
37
来自主题: Programming版 - 其实开源(OpenSource) 不便宜!
好吧,前提变成了你的东西足够小。。。Win32下无数人也用zlib等开源库东西开发。
你用第三方类库的工作经验反推整个平台的选择,实在不合适。
l******n
发帖数: 62
38
来自主题: Programming版 - C++11使用感受及一些问题
zlib可以实现gzip。很小的库
h******b
发帖数: 6055
39
来自主题: Programming版 - 十个包子求助:NodeJS多线程?
用NodeJS写了一个简单的log file processor。 几百个gzip文档,每个压缩以后都有
半gig左右。
我用了nodejs的csv/zlib插件来stream这些文档,写成新的gzip。速度很慢,结果发现
CPU使用还不到15%,查了一下发现是因为nodejs同时只用一个core, 我公司的i7完全排
不上用场。
有什么简单的多线程处理方法吗?
g****t
发帖数: 31659
40
来自主题: Programming版 - Ryan DL的心声...
后来他自己删了的。
I hate almost all software. It's unnecessary and complicated at almost every
layer. At best I can congratulate someone for quickly and simply solving a
problem on top of the shit that they are given. The only software that I
like is one that I can easily understand and solves my problems. The amount
of complexity I'm willing to tolerate is proportional to the size of the
problem being solved.
In the past year I think I have finally come to understand the ideals of
Unix: file descriptor... 阅读全帖
o***z
发帖数: 133
41
under solaris 8, you may try the command
"module avail"
a******s
发帖数: 232
42
来自主题: Computation版 - 有个问题drive me crazy
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
t******g
发帖数: 372
43
来自主题: Statistics版 - 怎么在Centos上面安装R package?
于server local与否无关,或者至少给些error log 别人也好知道你尝试了啥,
S/W Requirements:
-----------------
MySQL client library ("libmysqlclient.so") and header files
(see www.mysql.com). For Linux/intel you may use the binary rpms
client+devel+shared, and make sure you also have the header files,
they are *NOT* included in the following
MySQL-client-4.1.7-1.i386.rpm
MySQL-shared-4.1.7-1.i386.rpm
but they are included in the latest 4.1.7 rpm versions.
The library libz. This is a stan... 阅读全帖

发帖数: 1
44
来自主题: CellularPlan版 - FreedomPop手机计划【攻略】
A. FreedomPop简介:
FreedomPop(FP)有两类主要产品,一类使用Sprint的网络数据,
另一类是GSM SIM(包括全球卡和ATT LTE卡)。它的语音都是VOIP。
个人认为语音质量稍次于传统的无线电话语音。
这一点当然是各人有自己的看法,如果你认为VOIP语音质量没问题,
你可以用FP做你的主力电话服务。
个人认为FP的全球SIM一定不能用作主力电话服务。
其他的device,如果用它的premium voice和premium income voice,
使用的是sprint的CMDA语音,但不是免费的。
FP最好作为数据补充,配合其他语音服务。
FP有完全免费,或低价的计划。
FP的客服还行,有问题可以发ticket,也可以在论坛问。
FP详细情况请看:
http://www.freedompop.com/
这里有个英文的攻略:
http://www.cranialborborygmus.com/FreedomPop-LTE-gsm-sim-review.htm
B. FP计划比较:
FP有2类计划。
1. 使用sprint网络计划:
这类计划要使用sp... 阅读全帖
a*o
发帖数: 19981
45
【 以下文字转载自 PDA 讨论区 】
发信人: amo (牛肉炖熊掌), 信区: PDA
标 题: 贡献个无法root的手机上提取自由炮sip信息的办法
发信站: BBS 未名空间站 (Fri Mar 3 15:18:58 2017, 美东)
第3步用到的工具都可以在cygwin里找到,把cygwin bin加到system path。
1. adb backup -f ~/fp.data -noapk com.freedompop.phone
2. dd if=fp.data bs=1 skip=24 | openssl zlib -d | tar -xvf -
3. adb push app\databases\com.freedompop.phone.db /sdcard/
4. 现在fp的db file在手机上的内置存储根目录下,用随便什么sqlite软件打开就可以
看account里面的信息,我用的是aSqliteManager,copy很方便。
a*o
发帖数: 19981
46
【 以下文字转载自 PDA 讨论区 】
发信人: amo (牛肉炖熊掌), 信区: PDA
标 题: 贡献个无法root的手机上提取自由炮sip信息的办法
发信站: BBS 未名空间站 (Fri Mar 3 15:18:58 2017, 美东)
第3步用到的工具都可以在cygwin里找到,把cygwin bin加到system path。
1. adb backup -f ~/fp.data -noapk com.freedompop.phone
2. dd if=fp.data bs=1 skip=24 | openssl zlib -d | tar -xvf -
3. adb push app\databases\com.freedompop.phone.db /sdcard/
4. 现在fp的db file在手机上的内置存储根目录下,用随便什么sqlite软件打开就可以
看account里面的信息,我用的是aSqliteManager,copy很方便。
1 (共1页)