Author: Sakral Technology

Forg.js is a Lightweight JavaScript Object Validator

Forg is a lightweight JavaScript object validator by @oussamahamdaoui that simplifies complex validation rules on the frontend. Here are some examples from the project’s readme: const { Validator, Rule } = require('@cesium133/forgjs'); const emailRule = new Rule({ type: 'email', user: user => user === 'dedede', domain: domain => ['outlook', 'gmail', 'yahoo'].indexOf(domain) !== -1, }, null); const passwordRule = new Rule({ type: 'password', minLength: 8, uppercase: 1, numbers: 1, matchesOneOf: ['@', '_', '-', '.', '!'], }, null); const vComplexe = new Validator({ age: new Rule({ type: 'int', min: 18, max: 99 }), dateOfBirth: new Rule({ type: 'date' }), array: new...

Read More

Tracking Vue Errors With Honeybadger in Laravel

I feel like Vue and Laravel were almost made to go together and I’ve been using Vue for quite a while. I’m super stoked that Honeybadger recently shipped an official Vue.js integration. Let’s walk through setting everything up so you so if your Vue app catches fire, you can get it handled! Set up Vue Error Reporting Install the Honeybadger Vue package # npm npm add @honeybadger-io/vue --save # yarn yarn add @honeybadger-io/vue Configure Honeybadger To set this up, hop on over to assets/js/app.js and import Honeybadger’s Vue library. import HoneybadgerVue from '@honeybadger-io/vue' Next, we need to add it...

Read More

Google Maps' 'For You' tab comes to iPhones and a whole lot more countries – Search Engine Land

Over the past few years Google has sought to turn Maps from a tool to find directions to a much broader utility and personalized discovery tool. To that end, in May, 2018 at Google I/O, the company introduced a range of updated or new Google Maps features, among them a new ‘For You’ tab that just got a wider roll-out. Personalization and discovery features. For You was initially available on Android devices only in the U.S., U.K., Canada, Australia and Japan. Now it’s rolling out to iPhones and iOS devices in 40 countries. The Android version is coming to 130...

Read More

Missed opportunities: Here's a checklist to stay on track – Search Engine Land

Companies of all sizes can stumble when it comes to their online marketing. A big misconception is that the mistakes large companies make are different than the ones made at smaller companies. The truth is companies of all sizes make similar mistakes. Here are some common mistakes companies make and ways to avoid them. 1. Not tracking all marketing initiatives Believe it or not, this is more common than you think! In my experience, there are a couple of main reasons why companies don’t effectively track their online marketing initiatives. The first is pretty basic and it’s tracking implementation...

Read More