Access a running X session via x11vnc
I am using FreeNX but here is a solution to access a running X session with x11vnc.
* install the package:
$ sudo zypper install x11vnc
* ssh to remote machine and:
$ x11vnc -display :0
* ok, now on local machine:
$ vncviewer your_remote_ip:0
For more details and some comments (password option, ...) check the following link and try: man x11vnc
closest book meme
- Grab the nearest book.
- Open it to page 56.
- Find the fifth sentence.
- Post the text of the sentence in your journal along with these instructions.
- Don’t dig for your favorite book, the cool book, or the intellectual one: pick the CLOSEST.
"Taking Burgundy and Provence peaceably by marriage, he proceeded to make Italy the fulcrum of his new empire."
The quote comes from
A Mighty Fortress: A New History of the German People by Steven Ozment.
Developing with libyui/libzypp & python – part4
Let’s extend the application to make it even more useful!
* add support for YaST-Repositories
* add Support for different architectures
* use always a random temporary directory
Now, it looks like this:
You can grab it out of my home: in the openSUSE Build Service (for openSUSE 11.0).
Start it with “repoviewer”, add the repository’s url, select the type, the architecture and hit “Go!” .
You can choose the architectures only for the “highest” type of the family as they list the “lower” types, too.
So to see “ppc” packages. use “ppc64” in the combobox and later “ppc” in the “Arch” column.
For big repos (like factory) it takes some time to download and parse the metadata.
Also try in a console-window:
unset DISPLAY; repoviewer
thanks to libyui, that just works !
Update: You can access also local directories (like mounted CDs/DVDs).
Just use “file:///” and the full path ! E.g.: “file:///media/SU1100.001/”
Brasero 0.8.3 release
Hi,
brasero 0.8.3 has been released.
Again the focus has been bug fixing but some features were added:
- allow use of remote files
- drives are now probed asynchronously and may not popup immediatly but brasero starts faster
- some parts of GUI were revisited (in particular the burn option dialogs)
Also there is a new nautilus extension which can be installed in parallel with NCB.
#558343 – Cover Editor accessibility issue.
#558469 – Audio CD cloning fails but brasero reports success
#558207 – Labels in start page of New Audio Disc is not accessible to screen reader.
#557810 – Video Project Compute File size Hang
#556725 – command line option for video projects
#557833 – Brasero Graphical Interaface Disappears after simulate & during writing
#556874 – Error is shown when trying to select an image file to burning
#556146 – brasero crashed with SIGSEGV in g_main_context_dispatch()
#556724 – Brasero main GUI appears after closing the dialog when opening an ISO file using Nautilus
#555860 – Brasero fails make distcheck
#547395 – Support for remote filesystems
#556449 – Session error : Insufficient space on media when copying an audio CD (same problem with trunk)
#552811 – crash after delete used directory
#551051 – Brasero shows absurdly large %-done when burning a symlink-to-ISO
#555776 – Brasero will fail to get disck information on big-endian machines
#555703 – brasero delete original files in VIDEO_TS folder
#535330 – Volume label should be part of the project
#550526 – Wrong drive's speed displayed
#553349 – Cannot burn a .m3u playlist file when the logical steps below are followed
#465175 – Location field not working
#547874 – Unable to choose order audio tracks in a Audio CD project
#554722 – Main window does not fit on a 600px vertical screen (netbooks)
#552834 – burning image file fails
#554292 – brasero crashed with SIGSEGV in brasero_mkisofs_base_write_to_files()
#550050 – First run dialog after burn
#549852 – Data DVD+RW detected badly as multisession
#538298 – Burn image dialog history
#547731 – warn idiot users ...
And many other bugs that were fixed before they were reported in bugzilla.
Thanks to all the people who contributed to this release through patches, translations, advices, artwork and bug reports.
>
Congrats for Philippe for his daughter that born last week. yay
Книга по С++, которую я прочитал первой
А вот и ссылка на книгу:

В. В. Подбельский
Язык Си++
Книга по С++

Бьерн Страуструп
Язык программирования С++. Специальное издание
Эту книгу я прочитал не первой, однако, купив ее, пользуюсь постоянно.
Перегрузка операторов перенаправления из потока и в поток
std::cout<<"Hello, world"<<std::endl
Предположим, что мы создали класс следующего вида:
class TestClass{
public:
TestClass();
~TestClass();
private:
int i;
std::string s;
};
Для вывода содержимого класса на экран можно воспользоваться созданным специально для этого методом:
class TestClass{
public:
TestClass();
~TestClass();
void output(); // метод для вывода на консоль
private:
int i;
std::string s;
};
void TestClass::output(){
std::cout<<"i="<<i<<"s="<<s<<std::endl;
}
Тогда вывод для экземпляра будет выглядеть так:
TestClass tc;
tc.output();
Такой вариант возможен, но он очень уж некрасив. Переопределим оператор перенаправления в поток, что позволит нам перенаправлять содержимое экземпляра класса в поток вывода:
TestClass tc;
std::cout<<tc<<std::endl;
Для этого реализуем друга класса следующего вида:
class TestClass{
public:
TestClass();
~TestClass();
friend std::ostream& operator<<(std::ostream& out, const TestClass& c);
private:
int i;
std::string s;
};
std::ostream& operator<<(std::ostream& out, const TestClass& c);
Что содержится в теле данного оператора? В нем должен быть реализован функционал по перенаправлению полей класса в поток вывода, например:
std::ostream& operator<<(std::ostream& out, const TestClass& c)
{
out<<"i="<<c.i;
out<<" s="<<c.s;
return out;
}
Т.к. оператор является другом класса, то он имеет доступ к приватным полям класса, что не требует от нас делать их публичными.
Теперь, используя написанный код, можно выводить содержимое класса на консоль:
TestClass tc;
std::cout<<tc<<std::endl;
TestClass *p=new TestClass();
std::cout<<"second: "<<*p<<std::endl;
Zypper 1.0.0
So what's next?
Several ideas and problems appeared so far. Some need to be implemented in libzypp itself, some are purely zypper's. Here is a list of the most important things for zypper 2.
- Configuration file (.zypperrc).
- Nice overall install progress.
- Much improved install summary (options to view version/vendor/arch changes, changelog, ...).
- More options to handle patterns (remove, install suggested, ...).
- Advanced media error handling with options like eject DVD drive, select DVD drive, edit failed URI, enable/disable medium specific options.
- Fixed or removed zypper shell (can it be useful enough to be worth to maintain it?)
- Interface to new libzypp functionality like 'download only'.
- and more...
Stay tuned on features.opensuse.org, this TODO file, this blog and blogs of other ZYpp hackers (see my links).
Kubuntu upgrade from 7.10 to 8.10
I am using Kubuntu in Vmware just to play arround with it, so I decided to upgrade from 7.10 to 8.10, and this means that I will have as well KDE4. The upgrade process has been very easy, but I needed to upgrade first to 8.04 and finally to 8.10, so, here are the steps:
7.10 to 8.04
$ sudo apt-get update
$ sudo apt-get upgrade
$ kdesudo "adept_manager --dist-upgrade" # (using ALT+F2 in KDE)
8.04 to 8.10
$ kdesudo "adept_manager --dist-upgrade" # (using ALT+F2 in KDE)
That's all.
