Questions tagged [dbm]

DBM is a simple UNIX database format. It uses a key-value storage and hashing for fast retrieval of the data by key.

98 questions
0
votes
1 answer

Problems with dbm module under python 3 using Beaker

Im having trouble using Beaker on windows 7. Im using python 3, and i understand there are problems with the dbm module for python 3 under windows. The error im getting when i attempt to start my module is: ImportError: No module named _dbm Poking…
richzilla
  • 40,440
  • 14
  • 56
  • 86
0
votes
0 answers

Why does shelve module create database with .db extension?

I run the code using the shelve module. I expect to get 3 files as a database: .dir, .dat and .bak. Instead, I have a file with the .db extension. I can't read the created database. I work on the manaconda environment on a apple m1 chip, rdkit…
Alina
  • 1
0
votes
0 answers

How to create a processor in nifi using curl Rest API?

I want to create a processor inside a processor group in nifi. I want to create it using the curl command in ubuntu cli. I don't know exactly how to create a processor? I know it can be started using JSON commands. I couldn't find any examples to do…
sabby
  • 1
  • 1
0
votes
2 answers

How can I store a timestamp in a DBM database?

I am implemening simple file-sharing service. Currently I use a file-based database (as it suits my needs). # somewhere in my cgi script sub first_run { my $dbh = DBI->connect('dbi:DBM:'); $dbh = DBI->connect("dbi:DBM:", "",…
jonny
  • 1,326
  • 9
  • 44
  • 62
0
votes
1 answer

Heroku: dbm.error: but i have a good token

How do l fix the error below? I have a good token, I've changed it twice
iSooQ
  • 3
  • 2
0
votes
1 answer

What is a thread-safe DBM library in C?

Does anyone know about a thread-safe DBM-like library with a C API? This is: a persistent hash-table that is thread-safe. Any pointers would be appreciated!
user159987
0
votes
1 answer

How do I use multiple writers with tdb?

I'm using tdb to try to get acquainted with database management in C on Linux. Per tdb's description tdb is a Trivial database. In concept, it is very much like GDBM, and BSD's DB except that it allows multiple simultaneous writers and uses locking…
Keya Kersting
  • 135
  • 1
  • 1
  • 8
0
votes
1 answer

(node:65297) UnhandledPromiseRejectionWarning: TypeError: mem.addRole is not a function

i am having an issue with a Run script. I am using Discord Bot Maker for JavaScript code with run script in it. As you can see, this is a Persistent Role system. It is supposed to keep your roles, if you leave the discord server, and give them back…
Master3395
  • 15
  • 6
0
votes
1 answer

Update query for database

What's wrong with my SQL update? I'm trying to update records with the upcoming value for status records with the value as missed & due_date BETWEEN 2020-08-01 AND 2020-12-31. Where is the Syntax error? UPDATE records SET status =…
Tim
  • 13
  • 4
0
votes
0 answers

Why am I getting "TypeError: '_gdbm.gdbm' object is not iterable"?

This is my first time looking into the 'dbm' module as part of an exercise in a book and I can't figure out why I'm getting this error. import dbm db = dbm.open('chapt14/dbtest/captions', 'c') db['cleese.png'] = 'Photo of John…
user10124099
0
votes
1 answer

How to use perl dbmopen on Windows and Linux

I have a perl script that runs fine on Linux but fails on Windows at this point: $freq{total} = 0; dbmopen(%freq,$dictfile,0666) || die "Error: Cannot open dbmfile $dictfile"; $dictfile points to the proper location on the respective platforms.…
tahoar
  • 1,788
  • 3
  • 20
  • 36
0
votes
0 answers

db2 update dbm cfg fails with error: SQL5133N. Specified value: "0". Configuration parameter name: "fcm_buffer_size"

I am trying to load SSL certificate from java keystore to db2 dbm. I did below steps: Step 1: List certificates in truststore $ keytool -list -v -keystore db-truststore Enter keystore password: Keystore type: jks Keystore provider: SUN Your…
0
votes
2 answers

How to measure WiFi dBm strength on iPhone X iOS Swift

I am looking for ways to get the raw signal of the wifi, the dBm on iPhone X phones, but can only find how to get the numberOfActiveBars from: Answer Trying @Mosbash answer, getting a crash. Thread 1: EXC_BAD_ACCESS (code=1, address=0x18) Code:…
Tal Zion
  • 6,308
  • 3
  • 50
  • 73
0
votes
1 answer

Which encoding does dbm use to save data to bytes(python(And how to convert it back to a string?))?

I mean that which type of encoding does dbm use in coding string to bytes? And how to convert it back to a string?
LoneWolf
  • 339
  • 4
  • 17
0
votes
1 answer

Python 3 shelve hiding data?

I scraped a large amount of data from a database and saved it as "first_database.db" using Python's shelve module (I'm using Python 3.4). I've had problems with shelve before (see my old issues), which IIRC were probably due to something relating to…
Zeke
  • 617
  • 1
  • 6
  • 15