[SOLVED] Xfce weather plugin-useless temperature's floating point

Xfce4-weather-plugin 0.8.1-1 comes with a floating point in the temperature value. I use xfce4-panel positioned vertically so it's not a big text then. (And I miss the sense of it, anyway.) Here is a patch for getting rid of it (to be called as "patch -Np2 -i $srcdir/temperature.patch"):
--- src/xfce4-weather-plugin-0.8.1/panel-plugin/weather-data.c 2012-08-02 23:16:17.000000000 +0200
+++ src/xfce4-weather-plugin-0.8.1/panel-plugin/weather-data.c 2012-08-21 02:27:11.357313027 +0200
@@ -85,7 +85,7 @@
else if (unit_system == METRIC &&
!strcmp(loc->temperature_unit, "fahrenheit"))
val = (val - 32.0) * 5.0 / 9.0;
- return g_strdup_printf("%.1f", val);
+ return g_strdup_printf("%.0f", val);
case PRESSURE:
if (unit_system == METRIC)
return LOCALE_DOUBLE(loc->pressure_value, "%.1f");

RaisedFist wrote:I have it running for some time and never had problems..
As you can see in the bugreport, this seems to happen only when connection fails while downloading the weather-data.
So, when you have a reliable connection to your weather-server. You won't encounter this bug.

Similar Messages

  • [solved] xfce-wavelan-plugin

    Hi All,
    I have recently installed ArchLinux and have been experimenting ever since. I have my wifi set up through netcfg which uses multiple profiles so I can connect wherever I am. I have also settled with XFCE desktop environment, and am happy so far but I have a tendancy to swap and change a lot.
    The on issue I have is when attempting to use the wavelan plugin in XFCE. As soon as I add it to the panel it crashes and in tty1 I get:
    sh: /sbin/ifconfig: No such file or directory
    I know that net-tools has been deprecated, is there anyway round this?
    I tried searching for this issue by googling and on the forum/wiki. Apologies if it has been already solved!
    Thanks,
    Matt.
    Last edited by mspn (2012-01-17 20:29:27)

    I guess net-tools is technically depreciated, but I'm used to it and it seems to work fine.
    In the interest of the most simple & elegant solution, how about
    pacman -S net-tools
    However, (and I run XFCE too), I recommend NetworkManager & network-manager-applet for WiFi as it makes dealing with encrypted networks much easier.

  • Docky weather plugin does not show data

    Hi, I just installed docky on my Arch and I'm running it quite fine in XFCE.
    Weather plugin doesn't seem to work, the reason unknown. Locations can be added succesfully but the weather icon appears like this:
    Is there something I'm missing, like a not obvious dependency or something?
    I'm providing the debug:
    [Info 15:37:14.681] Docky version: 2.1.2 Release
    [Info 15:37:14.703] Kernel version: 2.6.38.0
    [Info 15:37:14.704] CLR version: 2.0.50727.1433
    [Debug 15:37:14.947] [UserArgs] BufferTime = 0
    [Debug 15:37:14.947] [UserArgs] MaxSize = 2147483647
    [Debug 15:37:14.947] [UserArgs] NetbookMode = False
    [Debug 15:37:14.947] [UserArgs] NoPollCursor = False
    [Debug 15:37:14.966] [SystemService] Using org.freedesktop.UPower for battery information
    [Info 15:37:14.986] [ThemeService] Setting theme: HUD
    [Debug 15:37:14.999] [DesktopItemService] Loading remap file '/usr/share/docky/remaps.ini'.
    [Debug 15:37:15.006] [DesktopItemService] Remapping 'Picasa3.exe' to 'picasa'.
    [Debug 15:37:15.006] [DesktopItemService] Remapping 'nbexec' to 'netbeans'.
    [Debug 15:37:15.006] [DesktopItemService] Remapping 'deja-dup-preferences' to 'deja-dup'.
    [Debug 15:37:15.006] [DesktopItemService] Remapping 'VirtualBox' to 'virtualbox'.
    [Warn 15:37:15.007] [DesktopItemService] Could not find remap file '/home/spidernik84/.local/share/docky/remaps.ini'!
    [Debug 15:37:15.008] [DesktopItemService] Loading desktop item cache '/home/spidernik84/.cache/docky/docky.desktop.en_US.UTF-8.cache'.
    [Info 15:37:15.304] [DockServices] Dock services initialized.
    [Debug 15:37:15.319] [DBusManager] DBus Registered: org.gnome.Docky
    [Debug 15:37:15.324] [DBusManager] DBus Registered: net.launchpad.DockManager
    [Debug 15:37:15.460] [PluginManager] Plugin manager initialized.
    [Debug 15:37:15.480] [PluginManager] Processing config file for "Battery Monitor".
    [Debug 15:37:15.573] [PluginManager] Processing config file for "Bookmarks".
    [Debug 15:37:15.574] [PluginManager] Processing config file for "CPU Monitor".
    [Debug 15:37:15.575] [PluginManager] Processing config file for "Clippy".
    [Debug 15:37:15.575] [PluginManager] Processing config file for "Clock".
    [Debug 15:37:15.576] [PluginManager] Processing config file for "Desktop".
    [Debug 15:37:15.578] [PluginManager] Processing config file for "Gmail".
    [Debug 15:37:15.579] [PluginManager] Processing config file for "Mounter".
    [Debug 15:37:15.580] [PluginManager] Processing config file for "NPR".
    [Debug 15:37:15.581] [PluginManager] Processing config file for "Network Manager".
    [Debug 15:37:15.581] [PluginManager] Processing config file for "Recent Documents".
    [Debug 15:37:15.582] [PluginManager] Processing config file for "Session Manager".
    [Debug 15:37:15.583] [PluginManager] Processing config file for "Timer".
    [Debug 15:37:15.584] [PluginManager] Processing config file for "Trash".
    [Debug 15:37:15.584] [PluginManager] Processing config file for "Weather".
    [Debug 15:37:15.585] [PluginManager] Processing config file for "Workspace Switcher".
    [Info 15:37:15.612] [PluginManager] Loaded "Docky.Widgets,1.0".
    [Info 15:37:15.612] [PluginManager] Loaded "Weather".
    [Info 15:37:15.613] [PluginManager] Loaded "Clock".
    [Info 15:37:15.613] [PluginManager] Loaded "Network Manager".
    [Info 15:37:15.613] [PluginManager] Loaded "Trash".
    [Info 15:37:15.634] [PluginManager] Loaded "Battery Monitor".
    [Debug 15:37:15.642] [BatteryMonitorProcItem] Hiding battery item (capacity=0) (max_capacity=-1) (OnBattery=False)
    [Error 15:37:15.651] [ConnectionManager] org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManagerSystemSettings was not provided by any .service files
    [Debug 15:37:15.653] [ConnectionManager] at NetworkManagerDocklet.IConnectionManagerProxy.ListConnections () [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.ConnectionManager.UpdateConnections () [0x00000] in <filename unknown>:0
    [Error 15:37:15.654] [ConnectionManager] org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManagerUserSettings was not provided by any .service files
    [Debug 15:37:15.654] [ConnectionManager] at NetworkManagerDocklet.IConnectionManagerProxy.ListConnections () [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.ConnectionManager.UpdateConnections () [0x00000] in <filename unknown>:0
    [Error 15:37:15.659] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:15.659] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:15.660] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "DeviceType"
    [Debug 15:37:15.660] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_DType () [0x00000] in <filename unknown>:0
    [Error 15:37:15.660] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "DeviceType"
    [Debug 15:37:15.660] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_DType () [0x00000] in <filename unknown>:0
    [Error 15:37:15.661] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:15.661] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:15.661] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "DeviceType"
    [Debug 15:37:15.662] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_DType () [0x00000] in <filename unknown>:0
    [Error 15:37:15.662] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "DeviceType"
    [Debug 15:37:15.662] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_DType () [0x00000] in <filename unknown>:0
    [Error 15:37:15.665] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:15.665] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:15.665] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:15.665] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:15.666] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:15.666] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:15.666] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:15.666] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:15.667] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:15.667] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:15.667] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:15.667] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Info 15:37:15.674] [PluginManager] Loaded "Recent Documents".
    [Info 15:37:15.918] [DrawingService] Could not find 'network-wireless-connected-75', using fallback of 'gnome-netstatus-75-100'.
    [Debug 15:37:16.044] [AbstractWeatherSource] Weather Channel: reload success
    [Info 15:37:16.060] [DrawingService] Could not find 'network-wireless-connected-75', using fallback of 'gnome-netstatus-75-100'.
    [Info 15:37:17.005] [Helper] Starting pidgin_control.py
    [Info 15:37:17.024] [Helper] Starting skype_control.py
    [Info 15:37:17.031] [HelperService] Helper added: /usr/share/dockmanager/scripts/banshee_control.py
    [Info 15:37:17.031] [HelperService] Helper added: /usr/share/dockmanager/scripts/deluge_badge.py
    [Info 15:37:17.031] [HelperService] Helper added: /usr/share/dockmanager/scripts/emesene_control.py
    [Info 15:37:17.031] [HelperService] Helper added: /usr/share/dockmanager/scripts/gajim_badge.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/gtg_menus.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/liferea_badge.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/mpd_control.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/open_terminal_here.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/pidgin_control.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/pithos_control.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/rhythmbox_control.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/skype_control.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/tomboy_menus.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/transmission_badge.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/tsclient_menus.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/workrave_helper.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/zeitgeist_journal.py
    [Info 15:37:17.032] [HelperService] Helper added: /usr/share/dockmanager/scripts/zeitgeist_menus.py
    [Info 15:37:17.110] [DrawingService] Could not find 'gajim', using fallback of 'extension'.
    [Warn 15:37:17.251] [DrawingService] Error loading icon from file '/usr/share/pithos/media/icon.svg': Failed to open file '/usr/share/pithos/media/icon.svg': No such file or directory
    [Debug 15:37:17.251] [DrawingService] at Gdk.Pixbuf..ctor (System.String filename, Int32 width, Int32 height, Boolean preserve_aspect_ratio) [0x00000] in <filename unknown>:0
    at Docky.Services.DrawingService.IconFromFile (System.String name, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
    [Info 15:37:17.251] [DrawingService] Could not find '/usr/share/pithos/media/icon.svg', using fallback of 'extension'.
    [Warn 15:37:17.442] [DrawingService] Error loading icon from file '/usr/share/pixmaps/workrave/workrave.xpm': Failed to open file '/usr/share/pixmaps/workrave/workrave.xpm': No such file or directory
    [Debug 15:37:17.442] [DrawingService] at Gdk.Pixbuf..ctor (System.String filename, Int32 width, Int32 height, Boolean preserve_aspect_ratio) [0x00000] in <filename unknown>:0
    at Docky.Services.DrawingService.IconFromFile (System.String name, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
    [Info 15:37:17.442] [DrawingService] Could not find '/usr/share/pixmaps/workrave/workrave.xpm', using fallback of 'extension'.
    [Error 15:37:25.680] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:25.680] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:25.681] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:25.681] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:25.681] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:25.681] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:25.681] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:25.681] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:25.682] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:25.682] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:25.682] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:25.682] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Info 15:37:25.684] [DrawingService] Could not find 'network-wireless-connected-75', using fallback of 'gnome-netstatus-75-100'.
    [Error 15:37:35.681] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:35.681] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:35.682] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:35.682] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:35.683] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:35.683] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:35.684] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:35.684] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:35.685] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:35.685] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:35.685] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:35.686] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Info 15:37:35.689] [DrawingService] Could not find 'network-wireless-connected-75', using fallback of 'gnome-netstatus-75-100'.
    [Error 15:37:45.682] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:45.683] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:45.683] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:45.684] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:45.684] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:45.685] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:45.685] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:45.685] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:45.686] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:45.686] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Error 15:37:45.687] [NetworkDevice] org.freedesktop.DBus.Error.AccessDenied: Interface "org.freedesktop.NetworkManager" isn't exported (or may not exist), can't access property "State"
    [Debug 15:37:45.687] [NetworkDevice] at NetworkManagerDocklet.INetworkDeviceProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
    at NetworkManagerDocklet.NetworkDevice.get_State () [0x00000] in <filename unknown>:0
    [Info 15:37:45.692] [DrawingService] Could not find 'network-wireless-connected-75', using fallback of 'gnome-netstatus-75-100'.
    Thanks!

    Hello
    Please provide what calculation u r using..meanwhile u can check for
    data in cube....
    calculation in Calculate KF in query....
    Thanks
    Tripple k

  • [SOLVED] xfce upgrade 4.11 -- 4.12 : error loading libxfce4util.so.6

    Hi guys,
    I upgraded from xfce 4.11 (xfce4-*-devel packages) to xfce 4.12 today, but I have the following error with a bunch of different xfce4 apps (including xfdesktop):
    # xfce4-settings-manager
    xfce4-settings-manager: error while loading shared libraries: libxfce4util.so.6: cannot open shared object file: No such file or directory
    I tried downgrading extra/libxfce4util 4.12.1-1 to aur/libxfce4util-devel 4.11.0-1 but then the error says libxfce4util.so.7 cannot be found.
    Using ldd I found that the applications depend on both libxfce4util.so.6 and  libxfce4util.so.7
    ldd $(which xfce4-appfinder) | grep -i xfce4
    libxfce4ui-1.so.0 => /usr/lib/libxfce4ui-1.so.0 (0x00007f681fa05000)
    libxfce4util.so.7 => /usr/lib/libxfce4util.so.7 (0x00007f681ecd8000)
    libxfce4util.so.6 => not found
    I figure I have some package somewhere that didn't upgrade properly or something. Here's the list of xfce packages I have installed:
    # pacman -Q | egrep xfce\|xfw\|xfd
    elementary-xfce-icons 0.5-3
    gtk-xfce-engine 2.10.1-1
    libxfce4ui 4.12.0-1
    libxfce4util 4.12.1-1
    mint-backgrounds-xfce 2013.06.10-1
    xfce4-appfinder 4.12.0-1
    xfce4-artwork 0.1.1a_git20110420-4
    xfce4-battery-plugin 1.0.5-4
    xfce4-cpufreq-plugin 1.1.1-2
    xfce4-cpugraph-plugin 1.0.5-3
    xfce4-datetime-plugin 0.6.2-4
    xfce4-diskperf-plugin 2.5.5-1
    xfce4-fsguard-plugin 1.0.2-4
    xfce4-genmon-plugin 3.4.0-3
    xfce4-mpc-plugin 0.4.5-1
    xfce4-netload-plugin 1.2.4-2
    xfce4-panel 4.12.0-1
    xfce4-sensors-plugin 1.2.6-2
    xfce4-session 4.12.0-2
    xfce4-settings 4.12.0-3
    xfce4-smartbookmark-plugin 0.4.5-3
    xfce4-systemload-plugin 1.1.2-2
    xfce4-taskmanager 1.1.0-1
    xfce4-terminal 0.6.3-2
    xfce4-time-out-plugin 1.0.1-5
    xfce4-timer-plugin 1.6.0-3
    xfce4-wavelan-plugin 0.5.12-1
    xfce4-weather-plugin 0.8.5-2
    xfce4-xquisite-icon-theme 0.4.6-1
    xfconf 4.12.0-1
    xfdesktop 4.12.0-1
    xfwm4 4.12.0-1
    xfwm4-themes 4.10.0-2
    zukitwo-colors-xfwm4 0.1-1
    My current workaround, which seems sloppy but works just fine, was to create a symbolic link
    sudo ln -s /usr/lib/libxfce4util.so.7 /usr/lib/libxfce4util.so.6
    Any ideas?
    Regards,
    Walter
    Last edited by rudametw (2015-03-10 17:24:46)

    Output of pacman -Qm
    acroread 9.5.5-5
    adwaita-x-dark-and-light-theme 1.3-1
    aircrack-m4-svn r18-2
    airoscript-ng 1.2rc3-7
    avbin7 7-1
    bbswitch-dkms-git v0.8.r0.g0c38f97-1
    bfg 1.11.8-2
    blueman 1.99.alpha2-1
    bmpanel2 2.1pre1-5
    brainworkshop 4.8.4-4
    bully-git 1.0.22.1fef73a-2
    bumblebee-git 3.2.1.r16.524ded1-1
    chromium-libpdf 1:36.0.1985.143-1
    chromium-pepper-flash 1:16.0.0.305-1
    compton-conf-git 17.18e83fe-1
    compton-git 0.1_beta2.59.g23d1dd1-1
    crunch 3.6-1
    delorean-dark-stripped-themes-3.8 10082013-2
    desksanity-git 1.0.rev59.4150edd-1
    dorian-theme-3.10 105222014-2
    dropbox-cli 2.10.0-4
    dropbox-dark-panel-icons 1.0-10
    e-modules-extra-git 20141224-1
    eclipse-anyedittools 2.4.11.201409071702-1
    eclipse-bytecode-outline 2.4.0-1
    eclipse-emf 2.10.2-1
    eclipse-findbugs 3.0.0-1
    eclipse-gef 3.9.101-1
    eclipse-jadclipse 3.3.0-3
    eclipse-m2e 1.5.0-2
    eclipse-mylyn 3.14.2-1
    eclipse-pydev 3.9.2-1
    eclipse-rse 3.5-2
    eclipse-wtp-wst 3.6.0-1
    econnman 1.1-1
    edgar-git 0.2.0.r24.f36ea5a-1
    efx-git 1.11.99.150.2ffc023-1
    elementary-xfce-icons 0.5-3
    elementary_test-git 1.12.99.10859.6eb6320-1
    elementary_test-git-debug 1.12.99.10859.6eb6320-1
    emprint-git 0.1.0.67.a0886e1-1
    enventor-git 0.4.0.r37.gec28195-1
    ephoto-git 0.1.1.528.26b2ecf-1
    equate-git 0.99.0.18.703693f-1
    ev-git r49.a4ac44f-1
    ewe 0.2.2-1
    eweather-git 0.2.0.r74.59b35ab-1
    exifread 1.4.2-2
    firefox-theme-adwaita 35.1-1
    focuswriter 1.5.3-1
    font-manager 0.5.7-5
    fontconfig-ttf-ms-fonts 1.0-2
    freemind-git 20121104-1
    garcon-devel 0.3.0-5
    gcc-gcj 4.9.2-2
    gcc-gcj-ecj 4.9-1
    gcolor3 1.2.1-1
    gerix-wifi-cracker-ng-git 20111025-2
    glib 1.2.10-12
    gmrun-multihead 0.9.2-2
    gnomintu-icon-theme-git r90.595c6d6r90.595c6d6-1
    google-chrome-dev 42.0.2311.22-1
    google-talkplugin 5.38.6.0-1
    gstreamer0.10-vaapi 0.5.9-1
    gtg 0.3.1-1
    gtk-theme-adt 0.2-1
    gtk-theme-e17gtk 20141022-1
    gtk-theme-murrine-arch 0.4-2
    gtk3-nocsd 20140823-2
    https-everywhere-chrome 2014.1.3-1
    humanity-icon-theme 0.6.5-1
    indicator-stickynotes 0.4.2-1
    johnny 1.1.3-1
    jpegoptim 1.4.2-1
    latex-mk 2.1-2
    lib32-gtk-engine-murrine 0.98.2-1
    lib32-libpng12 1.2.52-1
    lib32-pangox-compat 0.0.2-1
    libappindicator-gtk2 12.10.0-4
    libappindicator-gtk3 12.10.0-4
    libappindicator-sharp 12.10.0-4
    libdbusmenu-gtk2 12.10.2-3
    libeweather-git 0.2.0.78.7548063-1
    libindicator-gtk2 12.10.1-4
    libindicator-gtk3 12.10.1-4
    libpng12 1.2.52-1
    mdk3 v6-4
    mint-backgrounds-xfce 2013.06.10-1
    modelio-open 3.3.0-1
    mozplugger 2.1.6-1
    nemo-dropbox 2.4.0-2
    nodejs-bower 1.3.12-1
    nodejs-grunt-cli 0.1.13-3
    numix-themes-darkblue 2.5-1
    nvidia-dkms 346.47-2
    nvidiabl 0.87-3
    nvidiablctl 0.2-2
    ob-autostart 1-3
    obapps 0.1.7-4
    obex-data-server 0.4.6-10
    okular-browserplugin 20121015-1
    omg-suite 20130525-1
    pasystray-git 0.4.0.r47.gef3dbb0-1
    pavumeter 0.9.3-6
    pdflatex.sh-git 20120111-1
    pdftk 2.02-3
    perl-algorithm-permute 0.12-2
    perl-expect 1.32-1
    perl-number-range 0.12-1
    pkgtools 25-4
    popcorntime 0.3.7.2-1
    powerstat-git 20140207-1
    primus-git 20150223-1
    profile-cleaner 2.34-1
    pulseaudio-git v5.99.2.4.ge0e0ebb-1
    pyqt3 3.18.1-14
    pyrit 0.4.0-2
    python-efl 1.13.0-1
    python2-efl 1.13.0-1
    python2-liblarch 2.1.0-4
    python2-pypdf2 1.24-1
    qscintilla-qt3 1.7.1-6
    qt3 1:3.3.8b-9
    rage-git 0.1.0.r78.9bd2dfb-1
    rar 5.2.1-1
    ravex-colors-gtk-theme 17.2-1
    redshift-git 1.9.1.r91.g59023d8-1
    redshift-gtk-git 1.9.1.r91.g59023d8-1
    rofi-git r449.4c92d1f-1
    screenclone-git 20130120-1
    shimmer-wallpapers 1.0-2
    siano-tv-fw 0.1-1
    simpleswitcher-git 20140219-1
    skippy-xd-git 46.ecb7835-1
    smartgithg 6.0.7-2
    stapler 0.4-2
    superswitcher 0.6-4
    tango-icon-theme 0.8.90-9
    teamviewer 10.0.37742-1
    thunderbird-lightning-bin 3.3-1
    thunderbird-theme-adwaita 31.0-1
    tomboy-calc 0.40-1
    ttf-faruma-ib 2.0-1
    ttf-ms-fonts 2.0-10
    ttf-vista-fonts 1-8
    tuned 2.3.0-1
    vim-ag 20140327-1
    virt-what 1.14-2
    wepbuster 1.0_beta_0.7-6
    wepcrackgui 0.9.2-1
    wingo-git 20121022-2
    wps-office 9.1.0.4945_a16p3-1
    wpscrack 0.0.1-2
    xf86-video-intel-git 2.99.917.151.gfef0f3d-1
    xfce4-xquisite-icon-theme 0.4.6-1
    xpdf 3.04-2
    xwinmosaic-git v0.4.2.11.g378fffb-1
    xz-git 5.2.0.r8.ga9b45ba-1
    zen-gtk-themes 0.14.2-1
    zenx-gtk-themes 0.11.5-1
    zukitwo-colors-xfwm4 0.1-1
    zukitwo-hybrid-theme 20111208-1
    zukitwo-manjaro 33.9693d25-1
    zukitwo-themes 20141022-1

  • [SOLVED]xfce4-topmenu-plugin-git, nothing happens except with firefox

    Hello guys,
    I just installed xfce4-topmenu-plugin-git from the AUR, and also other topmenu utilities (optional dependencies) :
    pacman -Qs topmenu
    local/topmenu-gtk-git 2015.03.22-1
    A standalone global menu bar for Gtk+ 2.0 based desktop environments.
    local/topmenu-gtk3-git 2015.03.22-1
    A standalone global menu bar for Gtk+ 2.0 based desktop environments.
    local/topmenu-mozilla-git 2015.01.21-2
    Firefox/Thunderbird Javascript module for TopMenu.
    local/xfce4-topmenu-plugin-git 2015.03.22-1
    A standalone global menu bar for Gtk+ 2.0 based desktop environments.
    I added the plugin to my xfce panel, and after reboot :
    - when I launch any application nothing happens in the panel
    - when I launch firefox, it works : the firefox menu appears on the xfce panel plugin
    I'm not shure this is the right place to ask, but at least, is there somebody here with the same problem?
    Is somebody getting the plugin to work? (just to know if this is a global or particular issue...)
    Thanks!
    ps : I'm up to date (xfce4.12 etc...)
    Last edited by cazuza (2015-04-13 11:13:16)

    Solution by the maintener of the package :
    You need to ensure the Gtk+ module topmenu-gtk-moduleis loaded. A simple way to do this is to create a .gtkrc-2.0 file in your $HOME with the following contents:
    gtk-modules = "canberra-gtk-module:topmenu-gtk-module"
    or put GTK_MODULES="topmenu-gtk-module:canberra-gtk-module" in your ~/.xprofile or ~/.xinitrc .
    It worked for me
    (But not with libreoffice)
    Last edited by cazuza (2015-04-13 11:20:19)

  • I am using 4K Footages for editing in Premiere pro CC 2014, but its getting crash in between at every 15 to 20 mins. Kindly suggest how can it be solved, does any plugins or settings needed to edit 4K footages? Also would like to mention that footages fra

    I am using 4K Footages for editing in Premiere pro CC 2014, but its getting crash in between at every 15 to 20 mins. Kindly suggest how can it be solved, does any plugins or settings needed to edit 4K footages? Also would like to mention that footages frame rates are 29.97 and i have set timeline to 25 FPS is requirement by client. kindly revert. Thanks

    Thanks Richarad ..It has solved the problem but still crashes some times .As the programme has the break (bumper)after every five minutes ,i hope it will not compress bumper time too after export.

  • [solved] my C code gives floating point errors.

    I've tried to create a simple function to determine if a number is prime or not.. whenever I compile and try to run I get a floating point exception and can't quite figure out why, I'm very new to C and compiling manually using gcc so any help is appreciated.
    here's my code: http://pastebin.com/m2f19dbac
    Last edited by zandaa (2008-10-01 06:36:35)

    I'm quite useless at programming:
    for (i=0; i <= x; i++) {
    if (x%i == 0 && i != 1) {
    result = 0;
    //break;
    if (i == x) {
    result = 1;
    //printf("%d\n", x);
    break;
    This loop always ends with result=1 because the last loop has i=x and therefore it changes the result value to 1.
    There are also many checks you could avoid with a "smart" for cycle:
    for (i=2; i <= x; i++) {
    if (x%i == 0) {
    return 0;
    return 1
    I was able to remove the "i != 1" part by having the for loop starting from 2.
    I removed all the if (i == x) clause because that only happens at the end of the for cycle.
    Also you could be smart and eliminate some values from the loop: for example you could avoid checking all the numbers higher than n/2 or than sqrt(n), but that's more related to the mathematics behind than to the programming
    Hope this helps
    edit: beaten
    Last edited by carlocci (2008-09-25 21:36:04)

  • [SOLVED] XFCE - Incorrect windows placement

    Hi,
    I'm currently having a issue with XFCE's window placement. In the settings panel, under Window Manager Tweaks > Placement, window placement is set to Center for all windows, but this option has no effect. I tried changing it to place windows under the mouse, but it also has no effect on the windows placement. Windows keep opening on the screen corners.
    I checked the forums for similar problems, and found some results, but none of the solutions worked for me. Also, those are quite old topics.
    [Solved] XFCE - Having Trouble Centering Windows
    [solved] Xfce4, new windows position
    Xfce 4.8 xfwm4 window placement settings no longer have any effect.
    This is not a big problem, but I'm kind of picky, so if anyone knows a solution to this problem, please share it.
    Best Regards,
    Agkel0s
    Last edited by Agkel0s (2014-07-14 21:37:54)

    Agkel0s wrote:Currently the slider is on the minimum value, and windows of all sizes should open centered on screen.
    Shouldn't you actually have it on the maximum value?
    I believe the way this works is that the size (or ratio, the option is actually called placement_ratio IIRC and is a ratio of window size vs screen size) you specify here is the minimum to trigger "smart placement." If the window isn't (at least) of that size, then the default (i.e. center or under mouse pointer, as defined below) will be used. So if you want every window to use the default placement, you should set the minimum size for smart placement to be as large as possible. (In fact, I believe with a ratio set to 100 (i.e. slider to the max) it should always use the default placement, regardless of window size, which is want you're after if I'm not wrong.)
    If even with the slider to the max you get new windows placed using smart placement, then it sounds like a bug I'd say.
    (Also, just as FYI and though you might simply want all windows to be centered, I wasn't happy with xfwm's smart placement myself, you can see this topic for a (IMO) better alternative.)

  • [SOLVED] XFCE 4.6 installation conflicts: xfce-mcs-manager obsolete.

    I am running Arch Linux on LXDE and would like to try the brand new XFCE 4.6. It seems most of the packages have arrived in the extra repo but when I try:
    # pacman -S xfce4
    I get:
    looking for inter-conflicts...
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: xfce4-settings: conflicts with xfce-mcs-manager
    I don't find xfce-mcs-manager version 4.6.0.
    I just had a look on xfce wiki:
    xfce-mcs-manager
    This component is obsolete (superseded by xfconf) and will be removed in 4.6!
    The dependency needs to be removed.
    kagashe
    Last edited by kagashe (2009-02-28 15:14:53)

    I said no to install the whole xfce4 group and then said no to following packages:
    :: Install libxfce4mcs from group xfce4? [Y/n] n
    :: Install xfce-mcs-manager from group xfce4? [Y/n] n
    :: Install xfce-mcs-plugins from group xfce4? [Y/n] n
    and proceeded to install and it works. Posting this running XFCE 4.6 on Arch Linux.
    kagashe
    Last edited by kagashe (2009-02-28 15:14:02)

  • [Solved] Bash and Floating point arithmetic

    I didn't realize how troublesome floating point numbers can be until now.
    What I want to do should be simple I dare say:
    properRounding( ( currentTime - downloadTime ) / ( dueTime - downloadTime ) * 100 )
    however best I've been able to achieve so far is this:
    echo "($currentTime-$downloadTime)/($dueTime-$downloadTime)*100" | bc -l
    Which prints the correct floating point value.
    I've tried to put the result in a variable, but I must be doing it wrong as I get the most peculiar error. I can live without it, but it would make life easier.
    As for the rounding, that is a must. I've read that if you remove the -l param from bc, then it will round, but in my case something goes wrong as I just get the value 0 in return and besides, concluded after a simple test, bc always rounds down as in integer division, which I can not use.
    So of course I'll continue reading and hopefully someday arrive at a solution, but I would very much appreciate if someone could lend me a hand.
    This after all is not just a learning experience, I'm trying to create something useful.
    Best regards.
    edit:
    nb:
    all variables are integers.
    Last edited by zacariaz (2012-09-09 14:50:18)

    Just for the fun of it, here's my progress thus far... Well, there really isn't much more to do. The rest is a conky thing.
    #!/bin/bash
    # Variables from unitinfo.txt - date as unix timestamps.
    dueTime="$(date +%s -d "$(grep 'Due time: ' ~/unitinfo.txt | cut -c11-)")"
    if [ "$1" = "end" ]
    then echo $dueTime
    fi
    downloadTime="$(date +%s -d "$(grep 'Download time: ' ~/unitinfo.txt | cut -c16-)")"
    if [ "$1" = "start" ]
    then echo $downloadTime
    fi
    progress="$(grep 'Progress: ' ~/unitinfo.txt | cut -c11-12 | sed 's/ *$//')"
    if [ "$1" = "prog1" ]
    then echo $progress
    fi
    # The rest
    #progress valued 0-1 for use with conky proress bars
    progress2=$( echo 2k $progress 100 / f | dc )
    if [ "$1" = "prog2" ]
    then echo $progress2
    fi
    # Current time - unix timestamp.
    currentTime="$(date +%s)"
    # Remaining time - unix timestamp
    remainingTime=$(( dueTime-$currentTime ))
    if [ "$1" = "remain" ]
    then echo $remainingTime
    fi
    # Elapsed time - unix timestamp
    elapsedTime=$(( currentTime-downloadTime ))
    if [ "$1" = "elap1" ]
    then echo $elapsedTime
    fi
    # Total amount of time available - unix timestamp
    totalTime=$(( dueTime-downloadTime ))
    if [ "$1" = "total" ]
    then echo $totalTime
    fi
    # How much time has elapsed in percent
    progress3="$(echo 3k $elapsedTime $totalTime / 100 \* 0k 0.5 + 1 / f | dc)"
    if [ "$1" = "elap2" ]
    then echo $progress3
    fi
    # Like the above bur 0-1
    progress4=$( echo 2k $progress3 100 / f | dc )
    if [ "$1" = "elap3" ]
    then echo $progress4
    fi
    # In percent, expected completion vs $dueTime - less than 100 is better.
    expectedCompletion="$( echo 3k $elapsedTime 10000 \* $progress / $totalTime / 0k 0.5 + 1 / f | dc )"
    if [ "$1" = "exp1" ]
    then echo $expectedCompletion
    fi
    # Same as above, but unix timestamp
    expectedCompletion2=$(( downloadTime+(expectedCompletion*totalTime/100) ))
    if [ "$1" = "exp2" ]
    then echo $expectedCompletion2
    fi
    #efficiency
    if [ "$1" = "ef1" ]; then
    if [ $progress -lt $progress3 ]
    then echo "you're behind schedule."
    elif [ $progress -eq $progress3 ]
    then echo "You're right on schedule."
    else
    echo "You're ahead of schedule."
    fi
    fi
    if [ "$1" = "ef2" ]; then
    if [ $expectedCompletion -gt 100 ]
    then echo "You're not going to make it!"
    else
    echo "You're going to make it!"
    fi
    fi

  • Photoshop CS3 vs CS2 32 bit floating point tiff loading

    Hi,
    The application I'm developing exports 3 channel 32 bit floating point tiff's.
    The exported files could have been loaded into PS CS2, but PS CS3 can't load them anymore, all I get is a message box with this message:
    "Could not complete your request because of a problem parsing the TIFF file."
    I've uploaded the file here, so you guys can have a look at: www.thepixelmachine.com/dispmap.tiff

    Where should I've posted this thread instead? I suppose people here write plugins by programming them (right?), so they suppose to be programmers, not regular PS users. I thought a programmer would be much more familiar with programming related issues, such as tiff file saving c++ routines. Correct me if I'm wrong.
    The people who tested the file have Photoshop CS3 and didn't manage to open it, they even sent me screenshots with the error message box. In CS2 however, the file loads perfectly. Also, the single strip version opened just fine in CS3.
    You may close this thread, the problem was solved and more than that it looks like I haven't posted it in the right forum.
    Thanks.

  • R6002 - floating point not loaded / C++ Runtime Error

    Good Evening,
    I have been having this problem with Adobe Bridge for a while and tonight sat down to try and solve it. Fresh version of Windows XP reinstalled all programs and this is still happening! Any Ideas?
    This error only occurs with Adobe Bridge, I can load Photoshop etc.. all fine.
    Error:
    "Runtime Error!
    Program: C:\ProgramFiles\Adobe\Adobe Bridge CS3\Bridge.exe
    R6002
    - floating point not loaded"
    Here is a print screen..
    http://images.unbrokenphotography.co.uk/BridgeError.jpg

    Is there are answer to this problem?  This error message is appearing on an entire lab full of computers.  We are running Web Premium CS4
    I have tried to reset the Bridge Preferences:
    Hold down the Ctrl key and click on Bridge icon to start.
    Should get a reset window with 3 options.
    Choose the first option
    I still get "Runtime Error!   Program: C:\Prgram Files\Adobe\Adobe Bridge CS4\Bridge.exe  R6002 -floating point support not loaded"

  • OS X Mavericks Contacts phone numbers shown as Floating point numbers

    After installing Mavericks on MBP, I notice that some phone numbers in contacts are shown as floating point numbers, and are unreadable. I am guessing that these are numbers which were proceeded by "+" previously.
    An example is 4.9161E+12, which is for a German contact, and the number would be +49 161...
    I can't see any way to change the format, and the floating point display is useless, as the last digits are lost.
    Would appreciate any advice on the matter.
    Many thanks,
    Michael.

    Music and pics are one way sync - computer to iphone. The iphone is not a storage device.
    Only itunes purchased music can be transfered. With iphone attached to itunes, click file>transfer purchases.
    Pics are optimized for viewing on iphone, reducing the quality of the pic on the iphone. Only pics taken with iphone and in the Camera Roll can be imported from iphone. This is done as with any other digital camera. You can e-mail the other pics to yourself one at a time. They will not be of the original quality though.
    You really should back up your info/pics/music as hard drives can and do fail.

  • Inline functions in C, gcc optimization and floating point arithmetic issues

    For several days I really have become a fan of Alchemy. But after intensive testing I have found several issues which I'd like to solve but I can't without any help.
    So...I'm porting an old game console emulator written by me in ANSI C. The code is working on both gcc and VisualStudio without any modification or crosscompile macros. The only platform code is the audio and video output which is out of scope, because I have ported audio and video witin AS3.
    Here are the issues:
    1. Inline functions - Having only a single inline function makes the code working incorrectly (although not crashing) even if any optimization is enabled or not (-O0 or O3). My current workarround is converting the inline functions to macros which achieves the same effect. Any ideas why inline functions break the code?
    2. Compiler optimizations - well, my project consists of many C files one of which is called flash.c and it contains the main and exported functions. I build the project as follows:
    gcc -c flash.c -O0 -o flash.o     //Please note the -O0 option!!!
    gcc -c file1.c -O3 -o file1.o
    gcc -c file2.c -O3 -o file2.o
    ... and so on
    gcc *.o -swc -O0 -o emu.swc   //Please note the -O0 option again!!!
    mxmlc.exe -library-path+=emu.swc --target-player=10.0.0 Emu.as
    or file in $( ls *.o ) //Removes the obj files
        do
            rm $file
        done
    If I define any option different from -O0 in gcc -c flash.c -O0 -o flash.o the program stops working correctly exactly as in the inline funtions code (but still does not crash or prints any errors in debug). flash has 4 static functions to be exported to AS3 and the main function. Do you know why?
    If I define any option different from -O0 in gcc *.o -swc -O0 -o emu.swc  the program stops working correctly exactly as above, but if I specify -O1, -O2 or O3 the SWC file gets smaller up to 2x for O3. Why? Is there a method to optimize all the obj files except flash.o because I suspect a similar issue as when compilling it?
    3. Flating point issues - this is the worst one. My code is mainly based on integer arithmetic but on 1-2 places it requires flating point arithmetic. One of them is the conversion of 16-bit 44.1 Khz sound buffer to a float buffer with same sample rate but with samples in the range from -1.0 to 1.0.
    My code:
    void audio_prepare_as()
        uint32 i;
        for(i=0;i<audioSamples;i+=2)
            audiobuffer[i] = (float)snd.buffer[i]/32768;
            audiobuffer[i+1] = (float)snd.buffer[i+1]/32768;
    My audio playback is working perfectly. But not if using the above conversion and I have inspected the float numbers - all incorrect and invalid. I tried other code with simple floats - same story. As if alchemy refuses to work with floats. What is wrong? I have another lace whre I must resize the framebuffer and there I have a float involved - same crap. Please help me?
    Found the floating point problem: audiobuffer is written to a ByteArray and then used in AS. But C floats are obviously not the same as those in AS3. Now the floating point is resolved.
    The optimization issues remain! I really need to speed up my code.
    Thank you in advice!

    Dear Bernd,
    I am still unable to run the optimizations and turn on the inline functions. None of the inline functions contain any stdli function just pure asignments, reads, simple arithmetic and bitwise operations.
    In fact, the file containing the main function and those functions for export in AS3 did have memset and memcpy. I tried your suggestion and put the code above the functions calling memset and memcpy. It did not work soe I put the code in a header which is included topmost in each C file. The only system header I use is malloc.h and it is included topmost. In other C file I use pow, sin and log10 from math.h but I removed it and made the same thing:
    //shared.h
    #ifndef _SHARED_H_
    #define _SHARED_H_
    #include <malloc.h>
    static void * custom_memmove( void * destination, const void * source, unsigned int num ) {
      void *result; 
      __asm__("%0 memmove(%1, %2, %3)\n" : "=r"(result) : "r"(destination), "r"(source), "r"(num)); 
      return result; 
    static void * custom_memcpy ( void * destination, const void * source, unsigned int num ) { 
      void *result; 
      __asm__("%0 memcpy(%1, %2, %3)\n" : "=r"(result) : "r"(destination), "r"(source), "r"(num)); 
      return result; 
    static void * custom_memset ( void * ptr, int value, unsigned int num ) { 
      void *result; 
      __asm__("%0 memset(%1, %2, %3)\n" : "=r"(result) : "r"(ptr), "r"(value), "r"(num)); 
      return result; 
    static float custom_pow(float x, int y) {
        float result;
      __asm__("%0 pow(%1, %2)\n" : "=r"(result) : "r"(x), "r"(y));
      return result;
    static double custom_sin(double x) {
        double result;
      __asm__("%0 sin(%1)\n" : "=r"(result) : "r"(x));
      return result;
    static double custom_log10(double x) {
        double result;
      __asm__("%0 log10(%1)\n" : "=r"(result) : "r"(x));
      return result;
    #define memmove custom_memmove
    #define memcpy custom_memcpy
    #define memset custom_memset
    #define pow custom_pow
    #define sin custom_sin
    #define log10 custom_log10 
    #include "types.h"
    #include "macros.h"
    #include "m68k.h"
    #include "z80.h"
    #include "genesis.h"
    #include "vdp.h"
    #include "render.h"
    #include "mem68k.h"
    #include "memz80.h"
    #include "membnk.h"
    #include "memvdp.h"
    #include "system.h"
    #include "loadrom.h"
    #include "input.h"
    #include "io.h"
    #include "sound.h"
    #include "fm.h"
    #include "sn76496.h" 
    #endif /* _SHARED_H_ */ 
    It still behave the same way as if nothing was changed (works incorrectly - displays jerk which does not move, whereby the image is supposed to move)
    As I am porting an emulator (Sega Mega Drive) I use manu arrays of function pointers for implementing the opcodes of the CPU's. Could this be an issue?
    I did a workaround for the floating point problem but processing is very slow so I hear only bzzt bzzt but this is for now out of scope. The emulator compiled with gcc runs at 300 fps on a 1.3 GHz machine, whereby my non optimized AVM2 code compiled by alchemy produces 14 fps. The pure rendering is super fast and the problem lies in the computational power of AVM. The frame buffer and the enulation are generated in the C code and only the pixels are copied to AS3, where they are plotted in a BitmapData. On 2.0 GHz Dual core I achieved only 21 fps. Goal is 60 fps to have smooth audio and video. But this is offtopic. After all everything works (slow) without optimization, and I would somehow turn it on. Suggestions?
    Here is the file with the main function:
    #include "shared.h"
    #include "AS3.h"
    #define FRAMEBUFFER_LENGTH    (320*240*4)
    static uint8* framebuffer;
    static uint32  audioSamples;
    AS3_Val sega_rom(void* self, AS3_Val args)
        int size, offset, i;
        uint8 hardware;
        uint8 country;
        uint8 header[0x200];
        uint8 *ptr;
        AS3_Val length;
        AS3_Val ba;
        AS3_ArrayValue(args, "AS3ValType", &ba);
        country = 0;
        offset = 0;
        length = AS3_GetS(ba, "length");
        size = AS3_IntValue(length);
        ptr = (uint8*)malloc(size);
        AS3_SetS(ba, "position", AS3_Int(0));
        AS3_ByteArray_readBytes(ptr, ba, size);
        //FILE* f = fopen("boris_dump.bin", "wb");
        //fwrite(ptr, size, 1, f);
        //fclose(f);
        if((size / 512) & 1)
            size -= 512;
            offset += 512;
            memcpy(header, ptr, 512);
            for(i = 0; i < (size / 0x4000); i += 1)
                deinterleave_block(ptr + offset + (i * 0x4000));
        memset(cart_rom, 0, 0x400000);
        if(size > 0x400000) size = 0x400000;
        memcpy(cart_rom, ptr + offset, size);
        /* Free allocated file data */
        free(ptr);
        hardware = 0;
        for (i = 0x1f0; i < 0x1ff; i++)
            switch (cart_rom[i]) {
         case 'U':
             hardware |= 4;
             break;
         case 'J':
             hardware |= 1;
             break;
         case 'E':
             hardware |= 8;
             break;
        if (cart_rom[0x1f0] >= '1' && cart_rom[0x1f0] <= '9') {
            hardware = cart_rom[0x1f0] - '0';
        } else if (cart_rom[0x1f0] >= 'A' && cart_rom[0x1f0] <= 'F') {
            hardware = cart_rom[0x1f0] - 'A' + 10;
        if (country) hardware=country; //simple autodetect override
        //From PicoDrive
        if (hardware&8)        
            hw=0xc0; vdp_pal=1;
        } // Europe
        else if (hardware&4)    
            hw=0x80; vdp_pal=0;
        } // USA
        else if (hardware&2)    
            hw=0x40; vdp_pal=1;
        } // Japan PAL
        else if (hardware&1)      
            hw=0x00; vdp_pal=0;
        } // Japan NTSC
        else
            hw=0x80; // USA
        if (vdp_pal) {
            vdp_rate = 50;
            lines_per_frame = 312;
        } else {
            vdp_rate = 60;
            lines_per_frame = 262;
        /*SRAM*/   
        if(cart_rom[0x1b1] == 'A' && cart_rom[0x1b0] == 'R')
            save_start = cart_rom[0x1b4] << 24 | cart_rom[0x1b5] << 16 |
                cart_rom[0x1b6] << 8  | cart_rom[0x1b7] << 0;
            save_len = cart_rom[0x1b8] << 24 | cart_rom[0x1b9] << 16 |
                cart_rom[0x1ba] << 8  | cart_rom[0x1bb] << 0;
            // Make sure start is even, end is odd, for alignment
            // A ROM that I came across had the start and end bytes of
            // the save ram the same and wouldn't work.  Fix this as seen
            // fit, I know it could probably use some work. [PKH]
            if(save_start != save_len)
                if(save_start & 1) --save_start;
                if(!(save_len & 1)) ++save_len;
                save_len -= (save_start - 1);
                saveram = (unsigned char*)malloc(save_len);
                // If save RAM does not overlap main ROM, set it active by default since
                // a few games can't manage to properly switch it on/off.
                if(save_start >= (unsigned)size)
                    save_active = 1;
            else
                save_start = save_len = 0;
                saveram = NULL;
        else
            save_start = save_len = 0;
            saveram = NULL;
        return AS3_Int(0);
    AS3_Val sega_init(void* self, AS3_Val args)
        system_init();
        audioSamples = (44100 / vdp_rate)*2;
        framebuffer = (uint8*)malloc(FRAMEBUFFER_LENGTH);
        return AS3_Int(vdp_rate);
    AS3_Val sega_reset(void* self, AS3_Val args)
        system_reset();
        return AS3_Int(0);
    AS3_Val sega_frame(void* self, AS3_Val args)
        uint32 width;
        uint32 height;
        uint32 x, y;
        uint32 di, si, r;
        uint16 p;
        AS3_Val fb_ba;
        AS3_ArrayValue(args, "AS3ValType", &fb_ba);
        system_frame(0);
        AS3_SetS(fb_ba, "position", AS3_Int(0));
        width = (reg[12] & 1) ? 320 : 256;
        height = (reg[1] & 8) ? 240 : 224;
        for(y=0;y<240;y++)
            for(x=0;x<320;x++)
                di = 1280*y + x<<2;
                si = (y << 10) + ((x + bitmap.viewport.x) << 1);
                p = *((uint16*)(bitmap.data + si));
                framebuffer[di + 3] = (uint8)((p & 0x1f) << 3);
                framebuffer[di + 2] = (uint8)(((p >> 5) & 0x1f) << 3);
                framebuffer[di + 1] = (uint8)(((p >> 10) & 0x1f) << 3);
        AS3_ByteArray_writeBytes(fb_ba, framebuffer, FRAMEBUFFER_LENGTH);
        AS3_SetS(fb_ba, "position", AS3_Int(0));
        r = (width << 16) | height;
        return AS3_Int(r);
    AS3_Val sega_audio(void* self, AS3_Val args)
        AS3_Val ab_ba;
        AS3_ArrayValue(args, "AS3ValType", &ab_ba);
        AS3_SetS(ab_ba, "position", AS3_Int(0));
        AS3_ByteArray_writeBytes(ab_ba, snd.buffer, audioSamples*sizeof(int16));
        AS3_SetS(ab_ba, "position", AS3_Int(0));
        return AS3_Int(0);
    int main()
        AS3_Val romMethod = AS3_Function(NULL, sega_rom);
        AS3_Val initMethod = AS3_Function(NULL, sega_init);
        AS3_Val resetMethod = AS3_Function(NULL, sega_reset);
        AS3_Val frameMethod = AS3_Function(NULL, sega_frame);
        AS3_Val audioMethod = AS3_Function(NULL, sega_audio);
        // construct an object that holds references to the functions
        AS3_Val result = AS3_Object("sega_rom: AS3ValType, sega_init: AS3ValType, sega_reset: AS3ValType, sega_frame: AS3ValType, sega_audio: AS3ValType",
            romMethod, initMethod, resetMethod, frameMethod, audioMethod);
        // Release
        AS3_Release(romMethod);
        AS3_Release(initMethod);
        AS3_Release(resetMethod);
        AS3_Release(frameMethod);
        AS3_Release(audioMethod);
        // notify that we initialized -- THIS DOES NOT RETURN!
        AS3_LibInit(result);
        // should never get here!
        return 0;

  • BUG: Large floating point numbers convert to the wrong integer

    Hi,
    When using the conversion "bullets" to convert SGL, DBL and EXT to integers there are some values which convert wrong. One example is the integer 9223370937343148030, which can be represented exactly as a SGL (and thus exactly as DBL and EXT as well). If you convert this to I64 you get 9223370937343148032 instead, even though the correct integer is within the range of an I64. There are many similar cases, all (I've noticed) within the large end of the ranges.
    This has nothing to do with which integers can be represented exactly as a floating point value or not. This is a genuine conversion bug mind you.
    Cheers,
    Steen
    CLA, CTA, CLED & LabVIEW Champion
    Solved!
    Go to Solution.

    Yes, I understand the implications involved, and there definetely is a limit to how many significant digits that can be displayed in the numeric controls and constants today. I think that either this limit should be lifted or a cap should be put onto the configuration page when setting the display format.
    I ran into this problem as I'm developing a new toolset that lets you convert all the numeric formats into any other numeric format, just like the current "conversion bullets". My conversion bullets have outputs for overflow and exact conversion as well, since I need that functionality myself for a Math toolset (GPMath) I'm also developing. Eventually I'll maybe include underflow as well, but for now just those two outputs are available. Example:
    I do of course pay close attention to the binary representation of the numbers to calculate the Exact conversion? output correctly for each conversion variation (there are hundreds of VIs in polymorphic wrappers), but I relied in some cases on the ability of the numeric indicator to show a true number when configured appropriately - that was when I discovered this bug, which I at first mistook for a conversion error in LabVIEW.
    Is there a compliancy issue with EXT?
    While doing this work I've discovered that the EXT format is somewhat misleadingly labelled as "80-bit IEEE compliant" (it says so here), but that statement should be read with some suspicion IMO. The LabVIEW EXT is not simply IEEE 754-1985 compliant anyways, as that format would imply the x87 80-bit extended format. An x87 IEEE 754 extended precision float only has 63-bit fraction and a 1-bit integer part. That 1-bit integer part is implicit in single and double precision IEEE 754 numbers, but it is explicit in x87 extended precision numbers. LabVIEW EXT seems to have an implicit integer part and 64-bit fraction, thus not straight IEEE 754 compliant. Instead I'd say that the LabVIEW EXT is an IEEE 754r extended format, but still a proprietary one that should deserve a bit more detail in the available documentation. Since it's mentioned several places in the LabVIEW documentation that the EXT is platform independent, your suspicion should already be high though. It didn't take me many minutes to verify the apparent format of the EXT in any case, so no real problem here.
    Is there a genuine conversion error from EXT to U64?
    The integer 18446744073709549568 can be represented exactly as EXT using this binary representation (mind you that the numeric indicators won't display the value correctly, but instead show 18446744073709549600):
    EXT-exponent: 0x100000000111110b
    EXT-fraction: 0x1111111111111111111111111111111111111111111111111111000000000000b
    --> Decimal: 18446744073709549568
    The above EXT value converts exactly to U64 using the To Unsigned Quad Integer "bullet". But then let's try to flip the blue bit from 0 to 1 in the fraction part of the EXT, making this value:
    EXT-exponent: 0x100000000111110b
    EXT-fraction: 0x1111111111111111111111111111111111111111111111111111100000000000b
    --> Decimal: 18446744073709550592
    The above EXT value is still within U64 range, but the To Unsigned Quad Integer "bullet" converts it to U64_max which is 18446744073709551615. Unless I've missed something this must be a genuine conversion error from EXT to U64?
    /Steen
    CLA, CTA, CLED & LabVIEW Champion

Maybe you are looking for