Web
SitePoint Team, Aug 23

Mobile Gaming: Build a Security Token Service with Object Storage Service

Through STS, you can issue federated users, who are managed in your local account system, with an access credential that customizes the expiration duration and access permission.
10 COMMENTs
HTML & CSS
Craig Buckler, Aug 14

7 of the Best Code Playgrounds

Craig Buckler lists 7 of the most popular code playgrounds tfor experimenting with your front-end code, such as CodePen and JSFiddle, along with suggestions for playing with back-end code, hosting your own code playground, and even installing an offline code playground in your own browser!
HTML & CSS
Craig Buckler, Aug 13

3D Transformation Functions in CSS

Craig Buckler shows how to add another dimension to your web pages and applications with the new 3D transformation functions and properties in CSS, covering transform, translate, rotations, scaling, perspective and more, along with z-index, browser gotchas, and ideal use cases.
Web
Maxime Beugnet, Aug 09

Java and MongoDB 4.0 Support for Multi-document ACID Transactions

This article was originally published on MongoDB. Thank you for supporting the partners who make SitePoint possible.

Introduction

MongoDB 4.0 adds support for multi-document ACID transactions.

But wait... Does that mean MongoDB did not support transactions until now? No, actually MongoDB has always supported transactions in the form of single document transactions. MongoDB 4.0 extends these transactional guarantees across multiple documents, multiple statements, multiple collections, and multiple databases. What good would a database be without any form of transactional data integrity guarantee?

Before we dive in this blog post, you can find all the code and try multi-document ACID transactions here.

Quick start

Step 1: Start MongoDB

Start a single node MongoDB ReplicaSet in version 4.0.0 minimum on localhost, port 27017.

If you use Docker:

  • You can use start-mongo.sh.
  • When you are done, you can use stop-mongo.sh.
  • If you want to connect to MongoDB with the Mongo Shell, you can use connect-mongo.sh.

If you prefer to start mongod manually:

  • mkdir /tmp/data && mongod --dbpath /tmp/data --replSet rs
  • mongo --eval 'rs.initiate()'

Step 2: Start Java

Web
Alistair Robson, Aug 07

Make Your Website Earn for You with Google AdSense

Google AdSense is a simple and free way for website publishers to earn money by showing relevant and engaging ads alongside your online content.
Web
Adam Roberts, Aug 06

How to Force Windows to Delete a File

Sometimes Windows will become convinced a given file is in use by a program and prevent it from being deleted. Here are two ways to get around that issue.
Web
James Wright, Aug 02

How to Build a Coach Holiday Showcase with WRLD

Using WRLD's map designer, we will build a map for a coach holiday, which we will then integrate into a Node.js-powered website.
Web
Gilad Maayan, Jul 30

5 Great HTML5 Video Players

We've compiled a list of 5 of the greatest HTML5 video players, based on speed, ease of use, compatibility and features.
Blockchain
Bruno Skvorc, Jul 26

Building an Ethereum DApp: Launching the StoryDao

In this eighth and final tutorial in his series explaining how to build decentralized applications using the Ethereum blockchain, Bruno focuses on deploying the project to the live internet.
Web
Ben Rometsch, Jul 25

How to Use Feature Flags in Continuous Integration

We show you how to use Feature Flags and Remote Config to avoid the need for feature branches in Git, as well as any sort of test or staging environments.
Blockchain
Bruno Skvorc, Jul 24

Ethereum DApps: Building a Web3 UI for a DAO Contract

In this seventh tutorial in his series explaining how to build decentralized applications using the Ethereum blockchain, Bruno shows how to build the app's front end, setting up and deploying the UI for this story he's been working on.
Web
SitePoint Team, Jul 22

Introducing Hubs: Learn Modern Development Skills

Figuring out where to start when learning a new web technology can be hard: the sheer amount of material available in a variety of formats can be overwhelming. SitePoint’s new Hubs remedy that issue by providing comprehensive learning destinations on a multitude of web development topics.
Blockchain
Bruno Skvorc, Jul 20

Building Ethereum DApps: Voting with Custom Tokens

In this sixth tutorial in his series explaining how to build decentralized applications using the Ethereum blockchain, Bruno takes the DAO to its final form, adding voting, blacklisting/unblacklisting, and dividend distribution and withdrawal, while throwing in some additional helper functions for good measure.
Web
Kevin Arhelger, Jul 19

How Memory & Disk Performance Affects Your MongoDB Database

Understanding the relationships between various internal caches and disk performance, and how those relationships affect database and application performance, can be challenging. We’ve used the YCSB benchmark, varying the working set and disk performance, to better show how these relate.
Blockchain
Bruno Skvorc, Jul 18

Ethereum DApps: Cross-contract Communication & Token Selling

In this fifth tutorial in his series explaining how to build decentralized applications using the Ethereum blockchain, Bruno shows how to add the ability for participants to buy tokens from the DAO and to add submissions into the story.
Blockchain
Bruno Skvorc, Jul 16

Building Ethereum DApps: Whitelisting & Testing a Story DAO

In this fourth tutorial in his series explaining how to build decentralized applications using the Ethereum blockchain, Bruno takes the first steps towards developing a Story DAO, covering whitelisting and testing.
Web
SitePoint Team, Jul 12

4 Handpicked Design & Dev Collaboration Tools You Should Know About

If you're a web designer or developer, your work involves some teamwork and collaboration. Even when you're working on a personal project it never hurts to have someone you can rely on. You might need somebody for guidance, assistance, or fresh ideas.
Blockchain
Bruno Skvorc, Jul 12

Ethereum DApps: Compiling, Deploying, Testing TNS tokens

In this third tutorial in his series explaining how to build decentralized applications using the Ethereum blockchain, Bruno looks at how to compile, deploy, test and verify a TNS token, which is compatible with all exchanges and can be used as a regular ERC20 token.
Blockchain
Bruno Skvorc, Jul 10

Building DApps with Ethereum: Creating, Deploying TNS Tokens

In this second tutorial in his series explaining how to build decentralized applications using the Ethereum blockchain, Bruno dives right into it and builds and deploys his TNS token — the token users will use to vote on proposals in the Story DAO.
Web
SitePoint Team, Jul 09

30 Awesome Tools for Web Designers & Developers

We're always on the lookout for the best web tools and services available for designers and developers. Using these resources will help you stay competitive in terms of pricing and project delivery dates.
Blockchain
Bruno Skvorc, Jul 06

Building DApps with Ethereum: App Rules and Blockchain Setup

In this first tutorial in his series explaining how to build decentralized applications using the Ethereum blockchain, Bruno lays out the app's rules and features and sets up the private blockchain, showing how to build your own custom Ethereum token with or without an accompanying DAO and app.
Web
Tonino Jankov, Jul 04

HTTP/2: Background, Performance Benefits and Implementations

Tonino Jankov covers the background, performance benefits and current implementations of the HTTP/2 protocol.
Web
Ahmed Bouchefra, Jul 03

Performance Auditing: A Firefox Developer Tools Deep Dive

Ahmed Boucherfra provides an in-depth guide to making use of the performance-related tools within Firefox's developer tools.
Blockchain
Bruno Skvorc, Jul 03

Using Puppeth, the Ethereum Private Network Manager

Brunk Skvorc introduces Puppeth, a one-stop shop of blockchain service management tools that allow you to start developing smart contracts with ease and deploy them to your test blockchain through your local version of MyEtherWallet or the MetaMask integration of Remix.