Newest records Questions

Q&A for professional and enthusiast programmers

Simple Object class and records

I am currently learning Java and I have done several tutorials. However, each exercise was focused on one part (example learning IO, learning Strings, graphics, etc) but only a few had multiple ...

How to fix this Purescript error: Could not match {…} with (…)?

I have a state for a halogen component including a lens like this: import Optic.Core (Lens', lens) type State = { userName :: String , password :: String , formError :: String } _userName ::...

MySQL select one record from multiple tables

I have 400+ tables and each has a column timestamp. I'd like to pull the first row/record for timestamp for each of these tables. I don't want to run 400+ queries, what would the best way to do this ...

Records with Z3

I have looked quite closely at the documentation and guides and tried a fair few things myself. However, the solution to my problems evades me. This is what the tutorial says regarding records but it ...

c++ std::bad_alloc with around 20,000,000x6 double records

I have a MATLAB code which is working perfectly over 20,000,000×6 double records. I converted same code to cC++ and use vector to store those records, but it give me bad_alloc problem. This is my ...

How do I make a search feature that links to individual records in php

I want to make a search feature in php which links to a user's specific records. I know how to link them to their specific information and do the search function, but I do not know how to do both. ...

Java | Adding records to txt [duplicate]

I ran into a problem and somehow i can't see thru it. It will pop out an error : Exception in thread "main" java.lang.NullPointerException at createfile.addRecords(createfile.java:39) -> x.format(...

Update mysql table with select query

i want to update a column of a table with new values from a select query. the table where the values should go to looks like this. And the values should go to the value column. |id1|id2|value| |1 |...

How to get the ID for 1 record from MYSQL database, then pass it to the details page for viewing using dynamic php & mysqli

I have a html page listing all the jobs in my database, I managed to get everything displaying on www.mysite/alljobs.php (or the list all records page), great, but I cannot get hold of the different ...

Read / write different Records data from / to Untyped files in Pascal?

I've a programming project in my college. Using a File type for storing data is allowed, and I did exactly like this one: pascal-programming And, here's what I achieved so far: I tried to write the ...

Optional parameters in Fsharp records

I need to modify and add new property for my F Sharp record. but then it gives errors for the previous instances which are made without this new field. I made it as Nullable ,but still the same error ...

Display number of records of a particular query in VB code

How do we use VB code to count the number of records for a particular Query or SQL statement ? I have been working on this and have tried different ways and I haven't gotten it to show the correct ...

Why DuplicateRecordFields cannot have type inference?

Related post: How to disambiguate selector function? https://ghc.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields/DuplicateRecordFields However, we do not infer the type of the argument to ...

Apply binary variable to multiple records of same key in R

I have a table of doctor visits wherein there are sometimes multiple records for the same encounter key if there are multiple diagnoses, such as: Enc_Key | Patient_Key | Enc_Date | Diag_Key 123 ...

How to fetch more than 5000 item from SharePoint list?

I am trying to get more than 5000 items form SharePoint list. I am using below code: var Url = appurl +"/_api/SP.AppContextSite(@target)/web/lists/getbytitle('" + listName + "')/items?$select=ID,...

SQL - Update multiple records in one query with Composite Key

I have looked at this question which addresses updating multiple records in one query. The general solution is UPDATE table_name SET field_to_update = CASE table_key WHEN ...

Binary variable to multiple records of same key based on characters in another field in R

I have a table of doctor visits wherein there are sometimes multiple records for the same encounter key (Enc_Key) if there are multiple diagnoses, such as: Enc_Key | Patient_Key | Enc_Date | Diag ...

TYPO3 record issues

I am facing a TYPO3 Backend Error. I added some records to a page and they are showing up on the View Page. Then I delete this records and they still show up. The records are not visible or existing. ...

How can I Handle user plugins in my types?

I'm writing a modular and extensible text editor in Haskell and I'd like to implement plugins in such a way: The writer of the plugin provides a single function that looks something like this: ...

How to fetch limited records using NSFetchresultController

I am having 1000 records in Coredata. Records are of Chat so it consists of date of chat,time of chat etc.I am fetching records using NSFetchResultController. After Fetching, Records are grouped in ...

Change isolation level in records query or close transaction

I'm trying to build some autotest scripts using Kenneth Reitz's records library. I need to check the MySQL database for updates here and there. db_url_mysql = 'mysql://user:pass@mysql.localhost:3306/...

Effectively make database records read-only

How can I make sure that specific data in the database isn't altered anymore. We are working with TSQL. Inside the database we store contract revisions. These have a status: draft / active. When the ...

F# Sorting Sequence of Records where Value isn't yet assigned to Type in Sequence

I am trying to sort a Sequence of records by the second element in each record. The problem is that these are not a value and instead are just a Type. I have a function where it returns the value ...

Duplicate commit records with VSTS and GIT merge

I googled for this duplicate commit records but could not find the solution. Here is my situation. We started using VSTS with GIT and created Dev branch for development. Following steps we are ...

TYPO3: Disable deletion of records

Is it possible to prevent the deletion of Records in the TYPO3 backend of certain tables from an own Extension?

Modify Haskell nested record by value

Say I have a nested structure as follows: data Bar = Bar { _id :: Integer, _bars :: [Bar] } data Foo = Foo { _bars :: [Bar] } And I have a Foo with a bunch of Bars with various ids: foo = Foo [Bar ...

c# Advice on how to manage complex menu's

I'm seem to be having problems with coming up a good way to deal with multi-level menu logic without making my code absolutely unreadable when using switch or if statements to carry out user ...

How to design for extension using records

I'd like to know how people from the Haskell community approach the following design. Assume a workflow-like system where you are piping some data (structure) through multiple steps in the system. As ...

Haskell: is there a way of 'mapping' over an algebraic data type?

Suppose that I have some simple algebraic data (essentially enums) and another type which has these enums as fields. data Color = Red | Green | Blue deriving (Eq, Show, Enum, Ord) data Width = ...

Function string => record member in erlang

I'm wondering how can i define function, which as an argument takes a string and returns a member of the record. For example with the record -record(measurement, { temperature, pm2p5, pm10, pressure, ...

Hibernate : No entity found for query, generated query works just fine on sql developer

This strange error started happening to me after executing it successfully several times.. I haven't changed any code however, made minor changes to the database table (add couple of nullable columns) ...

Crystal reports filter out data on condition

I have a report where I have multiple fields and I want to filter out records of a group on the basis of 2 fields and still show all the other records. for eg I have 5 fields, the values of status ...

Is there a better way to Initialize a record array to make it more dynamic? C#

Some background about my code, I basically have a record class which has a lot of properties to capture the required data provided in the form of .txt files and each column is divided into their own ...

How can I restrict record creation in access based on a field value?

I have a small access database I use to let students sign up for my afterschool classes (electronics, programming etc), I can only accept 30 people in each session. At the moment they create their ...

Updating Every Record in Mongo [duplicate]

How would I update every record in the "title" collection for mongo, to make a field named LastReturnedName set to Name for every single record? Thought it would be something like this: db.title....

python replacement for fortran 'type' record

I have some fortran code that I would like to convert to python. Said code makes extensive use of a 'type' data structure to describe data files that have long headers containing multiple variables, ...

Normalization and design to 3NF

I'm trying to normalize the table below but I'm stuck. Can anyone help me with some explanations?

Does Haskell provide a way to map a function to a data member?

I am a Haskell rookie and I often find myself having to decompose a data with pattern matching only to apply a function to one of its member and then reassemble it. Say I have: data Car = Car { gas :...

Reserve selected records in a sql server

I could use some advice on how to solve this issue. I have application that connect to a sql server and fetch some records, when this is done I need to "reserve" those records so that in case another ...

OCAML the record field is not mutable

I have this code: type seed = {c: Graphics.color option; x : int; y : int };; type voronoi = {dim : int * int; seeds : seed array};; let v1 = {dim = 50,50; seeds = [| {c=Some Graphics.red; x=50; y=...

Reading in comma separated data from a text file into a record

so I have a program that will read in multiple albums from a textfile. The text file would be formated like this: Album, Artist, Genre, *Number of tracks, track1, track2, track3, location1, ...

Android uninstalled app records

I want get the records of the deleted apps.Can this be realized?Some apps may have deleted now,I want to get the records.I want know the API. Thanks very much!

How Capture Both Side of the Conversation android (programmatically)

I Tried In Android Studio Record calls My complete Worked But in Some Devices Mobile (Example Galaxy Note 5) Just A side Record Calls How Can Fix this Problem? AudioRecorder = new MediaRecorder(); ...

Suitescript - How do I access “Related Records” subtab and get/store their associated values?

I am trying to get the associated values from the related records subtab. For example, I am trying to get the associated bills values (amount billed) on a purchase order. There is no other way to do ...

Deleting MySQL records at a certain time

I have a database set up on a shared hosting plan that has a set of records that I would like to have delete automatically at the date and time that a user has entered into the exptime column. How ...

Error while installing records library via pip for Python

just found this records library (version 0.5.0) for Python (my version is 3.6.0) and tried to install it with $ pip3 install records The package loads and finishes but afterwards the installation is ...

Are Delphi record constructors really needed?

SITUATION I am studying "More Coding in Delphi" by Nick Hodges, and he is using a TFraction record to explain operator overloading. I have written by myself this record: type TFraction = record ...

Activation Records and Arrays in Fortran (or languages that have all Static Environments)

When creating an array, how does a language like fortran make activation records when it is in an all static environment (because it doesn't know the size of the array during compile time)? I know it ...

I want to show data from list as day passes by

I have an method which shows usage history of data. In my method, it shows all 30 data together, like todays data consumed and past 29 data`s. But I want to do that it shows todays data and suppose ...

Beginner Python Game. Create records file

I am learning Python and did this little game where you try to guess the number the Computer has generated. from random import randint def guess(): play = 0 while play != 'exit': ...
Translating... 0%