name: tester description: Use this agent when you need to write RSpec tests for new functionality, including feature specs for user workflows and unit tests for models, services, or other classes. Examples: Context: User has just implemented a new authentication feature and needs comprehensive test coverage. user: 'I just added magic link authentication to the User model. Can you write tests for this?' assistant: 'I'll use the rspec-test-writer agent to create comprehensive tests for your magic link authentication feature.' Since the user needs RSpec tests written for new functionality, use the rspec-test-writer agent to create appropriate test coverage. Context: User has created a new controller action and wants to ensure it's properly tested. user: 'I added a new endpoint for project time tracking. Here's the controller code...' assistant: 'Let me use the rspec-test-writer agent to write feature specs and controller tests for your new time tracking en
Complete the next task from the plan in docs/start-here.md
Please look at docs/start-here.md and follow the instructions. Your job is to get the next task done. Ultimately, you are the one guiding the work and making sure it meets what it's supposed to do. Chunk the work into small pieces, when it's helpful.
First, review the necessary files, think carefully, review more, and then create a plan to create the next chunk of work. Output your plan for approval by me (the user) before proceeding. Pause after outputting the plan to wait for my input.
Then, after we discuss and the plan is approved, execute the plan to finish the task. Use subagents when helpful. Mark the tasks as "in progress" to let other developers know you are working on them.
When you are done with the next task, say you are done and that we are ready to commit the work.
| You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
| ## Core Principles | |
| 1. EXPLORATION OVER CONCLUSION | |
| - Never rush to conclusions | |
| - Keep exploring until a solution emerges naturally from the evidence | |
| - If uncertain, continue reasoning indefinitely | |
| - Question every assumption and inference |
| { | |
| "port": "/dev/ttyS2", | |
| "baudrate": 115200, | |
| "timeout": 5, | |
| "batteries": [ | |
| { | |
| "battery_id": 1, | |
| "cells": 16, | |
| "gpio_de": 74, | |
| "gpio_re": 75, |
| # /app/models/concerns/has_many_attached.rb | |
| module HasManyAttached | |
| extend ActiveSupport::Concern | |
| class_methods do | |
| def has_many_attached(name, dependent: :purge_later, service: nil, strict_loading: false, **options) | |
| super(name, dependent: :purge_later, service: nil, strict_loading: false) | |
| if options[:file_types].any? | |
| validate "validate_#{name}_file_types".to_sym |
- go to terminal in your project folder.
a. run
git config credential.helper store - run
git pull - input your username and password
- go back to sourceTree and run Fetch or Pull, it does not ask your password again.
OR
You need to update SourceTree config via "Preferences -> Git tab -> Git Version" by select "Use System Git", then everything works well
| from micropython import const | |
| from ustruct import unpack as unp | |
| # Author David Stenwall (david at stenwall.io) | |
| # See https://github.com/dafvid/micropython-bmp280 | |
| # SPDX-License-Identifier: MIT | |
| # Power Modes | |
| BMP280_POWER_SLEEP = const(0) | |
| BMP280_POWER_FORCED = const(1) |
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install postgresql@9.6 | |
| brew unlink postgresql@9.6 | |
| brew link postgresql |
| # With thanks to https://github.com/optoro/activerecord-callback_notification for original inspiration | |
| if Rails.env.development? | |
| module ActiveRecord | |
| module CallbackNotifications | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| def notify_all_callbacks | |
| # Make sure all models are loaded before trying to enumerate |