Laravel is a PHP framework that uses Eloquent, a powerful and amazing ORM that allows you to do complex SQL queries in a very easy way. But sometimes you need more, and here I’m gonna give you an interesting tip that can bring you a lot of flexibility. When dealing with simple database queries in … Continue reading Querying and Eager Loading complex relations in Laravel
|
|
Over the years of using Linux as my primary and only OS I had to embrace some unavoidable facts. First, things tend to change and complex things tend to break. Second, reinventing the wheel almost never pays off. And finally, it’s not that hard to make a new habit and sometimes it’s better than adjusting your workstation to your “intuitive” understanding that may change very soon. So years ago I decided to only use the most common software ..
|
|
Over the years of using Linux as my primary and only OS I had to embrace some unavoidable facts. First, things tend to change and complex things tend to break. Second, reinventing the wheel almost never pays off. And finally, it’s not that hard to make a new habit and sometimes it’s better than adjusting your workstation to your “intuitive” understanding that may change very soon. So years ago I decided to only use the most common software ..
|
|
How to create a REST API with pre-written Serverless Components
-
www.serverless.com
-
8 years ago
-
eng
How to create a fully-fledged REST API application using pre-written components from the Serverless Components project.
|
|
One of our enterprise accounts is working on a complex GIS application that needs fine grained control over mapping. In this case features such as native maps aren’t useful. For some GIS applications the old MapComponent is more useful as it allows working with domain specific data. One of the features he needed was spatial support in the builtin SQL database. When we initially implemented sqlite support we just delegated all the SQL call..
|
|
I should know better than to use a latest tag in a Docker image. I’d never do this at work, so why did I do it in my hobby project? I blame Go’s nature of dealing with package versioning (that is, the lack thereof) for putting me in the “let’s use latest!” mindset (and yes I know they’re working on it). Anyway, I should know better, but here we are, writing this post. It’s going to be a short one.
|
|
Writing a JSON parser is one of the easiest ways to get familiar with parsing techniques. The format is extremely simple. It's defined recursively so you get a slight challenge compared to, say, parsing Brainfuck ; and you probably already use JSON. Aside from that last point, parsing S-expressions for Scheme might be an even simpler task. If you'd just like to see the code for the library, pj, check it out on Github . What parsing i....
|
|
Took me a little while to get into this book. It starts out in a school where a pupil spots a spaceship from his favourite video game. This then moves on to it being a precursor to an invasion by the aliens from the video game and the game itself was actually put together as training so the players could pilot drones in the war. A slightly surreal concept but pretty well executed. The “twist” with the main characters dad is a bit contrived ..
|
|
I have been very fortunate in my career to have some exceptional bosses that have had a massive impact on my career.
|
|
I had read a lot of good things about this book and it had sat on my Kindle for a long time. Really enjoyed the first half of the book but thought the second half was more focused on things that weren’t relevant to me. There were some statements made that were clearly opinions but were stated as facts. Overall a bit disappointing.
|
|
Took me a little while to get into this book. It starts out in a school where a pupil spots a spaceship from his favourite video game. This then moves on to it being a precursor to an invasion by the aliens from the video game and the game itself was actually put together as training so the players could pilot drones in the war. A slightly surreal concept but pretty well executed. The “twist” with the main characters dad is a bit contrived ..
|
|
I have been very fortunate in my career to have some exceptional bosses that have had a massive impact on my career.
|
|
I had read a lot of good things about this book and it had sat on my Kindle for a long time. Really enjoyed the first half of the book but thought the second half was more focused on things that weren’t relevant to me. There were some statements made that were clearly opinions but were stated as facts. Overall a bit disappointing.
|
|
There is definitely an intimidation factor some people feel about integrating things into Ember apps. While there are plenty of things I want to make easier too, I think a large amount of the perception only comes from lack of good learning materials. Toward that goal, I made this screencast
|
|
Testing mobile applications is not always an easy feat. In addition to defining what to test and determining how to write those tests, actually running tests can also be problematic — in particular, UI test suites running on real mobile devices or emulators sometimes run for an extensive amount of time.
|
|
Testing mobile applications is not always an easy feat. In addition to defining what to test and determining how to write those tests, actually running tests can also be problematic — in particular, UI test suites running on real mobile devices or emulators sometimes run for an extensive amount of time.
|
|
Time sure is flying. My son is already over a month old. I finished my second-to-last (penultimate!) class for my Master’s degree. And it’s already another month, so time to report what I read last month.
|
New product: Stack Overflow for Teams lets you direct questions to members of your own team, company, or organization. Read more "Announcing Stack Overflow for Teams"
|
|
Skyscanner fixed projects and gained visibility into their open source vulnerability exposure.
-
snyk.io
-
8 years ago
-
eng
Skyscanner today monitors nearly 500 separate projects with Snyk, and is able to understand the state of their security as well as address both their vulnerability and licensing issues. This case study shows why Skyscanner chose to use Snyk and the benefits they see every day.
|
|
It's no secret that retail is changing. Incredible shifts and technological developments have altered the way we shop and interact. The pace will hardly slow. That begs the question: how should retailers prepare to understand their customers and thrive in sync with these ongoing changes? A forward-thinking approach to surviving the changing retail landscape
|
|
Event Gateway as a hosted service, configurable connectors, and a plugin for the Serverless Framework.
|
|
In my last article I shared our approach at Sense Health to use Infrastructure as Code for creating and provisioning…
|
|
Fn Project brings containerized, cloud-agnostic functions to a cloud near you
-
www.serverless.com
-
8 years ago
-
eng
The Fn Project is an open source, container-native serverless platform that you can run anywhere—on any cloud or on-premise.
|
|
OK, maybe they only irritate me and most people find them useful, but things keep added into Firefox increasing bloat for no apparent reason. In some cases they also increase the odds of you accidentally leaking information onto the internet It'll almost certainly grow with time, but this snippet is a bunch of steps to disable some of those annoyances, like "Pocket", "Screenshot" and "Please, please sign into your browser" mode Read mo..
|
|
Alarm goes off, time to wake up. Snooze alarm, and then repeat: check email, check Facebook, check Twitter, check Snapchat, rinse; repeat again; no new posts? Check again. No second spared to compose a thought; dreams fade away. Day continues just the same way — rise, rinse, repeat, repeat. Can’t spare time to sit and relax, can’t let your mind wander not five minutes, no unstructured thought or daydream; just repeat. Every moment captures ....
|
|
Although the decision to include X-Pack sparked some confusion and disgruntle in some people due to having non Apache licensed code being present in the repo and the distrubitions; they are easily removable if any of them is a concern to you. SQL support was announced in ElasticON and there is a comprehensive presentation by Costin Leau. I was pretty excited about the support, because we use Elasticsearch for storing metrics and logs and it..
|
|
When GlusterFS nodes get isolated, you can end up with a condition known as split-brain - basically one (or more) nodes is aware of changes that the others are not. Depending on how bad the split-brain is, and what it effects, it has the ability to completely ruin your day. One of the first things you want to do, once you become aware of the issues, is (if at all possible) cease all writes to the volume on all nodes - you don't want t..
|
|
Solitary or Sociable? Testing Events and Listeners using Laravel
-
blog.jgrossi.com
-
8 years ago
-
eng
Testing with Laravel is very easy, but it can be a nightmare when the tests depend on Events and Listeners. In this post I’m gonna show you how you can simplify and improve those tests. Laravel is one of the most popular PHP frameworks nowadays, and I’d say its Event handler is one of the … Continue reading Solitary or Sociable? Testing Events and Listeners using Laravel
|
|
Wanted to try out some code, but needed to ensure never checked in. Git pre-commit hooks are handy in this space. Add the following script to search for either @COMMITFAIL or @NOCOMMIT in the staged files. If found, attempts to commit will fail. Based on https://gist.github.com/rex/223b4be50285f6b8b3e06dea50d15887 : #!/bin/bash set -o nounset set -o errexit echo "Arguments:" echo "$@" echo "---" readonly FILES_PATTERN='(\..+)?$' readonl..
|
|
OpenMapTiles 3.8 with improved transportation layer and new water features
-
www.maptiler.com
-
8 years ago
-
eng
The new release of open-source project OpenMapTiles 3.8 brings evolutionary steps rather than revolution.
|
|
So, you’ve got a program that’s using more and more over time as it runs. Probably you can immediately identify this as a likely symptom of a memory leak. But when we say “memory leak”, what do we actually mean? In my experience, apparent memory leaks divide into three broad categories, each with somewhat different behavior, and requiring distinct tools and approaches to debug. This post aims to describe these classes, and provide tools and..
|