Skip to content

60 Second Dev

60 second software development tutorials and demos, and short blog posts.

  • Blog

60 Second Dev

60 second software development tutorials and demos, and short blog posts.

  • Blog

60 Second Dev

60 second software development tutorials and demos, and short blog posts.

Month: April 2021

2021-04-302022-01-08sqlite

SQLite In-Memory Database

SQLite has an option for running completely in-memory, rather than using a […]

2021-04-292022-01-08javascript

JavaScript splice, slice, shift, pop

These four functions are commonly used to copy or modify arrays in […]

2021-04-262022-01-08sql server

Simple SQL Server backup/restore

— Back Up ———————————————declare @filename nvarchar(255) = ‘C:\backups\’ + format(sysutcdatetime(), ‘yyyyMMddHHmmss’) + […]

2021-04-262022-01-08javascript

NodeJS read/write text files

“use strict”;(function() { var fs = require(“fs”); var readline = require(“readline”); fs.readFile(“input.json”, […]

2021-04-262022-01-08javascript

NodeJS Read/Write Files

const fs = require(“fs”);const readline = require(“readline”);// Read full filefs.readFile(“myfile.txt”, { encoding: […]

2021-04-262022-01-08.net

Modify web.config appsettings value

var config = WebConfigurationManager.OpenWebConfiguration(“~”);var section = (AppSettingsSection)config.GetSection(“appSettings”);section.Settings[“something”].Value = “newValue”;config.Save();

2021-04-252022-01-08.net

SQL Print output in ADO.NET

Thank you to this StackOverflow answer for showing how to retrieve PRINT […]

2021-04-252022-01-08sql server

Make database readonly

Pretty straightforward to set a database to readonly mode. If the database […]

2021-04-252022-01-08javascript

Javascript rest parameters

// collects parameters and turns them into an array// must be the […]

2021-04-252022-01-08javascript

Javascript arguments vs named parameters

// different behavior in ES5 non-strict vs ES5 strict and ES6function go(id, […]

Posts navigation

1 2 3 Next

.net ajax asp.net async authentication aws azure batch brotli c# cloud cryptography css csv deno dependency injection email entity framework exif guid gzip html images javascript jquery json linq linux mercurial mustache mvc nodejs pdf records scss serialization smtp sqlite sql server strings temporal tables typescript windows wsl xml

If you learned something today

Buy Me a Coffee

© 2022 60 Second Dev. Proudly powered by Sydney