Configuration is managed via environment variables. See src/aegis_core/config.py for all available settings.
通过环境变量进行配置管理的做法提供了灵活性和安全性,但同时也提出了一个值得思考的问题:在AI安全平台中,如何平衡配置的灵活性与安全性?敏感信息如API密钥的环境变量管理可能需要额外的安全层。
Configuration is managed via environment variables. See src/aegis_core/config.py for all available settings.
通过环境变量进行配置管理的做法提供了灵活性和安全性,但同时也提出了一个值得思考的问题:在AI安全平台中,如何平衡配置的灵活性与安全性?敏感信息如API密钥的环境变量管理可能需要额外的安全层。
A routine is a saved Claude Code configuration: a prompt, one or more repositories, and a set of connectors, packaged once and run automatically.
令人惊讶的是:Routines 实际上是预配置的 Claude Code 会话,将提示、存储库和连接器打包在一起,可以自动运行。这种设计使得复杂的自动化任务可以被封装和重用,而不需要每次都重新配置环境。
Overrides let you have different configuration for certain file extensions, folders and specific files. Prettier borrows ESLint’s override format.
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.
he Web, sadly, defaults to 8 spaces which is an abomination for every snippet of code that would ike to be instantly readable on Mobile Phones too browsers don't provide a tab size setting anywhere (last time I've checked) to override that horrifying 8 spaces legacy nobody wants or need since tabs were invented
a later comment shows this is incorrect; we have CSS tab-size
because not enough code and content is written with tabs, nobody cares about these details while I am pretty sure that if tabs were the default, every tool would surely have a setting/preference for users consuming tabs based content
There are different forms of energy, five primary forms and five secondary forms of energy, and they flow in channels in the body. And at the time of death, there, there's a certain kind of configuration of those energies that occur and you can actually, you can, in a sense, force those energies— maybe that's not the right term, but some people would agree with that metaphor— you can force those energies to enter into that configuration through various forms of yogic practices.
for - Buddhism - Tibetan - clear light meditation practice - 5 primary and 5 secondary flows of energy in channels in the body - meditators practice a desired flow configuration at time of death - from Youtube - Between Life and Death: Understanding Tukdam - John D. Dunne
~/.Renviron. R_LIBS_SITE
dont have
~/.Renviron
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.
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.)
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.
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, } )
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/
git -c log.follow= log: that will unset log.follow, just for that one git log instance.
Giving ~, YAML’s representation of nil, as a value cancels the setting of the corresponding key in the parent configuration.
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
[[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.
# 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.
It's more opinionated than active_record_migrations and standalone-migrations, and therefore simpler to configure.
Replaces your Rails controllers, views and forms with meta programming. Considers routes.rb, ability.rb, current_user and does the right thing.
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.
Click Done, sign in with your Google account if prompted and that's all!
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.
Configuration sur ordinateur
I keep detailed records of my installation and configuration process so that I can quickly find out where something went wrong.
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.
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.
(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.)
driven_by :selenium_chrome_headless
first sighting: driven_by
Rails.application.routes.default_url_options[:host] = "localhost:#{Capybara.current_session.server.port}"
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.
config.default_max_wait_time = ENV.has_key?("CI") ? 60 : 10
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 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.
# +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
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.
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?
Sure, zero-config one-click installs are nice and all, but:
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)
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.
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.
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}`) }
Intercepting proxies are commonly used in businesses to enforce acceptable use policy, and to ease administrative overheads since no client browser configuration is required.
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.
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 borrows ESLint’s override format.
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.
Have adopted CI best practices and are defining their CI/CD pipelines as code
This file that really does nothing but manage other project files is often called a “solution” in some environments.
EBM Data Lab - Risk Factors Research
[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. ^_^
klass_name - class name for "User" object. Defaults to User
AnyLogin.setup do |config| config.enabled = false end
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.
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.
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
Create and build modern JavaScript applications with zero initial configuration
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.
Onivim 2 leverages the VSCode Extension Host process in its entirety - meaning, eventually, complete support for VSCode extensions and configuration.
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".
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.
picking one and sticking to it is far better than the chaos that ensues when everybody does their own thing
The closest thing to common ground may be events for configuration-management software like PuppetConf or ChefConf, or possibly re:Invent.