- Sep 2024
- Nov 2023
-
github.com github.com
-
when I was CTO of a company and someone joined, the first thing they had to do was to spend two weeks reading AWDwR from cover to cover. Once you know the framework, there is no magic, only defaults that act as a catalizer and let you fly.
-
- May 2023
-
www.macstories.net www.macstories.net
-
The HoverBar Duo’s base is stable and heavy enough to support Apple’s biggest 12.9” iPad Pro.
Having spent the past two days exploring the potential of the used first-generation HoverBar Duo I somehow managed to acquire for $35, I would emphasize "enough" here as a qualifier at least once over.
Though the following is pure speculation, there were a few highly observable clues to suggest that the previous owner also had a heavy iPad Pro (perhaps a 13,9 as I have,) though - after over-tightening all the adjustment screws (all but stripping threads in the case of the one at the base,) they were ultimately not satisfied with the Duo's management of the weight, even tightened to that state.
(Again, entirely speculative but.)
-
- Mar 2023
-
stackoverflow.com stackoverflow.com
-
doorkeeper.gitbook.io doorkeeper.gitbook.io
- Dec 2022
-
terminalroot.com terminalroot.com
-
The most correct thing is to create a directory with the name lua/ and inside it put all the files that will be imported by init.lua, example:
I think to not do that, at least when just starting with NeoVim configuration.
Instead, I would keep adding configuration in
init.lua
to see what happens in which order, will be easier experimenting moving things around, without behind-the-scenes loading.This seems a nice feature though, looking forward to leveraging it when I have some fixed parts to load.
-
- Nov 2022
-
-
So when configuring Capybara, I'm using ignore_default_browser_options, and only re-use this DEFAULT_OPTIONS and exclude the key I don't want Capybara::Cuprite::Driver.new( app, { ignore_default_browser_options: true, window_size: [1200, 800], browser_options: { 'no-sandbox': nil }.merge(Ferrum::Browser::Options::Chrome::DEFAULT_OPTIONS.except( "disable-features", "disable-translate", "headless" )), headless: false, } )
-
-
github.com github.com
-
-
I just assumed that nesting/inheriting settings would be a thing because of course it would
-
git_workspace/ ├── .vscode │ └── settings.json # global settings, my preferred ones ├── my-personal-projects/ │ └── project1/ │ └── .git/ └── company-projects/ ├── .vscode │ └── settings.json # local settings, overrides some of my personal ones ├── project2/ │ └── .git/ └── project3/ └── .git/
-
- Sep 2022
-
stackoverflow.com stackoverflow.com
-
git -c log.follow= log: that will unset log.follow, just for that one git log instance.
-
-
docs.rubocop.org docs.rubocop.org
-
Giving ~, YAML’s representation of nil, as a value cancels the setting of the corresponding key in the parent configuration.
-
- Jul 2022
-
github.com github.com
-
ActiveSupport.on_load :active_storage_blob do def accessible_to?(accessor) attachments.includes(:record).any? { |attachment| attachment.accessible_to?(accessor) } || attachments.none? end end ActiveSupport.on_load :active_storage_attachment do def accessible_to?(accessor) record.try(:accessible_to?, accessor) end end ActiveSupport.on_load :action_text_rich_text do def accessible_to?(accessor) record.try(:accessible_to?, accessor) end end module ActiveStorage::Authorize extend ActiveSupport::Concern included do before_action :require_authorization end private def require_authorization head :forbidden unless authorized? end def authorized? @blob.accessible_to?(Current.identity) end end Rails.application.config.to_prepare do ActiveStorage::Blobs::RedirectController.include ActiveStorage::Authorize ActiveStorage::Blobs::ProxyController.include ActiveStorage::Authorize ActiveStorage::Representations::RedirectController.include ActiveStorage::Authorize ActiveStorage::Representations::ProxyController.include ActiveStorage::Authorize end
Interesting, rather clean approach, I think
-
- Jun 2022
-
docs.getdrafts.com docs.getdrafts.com
-
[[permalink]] A URL which can be used as a bookmark to open Drafts and select the current draft. The deprecated [[draft_open_url]] returns this same value, but permalink is preferred.
Whoo! I have... A lot of actions to update.
-
- Mar 2022
-
gist.github.com gist.github.com
-
# Allows you to just run "pry" inside a Rails app directory and get # everything loaded as rails c does. Inside a Bundler directory does # what bundle console does.
Tags
Annotators
URL
-
-
github.com github.com
-
It's more opinionated than active_record_migrations and standalone-migrations, and therefore simpler to configure.
-
- Feb 2022
-
github.com github.com
-
Replaces your Rails controllers, views and forms with meta programming. Considers routes.rb, ability.rb, current_user and does the right thing.
-
-
bilge.world bilge.world
-
Telegram message IDs are purely chronological from their channel/group chat’s creation – the first message in a channel or group chat is 1 and the 15th is 15. Together with the simplicity of channel/group chat IDs, which are just their alphanumeric @ names, this format makes URL schemes for Telegram message links super malleable and easy to understand.
I’ve created a Siri Shortcut and TextExpander snippet that utilize this simplicity to make navigating to specific Telegram messages super easy.) and TextExpander snippet thathttp://insert-your-link-here.com utilize this simplicity to make navigating to specific Telegram messages super easy.
Tags
Annotators
URL
-
- Jan 2022
-
support.mozilla.org support.mozilla.org
-
Click Done, sign in with your Google account if prompted and that's all!
-
- Oct 2021
-
guides.rubyonrails.org guides.rubyonrails.org
-
You do not configure Zeitwerk manually in a Rails application. Rather, you configure the application using the portable configuration points explained in this guide, and Rails translates that to Zeitwerk on your behalf.
-
-
-
The most important piece of configuration once the installation is complete is to setup mail.
Tags
Annotators
URL
-
- Sep 2021
-
docs.ovh.com docs.ovh.com
-
Configuration sur ordinateur
-
-
forums.linuxmint.com forums.linuxmint.com
-
I keep detailed records of my installation and configuration process so that I can quickly find out where something went wrong.
-
- Aug 2021
-
github.com github.com
-
Why not just prettier-ignore? Because I want to keep Prettier here. Still format my code. But just with another config. This already works with prettierrc > overrides. But this proposal is for a better usability and flexibility.
-
-
github.com github.com
-
In the vast majority of cases when I'm using prettier-ignore I'm only really looking to prevent it from breaking my code into new lines, whilst keeping its other transformations such as switching quotes and adding space between brackets. When ignoring single lines, fixing these formatting problems by hand is very manageable. With the ability to have Prettier ignore entire blocks of code I think the ability to specify what you want it to ignore is essential.
-
- Jul 2021
-
-
(This, incidentally, is why the current 'zero-config' marketing fad is such nonsense: it really means 'abdicate the responsibility for config'. Instead of a single place where you can view all the build config in a structured, coherent form, you have the exact same amount of config but scattered around your project in lots of annoying files that are harder to understand.)
-
- Jun 2021
-
github.com github.com
-
driven_by :selenium_chrome_headless
first sighting:
driven_by
-
Rails.application.routes.default_url_options[:host] = "localhost:#{Capybara.current_session.server.port}"
-
-
stackoverflow.com stackoverflow.com
-
Setting Capybara.server_port worked when the selenium integration test ran independent of other integration tests, but failed to change the port when run with other tests, at least in my env. Asking for the port number capybara wanted to use, seemed to work better with running multiple tests. Maybe it would have worked if I changed the port for all tests, instead of letting some choose on their own.
-
-
stackoverflow.com stackoverflow.com
-
config.default_max_wait_time = ENV.has_key?("CI") ? 60 : 10
-
-
www.reddit.com www.reddit.com
-
app_host is used whenever you call visit to generate the url, server_host sets the ip the server should accept connections from to use (0.0.0.0 means all network interfaces) and finally server_port sets the server port (auto generated by default).You are correct in that both app and server host should be set. Could you try server_host = “0.0.0.0” and app_host = “http://rails:#{Capybara.server_port}”.
app_host ~ server_host
-
-
prettier.io prettier.io
-
Prettier intentionally doesn’t support any kind of global configuration. This is to make sure that when a project is copied to another computer, Prettier’s behavior stays the same. Otherwise, Prettier wouldn’t be able to guarantee that everybody in a team gets the same consistent results.
-
- Apr 2021
-
github.com github.com
-
# +devise_for+ is meant to play nicely with other routes methods. For example, # by calling +devise_for+ inside a namespace, it automatically nests your devise # controllers: # # namespace :publisher do # devise_for :account # end
-
-
github.com github.com
-
find_field finds by id, name or placeholder text - so find_field('Prefix') should find the element with matching placeholder text rather than needing xpath.
-
- Mar 2021
-
github.com github.com
-
I totally understand that there may be a majority still considering this a bad practice and thus keeping it disabled by default in production seem ok. But there could at least be an option to enable it for people who want to, no?
-
- Feb 2021
-
github.com github.com
-
Sure, zero-config one-click installs are nice and all, but:
-
-
github.com github.com
-
STATSD_SAMPLE_RATE: (default: 1.0)
It's recommended to configure this library by setting environment variables.
The thing I don't like about configuration via environment variables is that everything is limited/reduced to the string type. You can't even use simple numeric types, let alone nice rich value objects like you could if configuration were done in the native language (Ruby).
If you try to, you get:
ENV['STATSD_SAMPLE_RATE'] = 1 config/initializers/statsd.rb:8:in `[]=': no implicit conversion of Integer into String (TypeError)
-
-
www.schneems.com www.schneems.com
-
programmers can try to be aware of their configuration systems and the cognitive overhead they impose on people.
-
Another thing I don’t like: our asset behavior is decoupled from the assets. If you’re mucking around in your app/assets folder, then you have to first know that such a config exists, and then hunt it down in a totally different config folder. It would be nice if, while we’re working in asset land, we didn’t have to mentally jump around.
-
- Nov 2020
-
github.com github.com
-
Not being cancelable makes validating dialog content impossible - eg a login dialog or anything that takes user input. Of course, it's easy enough to get around - but I think this should be a requirement of a dialog.
-
- Oct 2020
-
-
To silence circular dependencies warnings for let's say moment library use: // rollup.config.js import path from 'path' const onwarn = warning => { // Silence circular dependency warning for moment package if ( warning.code === 'CIRCULAR_DEPENDENCY' && !warning.importer.indexOf(path.normalize('node_modules/moment/src/lib/')) ) { return } console.warn(`(!) ${warning.message}`) }
-
-
en.wikipedia.org en.wikipedia.org
-
Intercepting proxies are commonly used in businesses to enforce acceptable use policy, and to ease administrative overheads since no client browser configuration is required.
-
-
softwareengineering.stackexchange.com softwareengineering.stackexchange.com
-
The concept of Convention over Configuration is impossible without sensible default values. The key word here is "sensible". The default values have to make sense for at least 80% (if not more) of all the uses of a library/service/framework.
-
-
-
The first rule of standard is no configuration. Whatever the outcome of this thread, adding options is the wrong solution.
-
- Sep 2020
-
www.javascriptjanuary.com www.javascriptjanuary.com
-
The problem I have with this approach to state and prop variables is that the difference between them is very blurry. In React you can clearly see that a prop is an input to component (because of clear function notation), and that state is something internal. In Svelte they are both just variables, with the exception that props use export keyword.
This is something I've seen before: people noticing that Svelte is missing some kind of naming convention.
React has use___ convention, for example. Without that, it makes it hard to see the difference between and know just from the name that a function is an (mentioned in the other article I read) action and not a event handler or even component, for example.
-
-
prettier.io prettier.io
-
Prettier borrows ESLint’s override format.
-
-
github.com github.com
- Jun 2020
- May 2020
-
docs.gitlab.com docs.gitlab.com
-
Enable the sub-chart The way we’ve chosen to implement compartmentalized sub-charts includes the ability to disable the components that you may not want in a given deployment. For this reason, the first setting you should decide on is enabled.
-
-
about.gitlab.com about.gitlab.com
-
Have adopted CI best practices and are defining their CI/CD pipelines as code
-
-
www.typescriptlang.org www.typescriptlang.org
-
This file that really does nothing but manage other project files is often called a “solution” in some environments.
-
-
www.bounteous.com www.bounteous.com
-
github.com github.com
-
EBM Data Lab - Risk Factors Research
-
- Apr 2020
-
stackoverflow.com stackoverflow.com
-
[link](url){:target="_blank"} Works for jekyll or more specifically kramdown, which is a superset of markdown, as part of Jekyll's (default) configuration. But not for plain markdown. ^_^
-
-
stackoverflow.com stackoverflow.com
-
stackoverflow.com stackoverflow.com
-
github.com github.com
-
klass_name - class name for "User" object. Defaults to User
-
AnyLogin.setup do |config| config.enabled = false end
Tags
Annotators
URL
-
-
github.com github.com
-
If you really want to configure hundreds of ESLint rules individually, you can always use eslint directly with eslint-config-standard to layer your changes on top. standard-eject can help you migrate from standard to eslint and eslint-config-standard.
-
- Mar 2020
-
puppet.com puppet.com
- Feb 2020
-
loadimpact.com loadimpact.com
-
DevOps has taught us that the software development process can be generalized and reused for dealing with change not just in application code but also in infrastructure, docs and tests. It can all just be code.
-
-
-
CAC Isn’t Shipping Apps With Configs A shallow reading of configuration as code might lead you to add a configs folder to your release package and throw in the files. That approach would be wrong and dangerous. That solution means that a configuration change requires a release of the application. This meets the goal of adding an audit trail for configs but muddies the water by mixing them with code changes. If a new feature requires both a code and configuration change, this might make sense. But what if you’re only changing the configuration? What if you’re just increasing a cache setting in production?
-
Configuration as Code vs. Infrastructure as Code Some treat CAC and infrastructure as code (IAC) as the same thing. They’re not, and there’s a reason we have two distinct terms.
-
- Dec 2019
-
github.com github.com
-
A zero-config development setup is provided, but nwb also supports configuration and plugin modules which add extra functionality (e.g. Sass support), should you need them
-
-
neutrinojs.org neutrinojs.org
-
Create and build modern JavaScript applications with zero initial configuration
-
- Nov 2019
-
docs.silverstripe.org docs.silverstripe.org
-
If you really want to be sure your customisation gets loaded first or last, you can use * as your before or after reference.
controlling order
-
before and after also accept arrays of constraints.
controlling order
-
Much like the configuration layer, we need to specify a name for this transformation. This will help other modules negotiate their priority over the injector in relation to yours.
-
-
github.com github.com
-
Onivim 2 leverages the VSCode Extension Host process in its entirety - meaning, eventually, complete support for VSCode extensions and configuration.
-
-
kentcdodds.com kentcdodds.com
-
blog.codinghorror.com blog.codinghorror.com
-
babeljs.io babeljs.io
-
File-relative configuration Babel loads .babelrc (and .babelrc.js / .babelrc.cjs / package.json#babel) files by searching up the directory structure starting from the "filename" being compiled (limited by the caveats below). This can be powerful because it allows you to create independent configurations for subsections of a package. File-relative configurations are also merged over top of project-wide config values, making them potentially useful for specific overrides, though that can also be accomplished through "overrides".
-
- Oct 2019
-
www.rubyraptor.org www.rubyraptor.org
-
Setting up Nginx properly requires quite a bit of work. Using websockets or using Rails streaming? Make sure you disable response buffering for the relevant URIs, otherwise they won’t work correctly. Phusion Passenger 5’s builtin reverse proxy does the right thing by default, without any configuration. In other words: it’s all about making things simple.
-
- Aug 2019
-
prettier.io prettier.io
- Dec 2017
-
chris.beams.io chris.beams.io
-
picking one and sticking to it is far better than the chaos that ensues when everybody does their own thing
-
- Sep 2017
-
github.com github.com
-
www.mygooglest.com www.mygooglest.com
Tags
Annotators
URL
-
- Jan 2014
-
redmonk.com redmonk.com
-
The closest thing to common ground may be events for configuration-management software like PuppetConf or ChefConf, or possibly re:Invent.
-