Quantcast
Channel: MarsHut
Viewing all 6551 articles
Browse latest View live

Split string by multiple delimiters

$
0
0
I have a string "hello <format> world" and I need to split it based on
multiple characters "<> ". How do I get this ?

One option is:

strings.FieldsFunc("hello <format> world", func (r rune) bool {

return r == '<' || r == '>'
})

But this gives ["hello","format","world"].

Is there a way to retain even the delimiters also in this list?

Should I use socket option ZMQ_TCP_ACCEPT_FILTER in ZeroMQ 4.0?

$
0
0
The API doc version 4.1 for setsockopt option
ZMQ_TCP_ACCEPT_FILTER says this option is deprecated, and you
should use the ZAP API instead.

The API doc version 4.0 doesn't say this, but the ZAP API is
already available.

Writing bindings for ZeroMQ 4, should I write in the docs that
this option is deprecated since 4.1, or should I just write that
it is deprecated?

Factory with $http calls and Parent controller

$
0
0
I am new to Angular and am trying to do something that I just need another
set of eyes on. Here is what I am trying to accomplish:

Have a factory make an API call, then inject that factory into a parent
controller that will have scope over the entire page. Then have child
controllers nested and inherit from the parent controller.

Here is what I have so far. I may be WAY off here, and if that is the case,
please tell me. I am working on this alone, and have no help, so any help
is welcomed.

Thank you.

var app = angular.module('myApp', []);

app.factory('myFactory', function($http){
var MyFactory = function(){};
MyFactory.getParams = function(){
return $http.get('/getparameters');
.success(function(data){
var roomname = data.roomname;
})
MyFactory.getRoom(roomname);
};
MyFactory.getRoom = function(room){
return $http.get('/my/api/' + room);
};
});
app.controller('RoomCtrl', function($scope, myFactory){
$scope.data = myFactory;
});

possible typo in leoSettings.leo

$
0
0
Hi Edward
I was looking for a way to configure Leo so that Headline text is shewn
in bold. Although I don't think this is the right place for me to be
looking ;-/, I think there may be a typo in leoSettings.leo:

<v t="ekr.20140912075503.19292"><vh>Colors for headlines that *are* being
edited</vh> <v t="ekr.20140912075503.19293"><vh>@color head-fg =
black</vh></v> <v t="ekr.20140912075503.19294"><vh>@color head-bg =
pink</vh></v> <v t="ekr.20140912075503.19295"><vh>@color head-sel-fg =
white</vh></v> <v t="ekr.20140912075503.19296"><vh>@color head-sel-bg =
blue</vh></v> </v> <v t="ekr.20140912075503.19301"><vh>Colors for
headlines that are *not* being edited</vh> <v
t="ekr.20140912075503.19302"><vh>@@string edit-label-border = 2px</vh></v> <v
t="ekr.20140912075503.19303"><vh>@@string edit-label-margin = 2px</vh></v> <v
t="ekr.20140912075503.19304"><vh>@color edit-label-bg =
@LightSteelBlue1</vh></v> <v t="ekr.20141204160426.5"><vh>@color
edit-label-fg = black</vh></v>

Aren't the 'colors for...' headlines the wrong way round? [*are*/*not*].
Tho' I appreciate this won't affect functionality...

Regards
jon N

Configure also-notify for freeipa DNS zones

$
0
0
Hi,

The docs state this:

"DNS slaves will transfer the whole zone periodically as is specified in zone's SOA record. DNS masters also send DNS NOTIFY messages to inform slaves about a change asynchronously."

I have a need to execute zone transfers from my IPA server(s) to non-IPA slaves and I would like the IPA servers to send notifies each time the zone is updated/reloaded (eg, the "also-notify" option in BIND). Currently, the zone transfer is only executed once the refresh timer in the SOA expires. I don't see an option within IPA to configure the BIND "also-notify" option.

How can I make my IPA DNS servers send notify's to my non-IPA slave servers so that zone transfers occur immediately after IPA zone updates?

Thanks,

Josh

More Norwegian trouble

$
0
0
There was a long thread on the trouble that the Windows "Norwegian
(Bokmål)" locale name causes, because the locale name is not pure ASCII.
That was fixed by mapping "Norwegian (Bokmål)" to a pure-ASCII alias of
it, "norwegian-bokmal".
(http://www.postgresql.org/message-id/20140915230427.2486.29437 [ at ] wrigleys.postgresql.org)

I just upgraded my Windows toolchain, and as a leftover from developing
that patch still had my locale set to Norwegian (Bokmål). To my
surprise, after a rebuild, initdb failed:

FATAL: new collation (Norwegian_Norway.1252) is incompatible with the
collation of the template database (norwegian-bokmal_Norway.1252)
HINT: Use the same collation as in the template database, or use
template0 as t emplate.
STATEMENT: CREATE DATABASE template0 IS_TEMPLATE = true
ALLOW_CONNECTIONS = fal se;

It works when I pass a locale to initdb explicitly; it only breaks if
the system locale is set to "Norwegian (Bokmål)", and I let initdb to
use the default.

At first I suspected Noah's commit
6fdba8ceb071a3512d5685f1cd4f971ab4d562d1, but reverting that made no
difference.

So unfortunately, that patch that I committed earlier did not completely
fix this issue. It looks like setlocale() is quite brain-dead on what
the canonical spelling of that locale is:

setlocale(LC_COLLATE, NULL) -> "Norwegian (Bokmål)_Norway"

but:

setlocale(LC_COLLATE, "norwegian-bokmal_Norway") -> "Norwegian_Norway")

Apparently the behavior changed when I upgraded the toolchain. IIRC, I
used to use "Microsoft Windows SDK 7.1", with "Microsoft Visual C++
Compilers 2010 Standard Edition" that came with it. I'm now using
"Microsoft Visual Studio Community Edition 2013 Update 4", with
"Microsoft Visual C++ Compilers 2010 SP Standard". I don't know what
part of the upgrade broke this. Could also have been something else; I
don't keep track of my build environment that carefully.

Now, what should we do about this? I'd like to know if others are seeing
this, with whatever compiler versions you are using. In particular, I
wonder if the builds included in the EnterpriseDB installers are
experiencing this.

Perhaps the nicest fix would be to change the mapping code to map the
problematic locale name to "Norwegian_Norway" instead of
"norwegian-bokmal". That's assuming that it is in fact the same locale,
and that it's accepted on all supported Windows versions. Another option
is to also map "Norwegian_Norway" to "norwegian-bokmal_Norway", even
though "Norwegian_Norway" doesn't contain any ASCII characters and
wouldn't be a problem as such. That seems like a safer option.

It would be good to do something about this before the next minor
release, as the original mapping commit has not been released yet.

- Heikki

new deprecated options

$
0
0
ZeroMQ introduces three new options for setsockopt:

ZMQ_IPC_FILTER_PID
ZMQ_IPC_FILTER_UID
ZMQ_IPC_FILTER_GID

In the docs, it says these options are deprecated.

Why introduce options that are deprecated at the same time?

Warnings

$
0
0
Hi:

You are correct about the extra function I used. I got the idea from
Python documentation.

I tested get_shortest_path in my little program and it seems that it is
doing what it should once the warnings are suppressed. For an invalid path
it returns an empty list for a self-referential path it returns the index
of the vertex.( In your example A is the zeroth vertex.) This allows the
user to easily process the results. What confused me was that the same
warning is returned for both cases.

Your solution is a bit smoother than what is currently available. But in
any case the user would have to discover it unless it is documented.
That's been my problem.

Sorry about tkplot. I may be forced to convert my graphs to R. Those
seventeenth century philosophers knew nothing about computer graphics. The
logic of Part II of his Ethics may be too detailed to plot on a single
page. I'll soon find out.

Best.

modularity.org

$
0
0
I've created a new website to help new Clojure developers get started with
Clojure and specifically with Stuart Sierra's component/reloaded-workflow
pattern.

On http://modularity.org you can find documentation about modular. Modular
comprises :-

- a set of pre-written components
- a template system for creating new projects
- some optional utility libraries

There are also full instructions for creating new Clojure projects that are
based on component, which involves typing the following :-

$ lein new modular <project-name> <template>

where <template> is one of a number listed on the site
here: http://modularity.org/docs.html

Don't expect everything to work perfectly yet, and please help if you can
by suggesting improvements to make this easier for new Clojure developers.

Thanks,

Malcolm

PS: There is a Google group mailing list 'modularity'. If you want to get
more involved with this project, please join the list.

Recent occasional tearing with GT 430 Advanced 2x?

$
0
0
I'm running mythtv-0.27.3 (patched for the schedules direct change)
under Gentoo on my x86 frontend.

I've been using an nVidia GT 430 for 2-3 years now and have always
used the VDPAU High Quality profile with no problem. I record all
U.S. OTA, so I need de-interlacing on everything except ABC and Fox.

Starting less than a week ago I've been getting sporadic occasional
tearing...mostly in the form of things such as that "jumping" effect
during camera pans etc. When it happens, manually switching the
deinterlacer from Advanced 2x to Temporal 2x corrects it.

This started with no recent updates etc, or any change that would
explain it. The only change was an upgrade of the Mythbuntu theme,
which I knew wouldn't be related (though I tried another theme just to
make sure). All other things around my fronend/backend seem to be
fine otherwise. Last night I upgraded the nVidia driver from
343.22-r2 to 343.36 (the current stable driver) to see if it would
help, but it still happens occasionally.

I almost wondered if the broadcasters had possibly increased frame
rates or something, however I ran into this on a CBS 1080i recording
I've had for over six months.

Any clues as to what might cause that? I'm almost wondering if the
nVidia card itself may be failing or something.

Thanks!
Tom

Question about vmware and opennms , driving me nuts

$
0
0
Hello

I have this weird problem, i cannot get any information from the Esxi's,
and after searching i think most of the web for a solution i need to go
to the source. and will be very grateful if you can show me the proper
soltion here
Because i think i will loose my hair if i continue this. Sorry for a
long post.

The UI for OpenNMS says this for example
VMware-HostSystem Not Monitored
VMware-ManagedEntity 7.662%
VMwareCim-HostSystem 7.649%

When checking the logs i discover following

015-01-06 16:58:03,814 ERROR [Poller-Thread-25-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting credentials for VMware
management server '192.168.200.20'.
2015-01-06 16:58:03,814 ERROR [Poller-Thread-25-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting username for VMware
management server '192.168.200.20'.
2015-01-06 16:58:03,815 ERROR [Poller-Thread-25-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting password for VMware
management server '192.168.200.20'.

015-01-06 16:58:05,992 WARN [Collectd-Thread-20-of-50]
O.V.o.o.n.c.VmwareCollector: Error connecting VMware management server
'192.168.200.20': 'null' exception: com.vmware.vim25.InvalidLogin cause:
'null'

But i have set the configure correct on both opennms and the ESXI part.

root [ at ] mgmt-srv-001:~# /usr/share/opennms/bin/vmwarecimquery
192.168.200.20 opennms changeme
ls: cannot access /usr/share/opennms/lib/slf4j-log4j*.jar: No such file
or directory
Trying to connect to 192.168.200.20... SLF4J: Failed to load class
"org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
Success!
Querying 192.168.200.20 for host systems... 1 host system(s) found!
Determining primary Ip address of host system 192.168.200.20
(powerState=poweredOn)... 192.168.200.20
Querying host system mgmt-vm-001.krg.net for numeric sensors... 11
sensor(s) found!
System Level(152.0.32.99) OK
Voltage(151.0.32.99) OK
Voltage(150.0.32.99) OK
Current(149.0.32.99) OK
Current(148.0.32.99) OK
FAN 5 RPM(52.0.32.99) OK
FAN 4 RPM(51.0.32.99) OK
FAN 3 RPM(50.0.32.99) OK
FAN 2 RPM(49.0.32.99) OK
FAN 1 RPM(48.0.32.99) OK
Ambient Temp(14.0.32.99) OK
Cleaning up...

root [ at ] mgmt-srv-001:~# /usr/share/opennms/bin/vmwareconfigbuilder
192.168.200.20 opennms changeme
Generating configuration files for 'VMware ESXi 5.0.0 build-702118'
using rrdRepository '/var/lib/opennms/rrd/snmp'...
com.vmware.vim25.InvalidArgument
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:374)
at com.vmware.vim25.ws.XmlGen.fromXml(XmlGen.java:201)
at com.vmware.vim25.ws.XmlGen.parseSoapFault(XmlGen.java:80)
at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:133)
at
com.vmware.vim25.ws.VimStub.queryPerfProviderSummary(VimStub.java:1266)
at
com.vmware.vim25.mo.PerformanceManager.queryPerfProviderSummary(PerformanceManager.java:112)
at
org.opennms.protocols.vmware.VmwareConfigBuilder.lookupMetrics(VmwareConfigBuilder.java:214)
at
org.opennms.protocols.vmware.VmwareConfigBuilder.generateData(VmwareConfigBuilder.java:319)
at
org.opennms.protocols.vmware.VmwareConfigBuilder.main(VmwareConfigBuilder.java:541)
root [ at ] mgmt-srv-001:~#

root [ at ] mgmt-srv-001:~# /usr/share/opennms/bin/vmwarereqtool
vmware://opennms:changeme [ at ] 192.168.200.20
<model-import xmlns="http://xmlns.opennms.org/xsd/config/model-import"
date-stamp="2015-01-07T10:57:59.491+01:00"
foreign-source="vmware-192.168.200.20">
<node foreign-id="1345" node-label="sik2-40">
<interface ip-addr="192.168.211.158" managed="true" status="1"
snmp-primary="P">
<monitored-service service-name="VMware-VirtualMachine"/>
<monitored-service service-name="VMware-ManagedEntity"/>
</interface>
<category name="VMware5"/>
<asset name="ram" value="1024 MB"/>
<asset name="cpu" value="4 vCPU"/>
<asset name="operatingSystem" value="Microsoft Windows XP
Professional (32-bit)"/>
<asset name="vmwareState" value="poweredOn"/>
<asset name="vmwareTopologyInfo" value="ha-folder-vm/vm,
ha-datacenter/ha-datacenter, ha-folder-root/ha-folder-root,
53199623-08e5fadf-7165-d067e5e9eda2/VDI+Vol_1,
531996de-a19eb0de-a40e-d067e5e9eda2/VDI+Vol_5, HaNetwork-sik2/sik2,
ha-host/192.168.200.20"/>
<asset name="vmwareManagedObjectId" value="1345"/>
<asset name="vmwareManagedEntityType" value="VirtualMachine"/>
<asset name="vmwareManagementServer" value="192.168.200.20"/>
</node>

So it looks like the login and password are correct here. The configure
can be read in the bottom of this

I also see this in the logs of the ESXIserver, but when opennms doing
this automatically, i see lots of Cannot login @192.168.151.110 on the
esxi with ipnumber 192.168.200.20

Event Details VMware
Type: error

event 07.01.2015 10:49:44, Cannot login @192.168.151.110

Description:

A user attempted to log in with an unknown or invalid username

Possible causes:

Cause: The username is unknown to the system

Action: Use a username that is included in the system user directory
Action: On Linux, verify that the user directory is correctly configured
Action: If you are using Active Directory, check the health of the
domain controller
Cause: The user provided an invalid password

Action: Supply the correct password

So it seems i have forgotten something on the
opennmsserverconfiguration, if this is the case what have i forgot, and
where? Or is it broken somewhere? If broken is there a fix? :) And how
if so.

2015-01-06 16:58:05,991 WARN [Collectd-Thread-18-of-50]
o.o.n.c.CollectableService: run: failed collection for
4800/79.135.1.26/VMware-VirtualMachine/vmware5
2015-01-06 16:58:05,991 ERROR [Collectd-Thread-18-of-50]
o.o.n.c.CollectableService: Collection failed for an unknown reason
(code 2. Please review previous logs for this thread for details. You
can also open up an enhancement bug report (include your logs) to
request that failure messages are logged for this type of error.
org.opennms.netmgt.collectd.CollectionFailed: Collection failed for an
unknown reason (code 2. Please review previous logs for this thread for
details. You can also open up an enhancement bug report (include your
logs) to request that failure messages are logged for this type of error.
at
org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:413)
~[opennms-services-14.0.0.jar:?]
at
org.opennms.netmgt.collectd.CollectableService.doRun(CollectableService.java:322)
[opennms-services-14.0.0.jar:?]
at
org.opennms.netmgt.collectd.CollectableService.access$000(CollectableService.java:70)
[opennms-services-14.0.0.jar:?]
at
org.opennms.netmgt.collectd.CollectableService$1.run(CollectableService.java:300)
[opennms-services-14.0.0.jar:?]
at org.opennms.core.logging.Logging.withPrefix(Logging.java:66)
[org.opennms.core.logging-14.0.0.jar:?]
at
org.opennms.netmgt.collectd.CollectableService.run(CollectableService.java:296)
[opennms-services-14.0.0.jar:?]
at
org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:209)
[opennms-services-14.0.0.jar:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[?:1.7.0_65]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[?:1.7.0_65]
at
org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124)
[opennms-util-14.0.0.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65]
2015-01-06 16:58:05,992 WARN [Collectd-Thread-20-of-50]
O.V.o.o.n.c.VmwareCollector: Error connecting VMware management server
'192.168.200.20': 'null' exception: com.vmware.vim25.InvalidLogin cause:
'null'
2015-01-06 16:58:05,993 ERROR [Collectd-Thread-18-of-50]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting credentials for VMware
management server '192.168.200.120'.
2015-01-06 16:58:05,993 WARN [Collectd-Thread-20-of-50]
o.o.n.c.CollectableService: run: failed collection for
4633/192.168.151.238/VMware-VirtualMachine/vmware5
2015-01-06 16:58:05,993 ERROR [Collectd-Thread-18-of-50]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting username for VMware
management server '192.168.200.120'.
2015-01-06 16:58:05,993 ERROR [Collectd-Thread-18-of-50]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting password for VMware
management server '192.168.200.120'.
2015-01-06 16:58:05,993 ERROR [Collectd-Thread-20-of-50]
o.o.n.c.CollectableService: Collection failed for an unknown reason
(code 2. Please review previous logs for this thread for details. You
can also open up an enhancement bug report (include your logs) to
request that failure messages are logged for this type of error.
org.opennms.netmgt.collectd.CollectionFailed: Collection failed for an
unknown reason (code 2. Please review previous logs for this thread for
details. You can also open up an enhancement bug report (include your
logs) to request that failure messages are logged for this type of error.
at
org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:413)
~[opennms-services-14.0.0.jar:?]
at
org.opennms.netmgt.collectd.CollectableService.doRun(CollectableService.java:322)
[opennms-services-14.0.0.jar:?]
at
org.opennms.netmgt.collectd.CollectableService.access$000(CollectableService.java:70)
[opennms-services-14.0.0.jar:?]
at
org.opennms.netmgt.collectd.CollectableService$1.run(CollectableService.java:300)
[opennms-services-14.0.0.jar:?]
at org.opennms.core.logging.Logging.withPrefix(Logging.java:66)
[org.opennms.core.logging-14.0.0.jar:?]
at
org.opennms.netmgt.collectd.CollectableService.run(CollectableService.java:296)
[opennms-services-14.0.0.jar:?]
at
org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:209)
[opennms-services-14.0.0.jar:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[?:1.7.0_65]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[?:1.7.0_65]
at
org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124)
[opennms-util-14.0.0.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65]

015-01-06 16:58:01,151 WARN [Poller-Thread-23-of-30]
O.V.o.o.n.p.m.VmwareMonitor: Error connecting VMware management server
'192.168.200.40': 'null' exception: com.vmware.vim25.InvalidLogin cause:
'null'
2015-01-06 16:58:03,194 WARN [Poller-Thread-27-of-30]
O.V.o.o.n.p.m.VmwareMonitor: Error connecting VMware management server
'192.168.200.100': 'null' exception: com.vmware.vim25.InvalidLogin
cause: 'null'
2015-01-06 16:58:03,814 ERROR [Poller-Thread-25-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting credentials for VMware
management server '192.168.200.20'.
2015-01-06 16:58:03,814 ERROR [Poller-Thread-25-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting username for VMware
management server '192.168.200.20'.
2015-01-06 16:58:03,815 ERROR [Poller-Thread-25-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting password for VMware
management server '192.168.200.20'.
2015-01-06 16:58:04,806 ERROR [Poller-Thread-26-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting credentials for VMware
management server '192.168.200.40'.
2015-01-06 16:58:04,806 ERROR [Poller-Thread-26-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting username for VMware
management server '192.168.200.40'.
2015-01-06 16:58:04,806 ERROR [Poller-Thread-26-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting password for VMware
management server '192.168.200.40'.
2015-01-06 16:58:07,810 ERROR [Poller-Thread-10-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting credentials for VMware
management server '192.168.200.20'.
2015-01-06 16:58:07,810 ERROR [Poller-Thread-10-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting username for VMware
management server '192.168.200.20'.
2015-01-06 16:58:07,810 ERROR [Poller-Thread-10-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting password for VMware
management server '192.168.200.20'.
2015-01-06 16:58:07,811 ERROR [Poller-Thread-29-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting credentials for VMware
management server '192.168.200.80'.
2015-01-06 16:58:07,811 ERROR [Poller-Thread-29-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting username for VMware
management server '192.168.200.80'.
2015-01-06 16:58:07,811 ERROR [Poller-Thread-29-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting password for VMware
management server '192.168.200.80'.
2015-01-06 16:58:08,281 WARN [Poller-Thread-25-of-30]
O.V.o.o.n.p.m.VmwareMonitor: Error connecting VMware management server
'192.168.200.20': 'null' exception: com.vmware.vim25.InvalidLogin cause:
'null'
2015-01-06 16:58:08,845 ERROR [Poller-Thread-11-of-30]
O.V.o.o.p.v.VmwareViJavaAccess: Error getting credentials for VMware
management server '192.168.200.60'.

Running on following

OpenNMS Web Console
Version: 14.0.0
Server Time: Wed Jan 07 09:31:16 CET 2015
Client Time: Wed Jan 07 2015 09:31:39 GMT+0100 (W. Europe Standard Time)
Java Version: 1.7.0_65 Oracle Corporation
Java Virtual Machine: 24.65-b04 Oracle Corporation
Operating System: Linux 3.2.0-4-amd64 (amd64)
Servlet Container: jetty/7.6.15.v20140411 (Servlet Spec 2.5)
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
Database Type: PostgreSQL
Database Version: 9.1.14
License and Copyright

Here's the configfiles i been editing for the vmwarepurpose

root [ at ] mgmt-srv-001:/etc/opennms# cat vmware-config.xml
<?xml version="1.0"?>
<vmware-config>
<!--
<vmware-server hostname="192.168.200.10" username="opennms"
password="changeme"/>
<vmware-server hostname="192.168.200.20" username="opennms"
password="changeme"/>
<vmware-server hostname="192.168.200.40" username="opennms"
password="changeme"/>
<vmware-server hostname="192.168.200.60" username="opennms"
password="changeme"/>
<vmware-server hostname="192.168.200.80" username="opennms"
password="changeme"/>
<vmware-server hostname="192.168.200.100" username="opennms"
password="changeme"/>
<vmware-server hostname="192.168.200.120" username="opennms"
password="changeme"/>

</vmware-config>

And have a good continuation of the new year.

Haakan Olofsson

Answer system dialog with Tasker and AutoInput

$
0
0
Hello,

On my device, when I use the "Plane mode" shortcut, there is a stupid
dialog that pops up and that cannot be marked as "do not show again".
Looking around, there is no direct way to remove this one, save for rooting
the device which is not practical currently.
However, I was wondering if I could use Tasker to detect the dialog that
pops up and then use an AutoInput task to "click" on the "Ok" button in
that dialog.
And that's where I'm stuck because I have a hard time figuring out what
"event" to use to react to the dialog coming up.

Do you have any suggestion?

What does OK as.String mean?

$
0
0
Hi,

Could anybody tell me what the code "OK as.String" means in the following
code?

import dispatch._, Defaults._
val svc = url("http://api.hostip.info/country.php")
val country = Http(svc OK as.String)

Thanks

textual patch for improving the clean-up dialog

$
0
0
Hello,

The attached patch changes the text for the check box "Break locks"
into "Break local tools locks" for improving the clarity of this box.
I updated all English versions of the string plus the German version.

Reasoning:
SVN has a lock type on the local file system copy to serialize the local tools access
and SVN has some other lock type on the server to serialize user editing.
We should always be able to strongly distinguish them - especially for places
where items for the repo and for the local copy are presented side to side - like in clean-up.

regards Alex.

PS:
The file src/Resources/TortoiseProcENG.rc has the attribute SVN:mime-type set to application/octet-stream
but this file seems to be in a 16 bit wide-char _text_ format. At least I could easily search and edit it.
Due to this attribute for creating the attached patch I had to use "--force" on the SVN command line tool.
I am unsure if it would be fine to change this to e.g. text/plain or similar.

http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3093928

Qgis run time error

$
0
0
Each time I try to open qgis 2.61 64 bits on win7 I get this error.

Run time error
Program c:\programa~1\qgisbr~1\bin\qgis-bin.exe
R6034
An application has made an attempt to load the c run time library
incorrectly. Please contact the application's support team for more
information

Here I found how to create a minidumfile to diagnose the issue

http://lists.osgeo.org/pipermail/qgis-user/2014-February/026412.html

An after opening the dump file I get this:

Microsoft (R) Windows Debugger Version 6.2.9200.20512 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

Loading Dump File [C:\Users\Mapoteca\Desktop\qgis-bin.dmp]
User Mini Dump File: Only registers, stack and portions of memory are
available

Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (8 procs) Free x64
Product: WinNt, suite: SingleUserTS Personal
Machine Name:
Debug session time: Fri Jan 9 08:02:08.000 2015 (UTC - 6:00)
System Uptime: not available
Process Uptime: 0 days 0:00:53.000
................................................................
................................................................
................................................................
................................................................
.....
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
user32.dll -
user32!WaitMessage+0xa:
00000000`7788933a c3 ret

I am not a programer and I can not understand what the problem is neither
how to solve it. Doe any one has any hint on the matter?

Thanks before hand

Gerardo

Upgrade question

$
0
0
Hi,
Been using gnucash for about 5 months and love it. Thank you!

Just joined the list today so forgive me if this question has been asked recently.

I'm on windows x64 version 2.6.4 and
i want to upgrade to 2.6.5.

I'm thinking I just install 2.6.5 and then copy the *.gnucash files.

However I want to preserve the aqbanking setups I have if possible. This took a while to get right and would like to keep them. Please advise.

Looks like some part of the config is in
C:\users\<user>\aqbanking

Also the commodities. Are these stored in the .gnucash files? If not can they be migrated to the new install?

Thanks,
Carlo

Seeking AngularJS Part-time Instructor - Finder's Fee Paid

$
0
0
Hi there AngularJS forum members! Not trying to spam but I legitimately
think that some of you might find this an interesting teaching opportunity
and I know many of you are Angular (at least 1.0 for now haha) experts.

We're looking for an instructor for our upcoming Angular JS course
beginning on January 21st here at the New York Code + Design Academy. The
course meets Mondays/Wednesdays from 6:30-9:30pm and lasts for 8 weeks. *We
have an entire curriculum built out for the course, we're just looking for
some awesome developer talent to communicate it to a bright class of
incoming students who already have some good JavaScript experience!
Remember that this is just a part-time, paid role.* Awesome for both
full-time and freelance folk looking to enlighten some people and earn some
extra cash on the side.

If one of your contacts ends up being our instructor, we'll pay you a $200
finders fee! Just have them mention that they came in through you.

Interested parties can contact me directly at zach (at) nycda (dot) com.
I'm not a recruiter, just run the academic program here and am always
looking for the best developer talent!

Unexpected factoring in linear solve

$
0
0
Hi, I'm using Maxima to solve linear equations' systems. Trying to solve a
system, I found the following odd behavior; I have isolated a small system
to exhibit the issue.

ttyoff:true;

solvefactors:true;

append([Gain2= (In1 + In2) * In3], [])$
*/*Uncomment the following line to get factored output*/*
append([Z=(15 + In1)], %)$
append([Gain= In3 * In1 + In2 * In3], %)$
*/*Uncomment the following line to get expanded output*/*
*/*append([Z=(15 + In1)], %)$*/*

result: solve(%, [ Gain, Gain2, Z ])$
grind(result);

Running this batch file produces (bold font added for visibility):

(%i2) ttyoff:true
[[Gain = *(In2+In1)*In3,Gain2 = (In2+In1)*In3*,Z = In1+15]]$
(%o1) false
(%o2) batch.mac

Notice that both Gain and Gain2 are expressed with *In3* as a common factor.

Now, if we change the location of the equation for Z:

ttyoff:true;

solvefactors:true;

append([Gain2= (In1 + In2) * In3], [])$
*/*Uncomment the following line to get factored output*/*
*/*append([Z=(15 + In1)], %)$*/*
append([Gain= In3 * In1 + In2 * In3], %)$
*/*Uncomment the following line to get expanded output*/*
append([Z=(15 + In1)], %)$

result: solve(%, [ Gain, Gain2, Z ])$
grind(result);

The output becomes (bold font added for visibility):

(%i2) ttyoff:true
[[*Gain = In2*In3+In1*In3,Gain2 = In2*In3+In1*In3*,Z = In1+15]]$
(%o1) false
(%o2) batch.mac

Notice how now the *In3* factor is distributed across the terms, both for
Gain and for Gain2.

I understand that both expressions are equivalent, but I find it quite
troubling that changes in the order of equations yield different ways of
expressing the results.

Have I done something wrong? Is this actually an expected behavior?

Best regards.

custom full disk encryption with ZFS

$
0
0
Hello.
The installer seems to allow for an encrypted setup using the whole disk
... Or can you just use the installer to install FreeBSD on selected
partitions of the disk with the ZFS encrypted setup? Is there a resource
that shows how to create a custom full disk encryption with ZFS,
something similar to LVM on LUKS in Linux?

Regards,
Patryk Hanckowiak

Boost.Context ARM64 support

$
0
0
Hi,

We currently use boost context on iOS, and as you may know Apple is making it
mandatory for application to bundle a 64bits version starting February 1
(https://developer.apple.com/news/?id=10202014a). It is thus crucial for us -
and anyone using Boost Context on iOS - to get a working ARM64 backend
working. Looking at github, I see code has been contributed, but the build
system still bounces to unsupported.hh when building with clang for ARM64. Is
that code acutally working but not-yet-released, or is it still incomplete ?
In the latter case, is anyone still working on it and do we have any rough
idea of the delay before a working version get pushed ?

Happy to read some ARM64 doc and contribute if it's in a stale state, of
course.

Cheers,
Viewing all 6551 articles
Browse latest View live