They change shape and color, and squirt ink. But they also will return your gaze, "as if they're scrutinizing you." You’re sitting on the seabed, just off the coast of the Indonesian island of Lembeh. You’re not deep—20 feet or so—and there’s plenty of light. As you’d expect in such a tropical place, the water … Continue reading Why Do Octopuses Remind Us So Much of Ourselves?
Author: Eric
Redis Quick Start on ubuntu
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of … Continue reading Redis Quick Start on ubuntu
Anthony Levandowski is back with a new self-driving startup, called Kache.ai
Anthony Levandowski, the former Google engineer and serial entrepreneur who was at the center of a trade secrets lawsuit between Uber and Waymo, is back. And he is connected to an autonomous trucking company that is still in stealth mode, TechCrunch has learned. The company, called Kache.ai (pronounced like cache), has kept a low profile … Continue reading Anthony Levandowski is back with a new self-driving startup, called Kache.ai
A star is “born” – The Rise of Digital Celebrity
A new generation of celebrities is selling out concerts, starring in commercials, and amassing huge Instagram followings. But none of them exist - corporeally anyway. In recent years, and starting in Japan, technology and social media have spawned a digital demimonde of computer generated stars, ranging from fake musicians and models to company mascots who … Continue reading A star is “born” – The Rise of Digital Celebrity
Active Record Validations
Creating and saving a new record will send an SQL INSERT operation to the database. Updating an existing record will send an SQL UPDATE operation instead. Validations are typically run before these commands are sent to the database. If any validations fail, the object will be marked as invalid and Active Record will not perform … Continue reading Active Record Validations
Real-Time Rails: Implementing WebSockets in Rails 5 with Action Cable
Recent years have seen the rise of "the real-time web." Web apps we use every day rely on real-time features—the sort of features that let you see new posts magically appearing at the top of your feeds without having to lift a finger. While we may take those features for granted, they represent a significant … Continue reading Real-Time Rails: Implementing WebSockets in Rails 5 with Action Cable
Install PostgreSQL on ubuntu
Introduction PostgreSQL is a powerful object-relational database management system, provided under a flexible BSD-style license.[1] PostgreSQL contains many advanced features, is very fast and standards compliant. PostgreSQL has bindings for many programming languages such as C, C++, Python, Java, PHP, Ruby... It can be used to power anything from simple web applications to massive databases … Continue reading Install PostgreSQL on ubuntu
helper_method in Rails
The method helper_method is to explicitly share some methods defined in the controller to make them available for the view. This is used for any method that you need to access from both controllers and helpers/views (standard helper methods are not available in controllers). e.g. common use case: #application_controller.rb def current_user @current_user ||= User.find_by_id!(session[:user_id]) end … Continue reading helper_method in Rails
Sonos laying off 96 employees ahead of expected IPO
Wireless speaker manufacturer Sonos on Thursday revealed plans to cut 96 employees from its workforce in a bid to boost profitability, a move that comes just ahead of an expected initial public offering said to be valued in the billions. The eliminations whittle down Sonos' workforce of approximately 1,500 employees by some six percent and … Continue reading Sonos laying off 96 employees ahead of expected IPO
an OCR Engine in JavaScript
Tesseract.js is a javascript library that gets words in almost any language out of images. Below is an example tested with Node.js (local file system). Note that your will need to download the trained language data for the language here. Unzip the file and put it somewhere in your solution. Then the call to Tesseract … Continue reading an OCR Engine in JavaScript