|
Back to Rails Test - Putting Rspec in the Rear View - Test Examples
-
fuzzyblog.io
-
4 years ago
-
eng
I find myself building a new application, Cartazzi, and since the "template app" I'm building from uses Rails Test not rspec, I'm back to the past using the native rails testing framework – something I probably last touched by in 2009. This blog post summarizes different Rails testing examples and is a work in progress as I come up with new examples. Thinks I Like About Rails Test It is fast Have I mentioned it is fast It is so, so fast....
|
|
Back to Rails Test - Putting Rspec in the Rear View - Test Examples
-
fuzzyblog.io
-
4 years ago
-
eng
I find myself building a new application, Cartazzi, and since the "template app" I'm building from uses Rails Test not rspec, I'm back to the past using the native rails testing framework – something I probably last touched by in 2009. This blog post summarizes different Rails testing examples and is a work in progress as I come up with new examples. Thinks I Like About Rails Test It is fast Have I mentioned it is fast It is so, so fast....
|
|
Twitter users mentioning #partygate divided into communities based on language style
-
dfworks.com
-
4 years ago
-
eng
Background This is an implementation of the paper, “Message-based Community Detection on Twitter”, written by Carl Miller and associates at…
|
|
The only purpose of a plan is to ensure better results, it has no value in itself. And as James wrote, we must know what to overlook, as sometimes it is better to have no plan at all.” I value knowledge and being able to respond or adapt when it’s needed over obsessive planning of details that will be wrong the second you get to working on something. Many people are able to adapt and figure out the details for themselves — maybe not in th..
|
|
The only purpose of a plan is to ensure better results, it has no value in itself. And as James wrote, we must know what to overlook, as sometimes it is better to have no plan at all.” I value knowledge and being able to respond or adapt when it’s needed over obsessive planning of details that will be wrong the second you get to working on something. Many people are able to adapt and figure out the details for themselves — maybe not in th..
|
|
The Chromium team is planning on phasing out Manifest V2, its current set of extension APIs, in favor of Manifest V3. Manifest V3 involves giving extensions less access to page contents. Instead, extensions use new APIs that involve giving the browser simple instructions for page modification. The browser performs those instructions using its own logic; extensions themselves can’t access page contents. This represents a tremendous trade....
|
|
Let’s consider the following dynamical system: $$ \begin{cases} \dot{x}_1 = f(x_3) - x_1,\\ \dot{x}_2 = f(x_1) - x_2,\\ \dot{x}_3 = f(x_2) - x_3, \end{cases} $$ where $f(x) = \alpha / (1+x^m)$ is a Hill function. In this case study, we explore the phase portrait of this system for $\alpha = 18,\; m = 3$.
|
|
Let’s consider the following dynamical system: $$ \begin{cases} \dot{x}_1 = f(x_3) - x_1,\\ \dot{x}_2 = f(x_1) - x_2,\\ \dot{x}_3 = f(x_2) - x_3, \end{cases} $$ where $f(x) = \alpha / (1+x^m)$ is a Hill function. In this case study, we explore the phase portrait of this system for $\alpha = 18,\; m = 3$.
|
|
Welcome to my website I’m a software engineer and musician based in NYC. I enjoy building worlds with code and sound 💻 🎶 I graduated from the University of Texas at Austin in 2020, earning dual degrees from the computer science department and a liberal arts program called Plan II Honors . I wrote an undergraduate thesis analyzing the philosophical underpinnings of self-driving technology, exploring ethical challenges from the perspect..
|
|
Music Projects I release music as os.10 , primarily under my project postbag alongside Sudarshan Iyengar , my friend and frequent collaborator. Here’s a running list of releases: MORPHIUS by postbag (single) 07/06/2023 CAPTAIN ALCHEMIST by postbag (single) 07/15/2023 DUSTY by postbag (album) 07/20/2023 11 days by postbag (single) 10/18/2024 sakal ban by postbag (single) 10/11/2024 ARBORETUM by postbag (album) 10/25/2024 ..
|
I recently read the book "How Buildings Learn" by Stewart Brand. One premise is that all buildings are predictions, and all predictions are wrong, so design them to be easy to change. It is a wonderful book on complex systems, and the whole time I was reading it I was also thinking of it metaphorically as creating software. This post How Software Learns first appeared on Dan Stroot's Blog
|
|
A couple of months ago, I bought the PiccoloCane Tanto2 pet stroller for the cats. I originally ordered the slightly more compact and elegant Carino2, but after it arrived it was obvious that it was too small for both of my cats. I exchanged it for the bulkier, but more roomy forest green Tanto2.
|
|
The asset pipeline is the component of Rails that I, well, let me quote myself from a recent email: I've been tracking down that crazy image related issue for an age now and I think I just got it. Every single time it is always the damn asset pipeline (this is the one component in Rails that I have a literal deep and abiding hatred for; it is finicky code and instead of sticking with a solution they keep replacing it which I have the d....
|
|
The asset pipeline is the component of Rails that I, well, let me quote myself from a recent email: I've been tracking down that crazy image related issue for an age now and I think I just got it. Every single time it is always the damn asset pipeline (this is the one component in Rails that I have a literal deep and abiding hatred for; it is finicky code and instead of sticking with a solution they keep replacing it which I have the d....
|
|
Dear Spotify. I tried to search for podcasts on your Desktop app. I know you're into fancy cross-platform Electron framework. I've come to terms with it. It's fine. It'll do. But, your understanding of interface design seems like it needs a bit
|
|
As I am reaching the 10-years-of-experience milestone in my career, there’s still a bunch of stuff that I am hopeless at.
|
|
I've started using GPT-3 to create text summaries, outlines and perform many other AI-powered tasks directly within the Logseq notetaking app using a new plugin I developed.
|
|
Repository: @knadh/dns.toys GitHub release page: v0.1.0 Full Changelog : https://github.com/knadh/dns.toys/commits/v0.1.0
|
|
I've started using GPT-3 to create text summaries, outlines and perform many other AI-powered tasks directly within the Logseq notetaking app using a new plugin I developed.
|
|
David Deida explores the most important issues in men's lives—from career and family to women and intimacy to love and spirituality and relationships—to offer a practical guidebook for living a masculine life of integrity, authenticity, and freedom.
|
|
As I am reaching the 10-years-of-experience milestone in my career, there’s still a bunch of stuff that I am hopeless at.
|
|
As Brave continues to grow, we find many users who haven't heard of us yet, so we try new marketing channels for efficacy, reach, affordability, and privacy.
|
|
I saw this post linked on Hacker News today, reflecting on the difficulties of starting a company in Germany. It made me think about the process of starting a company (“Aktiebolag”, or “AB”) in Sweden, which I recently went through myself.
|
|
What do you do when your data science project doesn't fit within your computer's memory? One solution is to distribute it across multiple worker machines. This week on the show, Guido Imperiale from Coiled talks about Dask and managing large data science projects through distributed computing.
|
|
In which we investigate whether the demo content loaded onto iPads is owned a single fictional person
|
|
In which we investigate whether the demo content loaded onto iPads is owned a single fictional person
|
|
In which we investigate whether the demo content loaded onto iPads is owned a single fictional person
|
|
Being enrolled in a study should require prior informed consent. Terms of the data collection, including what data can be collected and how that data will be used, must be presented to all participants in language they can understand. Only then can they provide informed consent. Harvesting data without permission is just exploitation. Software improvements and user engagement are not more important than basic respect for user agency. Mo..
|
|
So we have yet a new UI overhaul. This time, bringing consumer-grade UI practices to the world of professionals. Announcement: https://blog.jetbrains.com/idea/2022/05/take-part-in-the-new-ui-preview-for-your-jetbrains-ide/ New Jet Brains interface We're professionals. We can handle the complexity and the density of the current UI. You made
|
|
I was referring to crawlers that build indexes for search engines to use. DuckDuckGo does have a crawler—DuckDuckBot—but it’s only used for fetching favicons and scraping certain sites for infoboxes (“instant answers”, the fancy widgets next to/above the classic link results). DuckDuckGo and other engines that use Bing’s commercial API have contractual arrangements that typically include a clause that says something like “don’t you dare c....
|
|
This is the Lisp General, ask any and all Lisp questions here. Below is a link to the general's texts which contain many links to various books, documentation, websites, and other interesting information. >Check the texts first: http://verisimilitudes.net/lisp >To foster discussion: Which dialect do you prefer? Do you use Emacs or a different lisp-based editor? What was your first experience with lisp? What have you mad....
|
|
The only engines I know of that run JavaScript are Google, Bing, and maybe Petal. None of the other engines in my list appear to support it. I don’t even think Yandex does. It’s common practice for sites to give a JavaScript-lite version to search engines, though if the content differs heavily you run the risk of hitting a manual action. I’d imagine that search-crawler-exclusive editions would become the norm if crawlers stopped handling ..
|
|
In this post, we’ll discuss Open Policy Agent (OPA) and its rule language, Rego, highlighting how we can use them to write a simple policy for a payroll microservice.
|
|
Asking a question is embarrassing for a moment, but not asking a question is embarrassing for a lifetime. Haruki Murakami
|
|
Tanith complained in the last post she was the only one writing things on our blog recently… so thought… I'd write something again… T.: Aw, c'mon. I didn't complain . It's alr ^^ When we checked again today, we noticed artemislena.eu is now part of the HSTS Preload list … so, hopefully, on your next browser update… our domain's HSTS status will be preloaded into your browser, meaning all our domains will be forced to connect via HTTPS..
|
|
A Better Fan Shroud I already updated my 3D Printer fan shroud a couple of months ago. It should cool the filament more effectively and evenly. I think it did a good job. Unfortunately, the shroud got too hot several times and was deformed. I was afraid that it now had reduced cooling performance. I found an update to the fan shroud that looked very efficient, and somebody analyzed the airflow, and it appeared to be very effective in cooli..
|
|
Rails 7 Madness: No such middleware to insert before: ActionDispatch::Static
-
fuzzyblog.io
-
4 years ago
-
eng
In tonight's category of "Crazy Rails Errors that Even I haven't hit", I was deploying a new app via HatchBox and I hit this one: No such middleware to insert before: ActionDispatch::Static /home/deploy/Cartazzi/shared/bundle/ruby/3.1.0/gems/actionpack-7.0.2.2/lib/action_dispatch/middleware/stack.rb:174:in `assert_index' When I dug into the underlying failure there was this bit of code: def assert_index ( index , where ) ....
|