Questions tagged [record]
A record in programming is a data type with labels to access fields of the record.
3,455
questions
-2
votes
1
answer
26
views
specific function to return variables for create a class by entering specific name from a List in python?
I would like to find a function that can return a specific object of a specific list in Python. For example if I have a structure like this :
obj_list = [ "A" , "B" , "C" ...
0
votes
1
answer
16
views
How to MySQL INSERT with prisma in Next.js API server
I'm really a newbie on DB programming and Next.js also.
I have tried the function that received json data should be INSERTed (MySQL) with prisma in Next.js API server.
According to the explanation of ...
0
votes
0
answers
13
views
Redirect www to non-www heroku
I have mydomain.com.au setup with a DNS provider. I have successfully pointed my DNS target through Heroku to my DNS provider. However, to do so, I had to use a CNAME record to do so. As such, the web ...
2
votes
1
answer
27
views
Elm merge two different records into one large one
In Elm , is it possible to do something like this.
REPL
> a = {d = 4 , y = 5}
{ d = 4, y = 5 }
: { d : number, y : number1 }
> b = {b = 4,n=1}
{ b = 4, n = 1 }
: { b : number, n : ...
-1
votes
1
answer
26
views
If condition to save records in list of tuples python
so I have this issue, i have to condition where I validate if a variable it's True or not, and both variables have independent variables with different values, but, at the same time, both variables ...
0
votes
1
answer
40
views
Designating switch to record Xcode iOS
Hi all,
I am trying to build an app for my school project that I am building on Xcode for iOS. The app involves the user being able to save information about their bills. This data is string data and ...
1
vote
1
answer
46
views
How do I get to record my ppg signal and save the data in csv file in my phone?
I am a beginner to flutter software and I am using dart language. I can't seem to find any tips that helps me to record ppg signal with a timer and then saving the data in csv file in my vivo phone. I ...
0
votes
0
answers
12
views
Combining records from paginated API, create list of every page and a list of records
I have reached out previously but i cannot wrap my mind around how this works. I have an API to a software that registers tasks and issues from a building site. Each batch of issues called bookmark ...
1
vote
1
answer
18
views
Why behave <T extends Record<number, X>> and <T extends Record<string, X>> differently for T[keyof T]?
When I do this:
interface I<T extends Record<string, {b: boolean}>> {
x: T[keyof T]['b'];
}
everything works, but as soon as I change string to number, I get ts(2536): Type 'b' cannot ...
0
votes
1
answer
47
views
Mapping multiple rows representing a one-to-many relationship
Suppose a student -> book one-to-many relationship.
When you query the related tables in Python, you would get the result in a flat format:
(Assume I'm using psycopg and raw SQL to fetch the ...
-1
votes
1
answer
39
views
checking the right info from a txt under conditions using bashscript
I have a text file text.txt having the info :
nesha nesha@gmail.com 311
neco 244
doda doda@gmail.com 333
nicol nicol@gmail.com
boter boter@nginx 220
and I wanna check using bash script all the users ...
0
votes
1
answer
21
views
Quickbase: Query multiple table to fetch data in single API
I am looking for body format in quickbase /records/query where i can query mutiple table in single API. Right now, i have to use 4 api in quering 4 different table. Is there any way to do that in ...
0
votes
0
answers
9
views
How to create clear button to add new records
I have a basic table created with a subform showing the data beneath it. I'd like to create either a button saying 'Add To Record' and have the form be cleared out for new data input or have a button ...
0
votes
3
answers
63
views
Iterate a nested record/dictionary OCaml
Sorry for asking a ridiculous question but I am a total beginner in OCaml.
I have two types:
type other = A | B
type someType = {a:string ; b:string ; c:other ; d:someType array}
How could I iterate ...
0
votes
0
answers
80
views
Assigning to record type arrays in generate statements
How do you use record arrays in generate statements in VHDL? Below is what I have done, which passes synthesis and implementation in Vivado (2021.1). However, when I simulate it, it shows none of the ...
0
votes
1
answer
32
views
Exclude keys from record
I have the following generic mapped type:
export type KeyRules<Input> = {
[K in keyof Input]?: Rule<Input[K], Input>};
I want to define another that looks something like:
export type ...
1
vote
1
answer
39
views
Typescript: How to return a specific type from class properties with Map/Record type values?
I have the following class DataStore with two properties of Map types. I am trying to come up with a method getEntity that will return proper data type based on parameter. Also trying to create a ...
0
votes
1
answer
15
views
Crystal Reports - Show the first 2 records of each group
I have a number of dated records, sorted by descending date, which are grouped by vehicle. I only want to see the records of the latest two dates on the report.
I'm using this answer from an old ...
0
votes
0
answers
13
views
How to record a phone call that I make from HTML on Android?
We can make calls using - tel inside the href of a tags. How do I record these calls?
0
votes
0
answers
30
views
TotalCount command in powershell
Is it possible to get the total count of records in db (5M records) using powershell?
$database = New-Object HP.HPTRIM.SDK.Database
$database.Id = "10"
$database.WorkgroupServerName = "...
0
votes
1
answer
40
views
Why do I get an Unbound value Error even though it works in the Terminal in Ocaml
There has to be a minor error in my code because it works in the VSC-Terminal but not in the editor but I do not understand what it could be,
I get the Unbound value Error for the avg_grade and ...
0
votes
1
answer
14
views
SailsJS populate with select records
OperationalError [UsageError]: Invalid populate(s).
Details:
Could not populate parentId. This is a singular ("model") association, which means it never refers to more than one associated ...
0
votes
1
answer
76
views
How to compute the average of a list of a special record in OCaml?
Lets say we have a record which defines students:
type student = {
name : string;
age : int;
grades : (float) list;
}
And safe them in a list like this:
let studentlist = [ {name="alex&...
-1
votes
1
answer
38
views
How to count records of a list with a specific property in OCaml?
Lets say we have a record which defines a person type with the properties name and age:
type person = {name:string ; age:int };;
and initialize a list with different types:
let personlist = [{name=&...
1
vote
1
answer
97
views
Creating immutable Records having mutable fields
I want to create an immutable record which has 2 mutable fields Date and a HashMap
public record ImmutableRecord(String name, LocalDate admissionDate, Date dateOfBirth, Map<String, Integer> ...
2
votes
1
answer
28
views
Jibri records audio only, without video
I have jitsi and jibri installed on the same server,
everything is working great,
the recording catch only (audio) without video
this is the Chrome settings:
"--headless",
"--ignore-...
-1
votes
1
answer
37
views
Record & Share video in Unity Run time
In my project, I want to record the gameplay (Screen) and share the gameplay video on social media. I tried some record & replay samples. but which stores the object transforms and moves the ...
0
votes
0
answers
41
views
Adding a new record when form value is EOF
I've got a search bar and a submit button that takes 3 strings and pulls the record on another form from a query. When the record exists in the table the query runs, when it doesn't, I get a an error:
...
1
vote
1
answer
115
views
Jackson Deserialize Record with default value for optional fields
Assume a JSON structure with multiple optional fields. With classes, you can do something like
public static final class Foo {
@JsonProperty("x")
private int x = 1;
...
0
votes
0
answers
31
views
React native - expo camera recordAsync() iOS - reduce video size
I developed an app that record videos using expo camera.
I saw that for android we can decrease the video size by set the bitrate property.
How can i reduce the video size in iOS?
0
votes
0
answers
68
views
Is there a way to check if the Databricks Autoloader wrote to the bad records path?
I am trying to have some form of flag raised whenever a bad record is failed to be read by the autoloader and taken to the bad records path without having to look into the bad records folder. I have ...
1
vote
1
answer
203
views
How to get [Int] instead of [[Int]] Haskell
I am a newbie to Haskell functional programming. I've studied lambda functions, lists,types, record syntax, and functors from several sources like Learn You a Haskell for Great Good a book called Get ...
1
vote
1
answer
96
views
How to get a record field? Haskell
I have a record of Person
data Person = Person
{name :: Name
,lastname :: LastName
,personId :: Int
,parentList :: [Int]
,childList :: [Int]
,siblingList ::[Int]
}
deriving (Show,Typeable,Data,...
0
votes
0
answers
81
views
Filter separate csv files in Haskell by column?
I'm learning Haskell and have been having difficulties with creating functions that parse csv files and filter them. I want to write a function(or multiple functions) that take in 2 csv files and ...
0
votes
0
answers
24
views
What is an example of an "order preserving hash function"
I am now learning about hash ordering of file records, there is an issue with "ordered" accessing of the hash key which is being ineffective and thus we are enforced to sort the records. ...
1
vote
1
answer
44
views
How can I write the following mongodb query in springboot?
How can I write the following query using Spring Data MongoDB?
db.collection.find().sort({$natural: -1}).limit(5)
This query looks for the most recent 5 documents from the collection.
0
votes
0
answers
40
views
C# record deconstruction [duplicate]
One cool feature with C# record, is the ability to deconstruct them based on their default constructor without having to define your own Deconstruct method.
public record Foo(int Bar, int Baz);
...
1
vote
1
answer
50
views
Is it possible to inject a record with Spring?
I have found plenty of examples of constructor injection into record types. However, I haven't seen anyone address injecting a record into another class. Is this possible? When I try it I see errors ...
1
vote
1
answer
34
views
What is the type annotation for a case expression with multiple record types?
I have an update function in my Elm file.
It uses case expressions.
However, depending on the case, it is supposed to affect different parts of the model with different record types. Below is the code:...
0
votes
1
answer
24
views
How to randomly simulate an array of records based on a representative record and property-specific generator functions?
When given a structure of one record, how can I randomly simulate n records of the same structure?
Example
Consider that I have an array of records such as:
[
{
"id": 12345,
...
0
votes
1
answer
26
views
Form and Sub form save with only one button on MS Access
I want to add record with one button on form and sub form. it should remain on current record when cancel or not click button.Product Detail
iNVOICE NO
New Products://i.stack.imgur.com/NYbiL.png
...
0
votes
0
answers
25
views
Record Other App's Speaker output in iOS App
I am working on an application where I need to record and translate the audio coming out of the speaker while using other application i.e. YouTube or Facebook.
I have tried implementing AVFoundation ...
0
votes
0
answers
57
views
Automapper and conditional mapping with Record types
to use conditional mapping with automapper , I normally go for a code like this
.ForMember(dest => dest.UpdatedDate, opt =>
{
opt.PreCondition(src => src.UpdatedBy != null);
opt.MapFrom(src ...
0
votes
0
answers
88
views
Typescript how to assign type1|type2|type3 to type1|type2
I am currently working on a project with elastic search and I have an error that appeared in my backend without me having the impression to have modified anything related to this error.
There are 4 ...
1
vote
1
answer
102
views
What is the complexity of Typescript Record access knowing the key?
I read in this question that Javascript's Map has O(1) complexity for retrieval/access. Typescript has Records which have an advantage: being typed. However, I was wondering if Typescript's Records ...
1
vote
2
answers
173
views
Нow to define a constant managed record with an overridden assignment method
I'm writing a program for mathematical research. Assembly language is used for speed. Data is represented as managed records with operator overloads. Some data is represented by constants.
program ...
0
votes
1
answer
32
views
How to hide message popup if page have record rule don't have records odoo 15
If i go to a page such as "Manufaturing", and this page have record rules, then if that page have records but not showing out because of record rule, it will show this message, how to ...
1
vote
4
answers
65
views
Is there a way to obtain a 'reference' to a mutable struct field
So I have a record type with mutable field:
type mpoint = { mutable x:int ; mutable y: int };;
let apoint = { x=3 ; y=4};;
And I have a function that expects a 'ref' and does something to its ...
0
votes
0
answers
45
views
How can I Export more than 2000 rows in Loggly?
Loggly has limitation to export 2000 records. I need to export billion records. Is there any script for that or Any patch available?
0
votes
1
answer
32
views
In Nifi, how do I create a JSON flow file from a list of tags and a file containing all of the records, one record per line?
I have a semicolon-delimited file containing 1000 records, one record per line, with each record containing several fields delimited by semicolons. I also have a list of tags for the fields in the ...