[FZH] #D 用anjuta进行UI编程
by humingx
hi,all
使用anjuta编程,用glade3画界面。初始化需要GtkBuilder来完成对xml文件的读取。如果想要获取同一个xml文件里面的组件,方法有以下两种
1.将GtkBuilder对象设成全局对象。但这样做会浪费资源。
2.每次需要读取组件的时候就重新使用gtk_builder_new
()和gtk_builder_add_from_file,然后再重新绑定事件gtk_builder_connect_signals。但这样做觉得实在是很麻烦,而且因为每次都需要重新生成和销毁,也不见得有多高效率。
请问这种问题的一般处理方法是怎么样的?如果有sample code就更好了,:-)
Best Regards!
13 years, 1 month
[FZH] #U ps 命令 -a -e 区别
by humingx
hi,all
ps命令比较常用,里面有一些选项,看了一下man手册,对里面的解释也是似懂非懂。
-a
x
-e :全部进程
剩下的-a和x不明白,-a出来的进程最少,x其次,-e最多。google了之后,网上的解释也不是很清楚。
哪位能给个比较明白点的解释,谢谢了,:-)
Regards!
13 years, 2 months
[FZH] Fwd: Announcing the release of Fedora 14 Beta!!
by Liang Suilong
Fedora 14 Beta 发布了。
---------- Forwarded message ----------
From: Dennis Gilmore <dennis(a)ausil.us>
Date: Tue, Sep 28, 2010 at 10:26 PM
Subject: Announcing the release of Fedora 14 Beta!!
To: announce(a)lists.fedoraproject.org, test-announce(a)lists.fedoraproject.org,
devel-announce(a)lists.fedoraproject.org
Mark your calendars, and get ready to break out and have some fun: Fedora 14
will launch in early November. Fedora is the leading-edge, community-
developed, free and open source operating system that continues to deliver
innovative features to users worldwide, with a new release every six months.
But... what's that, you say? November is oh, so, far away? Never fear - Beta
is here! Checking out the latest and greatest in Fedora's cutting-edge
technologies is just a click away.
Stand out from the crowd. Get your taste of Fedora 14 ''now,'' by trying out
our Beta release:
http://fedoraproject.org/get-prerelease?anF14b
== What is the Beta Release? ==
The beta release is the last important milestone of Fedora 14. Only critical
bug fixes will be pushed as updates leading up to the general release of
Fedora 14, scheduled to be released in early November. We invite you to
join us and participate in making Fedora 14 a solid release by downloading,
testing, and providing your valuable feedback.
Of course, this is a beta release, some problems may still be lurking. A
list
of the problems we already know about is found at the [[Common F14 bugs]]
page.
If you find a bug that's not found on that page, be sure it gets fixed
before
release by reporting your discovery at https://bugzilla.redhat.com/. Thank
you!
== Features ==
Desktop enthusiasts and end users of all sorts can look forward to:
* '''Faster loading and saving of JPEG images.''' The libjpeg-turbo feature
nearly halves the time to load and save JPEG images on most modern machines
-
meaning you'll be seeing your digital photos even faster.
* '''Easier virtualization for end users.''' From the creators of KVM comes
Spice (Simple Protocol for Independent Computing Environments). This
framework
allows end-users to enjoy the features they enjoy, such as accelerated 2D
graphics, encryption, and audio playing and recording, all while working in
a
virtualized environment.
Are you a sysadmin? Check out the new features we have for you!
* '''Additional IPMI support.''' Enjoy using IPMI (Intelligent Platform
Management Interface) to manage your servers? The new ipmiutil feature adds
more functionality to existing IPMI capabilities, including SOL
(Serial-over-
LAN) and identity LED management.
* '''Tech preview of systemd.''' Looking to the future? Check out systemd, a
next-generation replacement for Upstart and SystemV init. With faster boot
times, the ability to track processes, daemons, and sockets, and system
state
snapshotting, this preview of systemd will have you prepped for the future.
Coders have lots of new development tools to try out, including:
* '''D Programming.''' Statically typed and compiling directly to machine
code, the D systems programming language combines the power and performance
of
languages like C and C++ with the productivity of languages like Ruby and
Python.
* '''GNUstep''' is a GUI framework based on the Objective-C programming
language, and is a reimplementation of the NextStep environment.
* '''Memory debugging tools.''' Unique to Fedora 14, the gdb-heap package
allows developers to get a breakdown of how a process is using dynamic
memory
- and can do unplanned memory usage debugging by attaching to runaway memory
hogs, mid-process.
* '''Python 2.7''' capabilities increases Fedora's commitment to improving
portability and migration paths for developers to move to Python 3. Enhanced
debugging and integration with GCC continue to be available in Fedora 14,
and
Python-related enhancements such as fixing common problems with GObject
introspection and SWIG are also introduced.
* '''Rakudo Star''' is the most actively developed implementation of Perl 6,
and is based on the Parrot virtual machine. Perl 6 is a major revision to
this sysadmin and developer toolbox standby, introducing elements of many
modern and historical languages.
And that's only the beginning. A more complete list and details of all the
new features onboard Fedora 14 is available here:
http://fedoraproject.org/wiki/Releases/14/FeatureList?wkanF14b
We have nightly composes of alternate spins available here:
http://alt.fedoraproject.org/pub/alt/nightly-composes/?wkanF14b
''Fedora 14 / Beta is for Carotene / Let's Push for Final!''
== Contributing ==
For more information including common and known bugs, tips on how to report
bugs, and the official release schedule, please refer to the release notes:
http://docs.fedoraproject.org?wkanF14b
There are many ways to contribute beyond bug reporting. You can help
translate software and content, test and give feedback on software updates,
write and edit documentation, help with all sorts of promotional activities,
and package free software for use by millions of Fedora users worldwide. To
get started, visit http://join.fedoraproject.org today!
_______________________________________________
devel-announce mailing list
devel-announce(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel-announce
--
devel mailing list
devel(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
--
Fedora && Debian User, former Ubuntu User
My Page: http://www.liangsuilong.info
Fedora Project Contributor -- Packager && Ambassador
https://fedoraproject.org/wiki/User:Liangsuilong
13 years, 2 months
[FZH] 提供一个SSH代理帐号
by Szopen Xiao
由于VPS买来没用,所以为了利用资源,提供一个SSH代理
方法如下:
ssh -D 7050 -p 5976 -qfnN proxy(a)iroaring.com
-D参数是本地代理端口
密码是 iroaring.com
不能登录系统使用命令,验证成功后SSH将转入后台
13 years, 2 months
[FZH] Fwd: f13 => rawhide upgrade notes
by Yu Chen
---------- Forwarded message ----------
From: Owen Taylor <otaylor(a)redhat.com>
Date: 2010/9/26
Subject: f13 => rawhide upgrade notes
To: desktop(a)lists.fedoraproject.org
Since there is so much that's going to be new in Fedora 15 compared to
Fedora 14 (GNOME 3, GTK+-3, systemd, NetworkManager-0.9, and so on), the
Red Hat desktop team wanted to get an early start on running the new
stuff even before Fedora 14 is out.
So, I spent a few hours last night and this morning upgrading my primary
laptop from Fedora 13 to Rawhide. Generally worked better than I might
have expected... without too much work I got to a system that seems
basically usable.
One big caveat is that the result of a F14 => rawhide upgrade is a messy
hybrid -
$ rpm -qa | grep fc14 | wc -l
631
$ rpm -qa | grep fc15 | wc -l
701
It's not nearly a pure F15 system yet.
So, I thought I should dump out notes of the procedure I used and a few
snags I hit to help anybody else on the same path.
Upgrade procedure
=================
Step 1: Used preupgrade to upgrade from f13 to f14
Worked apparently perfectly, very slick experience
(Only real wart was that for encrypted root Anaconda has a
"Enter passphrase to decrypt" [ ] This is a global passphrase"
dialog, and the "global passphrase" thing is pretty hard to
understand. "Use this passphrase for all partitions" ? Or just
try it on the other partitions and ask me then if it
didn't work?)
Step 2: Installed fedora-release-rawhide, disabled f14, enabled rawhide
Step 3: Switched to a VT and ran 'yum update --skip-broken'
(I actually first tried 'telinit 3' and that didn't work right - the
GNOME session was left up, VT's were gone, and the system hung when
I then tried to reboot. Wonder if something got broken with the
upstart => systemd => upstart adventure>)
I had to remove a handful of various packages to get this to work,
but I think they were all local builds or stuff I installed from 3rd
party repositories.
Step 4: reboot
Things were mostly working at this point,
Fixing the result
=================
* I was left without a link from /usr/bin/emacs-<version>
to /usr/bin/emacs, so I had to create that manually.
* gtk3-engines didn't get installed on the upgrade, so I had
to install that manually.
* The GTK+ 3 module for ibus seems to be more or less broken.
I had to remove ibus to get gtk3 applications to run without
crashing. (Setting /desktop/gnome/interface/gtk-im-module
to gtk-im-context-simple might have work, but didn't
immediately seem to for some reason, and I needed to get to
a less crashy state.)
* Accessibility modules were producing a ton of bad looking spew
and dconf-editor had a gail/treeview related crash. I couldn't
figure out if there is a way of turning off accessibility
entirely through the new control center, so I turned off
/desktop/gnome/interface/accessibility. Strangely I had to
log out and log in before GTK+ apps stopped loading the
accessibility modules. g-s-d bug?
* All outgoing ssh was hanging - turned out that gnome-keyring-prompt
was hanging weirdly inside g_once_enter_init(); when I finally
saw stderr, it was obviously a need for a rebuild because of
struct size changes in gtk3. So, fired off a rebuild of
gnome-keyring in koji.
Also noted:
'killall gnome-settings-daemon' kills nm-applet, and leaves it in a
state where it doesn't recover even after restarting g-s-d, until
you log out and log back in. Weird.
--
desktop mailing list
desktop(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/desktop
--
Yu
13 years, 2 months
[FZH] #D #U supercyper 请原谅,我用你打的包测试koji
by CyrusYzGTt
由于我觉得我有FAS和签署CLA很久了,我又看到了软件维护人员指南。。。所
以。。。
koji build --scratch dist-f13
west-chamber-kmod-0.0.1-5.20100405svn.fc13.5.src.rpm
Uploading srpm: west-chamber-kmod-0.0.1-5.20100405svn.fc13.5.src.rpm
[====================================] 100% 00:00:05 88.74 KiB 17.38
KiB/sec
Created task: 2479127
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=2479127
Watching tasks (this may be safely interrupted)...
2479127 build (dist-f13,
west-chamber-kmod-0.0.1-5.20100405svn.fc13.5.src.rpm): open
(x86-02.phx2.fedoraproject.org)
2479129 buildArch
(west-chamber-kmod-0.0.1-5.20100405svn.fc13.5.src.rpm, i686): open
(x86-04.phx2.fedoraproject.org)
2479128 buildArch
(west-chamber-kmod-0.0.1-5.20100405svn.fc13.5.src.rpm, x86_64): open
(x86-10.phx2.fedoraproject.org)
2479129 buildArch
(west-chamber-kmod-0.0.1-5.20100405svn.fc13.5.src.rpm, i686): open
(x86-04.phx2.fedoraproject.org) -> FAILED: BuildError: error building
package (arch i686), mock exited with status 10; see root.log for more
information
0 free 2 open 0 done 1 failed
2479128 buildArch
(west-chamber-kmod-0.0.1-5.20100405svn.fc13.5.src.rpm, x86_64): open
(x86-10.phx2.fedoraproject.org) -> FAILED: BuildError: error building
package (arch x86_64), mock exited with status 10; see root.log for more
information
0 free 1 open 0 done 2 failed
2479127 build (dist-f13,
west-chamber-kmod-0.0.1-5.20100405svn.fc13.5.src.rpm): open
(x86-02.phx2.fedoraproject.org) -> FAILED: BuildError: error building
package (arch x86_64), mock exited with status 10; see root.log for more
information
0 free 0 open 0 done 3 failed
2479127 build (dist-f13,
west-chamber-kmod-0.0.1-5.20100405svn.fc13.5.src.rpm) failed
13 years, 2 months
[FZH] [T] 邀请 TOSW 翻译者们
by Tommy He
Hello,
在下最近一直在忙 The Open Source Way (http://cut.gd/qFgE)的翻译组织工作,突发一想,不知可否将
TOSW 的翻译者们介绍到 Fedora 中文社区列表上来,故有此文征求列表上诸位朋友的意见。
原因如下:
1. The Open Source Way 作者群体中有很多是 Fedora 社区的成员,本次 The Open Source Way
的翻译过程也有 Fedora 中文社区的朋友参加,同时也得到了上游方面的支持。
2. 尽管有 ZQ 兄盛情邀请入 OpenBookProject (http://cut.gd/rdwi)的 GoogleGroup
列表,考虑到身处天朝的朋友访问此列表略有困难以及诸多新人,或许 FZH 是个不错的地方。
3. 翻译群体中有一些是刚刚接触开源界的新朋友,希望能借此机会更多了解 Fedora 中文社区。
当然若是加入这里的话,TOSW 翻译相关话题会用 [T] 翻译标签和 [TOSW] 标签在主题标注,方便诸位过滤。
个人想法,欢迎拍砖!
黑日白月
--
Take a Deep Breath out of Windows
13 years, 2 months
[FZH] 【译稿】Systemd 落选 Fedora 14 的详细原因
by Liang Suilong
nirik 似乎是有点曝内幕的味道....
我翻译得不好,有怪莫怪啊!
Sent to you by liangsuilong via Google Reader: Systemd 落选 Fedora 14 的
详细原因 via Linux . Spy by liangsuilong on 16/09/10
Systemd 在最后时候落选成为 Fedora 14 默认进程管理器,引发了一大堆争议问
题。尤其是 Lennart 的不满,认为不应该在这个时刻才决定放弃 systemd。 随
后 nirik 在网志上发表了一篇文章,详细解释了为什么 FESCO 会在 Fedora 14
的周期内放弃 systemd。这篇文章在一定程度上代表了 FESCO 的立场。他提到了
四个最主要的原因: Systemd 的文档还没有完全准备好,而且 systemctl 这个用
于开启和关闭的原生 systemd 服务的软件没有图形化前端,命令行模式又没有完
整的文档指导用户操作。 chkconfig 和 system-config-services 还不能处理原
生的 systemd 服务。 软件包打包指引还没有被 systemd 单元文件的指引所取
代。现在的说法是准许大部分软件包发布 sysvinit 脚本。但我们需要确保这些脚
本能够正常的运行。当我们有指引以后,我们不再会回头重新做这些工作。 现在
有一种感觉是必须要尽快完成 systemd,并且必须让它成为默认的进程管理器。整
个团队必须要赶着达到这个目的。但是在这种自信的情绪下,开发团队也必须认
清 systemd 是数以百万用户在使用它,因为要保证它能够稳定地运行。 nirik 认
为推迟 systemd 是一个正确的主意,他在后面会详尽解释为什么。他认为他们已
经犯下了错误,现在应该是继续前进并且寻找出一个办法避免同类时间再次发生。
他也为这个错误道歉了。 推迟 systemd 的这个议题早在几个星期的 FESCO 的会
议上就已经纳入到议程了。然而 systemd 的测试日活动却是在继续进行中。所以
nirik 就觉得他应该在得到更多的测试数据以后再做出决定,所以就花费了更多时
间在测试上获得数据。nirik 承认这是他的责任。他认为当时他们即使没有得到数
据的前提下也可以开展尝试和讨论。至少他们可以讨论他们当时已经得到的数
据。 回复特性的程序(或者是决定回滚特性)应该要被额外提出来。什么时候应
该做这件事情?是否需要通过 [...] Related posts:
- Systemd 被推迟到 Fedora 15 Systemd 原本打算是在 Fedora 14 的默认 init
系统,而且已经到达了可以实用的阶段。早前的 Fedora 14 Alpha...
- Fedora 14 可能把准时发布作为一项新特性 Fedora 以引领技术潮流为特点的
Linux 发行版,不过最近几年似乎没有试过按照计划表准时发布了,每一次都会跳
票和延期。 John Poelstra,作为一个 Fedora 的项目经理,决定把 Fedora
14...
- Fedora 13 RC1 降临 Fedora 质量保证组的老大 Adam Williamson 刚刚在
Fedora test 邮件列表和 devel 邮件列表宣布... 以上关联文章由 Yet Another
Related Posts Plugin 提供支持。
Things you can do from here:
- Subscribe to Linux . Spy using Google Reader
- Get started using Google Reader to easily keep up with all your
favourite sites
13 years, 2 months