does not work when called from a launchagent

I feel like I used dockutil in agents in the 10.9 days.  Went to use from an agent with 2.0.2 and 10.11 and could not get it to work.  Upgraded to 2.0.3 still not working.  Tried umpteen variations of how to identify the currently logged in user in the script, never could get it to work.  During troubleshooting i figured out i could get the dockutil statement to work in a LaunchAgent if i assigned the statement to a variable
this does not work
/usr/local/bin/dockutil --add /Users/$USER/Downloads --display folder --section others
for reasons i don't understand this does work
doit=/usr/local/bin/dockutil --add /Users/$USER/Downloads --display folder --section others

doit=/usr/local/bin/dockutil --add /Users/$USER/Downloads --display folder --section others

the back ticks around the assignment of the statement to $doit are doing something weird to the text and not showing up as backticks when i hit the comment button.  There are supposed to be backticks around
/usr/local/bin/dockutil --add /Users/$USER/Downloads --display folder --section others

damn, it sure was hard to get the back ticks to show up in the comment field

Could you show the whole launch agent and script (if using a script).

AGENT:

Label
edu.vcu.sota.dockfixer
ProgramArguments

/Library/Scripts/dockfixer.sh

RunAtLoad

SCRIPT:
#!/bin/bash
doit=/usr/local/bin/dockutil --add /Users/$USER/Downloads --display folder --section others
exit 0

Yeah I don't understand why the backticks would make a difference unless $USER isn't set except in subshells, but that seems odd.
You could log $USER or the whole command.
And turn on verbose and log the output of dockutil.
Another workaround would be to use ~/Downloads.
Kyle
Sent from Mobile

On Jul 5, 2016, at 8:42 AM, JohnAltonen<EMAIL_ADDRESS>wrote:
AGENT:

Label
edu.vcu.sota.dockfixer
ProgramArguments
/Library/Scripts/dockfixer.sh
RunAtLoad
SCRIPT:
#!/bin/bash
doit=/usr/local/bin/dockutil --add /Users/$USER/Downloads --display folder --section others
exit 0
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

tried all that, logging $USER, current_user=$(stat -f '%Su' /dev/console), using ~/Downloads, no worky.  Is it just me ?  This is working for others ?  Trigger with an agent, agent/script ?

This is a shell script issue and backticks or the equivalent are needed if executed this way. Closing this while doing housekeeping of issues.


Call Close when mss is closed

There are various instances in which media stream source closed event gets called:

When MediaSource.Dispose is called
When GC swings by
By the MF itself

This makes us clean up the ffmpeg media source when the closed event gets called. This should make it easier to manage memory, instead of manually calling Dispose on ffmpeg media source.

I had this idea before, but I dumped it for the following reasons:

Although media has stopped, one might still want to access the FFmpegMediaSource (and check streams, etc). Not sure if that makes sense, but it is possible right now and would fail with the change.
We would have to handle multiple Close() calls correctly without crashing. Currently, there can only be one.
I have not tested this, but maybe it's even possible to open a MSS multiple times in a row (switch forward and backward between mutiple opened files)? Disposing on Close would be a bad idea in that case.
What happens if opening fails or playback error occurs? Can we automatically handle these cases as well? An automatic solution that does not work for all cases is not a good idea.

You bring up some good points:

Although media has stopped, one might still want to access the FFmpegMediaSource (and check streams, etc). Not sure if that makes sense, but it is possible right now and would fail with the change.

This could be solved with a creation flag, which can tell if the closed event should also dispose the ffmpeg media source.

We would have to handle multiple Close() calls correctly without crashing. Currently, there can only be one.

Really? That's not good, we should probably fix that regardless of how this goes.

I have not tested this, but maybe it's even possible to open a MSS multiple times in a row (switch forward and backward between mutiple opened files)? Disposing on Close would be a bad idea in that case.

I think the MediaPlaybackList is sort of doing this internally. However, this can also be fixed with the creation flag. I personally never tried this. It is cleaner to just recreate the stream source.

We would have to handle multiple Close() calls correctly without crashing. Currently, there can only be one.

Really? That's not good, we should probably fix that regardless of how this goes.

What I ment is that currently, Close() will only be called once. We need to be sure that it can be called multiple times as well, without causing trouble.
Using a config flag might be an option.

I just read this about MediaStreamSource.Closed event:

Upon receiving this event, the application should remove all of its event handlers from the MediaStreamSource object, and refrain from further use of this instance of the MediaStreamSource object.

https://learn.microsoft.com/en-us/uwp/api/windows.media.core.mediastreamsource.closed?view=winrt-22621
This sounds like Closed will only be called once, and we should completely stop handling it. If that is true, we could really safely dispose upon receiving the event.
Do you have an app that uses MediaPlaybackList and allows to test this scenario? Like creating a playback list and skipping forward/backward or looping it, to check if Closed is raised during these scenarios?

I don't have a MediaPlaybackList that loops, mine is lazy loaded, but I can do one very easily.
Speaking of which, I'm planning of open sourcing my apps (both windows and android), if you're interested in joining efforts.
My use case was to prevent having to dispose both the ffmpeg media source and the MediaSource(uwp) separately. When calling the UWP MediaSource Dispose method, the media stream source does get a Closed event. This will work very well with the other PR to keep the MediaStreamSource alive via strong reference.

Speaking of which, I'm planning of open sourcing my apps (both windows and android), if you're interested in joining efforts.

That sounds interesting. Not sure if I have the capacity for that, but I might look into it.

My use case was to prevent having to dispose both the ffmpeg media source and the MediaSource(uwp) separately. When calling the UWP MediaSource Dispose method, the media stream source does get a Closed event. This will work very well with the other PR to keep the MediaStreamSource alive via strong reference.

When I switch files on our sample app (without MediaPlaybackList), I do get a Closed event, as soon as the next file is opened. So for that scenario, automatic cleanup seems to work, without having to call any Dispose() method at all. I think I will cherry pick this changeset into the other PR, so we can test this all together in one branch. These really belong together.

That sounds interesting. Not sure if I have the capacity for that, but I might look into it.

No worries, this has all been my side project to keep up with newer techs since at work we are using more mature stacks.

When I switch files on our sample app (without MediaPlaybackList), I do get a Closed event, as soon as the next file is opened. So for that scenario, automatic cleanup seems to work, without having to call any Dispose() method at all. I think I will cherry pick this changeset into the other PR, so we can test this all together in one branch. These really belong together.

Probably because the CPP samples automatically deletes the playbackitem when it goes out of scope.
I have a CS app, so that doesn't happen automatically, I need to manually call Dispose.

When I switch files on our sample app (without MediaPlaybackList), I do get a Closed event, as soon as the next file is opened.

Just tried again and I did not get Closed. Last time it seemed to work even in the C# sample. Seems that was coincidence. Closed only seems to come after GC, that's too bad. I thought we could get fully automatic memory management...

So for C#, this is purely a convenice thing, to not have to keep track of both the FFmpegMediaSource and the  MediaPlaybackItem.
In C++ it should be both convenient and automatic.

Closing this, since it is included in #320


feat(jsdoc): add more checks to valid-jsdoc rule

BREAKING CHANGE: Added stricter options from http://eslint.org/docs/rules/valid-jsdoc

To enumerate the actual changes here:

When documenting function parameters, you must now use @param instead of @arg or @argument. Previously any of the three would be accepted.
When documenting a class constructor, you must now use @constructor instead of @class. Previously either would be accepted.
When documenting an abstract class, you must now use @abstract instead of @virtual. Previously either would be accepted.
When documenting a function parameter, return value, etc. of type boolean, number, object, or string, you must use those names. The names of the corresponding wrapper types -- Boolean, Number, Object, and String -- are no longer allowed.
The documentation for each parameter must include a description.
If you document a return value for your function, your documentation must include the value's type and a description.

Note that JSDoc comments are NOT required. That's the require-jsdoc rule, which wasn't enabled before this change and still isn't enabled after this change.

All sounds good to me!

@cwillisf I meant to include require-jsdoc as a warning but it doesn't seem to be warning. Did you happen to look at why that is?

Looks great to me. Thanks @cwillisf


apiv2(ticdc):  set log level

What problem does this PR solve?

Issue Number: ref #8019
What is changed and how it works?
set log level api v2
Check List
Tests

Unit test
Integration test

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`.

/run-integration-test

/merge


Any chance of an AngularJS port?

Hi,
Thanks for this great widget. I was wondering if you consider porting it to AngularJS. I currently use it with Angular already, but the implementation is a bit of a hack I must admit. :-P I don't think I can remove all the jQuery dependencies without knowing the source as well as you do.

Closing issue - I moved on ;)


Rename MoveItControllerManager

Description
We had a talk about what is confusing with MoveIt controller managers in July. The only action item that came out of it was renaming MoveItControllerManager->Ros2ControlManager and MoveItMultiControllerManager->Ros2ControlMultiManager.
The reason for this is to distinguish these 2 options from the MoveItSimpleControllerManager, which is a basic action interface and should be used when ros2_control isn't involved.
Merge with...
moveit2 PR: https://github.com/ros-planning/moveit2/pull/1601

Closing in favor of #531 (I actually forgot I had already started this PR)


Added TPMN Markdown

Added TPMN Markdown

Hi, happy holidays and happy new year. Our team would like to ask when this branch would be merged in order to be posted on prebid.org download page. If we are missing out any procedure, please let us know. Thanks in advance!


js base and js debugging tutorial conflict

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable
in there, a type should be added : bigint

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/declare-javascript-variables

Nice catch! It looks like we've got an open PR that will resolve this.


Nginx conf suggestion (seems not to be working: 404 not found)

Hi,
I have found this nginx conf, that should work.
I am no more facing 502 errors, but I still have  404 Not found error with ttyd.
server {
        listen 80;
        server_name cow.s1gm4.eu;
        return 302 https://$server_name$request_uri;
}

server {
        listen 443 ssl;
        server_name cow.s1gm4.eu;
        ssl_certificate /etc/letsencrypt/live/meissa.s1gm4.eu/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/meissa.s1gm4.eu/privkey.pem;
        location / {
                proxy_pass http://localhost:5000;
        }
        location ^/ttyd/([0-9]*)/([\s\S]*) {
		proxy_pass http://<IP_ADDRESS>:$1/$2;
        }
}

I am also working on an alternative method: running CoW in a docker container, that runs with Apache.
That's quite overkill, but it can be easier to configure, and avoid trick nginx conf...

Thank you for the nginx config, please let me know if you manage to have it work. (Wild guess: did you try swapping the two location statements?)
Regarding docker, a potential issue is to be able to run firejail within docker: since they use the same kind of process isolation, I'm not sure whether they can be nested.

Hi, there.
As member of S1GM4.eu, (resp. civile agains French Law), I wanted to inform You, as @fpom @UnivParisSaclay, that I am currently being in 'adminsys' verification, that my own 'personnal' (as funder) +infra (@VpsLabs, @FirstHeberg, @Oracle_Cloud, etc.), that I own currently.
Thank you for your special attention ;-)
@UncleSamulus @GitHub. - aka "OrnithOrtion".


Can you have selective virtuals?

Is it possible to choose which virtuals to return to JSON? At the moment it seems as if it is globally on or off, could it be more granular?

Not possible currently. It's not a very requested feature, so unless you want to contribute it, I don't think anyone else will work on it.

Doesn't the Visibility plugin cover this?

Not sure. Both override toJSON so that could cause problems since this question is specifically about converting models to JSON.


Increase tests coverage for doc reporter

I am adding 6 new test scenarios for the doc reporter. Ive attempted to cover what I can, more are required.
Coverage diff:

Hope it helps

Changes Unknown when pulling<PHONE_NUMBER>a566b58805fb9b0cfd7a51fd3d6cbf on craigtaub:improveUnitCoverage into ** on mochajs:master**.

Changes Unknown when pulling b8a62376c97e86ed4e81e9bd7682926ea7587a76 on craigtaub:improveUnitCoverage into ** on mochajs:master**.

Changes Unknown when pulling 3d154c0f437c6b97fbc7c58dda1d47779b832c72 on craigtaub:improveUnitCoverage into ** on mochajs:master**.

Changes Unknown when pulling 3d154c0f437c6b97fbc7c58dda1d47779b832c72 on craigtaub:improveUnitCoverage into ** on mochajs:master**.

Changes Unknown when pulling f17245f7af0b0fb3e03dbffd1a2754b3e721c6e9 on craigtaub:improveUnitCoverage into ** on mochajs:master**.

Awesome stuff! Thank you for helping with improving the test coverage, even though coveralls doesn't quite get it apparently :)


internal/e2e: refactor e2e tests

Now we have a the full set of xDS e2e tests, refactor file names to
match.
Signed-off-by: Dave Cheney<EMAIL_ADDRESS>

It is now much clearer!


Beta: files / jspm/files have no effect

Don't know if the non-beta version also have this problem.
UPDATE: Confirm it only exists in beta.
At least not on<EMAIL_ADDRESS>+<EMAIL_ADDRESS>I have a package that has the following:
// package.json
{
  "files": [
    "dist/",
    "typings.json"
  ],
  "jspm": {
    "files": [
      "dist/",
      "typings.json"
    ]
  }
}

When I install it, neither have effect and I still get the whole repo under jspm_package/bit/<mypackage>/.
(bit is the registry created with jspm-git)

Hi @unional, as jspm-git downloads only the package but the post processing like filtering files is done by jspm you need to report your issue there.
As a small ceveat, using the files property will only safe some disc size but it won't make the download faster as first everything gets downloaded and then afterwards jspm removes the unneeded files. So if your goal was to improve download speed you should host your "dist" version of your package in a separate repo.

Oh sorry just saw that you've created already an issue there. Closing this one here in favor of https://github.com/jspm/jspm-cli/issues/1699


Make cert-manager use only recursive nameservers since authoritative ones cannot be reached directly from private cluster

Towards https://github.com/giantswarm/roadmap/issues/2200, replaces the invalid PR https://github.com/giantswarm/config/pull/1660
What this PR does / why we need it
cert-manager goes through the NS record of the zone and directly contacts the listed nameservers. That doesn't work on private clusters, since they cannot reach the public Internet directly. Instead, use the recursive nameservers, i.e. a regular DNS lookup with /etc/resolv.conf settings.
Checklist

[x] Update changelog in CHANGELOG.md.

Trigger e2e tests
/test create
/test upgrade

/test create
/test upgrade

/test create

/test create
/test upgrade


Serialize NewStruct(u64) as string in JSON, but binary in BinCode.

I need following behavior: a struct UserId(u64); needs to be serialize u64 as string (hexadecimal number) in JSON (for readable logs) but use binary u64 number when using BinCode (for compact/fast transmission).
Is there a way I could branch Serialize impl based on Serializer type?

Check serializer/deserializer with is_human_readable() and serialize/deserialize your struct accordingly

Exactly what I was looking for.


Process.runSync() sometimes returns wildly inappropriate exit codes

We (Flutter) run uname -m as part of our CI automation.
Every now and then, this exits with a non-zero exit code (though the program still runs and gives correct useful output). However, at least in the one time we've so far seen the exit code, it was outside the expected range of -255..255, it was<PHONE_NUMBER>.
Logs:
https://ci.chromium.org/ui/p/flutter/builders/try/Linux framework_tests_widgets/10782/overview
Source (where we call uname):
https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/base/os.dart#L271
I followed this code all the way to Dart's runtime/bin/process_linux.cc but then got lost. I didn't see anything between the os.dart code above and runtime/bin/process_linux.cc that could explain the value being outside the expected range.

what target system do you see this kind of flakiness, I ran the following code in a loop on my linux workstation and it always seems to return an exit code of 0.
import 'dart:io';

main() {
  final ProcessResult result =
    Process.runSync('uname', <String>['-m']);
  if (result.exitCode != 0) {
      print(
          'Encountered an error trying to run "uname -m":\n'
          '  exit code: ${result.exitCode}\n'
          '  stdout: ${result.stdout.trimRight()}\n'
          '  stderr: ${result.stderr.trimRight()}\n'
          );
   } else {
      print('  exit code: ${result.exitCode}\n'
              '  stdout: ${result.stdout.trimRight()}');
   }
}

Where I saw it was on the Linux CI in Luci. I don't know how common it is or what the cause could be.


Desktop Runtime EnumerateMemoryRegions Never includes JIT Heaps

In https://github.com/Microsoft/clrmd/blob/18dd6649d85da782617dd73002cdb39d4940c9db/src/Microsoft.Diagnostics.Runtime/src/Desktop/V45Runtime.cs#L331-L332
Only Unknown heap types will be returned by EnumerateJitHeaps, and EnumerateMemoryRegions ignores unknown heaps. So I'm guessing that's supposed to be ==.

Though I guess it doesn't matter much because SOS returns nulls for the heap regions 😩

It's because it's returning pointer to the first field of the heap, I guess; subtracting one pointer from the address for loader heap types allows it to correctly return the heap's allocation.
Also this:
https://github.com/Microsoft/clrmd/blob/18dd6649d85da782617dd73002cdb39d4940c9db/src/Microsoft.Diagnostics.Runtime/src/Desktop/V45Runtime.cs#L336-L337
Should be indexing with j

Not a ClrMD bug, but I will investigate fixing this in the CLR runtime in the future.  Leaving this issue open to remind me to go take a look.

This is tracked via https://github.com/dotnet/diagnostics/issues/1108.


Roll engine 9970fb550071..d8a2a55a647c (1 commits)

https://github.com/flutter/engine/compare/9970fb550071...d8a2a55a647c
git log 9970fb5500710471c031cb86f899bfc3f4a6bafd..d8a2a55a647cc03ed141851a0f89bb298c7c748b --no-merges --oneline
d8a2a55a6 Roll src/third_party/skia 9d10206b7add..5bee533ef3a3 (4 commits) (flutter/engine#8587)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop
the roller if necessary.

Trybots failed. These were the failed builds: https://cirrus-ci.com/task/4775497757097984

Commit queue failed; closing this roll.


Created Stack using Linkedlist

Hey @squirrel129 !
Great.
You can follow this repository for further updates.
Have fun!


Review superclass for chronic mucocutaneous candidiasis

Mondo term (ID and Label)
chronic mucocutaneous candidiasis
-- this term comprises mainly Mendelian diseases
-- however, it is not a subclass of inborn errors or immunity

The entire IEI subhierarchy needs to be revised!

@pnrobinson : I made 'chronic mucocutaneous candidiasis' a subclass of 'inborn errors or immunity'.
Please let me know if there is anything else to be done for this issue (except for the revision of the subhierarchy of IEI, which will be done separately). Thank you!


Update matrix-bot-sdk to latest and Node to v18

Node version changes are usually safe as long as we test it on staging first, and bot-sdk requires at least v16.

I suspect Monday has passed and we can now do this.


grunt serve:dist results in JST not defined

This error I haven't been able to come up with a fix for (gnarly Grunt File!)

This error was due to a mixup in grunt task order. It should be fixed now in the new release

Awesome!! Thank you so much! We backed up our current build and are yeogurt-ing the new release now!


Merge in less-sensitive updates from the project template

What was wrong?
The project template was updated. This is to merge in many of the changes from it.
Because there are so many changes, this PR is only for files that do not touch dependency or python versions (except for adding pydocstyle). Those will be done separately.
Files that need updating in following pr:

setup.py
tox.ini
mypy.ini
.circleci/config.yml

[x] Add entry to the release notes

Cute Animal Picture

Got it. Sounds good to me! Thanks again!


native code output

Question
Hello!
Been following this crate off and on, great work!
So, also been poking around every now and then at your native code generators.  Now, from various issues #30 and internals thread, I thought that this wasn't a wasm targetting compiler, but was being considered, in some distant future, for a different rustc backend, which would entail native code generation and executable generation for say, x86 at the very least.
Now, hopefully I'm not barking up the wrong tree, but it does appear that there are, for example, arm and x86 asm emitters; if this is the case:

What are your plans for outputting object files?

I ask, because it just so happens that I finished a working prototype for a pure rust object file emitter (emphasis mine). The repo is here (but be warned, it is really, really rough, and certain things are hardcoded at the moment)
Wow cool! But what do I mean exactly?
Intro
Here is a working snippet for x86_64 (working as in it is code that compiles, runs, and outputs a correct object file):
// try this for dynamically linked file
// ld -e _start -I/usr/lib/ld-linux-x86-64.so.2 -L/usr/lib/ /usr/lib/crti.o /usr/lib/Scrt1.o /usr/lib/crtn.o test.o -lc -o test
fn run () -> error::Result<()> {
    for (i, arg) in env::args().enumerate() {
        if i == 1 {
            let mut obj: Elf = Artifact::new(Target::X86_64, Some(arg.to_owned()));
            // 55	push   %rbp
            // 48 89 e5	mov    %rsp,%rbp
            // b8 ef be ad de	mov    $0xdeadbeef,%eax
            // 5d	pop    %rbp
            // c3	retq
            obj.add_code("deadbeef".to_owned(), vec![0x55, 0x48, 0x89, 0xe5, 0xb8, 0xef, 0xbe, 0xad, 0xde, 0x5d, 0xc3]);
            // main:
            // 55	push   %rbp
            // 48 89 e5	mov    %rsp,%rbp
            // b8 00 00 00 00	mov    $0x0,%eax
            // e8 d4 ff ff ff	callq  0x0 <deadbeef>
            // 89 c6	mov    %eax,%esi
            // 48 8d 3d 00 00 00 00	lea    0x0(%rip),%rdi # will be: deadbeef: 0x%x\n
            // b8 00 00 00 00	mov    $0x0,%eax
            // e8 00 00 00 00	callq  0x3f <main+33>  # printf
            // b8 00 00 00 00	mov    $0x0,%eax
            // 5d	pop    %rbp
            // c3	retq
            obj.add_code("main".to_owned(), vec![0x55, 0x48, 0x89, 0xe5, 0xb8, 0x00, 0x00, 0x00, 0x00, 0xe8, 0xe2, 0xff, 0xff, 0xff, 0x89, 0xc6, 0x48, 0x8d, 0x3d, 0x00, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0x00, 0xe8, 0x00, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0x00, 0x5d, 0xc3]);
            obj.add_data("str.1".to_owned(), b"deadbeef: 0x%x\n\0".to_vec());
            obj.link("main", "str.1", 19); // offset we need to relocate some data in main
            obj.import("printf".to_owned());
            obj.link_import("main", "printf", 29); // offset we need to relocate an import in main
            println!("res: {:#?}", obj);
            obj.write(::std::fs::File::create(Path::new(&arg))?)?;
        }
    }
    Ok(())
}

So, for the current form, the client basically specifies a Target, and a name, and the type determines the container format, in this case, ELF:
let mut obj: Elf = Artifact::new(Target::X86_64, Some(arg.to_owned()));

Raw intel x86_64 asm code can then be appended to this object, via:
obj.add_code("deadbeef".to_owned(), vec![0x55, 0x48, 0x89, 0xe5, 0xb8, 0xef, 0xbe, 0xad, 0xde, 0x5d, 0xc3])

which adds the function deadbeef with the associated, routine to the object file.
As you can see above, imports can be added, and relocations can be added (more on this later).
The call to write then emits, in this case, a correctly formed, and eminently linkable ELF64 object file.
If you ran this code and gave it the name test.o, and then ran (on my linux system):
ld -e _start -I/usr/lib/ld-linux-x86-64.so.2 -L/usr/lib/ /usr/lib/crti.o /usr/lib/Scrt1.o /usr/lib/crtn.o test.o -lc -o test

a dynamically linked executable that calls printf called test would be produced, which prints (in this case): "beef: 0xdeadbeef"
API
If this interests you (you could test your x86 code gen pretty much right now, with some caveats, which i won't get into right now), let me know, as:

I'd like to work out what in particular a simple, but nice generic compiler API would look like for you. The above is experimental, and probably won't work for certain cases, or perhaps not; but this is part of the discussion I'd like to have! API Tracking issue
More difficultly, I'd like to work out how best to do relocations in a, perhaps brazenly, a platform agnostic fashion, for use in a number of other projects. Relocation Tracking issue

Right now 2. may be too much to bite off at once (and the plan is always to give the API an escape hatch and provide compiler writers a direct relocation insertion api), but i do think something like it would be beneficial, and very cool.
So let me know what you think, or if this isn't appropriate for you at all right now, I'll be sad, but that's ok too! :dancer:

This is really cool! We definitely want to be able to emit native object files, and at first glance this looks like the kind of library we want for it.
I'll take a closer look at the API in a few days. So far it looks like a good start!

I built a skeleton wasm2obj tool as a way to start experimenting with this, using wasm2cretonne, cretonne itself, and faerie to translate the output to native object files. It's still quite incomplete; I haven't implemented any relocations yet, but it can handle simple cases. Here's an example of it in action. (Note that Cretonne's x64 support is also under development, so the code isn't yet as sophisticated as it eventually will be.)
My code for this is here (for now):
https://github.com/sunfishcode/wasm2cretonne/blob/wasm2obj/src/wasm2obj.rs
https://github.com/sunfishcode/wasm2cretonne/blob/wasm2obj/lib/wasm2obj/src/emit_module.rs
So far, the faerie API is quite easy to use. The most inconvenient part is the lifetime of the strings used for the names in add_code. I have names that aren't static strings, and it's not immediately clear how to give them the appropriate lifetimes.

Also, to specifically address your concerns above, while wasm is getting a lot of attention right now, and wasm2cretonne is currently the most complete front-end for cretonne, we're definitely aiming for cretonne to be a general-purpose tool suitable for non-wasm things, such as new backends for rustc :-).

... wow... this is amazing work, and so fast! I didn't realize you were (could) going from wasm -> cretonne (and then cretonne -> native), this is really cool!  For some reason I only thought it was cretonne -> wasm/native.
I see the lifetime issue, here: https://github.com/sunfishcode/wasm2cretonne/blob/b871b135af034880004f1a4b71f48002b58a404a/src/wasm2obj.rs#L105
I believe.
I didn't predict that kind of use; in the meantime (who knows may stay this way), to ease testing and prototyping, I've switched artifact to be lifetime-less, owned version, and all methods take ToString, so existing version with static strs should work, and now you should be free to pass owned strings as well, and well, anything that implements ToString (so be careful you don't throw a number in there, hehe).
Hope that helps!  And great work!

@m4b why did you switch everything from a lifetime to String? That is way less performant unless you have to frequently mutate the string attributes.
Don't be scared of lifetimes! They are your friend :)

As a quick update here: The wasm->cretonne translation part of wasm2cretonne has been merged into the main cretonne tree, and I'm working on organizing the remaining wasmstandalone part in a separate repo here. Once wasmstandalone is set up for the new library organization and cretonne APIs, I'll re-introduce the wasm2obj code I linked above.

That's exciting !
So I've been meaning to work on the mach backend. Needed to do some initial legwork and fix up some things in mach part of goblin (as well as actually add relocations) so that I could start on it in faerie.
I am hoping to finish it in maybe a month, maybe less, but I think it's important to have two backends to test the viability of the API, see what constraints it requires, etc, etc

Another update: I've now updated wasmstandalone so that it works with Cretonne's new APIs, and I've re-introduced the wasm2obj code. The "wasm2obj" wasm -> native object prototype is again working. There's lots more to do, but it does work on simple testcases :-).

Just FYI definitely have not forgotten about this, just been busy.
I hope to start work on mach stuff next week or so; we can then test OS X output as well and then perhaps start tweaking the api.
Otherwise standalone looks great !

as of commit 3fc0f07 and higher, faerie now has a basic functioning mach-o backend!
You shouldn't have to do anything different in terms of api; it takes care of adjusting relocations to be relative to the appropriate symbol, as well as prefixing _ in front of all symbols, etc.
E.g., this example will (should) output valid, linkable files for linux or osx, without any changes:
fn run (args: Args) -> error::Result<()> {
    let file = File::create(Path::new(&args.filename))?;
    let mut obj = ArtifactBuilder::new(Target::X86_64).name(args.filename).library(args.library).finish();
    // 55	push   %rbp
    // 48 89 e5	mov    %rsp,%rbp
    // b8 ef be ad de	mov    $0xdeadbeef,%eax
    // 5d	pop    %rbp
    // c3	retq
    obj.add_code("deadbeef",
        vec![0x55,
             0x48, 0x89, 0xe5,
             0xb8, 0xef, 0xbe, 0xad, 0xde,
             0x5d,
             0xc3]);
    // main:
    // 55	push   %rbp
    // 48 89 e5	mov    %rsp,%rbp
    // b8 00 00 00 00	mov    $0x0,%eax
    // e8 00 00 00 00	callq  0x0 <deadbeef>
    // 89 c6	mov    %eax,%esi
    // 48 8d 3d 00 00 00 00	lea    0x0(%rip),%rdi # will be: deadbeef: 0x%x\n
    // b8 00 00 00 00	mov    $0x0,%eax
    // e8 00 00 00 00	callq  0x3f <main+33>  # printf
    // b8 00 00 00 00	mov    $0x0,%eax
    // 5d	pop    %rbp
    // c3	retq
    obj.add_code("main",
        vec![0x55,
             0x48, 0x89, 0xe5,
             0xb8, 0x00, 0x00, 0x00, 0x00,
             0xe8, 0x00, 0x00, 0x00, 0x00,
             0x89, 0xc6,
             0x48, 0x8d, 0x3d, 0x00, 0x00, 0x00, 0x00,
             0xb8, 0x00, 0x00, 0x00, 0x00,
             0xe8, 0x00, 0x00, 0x00, 0x00,
             0xb8, 0x00, 0x00, 0x00, 0x00,
             0x5d,
             0xc3]);
    obj.add_data("str.1", b"deadbeef: 0x%x\n\0".to_vec());

    // relocations are relative to the symbol
    obj.link("main", "str.1", 19);
    obj.import("printf");
    obj.link_import("main", "printf", 29);
    obj.link_import("main", "deadbeef", 10);
    if args.mach {
        obj.write::<Mach>(file)?;
    } else {
        obj.write::<Elf>(file)?;
        println!("res: {:#?}", obj);
    }
}

Holy WOW :bouquet:


Issues with React.Children.only in v13

Hi there!
First off, thank you for making this library! I absolutely love working with it :)
I've been on v12 for a while and am attempting to update to the new version. After updating some of the boilerplate/config stuff, everything seems to be booting fine, but I'm getting an error from (I thin?) my Fragment components.

This error seems to be originating from the Fragment component itself, and it makes seem like Fragment expects to only have a single child at any given time. Is this true? Have the semantics around Fragment changed in v13?
If you have any ideas or suggestions, they'd be greatly appreciated!

Ahhhh, I think I figured it out. Fragment doesn't insert a surrounding div anymore, so whatever it's wrapping needs to be fully encapsulated.

Hey @cafreeman, you're right on the money 😃 We removed the surrounding divs in this release: https://github.com/FormidableLabs/redux-little-router/releases/tag/v13.0.0


How to use trained meta&index&ckpt?

I have trained the model by training part, but how to use this trained model in prediction part?

@malege when I tried to run the code you gave I got this error
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
NameError: name 'saver' is not defined

can you help me to solve this?
Thanks

I have trained the model by training part, but how to use this trained model in prediction part?

have you finished this problem? i meet the same problem

i solve this problem,when you use the predict_c3d_ucf101.py ,you can use .data.... as model


Intro-to-AKS: Automate building container images

This pr introduces a github actions workflow that will help automate (re)building container images for use by the IntroToAKS hack.
The PR was inspired by issue #202  and PR #280.
As currently implemented, the action will only run manually (using workflow_dispatch), but if desired it could be improved to automatically rebuild images if new code is checked in.
The repo owners will need to customize some of the variables used by this workflow; specifically the repo locations on dockerhub (which could be migrated to github if desired)

I'm pulling this PR due to a messed up branch & commit history, but I will be re-creating it shortly as a new PR based on a different branch


Show keys with Modifier Keys and Function Keys (F1-F12)

How to show Function Keys (F1-F12) too with "Only Keys with Modifiers" option enabled?
I need an option to enable Function Keys display that also works with "Only Keys with Modifiers" option enabled.
Thanks!

Hi, you can try my Fork while the pull request is not merged https://github.com/bfritscher/carnac/releases


Register any interface that has an IP address and is not in the ignor…

…ed list
This way we don't miss out on bridges and other types of interfaces that may
be consuming an IP address.

@larsks Updated this to compare against our known CIDRs from prefixes file.

I forgot to add the filter here

okay, done.


2023b r-sync

fixes: https://github.com/red-hat-data-services/notebooks/pull/365

we're missing lots of CI compared to https://github.com/red-hat-data-services/notebooks/pull/386; do i need to check the manifests by hand?

we're missing lots of CI compared to https://github.com/red-hat-data-services/notebooks/pull/386; do i need to check the manifests by hand?

These pull requests bring in release branch changes from ODH to RHOAI.
These wouldn't have manifests change, as 2023b branch only had change with pipfile.lock.

Comparing with: https://github.com/red-hat-data-services/notebooks/pull/365
These changes look good.
/lgtm
/approve
thanks :100:


Broker stays ready if Kafka cluster is no longer around

Describe the bug
Tested the status of the Broker, when I delete my Strimzi cluster, the broker stays READY
default     my-broker   http://kafka-broker-ingress.knative-eventing.svc.cluster.local/default/my-broker   6m35s   True

A curl to the above URL takes very long, and does eventually return with:
< HTTP/1.1 503 Service Unavailable

Expected behavior
A clear and concise description of what you expected to happen.
To Reproduce
Steps to reproduce the behavior.
Knative release version
Additional context
Add any other context about the problem here such as proposed priority

/close
see: #1152


refactor: use nan bindings

Required for electron 6.x upgrade https://github.com/microsoft/vscode/tree/electron-6.0.x

we don't use this module anymore, closing (and retiring this)


showing decimal is not valid

What version of Wallet are you using?
testnet beta 4
What is happening?
Asset 0x1bdeed96ee1e5eca0bd1d7eeeb51d03b0202c1faf764fec1b276ba27d5d61d89 decimals is not valid
steps to reproduce
......
How it should behave?
it should add assets withot error
What os are you seeing the problem on?
Windows Desktop
What browser?
Chrome
What is your browser version?
latest

Thanks for opening an issue, SwaySwap is no longer maintained, this is why you experienced the issues. We have updated the project readme to better inform other users.


Funding amount input is not enough to cover collateral, fund fee cet or refund fee and extra fee

After upgrading to 1.8.3 I tried to open a dlc channel with a quantity of 260 and a leverage of 2. When trying to accept the offer I fail to do so.
In my scenario I had the following values:
required collateral:  360,664
required fund_fee: 15,086 sats
required cet_or_refund_fee: 3,230 sats
required extra_fee: 10,260
===
total required input funds: 389,240 sats
However the total funds reserved for the funding transaction have only been 367,470 which is not enough to create the funding transaction. Consequently accepting the offer fails.

I suspect that the following section does not take all required fees into account.
https://github.com/p2pderivatives/rust-dlc/blob/49ace9b4bc5eea6360d06773c53348af9efb002c/dlc-manager/src/utils.rs#L62-L128

It appears we only consider the common_fee + collateral when looking for utxos, but when creating the funding transactions with fees we are looking at looking at collateral + fund_fee + cet_or_refund_fee + extra_fee.  I am pretty sure that this is the reason for this bug.
I guess I run into this error because I have multiple smaller utxos and it was possible to find a set of utxos which are much closer to the common_fee+ collateral (which is not enough eventually).
I think we did not run into this issue during testing, because we always had gigantic utxos which automatically also covered the additional fees required to create the funding transaction. It should be possible to demonstrate that in a simple test.

Nice investigation, @holzeis. I was able to confirm that with a bunch of 10k sats UTXOs I can reproduce the original issue if I open a big enough channel. I'll work on a fix.


how to get the scanned content to another tab window

is possible to scan the QR code and automatically send the content to another page? i tried using 'submit form' as submission way in javascript but doesn't work, thanks for helping me

Check this similar post here that I found relating to window open in another tab,
https://github.com/schmich/instascan/issues/69


Stage

Module: 00
Lab/Demo: 00
Fixes # .
Changes proposed in this pull request:

Accommodated all the changes which I have suggested in the review


Examine whether short flags should be a single code point or a single grapheme.

We can use unicode-segmentation to pull out a grapheme at a time instead of a character at a time, but I'm not sure if that complexity is worth it.

I think I'm landing on this: an identifier is made up of graphemes, and will be iterated as such in all contexts. This includes parsing, which means a single grapheme by itself can be a short flag. This will also include things like levenshtein distance calculations, to ensure that we're actually giving an accurate distance between possible identifiers.


Assert-PSRule hangs or throws an error when using rules generated from policy

Description of the issue

I'm trying to run the rules generated with Export-AzPolicyAssignmentRuleData, using Assert-PSRule, but the command either throws an error or hangs when processing the new rules (right after VERBOSE: [PSRule][D] -- Discovering rules in: path\definitions-export-c4d3ac5d.Rule.jsonc; I left it running for over 8 hours and nothing changed)
To Reproduce
Steps to reproduce the issue:
Run the following command:
Assert-PSRule -Module "PSRule.Rules.Azure" -Path "rulesFromPolicies" -InputPath "C:\Users\verabo.REDMOND\OneDrive - Microsoft\Documents\Testing" -Format File -OutputPath "analysisResults.json" -OutputFormat Sarif -Verbose

In the folder "rulesFromPolicies" there's only one file, with this content:
[
   {
      // Synopsis: "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised"
      "apiVersion":"github.com/microsoft/PSRule/v1",
      "kind":"Rule",
      "metadata":{
         "name":"Azure.Policy.c397c7e52a57",
         "ref":"Azure.Policy.c397c7e52a57",
         "tags":{
            "Azure.Policy/category":"Internet of Things"
         },
         "annotations":{
            "Azure.Policy/id":"/providers/Microsoft.Authorization/policyDefinitions/383856f8-de7f-44a2-81fc-e5135b5c2aa4",
            "Azure.Policy/version":"3.0.1"
         }
      },
      "spec":{
         "type":[
            "Microsoft.Devices/IotHubs"
         ],
         "where":{
            "equals":"Microsoft.Devices/IotHubs",
            "type":"."
         },
         "condition":{
            "field":"resources",
            "allOf":[
               {
                  "greaterOrEquals":1,
                  "field":"properties.logs[? || (@.retentionPolicy.enabled == 'true' && (@.retentionPolicy.days == '0' || @.retentionPolicy.days >= '365') && @.enabled == 'true') || (@.enabled == 'true')]"
               }
            ],
            "where":{
               "type":".",
               "equals":"Microsoft.Insights/diagnosticSettings"
            }
         }
      }
   }
]

I added this to the ps-rule.yaml file in the repository, and also to a file with that name in the folder from where I'm executing (I wasn't sure where it should go), but it didn't make a difference: https://azure.github.io/PSRule.Rules.Azure/customization/enforce-custom-tags/#binding-type
If, instead, I run this other command:
Assert-PSRule -Module "PSRule.Rules.Azure" -Path 'C:\Users\verabo.REDMOND\Repos\PSRule.Rules.Azure\.ps-rule' -InputPath "C:\Users\verabo.REDMOND\OneDrive - Microsoft\Documents\Testing" -Format File -OutputPath "analysisResults.json" -OutputFormat Sarif -Verbose

And I add the same file to that .ps-rule folder then it throws an error:
[...]
VERBOSE: [PSRule][D] -- Discovering rules in: C:\Users\verabo.REDMOND\Repos\PSRule.Rules.Azure\out\modules\PSRule.Rules.Azure\rules\Common.Selector.Rule.yaml
VERBOSE: [PSRule][D] -- Discovering rules in: C:\Users\verabo.REDMOND\Repos\PSRule.Rules.Azure\out\modules\PSRule.Rules.Azure\rules\Config.Rule.yaml
VERBOSE: [PSRule][D] -- Discovering rules in: C:\Users\verabo.REDMOND\Repos\PSRule.Rules.Azure\.ps-rule\definitions-export-c4d3ac5d.Rule.jsonc
An item with the same key has already been added.
At C:\Users\verabo.REDMOND\OneDrive - Microsoft\Documents\WindowsPowerShell\Modules\PSRule\2.6.0\PSRule.psm1:609 char:13
+             throw $_.Exception.GetBaseException();
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], ArgumentException
    + FullyQualifiedErrorId : An item with the same key has already been added.

From this part of the docs: https://azure.github.io/PSRule.Rules.Azure/customization/enforce-custom-tags/#testing-locally I understood that the Path option can be used to specify the path of the new rules, is that correct? Is it hanging in the first case because I am using it wrong?
Module in use and version:

Module: PSRule.Rules.Azure
Version: I ran the version in the main branch up to the latest commit now (https://github.com/Azure/PSRule.Rules.Azure/commit/ef1570a25c6b1850d0f2a9116fa23aaaf13b9157)

Captured output from $PSVersionTable:
Name                           Value
----                           -----
PSVersion                      5.1.22621.608
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.608
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

@VeraBE PSRule will automatically find the .ps-rule/ from the current working directory or you can set -Path to an alternative path as you have done. You usage seems fine to me.
It will recursively scan the path from -InputPath and -Path, maybe it was waiting for OneDrive to sync files and got stuck? It is reproducible between runs? and do you get the same issue working in a non-synchronized directory. I tried to do something similar on a local path and I got your An item with the same key has already been added. exception.

Looks like An item with the same key has already been added. is an upstream issue in PSRule where ref and name are duplicate keys. We should fix it in PSRule but it's probably unnecessary to output both ref and name with the same identifier.

Is PR #1893 supposed to fix the "An item with the same key has already been added." error? I pulled the latest version from main, built it, added the rule and config back to ps-rule.yml and .ps-rule, imported the built module, ran Assert-PSRule -Module "PSRule.Rules.Azure" -Path 'C:\Users\verabo.REDMOND\Repos\PSRule.Rules.Azure\.ps-rule' -InputPath "C:\Users\verabo.REDMOND\OneDrive - Microsoft\Documents\Testing" -Format File -OutputPath "analysisResults.json" -OutputFormat Sarif -Verbose and I still see the same issue ;/

@BernieWhite Is PR #1893 supposed to fix the error "An item with the same key has already been added."? I pulled the latest version from main, built it, added back the new rule and config to ps-rule.yaml and .ps-rule, imported the built module, ran Assert-PSRule -Module "PSRule.Rules.Azure" -Path 'C:\Users\verabo.REDMOND\Repos\PSRule.Rules.Azure\.ps-rule' -InputPath "C:\Users\verabo.REDMOND\OneDrive - Microsoft\Documents\Testing" -Format File -OutputPath "analysisResults.json" -OutputFormat Sarif -Verbose and I still get the same error :/ Am I doing something wrong?

@VeraBE #1893 should fix Export-AzPolicyAssignmentRuleData.
When Export-AzPolicyAssignmentRuleData is called to generate rules in the future is will only generate a metadata.name property for each rule instead of metadata.name and metadata.ref with the same value. The issue is caused by these values being set to the same value.
Upstream microsoft/PSRule#1354 will fix the issue if metadata.name and metadata.ref already exist and are the same value.

Also separately there is an issue that generates the same exception message that is fixed by #1894 (#1871) which is related to assignments using the same parameter name.

Hope that makes sense. But if you're testing and that doesn't work let me know.

@VeraBE This one should be fixed in PSRule v2.7.0-B0049 onwards based on microsoft/PSRule#1370.


CustomFields: Number Field just keeps switching back to float type

PHP Version
8.1.2-1ubuntu2.10
Shopware Version
<IP_ADDRESS>
Expected behaviour
When I create a custom number field and set its number type to integer and save the field it is back to number type float during the next edit. In the table custom_field the config also states "type": "number" but "numberType": "float".
Actual behaviour
A number field of type integer should be stored with "numberType": "float" during creation/editing.
How to reproduce

create a new field set or use an existing one
create a number field and set its type to Integer Field
save the field
edit again and check its type => should be Integer Field or check in the database

Hi,
thx for your issue we will put it into our new evaluation process and have a look at it again.

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37963.
[created from NEXT-37963, comment 489039]

[public] This issue no longer seems to exist in Shopware 6.6, or at least we where unable to reproduce this behaviour.
[created from NEXT-37963, comment 490641]


ngModelAttrs

Based on this example from angular-formly/local-examples/components/app.js:
{
        type: 'input',
        key: 'myKey',
        ngModelAttrs: {
          bound: {
            'ng-maxlength': 6,
            'ng-disabled': false
          },
          unbound: {
            pattern: '"^abcd|^qrst"'
          }
        },
        templateOptions: {
          label: 'My Input',
          required: true,
          description: 'This is an awesome description'
        },
        expressionProperties: {
          'ngModelAttrs.bound["ng-disabled"]': 'model.mine'
        }
      }

I can't get ngModelAttrs to work with angular-formly-templates-lumx. Using<EMAIL_ADDRESS>from npm.
{
        key: 'switch1',
        type: 'lx-switch',
        ngModelAttrs: {
         bound: {
          'ng-checked': true
           }
        },
        templateOptions: {
          label: 'Switched Switch'
        }
      }

The lx-switch template looks like this:
<div class="switch">
  <input type="checkbox"
         id="{{::id + '_'+ $index}}"
         class="switch__input"
         ng-model="model[options.key]"
         formly-dynamic-name="::id"
         aria-describedby="{{::id}}_switch"/>
</div>

Any thoughts why?

Sorry, I haven't published that yet. Just do this:
npm install git://
github.com/formly-js/angular-formly#84ba8248efa4fe54ac3d078e37cbf9959acc1bd3
-Kent C. Dodds
On Fri, Feb 6, 2015 at 9:34 AM, ShMcK<EMAIL_ADDRESS>wrote:

Based on this example from angular-formly/local-examples/components/app.js
:
{
type: 'input',
key: 'myKey',
ngModelAttrs: {
bound: {
'ng-maxlength': 6,
'ng-disabled': false
},
unbound: {
pattern: '"^abcd|^qrst"'
}
},
templateOptions: {
label: 'My Input',
required: true,
description: 'This is an awesome description'
},
expressionProperties: {
'ngModelAttrs.bound["ng-disabled"]': 'model.mine'
}
}
I can't get ngModelAttrs to work with angular-formly-templates-lumx.
Using<EMAIL_ADDRESS>from npm.
{
key: 'switch1',
type: 'lx-switch',
ngModelAttrs: {
bound: {
'ng-checked': true
}
},
templateOptions: {
label: 'Switched Switch'
}
}
The lx-switch template looks like this:

Any thoughts why?
—
Reply to this email directly or view it on GitHub
https://github.com/formly-js/angular-formly/issues/163.

Working. It's a beautiful thing. Thanks!

Great! Do you think we can remove template wrappers?

Kent C. Dodds

(Sent from my mobile device, please forgive typos or brevity)
On Feb 6, 2015 10:10 AM, "ShMcK"<EMAIL_ADDRESS>wrote:

Working. It's a beautiful thing. Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/formly-js/angular-formly/issues/163#issuecomment-73207312
.

Again, if you're going to use :: in your templates, then that means you're running angular 1.3, and if you're doing that, then you don't need the formly-dynamic-name, simply do: name="{{::id}}". Should be more performant I think.

Thanks! Once I get a full understanding of angular-formly, I'll start contributing the jsbin docs as well.

Great!
What do you think about removing wrappers?
-Kent C. Dodds
On Fri, Feb 6, 2015 at 1:30 PM, ShMcK<EMAIL_ADDRESS>wrote:

Thanks! Once I get a full understanding of angular-formly, I'll start
contributing the jsbin docs as well.
—
Reply to this email directly or view it on GitHub
https://github.com/formly-js/angular-formly/issues/163#issuecomment-73229698
.

I think wrappers have a lot of great benefits. They don't necessarily need their own formlyConfig.setWrapper when formlyConfig.setType basically does the same thing.
But I am a big fan of the functionality of wrappers.

Could you jump on Gitter really quick?

Do we need to keep this open?


workspace exclude mismatch on linux vs windows

pyprojects like this:
pyproject-local-kernel/pyproject.toml
└── x/pyproject.toml
root declares
[tool.uv.workspace]
members = []
exclude = ["x", "*", "**"]

The child x is a test package that should not be part of the workspace, but it depends on the root.
[project]
name = "x"
version = "0.1.0"
description = "Add your description here"
requires-python = ">=3.12"
dependencies = [
    "pyproject-local-kernel",
]

[tool.uv.sources]
pyproject-local-kernel = { path = ".." }

On Linux, this worked as expected and uv lock in the x package succeedes
On Windows it errors out with Package is not included as workspace package in tool.uv.workspace``

It looks like it reaches different results on linux vs windows. When looking from the x perspective, uv thinks x is included in the root workspace.
(This bug was found by debugging on CI, so not so much extra information on windows.)
Sorry to pile on another bug.

Linux CI uv lock -v
DEBUG uv 0.2.30
warning: `uv lock` is experimental and may change without warning
DEBUG Found workspace root `/home/runner/work/pyproject-local-kernel/pyproject-local-kernel`, but project is excluded
DEBUG Found workspace root: `/home/runner/work/pyproject-local-kernel/pyproject-local-kernel/x`
DEBUG Adding current workspace member: `/home/runner/work/pyproject-local-kernel/pyproject-local-kernel/x`
DEBUG Searching for Python >=3.12 in managed installations or system path
DEBUG Searching for managed installations at `/home/runner/.local/share/uv/python`
DEBUG Found `cpython-3.10.12-linux-x86_64-gnu` at `/home/runner/.rye/shims/python3` (search path)
DEBUG Found `cpython-3.10.12-linux-x86_64-gnu` at `/home/runner/.rye/shims/python` (search path)
DEBUG Found `cpython-3.10.12-linux-x86_64-gnu` at `/usr/bin/python3` (search path)
DEBUG Found `cpython-3.10.12-linux-x86_64-gnu` at `/usr/bin/python` (search path)
DEBUG Found `cpython-3.10.12-linux-x86_64-gnu` at `/bin/python3` (search path)
DEBUG Found `cpython-3.10.12-linux-x86_64-gnu` at `/bin/python` (search path)
DEBUG Requested Python not found, checking for available download...
DEBUG Acquired lock for `/home/runner/.local/share/uv/python`
DEBUG Using request timeout of 30s
INFO Fetching requested Python...
DEBUG Downloading https://github.com/indygreg/python-build-standalone/releases/download/20240726/cpython-3.12.4%2B20240726-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz to temporary location /home/runner/.local/share/uv/python/.tmpnZpPmh
DEBUG Extracting cpython-3.12.4%2B20240726-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
DEBUG Moving /home/runner/.local/share/uv/python/.tmpnZpPmh/python to /home/runner/.local/share/uv/python/cpython-3.12.4-linux-x86_64-gnu
Using Python 3.12.4
DEBUG Using request timeout of 30s
DEBUG Resolving with existing `uv.lock`
DEBUG Acquired lock for `/home/runner/.cache/uv/built-wheels-v3/editable/72d48d88d28d6a95`
DEBUG Preparing metadata for: x @ file:///home/runner/work/pyproject-local-kernel/pyproject-local-kernel/x
DEBUG No static `PKG-INFO` available for: x @ file:///home/runner/work/pyproject-local-kernel/pyproject-local-kernel/x (MissingPkgInfo)
DEBUG Found static `pyproject.toml` for: x @ file:///home/runner/work/pyproject-local-kernel/pyproject-local-kernel/x
DEBUG Found workspace root `/home/runner/work/pyproject-local-kernel/pyproject-local-kernel`, but project is excluded
DEBUG No workspace root found, using project root
warning: `uv.sources` is experimental and may change without warning
DEBUG Acquired lock for `/home/runner/.cache/uv/built-wheels-v3/path/67111aeb387f5d59`
DEBUG Preparing metadata for: pyproject-local-kernel @ file:///home/runner/work/pyproject-local-kernel/pyproject-local-kernel
DEBUG No static `PKG-INFO` available for: pyproject-local-kernel @ file:///home/runner/work/pyproject-local-kernel/pyproject-local-kernel (MissingPkgInfo)
DEBUG Found static `pyproject.toml` for: pyproject-local-kernel @ file:///home/runner/work/pyproject-local-kernel/pyproject-local-kernel
DEBUG Found workspace root: `/home/runner/work/pyproject-local-kernel/pyproject-local-kernel`
DEBUG Adding current workspace member: `/home/runner/work/pyproject-local-kernel/pyproject-local-kernel`
DEBUG Solving with installed Python version: 3.12.4
DEBUG Solving with target Python version: >=3.12
DEBUG Adding direct dependency: x*
DEBUG Searching for a compatible version of x @ file:///home/runner/work/pyproject-local-kernel/pyproject-local-kernel/x (*)
DEBUG Adding transitive dependency for x==0.1.0: pyproject-local-kernel*
DEBUG Searching for a compatible version of pyproject-local-kernel @ file:///home/runner/work/pyproject-local-kernel/pyproject-local-kernel (*)
DEBUG Tried 2 versions: pyproject-local-kernel 1, x 1
DEBUG Split universal resolution took 0.000s
Resolved 2 packages in 4ms

Windows CI uv lock -v
DEBUG uv 0.2.30
warning: `uv lock` is experimental and may change without warning
DEBUG Found workspace root `D:\a\pyproject-local-kernel\pyproject-local-kernel`, but project is excluded
DEBUG Found workspace root: `D:\a\pyproject-local-kernel\pyproject-local-kernel\x`
DEBUG Adding current workspace member: `D:\a\pyproject-local-kernel\pyproject-local-kernel\x`
DEBUG Searching for Python >=3.12 in managed installations, system path, or `py` launcher
DEBUG Searching for managed installations at `C:\Users\runneradmin\AppData\Roaming\uv\data\python`
DEBUG Found `cpython-3.9.13-windows-x86_64-none` at `C:\hostedtoolcache\windows\Python\3.9.13\x64\python3.exe` (search path)
DEBUG Found `cpython-3.9.13-windows-x86_64-none` at `C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe` (search path)
DEBUG Found `cpython-3.12.4-windows-x86_64-none` at `C:\hostedtoolcache\windows\Python\3.12.4\x64\python.exe` (`py` launcher output)
Using Python 3.12.4 interpreter at: C:\hostedtoolcache\windows\Python\3.12.4\x64\python.exe
DEBUG Using request timeout of 30s
DEBUG Resolving with existing `uv.lock`
DEBUG Acquired lock for `\\?\C:\Users\runneradmin\AppData\Local\uv\cache\built-wheels-v3\editable\2a78b9ffa5c15915`
DEBUG Preparing metadata for: x @ file:///D:/a/pyproject-local-kernel/pyproject-local-kernel/x
DEBUG No static `PKG-INFO` available for: x @ file:///D:/a/pyproject-local-kernel/pyproject-local-kernel/x (MissingPkgInfo)
DEBUG Found static `pyproject.toml` for: x @ file:///D:/a/pyproject-local-kernel/pyproject-local-kernel/x
DEBUG Found workspace root: `D:\a\pyproject-local-kernel\pyproject-local-kernel`
DEBUG Adding root workspace member: `D:\a\pyproject-local-kernel\pyproject-local-kernel`
DEBUG Adding current workspace member: `D:\a\pyproject-local-kernel\pyproject-local-kernel\x`
DEBUG Resolution with `uv.lock` failed: Failed to download and build: `x @ file:///D:/a/pyproject-local-kernel/pyproject-local-kernel/x`
DEBUG Starting clean resolution
DEBUG Acquired lock for `\\?\C:\Users\runneradmin\AppData\Local\uv\cache\built-wheels-v3\editable\2a78b9ffa5c15915`
DEBUG Using cached metadata for: x @ file:///D:/a/pyproject-local-kernel/pyproject-local-kernel/x
DEBUG Found workspace root: `D:\a\pyproject-local-kernel\pyproject-local-kernel`
DEBUG Adding root workspace member: `D:\a\pyproject-local-kernel\pyproject-local-kernel`
DEBUG Adding current workspace member: `D:\a\pyproject-local-kernel\pyproject-local-kernel\x`
error: Failed to download and build: `x @ file:///D:/a/pyproject-local-kernel/pyproject-local-kernel/x`
  Caused by: Failed to parse entry for: `pyproject-local-kernel`
  Caused by: Package is not included as workspace package in `tool.uv.workspace`

uv 0.2.30

@bluss -- Please keep filing bugs, it's super valuable and appreciated!

Great. I'd like to document the glob syntax - I think * is wildcard and ** recursive wildcard - but I didn't quite get my understanding of it to line up with the glob crate's docs.
People running into this bug by the way can in this case work around it by setting [tool.uv.workspace] in x's pyproject too, then it definitely will not be assigned as a member of the parent directory.


[Provider Audit] provider.greendepin.cloud

Prerequisite Steps:
1. Make sure your provider has community provider attributes and your contact details (email, website):
  Example:
  $ provider-services query provider get akash1<REDACTED> -o text
  ...
  attributes:
  ...
  - key: host
  value: akash
  - key: tier
  value: community
  info:
    email: "<your email>"
    website: "<your website>"

Ref documentation:.
2. Make sure your provider *.ingress resolves to your provider IP (ideally worker node IP)
host <anything>.ingress.<yourdomain>

Example:
$ host anything.ingress.akash.pro
anything.ingress.akash.pro is an alias for nodes.akash.pro.
nodes.akash.pro has address <IP_ADDRESS>

More info on what DNS records should look like are available in the Akash Documentation here.

3. Please make sure your Akash provider doesn't block any Akash specific ports.

If you are using a firewall, please follow this doc:
https://akash.network/docs/providers/build-a-cloud-provider/akash-cloud-provider-build-with-helm-charts/#step-11---firewall-rule-review
If you are behind NAT, then you need to make sure these ports are open between your provider worker nodes and the internet.

Audit Steps:
1. Title the issue: " [Provider Audit]: Provider Address" (e.g. "[Provider Audit]: provider.europlots.com")
2. Wait for response via comments. If no issues during provider Audit, process will be complete, provider should start bidding on leases, and Audit ticket will be closed.
3. If there are issues during the provider Audit, debug those issues, and Audit will be complete.
4. Audit Issue will be closed by core team member.
Leave contact information (optional)

Dominikus Brian
Discord: domizhong33
<EMAIL_ADDRESS>

@dominikusbrian
Please provide the following information:

Your provider address (akash1.....)
Your provider domain name

thank you!

@dominikusbrian
Your provider is missing the appropriate attributes.
Current provider attributes:
provider-services query provider get akash1kz0t70zjeprtp9rsxwfwp85l7ccv6fcjpljgs3 -o text
attributes:

key: organization
value: greendepin
key: arch
value: amd64
host_uri: https://provider.greendepin.cloud:8443
info:
email: ""
website: ""
owner: akash1kz0t70zjeprtp9rsxwfwp85l7ccv6fcjpljgs3

Missing attributes:

key: host
value: akash
key: tier
value: community
Also please provide the contact information: the email address and the website if you have any.

thank you!


python3Packages.types-pytz: 2021.3.1 -> 2021.3.2

Motivation for this change
Update to latest upstream rrelease 2021.3.2
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 149866 run on x86_64-linux 1

1 package failed to build:

home-assistant

6 packages built:

python38Packages.aioridwell
python38Packages.simplisafe-python
python38Packages.types-pytz
python39Packages.aioridwell
python39Packages.simplisafe-python
python39Packages.types-pytz


Keyword Tagging draft PullRequest

[x] Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
[x] Tests created for changes (if applicable)
[ ] Manually tested changed features in running JabRef (always required)
[ ] Screenshots added in PR description (for UI changes)
[x] Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
[x] Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

It's a Pull Request Test for JabRef,Not yet changed any codes

315/5000
We try to fix #8739.However,it turned out a failure.
Due to lack of UI implementation experience and poor project time management,we are unable to contribute quality source code within the required deadline.
We successfully built the JabRef project locally and were able to run it. But without careful reading of the project's documentation, and without communicating with the developers, and with a tight schedule (too much time taken up by other school assignments), We can only find a few classes that might be relevant to the question (such as Keyword, Keywords), but we have no idea how to make the Keywords in the item appear next to the corresponding item in the main column (and the color of the Keywords is different, like the issue Keyword tag on GitHub). It's also not clear how these keyword tags will lead to a list of all entries that contain the keyword tag (shown in the main column maintable).
All in all, we are sorry that we have not made any substantial contribution to this project.

From one month learning experience, I have learned the whole process of developing a open source project.I have learned how to search open source projects, and how to make contributions to them. I have learned some useful tools like github and learned how to push my own codes to those project. At the later part of the course, our group have tried to solve an issue of Jebref, which is an Open source project we are interested in. However , due to the lack of developing experience,we have failed to solve our own issue, but at least we tried.


[0010] Method to obtain uint64_t from BufferPointer

Which proposal does this relate to?
0010 - Buffer Pointers
Describe the issue or outstanding question.
In my opinion we need a function/method to convert vk::BufferPointer<T,A> to uint64_t.
This is because the proposal explicitly disallows arithmetic operators on BufferPointer and doesn't mention there being operator[].
Furthermore indexing past the end of an array in a struct is Invalid/UB in SPIR-V, and OpTypeRuntimeArray cannot be slapped onto any odd struct member outside of an StorageBuffer block.
https://github.com/KhronosGroup/SPIRV-Tools/issues/1458
This means that in order to implement the following design pattern from C/C++
struct DiscreteCumulativeProbability
{
   uint count;
   // actual array length determined by `count`
   float values[1];
};

we cannot simply declare in HLSL202x
struct DiscreteCumulativeProbability
{
   uint count;
   // actual array length determined by `count`
   float values[];
};

Even if I didn't need to work around #57 and could get the address of ptr.Get().value[1] without helper structs/code, I'd still need to be able to perform some form of arithmetic/indexing.
Also I guess vk::BufferPointer<T[]> is not the syntax you want to deal with.
Finally being able to just get the uint64_t address value is a matter of control, we currently have this level of control with RawBufferLoad and RawBufferStore and its not nice for it to go away.
Additional context
See this comment: https://github.com/microsoft/hlsl-specs/issues/84#issuecomment-1707973062

btw in case I wasn't clear, this is not about having any implicit casts.
I'd find reintepret_cast<uint64_t>(ptr) acceptable, as well as explicit uint64_t() construction, or just any method added to vk::BufferPointer acceptable.

Another acceptable solution would be for the SPIR-V intrinsics to interact with vk::BufferPointer such that the pointer result-id is passed directly to an intrinsic which requires a [[vk::ext_reference]], so I can implement my own cast
template<typename T, uint16_t A>
[[vk::ext_capability(/*PhysicalStorageBufferAddresses*/ 5347)]]
[[vk::instruction(/*OpConvertPtrToU*/117)]]
uint64_t uint64_t_cast([[vk::ext_reference]] vk::BufferPointer<T,A> p);

Hmm in order to keep your aliasing analysis intact, I think my suggestion would be to add:

pointer arithmetic
operator[]
conversion to uint64_t
only for pointers with the vk::aliased_pointer attribute, and keep everything "as is" for restrict pointers.

And frankly I think vk::aliased_pointer shouldn't be an attribute, it should be baked into the type to disable conversions from restrict to aliased.

I believe it is important for aliased pointers to allow for ptr arithmetic.
As aliased pointers have sound semantics for ptr arithmetic, i dont see why it wouldnt be supoorted for them, that would be quite sad that was missing.
I also think aliased pointers should be the default as they generally would then allow for more convenient an generalized use, hence be a better default.
In other languages restrict is also not the default but opt in, i believe it should be the same for hlsl.

As stated #84 (comment), you can create your own cast to uint64_t using inline spir-v. Can this issue be closed now?

Doing that will probably mess up the compilers "leak analysis" and produce weird issues if we don't cast aliased pointers to uint64_t.
In principle we could close this issue, but a new one should be opened about whether aliase should be the default and restrict be the opt-in.

@devshgraphicsprogramming I am sympathetic with the desire for a much richer feature that I am proposing here. But my charter is to design something with a more limited capability. By definition it will not meet everyone's needs.
I am fairly certain vk::RawBufferLoad and vk::RawBufferStore are not going away, so this proposal will not take capability away.
So I think this can be closed.
As for this comment:

... but a new one should be opened about whether aliased should be the default and restrict be the opt-in.

@llvm-beanz has endorsed restrict as the default, noting it is most consistent with HLSL. Also, as a Vulkan feature, restrict default is consistent with SPIR-V rules.


ImportError: cannot import name 'infer_storage_options'

Similar to: https://github.com/intake/intake/pull/388
from dask.bytes.utils import infer_storage_options

Should probably be:
try:
    from dask.bytes.utils import infer_storage_options
except ImportError:
    from dask.bytes.core import infer_storage_options

Possibly consider:
from fsspec.utils import infer_storage_options

as per: https://github.com/dask/dask/pull/5064
Not sure what else changed in dask that would break this plugin

Please wait while this repo is rewritten.
Indeed, fsspec is the way to do it, but the upstream code in azure-datalake-file-system is not compatible.


Separate styles in ticks for Axes

Here is what the deal. Is it possible to separate styles in ticks for xAxes or draw by some other function near some data with own styles then ticks?
https://i.stack.imgur.com/jAiln.png

That'd be pretty hard to do. You maybe could draw two x-axes and have the second one have the bold text and start that text with spaces so that the text doesn't overlap


How do modules in ocLazyLoad loaded, parallel or in sequence?

I'd like to duplicate my question from stackoverflow here too...
I'm using ocLazyLoad library to achieve lazy loading for all dependencies in my project. I know that by default files are loaded in parallel and to make it loaded in sequence I should use serie:true https://github.com/ocombe/ocLazyLoad/issues/47
From this thread I understand that I can load modules in series:

Yes the files are loaded in parallel, if you want to multiple modules
at the same time and that they require one another you either need to
define them in different object params:
    $ocLazyLoad.load([{
        name: 'TestModule',
        files: ['testModule.js', 'testModuleCtrl.js', 'testModuleService.js']
    },{
        name: 'AnotherModule',
        files: ['anotherModule.js']
    }]);

Now I try to load all dependencies required for FullCalendar in my application, there's my ocLazyLoad config file:
    $ocLazyLoadProvider.config({
             debug: true,
             modules: [{
                    name: 'ngCkeditor',
                    files: [
                                'resources/bower_components/ng-ckeditor/libs/ckeditor/ckeditor.js',
                                'resources/bower_components/ng-ckeditor/ng-ckeditor.min.js',
                                'resources/bower_components/ng-ckeditor/ng-ckeditor.css'
                            ],
                    serie: true
             },{
                    name: 'ui.calendar',
                    files: [
                            'resources/bower_components/fullcalendar/dist/fullcalendar.min.js',
                            'resources/bower_components/fullcalendar/dist/lang/he.js',
                            'resources/bower_components/fullcalendar/dist/gcal.js',
                            'resources/bower_components/angular-ui-calendar/src/calendar.js',
                            'resources/bower_components/fullcalendar/dist/fullcalendar.min.css'
                            ],
                    serie: true
             },{
                    name: 'ngFileUpload',
                    files: [
                                'resources/bower_components/ng-file-upload/ng-file-upload.min.js'
                            ]
             },{
                    name: 'momentjs',
                    files: [
                                'resources/bower_components/moment/min/moment.min.js'
                            ]
             }]
        });

And this is part of my router:
    .state('schedule',{
                url: '/schedule',
                controller:     'ScheduleController',
                templateUrl:    'schedule.html',
                resolve: {
                      loginRequired: loginRequired,
                      loadMyCtrl: ['$ocLazyLoad', function($ocLazyLoad) {
                          // you can lazy load files for an existing module
                                 return $ocLazyLoad.load(['momentjs','ui.calendar','ngCkeditor']);
                       }]
                }
            })

Despite that module 'momentjs' defined at first place I still get an error: Uncaught ReferenceError: moment is not defined
If I put moment.js in 'ui.calendar' module it works, but I'd like to load it separately because I have another views in my application where I use only moment.js and doesn't need all dependencies.
So, my question is, how to make moduls (not files) to be loaded in a serie, not files or if they already loaded in a serie, what can cause to my mistake?
Thank you in advance.

Hey, sorry for the late answer.
The API has changed a bit since the issue that you linked.
If you put serie: true in the module definition, it will only load the files of this module in serie. If you have multiple modules that you want to load in serie (because they depend on each other), you need to use the param serie globally like this:
    $ocLazyLoadProvider.config({
             debug: true,
             serie: true
             modules: [{
                    name: 'ngCkeditor',
                    files: [
                                'resources/bower_components/ng-ckeditor/libs/ckeditor/ckeditor.js',
                                'resources/bower_components/ng-ckeditor/ng-ckeditor.min.js',
                                'resources/bower_components/ng-ckeditor/ng-ckeditor.css'
                            ],
                    serie: true
             },{
                    name: 'ui.calendar',
                    files: [
                            'resources/bower_components/fullcalendar/dist/fullcalendar.min.js',
                            'resources/bower_components/fullcalendar/dist/lang/he.js',
                            'resources/bower_components/fullcalendar/dist/gcal.js',
                            'resources/bower_components/angular-ui-calendar/src/calendar.js',
                            'resources/bower_components/fullcalendar/dist/fullcalendar.min.css'
                            ],
                    serie: true
             },{
                    name: 'ngFileUpload',
                    files: [
                                'resources/bower_components/ng-file-upload/ng-file-upload.min.js'
                            ]
             },{
                    name: 'momentjs',
                    files: [
                                'resources/bower_components/moment/min/moment.min.js'
                            ]
             }]
        });

See the serie: true that I added at the start (outside the modules definition).

@ocombe, thank you very much!

I am doing it, but I don't know why do I get this error:

TypeError: Cannot read property 'shift' of undefined

I don't understand why I can't install the dependencies mentioned in the related files in place?
`(function() {
"use strict";
angular
    .module('app.core', [
    'blocks.exception',
        {
            files: [
                '/app/blocks/exception/exception.module.js',
                '/app/blocks/exception/exception.js',
                '/app/blocks/exception/exception-handler.provider.js'
            ],
            cache: false
        },
    'blocks.logger',
        {
            files: [
                '/app/blocks/logger/logger.module.js',
                '/app/blocks/logger/logger.js'
            ],
            cache: false
        },
    'blocks.router',
        {
            files: [
                '/app/blocks/router/router.module.js',
                '/app/blocks/router/router-helper.provider.js'
            ],
            cache: false
        },
    'ngSanitize',
    'ngMaterial',
    'md.data.table',
    'ngMask',
    'ui.router',
    'oc.lazyLoad']);

})();`

Did you try to include module name inside the name property? like this:
angular
    .module('app.core', [
        {
            name:'blocks.exception',
            files: [
                '/app/blocks/exception/exception.module.js',
                '/app/blocks/exception/exception.js',
                '/app/blocks/exception/exception-handler.provider.js'
            ],
            cache: false
        },
.....

Yes I tried but, the problem is these modules cannot be loaded before from dependencies, I think.

I have two angular module

app module
testModule
so, i wanted to load the testModule later on while it needed
therefore configure like the following  way

in main app config file.
$ocLazyLoadProvider.config({
debug: true,
events: true,
reconfig:true,
cache: false,
modules: [
{
name: 'testModule',
files: ["testModule.js"]
}
]
});
testModule.js
class TestService  {
static $inject = ["$uibModal"];
show() {
this.$uibModal.open({
template:"Hello modal",
animation: true
})
}
}
angular.module("testModule",[])
.service("testService", TestService);
If it is use not, it works well
But now,
as i wanted to load testModule file using $oclazyload
my app.js file controller
openModal(){
let self = this;
this.$ocLazyLoad.load("testMudule").then(() => {
let modal = self.$injector.get("testService");
modal.show();
});
}
file gets loaded while i trigger the function. But service does't get and trigger the show function .
where i have done mistake. please help anyone.
I like to say thanks in advance for solve.

Hey, sorry for the late answer.
The API has changed a bit since the issue that you linked.
If you put serie: true in the module definition, it will only load the files of this module in serie. If you have multiple modules that you want to load in serie (because they depend on each other), you need to use the param serie globally like this:
    $ocLazyLoadProvider.config({
             debug: true,
             serie: true
             modules: [{
                    name: 'ngCkeditor',
                    files: [
                                'resources/bower_components/ng-ckeditor/libs/ckeditor/ckeditor.js',
                                'resources/bower_components/ng-ckeditor/ng-ckeditor.min.js',
                                'resources/bower_components/ng-ckeditor/ng-ckeditor.css'
                            ],
                    serie: true
             },{
                    name: 'ui.calendar',
                    files: [
                            'resources/bower_components/fullcalendar/dist/fullcalendar.min.js',
                            'resources/bower_components/fullcalendar/dist/lang/he.js',
                            'resources/bower_components/fullcalendar/dist/gcal.js',
                            'resources/bower_components/angular-ui-calendar/src/calendar.js',
                            'resources/bower_components/fullcalendar/dist/fullcalendar.min.css'
                            ],
                    serie: true
             },{
                    name: 'ngFileUpload',
                    files: [
                                'resources/bower_components/ng-file-upload/ng-file-upload.min.js'
                            ]
             },{
                    name: 'momentjs',
                    files: [
                                'resources/bower_components/moment/min/moment.min.js'
                            ]
             }]
        });

See the serie: true that I added at the start (outside the modules definition).

In the latest version 1.1.0, on setting serie globally doesn't downloads bundles sequentially. If I have bundle1 with files {f1,f2,f3} and bundle2 with files{f4,f5}. Then expected sequence of files should be f1,f2,f3,f4,f5. But actual outcome is different like f1,f4,f2,f3,f5 or f1,f4,f2,f5,f3,
Also I looked into the code. No where we have used global serie which we pass in config. So how bundles will be downloaded in sequence.
Let me know if which version this working?


import/export postman collections and environment

It would be nice to have an option to import/export postman collections and environment

Hi @StephaneBonilla
Thanks you for using the Fetch Client extension. This feature (import postman collection) has added in Fetch Client v1.4.0
Please update the Fetch Client and let me know if you have any queries/feedback.


shadow

How to add shadow to the window?I want your help

Check out my reply on medium. Which outlines how to address your question.
https://medium.com/p/32be1ed3da2?source=linkShare-b845581492b4-1611238762
Thanks.

Check out my reply on medium. Which outlines how to address your question.
https://medium.com/p/32be1ed3da2?source=linkShare-b845581492b4-1611238762
Thanks.


feat: domain for iitbhu (primary)

Official Website: https://iitbhu.ac.in/
IT related course: https://iitbhu.ac.in/dept/cse

Proof
On the following link https://iitbhu.ac.in/cf/cis which is our Computer Facilities Page you can find the check mail button in the footer whose hyperlink reference is to http://mail.itbhu.ac.in/ which is our primary domain apart from iitbhu.ac.in
The reason for the two domains is because our institute was renamed to Indian Institute of Technology in the year 2012 before that it was Institute of Technology (Reference). Hence for compatibility reasons both domains are kept in use but students are first provided itbhu.ac.in so they can only login using it but mail can be sent and received using iitbhu.ac.in as well.

@king-11 Pull request merged. Thank you for the very detailed request!


Docker build error for Dockerfile.js-shopping-cart

Here is the relevant stack trace:
Step 10/12 : RUN npm run prestart
 ---> Running in e8b21e1a1d1b

><EMAIL_ADDRESS>prestart /opt/samples/js-shopping-cart
> compile-descriptor -I../../protocols/example ../../protocols/example/shoppingcart/shoppingcart.proto

Compiling descriptor with command: /opt/node-support/protoc/bin/protoc --include_imports --proto_path=/opt/node-support/proto --proto_path=/opt/node-support/protoc/include --descriptor_set_out=user-function.desc -I../../protocols/example ../../protocols/example/shoppingcart/shoppingcart.proto
/opt/node-support/proto: warning: directory does not exist.
cloudstate/entity_key.proto: File not found.
cloudstate/eventing.proto: File not found.
google/api/annotations.proto: File not found.
google/api/http.proto: File not found.
google/api/httpbody.proto: File not found.
shoppingcart/shoppingcart.proto:19:1: Import "cloudstate/entity_key.proto" was not found or had errors.
shoppingcart/shoppingcart.proto:20:1: Import "cloudstate/eventing.proto" was not found or had errors.
shoppingcart/shoppingcart.proto:21:1: Import "google/api/annotations.proto" was not found or had errors.
shoppingcart/shoppingcart.proto:22:1: Import "google/api/http.proto" was not found or had errors.
shoppingcart/shoppingcart.proto:23:1: Import "google/api/httpbody.proto" was not found or had errors.
child_process.js:656
    throw err;
    ^

Error: Command failed: /opt/node-support/protoc/bin/protoc --include_imports --proto_path=/opt/node-support/proto --proto_path=/opt/node-support/protoc/include --descriptor_set_out=user-function.desc -I../../protocols/example ../../protocols/example/shoppingcart/shoppingcart.proto
/opt/node-support/proto: warning: directory does not exist.
cloudstate/entity_key.proto: File not found.
cloudstate/eventing.proto: File not found.
google/api/annotations.proto: File not found.
google/api/http.proto: File not found.
google/api/httpbody.proto: File not found.
shoppingcart/shoppingcart.proto:19:1: Import "cloudstate/entity_key.proto" was not found or had errors.
shoppingcart/shoppingcart.proto:20:1: Import "cloudstate/eventing.proto" was not found or had errors.
shoppingcart/shoppingcart.proto:21:1: Import "google/api/annotations.proto" was not found or had errors.
shoppingcart/shoppingcart.proto:22:1: Import "google/api/http.proto" was not found or had errors.
shoppingcart/shoppingcart.proto:23:1: Import "google/api/httpbody.proto" was not found or had errors.

    at checkExecSyncError (child_process.js:635:11)
    at execFileSync (child_process.js:653:15)
    at Object.<anonymous> (/opt/node-support/bin/compile-descriptor.js:47:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47 {
  status: 1,
  signal: null,
  output: [
    null,
    Buffer(0) [Uint8Array] [],
    Buffer(787) [Uint8Array] [
       47, 111, 112, 116,  47, 110, 111, 100, 101,  45, 115, 117,
      112, 112, 111, 114, 116,  47, 112, 114, 111, 116, 111,  58,
       32, 119,  97, 114, 110, 105, 110, 103,  58,  32, 100, 105,
      114, 101,  99, 116, 111, 114, 121,  32, 100, 111, 101, 115,
       32, 110, 111, 116,  32, 101, 120, 105, 115, 116,  46,  10,
       99, 108, 111, 117, 100, 115, 116,  97, 116, 101,  47, 101,
      110, 116, 105, 116, 121,  95, 107, 101, 121,  46, 112, 114,
      111, 116, 111,  58,  32,  70, 105, 108, 101,  32, 110, 111,
      116,  32, 102, 111,
      ... 687 more items
    ]
  ],
  pid: 27,
  stdout: Buffer(0) [Uint8Array] [],
  stderr: Buffer(787) [Uint8Array] [
     47, 111, 112, 116,  47, 110, 111, 100, 101,  45, 115, 117,
    112, 112, 111, 114, 116,  47, 112, 114, 111, 116, 111,  58,
     32, 119,  97, 114, 110, 105, 110, 103,  58,  32, 100, 105,
    114, 101,  99, 116, 111, 114, 121,  32, 100, 111, 101, 115,
     32, 110, 111, 116,  32, 101, 120, 105, 115, 116,  46,  10,
     99, 108, 111, 117, 100, 115, 116,  97, 116, 101,  47, 101,
    110, 116, 105, 116, 121,  95, 107, 101, 121,  46, 112, 114,
    111, 116, 111,  58,  32,  70, 105, 108, 101,  32, 110, 111,
    116,  32, 102, 111,
    ... 687 more items
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>prestart: `compile-descriptor -I../../protocols/example ../../protocols/example/shoppingcart/shoppingcart.proto`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>prestart script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Looks like the docker build for samples/js-shopping-cart requires node-support to be set up first. Change into the node-support directory and run npm install, and then the js-shopping-cart docker build should work. Or there's a script in the build for js-shopping-cart:
https://github.com/cloudstateio/cloudstate/blob/master/samples/js-shopping-cart/package.json#L48
Just cd samples/js-shopping-cart and npm run dockerbuild

I've tried out the docker build, and it works with the dockerbuild script, or manually after running npm install in node-support. I'll close this issue. @ncri, just let us know any further issues. And this sample may be easier to follow: https://github.com/cloudstateio/samples-js-shoppingcart

Thanks @pvlugter, will try.


using lookAhead=0 with many concurrent Players results in occasional error when buffer playback ends naturally: "The time must be greater than or equal to the last scheduled time"

I'm working on a drum pad type app and using Tone.context.lookAhead = 0 for lowest latency. I recently updated to Tone 14.7.39 from 13.8.25 and started seeing this error thrown during more intense playback situations when 20+ buffer players are simultaneously playing. It's difficult to reproduce consistently but happens often enough. It is not thrown directly as a result of my own code but rather when a Player finishes playing a buffer, so coming from some callback in Tone itself that occurs when a sound reaches it's end. Despite the error I hear no problems in the audio output and Tone continues to function normally AFAICT, and the same Player(s) that are seemingly the source of the error can be restarted without problems (making this seem perhaps more erroneous console clutter than bug? But I'm concerned it means some cleanup tasks are not occurring properly within Tone).
I am seeing this on Windows & Mac using Electron 8 with Chromium 80. Here's the full Chromium console output for the error:

Uncaught Error: The time must be greater than or equal to the last scheduled time
at r (...\node_modules\tone\build\Tone.js:1)
at Ot.add (...\node_modules\tone\build\Tone.js:7)
at Ot.setStateAtTime (...\node_modules\tone\build\Tone.js:21)
at Ae._onSourceEnd (...\node_modules\tone\build\Tone.js:21)
at se._onended (...\node_modules\tone\build\Tone.js:21)
at se._stopSource (...\node_modules\tone\build\Tone.js:21)
at Object._source.onended [as _onended] (...\node_modules\tone\build\Tone.js:21)
at AudioBufferSourceNode. (...\node_modules\tone\build\Tone.js:1)

Since I haven't yet figured a way to trigger this consistently figured I'd post here first for some feedback before attempting a JSFiddle to repro, perhaps someone has some ideas to help narrow down the cause. Here's what I know for sure:

Only happens when lookAhead = 0 or similarly low number e.g. lookAhead = .001. If lookAhead = .1, error is never thrown.
Same buffer playing code of mine never triggered this error in Tone 13.8.25
My app is juggling dozens of buffers and Players (including often multiple Players from the same buffer), but routing is extremely simple and no effects or scheduling/sequencing are in use. Players are routed straight to Destination and are played via a vanilla call to Player.start().
Playing multiple Players spawned from the same buffer simultaneously seems to increase the likelihood of seeing the error. Note I do not mean starting multiple Players simultaneously, rather I mean that multiple Players are started at different times playing the same buffer (think multiple overlapping ride cymbal hits). This is not #594.
The error is only being thrown when a sound plays to its end naturally, and randomly at that; never when explicitly calling Player.stop()

I was able to isolate this a tiny bit more and created a fiddle on which I can intermittently but consistently reproduce the bug on latest Chrome 84, Win10:
https://jsfiddle.net/marcelblum/bsja5t7r/
I haven't been able to completely automate reproducing the error, but after I introduced some randomness in the order of walking through different Players to use, and loaded 3 different sounds of 6-9secs each to randomly start Players from, the frequency of the error increased. This example creates 20 Players from each of the 3 buffers, then creates a shuffled order to play them in and starts a different randomly chosen Player on each key press or button click. Once all 60 Players have been played a new shuffled order is generated.
After clicking to start Tone, basically just hammer on your keyboard such that you have 40+ players actively playing, then wait for all players to come to an end. If you don't see the error yet, repeat :). By the 2nd or 3rd cycle of doing this, for me the error has appeared at least once (usually more).
Sorry this is a bit clunky but the best I could to to replicate the scenario in which I'm seeing the issue!


Bug 1948090: Deploy multiple replicas of CSI Controller Service

Currently, we deploy only one replica of the CSI Controller Service Deployment. This apparently leads to the operator going unavailable when draining the node where the Deployment is running on. Also, since we use the RollingUpdate strategy, Deployment rollous get stuck in single-node clusters because the new pod waits for a node with free ports, which never happens because the old pod is waiting for the new pod to start.
This patch uses the hook introduced in openshift/library-go#1056 to run multiple replicas of the operand, i.e., 1 in single-node control-planes or 2 in multiple-node control-planes. In addition to that, we set maxSurge=0 and maxUnavailable=1 in the RollingUpdate strategy to make sure pods are drained one at a time and to prevent more than one pod (same operand) running at the same time in the node, since we use nodePorts and hostNetwork in this operator. Also, we set anti-affinity rules to avoid two replicas running on the same master node.
Finally, I add a commit to create a PDB in order to prevent all CSI Controller Service replicas going unavailable.
CC @openshift/storage

/bugzilla refresh

/retest

There is something odd with CSI migration setup. I was able to trace it up to CSI driver Deployment pods not starting with
       message: Back-off pulling image "registry.build01.ci.openshift.org/ci-op-zsmtwb76/stable@sha256:f2bee0fcf7d83d5d25a19fd4b8e2122a135a66ef6159359c6722e973c9e5d91e"
Weird is that the driver container itself started, only (some?) sidecars got ImagePullBackOff

/retest

e2e-azure is failing because of https://bugzilla.redhat.com/show_bug.cgi?id=1988992

/retest

/lgtm
CSI migration are flakes, the operator was installed correctly.


Create vassboskovice.txt

E-mail addresses were moved from @vassboskovice.eu (eu/vassboskovice.txt) to main domain @vassboskovice.cz

@danielvitek Pull request merged. Does it mean that lib/domains/eu/vassboskovice.txt should be removed because @vassboskovice.eu addresses are not longer in use?

Yes, it does. There is redirect from @vassboskovice.eu to @vassboskovice.cz. So lib/domains/eu/vassboskovice.txt can be removed.
Thank you!

@danielvitek Thank you for the update. lib/domains/eu/vassboskovice.txt is removed.


limit wavesurfer.js < 7.x

wavesurfer.js 7.x or newer is not supported.

coverage: 66.3%. remained the same
when pulling a15697d79ec44dc237d78216440f78e9f22f385e on v3.10.0
into 094d933d5508af1ee4022b19e7dc074f5c888353 on master.


ssqrt sampling for square-root filter

Ensemble::transform does not removing (1, ..., 1) eigen component


the ability to execute a command when a user connects / disconnects to an active session

Hi!
Can I, by some parameters, find out if there is now a connection to xrdp in the system?
The bottom line is to execute a specific command when connecting and disconnecting a user to an active session.
For a better understanding, I will give an example of code that does what I need.
But it looks like a crutch. I would like a more correct solution.
while true do if [ -e /var/run/xrdp/xrdp_chansrv_audio_in_socket_10 ] then wmctrl -k off else wmctrl -k on fi sleep 1 done

@skochko - at the moment this information isn't available directly from xrdp itself. We're currently working on re-implementing a part of the system that will make this easier (in #1961) but this isn't available yet.
You can have a script run in the context of the user by using the ReconnectScript setting in /etc/xrdp/sesman.ini, but at the moment there isn't a disconnect equivalent.

Understood thanks!


perf: add_rows follow-up, also check for empty table (no rows)

See #606

another way to check for empty tables (no rows)

@Marsmaennchen221 Here is the check for amount of rows equals 0

See #608

Superseded by #608