Making seeders

if the migration would have seeders to populate the tables with auto generated data for testing it would be wonderful , like the seeder in Laravel
https://laravel.com/docs/5.3/seeding

I see migrations and seeding as orthogonal issues: you run the migrations, then you do the seeding. In its simplest form, seeding is just running some SQL, which you can easily do by running a method after you finish your migrations. In more complex forms, it involves automatically generating sensible-looking records, which is a rabbit hole I don't want to get down.
Where you have a migration framework which is integrated into your ORM, it can make sense to integrate a seeding framework, as it can make use of the SQL-generation capabilities of the ORM. However, that's not applicable to Simple.Migrations.
Overall, I'm afraid I don't think that it makes much sense to bolt a seeding framework onto Simple.Migrations - there's nothing to be gained, and it goes against the "Simple" bit.


[manila-csi-plugin] Update csi-snapshotter sidecar to v2

manila-csi-plugin currently uses csi-snapshotter v1.2.2. Its support ends with Kubernetes v1.20.0. We'll need to update csi-snapshotter to v2 before CPO's v1.20.0 release.
/cc @tombarron @gouthampacha @Fedosin

/kind feature

#974 might be good thing to refer to

@jichenjc Yes, thanks!


Mapper types don't apply everywhere they should for typescript-resolvers

Describe the bug
Hey all, I opened a task for this a month ago, but I think the test case isn't quite right.  Sorry for disappearing there, I went offline for thanksgiving and this fell off my radar.    I can fix, but I want to confirm that this is actually a problem and I'm not missing something.
Test case addition for #886
https://github.com/dotansimha/graphql-code-generator/commit/b1bf6983522211a0432392ff3d8cea6b014e98dc?diff=unified
So let's say I'm writing a resolver using apollo-server for the following schema's mutation:
https://github.com/dotansimha/graphql-code-generator/blob/master/packages/plugins/typescript-resolvers/tests/typescript-resolvers.spec.ts#L779-L789
// Assume I have mapper from Post to PostEntity
const resolvers: { RootMutation: RootMutationResolvers.Resolvers } = {
  RootMutation: {
    async upvotePost(id) {
      // ... perform mutation code
      // reload entity
      const post = await PostEntity.findOne({ id });

     // This is a type error using the generated code
     // as UpvotePostPayload is presumably: (see 2 below)
      return { post };
    }
  }
}

UpvotePostPayload is presumably here:
export interface UpvotePostPayload {
  post?: Maybe<Post>;
}

... but then I have to return Post in my upvotePost function, not PostEntity.  Apollo handles nested resolvers fine.
What I expect this to essentially be, for RootMutationResolver is, notice the changes:
- export interface UpvotePostPayload {
+ export interface UpvotePostPayload<T = Post> {
-  post?: Maybe<Post>;
+  post?: Maybe<T>;
}

export namespace RootMutationResolvers {
  export interface Resolvers<Context = {}, TypeParent = {}> {
-     upvotePost?: UpvotePostResolver<Maybe<UpvotePostPayload>, TypeParent, Context>;
+    upvotePost?: UpvotePostResolver<Maybe<UpvotePostPayload<PostEntity>>, TypeParent, Context>;
  }

-  export type UpvotePostResolver<R = Maybe<UpvotePostPayload>, Parent = {}, Context = {}> = Resolver<R, Parent, Context, UpvotePostArgs>;
+ export type UpvotePostResolver<R = Maybe<UpvotePostPayload<PostEntity>>, Parent = {}, Context = {}> = Resolver<R, Parent, Context, UpvotePostArgs>;
    export interface UpvotePostArgs {
      id: string;
    }
  }

... as things stand now, I would have to map PostEntity to Post in this mutation, with all of Posts required fields filled in.

We want to resolve an object that fits a custom interface ResolvedUser when User type is used then we need to duplicate and update all the types making them separated from typescript-server.
type Feed {
  articles: [Article]
}

type Article {
  author: User
  title: String
  text: String
}

type User {
  id: ID
}

type Query {
  feed: Feed
}

The Feed interface says we will return an array of Article and those objects has User and that object should be replaced with ResolvedUser. That means we need to duplicate and point Feed to a copy of Article that points to ResolvedUser.
@dotansimha

It's going to be fixed in the upcoming release, right @dotansimha ?

Fix available in 1.0.0 👍

Hmm @dotansimha: mapper types still don't seem to apply in the case I listed above with 1.0.0.
(Really really appreciate all of your hard work with this library by the way!)

@SirensOfTitan Can you please open a new issue for that? I think it should be easier to fix now in 1.0


In case of a compilation error, show the actual solc error message

compiling app/contracts/simple_storage.sol
Warning: solc error: exit status 1 Use --force to continue.

Aborted due to warnings.

Instead embark should show the full solc message:
$ solc app/contracts/simple_storage.sol
app/contracts/simple_storage.sol:12:17: Parser error: Expected primary expression.
    storedData =* 2;
                ^

related https://github.com/ethereum/go-ethereum/issues/1598

I fixed this for you ;) https://github.com/ethereum/go-ethereum/pull/1717, in exchange fix https://github.com/iurimatias/embark-framework/issues/66 for me ;)

Done in 0.9.0


chore: Add job for adding sync-with-dita label

Description
Changes proposed in this pull request (what was done and why):

Add workflow to autolabel PRs which needs sync with DITA since user docs are changed

Changes refer to particular issues, PRs or documents:

Traceability

[ ] The PR is linked to a GitHub issue.
[ ] The follow-up issues (if any) are linked in the Related Issues section.
[ ] If the change is user-facing, the documentation has been adjusted.
[ ] If a CRD is changed, the corresponding Busola ConfigMap has been adjusted.
[ ] The feature is unit-tested.
[ ] The feature is e2e-tested.

Oh but this idea is promising, I like it :)


autoformat all code using ocamlformat 0.9

This uses the conventional profile to minimise surprise, and brings the style inline to the autoformatting conventions being adopted by the OCaml community.
Since datakit is essentially stable now, I also took the liberty of bumping the release version of this to 1.0.0 so that it can be parked.

LGTM

I'll hold off on the 1.0 release until we have the latest webmachine (post irmin 2.0) from #644


QEMU Setup Issue

Something seems to be wrong with the QEMU setup. When I run make setup in a fresh libtock-rs installation, it fails the very first step (setup-qemu) the first time I run it. The second time I run it though, it says everything is fine and continues on to the other steps. Afterwards though, running make qemu-example also fails.
I suspect that I'm missing some dependency for QEMU, but the important parts here are:

Documenting what that dependency is
Figuring out why it behaves differently when run twice in a row
Determining if make setup should block on setup-qemu succeeding

Since the error is about pixman, I tried sudo apt install libpixman-1.0, but that didn't change the situation.
Here's the log:
First time
[brghena@ubuntu libtock-rs] [master] $ make setup
CI=true make -C tock ci-setup-qemu
make[1]: Entering directory '/home/brghena/Dropbox/repos/tock/libtock-rs/tock'
cksum: tools/qemu-runner/opentitan-boot-rom.elf: No such file or directory

********************************************************************************
* CI-Setup: Build QEMU                                                         *
********************************************************************************

Building QEMU, this could take a few minutes

Note: switching to '0ebf76aae58324b8f7bf6af798696687f5f4c2a9'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 0ebf76aae5 Merge tag 'nvme-next-pull-request' of git://git.infradead.org/qemu-nvme into staging
Using './build' as the directory for build output
Submodule 'dtc' (https://gitlab.com/qemu-project/dtc.git) registered for path 'dtc'
Submodule 'meson' (https://gitlab.com/qemu-project/meson.git) registered for path 'meson'
Submodule 'slirp' (https://gitlab.com/qemu-project/libslirp.git) registered for path 'slirp'
Submodule 'tests/fp/berkeley-softfloat-3' (https://gitlab.com/qemu-project/berkeley-softfloat-3.git) registered for path 'tests/fp/berkeley-softfloat-3'
Submodule 'tests/fp/berkeley-testfloat-3' (https://gitlab.com/qemu-project/berkeley-testfloat-3.git) registered for path 'tests/fp/berkeley-testfloat-3'
Submodule 'ui/keycodemapdb' (https://gitlab.com/qemu-project/keycodemapdb.git) registered for path 'ui/keycodemapdb'
Cloning into '/home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu/dtc'...
Cloning into '/home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu/meson'...
Cloning into '/home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu/slirp'...
Cloning into '/home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu/tests/fp/berkeley-softfloat-3'...
Cloning into '/home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu/tests/fp/berkeley-testfloat-3'...
Cloning into '/home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu/ui/keycodemapdb'...
The Meson build system
Version: 0.59.3
Source dir: /home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu
Build dir: /home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu/build
Build type: native build
Project name: qemu
Project version: 7.0.50
C compiler for the host machine: cc -m64 -mcx16 (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
C linker for the host machine: cc -m64 -mcx16 ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program scripts/symlink-install-tree.py found: YES (/usr/bin/python3 /home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu/scripts/symlink-install-tree.py)
Program sh found: YES (/usr/bin/sh)
Program python3 found: YES (/usr/bin/python3)
WARNING: Broken python installation detected. Python files installed by Meson might not be found by python interpreter.
Program iasl found: NO
C++ compiler for the host machine: c++ -m64 -mcx16 (gcc 9.4.0 "c++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
C++ linker for the host machine: c++ -m64 -mcx16 ld.bfd 2.34
Program cgcc found: NO
Library m found: YES
Run-time dependency threads found: YES
Library util found: YES
Run-time dependency appleframeworks found: NO (tried framework)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency gio-2.0 found: YES 2.64.6
Program /usr/bin/gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Run-time dependency gio-unix-2.0 found: YES 2.64.6
Run-time dependency pixman-1 found: NO (tried pkgconfig)

../meson.build:522:2: ERROR: Dependency "pixman-1" not found, tried pkgconfig

A full log can be found at /home/brghena/Dropbox/repos/tock/libtock-rs/tock/tools/qemu/build/meson-logs/meson-log.txt

ERROR: meson setup failed

make[1]: *** [Makefile:547: ci-setup-qemu] Error 1
make[1]: Leaving directory '/home/brghena/Dropbox/repos/tock/libtock-rs/tock'
make: *** [Makefile:53: setup-qemu] Error 2

Second Time
[brghena@ubuntu libtock-rs] [master] $ make setup
CI=true make -C tock ci-setup-qemu
make[1]: Entering directory '/home/brghena/Dropbox/repos/tock/libtock-rs/tock'
bash: line 3: ./config.status: No such file or directory
make[1]: *** No rule to make target 'config-host.mak', needed by 'meson.stamp'.  Stop.
cksum: tools/qemu-runner/opentitan-boot-rom.elf: No such file or directory

********************************************************************************
* CI-Setup: Get OpenTitan boot ROM image                                       *
********************************************************************************

# Download OpenTitan image. The latest image URL is available at
# https://storage.googleapis.com/artifacts.opentitan.org/latest.txt
# We download a fixed version so that new OpenTitan images do not
# unexpectedly change OpenTitan's behavior in our CI.
Downloading OpenTitan boot ROM
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.2M  100 10.2M    0     0  19.0M      0 --:--:-- --:--:-- --:--:-- 19.0M
make[1]: Leaving directory '/home/brghena/Dropbox/repos/tock/libtock-rs/tock'
rustup install stable
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.71.1 (eb26296b5 2023-08-03)

info: checking for self-update
cargo +stable install elf2tab
    Updating crates.io index
     Ignored package `elf2tab v0.11.0` is already installed, use --force to override
cargo miri setup
A libstd for Miri is now available in `/home/brghena/.cache/miri/HOST`.
rustup target add --toolchain stable thumbv7em-none-eabi
info: component 'rust-std' for target 'thumbv7em-none-eabi' is up to date

Running qemu-example
[brghena@ubuntu libtock-rs] [master] $ make qemu-example EXAMPLE=console
make -C tock/boards/hifive1 \
	/home/brghena/Dropbox/repos/tock/libtock-rs/tock/target/riscv32imac-unknown-none-elf/release/hifive1.elf
make[1]: Entering directory '/home/brghena/Dropbox/repos/tock/libtock-rs/tock/boards/hifive1'
    Finished release [optimized + debuginfo] target(s) in 0.15s
   text	   data	    bss	    dec	    hex	filename
  66656	     12	   6128	  72796	  11c5c	/home/brghena/Dropbox/repos/tock/libtock-rs/tock/target/riscv32imac-unknown-none-elf/release/hifive1
make[1]: Leaving directory '/home/brghena/Dropbox/repos/tock/libtock-rs/tock/boards/hifive1'
LIBTOCK_PLATFORM="hifive1" cargo run --example "console" -p libtock \
	--release --target=riscv32imac-unknown-none-elf -- --deploy qemu
    Finished release [optimized + debuginfo] target(s) in 0.06s
     Running `cargo run -p runner --release target/riscv32imac-unknown-none-elf/release/examples/console --deploy qemu`
    Finished release [optimized + debuginfo] target(s) in 0.06s
     Running `target/release/runner target/riscv32imac-unknown-none-elf/release/examples/console --deploy qemu`
Overriding command-line specified protected_region_size with tbf_protected_region_size symbol = 96 bytes!
thread 'main' panicked at 'failed to spawn QEMU: Os { code: 2, kind: NotFound, message: "No such file or directory" }', runner/src/qemu.rs:35:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)
make: *** [Makefile:77: qemu-example] Error 134

sudo apt install libpixman-1.0

Debian split its dev packages, so you probably need libpixman-1.0-dev (or something like that)

Figuring out why it behaves differently when run twice in a row

The script for some reason is detecting that you already have QEMU built (even though it failed) so it's continuing on. I guess the check there needs to be updated to catch this case and report an error

I confirm that worked. So libpixman-1.0-dev is a requirement of the QEMU stuff, and therefore a requirement of libtock-rs as currently designed.

Why not split setup qemu into its own target? Right now if you don't want to set all of this up you can't use make setup as the instructions indicate.


[BUG] Wrong Cast in macro type_string for Databricks Hash Function

Describe the bug
In the type_string.sql line 22 to 31 you do a cast to a varchar based on the hashtype. This is not appropriate for databricks as databricks does not know the type varchar. The comparable type in databricks would be string and for it no length is defined.
This leads then so an output in the hash algorithm like this:
UPPER(SHA2(NULLIF(CONCAT(
IFNULL(NULLIF(UPPER(TRIM(CAST(NaturalKey AS VARCHAR(32)))), ''), '^^')
), '^^'), 256)) AS NaturalKey_HK,
This is bad, since the cast to 32 bit could potentially truncate the to be hashed column and lead to unwanted hashing collisions. Luckily, databricks does not truncate the input column. Nevertheless, it should be fixed as it has the potential to corrupt all hash keys.
Environment
dbt version: 1.8.3
automate_dv version: tested on 10.2 but most likely also on 11.0
Database/Platform:  Databricks
hash algorithm: SHA
enable_binary_hash: false
Expected behavior
Replace Cast to Varchar with Cast to String
AB#5567

Hi @ambullo, thanks for this report.
I believe we fixed this as part of v0.11.0. v0.11.0 was explicitly an update to resolve hashing and handling of hash types correctly in both Databricks and BigQuery. Please can you upgrade and try it out?
If it's still an issue then we'd be happy to take a look, however 😄

I just checked. this bug report applies also to version v0.11.0

Hello @DVAlexHiggs
The fix for this is straight-forward. The macro databricks__type_string in macros/supporting/data_types/type_string.sql needs to be corrected.
It should be
{%- macro databricks__type_string(is_hash, char_length) -%}
    STRING
{%- endmacro -%}

(similar to the BigQuery case) instead of currently
{%- macro databricks__type_string(is_hash=false, char_length=255) -%}
    {%- if is_hash -%}
        {%- if var('hash', 'MD5') | lower == 'md5' -%}
            VARCHAR(16)
        {%- elif var('hash', 'MD5') | lower == 'sha' -%}
            VARCHAR(32)
        {%- elif var('hash', 'MD5') | lower == 'sha1' -%}
            VARCHAR(20)
        {%- endif -%}
    {%- else -%}
        VARCHAR({{ char_length }})
    {%- endif -%}
{%- endmacro -%}

See also link above.
It also looks like the arguments for all these macros could be removed, since they are not really used. I assume these macros serverd a different puropose at some time.
For others with the same issue: Until this is fixed by the AutomateDV team, one can create a macro with the correct definition above in the macro folder of your project. The version from AutomateDV can then be overridden by adding
dispatch:
  - macro_namespace: automate_dv
    search_order: ["<my_project>", "automate_dv"]

in the dbt_project.yml file.
I hope this helps! 🙂


feat(menu-surface): upgrade to mdc web v1

reopening from #751
related #697

Codecov Report

Merging #762 into feat/mdcweb-typescript-update will decrease coverage by 0.05%.
The diff coverage is 80.95%.

@@                        Coverage Diff                        @@
##           feat/mdcweb-typescript-update     #762      +/-   ##
=================================================================
- Coverage                          94.33%   94.27%   -0.06%
=================================================================
  Files                                 73       73
  Lines                               2963     2968       +5
  Branches                             459      457       -2
=================================================================
+ Hits                                2795     2798       +3
  Misses                                60       60
- Partials                             108      110       +2

Impacted Files
Coverage Δ

packages/menu-surface/index.tsx
83.64% <80.95%> (-0.77%)
:arrow_down:

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 ea9dfa0...47f5fc2. Read the comment docs.

closing for #774


defoverridable cast_key/1

Generate overridable functions accepting anything returning type for this field, call it from put.

Closed by 3cd77d1.


using global allocator in a no_std environment

hi i'm using fundsp in a no_std enviroment (daisy seed stm32h7) and have issues getting a graph running, I added a global allocator. I decided to use talc, allocator init shown below.
use talc::*;

static mut ARENA: [u8; 32000] = [0; 32000];

#[global_allocator]
static ALLOCATOR: Talck<spin::Mutex<()>, ClaimOnOom> = Talc::new(unsafe {
    // if we're in a hosted environment, the Rust runtime may allocate before
    // main() is called, so we need to initialize the arena automatically
    ClaimOnOom::new(Span::from_const_array(core::ptr::addr_of!(ARENA)))
})
.lock();

I can get a stacked lowpass_hz working like this (this was taken from my implementation doing this for every audio block in an interrupt)
for frame in audio_buffer {
    let input = An(AudioInput::new(*frame));

    let lp_filter = lowpass_hz(lp_freq, lp_q) | lowpass_hz(lp_freq, lp_q);
    let mut graph = input >> lp_filter;
    graph.set_sample_rate(SAMPLE_RATE as f64);

    *frame = graph.get_stereo().into();
}

but i have issues initializing a simple reverb (as taken from example folder)
let reverb = reverb2_stereo(20.0, 3.0, 1.0, 1.0, highshelf_hz(1000.0, 1.0, db_amp(-1.0)));

any ideas what my issues is? would appreciate the help

Hi! The basic issue is, you need to create the components outside the loop and then inside the loop you should just call get_stereo or whatever to get the samples. The components contain state that needs to be maintained between interrupts. So you need to find somewhere to store the graphs outside of the interrupts.
The reverb2_stereo opcode allocates a lot of memory for its buffers, hundreds of kB, so you need to take that into account.

thx a lot for the hint @SamiPerttu , I will give it a try and come back to this thread

I couldn't create the static variables of a e.g. reverb because of type inferencing, maybe because of this problem below, leaving a screenshot here taken from RustNL meetups 2024 to try this when I get the time to do that
or youtube link https://www.youtube.com/watch?v=H7NtzyP9q8E

What are you looking to accomplish? I can probably help you better if I know what you're aiming for.

thx a lot for the hint @SamiPerttu , I will give it a try and come back to this thread

Put whatever you build in a net then signature becomes Box<dyn AudioUnit>
fn build_bank_simd() -> Box {
Box::new(Net::wrap(Box::new(
noise() >> split() >> res_bank(440.0) >> join() * 0.1,
)))
}
Also use embassy or at least rtic and you don't need static variables.

I will try it with embassy but my chip is currently not fully supported so this will take some time until I can send the solution. Thx a lot for the hint @rhizoome I will get embassy working first and then revisit this thread @SamiPerttu also thx to you

Thanks @rhizoome it is actually supported with embassy via https://github.com/Dicklessgreat/daisy_embassy


AttributeError: The following property is unrecognized for Person: isDeceased

As of a short time ago the people.lookup method gives an error for any contact.

AttributeError: The following property is unrecognized for Person: isDeceased

The field is a boolean.
And thank you for fixing the last issue so quickly!

No problem :). This issue is fixed by the latest commit, soon I will modify the code so that undocumented fields in responses print warnings instead of raising exceptions so new fields won't break the code anymore.


Default to a case insensitive file name stlye on Windows/Mac

The default file systems on both OSes are case insensitive, so the current default of unaltered will overwrite files for entities with a different case. lowerUnderscored or lowerCase should be the default there instead.

Was just coming here to make this enhancement request, thanks :)


Fixed CI (Doc checking)

Describe your changes
Correct Syntax: -e doc CHANGELOG.md
Issue number
Closes #661
Checklist before requesting a review

[x] Performed a self-review of my code
[x] Formatted my code with pkgmt format
[x] Added tests (when necessary).
[x] Added docstring documentation and update the changelog (when needed)

:books: Documentation preview :books:: https://jupysql--668.org.readthedocs.build/en/668/

I have created a seperate branch CI with the changes and then create a new branch doc_modified with only doc and CHANGELOG.md changes here: #667
Also created a PR in pkgmt with changes: https://github.com/ploomber/pkgmt/pull/61

@mehtamohit013 do we need to merge the pkgmt PR in order to test it?
Also, I'm not sure I understand this PR (667) . If we changed only docs and/or changelog - No other test should run, right?
according to this summary, it looks like the CI tests will run even when we changed only docs/changelog.

If it's possible, I think we should test it as follows

Create a new commit - change something in the changelog -> CI tests shouldn't run
Create a new commit - change something in one of the docs -> CI tests shouldn't run
Case 1 and 2 -> CI tests shouldn't run
Create a new commit - change something in the code -> CI test should run
empty commit

I think we can test all these cases in this PR by modifying the relevant files each time.

Hi @yafimvo,
I believe I have tested the same here, in this PR, and it has been successfully merged.
This PR mainly corrects the syntax, which I added earlier: https://github.com/ploomber/jupysql/pull/626

Also created a PR in pkgmt with changes: https://github.com/ploomber/pkgmt/pull/61

Also, I have corrected a docstring here, changed no code or logic


Implement Roslyn Source Generator to generate from file in a project

I am on this but got stuck with NuGet packaging, if somebody can help me to change the packaging so that the output gets also packaged under analyzers/dotnet/cs I will do the rest (I hope). Also only the netstandard2.0 stuff needs to go there?
I have build one Source Generator already at work.
I begun here: https://github.com/mio991/NJsonSchema/tree/roslyn-integration

Ok, I tried some more and got something to work.

@mio991 Could you open a PR with your changes?

You can also you my results from https://github.com/sdedalus/JsonSchemaToSource if needed

Did this solution end up making it into the library?
I'm trying to create a program to analyze our applications looking for certain method calls, and reporting on the types that are used within that call:  I was hoping to document the types with their json schema but I'm having a hard time finding an existing solution that uses a ITypeSymbol as the source opposed to a System.Type

Is it from Source Generators API v2?

This wouldn't necessarily be for source generation, but I believe it would be dealing with the same roslyn types used in the source generators.
Being able to analyze the semanticmodel opposed to concrete types: https://docs.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.csharp.csharpextensions.gettypeinfo?view=roslyn-dotnet-4.2.0


Add the CDC Re-engineering team to CDCgov org

[x] User Membership

AJKimpo
kenmitchell
cfarmer-fearless
dsueltenfuss
pbsanghvi1002
ChrisB-16
anandCD405
rohitpanwar

Would you please add these folks names and orgs to this issue to help with keeping track of who's who? Theoretically, they'll all update their profiles with names and whatnot after they join the org.

I'm not sure if my approval is needed here - Brian has the final say to this. I approve (if needed).
I can also add the context.
This team will be working as part of the GSA Fearless / Center of Excellence (COE) team to support Enterprise Data Exchange (EDE/DEX) on infrastructure needs. Additionally, they'll be building out various tech enablers for aligning our cloud environment needs.


Show Zero Inventory Before Purchase

When viewing a listing, the inventory is available. If the inventory of the listing or selected listing variant is zero, the buy button should be disabled, rather than the user getting an error from the server after they have completed the purchase process.

Looks like this is not, in fact, possible with the data the server has available.


[T4A6][T14-B1] Advay Pal

Ready for review

@advaypal
Some comments added. Please ack & close the PR after reading comments.


MDTopAppBar - Trailing Items positioning and hover behaviour

Description of the problem
All of these problems only occur when using the "small" type of the TopAppBar:

The hover behaviour of the trailing container items does not work.
#1550

Incorrect positioning of the trailing container items, especially while resizing the window.
#1708
#1700
#1678
#1660

The alignment of the TopAppBar title cannot be changed from "left" to "center" or "right",
#1700

Here is a video of the first two issues, using the "examples\appbar.py" test program:
https://github.com/user-attachments/assets/1a8da5d3-7e5f-4097-9dc2-4198f86b397e

Describe the cause of the issue
1. Hover Behaviour
The hover behaviour of the trailing container is being blocked by the title_box widget, which in "small" mode is positioned in front of the right-half of the app bar. The hover detection sees that the items are being covered, so it does not activate. Here is an image of the title_box widget highlighted using the Kivy Inspector tool:

2. Incorrect Positioning, 3. Title Alignment
The positioning of the trailing items container is controlled by changing the padding of the title text. For example, if the window size in increased, the right padding of the title would also need to be increased. While this implementation might be able to work, it is prone to errors, does not allow the title alignment to be changed, and does not work if there is no title. For example, currently while resizing the window, the padding is not being updated correctly and is set to 0, meaning the trailing items move to the left:

Reproducing the problem
This code is taken from "examples\appbar.py", modified to show the "small", "medium" and "large" Top App Bar types:
from kivy.lang import Builder

from kivymd.app import MDApp

from examples.common_app import CommonApp

KV = """
MDScreen:
    md_bg_color: self.theme_cls.secondaryContainerColor

    MDIconButton:
        on_release: app.open_menu(self)
        pos_hint: {"top": .98}
        x: "12dp"
        icon: "menu"

    MDBoxLayout:
        orientation: "vertical"
        adaptive_height: True
        size_hint_x: .8
        spacing: "12dp"
        pos_hint: {"center_x": .5, "center_y": .5}

        MDTopAppBar:
            id: appbar
            type: "small"

            MDTopAppBarLeadingButtonContainer:

                MDActionTopAppBarButton:
                    icon: "arrow-left"

            MDTopAppBarTitle:
                text: "AppBar small"

            MDTopAppBarTrailingButtonContainer:

                MDActionTopAppBarButton:
                    icon: "attachment"

                MDActionTopAppBarButton:
                    icon: "calendar"

                MDActionTopAppBarButton:
                    icon: "dots-vertical"

        MDTopAppBar:
            id: appbar
            type: "medium"

            MDTopAppBarLeadingButtonContainer:

                MDActionTopAppBarButton:
                    icon: "arrow-left"

            MDTopAppBarTitle:
                text: "AppBar small"

            MDTopAppBarTrailingButtonContainer:

                MDActionTopAppBarButton:
                    icon: "attachment"

                MDActionTopAppBarButton:
                    icon: "calendar"

                MDActionTopAppBarButton:
                    icon: "dots-vertical"

        MDTopAppBar:
            id: appbar
            type: "large"

            MDTopAppBarLeadingButtonContainer:

                MDActionTopAppBarButton:
                    icon: "arrow-left"

            MDTopAppBarTitle:
                text: "AppBar small"

            MDTopAppBarTrailingButtonContainer:

                MDActionTopAppBarButton:
                    icon: "attachment"

                MDActionTopAppBarButton:
                    icon: "calendar"

                MDActionTopAppBarButton:
                    icon: "dots-vertical"
"""

class Example(MDApp, CommonApp):
    def build(self):
        return Builder.load_string(KV)

    def disabled_widgets(self):
        self.root.ids.appbar.disabled = not self.root.ids.appbar.disabled
        self.root.ids.appbar_custom.disabled = self.root.ids.appbar.disabled

Example().run()

"""

class Example(MDApp, CommonApp):
    def build(self):
        return Builder.load_string(KV)

    def disabled_widgets(self):
        self.root.ids.appbar.disabled = not self.root.ids.appbar.disabled
        self.root.ids.appbar_custom.disabled = self.root.ids.appbar.disabled

Example().run()

Description of Changes
1. Hover Behaviour
The solution is to reduce the size_hint of the title_box container to 0 when in "small" mode as it is not being used. The title_box widget is only used in "medium" and "large" modes:
BoxLayout:
    id: title_box
    padding: "16dp", 0, "16dp", 0
    size_hint:
        (0, 0) \
        if self.parent.type == "small" else \
        (1, 1)

2. Incorrect Positioning
My solution is to remove this "padding" implementation entirely, and instead add an extra text_box box layout widget to the root_box container. The TopAppBarTitle gets inserted into this new widget, while the leading and trailing item containers are always inserted to the left and right of this widget, respectively. The text_box uses the default Kivy Widget behaviour to fill the window, meaning the Trailing items container is always automatically pushed to the right of the screen; all without any additional Python code! This implementation works even if any of the TopAppBar "leading", "trailing" and "title" elements are missing. Here is the new text_box widget highlighted using Kivy Inspector:

3. Title Alignment
With the new text_box widget, the title area now fills the full width between the leading and trailing containers. This means the "halign" property of MDTopAppBarTitle can be used to change the position of the text, as is standard expected behaviour for Kivy label alignment. Here is an image of the three title alignments:

Example code:
MDTopAppBarTitle:
    text: "AppBar small"
    halign: "center"

Code for testing new changes
Same code as above in the "Reproducing the problem" section.

TODO - if this Pull Request is approved, update the Docs contained in "appbar.py" to show use of halign: "center" for center alignment of MDTopAppBarTitle instead of pos_hint: {"center_x": .5}


Command gh changelog new fails when there are no tags

Hi @chelnak,
I have not been able to get gh changelog to find my tags. Here is the output of git tag,

and here is the output of gh changelog new

Regards
Jordan

Hey @Jordan-Dennis, right now the tags need to be present on GitHub as we consume data from their API.
If you run git push --follow-tags and run the command again, does it work?
Maybe the error message here could be more descriptive.

Thanks @chelnak,
that worked now, but there is not a lot of information available in the CHANGELOG.md. Is there some way of making it display more information (i.e. flags in the commits ect)?
Regards
Jordan

Oh, I see, it is about the tags in the PRs.

Hey. So it aggregates the PRs in between each tag. There should also be a link to the comparison between tags where you can see the commits.

Awesome thanks.


"Page Not Found"

See current status of https://www.chaitjo.com/markowitz/

https://www.chaitjo.com/archived/markowitz-portfolio-optimization/


Some custom URLs get short URL some not

Some of my Pages gives a correct shorten URL back but some of the will not. Even they are shorten at Yourls. I can see it at the Admin Panel.
This is the debug of a Page with shorten URL
{"status":"fail","code":"error:url","url":{"keyword":"09266","url":"http:\/\/domain.com\/LilyPad-Arduino-328-Main-Board","title":"LilyPad Arduino 328 Main Board","date":"2015-02-12 00:35:39","ip":"xxx.xxx.xxx","clicks":"0"},"message":"http:\/\/domain.com\/LilyPad-Arduino-328-Main-Board already exists in database","title":"LilyPad Arduino 328 Main Board","shorturl":"http:\/\/doma.in\/09266","statusCode":200,"qrcimg":"http:\/\/doma.in\/user\/plugins\/inline-qrcode\/images\/qrccf6f0d99893974288d48676d9cdbd51a.png","qrimage":"

This is the debug of another Page without the URL on Page but available at Admin
{"status":"fail","code":"error:keyword","message":"Short URL 00027 already exists in database or is reserved","statusCode":200,"qrcimg":"http:\/\/doma.in\/user\/plugins\/inline-qrcode\/images\/qrcd41d8cd98f00b204e9800998ecf8427e.png","qrimage":"

This is my PHP Code
function shortyourls(){
global $smarty;

// Inputs
$shorturl   =   'http://' . $_SERVER['HTTP_HOST']  . $_SERVER['REQUEST_URI'];
$signature  =   "123456789";
$siteurl    =   "http://doma.in";
$format     =   "json";
$Artikel    =   $smarty->get_template_vars('Artikel');
$title      =   http_build_query(array('title' => $Artikel->cName));
$keyword    =   preg_replace("/[^0-9,.]/", "", ($Artikel->cArtNr));

// Phases url
$short = file_get_contents($siteurl.'/yourls-api.php?signature='.$signature.'&action=shorturl&url='.$shorturl.'&format='.$format.'&keyword='.$keyword.'&'.$title);

$url=json_decode($short,TRUE);
$output = $url['shorturl'];
echo $output;

}
Any idea what is wrong?

"message":"http:\/\/domain.com\/LilyPad-Arduino-328-Main-Board already exists in database"
"message":"Short URL 00027 already exists in database or is reserved"

These messages are quite clear, isn't it?
Deal with YOURLS_UNIQUE_URLS config variable as explained in https://yourls.org/#Config, should help you.


DFS Resources

Description
Enables management of DFS through chef, specifically the creation of a
namespace and management of shares
Signed-off-by: Jason Field<EMAIL_ADDRESS>Issues Resolved
N/A
Check List

[ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[ ] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Closing as this is going into the windows_dfs cookbook


Command line option to print settings.json path

remove
println!("Using default settings.json");
when implementing this, or hide it behind a verbosity flag


Doubt

Thanks for awesome bypass. But I have some issues or Doubts ,
It will run termux ? or Windows only .

I created this whole library in Termux so yes it can definitely work in termux.


doc(contributing): bold text

Signed-off-by: YangYi<EMAIL_ADDRESS>

Description: Use bold syntax for the 'language' word.

BREAKING CHANGE: null

Related issue (if exists): null

I'm sorry but we don't accept PRs like this


Missing CR constants

'cymysql.constants.CR' is missing. It does not break my current code, but I don't know in the future.
The constants can be copied from 'pymysql.constants.CR'
Thanks.

CR.py added and released as 0.8.9. Is this OK ?

Perfect. Thank you. I think this can be closed.


Update the IR Identifier Format

Summary
As identifiers are becoming a mandatory addition to the IR node, we want to unify our identifier representation internally to the IR.
Value
Things become simpler.
Specification

[ ] Create a sum type Identifier with children Internal and External.
[ ] Update IdentifiedLocation to hold an Identifier.
[ ] Use these identifiers in the passes.

Acceptance Criteria & Test Cases

We have a unified representation of identifiers.

This doesn't entirely work as specified due to the fact that location on an IR node is optional. IR nodes must have some kind of location.
There's the potential to move the external ID into a sum type of the location field, though.


Fix punctuation

Added semicolon on line 1100, and fixed comment capitalization/spacing on line 1362.

Added semicolon on line 1100, and fixed comment capitalization/spacing on line 1362.

There shouldn't actually be a semicolon placed after that brace, since the brace belongs to the if at util.js#L1057. This also explains why the linting fails.
The comment that you modified, is actually code run through a preprocessor. Since this isn't a standard comment, modifying that line could actually cause errors on execution.
I'm very sorry, but unfortunately non of the changes in this PR are correct; which is why I'm closing it.


change file structure after adaptor removal

updated directory structure after adaptor removal from /output_dir/multiplexname/pipeline_stage to /output_dir/pipeline_stage

resolved with commit ac14e771a36b678813cb6fbeac190fed56ec70c1

resolved with commit ac14e771a36b678813cb6fbeac190fed56ec70c1


Remove duplicate key '.source.mql5' in snippet

Remove duplicate key in snippet to resolve #2 and #3

Would be nice to hear back from @PsychoDevThailand but I don't think he is active anymore.

@PsychoDevThailand you still around to hit the merge button?


Incorrect docs on shadow dom inheritence

At this link it is stated

Do note that setting all: initial; will also reset any CSS custom properties

Based on my experience I'm pretty sure that is not correct? Perhaps it was in the past?

indeed all does not affect CSS Custom Properties:
https://developer.mozilla.org/en-US/docs/Web/CSS/all


fix: change os.system to subprocess.run

change from older os.system to subprocess.run

Should it be:
subprocess.run(["upnpc", "-e", "Nebra Helium", "-r", "44158", "TCP"])

or
subprocess.run(["upnpc", "-e", "Nebra Helium", "-r", "44158 TCP"])

I think the former but need to test


chore: add test snippets for js mono

🚀 Deployed on https://66e9fbbdae29c196ce1ab24a--cozy-fox-0defec.netlify.app


Added dedicated threadpool for peer forward requests. Improved buffer…

… and forwarder metrics. Fixed DNS domain name validator being too strict.
Signed-off-by: Jeff Wright<EMAIL_ADDRESS>Description of changes:

A few misc improvements while testing cluster scaling.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

One inline and one high level comment. I am curious how much performance edge we get using threadpool to handle requests asynchronously by individual but collect the records in results synchronously (compared to executing each request synchronously in previous implementation)...

I added this change while performance testing. Scaling from 4 to 5 nodes showed a decrease in performance, I suspected synchronous calls was the reason. If each forwarded request takes ~100-200ms to complete, then synchronous calls will continuously increase the time required for each execute call of the Forwarder, linearly with the number of peers in the cluster. This causes the source's buffer to fill up, eventually leading to timeouts.

i.e. how does it scale with different choice of ASYNC_REQUEST_THREAD_COUNT?

Related to my other reply, as long as the available thread count is greater than the number in use, we'll see optimal performance. If the needed threads count exceeds what is available, there will be some slow down, but nowhere near as bad as synchronous calls.


add: GIFs for Readme

structure:  Widgets -> 67. GIFs For GitHub
Name:
GIFs For GitHub
Description:
Awesome List of GIFs & avatars to use in GitHub markdown
Examples used:

Please tell me what is the issue with styling. I will fix it accordingly.

Please tell me what is the issue with styling. I will fix it accordingly.

Thanks for adding this repository 🙏💙
pull request merged ✅


[FEATURE] Google Video Intelligence API

Is your feature request related to a problem? Please describe.

LangChain4j currently lacks support for the Google Video Intelligence API, which offers advanced video analysis capabilities. Integrating this API would enable developers to seamlessly incorporate video content analysis into their Java applications.
Describe the solution you'd like

Introduce a module in LangChain4j that integrates with the Google Video Intelligence API, providing a unified interface for video analysis tasks.
Describe alternatives you've considered

Using Google's official client libraries directly is an alternative, but it lacks the unified interface and additional features that LangChain4j offers.
Additional context

https://cloud.google.com/video-intelligence?hl=en

@luyi404 I'm curious if you've tried the multimodality of Gemini?
Both langchain4j-vertex-ai-gemini and langchain4j-google-ai-gemini modules support video in input.
Gemini is pretty good at understanding videos.
What do you think that Google Cloud Video Intelligence would provide that Gemini's video understanding capabilities can't handle?

@glaforge Thanks for answering. Yes, I think gemini should be better in this case. Do we have Gemini 2.0 supported now?

@luyi404 Gemini 2.0 Flash (exp) works out of the box. It doesn't yet support non text output modalities or live streaming, as it's not supported by LangChain4j.
You should be able to use either 1.5 or 2.0 for your needs.


bosh clean-up --all removes releases referenced by runtime config

Describe the bug
The bosh director deployed by Pivotal Operations Manager (opsman) comes with bosh-dns release uploaded and a runtime config that references it. After bosh clean-up --all is executed, bosh-dns release gets removed since there are no deployments using it.
To Reproduce
Steps to reproduce the behavior (example):

Deploy a bosh director on any IaaS
Upload bosh-dns release
Create a config that references bosh-dns
Run bosh clean-up --all
Run bosh releases and bosh-dns release is no in the list of releases

Expected behavior
I wouldn't expect bosh clean-up --all to delete releases that are referenced by a config. Technically, the release is "in use" because there is a config that uses it when a deployment is created.
Logs
Versions (please complete the following information):

Infrastructure: any
BOSH version: Noticed in 267.7 but probably in other versions where configs are a feature
BOSH CLI version: v5.4.0
Stemcell version: any

Deployment info:
n/a
Additional context
n/a

That also applies for stemcells. I just experienced that. However, for stemcells the stemcell is still shown in bosh stemcells and it is also available in vcenter. I had to re-upload it bosh upload-stemcell <name> --fix.

@amuessig your scenario sounds like a different issue. The bosh clean-up --all would try to clean up unused stemcells, but, assuming the cleanup task is successful, would no longer be visible in bosh stemcells nor vCenter. Rather than getting into that here, please create a new issue to discuss that separately; and be sure to include the relevant task logs of the clean-up which claims to have removed the stemcell, along with the later stemcells and upload-stemcell output.

Are there any plans to address this issue? It is causing us (Release Integration) pain in our CI pipelines that reuse a pool of BOSH directors for different test scenarios. We would like to be able to delete all deployments and then run bosh clean-up --all after the testing is finished to prepare the director for the next test, but this deletes the bosh-dns release and bosh deploy does not re-upload it, even though the runtime-config specifies a URL for the release.

We have addressed this in https://www.pivotaltracker.com/story/show/167737389. It should be available as soon as we cut a new release, v270.5.0

Cutting v270.5.0 right now so I'm going to close this


[WIP] fix(rbac): CSV updates no longer require server restarts

Description
This PR introduces new functionality to facilitate the reloading of permission policies sourced from the CSV file. The issue at hand was the necessity of restarting the server every time there was an update to the permission policies in the CSV, which was quite inconvenient. The added feature enables the dynamic reloading of permission policies and roles directly from the CSV.
It leverages information provided by the permission framework (entity reference, permission, policy). This approach allows us to focus solely on roles associated with the entity reference in the CSV, subsequently retrieving permissions linked to that role, matching the given permission and policy. The aim is to enhance efficiency by selectively reloading relevant portions of the file, rather than the entire dataset.
Fixes

Fixes #908

How to test changes / Special notes to the reviewer

Create an RBAC permission policy CSV file

g, user:default/<your-user>, role:default/test

p, role:default/test, catalog-entity, read, allow

Update app-config to include your CSV file

permission:
  enabled: true
  rbac:
    policies-csv-file: ./some/path/<permission-policy>.csv

Start the server and notice that you can read catalog entities
update the read permission in the CSV file from allow to deny
Notice that you can no longer read the catalog entities

The bulk of this work is finished. Nevertheless, a lingering issue with duplication still requires attention. If a permission policy initially comes from the REST API and is subsequently added in the CSV file, it triggers a problem. We anticipate that resolving issue #776 will give us a mechanism to determine the origin of a permission policy, whether it stems from the CSV file or the REST API.
Also, I would like to test how this works with bulk adding and editing using Casbin and the REST API. Currently, the REST API allows for the creation of roles, and will allow for the creation of permissions soon, in bulk. I want to test this after the mention issue is solved to ensure that there are no problems.

Closing in favor of #1171


Change precheck form handling to work w/o JS

Some changes to the way the form submissions are handled so that the pre-check can be completed without JavaScript enabled. I am not a huge fan of this makeshift solution and would probably prefer a move away from react-hook-form instead.
Validation isn't supported yet without JS.

Superseded by #81


Add View.each() false return usage notes to tutorial and docs

I noticed that the View.each() method accepts false as a return value, in addition to void. I was pleased to discover that returning false causes iteration to stop. This is very handy! But I don't see mention of it anywhere in the tutorial or docs (the each() method itself is not even in the docs).

I'll export the View interface and add a mention of it in the tutorial.

Fixed in 77233a7.

Included this in release v0.3.0.


Request to Remove Politically Charged Description from Example

Hello, I noticed the following example in the code:
"  - Might pretend to be a hard-core woke, but in reality that's just a facade to climb the corporate ladder  \n",

I wanted to point out that terms like woke have become heavily politicized, particularly by conservative discourse, often carrying loaded implications. Including this term in the example could unintentionally convey a political stance that may not be aligned with an inclusive or neutral tone in open-source software.
To help ensure that the project remains accessible and welcoming to all users, I suggest revising this line to remove references to woke and focus instead on an example that isn’t politically charged. Removing or rephrasing this language could enhance clarity and maintain a professional, neutral tone.
Thank you for considering this feedback!

That's a good point, thanks for catching it, I will address it in a next round of updates. I wrote many of the examples in a care-free way, partly for fun to be honest, but given the visibility and reach of open-source I feel you are absolutely right.

Appreciate that! This is great BTW, excited to use it!

I removed this part and a few others details. Thanks for sharing your concern!


Autocomplete for JavaScript

The Stimulus LSP currently only supports completion for HTML and (HTML+ERB). There's also an opportunity to provide autocomplete for JavaScript files, especially within Stimulus controllers themselves.
For example, a controller like this should provide autocomplete for targets and all other Stimulus APIs:
import  { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static targets = ["name"]

  connect() {
    this.|
         +----------------+
         | nameTarget     |
         | nameTargets    |
         | hasNameTarget  |
         +----------------+
  }
}

🤔 It might be easier to build this as a TS-Server LSP plugin so it's gonna work with almost all editors out of the box (without building custom extensions on top)

Good point @Zeko369. I honestly haven't really dug deep into how we could properly implement that.
Any chance you know of an example doing this already?

My initial thinking here is to leverage codelens together with code actions to make this capability a reality but the TS-Server LSP plugin is likely a far more fluid route opposed to employing custom logic (though I am yet to explore the available API and implementation requirements).
The capability needs to cater to both TS and JS projects, JS projects will be an easier undertaking but I see TS projects being a tad extraneous. I know for my use cases, I rely heavily on JSDoc annotations to describe static defined targets, values and classes and I'd be concerned that underlying declarations applied via TS-Server could conflict or complicate things.
For example, take the below sample wherein I've annotated nameTarget:
import  { Controller } from "@hotwired/stimulus"

export default class extends Controller {

  static targets = ["name"]

  connect() {
    this.nameTarget
  }

  /**
   * This annotation describing this target
   */
   nameTarget: HTMLElement;
}

The base reference of nameTarget is the only annotation which one would realistically require. The nameTargets[]  and hasNameTarget do not necessarily need annotation reference because it is assumptive, but this is where considerations need to be had and maybe it could look something like this:

Check for the presence/existence of typed occurrences
When occurrences exist, inherit them
Determine which static definitions are un-typed and apply

JSDoc Annotations may also be able to play a bigger role overall, specifically in the markup completions. Though some additional thought needs to be had on that front.

Yeah, I'm all-in on supporting multiple scenarios. I think that the parser can/should detect what kind of approach the project, or even a single controller file is using, either by looking at the AST or by looking at whatever packages are included in the package.json.
There is also the stimulus-decorators approach for TypeScript projects, which we opened an issue for in stimulus-parser: https://github.com/marcoroth/stimulus-parser/issues/10.
I think as long as the stimulus-parser is capable enough for supporing multiple approaches, we could unify it into a common ControllerDefinition object, which then Stimulus LSP then can rely on, without having to know anything about the implementation details.


updated ratpoison.vim syntax

Hey,
For some reason I can no longer post to the vim-dev mailinglist. I just want the updated ratpoison.vim with changes from #1721 to be taken in consideration. (I am the maintainer).

The ratpoison.vim file included in this repository looks slightly different from yours.
Bram had removed the version check for Vim 6 or older versions and removed HiLink command.
Could you include these changes?
https://github.com/vim/vim/blob/55d81cd2a15d93dba89b2ff1c988d82789919b6b/runtime/syntax/ratpoison.vim#L8-L9
https://github.com/vim/vim/blob/55d81cd2a15d93dba89b2ff1c988d82789919b6b/runtime/syntax/ratpoison.vim#L249-L262

Updated now.

I'll include it, thanks.  But keep the previous-maintainer line


how do i change text screen limit?

so my friend and i are making a map and we have lots of text screens,we wanted to add more but i get error called "You've hit the WIre Text Screens Limit!" and its super annoying,so does anyone know how to change the limit of it?

The same way you change the limit of anything at all in gmod: with the sbox_max commands. You type sbox_maxwire_ and it will autocomplete the rest.
Also note that this github repository is primarily a bug tracker, not a support forum. To get help with things that aren't bugs, the recommended way is to go to the discord https://discord.gg/H8UKY3Y


CameraContainer instantly dealloc-ing

I have a subclassed UINavigationController (= 'self'). My camaraContainer seems to dealloc immediately. Other than that, everything seems to work perfectly. (i.e. CameraViewController etc works perfectly). Is this expected behaviour?

(void)viewDidLoad
{
//Create CameraController
DBCameraViewController *cameraController = [DBCameraViewController initWithDelegate:self];
[cameraController setUseCameraSegue:NO];
DBCameraContainerViewController *cameraContainer = [[DBCameraContainerViewController alloc] initWithDelegate:self];
[cameraContainer setCameraViewController:cameraController];
[self setNavigationBarHidden:YES];
[self setViewControllers:@[cameraContainer]];
}

fix it. i'm going to push this fix. Thanks.


[Feature Request] Decode Key Hash

I'm submitting a...

[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary
As we can and must be able to decode values contained in the ERC725Y key/value store, it's also important being able to decode keys, which can contain information relating to the values, as dynamic key parameters (eg. AddressPermissions:Permissions:<address>).
At Lookso, we're trying to decode DataChanged events without any context, which led us to that need.
This new feature would propose a function to decode a key hash, by providing, either the keyname, either the ERC725Y json schema associated to the key hash, and would return the dynamic parameters (type and value) from the key hash.
Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
The function would be available in the class or on the instance, and would have a structure like describing on the following examples:
ERC725.decodeKeyHash('0x35e6950bc8d21a1699e50000cafecafecafecafecafecafecafecafecafecafe', 'MyKeyName:<address>');
// [{
//   type: 'address',
//   value: '0xCAfEcAfeCAfECaFeCaFecaFecaFECafECafeCaFe'
// }]

ERC725.decodeKeyHash('0x35e6950bc8d21a1699e5000000000000000000000000000000000000f342d33d', 'MyKeyName:<uint32>');
// [{ type: 'uint32', value:<PHONE_NUMBER> }]

ERC725.decodeKeyHash('0x35e6950bc8d21a1699e5000000000000000000000000000000000000abcd1234', 'MyKeyName:<bytes4>');
// [{ type: 'bytes4', value: 'abcd1234' }]

ERC725.decodeKeyHash('0x35e6950bc8d21a1699e50000aaaabbbbccccddddeeeeffff1111222233334444', 'MyKeyName:<bytes32>');
// [{
//   type: 'bytes32',
//   value: 'aaaabbbbccccddddeeeeffff1111222233334444'
// }]

ERC725.decodeKeyHash('0x35e6950bc8d21a1699e500000000000000000000000000000000000000000001', 'MyKeyName:<bool>');
// [{ type: 'bool', value: true }]

ERC725.decodeKeyHash('0x35e6950bc8d20000ffff000000000000000000000000000000000000f342d33d', 'MyKeyName:<bytes2>:<uint32>');
// [
//   { type: 'bytes2', value: 'ffff' },
//   { type: 'uint32', value:<PHONE_NUMBER> }
// ]

https://github.com/ERC725Alliance/erc725.js/pull/254


Add release/2.0.0 branch to perf runs

This turns on performance runs for both CoreFX and CoreCLR on the
release/2.0.0 branches.

@mmitche @jorive PTAL

LGTM


Clarify tests and exception message

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Storage.Common


How to surcharge a caddyfile for secure header ?

Describe you feature request
I want to surchage a caddyfile for securing headers.
How do i do that ?
Best regards

I think you used an incorrect word: "surcharge" has to do with money, and you are asking how to get money from a caddyfile for headers.

@kilwir76 if you're using vanilla FrankenPHP, you can just put a Caddyfile in the root directory of your project, then run frankenphp run. If you're using Laravel Octane, you can use the --caddyfile flag of the octane:start command.
In the Caddyfile, you can use the header directive to change the response headers.
@withinboredom "surcharger" means "to override" in French 😅

"surcharger" means "to override" in French 😅

Oh, hahaha, that's awesome and thanks for the heads up!

Sorry for my disastrous English ^^, so I create my Caddyfile at the root of my project and I override the one in /etc/caddy/?
If so can I take the basic one in /etc/caddy?
If not, what more should I do?
Knowing that my application is a symfony application under the dockerfile present on your site

Yes you can adapt the modify or replace the Caddyfile that is in /etc/caddy. If you're using Docker that's probably the easiest way.

Yes of course , so i can copy the existing caddyfile on /etc/caddy and the adapter for my needs


RHEL 7.1 install issues

Running through an install on RHEL 7.0, I hit these issues:

Step 1: delete networks.  I was unable to delete the lone public network (no routers or VMs were present).  Horizon showed a little error balloon.  Not obvious if the public network is special or if this was a problem.

Step 8 uses wget (which wasn't installed by default).  Other steps used curl.

Compute node step 1: Not clear if the instructions are telling me to read the lib virt link and do that before I continue, or, this step summarises the linked resource so I don't need to.

Compute node instructions missing this line:
yum install python-devel libffi-devel openssl-devel

ETCD_LISTEN_CLIENT_URLS for the proxy setup should include the http://<IP_ADDRESS>:2379 entry (or etcdctl doesn't work for debugging)

I also notices that the last compute node step had gone. I know we're debating the config file stuff, but you still need to start calico-felix. Was:
12.	Create the /etc/calico/felix.cfg file by copying /etc/calico/felix.cfg.example and edit it:
•	Change the PluginAddress and ACLAddress settings to the host name or IP address of the controller node.
•	Restart the Felix service:
•	on RHEL 6.5, run initctl start calico-felix.
•	on RHEL 7, run systemctl restart calico-felix.

*Removed the curl issue from my first comment, it was down to the system clock being wrong

Step 1: delete networks. I was unable to delete the lone public network (no routers or VMs were present). Horizon showed a little error balloon. Not obvious if the public network is special or if this was a problem.

This step doesn't just concern itself with routers/VMs. You also need to get rid of subnets.
Additionally, you must be the admin tenant for this, and if you're doing Horizon stuff you also need to make sure you're in the 'admin' pane, not the 'project' pane.
Finally, it would probably have helped to write down what error you say from Horizon. :wink:

etcd ram disk mount point is different to the directory we give to etcd itself

cluster ID needs to be different on each start of etcd

@Lukasa it was your typical Horizon "red balloon".  Absolutely no detail whatsoever!

Neutron network gateway needs to be distinct from real gateway => use distinct compute host and VM IP ranges even in testing.  When defining the IP pool networks and subnets, the docs say "gateway" without qualification.  It's not clear whether that's the upstream gateway or a made-up virtual gateway.  We accidentally re-used the real physical gateway address for the subnet and that ended up shadowing it.  (It should be a made-up address, within the subnet.)

Need to tell people to turn off any other networking agents they're running.  for example, the Linux bridge agent.

We use servicectl to disable services, how does this interact with the nova agent add/delete commands?

@fasaxc What was the way that you used - successfully - to 'turn off' the Linux bridge agent?

@DaveLangridge @plwhite - Regarding the fact that felix.cfg is currently required in order for Felix to start up...

Firstly, sorry for missing this for the 0.17 release.  I noticed that diff in the docs between 0.16 and 0.17 (i.e. removing that step from the RHEL install docs) but thought it was OK - because I had forgotten that the startup scripts required it, and because of the following point...

The situation has, however, substantively changed, in that felix.cfg was previously absolutely required, because it provided configuration that Felix needed and that could not reasonably be defaulted; whereas now all of Felix's configuration does have reasonable defaults, and felix.cfg is only used to override where necessary - and so it's likely that a deployment could run fine without any felix.cfg files.

Therefore I suggest that we probably should remove the requirement (in the startup scripts) for felix.cfg to exist, and correspondingly adapt the install instruction steps.  Thoughts?

If felix only reads the file if it's there, and doesn't barf if it isn't, then removing the copy is fine. As long as we get to start felix somewhere.

I'd be happy with anything that removed the manual install step (it was only reinstated as a temporary fix anyway).
I'd probably prefer changing the packages to install felix.cfg directly (not as .example) - it'll work in most cases, so there's no need to push people away, and I think that (in the rare case it's needed) it'll be easier for people to edit if it's already there.  No str

@neiljerram I'm not sure how the Salesforce folks turned off the bridged agent.  The command went by too fast.  I think they were using some nova commands to delete the agent but I'm not sure if they also disabled it in systemd, for example.

@neiljerram I'm not sure, the customer made that change.  I saw them run a nova command that deleted the agent but I'm not sure if they also ran a systemd command to disable it.

I think we have a separate issue tracking the agent-delete addition: #517

Is there anything left here?

I think they're all fixed now.


generate management records based on site/ plot names

There are some sites whose site or plot name contains the terms “plantation”, “managed” (or its abbreviation “M”), “irrigated” (or its abbreviation “I”), or “fertilized” (or its abbreviation “F”) that do not have corresponding records in HISTORY and PLOTS. While obtaining full information will require going back to original publications, I think we could automatically generate incomplete records using an R script.
This is not urgent but will improve the database and facilitate analyses.

@teixeirak,
I am working on this now (and might need more instructions at some point).
I had taken care of replacing abbreviations "M", "I", "F" and "IF" by corresponding management words "managed", "irrigated", "fertilized' and "irrigated/fertilized"
But looking at it now I found the following sites. Can you tell me if the "F" actually refers to fertilized here ?

[ ] Eucalyptus saligna plantation 2 yr F, 1m * 1m" (and similar sites - I think it does mean Fertilized...)
[ ] FT11 Gumkhal Dry sub-deciduous Shorea robusta Gaertn. F. (Sal) (and similar sites - no evidence that FT means fertilized.)

Eucalyptus saligna plantation 2 yr F, 1m * 1m" (and similar sites - I think it does mean Fertilized...) - Yes, that means fertilized.
FT11 Gumkhal Dry sub-deciduous Shorea robusta Gaertn. F. (Sal) (and similar sites - no evidence that FT means fertilized.) - *Part of species name, not fertilized).

Agree that this is a lower priority issue. Let's come back to it.


support geomorphic boards with square cells

For games like Roborally and Under Falling Skies.

Roborally would really be an excellent use of the geomorphic boards!
 I even have some of the expansions.
-Dale


Remove unused/commented code in src/pdbcleanmolidcifutils.py

There are unused codes and commented code in the source code. This is mainly to clean up clutter

Take


align cephfs pool creation

Align CephFS pool creation with the other pools.
This allows specifying additional parameters, like for the other pools in the ceph-client role.

Fixed.
It's a bit confusing, sorry. I'm not using the containerized deployment and I'm not sure I understand why the pool creation is specified in multiple places in different ways. Why are cephfs pools treated differently than normal pools (in terms of tasks to create them?

@scaronni No worries, I think they are just legacy things. That a good refactor you have here, thanks.

@scaronni do you mind updating the tests according to what you have modified with your patch please ?
https://github.com/ceph/ceph-ansible/blob/master/tests/functional/centos/7/cluster/group_vars/mons#L2-L4

Rebased with the additions for the tests.

@scaronni please also remove this task: https://github.com/ceph/ceph-ansible/blob/master/roles/ceph-mon/tasks/check_mandatory_vars.yml#L10

@scaronni you also need to fix tests/functional/centos/7/docker/group_vars/mons and tests/functional/centos/7/docker-collocation/group_vars/mons.

Rebased also with the docker tests and the removed task.

jenkins test luminous-ansible2.4-centos7_cluster

jenkins test luminous-ansible2.4-docker_cluster

jenkins test luminous-ansible2.4-centos7_cluster

jenkins test luminous-ansible2.4-docker_cluster

Hello, is anything else required on my side to get this merged? Thanks.

@rishabh-d-dave do you mind taking over this? Thanks!
@scaronni Sorry this never went through, let us know if you'd like to resurrect this or not, otherwise @rishabh-d-dave will take a look at it since he has experience in this role.
Thanks!

Sure. I'll wait for a couple of days in case Simone wants to continue working; otherwise, I will take over.

jenkins test pipeline

I would try something like the following diff:
diff --git a/roles/ceph-defaults/defaults/main.yml b/roles/ceph-defaults/defaults/main.yml
index 58055c22..5a0054ea 100644
--- a/roles/ceph-defaults/defaults/main.yml
+++ b/roles/ceph-defaults/defaults/main.yml
@@ -340,12 +340,29 @@ mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the
 # CEPHFS #
 ##########
 cephfs: cephfs # name of the ceph filesystem
-cephfs_data: cephfs_data # name of the data pool for a given filesystem
-cephfs_metadata: cephfs_metadata # name of the metadata pool for a given filesystem
-
 cephfs_pools:
-  - { name: "{{ cephfs_data }}", pgs: "{{ osd_pool_default_pg_num }}", size: "{{ osd_pool_default_size }}" }
-  - { name: "{{ cephfs_metadata }}", pgs: "{{ osd_pool_default_pg_num }}", size: "{{ osd_pool_default_size }}" }
+  - "{{ cephfs_data }}"
+  - "{{ cephfs_metadata }}"
+cephfs_data:
+  name: "cephfs_data"
+  pg_num: "{{ osd_pool_default_pg_num }}"
+  pgp_num: "{{ osd_pool_default_pg_num }}"
+  rule_name: "replicated_rule"
+  type: 1
+  erasure_profile: ""
+  expected_num_objects: ""
+  application: "rbd"
+  size: "{{ osd_pool_default_size }}"
+cephfs_metadata:
+  name: "cephfs_data"
+  pg_num: "{{ osd_pool_default_pg_num }}"
+  pgp_num: "{{ osd_pool_default_pg_num }}"
+  rule_name: "replicated_rule"
+  type: 1
+  erasure_profile: ""
+  expected_num_objects: ""
+  application: "rbd"
+  size: "{{ osd_pool_default_size }}"

 ## OSD options
 #

Recalled this PR as well -- made the requested changes plus rebased it.

jenkins test dev-centos-non_containers-add_mdss

jenkins test dev-centos-non_container-add_mdss

Weird; create_mds_filesystem.yml ran fine during add_mons but not during all_daemons.

jenkins test dev-centos-non_container-all_daemons

jenkins test dev-centos-non_containers-ooo_collocation

jenkins test dev-centos-non_container-ooo_collocation

jenkins test dev-centos-non_container-ooo_collocation

jenkins test pipeline

jenkins test dev-centos-non_container-purge

jenkins test pipeline

jenkins test dev-centos-non_container-purge

jenkins test dev-centos-non_container-purge

jenkins test dev-centos-non_container-purge

jenkins test dev-centos-non_container-purge

jenkins test dev-centos-non_container-purge

jenkins rebase master

jenkins test pipeline

jenkins test dev-centos-non_container-update

@guits @dsavineau This PR passed first two phases of CI testing.

@rishabh-d-dave overall the PR is good but I think the change about the cephfs_data and cephfs_metadata variables removal isn't backward compatible and could break user configuration. @guits thoughts ?

Changing cephfs_data and cephfs_metadata to cephfs_data_pool and cephfs_metadata_pool respectively would be good?
Or may be we can just make cephfs_data and cephfs_metadata to be an alias to cephfs_data_pool and cephfs_metadata_pool?

@dsavineau yes you are right about the breaking change, in fact I remember having already raised that

@guits Can you reply to this comment - https://github.com/ceph/ceph-ansible/pull/2510#issuecomment-499542536 ? IIRC, I suggested something like this last time.

jenkins test pipeline

jenkins test pipeline

@rishabh-d-dave please rebase

jenkins test pipleine

jenkins test pipeline

jenkins test dev-centos-container-podman

jenkins test dev-centos-container-all_daemons

jenkins test pipeline

jenkins test dev-centos-container-ooo_collocation

jenkins test dev-centos-container-ooo_collocation

jenkins test dev-centos-container-ooo_collocation


Allow a user to play a song if the bot is in another voice channel and isn't playing music

Done in https://github.com/TheKroni/markov-bot/commit/c8569b3af43fec3de501c5adbb3a804a66e66248


Update Default Oracle Dashboard

What does this PR do?
Update Default Oracle Dashboard to use Global timeframe in all widgets
Motivation
https://datadog.zendesk.com/agent/tickets/453615
Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

Can you indent the resulting file the same way? It's difficult to see the diff and see what this PR changes.
Also, do you have a link to a staging/prod dashboard with this content?


move processors to run on background processing thread

processing can be somewhat heavey, moving it out of the main thread
should help with overhead.
This is the first step to move source code collection onto the background
thread. The next step will be to turn the current source code collection
into a processor.

@basepi can you have another look at this one? Would love to hear your opinion specifically on the new processor and how the hardcoded processors work
https://github.com/elastic/apm-agent-python/pull/607/files#diff-45cc225314a432104edab9aeed0b5c2aR234-R252
https://github.com/elastic/apm-agent-python/pull/607/files#diff-a16d47fe7d0f7cec237390038b9cd86bR122-R123


Fix radiotherm I/O inside properties

Description:
This fixes Radiotherm doing I/O inside the entity properties.
See #4210 for more info.
Thanks to @xehn for reporting.
@xehn, could you test this locally and see if the warnings go away?
Related issue (if applicable): #4210

I replaced (...)homeassistant/components/climate/radiotherm.py with this new version, deleted (...)/homeassistant/components/climate/__pycache__/radiotherm.cpython-34.pyc, and restarted Home Assistant.
I then proceeded to let it run for about 15 minutes or so while I toggled the hvac controls. (drawing bemused looks from the wife and kids.)  The error seems to have vanished from the logs.  Component feels a little more sluggish than usual, but that may just be my perception.  (it's been nice the past few weeks, so I haven't been running the hvac much.)
#4210 as it relates to climate.radiotherm seems to be solved.  Nice work!

Awesome!


Add condition for c2d upon app close

Since Lightning core 2.9.0 containing more GC upon cleanup, closing apps via the close helper in the startapp.js is triggering an issue. Since stage.gl is cleaned, the closing logic tries to clean a 2d canvas which never existed.

Taking a closer look at the current documentation on lightningjs.io, I think we have the info about installing the CLI covered.
Closiing this PR.


Support passing functions to pythran functions

It would be nice to be able to pass function (ideally, pythranized functions) to pythran functions.
This would allow accelerate optimization functions (see http://docs.scipy.org/doc/scipy/reference/optimize.html for examples).

thanks @fsteinmetz for the bug report / feature request!
Just so you know, calling a pythran function as a function parameter of a python function should work nice.
Calling a pythran function as parameter of a pythran function from a pythranized module should work too.
What does not work now is taking a Python function as parameter of a pythran function.
I wonder what kind of signature would be expected, let me propose
#pythran export fool((int -> int))

for  a function named foo that takes a function as first parameter, where the function takes an int and returns an int.
Note that technically, the return type of the first argument could be inferred by pythran, but it looks like a common syntax to declare a function argument.
What do you think?

Thanks for your answer, Serge.

Calling a pythran function as parameter of a pythran function from a pythranized module should work too.

Now I realize that if you have a module foo where you "from bar import bar", pythranizing foo will also pythranize function bar (or not ?). So actually I think it's perfectly fine for my use case: the function to be minimized would be defined in foo, and passed as argument to the minimization function bar. Looks good!
In the case you are referring to,

What does not work now is taking a Python function as parameter of a pythran function.

the python function would (?) not be compiled, so this does not seem very interesting (at least, I can see no obvious use case for that).
So as I understand it now, this issue is not really an issue :)

On Wed, Jun 03, 2015 at 07:40:26AM -0700, François Steinmetz wrote:

Thanks for your answer, Serge.

Calling a pythran function as parameter of a pythran function from a pythranized module should work too.

Now I realize that if you have a module foo where you "from bar import bar", pythranizing foo will also pythranize function bar (or not ?). So actually I think it's perfectly fine for my use case: the function to be minimized would be defined in foo, and passed as argument to the minimization function bar. Looks good!

That's correct, although that's not the most tested feature of Pythran.
report bug if any!
Calling Python function would implie a back-to-the-interpreter mode, indeed. I'm not 100% sure that would be great, there are also potential problems of threading / exceptions etc in that case :-)

For all the above reason, I'm closing the issue :-)


More practices to ask about

We ask about tech handover and bus factor, but we could also ask a question about prevalence of other pracitces. Something like:
"How often do you use:"

version control
continuous integration (maybe "automated build tools")
other things...

With a scale from "Never" to "Always" perhaps?

We already have the question: How are your projects typically tested?
I will try to have a more extended list of possible practices to add

We could also add:
testing, cloud computing, HPC, stuff like that
Maybe on Slack

Did not decided


Issue reading parameter from input mapping

I have an issue reading a parameter from the input (mapping from trigger). I may not use the right expression, but this is what is generated by flogo-web and I can't find a proper example.
Attached is my app flogo.json
flogo.json.zip
And here are the DEBUG logs from execution:
2017-11-21 11:57:50.352 DEBUG [engine] - Received work request
2017-11-21 11:57:50.353 DEBUG [engine] - Dispatching work request
2017-11-21 11:57:50.353 DEBUG [engine] - worker-2: Received Request

2017-11-21 11:57:50.353 DEBUG [engine] - No mapping specified, adding trigger outputs as inputs to action
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: proc_id, Type: string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: version, Type: integer, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: client, Type: string, Value: <IP_ADDRESS>:49500
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: content, Type: string, Value: LEEF:1.0|Extreme Networks|Purview|1.0|Purview Flow|devTime=1467030101	proto=TCPsrc=<IP_ADDRESS> dst=<IP_ADDRESS>	srcPort=50951	dstPort=443	Application=Apple	ApplicationInt=12975 ClientOS=iOS iPhone	ClientOSFamily=iOS	DHCP_ClientIP=<IP_ADDRESS>	ServerIP=<IP_ADDRESS> SwitchType=CoreFlow	uuid=a0379a36
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: hostname, Type: string, Value: purview
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: message, Type: string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: facility, Type: integer, Value: 3
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: tag, Type: string, Value: appid
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: priority, Type: integer, Value: 27
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: timestamp, Type: string, Value: 2017-06-27T14:21:41Z
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: tls_peer, Type: string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: severity, Type: integer, Value: 3
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: app_name, Type: string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr: msg_id, Type: string, Value:
2017-11-21 11:57:50.354 INFO [engine] - In Flow Run uri: 'syslogs_flow'
2017-11-21 11:57:50.354 DEBUG [engine] - Getting Flow: syslogs_flow

2017-11-21 11:57:50.354 DEBUG [engine] - Creating Instance: 796117c4ede01a42f7bcd22ab5a8ee1e
2017-11-21 11:57:50.354 DEBUG [engine] - Input Attributes:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:proc_id, Type:string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.proc_id, Type:string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:version, Type:integer, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.version, Type:integer, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:client, Type:string, Value:<IP_ADDRESS>:49500
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.client, Type:string, Value:<IP_ADDRESS>:49500
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:content, Type:string, Value:LEEF:1.0|Extreme Networks|Purview|1.0|Purview Flow|devTime=1467030101	proto=TCPsrc=<IP_ADDRESS> dst=<IP_ADDRESS>	srcPort=50951	dstPort=443	Application=Apple	ApplicationInt=12975 ClientOS=iOS iPhone	ClientOSFamily=iOS	DHCP_ClientIP=<IP_ADDRESS>	ServerIP=<IP_ADDRESS> SwitchType=CoreFlow	uuid=a0379a36
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.content, Type:string, Value:LEEF:1.0|Extreme Networks|Purview|1.0|Purview Flow|devTime=1467030101	proto=TCPsrc=<IP_ADDRESS> dst=<IP_ADDRESS>	srcPort=50951	dstPort=443	Application=Apple	ApplicationInt=12975 ClientOS=iOS iPhone	ClientOSFamily=iOS	DHCP_ClientIP=<IP_ADDRESS>	ServerIP=<IP_ADDRESS> SwitchType=CoreFlow	uuid=a0379a36
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:hostname, Type:string, Value:purview
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.hostname, Type:string, Value:purview
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:message, Type:string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.message, Type:string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:facility, Type:integer, Value:3
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.facility, Type:integer, Value:3
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:tag, Type:string, Value:appid
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.tag, Type:string, Value:appid
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:priority, Type:integer, Value:27
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.priority, Type:integer, Value:27
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:timestamp, Type:string, Value:2017-06-27T14:21:41Z
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.timestamp, Type:string, Value:2017-06-27T14:21:41Z
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:tls_peer, Type:string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.tls_peer, Type:string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:severity, Type:integer, Value:3
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.severity, Type:integer, Value:3
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:app_name, Type:string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.app_name, Type:string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:msg_id, Type:string, Value:
2017-11-21 11:57:50.354 DEBUG [engine] - Attr:_T.msg_id, Type:string, Value:
2017-11-21 11:57:50.354 INFO [engine] - FlowInstance Flow: &{tibco-simple 0x160acf0 map[1:0x160acf0]}
2017-11-21 11:57:50.354 DEBUG [engine] - Scheduling EVAL on task:

2017-11-21 11:57:50.354 DEBUG [engine] - Executing instance: 796117c4ede01a42f7bcd22ab5a8ee1e

2017-11-21 11:57:50.354 DEBUG [engine] - *** Worker received result: &{map[id:0xc4201601b0 data:0xc420160210 code:0xc420160240] }

2017-11-21 11:57:50.355 DEBUG [engine] - Step: 1

2017-11-21 11:57:50.355 DEBUG [engine] - popped item off queue
2017-11-21 11:57:50.355 DEBUG [model-tibco-simple] - Task Eval: Task[%!d(string=1)]:''

2017-11-21 11:57:50.355 DEBUG [model-tibco-simple] - Has Children

2017-11-21 11:57:50.355 DEBUG [model-tibco-simple] - Task Enter: Log Message

2017-11-21 11:57:50.355 DEBUG [engine] - FromInstLinks: task=0x130c210

2017-11-21 11:57:50.355 DEBUG [model-tibco-simple] - Task Ready

2017-11-21 11:57:50.355 DEBUG [engine] - Scheduling EVAL on task: Log Message

2017-11-21 11:57:50.355 DEBUG [engine] - Step: 2

2017-11-21 11:57:50.355 DEBUG [engine] - popped item off queue
2017-11-21 11:57:50.355 DEBUG [engine] - Applying InputMapper
2017-11-21 11:57:50.355 DEBUG [engine] - AddAttr - name: {Error.type}, type: string, value:mapper

2017-11-21 11:57:50.355 DEBUG [engine] - AddAttr - name: {Error.message}, type: string, value:invalid resolution expression [${severity}]

2017-11-21 11:57:50.355 DEBUG [engine] - Done Executing A.instance [796117c4ede01a42f7bcd22ab5a8ee1e] - Status: 700

2017-11-21 11:57:50.355 DEBUG [engine] - worker-2: Completed Request

I also noticed this line
2017-11-21 11:57:50.353 DEBUG [engine] - No mapping specified, adding trigger outputs as inputs to action
which is strange as I have a trigger to action mapping defined in my app json ....

Your trigger should be using the NewInitialContext function

Indeed this was the source of the issue.
Thanks Matt !
Closing the issue


Return false if element is null to handle webcomponentsjs polyfill.

Fixes #274
I hope this is what you had in mind.

Hi, I'd like to stop using a clone of this repository if possible. Any chance of this getting merged? Thanks.

This looks right to me– a simple, crucial fix.  Would love a release!

Ah my bad! I totally forgot.  Merging now...

Thanks much!

I will publish a new tag here and on npm and on the mousetrap site in a few minutes


Release Google.Cloud.Redis.V1Beta1 version 3.0.0-beta05

Changes in this release:
New features

Add IServiceCollection extension methods for client registration where an IServiceProvider is required. (commit 022fab2)

Created release for Google.Cloud.Redis.V1Beta1-3.0.0-beta05

This succeeded the first time around. The failure is because the release was attempted twice.


How To: Build extensible app ?

Hi,
I'm trying to figure it out how to make my app extensible.
I understand that export  sub components  from a single-file component is not possible.
(named exports are not supported in *.vue files says vue-loader)
So, what is the best way to expose my app's internal components to be extended by others ?
Could it be done from  /src/renderer/main.js ?
Thank you for your help.

I'm not entirely sure what your asking, but if vue-loader doesn't support it, then I'm not sure how much further this boilerplate could take you.

I would like to provide a way for one to develop his own extension/plugin for my application.
This extension/plugin needs to be loaded at runtime
If you have any suggestion how to do this in a electron/vue way

https://github.com/zeit/hyper has such plugin system.

There isn't really a specific way to accomplish this with Vue. Remember everything is always JS in the end. Closing this as it isn't a direct issue with electron-vue. Feel free to continue discussing, but like @develar mentioned, I would also take a look at what they are doing.


add the possibility that a person can go to the second nearest store

as said in the commit message, i add possibility that a person can go to the second nearest store.
this possibility is implemented by a probability that a person chooses the nearest store or not, I named it "PROB_PREFERENCE_STORE" and it setted on 0.7 in the main.
the current structure of the code  assign one store per household once and for all. maybe we need to remove "store house construction" from "get_environment_simulation", and put it in the loop, so we add flexibility for a person to change its store from one day to an other  if he want

Thanks for complying to unit tests. It has been merged. I'll start work on simple transportation model using HOUSE <-----> WORKPLACE line intersections, with a default of 3 persons that can be contaminated or something like that

Currently making this behavior more dynamic. We store all K-nearest stores and then choose where to go at run.


Can't get redirect to work with aspx-file extension

Hi. Not sure if this is an issue or just me not configuring correctly.
In our production environment I can't get the redirecting to work with the .aspx-extension, it works as expected without file extension.
I get this working in my local environment though, and comparing web.configs I can't see any differences.
errorMode is set to Custom and existingResponse to Replace.
Any ideas?

It is worth to check if you  have redirects inside web.config. If yes, ensure those rules accommodate with 404handler entries.

I have a site where I have redirects from .aspx to other page and it works fine. Maybe take a look at your other configuration.
Do you use the latest version?

Ok. I upgraded from 11.0.0 to 11.1.5 and it started working. I haven't investigated further.

You should upgrade to the 11.1.6 once it will be available (I pushed the package to the nuget.episerver.com just now). This version includes several other bug fixes.


chmod, ls, uucore: Make chmod display human-friendly permissions

when --changes or --verbose is given, like GNU chmod. Using on ls' code, which I moved to uucore.

Travis seems to still be failing on macOS.

Assuming the build succeeds on Windows, can you squash those commits?

I squashed the macOS fixes. Do you want me to squash the other commits as well?
And I didn't test on Windows (I don't have one to test on).

It's fine to just squash the ones you did.  I think this should be good to go when the Appveyor CI works again.

Thanks :)


x keeps being held down

as soon as I plug it in it just holds down x

have you solved the problem yet? im making one i rly need to fix this problem


Namespace packages don't work

pip install --target which this plugin uses has issues with namespace packages as @marcoromelli observed in #3.

There are some ideas in https://github.com/pypa/pip/issues/1924 that could help. Would probably need a helper script that has to explicitly be imported however :cry: (similar to unzip_requirements.txt)

Hey 👋 I'm closing this ticket as it looks like it's heavily outdated, we can of course reopen it if needed 👍


Possible Fix for "Invalid property 'node'" in NPM version 10.9.0 and above

NPM version 10.9.0 introduced a breaking change by forcing a check on the 'devEngines' node entry in a 'package.json' file. (This is essentially a schema change.)
For NPM versions 10.9.0 and above, any npm operation will error on this projects 'package.json' file with a cryptic "Invalid property 'node'" error.
As of December 2024, this occurs on the 'package.json' file in this project due to the presence of the 'devEngines' node on line 225.
The fix is to simply rename the 'devEngines' node to 'engines' in the 'package.json' file, or possibly remove the node entirely, since it may not serve a practical purpose with the specified versions.
Please see:
https://stackoverflow.com/questions/79204945/why-does-npm-keep-giving-out-invalid-property-node

Thanks @DaveStoneDotNet for the issue.
I'm working on it, but there are A LOT of dependencies to update in the meantime, and it's a bit of a struggle.
But your suggestion was ok and will be merged soon i suppose.


Update cudf integration based on cudf 0.9 cuda_array_interface

Note: This will change the __cuda_array_interface__ of the mask as the typestr will be <t1 and the size will be the number of bits as opposed to the number of bytes. I'm unsure of the downstream changes that may be needed to handle this.

So we will require cudf >= 0.9?

So we will require cudf >= 0.9?

Yes, this will only work with cudf >= 0.9.

Thanks.  Let me try it and change c++ layer in a few days.

Thanks. Let me try it and change c++ layer in a few days.

Let me know if I can be of any help or I can answer any questions / concerns.


bpfd-agent: does not work on multiple node

As bpfd-agent reconciles single shared ebpfprograms, it does not work on multiple k8s node.
Here is an example scenario which conflicts UUID:
0. deploy multiple nodes and bpfd
$ kubectl  get pod -n kube-system -l name=bpfd-daemon
NAME         READY   STATUS    RESTARTS   AGE
bpfd-mhhbp   2/2     Running   0          78m
bpfd-p89v9   2/2     Running   0          130m

1. create xdp program via ebpfprogram
$ kubectl apply -f ./packaging/kubernetes-deployment/sample-ebpfprograms/xdp-pass.yaml
ebpfprogram.bpfd.io/ebpfprogram-sample created

2. ebpfprogram gets uuid with 55e33258-fbee-420b-b92f-1db66febe5b8
$ kubectl   get ebpfprograms -o yaml |grep uuid
      bpfd.ebpfprogram.io/uuid: 55e33258-fbee-420b-b92f-1db66febe5b8

The uuid is from one bpfd-h9b76, while another bpfd (bpfd-pxnl5) gets different uuid which is 7a77e6ec-0d6a-42ae-9e67-f046d8afefea but ebpfprogram does not have the record.

bpfd-h9b76 logs

$ kubectl   -n kube-system logs bpfd-h9b76 -c bpfd-agent  |grep uuid
2022-11-14T08:19:44.303950Z DEBUG reconciling object{object.ref=EbpfProgram.v1alpha1.bpfd.io/ebpfprogram-sample.default object.reason=error policy requested retry}: bpfd_agent::bpfd_agent: Loaded program via bpfd, uuid: 55e33258-fbee-420b-b92f-1db66febe5b8 attach_point name eth0

bpfd-pxnl5 logs

$ kubectl   -n kube-system logs bpfd-pxnl5 -c bpfd-agent  |grep uuid
2022-11-14T08:19:44.304069Z DEBUG reconciling object{object.ref=EbpfProgram.v1alpha1.bpfd.io/ebpfprogram-sample.default object.reason=object updated}: bpfd_agent::bpfd_agent: Loaded program via bpfd, uuid: 7a77e6ec-0d6a-42ae-9e67-f046d8afefea attach_point name eth0

3. Delete ebpfpgram
Since bpfd-pxnl5 has another UUID, it fails to unload the program due to Invalid ID.
$ kubectl delete ebpfprogram --all

$ kubectl   -n kube-system logs bpfd-pxnl5 -c bpfd-agent
  ...
2022-11-14T08:24:58.699455Z ERROR bpfd_agent: reconcile failed: ReconcilerFailed(EbpfProgramLoadFailed(Status { code: Aborted, message: "Invalid ID", metadata: MetadataMap { headers: {"content-type": "application/grpc", "date": "Mon, 14 Nov 2022 08:24:58 GMT", "content-length": "0"} }, source: None }), ObjectRef { dyntype: ApiResource { group: "bpfd.io", version: "v1alpha1", api_version: "bpfd.io/v1alpha1", kind: "EbpfProgram", plural: "ebpfprograms" }, name: "ebpfprogram-sample", namespace: Some("default"), extra: Extra { resource_version: Some("18786"), uid: Some("e21c57cd-2927-439d-bef2-2eb688aa4903") } })

Another scenario which does not work

When adding a new node, the Creation event does not happen so the new node does not load the eBPF program.

Hey there @nak3!! Thanks for noticing this :)
For the initial POC of bpfd in K8s we started small just to get things up and running on a single noded. @Billy99 and I are in the process of redesigning the K8s deployment as described in
https://github.com/redhat-et/bpfd/pull/197
which should fix this issue!
I'll try and put more of the design details in this issue

Thank you! https://github.com/redhat-et/bpfd/pull/197 looks great and I agree that it solves this issue.
Please feel free to close here if it is not necessary.

All good I think this a good issue to continue tracking what we're working on :)

Tracked in #224 Thanks @nak3!! I would appreciate any feedback you may have on that issue or any of the linked PRs :)


multi: mailbox metrics

Extract prometheus config so that it can be used more generally & get metrics for number of active mailboxes

cc @guggero


[Application]

X-Team Initiative Application
Whats your Discord Handle

@rbrtbrnschn#0303

I want to participate as

[x] Developer
[ ] Designer
[ ] Tester
[ ] Writer

What are you skills? (Programming languages and/or other tools)
Please arrange your skills along with experience.

proficcient in MERN Stack
decent with mysql(mariadb)
experience in ruby, python3, java, flutter/dart etc.
love bash and scripting

Describe yourself in a few sentene

dev through and through
studying computer sciences in Dresden, Germany
been coding for 2 years now (22 y/o)

Why do you like to join the Identity X-Team?

Currently working as lead front end dev for the identity project lead by Adam Eunson.

Welcome!