3,013 questions
0
votes
1
answer
67
views
C# records, is there a way to property Name is a part of a record so I can use with expression?
I am writing a library similar to Fluent Validator that will allow object modification. For ordinary classes, it works without a problem but I try to code a similar approach with a record and stumble ...
-1
votes
0
answers
15
views
How do I access Met Office daily temperature records for Cambridge UK for 2024?
I have just signed up for the Met Office Data Hub. I'm pretty sure I'll be well less than their 1GB limit for personal users. But I have no idea how to access their data. All I need is the daily ...
0
votes
0
answers
11
views
Is this possible to subscribe to record change event in Google looker?
Is this possible to subscribe to record change event in Google looker?
Do such event exist in Google looker?
Is this possible to implement any hook to get some rest service called whenever record ...
0
votes
1
answer
41
views
Declare record type from object or table type
I have an object type type_object created in the database and want to declare a record type type_record in a package for fetching data in a loop using a ref cursor, which doesn't seem to work with an ...
0
votes
2
answers
81
views
How to Solve Law of Demeter Violation in Java Records?
I am using the below record in my Quarkus application and at some point I need to access the requestId field, located in Statements nested record. I want to avoid using the getters provided by the ...
-1
votes
2
answers
89
views
Sort numbers in Latex file between delimiters [closed]
I have a latex file which consists of a list of about 10,000 records consisting of a head word plus reference numbers separated by a comma. Some numbers are marked with latex codes.
ʾallik \refnumbers{...
0
votes
1
answer
117
views
How to convert Record to Table in Nushell?
I found how to convert Table to Record using the following code
here.
let fruits_original = [[key, value]; [apple 10] [banana 42] [mango 5]]
let fruits = $fruits_original | reduce -f {} {|it, acc| $...
0
votes
2
answers
148
views
Oracle APEX 24.1: Generate page links from placeholders in text
I'm converting an old Perl/MySQL database application to Oracle APEX and there's one feature in the old system that I've been unable to figure out a way to do...
Assume that each table is made up of a ...
1
vote
0
answers
18
views
Can the chunk size or IMFSample of the IMFSourceReader:: OnReadSample method be modified?
I use Flutter to call the record package and start the recording stream on Windows.
The audio format I set is 16bit PCM, 48000HZ, signal channel.
The source code in the package uses IMFSourceReader, ...
0
votes
0
answers
32
views
Flutter record package duplicate files
I am using the record package, when I try to background record on a timer every minute I get the same file, although the path to the file is different, but for some reason after decoding into base64 ...
1
vote
1
answer
152
views
Record’s field as formal parameter of procedure in Delphi
I want to create a procedure which performs some manipulations on a variable record type. Globally, I have an array of records. I want to sort the array, but by the records’ fields. I want to pass the ...
0
votes
0
answers
63
views
Why can't record struct contain init property?
This is my C# code:
record struct recName(int A) { }
And this is generated code behind the scenes:
internal struct recName : IEquatable<recName>
{
public recName(int A)
{
<A&...
0
votes
1
answer
21
views
Cloudkit records disappeared
App crashed showing error index out of range. In cloudkit dashboard, querying the table showed half of the records missing.
No changes were made neither to the app nor the database since the last ...
-2
votes
3
answers
119
views
Best way to fix data inconsistency [closed]
If you have a column in your table that contains inconsistent data for destinations, for example some may be "New York", some "New York, USA", "NY", etc. for different ...
1
vote
1
answer
46
views
How to make different record `type`s unequal
I am learning PureScript due to not being satisfied (in particular) with TypeScript's type safety of what's called "records" in PS. While doing so I stumble upon the exact same problem in PS,...
1
vote
2
answers
53
views
Intersection of Record with generic key extending template literal doesn't infer result of index access
In principle (T & Record<K, U>)[K] should evaluate to U but it doesn't seem to work in the case where K is generic and extends a template literal.
function foo3<
K extends `a${string}`...
0
votes
2
answers
113
views
'record' keyword not working in Visual Studio
When I try to use the record keyword in my C# WPF .NET Framework file, it is recognised as a keyword, in the sense in appears in the code completion drop-down menu when you start typing, but then does ...
-2
votes
3
answers
118
views
Batch Script to split record by fixed length [closed]
I have an input text file with a single line having thousands of records one after another. I want to split them after length of 10 characters each.
**Input Record** -
====================== Begin of ...
3
votes
1
answer
122
views
Override Equals method on records
Consider this Minimal Reproducible Example.
Point point1 = new Point(1, 2, 3);
Point point2 = new Point(1, 2, 31);
Console.WriteLine(point1 == point2); // True
Console.WriteLine(point1.Equals(point2)...
2
votes
2
answers
84
views
Why is record class's bool Equal(R obj) a virtual method
From the spec:
The record type implements System.IEquatable<R> and includes a
synthesized strongly-typed overload of Equals(R? other) where R is the
record type. The method is public, and the ...
0
votes
2
answers
55
views
How to duplicate records in pandas dataframe based on column values
I have created a pandas dataframe as follows:
ds = {'col1' : ["A","B"], 'probability' : [0.3, 0.6]}
df = pd.DataFrame(data=ds)
The dataframe looks like this:
print(df)
col1 ...
1
vote
1
answer
115
views
Using generics to match a single string literal in Typescript
The class MyClass interfaces with an indexing sub-system that requires each record (Record<string, any>) to contain a specific primary key field. I'm trying to use Typescript's type system to ...
0
votes
0
answers
29
views
typo3 9.5, news 8.6.0, display newslist of second language additionally at the page of default language
I have got a newsletter page with a special configuration, where both newslists of default and second language should display after another. For this, I tried with marks respectively subparts, in ...
2
votes
2
answers
146
views
Do string variables in records get freed when the record goes out of scope?
In Delphi you can declare a record containing a String. This means the record just contains a pointer the heap when the string is located; does the heap memory get freed when this record goes out of ...
1
vote
2
answers
59
views
Is there any advantage of using a closed record with a rest descriptor over an open record?
Consider the scenario where we create a record for capturing a JSON payload. (application/json content type)
Is there any benefit of using a closed record with a JSON type rest descriptor over an open ...
0
votes
0
answers
34
views
DNS related. SAME IP. A and PTR records
I have to create 2 'A' records and both the records are pointing to the same IP address.
Now if multiple A records pointing to same IP can be created why is it not recommended to create PTR records ...
0
votes
0
answers
138
views
Powershell out-file throwing a file in use error
I have a script that has been running for several years. In the past week, it has started throwing file-in-use-by-another process errors: Out-File : The process cannot access the file '\OB-UTIL-PRD-01\...
0
votes
0
answers
18
views
Permissions for this object are disabled
To enable my setup to create custom objects, I need to understand how to activate the required permissions. It seems that the current configuration of my setup is preventing me from creating custom ...
0
votes
0
answers
22
views
How to get into second frame in recording mode in kataon?
My team searched and we found a way where we switched into manual mode, but now we can`t get back to record mode so I need one of two either to know how to back to record mode or to know how to get to ...
0
votes
0
answers
93
views
Using RPATH on nested list in SQL in QueryRecord in NiFi
I have a json
[
{
"orderId": "100",
"orderItems": [
{
"orderItemSeqId": "101",
"externalId": "56789&...
1
vote
1
answer
37
views
C# Pivot a collection to create a csv with headers down the left side (vertically) and values on the right side (horizontal)
If I have a collection of models, e.g. a List where Header contains a set of properties. How can I display this such that the header titles are displayed on the left and the values are displayed as ...
0
votes
1
answer
33
views
Get 0 if value dosen´t exist on table - oracle
I have a query where it return diferent info about sales by hour, the problem is that I need to get 0 if at cerrtain hour the whas no registry on that table.
Here is the query:
SELECT COUNT(a.DOC_NO) ...
0
votes
0
answers
9
views
in QueryDSL DTO Conversion, cannot fetch. cannot find query? [duplicate]
I'm getting a NoClassDefFoundError when trying to convert results to a DTO in QueryDSL.
ERROR : Method threw 'java.lang.NoClassDefFoundError' exception. Cannot evaluate com.querydsl.jpa.JPASubQuery....
0
votes
2
answers
95
views
Store external data in guile modules?
Suppose I have a collection of external data structures in a txt file.
Whenever I need the data for computation I have to parse the file and then use it's values.
How to make it more convenient?
Keep ...
0
votes
0
answers
10
views
Content versioning and its impact on record fluctuation
How are others doing content versioning regarding technical documentation and search with Algolia?
Are they only including the latest content version, or including other previous versions? That is ...
5
votes
2
answers
122
views
How to change the type of a polymorphic record using lenses?
In the following code snippet, how do I write the toRecordWrite function such that it can work with any DbRecord with similar type-level mechanics, eg. UserPoly id createdAt updatedAt email username ...
1
vote
1
answer
100
views
How to write a Haskell function that can call "getField @k" on "obj" as well as "Maybe obj"
I'm trying to write HTML form helpers where I'd like the call-sites to support both of the following use-cases:
{-# LANGUAGE AllowAmbiguousTypes, DataKinds, OverloadedStrings #-}
import Data.Proxy
...
0
votes
2
answers
90
views
How to "stockpile" drugs which have start and duration
I have a R dataframe which has drug prescriptions for patients as follows:
Patient StartDate Duration
1 01/01/2004 35
1 15/01/2004 60
1 01/02/2004 ...
2
votes
1
answer
77
views
Haskell Record Update Seemingly Incompatible Type
I am trying to understand the internal code of haskell-skiplist.
The author defines the following algebraic data type and some relevant functions – the details of which do not really matter.
data Node ...
0
votes
0
answers
17
views
How can i make the result from fetch_revenue display on the table
<?php
// Database connection
$host = 'localhost'; // Change this as needed
$dbname = 'cms_db'; // Your database name
$username = 'root'; // Your database username
$password = ''; // Your database ...
0
votes
1
answer
183
views
Why is my odoo xml record data not updating [closed]
I inherited a module (Recruitment module) and then tried updating the xml data but all my attempt is not working.
I tried updating group like hr_recruitment.group_hr_recruitment_user but the update is ...
-1
votes
2
answers
406
views
C# Initialize inherited record form base record
I have a base record type and an inherited record type which adds a few fields.
At runtime I have an instance of the base record type and want to convert it to an instance of the inherited record type,...
0
votes
1
answer
112
views
Loop through record type var and insert values to target table using pl/sql
I have this table TABLE_BB (firstname, lastname, id).
I also have a record type:
EMPREC is record(fname varchar,lname varchar2,idty varchar2);
type emprectype is TABLE OF EMPREC INDEX BY ...
0
votes
2
answers
89
views
Uniquness of a record containing a collection
I am using C# records in a HashSet to enforce uniqueness. This works well, but as soon as the record contains a Collection then it stops working.
ie. this passes:
public record Person
{
public ...
0
votes
1
answer
74
views
How to index custom database record with indexed_search in TYPO3?
How is it possible to index custom database records in TYPO3? I tried with indexed search, setting the option „Table to index“ to the corresponding database in the configuration. But this didn’t work. ...
1
vote
3
answers
66
views
How do you modify a Couchbase record that contains a fairly complex object and sub-object?
I have a couchbase database full of records that look like this:
{
"_class": "com.discussoftware.server.shared.model.bo.licenseBo",
"customerId": "A1A2",
&...
1
vote
1
answer
187
views
How to calculate Relative Strength Index (RSI) and Exponential Moving Average (EMA) from a list in pandas
I have created a pandas dataframe (called df) as follows:
import pandas as pd
import numpy as np
ds = {'col1' : [[10,23,45],[54,67,65],[76,43,21]]}
df = pd.DataFrame(data=ds)
The dataframe looks ...
-1
votes
1
answer
40
views
Expose immutable Set<String> configuration
I need to expose some configuration in the form of a Set in my Application but I need them to be unmodifiable and I'm looking for the best way to achieve this.
My configuration
I need to expose this ...
-1
votes
1
answer
176
views
Delphi 7 Inline ASM Field Access
I cannot figure out how to access fields in a VAR parameter record.
My apologies in advance for such a simple question, but I am stumped.
After much Googling and tinkering, I am seeking the advice of ...
0
votes
0
answers
176
views
Pwa standalone ios safari audio record
Does anyone have an idea on how to record audio in iOS iPhone PWA standalone mode? I'm facing an issue where my PWA works well on Safari, but when I add it to the home screen in standalone mode, it ...