Future Studio Tutorials

Public tutorial on Thursday. Wednesday is only.

ExpressJS & Jade: How to Use Server-Side Variables in Included JavaScript Files

Recently, I was refactoring some Jade views of an ExpressJS application which shared significant JavaScript code. The JavaScript part required some variables from the server. Generally, this can be done like this: script(type='text/javascript'). var user = !{JSON.stringify(userObject)}; Previously, the project had the following structure for many …

Continue Reading

Case Insensitive Sorting with Mongoose and MongoDB

Sorting in MongoDB can cause a lot pain (in the ass!). The problem: MongoDB always sorts case sensitive in the following order Numerics: 0-9 Uppercase letters: A-Z Lowercase letters: a-z For the following examples, assume the upcoming Tag schema and documents in our Tags collection: Schema { name: String, approved: boolean, …

Continue Reading

How to Make AWS S3 Bucket Public Readable

Amazon S3 allows you to set permissions on file basis or per bucket. That is very helpful since you sometimes want to share a complete bucket with the rest of the internet. With the help of bucket policies you're able to make an S3 bucket publicly readable. However, you have …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.