x86_64 architecture

x86_64 architecture support
This patch adds a x86_64 architecture and qemu_x86_64 board to Zephyr.
Only the basic architecture support needed to run 64 bit code is
added; no drivers are added, though a low-level console exists and is
wired to printk().
The support is built on top of a "X86 underkernel" layer, which can be
built in isolation as a unit test on a Linux host.
Limitations:

Right now the SDK lacks an x86_64 toolchain.  The architecture has
to be built on a Linux host with ZEPHYR_TOOLCHAIN_VARIANT=host.

No x87/SSE/AVX usage is allowed.  This is a stronger limitation than
other architectures where the instructions work from one thread even
if the context switch code doesn't support it.  We are passing
-no-sse to prevent gcc from automatically generating SSE
instructions for non-floating-point purposes, which has the side
effect of changing the ABI.  Future work to handle the FPU registers
will need to be combined with an "application" ABI distinct from the
kernel one (or just to require USERSPACE).

Paging is enabled (it has to be in long mode), but is a 1:1 mapping
of all memory.  No MMU/USERSPACE support yet.

We are building with -mno-red-zone for stack size reasons, but this
is a valuable optimization.  Enabling it requires automatic stack
switching, which requires a TSS, which means it has to happen after
MMU support.

The OS runs in 64 bit mode, but for compatibility reasons is
compiled to the 32 bit "X32" ABI.  So while the full 64 bit
registers and instruction set are available, C pointers are 32 bits
long and Zephyr is constrained to run in the bottom 4G of memory.

Bugs to be fixed before merge:

The "make run" support for qemu broke recently.  This relies on an
existing qemu_machine_hack.py script to change the ELF binary type
of the file, which worked for a while and fails now.  For now it
requires a manual conversion with objcopy (which arguably should be
the mechanism of record even on IAMCU):
objcopy -O binary zephyr.elf ztmp.bin
echo '.incbin "ztmp.bin"' | as --32 -c - -o ztmp.o
gcc -m32 -T linker.cmd -Wl,--build-id=none -nostdlib -nodefaultlibs -nostartfiles -o zephyr.elf -fno-pic ztmp.o

All CPUs come up and enter Zephyr, but each is hanging on the first
context swtich.  I have this reproduced in the xuk unit test, will
fix.

Each CPU requires a separate timer interrupt vector because of a
thinko with the way the xuk IRQ API was written (timer interrupts
are in some sense "per-CPU devices", but still should share the same
vector)

I need to write up docs for the xuk layer spelling out the way the
layering works.

Codecov Report

Merging #9522 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master    #9522   +/-   ##
=======================================
  Coverage   52.24%   52.24%
=======================================
  Files         212      212
  Lines       25951    25951
  Branches     5593     5593
=======================================
  Hits        13557    13557
  Misses      10159    10159
  Partials     2235     2235

Impacted Files
Coverage Δ

kernel/init.c
73.84% <ø> (ø)
:arrow_up:

misc/printk.c
85.45% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 42c1949...6fa95ac. Read the comment docs.

One silly question: Is this not a bit far away from Zephyr's target of resource constrained embedded systems?

Yeah, it's very unlikely anyone will be running a Zephyr app on a PC for production use.  The original impetus for this port was to have a virtualized SMP platform for testing under Qemu (right now we can only do SMP on esp32 hardware).  It also helps to have a simplified architecture vs. the existing x86 layer which has a bunch of historical cruft.  It's also a good testbed to start work on making the Zephyr source 64 bit clean (which isn't happening yet -- this port uses the x32 ABI so pointers are still 32 bit even though the registers are 64 bits wide).
But longer term, who knows.  A tiny Zephyr layer running on IA hardware opens the door to "Zephyr as bootloader" and maybe "Zephyr as hypervisor", etc...

welcome back :)

Digging this out of the trash.  It's "ready enough" now, please review.  Nothing is going to change significantly.
Everything builds, not everything works (about 27% pass in tests/kernel), but I'm in the final whackamole phase and don't see anything worrisome.  Tests are disabled for the arch but I'll replace that with proper whitelisting ASAP.
Note that the timer in use is the hpet driver.  There is a new APIC driver (you can see it in the andy/x64tmp branch) but that one is working only in "normal" qemu mode and not icount yet (qemu seems to be dropping the interrupts if the idle loop issues a HLT, which is weird -- but I can make everything work in the xuk layer so it's something breaking in zephyr), and I don't want to go back to a non-icount world if I don't have to.   SMP passes on the same tests it passes on esp32 (which is to say -- not a lot of coverage), but isn't enabled by default yet.
My suggestion would be to merge this after review and fix remaining bugs with new PRs, but we can do it any way folks want.

(Oh right, and gotta catch up on checkpatch rottage since the last version, heh)

Fixed checkpatch/license whines.  Remaining spots are either false positives or places where I need to plead for special dispensation:

The "space prohibited before colon" error is misparsing the expression, that's a bitfield with an enum type, not a label.

The __packed vs. atribute issue can't be resolved there -- that's the stub code that doesn't compile as part of Zephyr proper and doesn't have access to toolchain headers.  I could probably redefine it myself but I don't see the point.

The typedef warning in sys/types.h is a false positive, that's defining off_t, which must be a typedef

The "macro with flow control" issue in printf is a style thing I guess.  That macro defines the body for the various functions as a wrapper around varargs.  I surely could "fix" this, but not with the same clarity.  It basically has to be a macro to do what it wants.

Hrm... in fact every x86_64 process is hanging on start and eventually reporting a timeout.  This was actually working earlier.  @nashif , has something changed in CI?  I'm wondering if maybe the host toolchain is different or the qemu-system-x86_64 binary is missing or something?  I guess in theory I could figure out how to run the CI docker images locally...

@andyross: Hangs on boot is what I saw while finding the right set of qemu switches in https://github.com/zephyrproject-rtos/zephyr/pull/11710 .

The qemu-system-x86_64 in the SDK (which is just the qemu 2.5 build from Ubuntu 16.04)

I wonder what SDK that is. The latest active Zephyr SDK 0.9.5 doesn't have qemu-system-x86_64.
But those which there, are:
zephyr-sdk-0.9.5/sysroots/x86_64-pokysdk-linux/usr/bin$ ./qemu-system-i386 --version
QEMU emulator version 3.0.50 (v3.0.0-614-g19b599f766-dirty)

Sorry, I miswrote.  Should have said "the qemu-system-x86_64 in CI".  We don't provide that architecture in our SDK yet, so this is using the host qemu.  Which works fine on 18.04 and Fedora, but something is going wrong on the older code.  But as mentioned, we aren't actually doing anything weird, it absolutely should work with any qemu that supports long mode.  Hopefully it'll be quick.  The alternative is indeed to rev the SDK or otherwise get a more recent qemu into the guest.
(Full disclosure: I don't know for sure it's qemu -- could be something in the older gcc or binutils too!    It seems to have been a combination of gcc 6.5 and qemu 2.5 that was confusing things.  CI-generated Zephyr binaries would run fine or Fedora, and Fedora-generated ones ran fine in the CI docker container.
I ended up stumbling on the spot by dumb luck ("it works when this log message is printed but not when it isn't"), but what seems to have been happening is that the older qemu is sensitive to instruction ordering around the LGDT and far JMP that are the last things the 32 bit stub does before entering long mode.   And GCC was (I think) optimizing in a way that would trigger the error.   The workaround is just to add a memory clobber to the LGDT instruction sequence to prevent optimization across the boundary.  (Strictly it shouldn't need one -- LGDT doesn't load any descriptors and so has no side effects that can be visible until the next change of descriptor -- but it obviously can never hurt anything).   Should work now across both build environments.

...except of course that now it's colliding with master and needs a manual rebase.  FML.

Yeah, it officially took me longer to puzzle out the cmake integration again for the rebase than it did to find the optimization glitch earlier.
Fully rebased.  Works in my CI docker image as of a pull 20 minutes ago.  Hopefully nothing else crosses with it before the tests pass...

And now of course everything is blowing up with devicetree errors.  I swear that's not me :)

OK, rebased again to pick up the fix for the nucleo build breakage.  NOW it should be good.  Has all of @andrewboie's requests addressed (though alas I believe you're on vacation now?).   As mentioned before the existing checkpatch violations are either false positives or ones I'm prepared to defend as legitimate.
Hopefully we can get this in before a rebase breaks it again.


feat: use a type guard for the function

Breaking change: The typings now require TS v3.0 (released in 2018) due to switching any to unknown.

,,

wondering why this still isn't merged...

Does this maybe need an update to the README.md file as well, to note the last version number that works with TS < 3.0?


[improve] [broker] Pin AppendIndexMetadataInterceptor to field in ManagedLedgerInterceptorImpl

Motivation
most method in ManagedLedgerInterceptorImpl is just iterate all the interceptors to find the AppendIndexMetadataInterceptor which is unnessary.
Modifications
just save AppendIndexMetadataInterceptor to field when needed just call interceptor directly.
Verifying this change
This change is already covered by existing tests, such as (please describe tests).
Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

LGTM

Codecov Report

Merging #20112 (1d6de86) into master (9b72302) will increase coverage by 39.74%.
The diff coverage is 82.66%.

@@              Coverage Diff              @@
##             master   #20112       +/-   ##
=============================================
+ Coverage     33.17%   72.92%   +39.74%
- Complexity    12236    31928    +19692
=============================================
  Files          1499     1868      +369
  Lines        114413   138413    +24000
  Branches      12431    15233     +2802
=============================================
+ Hits          37962   100937    +62975
+ Misses        71499    29440    -42059
- Partials       4952     8036     +3084

Flag
Coverage Δ

inttests
24.20% <5.33%> (?)

systests
24.78% <6.66%> (?)

unittests
72.22% <82.66%> (+39.04%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...e/pulsar/broker/authentication/oidc/JwksCache.java
56.62% <0.00%> (ø)

...thentication/oidc/OpenIDProviderMetadataCache.java
78.48% <0.00%> (ø)

...unctions/runtime/kubernetes/KubernetesRuntime.java
38.34% <0.00%> (+38.34%)
:arrow_up:

...broker/intercept/ManagedLedgerInterceptorImpl.java
75.00% <75.00%> (+75.00%)
:arrow_up:

.../pulsar/broker/delayed/bucket/ImmutableBucket.java
88.49% <76.19%> (+88.49%)
:arrow_up:

...elayed/bucket/BookkeeperBucketSnapshotStorage.java
83.63% <100.00%> (+83.63%)
:arrow_up:

...r/delayed/bucket/BucketDelayedDeliveryTracker.java
84.21% <100.00%> (+84.21%)
:arrow_up:

...he/pulsar/broker/delayed/bucket/MutableBucket.java
93.26% <100.00%> (+93.26%)
:arrow_up:

...ava/org/apache/pulsar/broker/service/Consumer.java
86.64% <100.00%> (+26.85%)
:arrow_up:

...ava/org/apache/pulsar/broker/service/Producer.java
82.46% <100.00%> (+25.20%)
:arrow_up:

... and 1531 files with indirect coverage changes


[PE-D][Tester E] UG Quick Start Command Does Not Work on Mac

Step 5 of the UG Quick Start instructs the user to type in cd Desktop\A&E to change directory to the A&E folder. However, the path provided only works on Windows (backslash). The path may need to be in quotes as well, since the ampersand (&) in A&E may be treated as a special character in terminal commands.

Tested using MacOS Terminal.app & zsh.

Labels: type.DocumentationBug severity.Medium
original: xenosf/ped#2

Completed in #240


can't find libAIRMaps.a

Hi,
I am having some issues and haven't been able to figure them out. When I attempt to install and link the react-native-maps package using rnpm link, it only links the Android project, and doesn't mention the iOS project. When I go in to do the linking manually, I can't find the libAIRMaps.a binary file to link to the AirMaps.xcodeproj.
I've been uninstalling, reinstalling, and trying various methods but can't seem to get the binary file linked and as a result the map doesn't show up.
Can someone please help either point me in the right direction on how to fix rnpm so that it automatically links the iOS project, or where I can find the binary file.
Thanks.

@swimjo Could you try adding the library manually?

@swimjo Any updates?

Hey sorry- I had to take a break from this and only am now getting back into it- I just had to restart and reinstall everything, there seemed to be something going wrong. It seems to be a little iffy for me whether the set-up works or not but eventually it does.
Thanks.


Failed precondition error message doesn't point to source code

Found during SOSP workshop (cc @utaal)
error: precondition not satisfied
  --> exercise_01_memoize.rs:91:9
   |
91 |         handle.release_write(cache);
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  --> /home/runner/work/verus/verus/source/vstd/rwlock.rs:404:13
   |
   = note: failed precondition

error: aborting due to 2 previous errors

The path /home/runner/work/verus/verus/source/vstd/rwlock.rs is incorrect for my system.
Source code:
// Verus tutorial - 'Advanced Topics' Exercise: computation memoization
//
// This file provides an implementation of a store to memoize the results of some computation.
// This exercise illustrates how Verus can handle interior mutability using lock invariants.
//
// Most of the implementation has been filled in for you. There are 2 blanks to fill in;
// search for 'EXERCISE' in this file.

use std::sync::Arc;
use vstd::hash_map::HashMapWithView;
use vstd::prelude::*;
use vstd::rwlock::{RwLock, RwLockPredicate};

mod memoization_exercise_internals;

verus! {
broadcast use vstd::std_specs::hash::group_hash_axioms;

//////// Import a function. Our objective is to memoize the results of this function.

use memoization_exercise_internals::{Args, Output};

/// Pure functional specification of the function to be memoized.
pub closed spec fn func(args: &Args) -> Output {
    memoization_exercise_internals::func(args)
}

/// Executable version of the function to be memoized.
/// The `ensures` clause guarantees that this computation is deterministic,
/// i.e., it returns the same value every time it is called for the same arguments.
pub fn expensive_function(args: &Args) -> (out: Output)
    ensures out == func(args),
{
    memoization_exercise_internals::expensive_function(args)
}

//////// Here we define the main data structure.

pub struct Memoizer {
    lock: RwLock<HashMapWithView<Args, Output>, Pred>,
}

// This is where we define our "lock invariant". The 'Pred' type is kind of a dummy type, here;
// in more complex cases, we might put actual data in here, but we don't need to for this
// exercise. Thus for the purposes of this file, 'Pred' only serves as a way to connect
// the lock invariant to the lock.
//
// See the RwLock docs for more information:
// https://verus-lang.github.io/verus/verusdoc/vstd/rwlock/struct.RwLock.html
struct Pred { }
impl RwLockPredicate<HashMapWithView<Args, Output>> for Pred {
    open spec fn inv(self, v: HashMapWithView<Args, Output>) -> bool {
        &&& v@.dom().finite()
        // &&& forall |k: Args| #[trigger] v@.dom().contains(k) ==> v@[k] == func(&k)

        &&& v@.dom().fold(true, |prev: bool, next: Args| prev && v@[next] == func(&next))
    }
}

impl Memoizer {
    /// Construct a new 'memoizer' object
    pub fn new() -> Self {
        Memoizer {
            lock: RwLock::new(HashMapWithView::<Args, Output>::new(), Ghost(Pred{})),
        }
    }

    /// Get the result of applying `expensive_function` to the given arguments.
    /// This should call `expensive_function` only if necessary, and it should store
    /// the output for future use.
    pub fn get(&self, args: &Args) -> (out: Output)
        ensures out == func(args)
    {
        // EXERCISE: fill me in
        //
        // Useful docs:
        //  - RwLock: https://verus-lang.github.io/verus/verusdoc/vstd/rwlock/struct.RwLock.html
        //  - HashMapWithView: https://verus-lang.github.io/verus/verusdoc/vstd/hash_map/struct.HashMapWithView.html

        let cache = self.lock.acquire_read();

        match cache.borrow().get(args) {
            Some(value) => return *value,
            None => cache.release_read(),
        }

        let (mut cache, handle) = self.lock.acquire_write();
        let value = expensive_function(args);
        cache.insert(*args, value);
        // assert(handle.rwlock().inv(cache));
        handle.release_write(cache);

        value
    }
}

/// Example usage. Note that this will compile only if `Memoizer: Sync`.
fn main() {
    let memoizer = Memoizer::new();
    let shared_memoizer = Arc::new(memoizer);

    let shared_memoizer1 = shared_memoizer.clone();
    vstd::thread::spawn(move || {
        let v = (*shared_memoizer1).get(&7);
        assert(v == func(&7));
    });

    let shared_memoizer2 = shared_memoizer.clone();
    vstd::thread::spawn(move || {
        let v = (*shared_memoizer2).get(&20);
        assert(v == func(&20));
    });
}

// Used as a placeholder for the exercises, where necessary
#[verifier::external_body]
fn todo<A>() -> A
    requires false
{
    todo!();
}
}

This probably means the vstd source wasn't available to the error reporter. It might be an issue with the binary release.


Dragon Maid

Needs:

Name
Backstory
Name for her master
Sprites

Update: her name is Hanae
peck the backstory, save it for your visual novels

Update: Master's name is Hirohito

All current work is done, closing issue.
November 3rd, 2023.


Forced to modify the admin user password after first login.

In the 1.3 release, the VelaUX creates a default admin user, after login success, the user is required to change the password and add the email address.

We could set a constant Initial password for the admin user after this feature is released.


Remove swift-package-manager and support-tools-core dependencies

One small thought, currently all the package contexts were fetched using SPM library API.
Maybe we could have some small tweaks, making Scipio an SPM command plugin. Then we could fetch most package context from command plugin API, without importing SPM as a dependency.

@kemchenj Thank you for your feedback!
I think BuildPlugin's context is very restricted. So I guess we can't construct package graphs.
I'll try later.
I'm planning to use swift package dump-package instead. This command helps to remove SwiftPM dependencies.

We use SwiftPMDataModel instead. It's difficult to remove all SwiftPM dependencies.


initial setup fails - no dir

Initial setup fails because the config dir hasn't been created yet:
$ ./cleantoots config setup
[output truncated]
ValueError: Unable to configure handler 'file': [Errno 2] No such file or directory: '/home/username/.config/cleantoots/cleantoots.log'
$ mkdir -p /home/username/.config/cleantoots/
$ ./cleantoots config setup
/home/username/.config/cleantoots/config.ini written.
[output truncated]

Thanks for the heads up! I’ll take a look, probably tomorrow.
It’s about the logging module which isn’t even used at that time.

@crishaddad this is fixed in version 0.3.6 available on PyPI, thanks again for the report! 🌟


Parallel deprovison nodes to speed up drift nodes

Description
What problem are you trying to solve?
Sometimes we need to update the instance ami to fix some security issues, and ami update will trigger node drift and auto-rotate. In v0.29.1 karpenter, the drift deprovision is one by one, if the node count is large in the cluster, the rotation will take much time.  As you konw, the ASG in aws support changes the rotation percent when update ami, so we also hope karpenter can support this.
I check the source codes of karpenter, the maintain logic is in karpenter-core/pkg/controllers/deprovisioning/drift.go#ComputeCommand, the return of this function is only one node to deprovision. I guess the main reason is the simulateScheduling  function calculates all the pending pod and deleting nodes's pod, if we change multi candidate nodes one time, the resource may be over provisioned.
If we change the drift deprovison parallelly, the simulateScheduling should exclude the pending pod and deleting nodes' pod, only include the current drift node's pod. Is my opinion right?
So, is there any plan to support parallel deprovison drift nodes? And I am also happy to contribute PR. thanks a lot.
How important is this feature to you?
I hope karpenter can support parallelly deprovision, speed up is very important

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

This looks like a duplicate of https://github.com/aws/karpenter-core/issues/370. We're planning to address this by adding support for parallel deprovisioning and improved performance (see PRs like https://github.com/aws/karpenter-core/pull/542)


chore(deps): Bump

Bumping some outdated dependencies as we haven't done so for a while.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (e9205ab) 63.85% compared to head (e5804aa) 63.85%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #143   +/-   ##
=======================================
  Coverage   63.85%   63.85%
=======================================
  Files          39       39
  Lines        3389     3389
=======================================
  Hits         2164     2164
  Misses       1059     1059
  Partials      166      166

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


bug/feat: exact match should be first result in search dropdown

Here, preferably "data" should be listed as the first search result, or it leads to a weird interaction where typing "data" and Enter opens up the search results for "COCO dataset".

ah! looks like it is maybe doing it in alphabetical order? We could implement a Levenshtein distance (I actually had this on my list to do a quick coding challenge at one point heh) or similar algorithm maybe? Or perhaps there's a more standard way of sorting results that can be applied here.


Automatically install servers when explicitly called by lspconfig[server].setup {}

Like the automatic_installation option in mason-lspconfig.
Instead of lazy loading on file types. Lazy load on lspconfig server calls.

Could you share more details, do you have a specific use case in mind? Are you perhaps trying to integrate with some specific plugin or something like that?

Yep, I'll try and demonstrate below...
The most pertinent example being in mason-lspconfig here under the setup option of automatic_installation
This means that whenever I call / attempt to setup a language server via lspconfig... it will be automatically installed if it wasn't already. E.g.
require('lspconfig').lua_ls.setup {}

Will result in lua_ls being automatically downloaded and installed.
In my particular use case I setup my lsp's manually and at a project level instead of from the neovim configuration level. I do this using the local_spec file functionality from lazy.nvim (.lazy.lua)
e.g. my setup for loading the lua_ls when I'm working on my neovim configuration

note: setupLspServers is just a wrapper around with some extra stuff require('lspconfig')[lang_srv].setup{}
Key point being, I do my language server setup manually and at a project level rather than at the neovim config level. The ability to just have the servers installed when called via lspconfig would be pretty neat I think.
Of course I could just use mason but it's a bit heavy imo, I really just need the ability to auto install prior to my lspconfig call running.

Great explanation, I think I understand now. It seems we want to be able to setup servers individually.
This is a bit different that the original intent of the plugin, adding an option to existing API would multiply complexity. I am leaning towards introducing an additional API.
I am thinking we could have something like  require('lazy-lsp')[lang_srv].setup{} to setup an individual server (or perhaps require('lazy-lsp').lspconfig[lang_srv].setup{} to avoid potential future function name clashes). When using this function one would not call require('lazy-lsp').setup{} at all. Do you think that would cover your use case?
Next there is the question if we should hook into lspconfig and support the require('lspconfig')[lang_srv].setup{} form. Personally I don't like plugins that do that, it makes things more brittle and less composable. It seems mason-lspconfig uses on_setup hook. I wonder if it would make sense to have a something like a on_setup function? Then one could configure it like:
local lspconfig = require 'lspconfig'
lspconfig.util.on_setup = lspconfig.util.add_hook_before(lspconfig.util.on_setup, require('lazy-lsp').on_setup)

With that the require('lspconfig')[lang_srv].setup{} should work. Is it worth the extra complexity?

Ah! There is a hook! That is quite useful! I think this could be done a few ways...
You could have the option for 'automatic_installation' much like mason... Or you could even just have a 'recipe' / wiki explaining how to setup that functionality for any who would want it.
The extra function approach also works! Though I think with that approach it may be pertinent to add an option to disable auto installation / setup on file types to allow users to do their setup explicitly... perhaps that's an option just worth adding for both approaches. (The ability to disable auto setup on filetypes)

Another idea that came to mind would be to always register the hook.
Then current functionality would be preserved be iterating through all servers and calling setup on them. We could have something like auto_setup option that could be set to false and then one could call setup for individual servers manually.
If we always register the hook it might also be feasible to solve the curated servers setup (https://github.com/dundalek/lazy-lsp.nvim/issues/23). We could have auto_setup take values

all to setup all servers
curated for only curated (but thanks to the hook calling setup manually would also enable fetching from nix-shell)
none - one needs to call setup for each server individually


Differentiate host and edge type of transport nodes

NSX transport API provides list of transport nodes which
do not differentiate between host and edge type. Differentiating
this is important, because edge nodes form edge clusters,
which are crucial part of NSX system that stores
stateful services state.
Signed-off-by: Giri Kuncoro<EMAIL_ADDRESS>

Address #29


How to handle ampersands in titles?

My RSS feed is invalid because there are ampersands in titles.
Afaik there is no conversion done in mkdocs of special characters, where should this be handled? Should mkdocs-rss-plugin perhaps convert them?

ampersands are invalidd characters in XML (see: https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML)
Did you try with & ?

Yes I know they're invalid but am I supposed to enter & into my documents myself? That seems cumersome in the long run.

@stemid could you provide URL for your website sources please? It would help me to better understand (which part of the output XML is about.
If the invalid character are inside the item description, you can use the meta.description to override which content is used to fill the feed. See: https://guts.github.io/mkdocs-rss-plugin/configuration/#item-description-length
A long term solution would be:

apply a safe filter in jinja2 template on item title too
use the HTML output instead of the markdown for the item description when meta.description is not present

@Guts I only had one page with an ampersand in the title, added the meta plugin, added both title and description to that page.
So it looks like this;
$ head docs/technical/active_directory/ad_autentisering_i_rhel_7_och_ubuntu_14_04.md
---
description: AD Autentisering i RHEL 7 & Ubuntu 14.04
title: AD Autentisering i RHEL 7 & Ubuntu 14.04
---

So it's a bit inconsistent, but it works without errors.
I tried looking at util.py but can't figure out where this sanitation of ampersands is going on. Maybe in the meta plugin? Because description is being replaced with & while in title I had to do it myself.
Here is the actual page, with a link to its source included. And here is a direct link to the fixed rss feed, so no error.

So it's a bit inconsistent, but it works without errors.

Good news 🥳 . With #21, it will be more consistent.

I tried looking at util.py but can't figure out where this sanitation of ampersands is going on. Maybe in the meta plugin? Because description is being replaced with & while in title I had to do it myself.

As I said, it's not in Python code but in jinja template.
Done with #21.

Here is the actual page, with a link to its source included. And here is a direct link to the fixed rss feed, so no error.

Looking at your mkdocs.yml, the feed can't be compliant because of various missing attributes: description, site_url, site_author... You should refer to the documentation with mandatory an recomended fields at least: https://guts.github.io/mkdocs-rss-plugin/configuration/#mkdocs-configuration.

@stemid is that okay for you?

@Guts 0.9.0 is looking good to me.
I had to use a virtualenv and install GitPython because my Fedora 31 GitPython was too old, 3.0.x instead of 3.1.x.
Then I went into my markdown docs and changed amp to & and the feed is rendering without errors.
I'm pushing this to my public site so it might be hours before the cache is fresh.

Cool. So I can close here.


SSL on default site

Hello, I would like tu use ssl certificate when trying to access unknow host.
I'm using safari so after getting the https one time, it always want to redirect http to https and when trying to access to unknown host error page, it can't connect because of the lack of certificate.
Thanks for all you work!

Hitting this too, +1.  Would love a feature to support a default site for https that allows a wildcard SSL certificate to be used to show a generic error page/redirect.

+1 here -- I think this should be an option.

+1 here. SSL on default anything in the default site settings is horribly broken.

Hello, in fact the default site is not able to answer with different certificates anyway you can use a nice workaround:
Just configure a Redirection Host with a wildcard domain name eg. *.mydomain.xy and do a 307 temporary redirect to you forward domain. On the SSL tab you can specify your prefered certificate.
If you host multiple domains with your NPM just do this for each domain and you are done.
Hope that helped a bit.

Please keep it open!
On Thu, 23 May 2024 at 02:50, github-actions[bot] @.***>
wrote:

Issue is now considered stale. If you want to keep it open, please comment
👍
—
Reply to this email directly, view it on GitHub
https://github.com/NginxProxyManager/nginx-proxy-manager/issues/422#issuecomment-2126046363,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABL4LTUBPLMYXWTYSM4WHTZDVDOVAVCNFSM4NJENUY2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJSGYYDINRTGYZQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>

+1

+1

Set up a 404 Host for *.yourdomain.com, then set the SSL certs as you like (I'm using my cert wildcard, and force SSL).
Now if I hit a non existent subdomain, then it will show the ususal 404 page with SSL.
All the existing subdomains (eg nas.mydomain.com) will still work as before, this only affects non existing subdomains.
You can't set a nice custom 404 page this way, but at least you can have SSL on your 404 page.

+1


Feature:  Add Philosophy Section in select category of the issue box in the landing page

Feature description
Since Philosophy is a major subject, it would be a great option to add a section for that , I think it is essential for a  Library in the Dropdown menu of category on landing page .
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Hello @Jayaditya-Contributor,
I would like to contribute to it , could you please assign this issue to me!


update tgi-gaudi version

Description
update tgi-gaudi version
Issues
List the issue or RFC link this PR is working on. If there is no such link, please mark it as n/a.
Type of change
List the type of change like below. Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would break existing design and interface)

Dependencies
List the newly introduced 3rd party dependency if exists.
Tests
Describe the tests that you ran to verify your changes.

depends on https://github.com/opea-project/GenAIComps/pull/295


the values of the theta and eta

I'm wondering if theta = eta = 1 means the original ComGA. Otherwise, if the   theta and eta  are greater than 1 means the ComGA-O?

Do you mean the Eq. 15? I see in your code that  the S matrix is calculated by
 B_attr = labels_attribute * (eta - 1) +1    diff_attribute = tf.square(tf.subtract(preds_attribute, labels_attribute) * B_attr).
So, i think when the eta = 1, it means the S is not added. So is the theta


Not working for webkit-filter

I'm using webkit brightness effect on canvas but while converting that canvas into new canvas these effects are not applied..
-webkit-filter: brightness(1.3);
-moz-filter: brightness(1.3);

I am also waiting for filters to be implemented, @niklasvh any idea if we could do it by ourselves? Regards

+1. I'm waiting too

What about this new feature?

+1. I'm waiting too

Me too, expecting -webkit-filter:blur() work, thank you.

waiting too

+1

+1

+1

+1

+1

+1

I wrote a tiny library that could screenshot the image along with the css filter properties, hope it helps
https://github.com/cyan33/image-screenshot

I added basic filter support into html to canvas.
https://github.com/niklasvh/html2canvas/pull/1763

until 2019, it not working
if you use filter: grayscale(100%)
you can use svg to solve it.
gray.svg:

.xxx{
filter: url(gray.svg#grayscale);
}
It can work~

+1
@Prindl @niklasvh any updates on the pull request (#1763) that was submitted for handling CSS filters?

Updates?

fix #2300

fix #2300

Lately I've been converting Flash based web apps to HTML5/CSS and JavaScript. I've been using html2canvas to capture the HTML elements and converting them into images. Only problem I've been having is that it does not support filters and webkitTextStroke . I've been trying @ysk2014 #2300 fix, but it doesn't produce good results with webkitTextStroke and filters doesn't seem to be supported at all. I've tested with the Blur filter and the Shadow filter.

@istoan Can you provide some examples of not working? All the examples I wrote are in the tests folder：

tests/reftests/images/filter.html
tests/reftests/text/stroke.html
tests/reftests/text/font-color-gradient.html

@ysk2014 I may not have the right html2canvas version. Where can I find a compiled version with support for filters and stroke? Is there a way to download a html2canvas.js file?

@istoan you can git clone git@github.com:ysk2014/html2canvas.git and run npm start

I managed to clone that after installing the Git Desktop app. I then opened the folder with VS Code and opened Terminal inside VS Code. Then I typed: npm start and I got the following error:

<EMAIL_ADDRESS>start C:\Users\Paul\Documents\GitHub\html2canvas
node tests/server

internal/modules/cjs/loader.js:584
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (C:\Users\Paul\Documents\GitHub\html2canvas\tests\server.js:1:79)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: node tests/server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR!      C:\Users\Paul\AppData\Roaming\npm-cache_logs\2020-10-20T11_19_02_101Z-debug.log

What am I doing wrong? And, is there an easier way to get a compiled version? Can you upload one to your repository?

@ysk2014 I'm new to this. I believe I first had to install all the dependencies needed. I did npm install and got all of them. I then typed npm start and I got:

<EMAIL_ADDRESS>start C:\Users\Paul\Documents\GitHub\html2canvas
node tests/server

Server running on port 8080
CORS server running on port 8081

But it seems I can't find a html2canvas.js file. Not sure how to actually compile one so I can use it in my project.

@istoan Run npm run build. A dist folder will be generated with the JS file you want

@ysk2014 I managed to compile the file and the results seem to be the same as with the other html2canvas.js file downloaded from https://github.com/niklasvh/html2canvas/suites/1187063696/artifacts/17429870
This is how it looks inside my HTML page:

This is the results produced with the new html2canvas.js code:

@istoan Can you provide the code? It's easy for me to find problems.

@ysk2014 An example can be found here:
https://istoan.com/work/html2canvas-filters-test/
And the files for that example are attached
html2canvas-filters-test.zip

@istoan Sorry. Filter only supports img at present

@ysk2014 Oh, that's why I got those results. Do you know any library that can save an image from HTML elements with filters applied? I really need a solution for this in order to deliver the functionality my app had inside the old Flash based version.

@istoan You can try dom-to-image. In fact, html2canvas can also be implemented, but the compatibility is not good

@ysk2014 Thank you very much! dom-to-image works as it should.

Any updates to this? dom-to-image is sadly not working well in my case. Html2canvas does everything correctly, the only problem is the filter

Any updates to this? dom-to-image is sadly not working well in my case. Html2canvas does everything correctly, the only problem is the filter

+1

I would also appreciate very much this feature :)

I would also appreciate very much this feature :)

+1

I would also appreciate very much this feature :)

+1

For people looking for a solution that doesn't uses dom-to-image, i managed to make what i wanted by using Jimp.
See https://github.com/jimp-dev/jimp/issues/1194

I have the same problem, the filter brightness() dosen't work.


HBASE-26989 TestStochasticLoadBalancer fixes for performance and consistency

HBASE-26989
When running the tests locally, I see these runtime improvements:
testNeedBalance: from 120 seconds to 11 seconds
testSloppyTablesLoadBalanceByTable 27 seconds to <1 second
testBalanceOfSloppyServers 67 seconds to <1 second
I ran testNeedBalance 100 times locally, and the other two tests I ran 1000 times locally.
So total class TestStochasticLoadBalancer runtime reduces from 230 seconds to 31 seconds.
Additionally, we get more deterministic behavior, since tests are more likely to have consistent results with a max number of steps when compared to a max running time.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 42s
Docker mode activated.


feat: Add support for Person + Event credentials [DEV-1896]

Task linked: DEV-1896 Deploy credential service and auth0 changes to staging for IIW demo changes


Which API can implement tensor expansion in tensorflow ？

If  I have a tensor of (30,40,50), and I want to expand it out to the first order, then I get a second order tensor of (30,2000), and I don't know if tensorflow has an API that implements it.
For example
import tensorflow as tf
import numpy as np
data1=tf.constant([[[2,5,7,8],[6,4,9,10],[14,16,86,54]],
[[16,43,65,76],[43,65,7,24],[15,75,23,75]]])
data5=tf.reshape(data1,[3,8])
data2,data3,data4=tf.split(data1,3,1)
data6=tf.reshape(data2,[1,8])
data7=tf.reshape(data3,[1,8])
data8=tf.reshape(data4,[1,8])
data9=tf.concat([data6,data7,data8],0)
with tf.Session() as sess:
print(sess.run(data5))
print(sess.run(data))
data5
[[ 2  5  7  8  6  4  9 10]
[14 16 86 54 16 43 65 76]
[43 65  7 24 15 75 23 75]]
data9
[[ 2  5  7  8 16 43 65 76]
[ 6  4  9 10 43 65  7 24]
[14 16 86 54 15 75 23 75]]
How do I get data9 directly(Or maybe I got it wrong)

@goljx Request you to use the reference link1,link TF1.13, link TF1.13,link TF2.0.
This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

I think tf. Reshape just realized dimension to get data5, and I want to get is mathematical dimension to get data9.
Dgumo in stackoverflow suggested I can try data9 = tf.layers.flatten(tf.transpose(data1, 0, 2)). Actually I could get what I want from this.
And latter I found I could get the right result by data9=tl.unfold(data1, mode=2) by  import tensorly as tl
and from tensorly.decomposition import parafac


Typo in neural network .c files

Parameters is misspelled as "parmeters" in src/nnet.c, src/reconet.c, and src/nlinvnet.c
e.g.
src/nnet.c,
124 OPTL_SUBOPT('T', "train-algo", "...", "configure general training parmeters", N_iter6_opts, iter6_opts),

Thanks, fixed.


[SU-260] Allow renaming files from file browser

https://broadworkbench.atlassian.net/browse/SU-260
Stacked on #4078.
This adds the UI for renaming files from the file browser.
https://github.com/DataBiosphere/terra-ui/assets/1156625/afa65e8e-dac5-44bc-89f6-e6a3d87fa423

Is this for just Azure?  I tried testing it out and in GCP the three-dots menu did not appear for the files.

For GCP, which file browser did you use?
The new file browser has to be enabled for GCP workspaces from the feature preview page (https://bvdp-saturn-dev.appspot.com/#feature-preview). Azure workspaces only use the new file browser.
Aha!  That was it.  Thank you!

This button should be disabled / show a tooltip if the user doesn't have permission to write to the workspace.

The rename button should be disabled / show a tooltip if the user doesn't have permission to write to the workspace.

Rebased after rebasing #4078 to resolve merge conflicts.

I am not sure why, but it took me a second to fine the rename in the ... dots -> for some reason a more intuitive way I was expecting was to select the file and see "Rename" appear next to the "New folder" button. I dont think anything needs to be changed, but just wanted to leave this here since it came to mind :)

Generally, the buttons at the top of the file browser either create a new file/folder (upload / new folder) or operate on a list of files (delete). But rename doesn't make sense as an operation on multiple selected files, so I had to add the menu for operations on a single file. The 3 dots button on the side was based on the UI in other lists (workspaces, groups, etc).


Upgraded python version

Fixes #152
To test:

Reinstall and confirm unit tests still pass

@bentom08 I've fixed the CI now if you can take a look?


HipChat adapter fails to connect with nickname with non-ASCII chars

Using heroku config:add HUBOT_HIPCHAT_NAME='Totoro トトロ', while the name string should be unicode (both in heroku and in Node), hubot fails with the error:
2011-10-26T09:51:34+00:00 app[app.1]: Received error from HipChat: XMPP authentication failure undefined

Just to clarify, my own hipchat bot (HippyBot) connects fine with the exact same nickname, password, JID, etc.

I don't think the hipchat adapter uses the hipchat name for connecting, it should be just the JID + password.
I tested with a HUBOT_HIPCHAT_NAME='Hu ボット' and it worked fine.

This is probably an issue in the xmpp library we're using.
I assume it works correctly when the name does not contain unicode characters?
/cc @codafoo @assaf

I think his error is due to an incorrect password or JID. Maybe leaving out<EMAIL_ADDRESS>in the JID. Just to be sure I tested myself and it worked fine locally with unicode characters.
Also, I discovered that the "Wobot" library used silently fails when connecting with the incorrect full name.

@codafoo true, it should only need the full nickname on room join.
It looks like the XMPP error I was getting was the JID, after dropping @chat.hipchat.com it's fine.
I'm now getting another error:
2011-10-26T12:36:43+00:00 app[app.1]: Successfully connected to Redis 2011-10-26T12:36:44+00:00 heroku[app.1]: State changed from starting to up 2011-10-26T12:36:46+00:00 app[app.1]: Received error from HipChat: { stack: [Getter/Setter], 2011-10-26T12:36:46+00:00 app[app.1]:   arguments: undefined, 2011-10-26T12:36:46+00:00 app[app.1]:   type: undefined, 2011-10-26T12:36:46+00:00 app[app.1]:   message: 'ECONNREFUSED, Connection refused', 2011-10-26T12:36:46+00:00 app[app.1]:   errno: 111, 2011-10-26T12:36:46+00:00 app[app.1]:   code: 'ECONNREFUSED', 2011-10-26T12:36:46+00:00 app[app.1]:   syscall: 'connect' } undefined

Sorry if I wasn't clear, but the JID requires the<EMAIL_ADDRESS>perhaps double check your password?

@codafoo I actually knew this, from my own bot, without looking at the code thought maybe it got added somewhere, her der derp.
So with correct JID, and correct password, still receive undefined XMPP error.

ECONNREFUSED seems to indicate a network issue.

@tmm1 that was just because I was trying it without the @chat.hipchat.com as misunderstood @codafoo's original suggestion.

Aha, it refused to connect unless I also added the resource to the JID, e.g<EMAIL_ADDRESS>

Our server should send back a not-acceptable "Resource is required" error in this case by the way. Would be good to show error details in the client if possible.

There's an onError callback that dumps the error message and stanza to the console. I've yet to see a stanza being included (that's the "undefined" at the end of each log line).
If it's a connection error reported by Node, the callback receives an error object, and the log would then show multiple lines with properties like stack and arguments.
Worth cleaning up for better error reporting, but right not it's possible to tell whether error is generated by HipChat or earlier on by client code.


Add charge calc

Add buttons to fill a sang/shadow etc. either fully or total - N. This is mainly used for when you're smuggling runes in a chargable staff.

https://youtu.be/APf4lY63G-0 here is a video of it


DefaultTextStyle results with different Text Color between Platforms

There seems to be an inconsistency with platform-web when using DefaultTextStyle.
The text color is black on web, while it is white on other platforms.
Steps to Reproduce

Run flutter create text_color.
Update the home page body to be:

      body: Center(
        child: Container(
          decoration: BoxDecoration(color: Colors.pinkAccent),
          height: 300.0,
          width: 300.0,
          child: DefaultTextStyle(
            style: const TextStyle(fontSize: 20),
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Text(
                  'You have pushed the button this many times:',
                ),
                Text(
                  '$_counter',
                  style: Theme.of(context).textTheme.headline4,
                ),
              ],
            ),
          ),
        ),
      ),

Expected results:
The page should render the same between Web, iPhone/Android, and MacOS.
Actual results:

Web
iPhone

MacOS

Analyzing text_color...
No issues found! (ran in 1.6s)

[✓] Flutter (Channel stable, 2.0.3, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
    • Flutter version 2.0.3 at /Users/anthony/fvm/versions/stable
    • Framework revision 4d7946a68d (6 days ago), 2021-03-18 17:24:33 -0700
    • Engine revision 3459eb2436
    • Dart version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/anthony/Library/Android/sdk
    • Platform android-R, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.54.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.20.0

[✓] Connected device (3 available)
    • iPhone 12 Pro Max (mobile) • B7029575-B983-4771-A523-93C76DCD9C8C • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-4
      (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 11.2.3 20D91 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 89.0.4389.90

• No issues found!

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.3, on macOS 11.2.3 20D91 darwin-x64, locale en-AO)
    • Flutter version 2.0.3 at /Users/pedromassango/Code/flutter_stable
    • Framework revision 4d7946a68d (6 days ago), 2021-03-18 17:24:33 -0700
    • Engine revision 3459eb2436
    • Dart version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/pedromassango/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 54.0.3
    • Dart plugin version 203.7759

[✓] VS Code (version 1.54.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (3 available)
    • iPhone 12 Pro Max (mobile) • AE2F4F51-880E-44FB-BB29-171B766D9B54 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 11.2.3 20D91 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 89.0.4389.90

! Doctor found issues in 1 category.

CC @darrenaustin

😮 Whoa, I just noticed that the text is RED on iOS/Safari 📱 , but BLACK on MacOS/Chrome 🖥  -- both platform-web.

any progress?

Still reproducible with Flutter (Channel stable, 3.7.6, on macOS 13.2 22D49 darwin-arm64, locale    de-DE)

If you specify useMaterial3: true for the application's ThemeData, is this still a problem?

If you specify useMaterial3: true for the application's ThemeData, is this still a problem?

I already use useMaterial3: true everywhere. So that problem still happens when Material 3 is used.

In the given code sample, DefaultTextStyle default constructor is used, so the default text style set by MaterialApp will be overridden. The text color will be the platform default one. Unfortunately, this default one is not the same for the web engine (see: https://github.com/flutter/flutter/issues/107596, and it is not the same between CanvasKit and HTML renderers).
When using DefaultTextStyle.merge, the MaterialApp default text style will be consistently applied on all platforms (it will be dark if the theme brightness is light, and light if the theme brightness is dark. When using Material 3, the exact color will be rightly computed from the color scheme).
Removing the material and framework labels and adding the engine one.
And closing this issue in favor of https://github.com/flutter/flutter/issues/107596, so please follow up on it for further updates. Thanks!

Thanks alot, DefaultTextStyle.merge worked fine in all my tests.

FYI, I also filed a PR to put more emphasis on DefaultTextStyle.merge in the documentation, see https://github.com/flutter/flutter/pull/122182.


Add python3-arrow

Status
Ready
Related Content Pull Request
None currently, but for future contributions + local usage
Related Issues
None
Description
Make arrow available for usage in packages. Parses date formats a lot cleaner, and is incredibly useful for dealing with humanized dates

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Docker Image Ready - Production
Docker automatic build at CircleCI has deployed your docker image: demisto/python3-arrow:<IP_ADDRESS>24
It is available now on docker hub at: https://hub.docker.com/r/demisto/python3-arrow/tags
Get started by pulling the image:
docker pull demisto/python3-arrow:<IP_ADDRESS>24

Docker Metadata

Image Size: 24.29 MB

Image ID: sha256:81a2e8fd1b52d1418c1c0e4f9012add07cd71133409932db297b2c18620d01e2

Created: 2021-07-25T21:31:12.610227499Z

Arch: linux/amd64

Command: ["python3"]

Environment:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=C.UTF-8
GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568
PYTHON_VERSION=3.9.6
PYTHON_PIP_VERSION=21.1.3
PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/a1675ab6c2bd898ed82b1f58c486097f763c74a9/public/get-pip.py
PYTHON_GET_PIP_SHA256=6665659241292b2147b58922b9ffe11dda66b39d52d8a6f3aa310bc1d60ea6f7
DOCKER_IMAGE=demisto/python3-arrow:<IP_ADDRESS>24

Labels:

org.opencontainers.image.authors:Demisto<EMAIL_ADDRESS>org.opencontainers.image.revision:c87692e2a66248d95aef949c36f33b6ab15d6053
org.opencontainers.image.version:<IP_ADDRESS>24


Install Amazon SSM Agent onto EC2 instances

Amazon SSM agent make us to quickly and easily execute remote commands or scripts against one or more EC2 instances: https://github.com/aws/amazon-ssm-agent
This feature is disabled by default and configurable in cluster.yaml:
# When enabled, all nodes will have Amazon SSM Agent installed.
# It is disabled by default.
#amazonSsmAgent:
#  enabled: true
#  downloadUrl: https://github.com/DailyHotel/amazon-ssm-agent/releases/download/v2.0.805.1/ssm.linux-amd64.tar.gz

Codecov Report

Merging #730 into master will increase coverage by 0.08%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #730      +/-   ##
==========================================
+ Coverage   34.33%   34.41%   +0.08%
==========================================
  Files          55       55
  Lines        3073     3077       +4
==========================================
+ Hits         1055     1059       +4
  Misses       1859     1859
  Partials      159      159

Impacted Files
Coverage Δ

core/controlplane/config/config.go
55.02% <100%> (+0.22%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b542fb1...82cf116. Read the comment docs.

@andromedarabbit Thanks for the PR!
Wow, this is what I had dreamed of 😃
Although I believe duplicating /opt/bin/ssm/install-ssm-agent.sh across all the roles(etcd, worker, controller) isn't the best thing to do, probably we don't have a better option at this point. We should introduce a directory dedicated to define common files included in two or more cloud-configs. See #580.
So, changes LGTM overall, only a minor comment for now!

Would symlinks work or are they not picked up when we create the instance files?
Can we make the default download URL the official AWS one?

@mumoshu @ankon I've made some changes according to the feedbacks received: https://github.com/kubernetes-incubator/kube-aws/pull/730/commits/48978b188b2d1581aac2d2f8c813f96154c7a08f

Hi @andromedarabbit, just checking in but did you have any chance to discuss on/address review comments left by @redbaron?
As this is already LGTM overall, I guess I can adapt your work and improve it on our side if you're short on time.
Please let me know your preference!

@mumoshu I was busy for my personal business. Now things are settled and I am going to push my fixes ASAP.

@mumoshu @redbaron @ankon I've rewritten installation script in the https://github.com/kubernetes-incubator/kube-aws/pull/730/commits/e57e3c7275866824d9745d653d6def915af0cbf1 :

Binaries are placed into /opt/ssm/bin, instead of /opt/bin/ssm
Simple but robust installation process

@ankon

I just have realized -o is not required. My bad.
In case of curl -f fails, ssm.linux-amd64.tar.gz is still created with the content Not Found.  I need the better solution but has not found it yet.
/bin/rm is just my old habbit and can be fixed in the next commit.

With https://github.com/kubernetes-incubator/kube-aws/pull/730/commits/02f56cb030b370a8ee47d529e609c0a36926c61d, the integrity of downloaded file is verified with sha1sum.

@andromedarabbit Sorry, etcd iam policies started conflicting - I've extracted iam policy into its own cfn resource for better customizability. Please feel free to ask for me to resolve the conflict if you had difficulty doing so.

With https://github.com/kubernetes-incubator/kube-aws/pull/730/commits/3096f975034032c25ad5ebf405e3ca1b64a7e5b9, permissive IAM policies are removed. Other changes are:

KillMode=control-group instead of KillMode=process
WorkingDirectory=/ are removed since it is already default.

Once e2e param fixed, please squash and rebase on top of latest master to have one nice well formed commit to be merged.

@andromedarabbit, you can use git rebase -i to squash all the commits into one

All the commits are squashed. I appreciated all the helps I've gotten.

seems that you cherry-picked other commits into your branch, now they show up in this PR. can you please remove them?

@redbaron I should have been more careful.

Thanks for contributing!
,


Proposal: suggest/show default file directory for code

When the quick start asks the user to select a directory that they want to associate to the app, it would be nice if the prompt would show a default or suggested file location, so the user could just hit enter and the default would be used.
e.g.:
$ Please select a directory (~/Resin_projects/myAppName):

Closing as duplicated of https://github.com/resin-io/resin-cli/issues/91.


docs(contributing): change text to format:sort-pixels

Checklist

[x] I ran npm test locally and it passed without errors.
[x] I acknowledge that all my contributions will be made under the project's license.

Description
The contributing guide references a missing run script format:json, which should instead be format:sort-pixels.
Related issues
#1242

The TwilioQuest app  (version 3.1.10 as of this morning) still references
npm run format:json
instead of
format:sort-pixels
Please refer to this screenshot.
I understand that source to TwilioQuest may never be open but it would be very nice/helpful if the walk-through copy could be made available outside of the application, as a reference. The content is very well written and organized but not everyone can easily install the app. For example AppImage support is still experimental and I was not able to run AppImage on Kali Linux so I used a separate Windows machine/install, separate from my local repo which is another issue..... Thanks for putting all of this together, happy Hacktoberfest!

./TwilioQuest.AppImage
[28482:1019/054935.507976:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_TwiliozhGxvg/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap

$ ./TwilioQuest.AppImage
[28889:1019/055402.790344:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_TwiliorD2I5Z/chrome-sandbox is owned by root and has mode 4755.


[AutoPR cost-management/resource-manager] [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-01-01

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5601

(message created by the CI based on PR content)


fix #118615 'scm/resourceXXX/context' extension point descriptions

This PR fixes #118615

@eamodio can this be merged in time for 1.55? I think it's uncontroversial.

Thanks!


[ERROR] KeyError: 'httpMethod'

Trying to integrate Flask with AWS Lambda through SAM. However, I am getting 404 Error when I hit the API.
Using Windows, with Flask, awsgi, aws-cli and aws-sam. Python 3.11.
My app.py:
import awsgi
from flask import (
    Flask,
    jsonify,
)

app = Flask(__name__)

@app.route('/')
def index():
    return {
        "statusCode": 200,
        "body": json.dumps({
            "message": "hello world",
            # "location": ip.text.replace("\n", "")
        }),
    }

def lambda_handler(event, context):
    return awsgi.response(app, event, context)

Steps to reproduce:
sam build
sam deploy --guided
cURL  https://**********.execute-api.us-east-1.amazonaws.com/Prod/bot/
Expected output"
{ "message": "hello world"}
What I get is 404 Error.
If I run sam remote invoke HelloWorldFunction --stack-name sam-flask, I get:
Invoking Lambda Function HelloWorldFunction
START RequestId: e0d920ad-cc19-4292-bf69-a1d148bfc98e Version: $LATEST
[ERROR] KeyError: 'httpMethod'
Traceback (most recent call last):
  File "/var/task/app.py", line 21, in lambda_handler
    return awsgi.response(app, event, context)
  File "/var/task/awsgi/__init__.py", line 172, in response
    output = app(environ(event, context), sr)
  File "/var/task/awsgi/__init__.py", line 121, in environ
    'REQUEST_METHOD': event['httpMethod'],END RequestId: e0d920ad-cc19-4292-bf69-a1d148bfc98e
REPORT RequestId: e0d920ad-cc19-4292-bf69-a1d148bfc98e  Duration: 12.56 ms      Billed Duration: 13 ms  Memory Size: 128 MB     Max Memory Used: 63 MB  Init Duration: 557.31 ms
{"errorMessage": "'httpMethod'", "errorType": "KeyError", "requestId": "e0d920ad-cc19-4292-bf69-a1d148bfc98e", "stackTrace": ["  File \"/var/task/app.py\", line 21, in lambda_handler\n    return awsgi.response(app, event, context)\n", "  File \"/var/task/awsgi/__init__.py\", line 172, in response\n    output = app(environ(event, context), sr)\n", "  File \"/var/task/awsgi/__init__.py\", line 121, in environ\n    'REQUEST_METHOD': event['httpMethod'],\n"]}

I feel it is something simple I am missing.
If I replace lambda_handler with the tutorial code from AWS I get expected output.
This below is that code. So my AWS Lambda Proxy Resource is configured correctly for simple JSON but not for awsgi.
def lambda_handler(event, context):
    return {
        "statusCode": 200,
        "body": json.dumps({
            "message": "hello world",
            # "location": ip.text.replace("\n", "")
        }),
    }

What am I doing wrong? Can anyone help? I have been trying for a week now.

Yo.
There is a mismatch between what is provided for awsgi.response() and what is expected by this lib.
While hitting a default route "/" its generating your error. To overcome this issue add below code just before your awsgi.response()
   if event == {}:         event['httpMethod'] = 'GET'         event['path'] = '/'         event['queryStringParameters'] = {}
Adjust the dummy values as you want ;)

Yo.
There is a mismatch between what is provided by aws for awsgi.response() and what is expected by this lib. While hitting a default route "/" its generating your error. To overcome this issue add below code just before your awsgi.response()
 if event == {}:
        event['httpMethod'] = 'GET'
        event['path'] = '/'
        event['queryStringParameters'] = {}

Adjust the dummy values as you want ;)

Thanks. I tried this and when I run sam remote invoke HelloWorldFunction --stack-name sam-flask, I get this response in prompt:
Invoking Lambda Function HelloWorldFunction
START RequestId: 0d8927a7-101b-46a1-b904-f82d582dda50 Version: $LATEST
END RequestId: 0d8927a7-101b-46a1-b904-f82d582dda50
REPORT RequestId: 0d8927a7-101b-46a1-b904-f82d582dda50  Duration: 17.54 ms      Billed Duration: 18 ms  Memory Size: 128 MB     Max Memory Used: 64 MB
{"statusCode": "200", "headers": {"Content-Type": "application/json", "Content-Length": "59"}, "isBase64Encoded": false, "body": "{\"body\":\"{\\\"message\\\": \\\"hello world\\\"}\",\"statusCode\":200}\n"}

This seems fine. However, when I run the API from the browser I get same 404 error.
I tested in AWS Lambda and in `Execution Results` I got:

Response
{
"errorMessage": "'httpMethod'",
"errorType": "KeyError",
"requestId": "a254165e-7f8f-43de-8f41-ea94e50053ae",
"stackTrace": [
"  File "/var/task/app.py", line 26, in lambda_handler\n    return awsgi.response(app, event, context)\n",
"  File "/var/task/awsgi/init.py", line 172, in response\n    output = app(environ(event, context), sr)\n",
"  File "/var/task/awsgi/init.py", line 121, in environ\n    'REQUEST_METHOD': event['httpMethod'],\n"
]
}
Function Logs
START RequestId: a254165e-7f8f-43de-8f41-ea94e50053ae Version: $LATEST
[ERROR] KeyError: 'httpMethod'
Traceback (most recent call last):
  File "/var/task/app.py", line 26, in lambda_handler
    return awsgi.response(app, event, context)
  File "/var/task/awsgi/init.py", line 172, in response
    output = app(environ(event, context), sr)
  File "/var/task/awsgi/init.py", line 121, in environ
    'REQUEST_METHOD': event['httpMethod'],END RequestId: a254165e-7f8f-43de-8f41-ea94e50053ae
REPORT RequestId: a254165e-7f8f-43de-8f41-ea94e50053ae	Duration: 20.45 ms	Billed Duration: 21 ms	Memory Size: 128 MB	Max Memory Used: 64 MB

I had rebuilt and redeployed. Would you happen to know why this is showing an error when API is hit or tested in Lambda?

Hey, I had the same issue, i think it maybe because the event now used by aws is 2.0
in 2.0 these properties (eg: httpMethod) no longer exist directly under event. Instead they are now nested inside requestContext.http as per document suggested.
I haven't look too deep into how awsgi works, but by looking at the error code, i assume it expect format 1.0 event ?
While this could be something awsgi team may work on. I have an easy workaround for simply GET endpoint like /ping
def handler(event, context):
    event['httpMethod'] = event['requestContext']['http']['method']
    event['path'] = event['requestContext']['http']['path']
    event['queryStringParameters'] = event.get('queryStringParameters', {})
    return awsgi.response(app, event, context)

simply mapping the values before passing it to awsgi.response
hope this helps :)


Inquiry About the Release of the Entire Code for this paper

Dear Robin,
I am particularly interested in the methods and results presented in your work and believe that having access to the complete code would be immensely beneficial for my ongoing projects. I noticed that while some portions of the code are available, the full version has not yet been released.
Could you kindly inform me if and when you plan to make the complete code available to the public? Access to the full code would greatly facilitate my understanding and application of your methods, and I am sure it would be valuable to many others in the research community as well.
Thank you very much for your time and consideration. I look forward to your response.
Best regards,
Xu

:+1:

Hi guys,
I'm sorry for the delay. I should release the full code with checkpoints either this week or early next week.
I was working towards a better implementation able to run all baseline which is not yet ready.
I'll just upload the original code able to exactly reproduce results as a v0.1 and will later release the v1.0


Hey!

First. Sorry for opening a issue, i tried to get in touch with you in other ways but i failed.
Hey man I loved you project and I took a look at the files. If you have some time, I'd like to ask you: how did you manage to integrate with pywal? I've been staring at the code for several minutes and yet I can't figure it out.
Sry for my english. Thx

Hey...
No problem, but what do you mean? Are you asking about how to set up the theme  or how do I read pywal colors?
Glad you like it btw


Optimize cache structure

Question?
When I read the source code of mybatis recently,Discover the occurrence attribute of mapper ->cache And type,
Cache is used . However, evaluation is an elimination strategy. A cache is required in the construction method,
such as
public FifoCache(Cache delegate)

My idea is to add a layer of baseCache to the middle of the cache.
eviction:
Add a method to verify the existence of the cache and a method to set the cache when creating the cache of the evaluation Or use the construction method
Then it is divided into real cache and occurrence cache.
I don't know whether this direction is feasible. If so, I would be happy to submit pull requests

MyBatis version
3.x.x

Hello @poo0054 ,
I couldn't follow your explanation.
What are the "real cache" and "occurrence cache"?
And how does dividing those caches help MyBatis users?
Please show us some example code before and after the change so that we can understand the benefit of your proposal.

For example, the data actually cached in FifoCache is the attribute delegate, and the data is actually cached in PerpetualCache. At the beginning, I could not accurately distinguish between the two. The correct writing should be, but I wrote.
My idea is to add abstract classes between the occurrence type and the type type to distinguish the differences between them
Error parsing Mapper XML. The XML location is 'resources/mapper/TableAttributeDao.xml'. Cause: org.apache.ibatis.cache.CacheException: Invalid base cache implementation (class org.apache.ibatis.cache.decorators.FifoCache).  Base cache implementations must have a constructor that takes a String id as a parameter.  Cause: java.lang.NoSuchMethodException: org.apache.ibatis.cache.decorators.FifoCache.(java.lang.String)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:86)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:380)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:117)
... 31 more
Caused by: org.apache.ibatis.cache.CacheException: Invalid base cache implementation (class org.apache.ibatis.cache.decorators.FifoCache).  Base cache implementations must have a constructor that takes a String id as a parameter.  Cause: java.lang.NoSuchMethodException: org.apache.ibatis.cache.decorators.FifoCache.(java.lang.String)
at org.apache.ibatis.mapping.CacheBuilder.getBaseCacheConstructor(CacheBuilder.java:202)
at org.apache.ibatis.mapping.CacheBuilder.newBaseCacheInstance(CacheBuilder.java:190)
at org.apache.ibatis.mapping.CacheBuilder.build(CacheBuilder.java:94)
at org.apache.ibatis.builder.MapperBuilderAssistant.useNewCache(MapperBuilderAssistant.java:119)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.cacheElement(XMLMapperBuilder.java:219)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:112)
... 34 more
Caused by: java.lang.NoSuchMethodException: org.apache.ibatis.cache.decorators.FifoCache.(java.lang.String)


Quota error when creating instances (0.9.3-rc.5)

Hi, just been playing with kube-aws on a clean AWS account.  I've been able to create an instance in my region and availability zone via AWS console, so I know that I don't have some sort of quota limit across my account; when I try to create a cluster using kube-aws, however, I get the following error:
Creating AWS resources. This should take around 5 minutes.
Error: Error creating cluster: Stack creation failed: CREATE_FAILED : The following resource(s) failed to create: [InstanceEtcd0].

Printing the most recent failed stack events:
CREATE_FAILED AWS::CloudFormation::Stack my-stack-2 The following resource(s) failed to create: [InstanceEtcd0].
CREATE_FAILED AWS::EC2::Instance InstanceEtcd0 Your quota allows for 0 more running instance(s). You requested at least 1

I'm using the master credentials from this AWS account, and aside from a test micro instance I've got nothing else going on in the account. The region and AZ for the kube-aws config is the same as the currently-running micro instance, so I assume it's not a quota issue for the region.  Am I doing something wrong?  I followed the tutorial pretty closely...  Thanks!

this looks like an account limit, you need to raise AWS account support request

@redbaron Weird... When I look at the quota limits for the account, there's the standard 20 instances. But I just tried to create an additional instance via the web console, and sure enough I encountered a quota error.  Since there's likely to be a lot of people experimenting with this project using a new AWS account (it sort of generates stuff all over the place), do you have any advice on best practices for this situation?
I've submitted a request for a quota increase, maybe that is a necessary "Step 1"?  It's been a while since I've created a new AWS account -- surprised that the default instance limit is basically 1 now.

@numair I've also been confused by a similar error before in one of two particular conditions - if billing details are not entered and if the account is not "verified" (means they SMS or automated-call you). In my case the account sign up process did not send me through this verification at all, not sure why! Maybe check this page if you've not done those steps.

@c-knowles This was the reply I got from Amazon support (I have a Developer support contract):
"I understand that you are not able to launch new instances under your account. This is because you just joined AWS today and has been only less than 24 hours. Generally, it takes 24 hours after creation of an account to get the EC2 limit increased to 20. Please try again after some time."
Basically: if you are going to make an account to test kube-aws, you should wait 24 hours to begin playing around.


Add attributes handler for savetobrat() function.

Add export_attributes parameter in order to be able to export attributes to brat annotation file
Also added brat conf file handling

Thanks @Raynaudy !

Thanks @Raynaudy !


version 0.1.3 - ui error messages

After updating to version 0.1.3 I get the below messages by trying to execute ui
pi@homebridge:/var/lib/homebridge $ ui
/usr/local/bin/ui: line 29: json: command not found
ui: /var/lib/homebridge/config.json: cannot find deCONZ platform

json comes with homebridge-lib, but it's only installed to /usr/local/bin when you install homebridge-lib separately.  You can manually install homebridge-lib:
sudo npm -g i homebridge-lib

However, unless you whitelist plugins in config.json, Homebridge will complain it's not a plugin.
Alternatively, create a symlink to the installation under Homebridge deCONZ:
sudo chmod 755 /usr/local/lib/node_modules/homebridge-deconz/lib/homebridge-lib/cli/json.js
sudo ln -s /usr/local/lib/node_modules/homebridge-deconz/lib/homebridge-lib/cli/json.js /usr/local/bin/json

Note to self: instead of bash script, create proper JavaScript command, using JsonFormatter instead of json command.


regression : ngOptions no longer evaluate expression in 1.2.0-rc3

Hi,
ngOptions seems to no longer evaluates attribute value in lastest angular version
aka
<select ng-model="model" ng-options="{{optExp}}">
    <option value=""></option>
</select>

with this in the controller
$scope.optExp = "c.id as c.label for c in options";

results in
Error: [ngOptions:iexp] Expected expression in form of 'select (as label)? for (key,)?value in collection' but got '{{optExp}}'. Element: <select [...]>

I can reproduce this is in 1.4.7 version, same approach, trying to create a dynamic ng-options inside a directive, I do:
scope.ngOptionsString = "item.$id as item.name for item in options";
And in the HTML I call the variable between bracers , I get:
Expected expression in form of 'select (as label)? for (key,)?value in collection' but got ''. Element: {1}

@nahueld, I can reproduce the issue on the latest 1.4.x version (1.4.10).
If you still have issues, you could open a new issues with reproduction steps (preferrably a live reproduction using CodePen, Plnkr etc).
That said, I don't think `ngOptions

@gkalpak it's actually weird that this is not the intended... in case of directives it has to be a way to dynamically generate the filtering, considering that 'ngOptions' is the most effective way to generate the options in a select then it should support it.
For all having this issue I have found a workaround by using ngRepeat where:
<option ng-repeat="item in options" value="{{ getModelValue(item) }}">{{ displayValue(item) }}</option>

@nahueld, I updated my last comment: I meant to say that I can't reproduce it on 1.4.10.
As documented, using interpolation to build expressions in not supported and not considered a good practice (it might work, but there is no guarantee that it won't unexpectedly break at some point).
That said, I still don't get your usecase and why ngOptions doesn't support dynamic filtering (as you mentioned). Please, open a new issue with all the necessary info.


add note to docs to explain pre-hook and post-hook examples

Description & motivation
Yesterday I received a ticket from a user that was trying to figure out how to configure pre-hooks and post-hooks to run multiple SQL statements. We worked at this for a while, as we were both confused by the examples provided in the docs. We were under the impression that the first SQL statement needed to be without brackets, and the second needed to come after the | symbol and be included in brackets. @jeremyyeo explained to me that the difference is actually between whether you're wanting to configure a single SQL statement, or multiple SQL statements. I want to add this note above the examples so that's clear to users that may not understand this.
Pre-release docs
Is this change related to an unreleased version of dbt?

[ ] Yes: please

update the base branch to next
add Changelog components: <Changelog>[New/Changed] in v0.x.0</Changelog>
add links to the "New and changed documentation" section of the latest Migration Guide

[X] No: please ensure the base branch is current
[ ] Unsure: we'll let you know!

hey @sophiad96 @jeremyyeo thanks for opening the PR and for your patience! ! I'll go ahead and merge the changes and will create a separate PR to tackle the clarification of <sql_statement --> SQL_STATEMENT

hey @runleonarun this is my bad! i created a snippet, updated the sql-statement to the correct format, and shipping.
however, i wondered why snippet, we could just sit this above the <tabs>:


pcapc: 2015-03.06 -> 1.0.0

Motivation for this change
Update
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

How to use this package? I tried the example from the homepage:
$ tc filter add dev enp0s25 parent 1: bpf run bytecode "$(pcapc dst port 22)" flowid 1:10
RTNETLINK answers: Invalid argument
We have an error talking to the kernel

@Mic92 not sure. Just updating packages in repo that is old. I think I tried tc ip and it worked, atleast didn't segfault or anything

@ndowens can you check, if it did?

When I can. At work 😀
Sent from my iphone
On Mar 2, 2017, 6:00 AM -0600, Jörg Thalheim<EMAIL_ADDRESS>wrote:

@ndowens (https://github.com/ndowens) can you check, if it did?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (https://github.com/NixOS/nixpkgs/pull/23360#issuecomment-283635265), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAHL7xQ4nskIRYdK-2DYARtdAbHHuS71ks5rhq9ugaJpZM4MQX27).

@Mic92 :
➜  z2saf8i2snnhw1jhgvccr8420267im7q-pcapc-1.0.0 ./bin/pcapc ip and dst host <IP_ADDRESS> and dst port 53 and udp
results in:
15,40 0 0 12,21 0 12 2048,32 0 0 30,21 0 10 134744072,48 0 0 23,21 8 0 132,21 7 0 6,21 0 6 17,40 0 0 20,69 4 0 8191,177 0 0 14,72 0 0 16,21 0 1 53,6 0 0<PHONE_NUMBER>,6 0 0 0,%

@Mic92 do you think it is ok to merge when older version does the same thing?

@nckx Let me be a mention-bot for a while…
I think that if there is a bug which is not a regression, this shouldn't prevent the update.

@7c6f434c: I think that if there is a bug which is not a regression, this shouldn't prevent the update.

Absolutely. This package used to work for me™, but don't ask me why or when (it was long ago). I think it's time for a patch to unmaintain such packages.
@ndowens: why the change to the home page? (It's fine; I'm just a curious fellow.)


PHP8.0 - $ch to string

In PHP 8.0 curl_init() return CurlHandle instance now; previously, a resource was returned so you can't (string) $ch.
I don't know is it correct (because spl_object_id can be reused), but I changed It to:
$ch_hash = is_object($ch) ? (string)spl_object_id($ch) : (string) $ch;

The docs say spl_object_id() is unique for life of the object so that should work. Will update the code soon. Thanks
On Dec 4, 2020, 5:16 PM -0500, Przemysław Szustak<EMAIL_ADDRESS>wrote:

In PHP 8.0 curl_init() return CurlHandle instance now; previously, a resource was returned so you can't (string) $ch.
I don't know is it correct (because spl_object_id can be reused), but I changed It to:
$ch_hash = is_object($ch) ? (string)spl_object_id($ch) : (string) $ch;
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

dears, there are any update on this ? or how I can solve the problem ? thanks <3

IN rollingcurlx.class.php
Change Line 197 to: $ch_hash =  spl_object_id($ch);
Change Line 204 to: $ch_hash = spl_object_id($ch);


Support detecting bash.bat shells correctly

This comes from https://github.com/microsoft/vscode-python/issues/9795
The Python extension uses the VS Code API to detect shells, and if it fails, it tries to detect it itself. If it fails, it falls back to the default terminal in that OS.
The issue in question is that we don't detect git bash. While we could implement the detection ourselves, it seems that having this upstream would benefit more than just the Python devs.

Git bash should be detected here?
https://github.com/microsoft/vscode/blob/3c1e64220f137f9f4710841022b9d58e654e9f01/src/vs/workbench/contrib/terminal/node/terminal.ts#L115-L121
Could you elaborate where you're expecting it or what's not working?


Upgrade OpenEBS charts in Rancher Catalog

OpenEBS is part of the Rancher Catalog where a curated collection of Rancher 2.0 enhanced Helm charts are stored.
Different from the Helm/Stable charts, a Rancher chart has two additional files an app-readme.md file that provides a high-level overview display in the Rancher 2.0 UI and a questions.yml file defining questions to prompt the user with.
Current chart here is 0.8. Chart needs to be updated to the latest (currently 0.8.1).

Rancher openebs chart is located at : https://github.com/rancher/charts/tree/master/proposed/openebs/latest

PR to update OpenEBS charts in Rancher catalog https://github.com/rancher/charts/pull/133

Merged (0.8.1)


Split network and local parts of Fetch()

So the current version of fetch is very much concerned with replicating ordinary "git fetch" with refspecs, etc. However, this doesn't support other useful cases like unadvertised refs or retrieving to FETCH_HEAD.
I think it would be helpful to split fetch into two parts -- one that is exclusively about accessing a remote (e.g. git fetch $REMOTE $REF and git ls-remote $REMOTE) and the other that is about updating the local repo using the first part.
I'm tinkering with some solutions, so maybe I'll have something in a few weeks.

If you want to fetch all refs, you can use the following refspec refs/*:refs/*. This will fetch GitHub PullRequests (refs/pull/<pr#>) in GitHub for example.
If you want to fetch master to FETCH_HEAD, you can use the following refspec refs/heads/master:FETCH_HEAD. Although we could replicate git behaviour with FETCH_HEAD here.
A ls-remote equivalent would definitely be useful. It is currently possible to do it using the plumbing/transport low-level API at the moment, but exposing higher-level API woulld be nice.

That's helpful. Although I'd prefer an API that allowed me to retrieve a ref without recording it, or allowed me to select a set of refs to retrieve using a function.
I also have use for unadvertised refs, which I believe cannot be done with the current API.

@taralx What's an unadvertised reference? Those not in refs/heads and refs/tags? If that's the case you can retrieve all of them with what I said in point one.
If you want to replicate ls-remote, you can use the following:
package main

import (
	"fmt"
	"os"

	"gopkg.in/src-d/go-git.v4/plumbing"
	"gopkg.in/src-d/go-git.v4/plumbing/transport"
	"gopkg.in/src-d/go-git.v4/plumbing/transport/client"
)

func main() {
	repoUrl := os.Args[1]
	ep, err := transport.NewEndpoint(repoUrl)
	checkError(err)

	client := client.Protocols[ep.Protocol()]
	session, err := client.NewUploadPackSession(ep, nil)
	checkError(err)

	ar, err := session.AdvertisedReferences()
	checkError(err)

	refs, err := ar.AllReferences()
	checkError(err)

	iter, err := refs.IterReferences()
	checkError(err)

	err = iter.ForEach(func(ref *plumbing.Reference) error {
		fmt.Println(ref.String())
		return nil
	})
	checkError(err)

	err = session.Close()
	checkError(err)
}

func checkError(err error) {
	if err != nil {
		panic(err)
	}
}

Example run:
$ go run test.go https://github.com/src-d/go-git.git
17eeef0f3dbd24d26a36810b8dc39222445fbf0a refs/pull/148/head
65416cf6c0e8264cc7938fe0611998d52780e089 refs/pull/388/head
9e8f1cfde0e4fd6e4893ca53dea3145fe0182800 refs/pull/361/head
643f3fc0da3aea1047617d68fe232c6b8ec4756e refs/pull/146/head
e03a5503cc012b4f737a8215c2da1a5c39b4b9a8 refs/pull/383/merge
[...]

It's definitely not the best thing, but it can probably solve your problem at the moment.

Unadvertised references are usually an explicit SHA1. Usually used with a depth limit to avoid retrieving the entire repository, so refs/* won't satisfy.
Thanks for the example code, it looks a lot like what I've been writing.

@taralx Could you add an example of the equivalent functionality in git itself? It would be helpful if it can be expressed as a sequence of git commands. Thanks!

git clone --depth=1 -b nougat-dev https://android.googlesource.com/platform/build
cd build
git fetch --depth=1 origin 3ce06ee405f5b37841f8d9f841e5f25621c84a4f
git cat-file -p 3ce06ee405f5b37841f8d9f841e5f25621c84a4f

Worth noting that that is not an advertised ref:
git ls-remote origin | grep 3ce06ee

This kind operations can be done using plumbing, I don't thing worth to having in the main package. But I am open suggestions about this posible interface.


Show dataset size

Cool stuff, thanks! Any reason we can't add this for ModelJobs, too? Those snapshots can really rack up in disk space.
And it would probably be good to at least write a basic sanity test that checks the size of an empty directory or something.

Sure, I'll do that!

Sorry I hadn't noticed there was already a function for this. I'll remove the one I added.

Awesome thanks! Go ahead and merge if this is ready - it looks good to me.


docs: Correct spelling of nutshell in abort documentation

Tiny, low-priority PR/suggestion fixing a small typo, 'nuthsell' should be 'nutshell'!

:+1:

Wow that was fast - thanks for looking @brillout! :)


RHBPMS-4595 -  multibyte character commit message in jBPM Designer is…

… garbled

Tested and looks good.
+1


patch: Remove packageManager property with wrangler-action 3.3.0

After discussing https://github.com/cloudflare/wrangler-action/issues/180, it turns out packageManager property is supposed to be optional.
With the new wrangler-action, we no longer need this property.
Signed-off-by: Vipul Gupta (@vipulgupta2048) <EMAIL_ADDRESS>

@balena-ci I self-certify!


Fix division by zero at wrap functions in mono

Simular fix as #26171 but for mono/C#
I've also added IsEqualApprox as a helper function to compare two floating point numbers.

Thanks!


Add Pencil 3.0.4

https://pencil.evolus.vn/
(https://github.com/evolus/pencil)
Pencil is built for the purpose of providing a free and open-source GUI prototyping tool that people can easily install and use to create mockups in popular desktop platforms.
Successfully tested locally with both 64-bit and 32-bit.
Might need a quick check with the hashing for the autoupdate part.
Otherwise, the pattern worked properly on a RegExp sandbox (https://regex101.com/).

    "checkver": "Pencil-Setup-([\\d.]+)\\.exe",
    "autoupdate": {
        "url": "https://pencil.evolus.vn/dl/V$version/Pencil-Setup-$version.exe#/dl.7z",
        "hash": {
            "url": "$baseurl/CHECKSUM"
        }
    }

Please put post_install before checkver.

It's dual licensed. I'm not sure what identifier should be used.
    "license": {
        "identifier": "GPL-2.0-only|Freeware",
        "url": "https://pencil.evolus.vn/Licensing.html"
    },

Updates with the fixed manifest.
Please note that it's an Electron application and it needs the content of of the resources directory, specially the .asar files.


Gitea Integration

Started to work on Gitea(issue #710 ) support for NuKeeper based on https://try.gitea.io/api/swagger# and https://docs.gitea.io/en-us/
What's already there:
Implementation of settings reader + some tiny unit tests
Basic implementation of gitea rest client and token authentication including:

GetCurrentUser
GetRepository
GetOrganizations (only for admins)
GetRepositoryBranch
ForkRepository
OpenPullRequest

At the end a lot of code in the restclient is similar to GitHub/Gitlab. Maybe a common base class would remove this redundant code.
TODO:

~GiteaPlattform.GetRepositoriesForOrganisation (and REST)~
GiteaPlattform.Search (and REST)
~Enhance GiteaRepositoryDiscovery.GetRepositories for ServerScope.Global and ServerScope.Organisation~
~GiteaForkFinder implement other functionality than ForkMode.SingleRepositoryOnly~

Unit tests

Use real repository for unit tests (??)

Here a some example screens, after forking nukeeper to a local hosted gitea and running nukeeper against it :)

This is great!
Agreed that soon we should focus on common code across collaboration platforms (perhaps a CollaborationPlatform.Abstractions project?  ) And on getting them better tested.

Could you also add some docs on how to use it? Something like this https://github.com/NuKeeperDotNet/NuKeeper/pull/720/files#diff-32cb44efbeb7ab3bf9cf2edef28be295R69 Its just to show other people how it works. There is a gitea.md file available here: https://github.com/NuKeeperDotNet/NuKeeper/blob/master/site/content/platform/gitea.md. If you pull master you can edit that file and add it to this PR.

The bitbucket explanation is probably a better startpoint: https://github.com/NuKeeperDotNet/NuKeeper/pull/724/files#diff-dce3466c4d63c7bf1684bbfa5a2e235f

@MarcBruins Thanks for the startpoint!
Following points are also finishe:

Enhance GiteaRepositoryDiscovery.GetRepositories for ServerScope.Global and ServerScope.Organisation
GiteaForkFinder implement other functionality than ForkMode.SingleRepositoryOnly

so automatically forking from an existing repository also works from now on

@MarcBruins
I recognized ForkMode has no default value in FileSettings.
Is this intended ?

The default is (or should be) PreferFork

when there is no nukeeper.settings.json-config file (which i has to create manuelly, by the way) or a nukeeper.settings.json-config without ForkMode defined, ForkMode might be null since its explicitly declared as a nullable type in FileSettings
public ForkMode? ForkMode { get; set; }
In CollaborationFactory.ValidateSettings() ForkMode will be checked
 if (!Settings.ForkMode.HasValue)             {                 return ValidationResult.Failure("Fork Mode was not set");             }
In result, the operation will be cancelled.
However when a nukeeper.settings.json is available with ForkMode defined everything works as expected

when there is no nukeeper.settings.json-config file (which i has to create manuelly, by the way) or a nukeeper.settings.json-config without ForkMode defined, ForkMode might be null since its explicitly declared as a nullable type in FileSettings
public ForkMode? ForkMode { get; set; }
In CollaborationFactory.ValidateSettings() ForkMode will be checked
 if (!Settings.ForkMode.HasValue) { return ValidationResult.Failure("Fork Mode was not set"); }
In result, the operation will be cancelled.
However when a nukeeper.settings.json is available with ForkMode defined everything works as expected

Can you make preferFork the default?

Can you make preferFork the default?

I think I'll create an additioanl issue for this


Add cross browser compatibility

Functions that require vender specific prefixes need to be tested, and support added if nessary

Done


Fix GlobalAddr in ExistentialSpecializer

Adding a check for InitExistential not being null in ExistentialSpecializer code.

@slavapestov GlobalAddr check missed a check for not null. I added it. Please review and accept the PR. Thanks.

Can you add a test case please?

Merged with https://github.com/apple/swift/pull/20617


[stable/prometheus-pushgateway] upgrade Pushgateway to v1.0.0

Signed-off-by: David J. M. Karlsen<EMAIL_ADDRESS>What this PR does / why we need it:
Upgrades to latest release
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[X] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md
[X] Title of the PR starts with chart name (e.g. [stable/chart])

This change is

/assign @cpanato

I could just /lgtm https://github.com/helm/charts/pull/18091 instead


Enhancements related to how we handle images

https://www.loom.com/share/86731833b7a54951a1fad6214034f3e0
Can we take this up on a higher priority given that it has to do with neetoQuiz?

[ ] Add ability to resize uploaded images.
[ ] Add ability to delete images using a delete icon.
[ ] Fix issue with image captions.
[ ] neetoQuiz: Use @bigbinary/neeto-editor package instead of directly installing from git.

@AbhayVAshokan _a

@AbhayVAshokan
Let's do it like notion, for images, we can have a custom floating menu that also has an option to delete.