How to properly export an ES6 class in Node 4?

// person.js ‘use strict’; module.exports = class Person { constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } display() { console.log(this.firstName + ” ” + this.lastName); } }   // index.js ‘use strict’; var Person = require(‘./person.js’); var someone = new Person(“First name”, “Last name”); someone.display();

ES6 export all values from object

I can’t really recommend this solution work-around but it does function. Rather than exporting an object, you use named exports each member. In another file, import the first module’s named exports into an object and export that object as default. Also export all the named exports from the first module using export * from ‘./file1’; … Read more

How do I export UIImage array as a movie?

Take a look at AVAssetWriter and the rest of the AVFoundation framework. The writer has an input of type AVAssetWriterInput, which in turn has a method called appendSampleBuffer: that lets you add individual frames to a video stream. Essentially you’ll have to: 1) Wire the writer: NSError *error = nil; AVAssetWriter *videoWriter = [[AVAssetWriter alloc] … Read more

How to get script of SQL Server data? [duplicate]

From the SQL Server Management Studio you can right click on your database and select: Tasks -> Generate Scripts Then simply proceed through the wizard. Make sure to set ‘Script Data’ to TRUE when prompted to choose the script options. SQL Server 2008 R2 Further reading: Robert Burke: SQL Server 2005 – Scripting your Database

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)