Failed to get document content data. System.ComponentModel.Win32Exception (0x80004005): Cannot complete this function

Hi there is a publishing web application and below errors keep loading in SharePoint logs and some pages link with a custom master page (_catalogs/masterpage/NewDesign/images/login_icon.png), not loading in browser and 401 error when administrator user login to the site.

Failed to get document content data. System.ComponentModel.Win32Exception (0x80004005): Cannot complete this function at Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32 rowOrd, Object ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)

Could not get DocumentContent row: 0x80004005.

How to create data out of sample?

I have a device, which measures events 1 out of R, where R is $ O(10000)$ . I started measurements at time $ 0$ up to time $ T$ , where $ T$ is large. Now I have a sampled data set, recording event and its time.

I want to know the time for all events that took place in a small window of time $ t$ seconds, where $ t << T$ .

One simple is way to divide the measured sampled with $ R$ , but I am afraid it will lose the patterns in the data.

Basically, I need a way to compress a sampled dataset in a very large time to a small time containing all the events, while preserving patterns. Would be nice to test if the any method used is representative of the sampled dataset.

Windows feature that stores specific data about applications run to help them start faster? [migrated]

do you know of a Windows feature that stores specific data about applications run to help them start faster? Asking because a forensics challenge I’m attempting to do had that as a hint to find the most recently run executable. Can I get any help?

Post data with nested state

Am having more than two nested state data to post, each nested section has its own component which handles its submission, but the first section allows one to type in the fields but the rest don’t work.

Below is the state:

  this.state = {             firstName: '',             lastName: '',             middleName: '',             nationality: '',             gender: '',             religion: '',             medical_condition: '',             deceased: '',             home_address: '',             country_of_residence: '',             city: '',             dob: '',             age: 0,             loading: false,             education:{                 education_level:"",                 school:"",                 address_of_school:"",                 headteacher:"",                 telephone:""             },             guardian:{                 first_name:'',                 middle_name:'',                 last_name:'',                 relationship_to_orphan:'',                 occupation:'',                 monthly_income:0.0,                 employers_name:'',                 work_address:'',                 mobile_no:'',                 physical_location:'',                 comments:''             },             parents:{                 religion__of_deceased_father:'',                 religion__of_deceased_mother:'',                 date_of_demise_of_father:'',                 date_of_demise_of_mother:'',                 names_of_mother:'',                 religion_of_mother:'',                 marital_status_of_mother:'',                 occupation_of_mother:'',                 monthly_income:0             },             siblings:{                 number_of_brothers:0,                 number_of_sisters:0             }         } 

This is how I handle submission of the education object in the state. For this case or section, it works well when I try to type in the fields.

export const EducationComponent = ({handleChange,obj}) => (     <Card s={12}>         <Row>             <label className={'label-style'}>Education.</label>         </Row>         <Row >             <Input s={3} label="Education Level" className={'label-sizes'}                    value={obj.education_level}  onChange={handleChange} name={'education'}/>             <Input s={3} label="School" className={'label-sizes'}                    value={obj.school}  onChange={handleChange} name={'school'}/>             <Input s={3} label="Address of School" className={'label-sizes'}                    value={obj.address_of_school}  onChange={handleChange} name={'address_of_school'}/>             <Input s={3} label="Nationality" className={'label-sizes'}                    value={obj.nationality}  onChange={handleChange} name={'nationality'}/>             <Input s={3} label="Head Teacher" className={'label-sizes'}                    value={obj.headteacher}  onChange={handleChange} name={'headteacher'}/>             <Input s={3} label="Telephone" className={'label-sizes'}                    value={obj.telephone}  onChange={handleChange} name={'telephone'}/>         </Row>     </Card>  ) 

The guardian section doesn’t allow typing in it’s fields and I know this is related to the onChange method but I implemented it.

Below is it’s component :

export const GuardianComponent = ({handleChange,obj}) => (     <Card s={12}>         <Row>             <label className={'label-style'}>Guardian Info.</label>         </Row>         <Row >             <Input s={3} label="First Name" className={'label-sizes'} type={'text'}                    value={obj.first_name}  onChange={handleChange} name={'first_name'}/>             <Input s={3} label="Last Name" className={'label-sizes'}                    value={obj.last_name}  onChange={handleChange} name={'last_name'}/>             <Input s={3} label="Middle Name" className={'label-sizes'}                    value={obj.middle_name}  onChange={handleChange} name={'middle_name'}/>             <Input s={3} label="Relationship to the Orphan" className={'label-sizes'}                    value={obj.relationship_to_orphan}  onChange={handleChange} name={'relationship_to_orphan'}/>             <Input s={3} label="Occupation" className={'label-sizes'}                    value={obj.occupation}  onChange={handleChange} name={'occupation'}/>             <Input s={3} label="Monthly Income" className={'label-sizes'}                    value={obj.monthly_income}  onChange={handleChange} name={'monthly_income'}/>             <Input s={3} label="Employers Name" className={'label-sizes'}                    value={obj.employers_name}  onChange={handleChange} name={'employers_income'}/>             <Input s={3} label="Work Address" className={'label-sizes'}                    value={obj.work_address}  onChange={handleChange} name={'work_address'}/>             <Input s={3} label="Mobile No." className={'label-sizes'}                    value={obj.mobile_no}  onChange={handleChange} name={'mobile_no'}/>             <Input s={3} label="Physical Location" className={'label-sizes'}                    value={obj.physical_location}  onChange={handleChange} name={'physical_location'} />             <Input s={3} label="Comments" className={'label-sizes'}                    value={obj.comments}  onChange={handleChange} name={'comments'}/>         </Row>     </Card>  ) 

Let me also share the full container class where I call all the stateless components.

class CreatePage extends React.Component {      constructor(props) {         super(props);         this.state = {             firstName: '',             lastName: '',             middleName: '',             nationality: '',             gender: '',             religion: '',             medical_condition: '',             deceased: '',             home_address: '',             country_of_residence: '',             city: '',             dob: '',             age: 0,             loading: false,             education:{                 education_level:"",                 school:"",                 address_of_school:"",                 headteacher:"",                 telephone:""             },             guardian:{                 first_name:'',                 middle_name:'',                 last_name:'',                 relationship_to_orphan:'',                 occupation:'',                 monthly_income:0.0,                 employers_name:'',                 work_address:'',                 mobile_no:'',                 physical_location:'',                 comments:''             },             parents:{                 religion__of_deceased_father:'',                 religion__of_deceased_mother:'',                 date_of_demise_of_father:'',                 date_of_demise_of_mother:'',                 names_of_mother:'',                 religion_of_mother:'',                 marital_status_of_mother:'',                 occupation_of_mother:'',                 monthly_income:0             },             siblings:{                 number_of_brothers:0,                 number_of_sisters:0             }         }         this.handleSubmit = this.handleSubmit.bind(this);         this.handleChange = this.handleChange.bind(this);      }      handleSubmit = (event) => {         event.preventDefault();          const token = localStorage.getItem('token')         let config = {             headers: {                 "Authorization" : "Bearer " + token             }         }          const data = this.state;          toast('Data submitted ')          console.log('check data', data)          axios.post('http://localhost:8080/orphan', data, config)             .then(res => console.log('success after submission.',res.data))             .then(error => console.log(error));      };      handleChange = (evt) => {         this.setState({[evt.target.name]: evt.target.value});     }       render() {         return (             <div>                 <Row>                     <StudentComponent                         handleChange={this.handleChange}                         obj={this.state}                     />                     <EducationComponent                         handleChange={this.handleChange}                         obj={this.state.education}/>                     <GuardianComponent                         handleChange={this.handleChange}                         obj={this.state.guardian}/>                     <ParentComponent                         handleChange={this.handleChange}                         obj={this.state.parents}/>                     <SiblingComponent                         handleSubmit={this.handleSubmit}                         handleChange={this.handleChange}                         obj={this.state.siblings}/>                 </Row>             </div>         );     }  } 

Am wondering why I can type in education component but I can’t type in the guardian component and the rest.

How should I calculate mean CI – from raw data or mean values?

I have experimenatal data from medical industry. In the experiment 4 observations were weighted, each one 2 times for more precise measurement.

As a final weight, a mean from each pair is reported. So I have 8 values, a pair (2) for each observation and 4 means.

We assume a normal distrubution with unknown mean and standard deviation.

I need to calculate 95% CI for mean weight. I use this formula: $ $ X¯±t∗S/\sqrt{n}, $ $ where where S is the sample standard deviation and where $ t$ cuts probability $ 0.025$ from the upper tail of Student’s t distribution with $ n−1$

degrees of freedom.

Should I do this from 8 values (7 df, n=8) or from calculated mean values from each pair(3 df, n=4)?

Maybe a should use another formula? Why?

Pseudocode for Userdefined Data Types

In the pseudocode guide for my syllabus, an example of a record data type is given as below:

TYPE Student     DECLARE Surname : STRING     DECLARE FirstName : STRING     DECLARE DateOfBirth : DATE     DECLARE YearGroup : INTEGER     DECLARE FormGroup : CHAR ENDTYPE 

However, for enums and pointers it gives the following examples:

TYPE Planet = (Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune)  TYPE Pointer = ^<Type name> 

There seem to be 2 inconsistencies here: the lack of the opening/closing “tag” structure from the record type, and also the use of equals signs in the enum and pointer examples.

I’n not sure if there is a conceptual difference between these types of types which explains the difference, of if it is due to an oversight on the writers of the guide.

Could someone please clarity this for me and explain the conceptual difference if there is one?

User or group column is populated with incorrect values when adding data from CSOM

I am working on a console application that updates list items using managed CSOM. I have a user or group column in this list that can contain multiple values. Now, I am using below code to update the value of this column:

// Get the user   User newUser = web.EnsureUser("LoginName");   context.Load(newUser);   context.ExecuteQuery();   FieldUserValue userValue = new FieldUserValue();   userValue.LookupId = newUser.Id;  // Update the list item   listItem["User"] = userValue; 

The issue is if I assign the value of user1 to this column, the value that I see after the column is updated is another user; like user2. I don’t know why it is populating this code with some other user?

Any idea on this issue?

How to Implement Complex Form Data?

I’m supposed to implement a relatively complex form that looks like follows, but has at least four more pages requiring the user to fill in all necessary information for the tracks:

This data will need to be sent to the server, which is implemented using Dropwizard. I’m looking for best practices on how to upload and send such a complex form with potentially dozens of songs to the server.

The simplest available solution I have seen is a simple multipart/form-data request with the following form schema (Source):

Client

<html> <body> <h1>File Upload with Jersey</h1>  <form action="rest/file/upload" method="post" enctype="multipart/form-data">     <p>     Select a file : <input type="file" name="file" size="45" />    </p>     <input type="submit" value="Upload It" /> </form>  </body> </html> 

Server

@POST @Path("/upload") @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadTrack(final FormDataMultiPart multiPart) {     List<FormDataBodyPart> artists = multiPart.getFields("artist");      StringBuffer output = new StringBuffer();     for (FormDataBodyPart artist : artists)         output.append(artist.getValueAs(String.class));      List<FormDataBodyPart> tracks = multiPart.getFields("track");     for (FormDataBodyPart track : tracks)         writeToFile(track.getValueAs(InputStream.class), "Foo");      return Response.status(200).entity(output.toString()).build(); } 

Then I have also read about file uploads via Ajax or Formdata (Mozilla HttpRequest) which allows for Posts in the formats application/x-www-form-urlencoded, multipart/form-data, or text/plain. I don’t know which approach, if any, is best.

An ideal solution would be to utilize Jackson to convert a json string into my data objects, but I don’t get the impression that this is possible with binary data.