Displaying 20 results from an estimated 200 matches similar to: "DBI question. How do I load a database with data parsed from REXML?"
2006 Jun 24
1
Parsing XML with REXML problem
Why can it not find my object? What am i missing here? Here is my code:
require ''rexml/document''
include REXML
# classes to represent the objects and relationships in the xml file
class Article
attr_accessor :id, :post, :archive, :ntype, :head, :blurb, :body,
:fblurb, :fimage, :att, :source, :copy, :brand
end
# the base parser
class BaseXMLParser
def initialize(filename)
2006 Jun 24
0
Best approach for loading a data object into mysql?
I wrote a rexml script that parses rather big xml files (DOM parsing) and
builds an object out of them. This is what it looks like after i parse the
xml file and display the object:
[#<Article:0xb79e7428 @brand="This is a story from ", @id=5337,
@fblurb="burb", @ntype="news type here", @copy="Copyright \302\251 2006 ",
@source="source",
2012 Sep 11
1
Back UPS ES and data stale with disconnected device
Hello NUT Team!
I continue playing with NUT for Windows and USBHID-UPS driver I've got from Frederic to fix "Data Stale" problem.
It seems there is something wrong when Network UPS Tools service is starting with disconnected USB cable. UPSMON is writing "Data Stale" to output and continue do it infinitely, even the cable is connected back. Here is a short log:
Network
2020 Jan 26
1
Timer doesn't appear to start
I have a Raspberry PI that I have connected to a Deltec UPS via serial
(upscode2 driver). I had an older version of Rasbian running. The nut
configuration worked fine but I had mail issues I couldn't resolve when
gmail changed how it handled MTAs. Plus it was running an old version of
Deb that is no longer supported. It was broken enough I could not upgrade
to a never version so I started from
2010 Apr 07
1
Struggeling with svydesign()
Dear all,
We are analysing some survey data and we are not sure if we are using
the correct syntax for our design.
The population of interest is a set of 4416 polygons with different
sizes ranging from 0.003 to 45.6 ha, 7460 ha in total. Each polygon has
a binary attribute (presence/absence) and we want to estimate the
probability of presence in the population.
We used sampling with replacement
2016 Aug 05
1
NUT UPS Slave Not Shutting Down
Hello All,
I'm trying to establish a MASTER SLAVE configuration of UPS using NUT
Driver.
I'm able to shutdown the master after UPS is on BATTERY ( POWER BLACKOUT)
.However I'm trying to shutdown the other SLAVE MACHINES BEFORE MASTER.
But at the remote side ( Slaves ) shutdown after UPS blackout does not
happen.
My configuration in Master are
/usr/etc/upsd.users
2002 Feb 26
1
Include exclude not working
Hi!
playing with --include, --exclude, and --exclude-from=file I found these
not working:
xcnlm00s:/etc/adsm/script # rsync -navx --include="*/" --exclude="*" -e
ssh newsfeed:/
receiving file list ... done
wrote 29 bytes read 28605 bytes 3014.11 bytes/sec
total size is 0 speedup is 0.00
xcnlm00s:/etc/adsm/script # rsync -navx --exclude="*"
2011 Apr 28
1
Problem with blazer_ser/megatec when upgrading to 2.6.0 from 2.4
Hello
First things first, thanks for great work with NUT.
For years I used Informer compact 3kVA UPS
http://www.informups.com/informer_compact.html with nut/megatec serial
driver, but it stopped working when I switched to blazer_ser with
2.6.0 upgrade.
I'm using 2.6.0 on gentoo.
Blazer_ser seems to connect with UPS, but upsmon reports driver not connected.
uname -a
Linux localhost
2014 Oct 01
2
Socomec ITYS 3000 + Netvision upsmon output
Hi,
I have UPS Socomec ITYS 3000 with Netvision card.
OS is Centos 6.5 64-bit.
NUT installed with yum,.
nut-2.6.5-2.el6.x86_64
nut-client-2.6.5-2.el6.x86_64
Why is ups.status empty?
Here is upsc output:
upsc myups at localhost
battery.charge: 97.00
battery.runtime: -60.00
battery.voltage: -0.10
device.mfr: Net Vision v6.01 (SN 0101414290)
device.model: ITYS 3 kVA
device.serial: 3I14450043
2006 Jan 04
1
Nut 2.0.1, net-snmp-5.1.2p2, APC SUA1000 with AP9606: repeated comm lost/established messages
Hello list members,
I am running NUT 2.0.1 on an OpenBSD 3.8 system, using the OpenBSD port for
net-snmp-5.1.2p2. The UPS is connected via an AP9606 Web/SNMP card with
current firmware, and the LAN. All goes well for a long time, usually more
than one month. Then the system starts spitting messages about losing
communications with the UPS. A second message about reconnecting follows
immediately.
2005 Dec 19
1
Upsmon problem
Hi,
I feel that i'm having a small problem with my upsmon configuration
(maybe even simply a permissions problem) since I upgrade today to 2.0.2
I have apcsmart set up and talk to my ups no problem (upsc get answer).
I have upsd running no problem!
But when I try to start upsmon, it's unable to talk to my upsd. Having
try a few option I found that saying RUN_AS_USER=root makes my upsmon
2011 Aug 27
1
hopelessly overdispersed?
dear list!
i am running an anlysis on proportion data using binomial (quasibinomial
family) error structure. My data comprises of two continuous vars, body
size and range size, as well as of feeding guild, nest placement, nest
type and foragig strata as factors. I hope to model with these variables
the preference of primary forests (#successes) by certain bird species.
My code therefore looks
2024 Mar 08
1
NUT 2.8.1 (source build) Pi OS bookworm 32 bit - nut-monitor trying to connect to UPS - Connection Refused
I've installed 2.8.1 on a Raspberry PI 5 using Pi OS bookworm 64 bit (Debian 12) with success.
When I take that same configuration to a PI 3B running bookworm 32 bit, compile from source, use the same files from /etc/nut, I get a 'nut-monitor ups at localhost Connection refused.
usbhid-ups and dummy-ups are running at the time.
What should I be looking for?
Dan
-------------- next
2019 Jul 18
2
Another New User Question - Notify Script Not Running
2015 Sep 23
2
FreeBSD backed with a PR1500LCDRT2U
>>
>> I need some help here with getting this thing running. Every time I enable NUT on the server, I get a "on battery" status when I know that it is running on house power. This only occurs when I am monitoring it with FreeBSD(NAS4Free)
>
>Which version of FreeBSD is this based on?
I also included the Motherboard and processor so if there is anything those
2006 Jan 26
1
newhidups (2.03-pre2) not working with APC Back-UPS 500
Hi there,
I'm trying to track down a problem with said combination.
Broadcast message from nut (Thu Jan 26 13:22:06 2006):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Thu Jan 26 13:22:11 2006):
UPS UPS@localhost is unavailable
"newhidups -DDD hiddev0" seems happy enough, as does "upsd -DDD -f" - at
least until I start upsmon. Then I
2016 Apr 26
0
[PATCH] upsmon: Add NOTIFYMSG to env of NOTIFYCMD
This small patch makes the alert text generated by upsmon available in
the environment of the CMDSCRIPT child of upssched. This is needed as
the command line argument to upssched is not passed through when it
calls CMDSCRIPT.
--- upsmon.c 2016-04-25 20:17:44.392925130 -0600
+++ upsmon.c+ 2016-04-25 20:18:21.512871526 -0600
@@ -151,6 +151,7 @@
2012 Aug 30
1
Data stale and Back UPS ES
Hello!
I tried NUT 2.6.5-1 (Windows port) with my APC Back UPS ES. It seems I have
configured NUT properly, nut-scanner found my UPS:
[nutdev1]
driver = "usbhid-ups"
port = "auto"
vendorid = "051D"
productid = "0002"
product = "Back-UPS ES 525 FW:851.t3.I USB FW:t3"
serial = "8B0745R23575
2005 Nov 03
2
simple menu limitations
I am using the following simple menu and have noticed that items at the
bottom are dropping off. I seem to be limited to 12 items. Is there a
limit to how many items can be on the simple menu?
default pxelinux.cfg/menu.c32
prompt 0
MENU TITLE UWSP PXE Boot Menu
# TIMEOUT 200
LABEL bartpe
MENU LABEL Build 12
KERNEL /STARTROM.0
APPEND keeppxe
LABEL 11dnet
MENU LABEL Build 11DNET beta
2004 Jun 23
0
Problem with XML package compilation on AIX
Hi,
I hope someone has seen this problem before. I am
trying to install the XML package from
http://cran.r-project.org/src/contrib/XML_0.95-6.tar.gz.
Using
> R CMD INSTALL XML_0.95-6.tar.gz
I get the following error message:
/usr/vac/bin/xlc_r -I/usr/local/lib/R/include -DLIBXML
-I/opt/freeware/include/libxml2
-DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1
-DDUMP_WITH_ENCODING=1