Monthly Archives: September 2013

GObject & GTK+3.0

General

GNOME Developer Center
GNOME Developer Platform Demos

GTK+-3.0

Documentation

Introduction to GObject
G_DEFINE_TYPE(), G_DEFINE_TYPE_EXTENDED()

Tutorials

Getting Started with GTK+ (with Cairo)
ZetCode: GTK+ tutorial

Bits and pieces: Tips and tutorials related to GTK+ toolkit

Migrating from other containers to GtkGrid
How to set the color of a widget
PyGTK: Systematic Testing of a GTK Graphical User Interface (PDF)
GTK+ 2.0 Tutorial (PDF)
GTK+ 2.0 Tutorial
C-Programmierung unter Linux & GTK+ (deprecated)

Roger Leigh

An introduction to programming with GTK+ and Glade in ISO C, ISO C++ and Python 1.4.0
An introduction to programming with GTK+ and Glade in ISO C, ISO C++ and Python 1.3.1
codelibre.net: Roger Leigh Home
debian.org: Roger Leigh Home

Forum Topics

GtkUIManager: <menu> under <toolitem> (toolbar)
How to understand Gtk+ properties and make GtkGrid expand to available area?
How I can maximize GtkGrid to fill the entire GtkWindow?
How to change GtkWidget background in GTK3?
GTK3 with External CSS
Trying to populate a GtkComboBox with model in C
How to make a Gtk+ widget inside a GtkScrolledWindow to expand when packed into a GtkPane?

gtkmm 3

Programming with gtkmm 3
Programming with gtkmm 3: Main Menu example
GTK+ Programming in C++ with XFC
XFC: Adding a statusbar

VMware: vmware-workstation-server does not start

Question

# /etc/init.d/vmware-workstation-server start

[...]

Hostd: error: N7Vmacore15SystemExceptionE(Cannot assign requested address)
Hostd: backtrace:
Hostd: backtrace[00] rip 00007f671e28d2e4 Vmacore::System::Stacktrace::CaptureWork(unsigned int)
Hostd: backtrace[01] rip 00007f671e058374 Vmacore::System::SystemFactoryImpl::CreateQuickBacktrace(Vmacore::Ref&)
Hostd: backtrace[02] rip 00007f671dfeb5a8 Vmacore::Throwable::Throwable(std::string const&)
Hostd: backtrace[03] rip 00007f671e2736de Vmacore::SystemException::SystemException(Vmacore::SystemErrorCode const&)
Hostd: backtrace[04] rip 00007f671e24111e Vmacore::System::TCPServerSocketPosix::BindAndListenInt(int, sockaddr*, unsigned long)
Hostd: backtrace[05] rip 00007f671e245b91 Vmacore::System::TCPServerSocketPosix::BindAndListen(std::string const&, int)
Hostd: backtrace[06] rip 0000000000a1daa5 /usr/lib/vmware/bin/vmware-hostd() [0xa1daa5]
Hostd: backtrace[07] rip 0000000000a1f862 /usr/lib/vmware/bin/vmware-hostd() [0xa1f862]
Hostd: backtrace[08] rip 0000000000a26041 /usr/lib/vmware/bin/vmware-hostd() [0xa26041]
Hostd: backtrace[09] rip 00007f671e00bb88 Vmacore::Service::AppImpl::StartPlugins()
Hostd: backtrace[10] rip 00007f671e00acac Vmacore::Service::InitApp(Vmacore::Service::Config*)
Hostd: backtrace[11] rip 00000000013f57fd /usr/lib/vmware/bin/vmware-hostd() [0x13f57fd]
Hostd: backtrace[12] rip 00000000013ebc28 /usr/lib/vmware/bin/vmware-hostd() [0x13ebc28]
Hostd: backtrace[13] rip 00000000013f8a11 /usr/lib/vmware/bin/vmware-hostd() [0x13f8a11]
Hostd: backtrace[14] rip 00007f671bd75ead /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f671bd75ead]
Hostd: backtrace[15] rip 0000000000a1bed9 Vmomi::PrivilegeChecker::CheckEntityPrivilege(Vmomi::MoRef*, Vmacore::Session*, std::string const&)
Hostd:

Answer

Enable loopback interface!

vmware-modconfig_console_install-all

sipXecs 4.6.0: DNS Korrektur

<%
  def record_id(id)
    if defined? :print_record_ids
      ";; RECORDS: #{id}\n"
    end
  end
%>$TTL 1800
@       IN     SOA    ns1.<%= domain %>. root.<%= domain %>. (
                       <%= serialno %> ; serial#
                       1800            ; refresh, seconds
                       1800            ; retry, seconds
                       1800            ; expire, seconds
                       1800 )          ; minimum TTL, seconds

<% 
  unless dns_servers.nil?
    dns_servers.each { |server| 
%><%= domain %>.            IN     NS     <%= server[:name] %>.
<%
    }
  end

%><%= record_id('naptr') %><%

  naptr_protocols.each { |proto| 
  protoCode = 'SIP+D2' + proto[0,1].upcase  # SIP+D2T
%><%= domain %>.               IN      NAPTR   2 0 "s" "<%= protoCode %>" "" _sip._<%= proto %>.<%= domain %>.
<%} 

%><%= record_id('proxy') %><%

  # distribute traffic equally for now to each proxy
  sip_protocols.each { |proto|
    if proxy_servers
      proxy_servers.each { |server| 
        if proto == 'tls'
%>_sips._tcp.<%= domain %>.     IN      SRV     10 10 5061 <%= server[:name] %>.
_sip._tls.<%= domain %>.     IN      SRV     10 10 5061 <%= server[:name] %>.
<%
        else

%>_sip._<%= proto %>.<%= domain %>.     IN      SRV     10 10 5060 <%= server[:name] %>.
<%      end
      }
    end
  }

%><%= record_id('rr') %><%

  if resource_records
    resource_records.each { |rr|
      if rr[:records]
        rr[:records].each { |a|
%><%= rr[:proto] %>.<%= rr[:resource] %>.<%= domain %>.   IN    SRV   10 10 <%= a[:port] %> <%= a[:target] %>.
<%
          rr[:records].each { |b|
            # give priority to local registrar
            rr_priority = (a == b ? '10' : '20')
%><%= rr[:proto] %>.<%= rr[:resource] %>.<%= a[:name] %>.   IN    SRV   <%= rr_priority %> 10 <%= b[:port] %> <%= b[:target] %>.
<%        } 
        }
      end
    } 
  end

%><%= record_id('im') %><%

  if im_servers
    im_servers.each { |server| 
%>_xmpp-server._tcp.<%= domain %>.     IN   SRV   10  10  5269  <%= server[:name] %>.
_xmpp-client._tcp.<%= domain %>.     IN   SRV   10  10  5222  <%= server[:name] %>.
_xmpp-server._tcp.conference.<%= domain %>.     IN   SRV   10  10  5222  <%= server[:name] %>.
_xmpp-client._tcp.conference.<%= domain %>.     IN   SRV   10  10  5222  <%= server[:name] %>.
<%  } 
  end

%><%= record_id('a') %><%
  if all_servers
    all_servers.each { |server| 
%><%= server[:name] %>.           IN      A       <%= server[:ipv4] %>
<%  }
  end
%>
<HOSTNAME>.            IN     A <IP-ADDRESS>

ev.
<%= sys.hostname %> IN A <%= sys.ipv4 %>
or
<%= sys[:hostname] %> IN A <%= sys[:ipv4] %>