Loading icon for files while uploading

Feature request type
Enhance component
Component name
MudExUploadEdit
Is your feature request related to a problem?
No response
Describe the solution you'd like
When you upload a larger file or upload many files the component "hangs" and there is no update that the files are being added to the component. Users may try to re-upload because of no visual indication. Maybe the file can show up as soon as it is added then instead of the rename/delete icons it has a loading wheel until it is finished?
Have you seen this feature anywhere else?
No response
Describe alternatives you've considered
No response
Pull Request
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

I will implement this

Not yet released but you can see current state on https://mudex.azurewebsites.net/upload-edit


SmsQuery.getAllThreads never returns

Describe the bug
SmsQuery.getAllThreads never returns the SMS Threads.
To Reproduce
Steps to reproduce the behavior:

Create a barebones Flutter project
Add this function to the top of your main.dart

void getAllSmsChats() async {
  SmsQuery query = new SmsQuery();
  List<SmsThread> chatThreads = await query.getAllThreads;

  for (var chatThread in chatThreads) {
    log(chatThread.messages[0].body);
  }
}

Run the function
Nothing Happens
Re-run it
Observe already requested error

Expected behavior
I would expect the list to be returned so it can log the messages.
Smartphone (please complete the following information):

Device: Huawei P Smart (FIG-LX1)
OS: Android 9.1 Pie

Additional context
None.

At the moment I am preparing for my final work presentation. Was really busy past few months that I sadly had to abandon this project. But next week I will be back and I will look at it and if possible fix the bug.
Extra Info needed

From which branch is it? Any other than master is WIP.
Is Swift support turned on?
Do you have permission to read the messages?

PS
If you could fix the bug, you can always make a merge request or if you have any idea from where the bug could come. You can post it here.

It's master -- I'm using the latest package release
No, I'm only developing for Android.
Yes. And contacts, too. Normal SMS query works fine.

And I have no clue where the error could be coming from, unfortunately.

Sorry for the long wait. First will restructure the project and then I will see what I can do about this bug you have.


"ck compile program:caffe-time --target_os=android21-arm" fails with Android NDK GCC compiler

$ ck compile program:caffe-time --target_os=android21-arm

<...>

In file included from /home/anton/CK_TOOLS/lib-opencv-development-android-ndk-4.9.x-android21-arm-32/src/3rdparty/libwebp/cpu-features/cpu-features.c:61:0:android-ndk-r13b/platforms/android-21/arch-arm/usr/include/machine/cpu-features.h:52:6: error: #error Unknown or unsupported ARM architecture
 #    error Unknown or unsupported ARM architecture
      ^
make[2]: *** [3rdparty/libwebp/CMakeFiles/libwebp.dir/cpu-features/cpu-features.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Full log: caffe-time.android21-arm.gcc.txt

A trivial workaround seems to use:
ck compile program:caffe-time --target_os=android21-arm-v7a

but one would naturally expect:
ck compile program:caffe-time --target_os=android21-arm

to succeed if it's allowed.

Well, this is a real program (and not program:caffe which is a front-end to already compiled caffe), so you need to compile it first ;). Therefore it's not a workaround, but correct usage ;) ... I also wrote it in the docs ...
As for OS - originally I had only -arm, but then it caused lots of confusion, because different packages means different things under default -arm (I noticed it when I was unified all Caffe deps), that's why eventually I tried to unify it similar to what other meant by this:

androidXX-arm has
"abi": "armeabi",

android19-arm-v7a
"abi": "armeabi-v7a",

android19-arm-v7a-neon
"abi": "armeabi-v7a",
"cpu_features": {
"arm_fp_neon": "yes"
},

android19-arm-v7a-hard-neon
"abi": "armeabi-v7a",
"cpu_features": {
"arm_fp_hard": "yes",
"arm_fp_neon": "yes"
},

Also, notice, that if we use device module for ARM's workload automation, it will try to detect device features and will try to automatically pre-set correct OS ...
So, it's more about conventions. Otherwise, how will we specify default ABI of "armeabi"? Which CK OS extension should we use?

I see what you mean. But I used the compile action in both cases: just with --target_os=android21-arm-v7a it succeeded and with --target_os=android21-arm failed halfway...
I guess I am complaining that CK should have given a warning and presented a list of options for the ambiguous target arm. In fact, it would be nice to use something like:
$ ck compile program:caffe-time --target_tags=android,arm

and then be asked to resolve the target with supported versions of Android and architecture...

My idea was to keep basic blocks such as "program" quite simple and gradually add more functionality in a higher-level modules. As I mentioned, there is already additional functionality which we do not use much yet, where you connect your "machine", describe it, detect parameters, and then use it as a target, i.e.
$ ck add machine:my-target-machine
above command should normally be able to detect the most appropriate Android OS version and ABI, and then you can use it as following:
$ ck compile program:caffe-time --speed --target=my-target-machine
This is the preffered method, but I just didn't have time to thoroughly test it though. It was prepared as a part of CK-WA: https://github.com/ctuning/ck-wa
However, eventually, we can also enhance compilation with tags, as you suggest. I am neutral to that, particularly if it is useful for users and simple to implement ;) ...


async callbacks are not capturing the active domain

If using nodejs domains, then async callbacks should run in the context of the current domain.
This doesn't appear to be happening with node-julia.
Here's some unit tests.
The first one fails.
The 2nd one (passes) shows how it should work with  an example from setTimeout.
The 3rd one (passes) shows how if I manually bind my callback to the domain then it works.
The 4th one (fails) shows domain.active is not set correctly
The 5th & 6th one show that it is set correctly when using setTimeout or domain.bind:
import * as julia from 'node-julia';
import { expect } from 'chai';
import domain     from 'domain';

describe('it should work with domains', () => {

    it('should throw errors to the domain context', done => {
        const d = domain.create();
        d.on('error', () => done());
        d.run(() => julia.eval("2+3", () => { throw new Error("some error"); }));
    });

    it('should throw errors to the domain context with d.bind()', done => {
        const d = domain.create();
        d.on('error', () => done());
        julia.eval("2+3", d.bind(() => { throw new Error("some error"); }));
    });

    it('should set active domain inside timeout', done => {
        const d = domain.create();
        d.on('error', done);
        d.run(() => setTimeout(() => {
            expect(domain.active).to.equal(d);
            done();
        }, 0));
    });

    it('should set active domain inside callback', done => {
        const d = domain.create();
        d.on('error', done);
        d.run(() => julia.eval("2+3", () => {
            expect(domain.active).to.equal(d);
            done();
        }));
    });

    it('should set active domain inside callback when using bind()', done => {
        const d = domain.create();
        d.on('error', done);
        julia.eval("2+3", d.bind(() => {
            expect(domain.active).to.equal(d);
            done();
        }));
    });
});

It looks like the current domain (Context?) is not being captured when the work is queued?

That is certainly true and unless it's implicitly included in the Scope/Closure, then the only thing that prevents the synchronous case from failing as well is that it's throws to the current context which is connected to the domain. I feel this one should also be a result of an oversight and will be straightforward to address.

I've looked at the various blogs/documentation about how this is supposed to work, and supposedly it's all happen automatically so long as MakeCallback is used, but of course, that's not what's happening.  So I'm going to have to fix this because it's obviously not working like it's supposed to but it will need to be a bug fix to 1.2.

I suspect it is the first argument to MakeCallback.  You call some function to get the global context at the time you are calling back and so might be capturing the wrong context.  I wonder if you should call that code to get the global context when queuing the request and then storing that captured context with the callback so you can pass it to MakeCallback later.  That way you would capture the context in place when the call to julia.eval is made.
--
Brandon

On Jul 7, 2015, at 9:40 PM, Jeff Waller<EMAIL_ADDRESS>wrote:
I've looked at the various blogs/documentation about how this is supposed to work, and supposedly it's all happen automatically so long as MakeCallback is used, but of course, that's not what's happening. So I'm going to have to fix this because it's obviously not working like it's supposed to but it will need to be a bug fix to 1.2.
—
Reply to this email directly or view it on GitHub.

That's possible.  However, this slideware especially slide 14 and in the node src here and here, this appears to more closely associated with the Environment (node internal) and derived from the 2nd parameter.
Indeed that 2nd parameter is set to a global value which is likely wrong here
What it should be set to instead, though... Ah, maybe it's args.This() from the original call. but for a bare function, I felt that would be set to null.  No, wait maybe it's the closure object...  I'm going to at least try that.

ah yes it is the 2nd argument I meant to say.  Maybe you need to capture that global variable value at the start of eval() in order to capture the"current environment" for the callback.
--
Brandon

On Jul 7, 2015, at 10:11 PM, Jeff Waller<EMAIL_ADDRESS>wrote:
That's possible. However, this slideware especially slide 14 and in the node src here and here, this appears to more closely associated with the Environment (node internal) and derived from the 2nd parameter.
Indeed that 2nd parameter is set to a global value which is likely wrong here
What it should be set to instead, though... Ah, maybe it's args.This() from the original call. but for a bare function, I felt that would be set to null. No, wait maybe it's the closure object... I'm going to at least try that.
—
Reply to this email directly or view it on GitHub.

Attempted that, and various other things but so far have not obtained the desired result.  I feel that's very close to what needs to happen however.

This proved to be harder than expected.  args.This() was not actually null,  but nevertheless I was not successful in using it.  I finally had to give up and ask on [the nodejs forum] (https://groups.google.com/forum/#!topic/nodejs/05yhNtxfgjc), which turned out great.  I think that 71161730e4 addresses at least the issue for exec and eval.
But, what to do about calling JS-ified Julia structs seems not so straightforward.


Solr is not able setup with default config settins.

Issue Type

Bug Report / Support Request
Feature Idea
Documentation Report

Your Environment

Your OS

macOS (version)
Windows (version)
Linux (version)

Full console output

Summary

Hi @geerlingguy,
I am continuously facing issues while setup apache solr with default durpalvm settings. I have followed complete steups but still not able to run properly. Could you please help or suggest me any steps to fix it.

@geerlingguy i appreciate it if you help on the same.

Yeah, it definitely needs to be updated in default.config.yml. It should be on a 7.x version at least.

See related: https://github.com/geerlingguy/drupal-vm/issues/2017#issuecomment-594431881

Also related: https://github.com/geerlingguy/drupal-vm/issues/1960

Closing and directing attention to #1960


DateTime - property minutesValues doesn't work

Ionic version:  (check one with "x")
[ ] 1.x
[ X] 2.x
I'm submitting a ...  (check one with "x")
[X ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

Using the DateTime component and passing to the minutesValues property a string of comma separated numbers or an array of numbers, I can't choose from them. It shows all the minutes.
Expected behavior:

I expected that I can only choose from the given minutes.
Steps to reproduce:

Related code:
Case 1
<ion-datetime displayFormat="mm" minutesValues="0,5,10,15,25,30" [(ngModel)]="data.pauseTime"></ion-datetime>

Case 2
<ion-datetime displayFormat="mm" minutesValues="minutes" [(ngModel)]="data.pauseTime"></ion-datetime>

export class Page{
public minutes = [0,5,10,15];
....
}

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.3
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.4.0
Xcode version: Not installed

Thanks for the issue! I'm not able to reproduce the problem with the first example:
<ion-datetime displayFormat="mm" minutesValues="0,5,10,15,25,30" [(ngModel)]="data.pauseTime"></ion-datetime>

And on the second example, you should be wrapping minutesValues in brackets like this:
<ion-datetime displayFormat="mm" [minutesValues]="minutes" [(ngModel)]="data.pauseTime"></ion-datetime>

Does this solve your issue? More on property binding here: https://angular.io/docs/ts/latest/guide/template-syntax.html#!#property-binding

Thanks for the answer. Issue solve, I was using minutesValues and not minuteValues. The suggested doc on property binding was really helpful.

@giorgiopiatti Ahh I missed that! I modified one of our existing examples like this:
<ion-datetime displayFormat="h:mm A" minuteValues="0,15,30,45"></ion-datetime>

🙂


[FLINK-10963][fs-connector, s3] Cleanup tmp S3 objects uploaded as backups of in-progress files.

What is the purpose of the change
The S3 RecoverableWriter uses the Multipart Upload (MPU) Feature of S3 in order to upload the different part files. This means that a large part is split in chunks of at least 5MB which are uploaded independently, whenever each one of them is ready.
This 5MB minimum size requires special handling of parts that are less than 5MB when a checkpoint barrier arrives. These small files are uploaded as independent objects (not associated with an active MPU). This way, when Flink needs to restore, it simply downloads them and resumes writing to them.
These small objects are currently not cleaned up, thus leading to wasted space on S3.
This PR changes this by cleaning these files upon restoring and also when the "next" checkpoint is successfully acknowledged.
LIMITATION: Upon a failure, still there may be objects that were created after the last successful checkpoint but before the failure. These do not belong to the checkpointed state and they are not cleaned up. But this is a more general limitation which will be covered by another JIRA.
Brief change log
This PR adds the following methods to the RecoverableWriter:
boolean cleanupRecoverableState(ResumeRecoverable resumable) throws IOException;

boolean requiresCleanupOfRecoverableState();

The second one is just for optimisation purposes.
Verifying this change
Added the BucketTest class and 2 tests in the HadoopS3RecoverableWriterITCase.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@azagrebin

Thanks for the comments @igalshilman . I integrated most of them and answered to the rest. Let me know what you think and I will also wait for someone else to have a look at the Bucket.

Thanks for the comments @dawidwys ! I integrated them. Do you want to have another look or can I merge after Travis gives green?

@kl0u Feel free to merge it.


Server Sent Event support

Describe the feature you'd like
Adding a yew::service for Server Sent Events, I imagine this one wouldn't be too difficult to add as it would behave similar to a one-way Websocket, and web_sys has support for the EventSource object.
Describe alternatives you've considered (Optional)
While this can handled with Websockets as an alternative, the use cases are somewhat different, owing to communication being uni-directional.
Questionnaire

[ ] I'm interested in implementing this myself but don't know where to start
[ ] I would like to add this feature
[x] I don't have time to add this right now, but maybe later

I was in need of server send events as well. Therefore i created this little library: https://github.com/liquidblock/yew-sse
Unfortunately i did not test nor document it (and i did not create an example), but used it like this:
match self.sse.open(
    &url,
    self.link.callback(move |(id, message): (String, String)| {
        Message::SendEventMessage(id, message)
    }),
    self.link.callback(move |value: EventSourceUpdate| {
        match value {
            EventSourceUpdate::Open => Message::SendEventOpen,
            EventSourceUpdate::Error => Message::SendEventError,
        }
    }),
) {
    Ok(task) => {
        self.task = Some(task);
    }
    Err(e) => {
        // error handling
    }
}

self.sse is of type yew_sse::services::sse::EventSourceService and initialized with EventSourceService::new().
self.task is of type Option<yew_sse::services::sse::EventSourceTask> and when dropped it will close the server send event handling.
The onopen, onerror and onmessage events are handled and also the last event ID together with the message is passed to the callback. But i did not implement named events since i did not need them, but was thinking about using a HashMap with the name of the event as a key and the event handler task as a value. With that it would be possible to add and remove named events.
I wrote this library to be used by myself, but also intended to be used with yew and was planning on creating a PR after adding an example, documentation and tests, but never got the time for it.
The library works with stdweb and web-sys, but it was written for yew version 0.16.2.

I'm going to start taking a look at this

@liquidblock , do you plan to merge your crate as a service?

@liquidblock , do you plan to merge your crate as a service?

I've returned after a hard fall/winter to look at what @liquidblock has and to try to merge it into the code base. As this is my first foray into open source development, if anyone could offer up some time to walk me through a few things, I'd be REALLY grateful. I've gone through and read the yew/CONTRIBUTING.md file along with the external links listed in said file. For now, I'll get myself acquainted with his code base, clean up anything that may need cleaning up, and start with adding documentation.

I've returned after a hard fall/winter to look at what @liquidblock has and to try to merge it into the code base. As this is my first foray into open source development, if anyone could offer up some time to walk me through a few things, I'd be REALLY grateful. I've gone through and read the yew/CONTRIBUTING.md file along with the external links listed in said file. For now, I'll get myself acquainted with his code base, clean up anything that may need cleaning up, and start with adding documentation.

For now, I'll get myself acquainted with his code base, clean up anything that may need cleaning up, and start with adding documentation.

I prefer to be referred to by they/them pronouns.

@liquidblock , do you plan to merge your crate as a service?

The reason as to why I did not create a PR of my crate as a service in yew is because of my missing documentation, tests and examples.
For the tests (and maybe also the example) there probably needs to be some kind of server that has an Server Send Event interface that can be tested against.
Could that SSE testing server be started from the test case or would it be required to be already running for that specific test case?
This is a question I got stuck on and then did not ask here nor in Discord yet.

I would be interested in helping out moving the code into yew.
@thedanvail if you want some help moving the library into yew, extending it's implementation, answering some questions you might have, or writing tests/examples, let me know.

Also looking back at my code, there are some suggestions for further implementing SSE as a yew specific service:

The callback argument in open (and open_with_credentials) uses (String, String) as type argument.

Creating a separate type e.g. EventMessage instead of using (String, String) would make it more clear that the message contains the last event ID together with the message.
It would probably be nice to also use OUT: From<Text> as in yews WebSocketService::connect_text and then use (String, OUT) as Callback type argument. (or EventMessage<OUT> where the OUT type is used for the message and String is still used for the last event ID)

Named events are not yet implemented.

I suggest adding something like this to EventSourceTask:

fn set_named_listener<OUT: From<Text>>(
    &mut self,
    name: String,
    callback: yew::Callback<EventMessage<OUT>>,
) {
}
fn remove_named_listener<Q>(&mut self, name: Q)
where
    String: Borrow<Q>,
    Q: Hash + Eq,
{
}

and then inserting/removing EventListener in a HashMap that has been initialized with HashMap::with_capacity(0).

For now, I'll get myself acquainted with his code base, clean up anything that may need cleaning up, and start with adding documentation.

I prefer to be referred to by they/them pronouns.

@liquidblock , do you plan to merge your crate as a service?

The reason as to why I did not create a PR of my crate as a service in yew is because of my missing documentation, tests and examples.
For the tests (and maybe also the example) there probably needs to be some kind of server that has an Server Send Event interface that can be tested against.
Could that SSE testing server be started from the test case or would it be required to be already running for that specific test case?
This is a question I got stuck on and then did not ask here nor in Discord yet.

I would be interested in helping out moving the code into yew.
@thedanvail if you want some help moving the library into yew, extending it's implementation, answering some questions you might have, or writing tests/examples, let me know.

Also looking back at my code, there are some suggestions for further implementing SSE as a yew specific service:

The callback argument in open (and open_with_credentials) uses (String, String) as type argument.

Creating a separate type e.g. EventMessage instead of using (String, String) would make it more clear that the message contains the last event ID together with the message.
It would probably be nice to also use OUT: From<Text> as in yews WebSocketService::connect_text and then use (String, OUT) as Callback type argument. (or EventMessage<OUT> where the OUT type is used for the message and String is still used for the last event ID)

Named events are not yet implemented.

I suggest adding something like this to EventSourceTask:

fn set_named_listener<OUT: From<Text>>(
    &mut self,
    name: String,
    callback: yew::Callback<EventMessage<OUT>>,
) {
}
fn remove_named_listener<Q>(&mut self, name: Q)
where
    String: Borrow<Q>,
    Q: Hash + Eq,
{
}

and then inserting/removing EventListener in a HashMap that has been initialized with HashMap::with_capacity(0).

@liquidblock Good idea is to use warp as a server - it does have SSE support https://github.com/seanmonstar/warp/blob/master/examples/sse_chat.rs, https://github.com/seanmonstar/warp/blob/master/examples/sse.rs.
As for output types, IMHO it should be similar to WS service.

@liquidblock Good idea is to use warp as a server - it does have SSE support https://github.com/seanmonstar/warp/blob/master/examples/sse_chat.rs, https://github.com/seanmonstar/warp/blob/master/examples/sse.rs.
As for output types, IMHO it should be similar to WS service.

@liquidblock I’m sorry - I shouldn’t have assumed. I’ll remember to use non-specific language in the future.

@liquidblock I’m sorry - I shouldn’t have assumed. I’ll remember to use non-specific language in the future.

@liquidblock id love some help if you have the time to offer it. I’m with my partner this weekend, so I’ll be very sparse with communications, but on Monday, I’ll be back to it and maybe we can work together 😀

@liquidblock id love some help if you have the time to offer it. I’m with my partner this weekend, so I’ll be very sparse with communications, but on Monday, I’ll be back to it and maybe we can work together 😀

@thedanvail do you have a Discord account? There is a yew Discord server (the link is in yews readme).
Discord might be better suited for synchronous communication. I have some time on Monday, probably somewhere between 3pm-7pm UTC.

@thedanvail do you have a Discord account? There is a yew Discord server (the link is in yews readme).
Discord might be better suited for synchronous communication. I have some time on Monday, probably somewhere between 3pm-7pm UTC.

@liquidblock I do - I'll hop into that one. Unfortunately, I'm in CST time, so that's coincided with my work day, but I'll still do my best to knock out what I can! If I have problems/questions, would you mind if I messaged you?

@liquidblock I do - I'll hop into that one. Unfortunately, I'm in CST time, so that's coincided with my work day, but I'll still do my best to knock out what I can! If I have problems/questions, would you mind if I messaged you?

In case it is useful, I have this little library which I have extracted from some of my other code: https://github.com/strawlab/yew-event-source . You are welcome to incorporate as much or as little as you like directly into yew.

Update: Slowly but surely making progress. A lot of this is new to me, so there's a lot of learning to be done, but I'm getting there!

Hello everyone,
Regrettably, I think this is just beyond my skill level right now. I'd rather say this outright than just disappear into the ether. It'd be to the point where I was just riding off the coattails of whomever I would ask for help. So, I have to drop this from my plate; if anyone else can pick it up, please feel free! Thanks to @liquidblock for their help this far, and hopefully, when my JS/Rust skills are stronger, I can come and contribute in another way :)

@thedanvail thanks for the update. Please come back anytime!
Since there are two crates that implement SSE mentioned above (liquidblock's https://github.com/liquidblock/yew-sse and my https://github.com/strawlab/yew-event-source), it seems the most substantial hurdle for inclusion directly into yew is writing an example. (And possibly a test case, although the websocket service does not have that. Perhaps our standards are higher now and we should include tests for SSE and, while we are at it, for websockets.)
Since this is tagged with "good first issue", I will point out that the dashboard example uses the websocket service and hopefully could serve as a basis for new example for event source. I would say that for a "first issue", I would not require the initial implementation to include the test infrastructure to start a server.

yew::service doesn't exist anymore. This functionality should be part of gloo (https://github.com/rustwasm/gloo/issues/8) /reqwasm. This issue should probably be closed now.


Support skip clean hooks when cluster workspace not exist.

Signed-off-by: huaiyou<EMAIL_ADDRESS>
Describe what this PR does / why we need it
Support skip clean hooks when cluster workspace not exist. This can improve the robust of clean.
Does this pull request fix one issue?

Describe how you did it
Describe how to verify it
Special notes for reviews

Codecov Report
Base: 21.71% // Head: 21.66% // Decreases project coverage by -0.04% :warning:

Coverage data is based on head (08cbea5) compared to base (c37fc1b).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1832      +/-   ##
==========================================
- Coverage   21.71%   21.66%   -0.05%
==========================================
  Files          72       72
  Lines        6568     6581      +13
==========================================
  Hits         1426     1426
- Misses       4956     4969      +13
  Partials      186      186

Impacted Files
Coverage Δ

pkg/cluster-runtime/hook.go
3.79% <0.00%> (-0.35%)
:arrow_down:

utils/ssh/sshcmd.go
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Correct typo in papiNet-API.yaml

description: papinet API is a global initiative for the Forst and Paper supply chain.
should be
description: papinet API is a global initiative for the Forest and Paper supply chain.

#90

#94


Add link to instructions to refresh Google creds

This PR resolves #2520.
This PR adds a link to the instructions for a user to refresh their Google credentials to the Account Page in the event that the list of Google files are unable to be received.

Here's how it looks on my local install:

Should the instructions just be hosted on HB directly, rather than sending to github?

Probably eventually. But I think for this PR it's ok.

@G-Ambatte do you want to finish this one up and I can get it merged?

Sorry, I saw the request for changes while I was at work, thought "I'll deal with that tonight" and by the time I got home, it had completely slipped my mind.
I'll do my best to knock these out quickly today.

Google linked - no permissions:

Google linked - full permissions, 0 Google files:

MongoDB - 0 brews:


Enable jdk_math tests for JRE Images

Enable jdk_math tests for JRE Image with
- hotspot/openj9 impls
- Java9and up version
Signed-off-by: Sophia Guo<EMAIL_ADDRESS>

We already enabled this test for openjdk8-openj9. Some other version of JRE has been published https://adoptopenjdk.net/nightly.html . We should enable the test for those versions.
Test failure is expected as @johnoliver new script to output both jres and jdks have not delivered.


Update ealen/echo-server Docker tag to v0.7.0

This PR contains the following updates:

Package
Update
Change

ealen/echo-server
minor
0.6.0 -> 0.7.0

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update (0.7.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.


[Question] Efficiently sampling from the binomial distribution

I currently have a naive binomial sampler which uses jax.random.bernoulli under the hood:
def binomial(key, p, n=1, shape=()):
    p, n = _promote_shapes(p, n)
    shape = shape or lax.broadcast_shapes(np.shape(p), np.shape(n))
    n_max = np.max(n)
    uniforms = random.uniform(key, shape + (n_max,))
    n = np.expand_dims(n, axis=-1)
    p = np.expand_dims(p, axis=-1)
    mask = (np.arange(n_max) > n).astype(uniforms.dtype)
    p, uniforms = promote_shapes(p, uniforms)
    return np.sum(mask * lax.lt(uniforms, p), axis=-1, keepdims=False)

This works, but the biggest drawback is that it is not jittable due to the dynamic size argument passed to random.uniform (see error trace below). It is also wasteful in that it draws n_max uniform random floats and does an element-wise multiply with mask. I was wondering if there is a more efficient way to sample from the binomial distribution, using existing primitives.  The function to be transformed can't be traced at the required level of abstraction. If using `jit`, try using `static_argnums` or applying `jit` to smaller subfunctions instead.

../../../../miniconda3/envs/numpyro/lib/python3.6/site-packages/jax/abstract_arrays.py:38: TypeError

As I was looking into the code a bit, I think that if we could make the shape arg to random.uniform jittable, it will help use-cases like these where we may need to draw a variable number of samples in [0, 1), i.e. the shape arg could be an abstract value. This would help with such examples, e.g. binomial/multinomial samplers, but more generally anything where the shape arg isn't known until runtime. This would require a change to _random_bits and maybe other functions too, but I am unsure how feasible this is. 😄

Can you have shape be a static arg to jit? This would mean that binomial will get recompiled every time it is called with a different shape, but for multiple calls with the same shape (which seems like a common use-case) it should work.
The usage would be something like sampler = jit(binomial, statig_argnums=(3,)).
Alternatively you could decorate the function with @jit(static_argnums=(3,)).

The usage would be something like sampler = jit(binomial, static_argnums=(3,)).

Thanks for the suggestion. I don't think that would work as is because the size argument to random.uniform itself isn't static. It depends on n_max = np.max(n), but if we have both n and shape as static_args, it should work fine! This might not be ideal to use as a default decorator because in cases where n can take many possible values, e.g. if its coming from a data minibatch, we probably would end up spending a lot of time jitting this and not reclaiming any performance benefits in return. Another not so ideal strategy might be to set n_max to some high value or take in as static function argument so as not to force recompilation as often.

e.g. if its coming from a data minibatch, we probably would end up spending a lot of time jitting this
This is tricky...

(Responding on an old issue!)
TFP uses a hybrid of an inversion method in one regime and a batched rejection sampler in another: code.

I think @neerajprad has resolved this issue in numpyro, using a similar approach (following Hormann's paper).

@hawkinsp It would be nice to have a jax.random.binomial function like numpy.random.binomial. Are there any current plans to add it?


Added display grid sample

@singhgag Please review

@njarecha Add a few more comments in the source file. Otherwise the sample looks good. Feel free to merge the branch after resolving the conflicts. Good work.

One more comment. The methods in the readme file should be in swift.
For example, setTextSymbol:forLevel should be setTextSymbol(_:forLevel:)

I've addressed the comment. Merging...


Configuration error

my configuration like this,and i add the yiisoft/yii2-redis.but yii cant't find the  "\zhuravljov\yii\queue\redis\Queue",and show 500 error. I am strange with this,can you tell me how to solve
return [
'bootstrap' => ['queue'],
'components' => [
'queue' => [
'class' => \zhuravljov\yii\queue\redis\Queue::class,
'redis' => 'redis', // connection ID
'channel' => 'queue', // queue channel
],
],
];

I don't know why component doesn't work in you app.
Config is correct.
Did you install composer package?
Do you have vendor/zhuravljov/yii2-queue folder?
Do you have vendor/zhuravljov/yii2-queue/src/redis/Queue.php?
I think, if you answer on that questions, you will solve the problem yourself.

I have the vendor/zhuravljov/yii2-queue folder,but don't have vendor/zhuravljov/yii2-queue/src/redis/Queue.php.

I generate it by composer, why can't generate the /redis/Queue.php?
Or  create it by myself?

Ok, you need run composer update that update package to 0.11.0.

Thx, it work. vendor/zhuravljov/yii2-queue/src/redis/Queue.php was found.


"Provided that you have subscription access"

On this page item number 4 under "Connect to on-premises data" there is the statement "Provided that you have subscription access" but does not really clarify "what" level of access these users will need in order to see, select, or use the Gateway Resource. In my specific scenario our devs/users are creating LogicApps in a subscription dedicated to their team. The on-premises data gateway and accompanying Azure resource are managed by the IT/Infra team and the gateway resource is in their subscription. I need clarity on best-practice to get visibility to users of that other subscription. To be clear all users Logic App devs and IT admins are all in the same Azure AD tenant, but everyone is not given carte blanche access to each others sub throughout the enterprise. Is it merely read access to the resource group and or gateway resource itself? is there some larger subscription level role needed? "Provided that you have subscription access" is way to vague to accurately define needed access.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 7892e678-a98f-73fa-7c54-1a8a921f35c7
Version Independent ID: 064c9db9-5e18-7266-1740-ada24a2086a1
Content: Access data sources on premises - Azure Logic Apps
Content Source: articles/logic-apps/logic-apps-gateway-connection.md
Service: logic-apps
GitHub Login: @ecfan
Microsoft Alias: estfan

@jlrd Thank you for your feedback . We will investigate and update the thread.

@jlrd Thank you for your feedback . We will investigate and update the thread.

@jlrd For different operations on the logic app and OPDG, there are different action based permission needed. In this context "Provided that you have subscription access" means that you should have the necessary action permission to perform that operation. Based on different scenarios user might need to specify different action permission, therefore, the document specifies the general statement.
In your scenario, if you don't want to specify the predefined logic app RBAC roles (logic app contributor or logic app Operator) then you can create the custom roles and assign them to the users.
You can create custom roles and only provide Microsoft.Web/connectionGateways/* or a specific action (Microsoft.Web/connectionGateways/Write) to the user who is configuring the OPDG. If you want them to create a connection gateway in the portal then you might need other permission such as Microsoft.Resources/subscriptions/resourceGroups/read to list the resource group while creating the connection gateway in the azure portal.
Hope the above helps and clears things up. Feel free to get back to me if you have any concerns.

@jlrd For different operations on the logic app and OPDG, there are different action based permission needed. In this context "Provided that you have subscription access" means that you should have the necessary action permission to perform that operation. Based on different scenarios user might need to specify different action permission, therefore, the document specifies the general statement.
In your scenario, if you don't want to specify the predefined logic app RBAC roles (logic app contributor or logic app Operator) then you can create the custom roles and assign them to the users.
You can create custom roles and only provide Microsoft.Web/connectionGateways/* or a specific action (Microsoft.Web/connectionGateways/Write) to the user who is configuring the OPDG. If you want them to create a connection gateway in the portal then you might need other permission such as Microsoft.Resources/subscriptions/resourceGroups/read to list the resource group while creating the connection gateway in the azure portal.
Hope the above helps and clears things up. Feel free to get back to me if you have any concerns.

@jlrd Hope the above helps and clears things up. We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

@jlrd Hope the above helps and clears things up. We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Better time series visualization

I’ve been taking the time to use IPFS Desktop more and more to monitor my IPFS node and it just dawned on me that probably we don’t want a bandwidth graph since the dawn of time, otherwise it makes it look very spiky

Note that this window of time is just a span for 2:30h hours, which is not that large.

NB: moving to ipfs-webui since this is an upstream discussion.


cannot access I2C after soft reboot with UF2 bootloader

When the UF2 bootloader is installed on my metro-esp32s2 -- I am unable to access an I2C device after a soft reboot.
I can access after a hard reset but then it fails after a soft reboot if I try to access it again.
see issue at https://github.com/adafruit/circuitpython/issues/4147
The issue does not occur if I do not use the UF2 Bootloader on the Metro-esp32s2

do ya have a logic analyzer trace of the scl/sda lines? it may be illuminating

Yes -- I'll see what I can find.

With UF2 bootloader -- this is a "normal" I2C accessing the SHTC3 sensor

This is the failed aces after a soft reboot -- no activity on SDA

what the...?

wanna see if you can query the i2c SDA pin mux? thats the only thing i can imagine it is

Can you give some instructions. I don't understand what you are asking for. sorry...

lets wait till @hathach is back from TET holiday - could you verify that the other 'weird i2c issues' with esp32s2 in circuitpython are resolved when uf2 is not used?

I'll take a look.

The issue with the  mcp9600 https://github.com/adafruit/circuitpython/issues/3894
occurs on my metro-esp32s2 even without the UF2 bootloader so does not appear to be related.
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

Press any key to enter the REPL. Use CTRL-D to reload.

Adafruit CircuitPython 6.2.0-beta.2 on 2021-02-11; Adafruit Metro ESP32S2 with ESP32S2
>>> import mcp9600_simpletest
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mcp9600_simpletest.py", line 12, in <module>
  File "adafruit_mcp9600.py", line 178, in __init__
  File "adafruit_mcp9600.py", line 178, in __init__
OSError: [Errno 19] Unsupported operation
>>>
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

Code done running.

Press any key to enter the REPL. Use CTRL-D to reload.

Adafruit CircuitPython 6.2.0-beta.2 on 2021-02-11; Adafruit Metro ESP32S2 with ESP32S2
>>> import mcp9600_simpletest
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mcp9600_simpletest.py", line 12, in <module>
  File "adafruit_mcp9600.py", line 165, in __init__
ValueError: No I2C device at address: 67
>>>

the test code in https://github.com/adafruit/circuitpython/issues/4046  also causes a crash - drop USB and resets
import board
import busio
print(dir(board))
i2c = busio.I2C(board.SCL, board.SDA)

def printdevices():
    i2c.try_lock()
    # Find the I2C devices available.
    devices = i2c.scan()
    print("I2C devices:", len(devices))
    for device in devices:
        print(hex(device))
    i2c.unlock()
    print("I2C unlocked! ")

printdevices()

mcp9600 is a bad chip to use for testing, use something that is 'normal' acting

mcp9600 is a bad chip to use for testing, use something that is 'normal' acting

Agreed! I was just trying to reproduce the issue. So far, not having issues with other boards - shtc3 or bme680

Hello, I think I figured out something in regards to this. I hooked up a project that used a bme280 and pm25 sensor (to a MagTag). It always worked fine when I initialized the pm25 sensor first, but failed as described when I did the bme280 sensor. I noticed in the library that the main difference between the init of the drivers is the pm25 is attempted to be probed multiple times and the bme280 is attempted to only be probed once. I made a local change in my bme280 lib to attempt multiple times as well and it consistently worked.
So I hooked up a logic analyzer and it appears to consistently need 2 probes to start communicating. Here are the logic analyzer screenshots.
At a high level, here's what it looks like:

The first blip looks like this. I think it's just i2c being set up or something.

Next it does 2 of these. I think this is the probe because I had a delay in there originally (which turned out to be unnecessary) and that altered the time between these packets.

After that, the chip responds just fine.

This may be more circuitpython related though.

I guess this is fixed now in circuitpython and safe to close, right ?

I think it should probably be re-tested first. @jerryneedell did you want to try re-testing? I don't have the sensors with me at the moment.

quick check, could we close this now ? @makermelissa @jerryneedell

I'm pretty sure this isn't an issue anymore. We can always re-open if it is.

Thanks! For some reason, I never saw the earlier prompts to me. Sorry. I was not ignoring you!

No problem at all. I forgot about this as well :)


Animate received mood

Kniwwelino display doesn't reflect an incoming mood message. Some sort of animation should play. We should also look at the timing interplay between message arrival and servos starting to move: if we queue servo actions first before performing something on the display, does that (a) look better/make more sense, and (b) not interfere horribly with background servo tasks?

I'm reminded from watching the first video (with three Kniwwelino) that I originally had a Cylon scanner animation in that code. See if I can find that and paste it in?

Found it. Pasted in (it's nasty, but what the heck). Will be closed by forthcoming PR from inverted_mode branch.

Closed by #21


Wrong loglevel for "Executing postcondition ..."

Why does this statement have an ERROR log level?
LOGGER.error("Executing postcondition of changeset ID {} by {}", changeset.getId(), changeset.getAuthor());
executeChangesetQueries(changeset.getQueries());

Postcondition postcondition = changeset.getPostcondition();
postConditionApplies = postcondition != null && executeCondition(postcondition);```

Good question, thanks for pointing that out :)
It should just be an INFO level indeed. Would you like to submit a PR for this?


Opty Naming Class: "Attempt to de-reference a null object." error when Site Guest User creates an Opportunity

Issue: When Padlock Site Guest User security settings are enabled and Default Site Guest User record owner option is used for force.com sites, the NPSP Classes built as "with sharing" are failing. Query's run as the Site Guest User that need to locate a record owned by another User (due to default enabled) cannot find the record as Sharing Rules fire after Triggers.
Steps to Reproduce (in an org that has NPSP and an Opty Naming rule configured in NPSP Settings):

Enable Sites and create a Site URL to create a Site Guest User
Enable Padlock ("Secure guest user record access" on Sharing Settings page in Setup)
Enable "Assign new records created by Salesforce Sites guest users to a default owner in the org" setting on Sites page. Define a default on the site itself.
Use the Site URL to create an Opportunity record (for example as part of an ISV partner integration), and note the error. While the error is received, the Opty record should be created as expected. The NPSP Opty naming class "Opp_OpportunityNaming" will have failed to run, preventing the name of the new Opty from being set per the naming rule.
Delete the Opty Naming Rule in NPSP Settings or disable the default setting and test again. Note there is no error when the Opty is created.

For further details see internal GUS Investigation W-7544682
Cause: The NPSP's Opty Naming class Opp_OpportunityNaming is setup as "With Sharing", which prevents the Site Guest User running the naming class from locating the newly created Opty during it's SOQL Query.
Potential Solution: Modify the Opty Naming class Opp_OpportunityNaming to use "Inherited Sharing". Initial testing of this solution has been successful, however additional risk assessment and testing is needed.

**lurch: attach: W-042146

**lurch: attach W-042146

Tracking W-042146


TensorBoard Problem

Dear @ruotianluo,
When I run the train.py code for MS-COCO data set, I have faced the following error:
Traceback (most recent call last):   File "train.py", line 204, in <module>     train(opt)   File "train.py", line 152, in train     for k,v in lang_stats.items(): AttributeError: 'NoneType' object has no attribute 'items' Terminating BlobFetcher
this error occurred, when the evaluation process is running (i.e., save_checkpoint process).
When I have commented the # Write validation result into summary part in your train.py code, then everything were correct, unless I can't seen chart in the TensorBoard.

I see, the reason is your language_eval is 0. So lang_stats is None.

Oh, OK. Thank you very much.


Issue accessing nested types on sugared types

Describe the bug
When you try to access a nested type of a sugared type in Swift Playgrounds, there's a compiler error saying that "Consecutive statements on a line must be separated by ';'". If you do this in Xcode, the error given is more descriptive but equally unhelpful. "Reference to member 'Iterator' cannot be resolved without a contextual type". However, when you access the type with the full, non-sugared name of the type, it works as expected.
This code causes an error currently:
extension Optional {
    typealias Wrapped = Wrapped
}

typealias DictionaryIterator = [Int: Double].Iterator
typealias ArrayIterator = [Int].Iterator
typealias UnwrappedInt = Int?.Wrapped

But this doesn't:
typealias DictionaryIterator = Dictionary<Int, Double>.Iterator
typealias ArrayIterator = Array<Int>.Iterator
typealias UnwrappedInt = Optional<Int>.Wrapped

Expected behavior
That the nested types would also be accessible from sugared types.
Environment (please fill out the following information)

OS: macOS Ventura Beta 1
Xcode Version/Tag/Branch: 14

This is a long-standing representational problem. An IdentTypeRepr stores a list of components where each component is either a SimpleIdentTypeRepr or a GenericIdentTypeRepr. There is no provision for an arbitrary base TypeRepr followed by a dot and nested type name.


Question for self-hosted runner?

I am trying to run this action on a self hosted runner. I am getting the following error which makes sense. Is there a specific setup of github runner that this action is designed for?
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

The action expects sudo to work, without a password. I think creating an /etc/sudoers file in your runner would accomplish this.

Reopen if not sufficiently answered.

Is this really designed to run on self-hosted runners?
This seems to:

Think it's reasonable to use sudo on the host without a password
Overwrite /usr/bin/tailscale and tailscaled on the host without checking to seeing they already exist
Runs the binary as root that it just installed as root, without checking to see if Tailscale is already running.

As a security product, are you really advising self-hosted runners that's reasonable to trust Github Actions to download remote binaries and run them as root?

To  ssh/rsync out of a container, I found an alternate solution: Use the ProxyCommand option to SSH through an account on  the host running TailScale, which can then resolve the tailnet from there. When that pattern is used, the TailScale Github Action is not needed within a container at all.

To ssh/rsync out of a container, I found an alternate solution: Use the ProxyCommand option to SSH through an account on the host running TailScale, which can then resolve the tailnet from there. When that pattern is used, the TailScale Github Action is not needed within a container at all.

Could you expand on this for a new bro with GitHub Actions?

ProxyCommand is an SSH configuration option that allows you to  give the details of an intermediate host that your SSH connections should be proxied through.
A common pattern for using is when you have a private network full of machines, but none of them expose SSH to the public. A single machine, called a bastion or jumphost, listens for SSH on the public network, but is also a member of the private network.
If you were connecting the CLI, the command structure might look like this:
ssh -J bastion.example.com internal-host.example.com

TailScale is one technology that can create a private network.
So, to SSH into a tailnet without being on a tailnet, one way to do that is use the ProxyCommand feature to SSH into an intermediate server that is both on your network and is also part of the tailnet.
So, a container on a CI server doesn't itself need to be part of a tailnet, as long as it can SSH into the parent CI server, and the parent CI server itself is part of the tailnet.
Ref: https://www.cyberciti.biz/faq/linux-unix-ssh-proxycommand-passing-through-one-host-gateway-server/
If you want to use the method for other things besides SSH, you possibly can. Research SSH tunnels. SSH tunnels can traverse bastion hosts such that you could end up accessing any port on a remote machine in a tailnet as if it was port on your local machine.
This can work like a "Poor Man's VPN" to access resources privately and securely when SSH is available but a true VPN service is not.


fixed $MANPATH reference

:)

this fixes $MANPATH on my OS X (10.11.6) machine for homebrew's fzf
$ brew update && brew install fzf
$ cd `brew --prefix` && pwd
/usr/local/opt/fzf
$ cd man
cd: no such file or directory: man
$ tree share
share
└── man
    └── man1
        ├── fzf-tmux.1
        └── fzf.1

2 directories, 2 files

potentially useful debug info:
$ brew info fzf
fzf: stable 0.13.5 (bottled), HEAD
Command-line fuzzy finder written in Go
https://github.com/junegunn/fzf
/usr/local/Cellar/fzf/0.13.5 (16 files, 3.4M) *
  Poured from bottle on 2016-09-05 at 05:37:53
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/fzf.rb

while installing to $fzf_base/, do any systems install to ./man/ vs ./share/man/?
i could add an if 'OS_X' check in there, if so

Thanks for looking into it. The path is invalid only when you installed fzf using Homebrew, otherwise (git clone) the path is correct. And in that case we don't have to add it to MANPATH as Homebrew creates symlinks to those files inside /usr/local/share/man/man1 which is already in MANPATH. So I would say that the current code is correct in that it does not update MANPATH when the directory is not found.


Market Orders

Market order shouldn't place a bid but just consume what's on the book.
Not implemented yet but a suggestion ^

I was just about to create an issue about the need for simplified buying/selling, but saw that it could be fused with this one. The current UI for placing trades is great for traders, not so much for the average user... I am myself a bit confused so imagine the reaction from the average guy (what do all these freaking numbers mean? I just want to bet on the presidential election!).
I think there should be a simplified UI displayed by default with only market orders, and nice, big BUY/SELL buttons with percentage display and a neat green/red color. Then you could switch to the full "order book trading", if you want to.

Moved to CH


Call Hierarchy: Same ids being used for separate tree items

Refs: #71083
From this screenshot, I have a feeling we might be giving the same ID to different tree items, in Call Hierarchy?

good guess: https://github.com/Microsoft/vscode/blob/e4e0eb0637feabd0a180be031ab9eaba2490dbf3/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.ts#L54-L56


Clustering on heat map never worked

Just a circle spinning...no results.  Anchoring did work, btw.

#673

Closed as duplicate of #673


EVFEVENT file - has QTEMP/QSOURCE in path.

I was again trying local development in code-4-i with BOB actions.
When attempting to create a display file, the evfevent file came back with an error result, but the path to the file was qtemp/qsource, instead of the correct path.

BOB uses crtfrmstmf which fixes the EVFEVENT after the compile if *EVENTF was used.
See https://github.com/IBM/ibmi-bob/blob/45e40c5e1f5648b11bdec626028077bd3e959450/src/makei/crtfrmstmf.py#L137
Do you have this in git, as that should not happen.

BOB uses crtfrmstmf which fixes the EVFEVENT after the compile if *EVENTF was used. See
https://github.com/IBM/ibmi-bob/blob/45e40c5e1f5648b11bdec626028077bd3e959450/src/makei/crtfrmstmf.py#L137
Do you have this in git, as that should not happen.

It is here, in git:  https://gitlab.com/JDubbTX/my-first-ibm-i-project

BOB uses crtfrmstmf which fixes the EVFEVENT after the compile if *EVENTF was used. See
https://github.com/IBM/ibmi-bob/blob/45e40c5e1f5648b11bdec626028077bd3e959450/src/makei/crtfrmstmf.py#L137
Do you have this in git, as that should not happen.

It is here, in git: https://gitlab.com/JDubbTX/my-first-ibm-i-project
@JDubbTX
Is this link   still valid?

i didn't have it set public.  it is now.
John Weirich (he/him)
979.219.9262

From: Edmund Reinhardt @.>
Sent: Thursday, April 4, 2024 10:21:55 PM
To: IBM/ibmi-bob @.>
Cc: John Weirich @.>; Mention @.>
Subject: Re: [IBM/ibmi-bob] EVFEVENT file - has QTEMP/QSOURCE in path. (Issue #280)
BOB uses crtfrmstmf which fixes the EVFEVENT after the compile if *EVENTF was used. See
https://github.com/IBM/ibmi-bob/blob/45e40c5e1f5648b11bdec626028077bd3e959450/src/makei/crtfrmstmf.py#L137
Do you have this in git, as that should not happen.
It is here, in git: https://gitlab.com/JDubbTX/my-first-ibm-i-project
@JDubbTXhttps://github.com/JDubbTX
Is this link still valid?
—
Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-bob/issues/280#issuecomment-2038767054, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANRLW3D6MJV237TM3HZEUE3Y3YKFHAVCNFSM6AAAAABBD6J64WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZYG43DOMBVGQ.
You are receiving this because you were mentioned.Message ID: @.***>

I can get to https://gitlab.com/JDubbTX
but when I access https://gitlab.com/JDubbTX/my-first-ibm-i-project
I get a 404

OK, forgot I moved the project.  Project is now [here]: (https://gitlab.com/ibm-i-stuff/my-first-ibm-i-project)
I tried this again in two different environments on my machine.
I did this from a powershell 7 prompt, where I have gitbash installed, seemed to work fine there.
I did this from a WSL prompt, it also worked there.
HOWEVER
In WSL I'm getting a new issue that is somewhat different than the original issue described.
New behavior in WSL (This does not happen in my pure windows environment, which works as expected):

I opened up the rpg program in vscode, /qrpglesrc/myrpgle.pgm.rpgle
In Code for IBM i extension, connected to my lpar and made sure the target IFS directory was set (chose default)
Deliberately introduced a bug so that compile would fail (changed dcl-f to dcl-x on line 10.
Changed .env file to point to my library.
Execute build current.
VSCODE notification that code was deployed, but also that build was successful
The event file downloads fine, path looks fine, errors in the event file look fine.
7.  Problems view does NOT populate with the errors from the event file.

Output:
Running Action: Build current (10:03:48 AM)
Working directory: /home/jweirich/builds/my-first-ibm-i-project
Commands:
	OPT=*EVENTF BUILDLIB=QGPL /QOpenSys/pkgs/bin/makei compile -f myrpgle.pgm.rpgle

targets: MYRPGLE.PGM
> /QOpenSys/pkgs/bin/make -k BUILDVARSMKPATH="/tmp/tmpvxdjbelw" -k BOB="/QOpenSys/pkgs/lib/bob" -f "/QOpenSys/pkgs/lib/bob/src/mk/Makefile" MYRPGLE.PGM
=== Creating DSPF [MYDSPF.DSPF] in JWEIRICH
/QOpenSys/pkgs/lib/bob/src/scripts/crtfrmstmf --ccsid *JOB  -f /home/jweirich/builds/my-first-ibm-i-project/QDDSSRC/MYDSPF.DSPF -o MYDSPF -l JWEIRICH -c CRTDSPF -p ENHDSP(*YES) RSTDSP(*YES) DFRWRT(*YES) AUT() OPTION(*EVENTF *SRC *LIST) TEXT('My First RPGLE Program')
✓ MYDSPF.FILE was created successfully!

=== Create Bound RPG Program [MYRPGLE] in JWEIRICH
CRTBNDRPG srcstmf('/home/jweirich/builds/my-first-ibm-i-project/qrpglesrc/MYRPGLE.PGM.RPGLE') PGM(JWEIRICH/MYRPGLE) TGTCCSID(*JOB) DBGVIEW(*ALL) OPTION(*EVENTF) TEXT('My First RPGLE Program') INCDIR(*NONE)
✕ Failed to create MYRPGLE.PGM!

Objects:             1 failed 1 succeed 2 total
 > Failed objects:    MYRPGLE.PGM
Build Completed!

Fetching errors from .evfevent.
Downloaded files as part of Action: .logs, .evfevent

Screenshots:

I should also mention that the project builds fine in its ci/cd pipeline, a gitlab runner that uses a linux alpine image:  https://gitlab.com/ibm-i-stuff/my-first-ibm-i-project/-/jobs/6407073271


Leave party button doesn't work

PoE says "The target of this operation was not a party member"

Make sure the username you are currently playing as is the same one that is in the MT settings.


Support for Coffescript?

Does this package support coffescript comments ?

https://github.com/nikhilkalige/docblockr#docblockr-package

I assume this answered your question question, Coffescript is supported:
###*<enter>
square = (x) -> x * x

will produce:
###*
 * [square description]
 * @param  {[type]} x [description]
 * @return {[type]}   [description]
###
square = (x) -> x * x


Feature Request: Render contents of externalDocs item

It would be very useful if the description and url properties of the externalDocs items were rendered as part of the documentation output

@ChrisPearce thanks for the suggestion.
Will definitely implement this. Hopefully, I will do it in the next minor release but most likely in the next next :)

@ChrisPearce Adding this to my to-do for the next release

Is this feature far away? We need this to send the users to the SDK download page

oops, missed that...
Hopefully will be ready in the next release planned for the beginning of the next week

Thanks

Is this released in a new version?

New version has been delayed... I will let you know once it's ready

@runes83 new version has just been released 🎉


Inconsistency in Table Naming for JDBC Integrations in Bucket4j Documentation

In the source code, specifically at this link, the table name is set to bucket.
However, in the official documentation under JDBC integrations, the recommended table name is buckets.
I think having consistency in documentation and code will reduce confusion, what do you think?

Docs havr been fixed and will be updated with next release.


Write a Swift program to find the smallest two elements in an array

Description
Write a Swift program to find the smallest two elements in an array
Input  : arr[] = {12, 13, 1, 10, 34, 1}
Output : 1 1

Input  : arr[] = {10, 5, 10}
Output : 5 10

How to contribute

Comment !assign to assign this issue to yourself
Fork this repository
Create a new branch
Save the solution in program/program/find-the-smallest-two-elements-in-an-array/FindTheSmallestTwoElementsInAnArray.swift
Commit the changes
Create a pull request

Can you assign this issue to me

!assign


Auth is error

The auth generated after packaging is different from the one generated without packaging, and the socket has been unable to connect. Do you have any suggestions for this issue

@ecp4224

Not resolved yet, waiting for official response @funnyData

Hey @funnyData, @GaoG001108! Do you still experience the issue? Could you provide more info, please?


Error highlights aren't removed some of the time

Not sure if someone already reported this, but i wasn't able to find it.
Often i have a situation where after fixing linting errors, i still get some random stuff marked as they are bad, but they are ok. After closing the file and re-opening it, everything looks ok. redraw command is not doing anything.
Here's example screenshot:

I'm on Xubuntu 17.04. It happened also on Xubuntu 16.10 before upgrade.
Using latest NeoVim.
My colleague also has this issue on Hackintosh with Vim 8.
Here's log from clipboard. I left only two lines of the command history, since all other are same as those.
Current Filetype: javascript
Available Linters: ['eslint', 'flow', 'jscs', 'jshint', 'standard', 'xo']
Enabled Linters: ['eslint']
Linter Variables:

let g:ale_javascript_eslint_executable = 'eslint'
let g:ale_javascript_eslint_options = ''
let g:ale_javascript_eslint_use_global = 0
 Global Variables:

let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%s'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'always'
let g:ale_linter_aliases = {}
let g:ale_linters = {'javascript': ['eslint']}
let g:ale_open_list = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '✖'
let g:ale_sign_offset = 1000000
let g:ale_sign_warning = '⚠'
let g:ale_statusline_format = ['%d error(s)', '%d warning(s)', 'OK']
let g:ale_warn_about_trailing_whitespace = 1
Command History:
(started) ['/bin/zsh', '-c', '''/home/kristijan/code/myproject/api/node_modules/eslint/bin/eslint.js'' -f unix --stdin --stdin-filename ''/home/kristijan/code/myproject/api/lib/domain/customer/available_funds_manager.js'' < ''/tmp/nvimBHKQqb/188/available_funds_manager.js''']
(finished - exit code 0) ['/bin/zsh', '-c', '''/home/kristijan/code/myproject/api/node_modules/eslint/bin/eslint.js'' -f unix --stdin --stdin-filename ''/home/kristijan/code/myproject/api/lib/domain/customer/available_funds_manager.js'' < ''/tmp/nvimBHKQqb/195/available_funds_manager.js''']

What does getmatches() return when this happens?

How do i run that?

:echo getmatches().

[{'group': 'MatchParen', 'id': 3, 'priority': 10, 'pos1': [50, 24, 1], 'pos2': [52, 5, 1]}, {'group': 'ALEError', 'id': 469, 'priority': 10, 'pos1': [47, 11, 1]}, {'group': 'ALEError', 'id': 470, 'priority': 10, 'pos1': [48, 56, 5]}, {'g
roup': 'ALEError', 'id': 471, 'priority': 10, 'pos1': [48, 63, 4]}, {'group': 'ALEError', 'id': 472, 'priority': 10, 'pos1': [48, 72, 6]}, {'group': 'ALEError', 'id': 473, 'priority': 10, 'pos1': [48, 83, 2]}, {'group': 'ALEError', 'id':
 474, 'priority': 10, 'pos1': [50, 12, 10]}]

Is this after using :ALEFix?

No, i haven't use that at all.

When do the highlights first appear?

Could you record this behaviour and upload a GIF of it? Use this: https://asciinema.org/

Well, not a GIF, but upload to there.

Ok, i'll try. It doesn't happen all the time. It's completely random.

I'm seeing this too. It's not so straightforward to reproduce, so recording an assicast might be difficult.

Could this somehow be related to https://github.com/w0rp/ale/issues/714 ?

Probably not.

I am also seeing this on python.

Does anyone have any steps for repeating this bug?

@w0rp it's completely random.
Do you use it every day? On what system?
I'm not familiar with the codebase, and i'm not really good with vimscript, but do you have some function that clears out all errors before checking again? Maybe there's an issue with that.

Yeah, I use ALE just about every day for working on Python, JavaScript, and TypeScript code. I use various versions of Ubuntu Linux and Linux Mint with GVim 8 myself.

Okay, pull again, and see if you experience the same issues.
It was keeping some highlights and only adding new highlights, but now it just removes all highlights with a group name starting with 'ALE' every single time highlights are set and sets them all over again. That should ensure that the highlights are removed when there's nothing to show.

Also, not directly related, if you change a buffer's filetype to something which doesn't have any linters, or disable one of the linters, then ALE will now be better about removing problems from before.

@w0rp ok, i'll give it a try on Monday. Thanks!
Does this impact performance?

Nah, it shouldn't make a difference.

@w0rp unfortunately it still happens to me. I'm testing on the freshly installed Linux Mint Cinnamon 18.2 and NeoVim. I figured out that it happens after fixing an error. So if i had for example 2 errors marked (Function must return a value, variable not used), and i just return that value from the function, error marks stay there, even tho errors are fixed (error list is empty). Of course, this happens once in 10 or 15 times.
Is there a way to debug it when it happens?

Try pulling again. I just fixed a bug where it didn't lint again when files were fixed.

@w0rp ok, i did. Will let you know what happens.

This bug still happens to me. (latest git)

This bug still happens to me.

Could you create a recording of the bug with https://asciinema.org/?
Then I might be able to reproduce it.

I found these bugs are hard to reproduce on toy examples.  It just happens sometimes when I was editing some big python projects with several different files open.  I will try to record it.

@w0rp still happens, but it looks like it doesn't happen so often. Not really sure.
Is there a way to debug it when it happens?

Not really. If you can provide a recording or any other information, I might be able to repeat the bug myself and fix it. I don't experience the bug myself.

Now the bug just happens maybe one or two times a day on my computer.  I guess we can upload the log after this happens?

@w0rp in few comments above you wrote that you are using Gvim. Did you try using Vim, or NeoVim for a day, to see if it happens there?

Please share your configuration, steps to repeat the bug, and an ascii cinema recording of the bug happening. Then I might be able to repeat the bug and fix it.

Ok, I encountered that issue again today.

The file in question is valid JSON:
[
  {
    "type": "octagon",
    "length": [1,1,1,1,1,1,1,1]
  },
  {
    "type": "hexagon",
    "length": [2,2,2,2,2,2]
  },
  {
    "type": "triangle",
    "length": [1,2,1]
  },
  {
    "type": "rectangle",
    "length": [1,2,1,2]
  },
  {
    "type": "square",
    "length": [2,2,2,2]
  }
]

The error highlight that wasn't removed was due to an unmatched paren, I believe something like this:
  {
    "type: "triangle",
    "length": [1,2,1]
  },
 {
  ...
 }

I've tried to replicate the error in a new file while recording an asciicast to no avail.
This is what I was able to get:
:echo getmatches()
[{'group': 'ALEError', 'id': 17, 'priority': 10, 'pos1': [11, 11, 1]}, {'group': 'ALEError', 'id': 18, 'priority': 10, 'pos1': [11, 11, 1]}]

You can find my vimconfig in my dotfiles.
$ vim --version
NVIM v0.2.1-134-gd76a9582
Build type: RelWithDebInfo
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I/tmp/neovim-20170509-45126-18url74/build/config -I/tmp/neovim-20170509-45126-18url74/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/usr/include -I/tmp/neovim-20170509-45126-18url74/build/src/nvim/auto -I/tmp/neovim-20170509-45126-18url74/build/include
Compiled by jottr@titan

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-d76a958/share/nvim"

Note that I run nvim inside tmux on iTerm.
I know its not much, but maybe someone sees a pattern?
Output from :ALEInfo

 Current Filetype: json
Available Linters: ['jsonlint']
  Enabled Linters: ['jsonlint']
 Linter Variables:

 Global Variables:

let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%s'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'always'
let g:ale_linter_aliases = {}
let g:ale_linters = {}
let g:ale_open_list = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '‚úó'
let g:ale_sign_offset = 1000000
let g:ale_sign_warning = '‚ù±'
let g:ale_statusline_format = ['‚úó %d', '‚ù± %d', '‚úî ok']
let g:ale_warn_about_trailing_whitespace = 1
  Command History:

(finished - exit code 1) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/609/polygons.json''']
(started) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/610/polygons.json''']
(finished - exit code 1) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/611/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/612/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/613/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/614/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/615/polygons.json''']
(finished - exit code 1) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/616/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/617/polygons.json''']
(finished - exit code 1) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/618/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/619/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/620/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/621/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/622/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/623/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/624/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/625/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/626/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/627/polygons.json''']
(finished - exit code 0) ['/bin/zsh', '-c', 'jsonlint --compact - < ''/var/folders/mv/dy0670cn3255t3fjlv5dwk1m0000gn/T/nvimn7mofd/628/polygons.json''']

With an exact series of steps for repeating the bug, all I can do is speculate as to why it might be happening. I'll try and rewrite certain parts in the hope that it might somehow stop this happening.

Okay, I simplified the code a bit, and now highlights should be removed and added again every time a buffer is entered or linting completes.

I haven't upgrade my ale yet.  But for the old version, it seems that the bugs only occurs when there is no error in current file.  If I deliberately add some error to my code, then the wrong highlights will go away and replaced by the new error.  If I delete these deliberately added error, the wrong highlights go back.

Okay, try it again with what's on master.

I didn't had this issue whole day, so i think the last thing fixed it. What was the issue?

I think there was just too much state being managed. It's simpler now and removes highlights every single time linting is done or buffers are opened, and adds highlights for whatever list was set in a buffer variable.

Ok, great. Thanks for explaining. I'll test it out more, and we'll wait for others to confirm that its fixed. Thanks for fixing it up.

This should be fixed now, so I'll close this. If anyone has any issues, let me know.


.Net: Support importing plugins

[!IMPORTANT]
Labeled High because it will not require a breaking change, but it's important to complete by v1.0.0

Context:
Currently, SK reads the [Description] attribute off of SKFunctions but not Plugins. Additionally, semantic memory is underutilized in the planners when memory has the potential to help mitigate scaling issues when there are many plugins to work with. When the number of functions exceeds the token limits, currently the planners fail. Without pre-filtering the functions, to prevent failure, requests to the LLM would need to be chunked. This adds seconds to plan creation time and therefore won't scale well.
Additionally, unrelated to planners, the openapi.yml files used by Chat GPT plugins has a description property that would benefit from automation from SK if available.
The goal of this task is to:

improve plan creation time
automate filling out the description property of the openapi.yml file

### Tasks
- [ ] .Net: Add plugin class to Semantic Kernel
- [ ] .Net: Create a property on IKernel to access plugins objects
- [ ] .Net: Create an ImportPlugin() method for plugin-ai.json files
- [ ] .Net: Create a plugin serialization for semantic/native functions
- [ ] .NET: Create an ImportPlugin() method for semantic/native functions
- [ ] https://github.com/microsoft/semantic-kernel/issues/3233

I started investigation for this task but didn't implement it in a production-ready way.
I looked into whether including the plugin description attribute improves plan creation quality and speed.
I found that speed can be improved, especially considering that as the number of plugins grows, the number of requests to the LLM needs to increase unless there's a function pre-filtering step. An LLM request takes 2-3 seconds while a semantic search (sample size around 100) takes around 100 ms. Additionally, some preliminary results from my speed tests showed that a smaller function manifest may speed up plan creation.
On the quality side, my results were inconclusive. There may still be potential to improve the accuracy of plan results but I didn't have a good test case to prove this. Once there's support for picking up plugin descriptions, it will be easier to use this within the function manual if that is something that needs to be pursued.
The challenge to pre-filtering plugins is that semantic search may not filter any plugins if your max results returned config value is not small enough. For example, if you rely on minimum relevancy score alone to filter out unrelated plugins, you may be surprised like I was to find that none of your plugins got filtered out.

This is now supported


How to incorporate custom functions into tf.data pipe-lining process for maximum efficiency

So tf.image for example has some elementary image processing methods already implemented which i'd assumed are optimized. The question is as I'm iterating through a large dataset of images what/how is the recommended way of implementing a more complex function on every image, in batches of course, (for example a a patch 2-D DCT) for it to go as best as possible with the whole tf.data framework.
Thanks in advance.
p.s. of course I could use the "Map" method but i'm asking beyond that. like if I'm passing a pure numpy written function to pass to "map", it wouldn't help as much.

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.


Update contributing doc to better reflect reality

Point to the new mailing list
Remove the issue template since that's handled automatically now
Remove office hours since we're not doing that anymore
https a few more URLs

:+1: @tas50 do you know what happened to slack migration efforts? If anything is done on that front, should we include that

@ranjib Nathen and I worked out a plan, I'm blocked on getting some cycles from the Chef folks to set up the landing page.

👍


No Command nvm found

i downloaded the packages from link
sudo curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh |bash
post this command i tried to ran
nvm install v8.9 but i got this below error.
No command 'nvm' found, did you mean:
Command 'nvme' from package 'nvme-cli' (universe)
Command 'n-m' from package 'python-networkmanager' (universe)
Command 'nvi' from package 'nvi' (universe)
Command 'pvm' from package 'pvm' (universe)
Command 'lvm' from package 'lvm2' (main)
Command 'nm' from package 'binutils' (main)
Command 'vm' from package 'mgetty-voice' (universe)
Command 'nvim' from package 'neovim' (universe)
Command 'npm' from package 'npm' (universe)
Command 'nam' from package 'nam' (universe)
Command 'kvm' from package 'qemu-kvm' (main)
Command 'nim' from package 'nim' (universe)

Because you installed it with sudo, which isn't part of the install command in the readme.
Try again without sudo.


Seeing pod count as zero in the UI for mono vertex when the actual pod count is one

Pod count in the UI is extracted from monovertex.spec.replicas, but for this mvtx, we don't see the replicas field being set
  "spec": {
      "source": {},
      "sink": {},
      "volumes": [],
      "scale": {}
  }

Pod count in the UI is extracted from monovertex.spec.replicas, but for this mvtx, we don't see the replicas field being set
  "spec": {
      "source": {},
      "sink": {},
      "volumes": [],
      "scale": {}
  }

It should be extracted from status.replicas

Closed via #1965


Basically implement System V Semaphores

Basically implement 3 system call. SEMGET, SEMOP, SEMCTL. Enough for basic usage.

CI Failed: Seems no such syscalls on MIPS??

CI Failed: Seems no such syscalls on MIPS??

IPC system calls for mips o32 have been added since https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/mips/kernel/syscalls/syscall_o32.tbl?id=0d6040d4681735dfc47565de288525de405a5c99

According to musl source code, musl on mipsn32 will call SYS_IPC(id: 4117) for sem* and shm*.
See: semget.c, ipc.h


feat(opendataset): add dataloader for LISA Traffic Sign open dataset

Pull Request Test Coverage Report for Build 835464709

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 80.255%

Totals

Change from base Build 835437189:
0.0%

Covered Lines:
4272

Relevant Lines:
5323

💛  - Coveralls


.NET MAUI is not able to build (both Android and iOS)

Description
Android build is not possible because image contains some f*ked up .NET versions (something with .NET7 even though I use .NET8)
https://github.com/actions/runner/issues/3578
iOS publishing to Apple Connect requires XCode 16.2 but not BETA. It needs either RC1 or official release 16.2 that was published just recently:
https://github.com/xamarin/xamarin-macios/issues/19157#issuecomment-2540255400
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[X] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] Ubuntu 24.04
[ ] macOS 12
[ ] macOS 13
[ ] macOS 13 Arm64
[ ] macOS 14
[ ] macOS 14 Arm64
[X] macOS 15
[X] macOS 15 Arm64
[X] Windows Server 2019
[X] Windows Server 2022

Image version and build link
Android build:
Image: windows-2022
Version: 20241201.2.0
iOS build
Image: macos-15-arm64
Version: 20241202.430
Is it regression?
yes
Expected behavior
.NET MAUI builds should just pass as before
Actual behavior
Both pipelines crash.

Android one because of some wrong .NET versions
iOS one because Xcode provided is not latest 16.2 version

Repro steps

For android try to build a .NET maui app
For iOS build works but we cant publish it to Apple store because it was built with BETA version of XCode even though there is an official release already

Hi @Kebechet, We began our weekly deployment of macOS 15 and macOS 15-arm64 images on Monday. The current Xcode version, 16.2 Release Candidate, is expected to be available within 1–2 days. We will provide an update here once the VM rollout is complete. Thank you for your patience.

@sureshe456 Perfect, thank you. And what about the Android part ?

Hi @Kebechet - We are closely looking into this issue and will update you after investigating. Appreciate your patience. Thanks!

We don't want to track two problems in one place at the same time. I suggest leaving this issue as a .NET issue.
In addition to what my colleague said. Regarding Xcode 16.2 and Xcode 16.2 RC and their availability, the problem is regular - updates will be released ASAP, as my colleague said. We are already preparing for the release version to deploy: https://github.com/actions/runner-images/pull/11179. It will be available next week right after RC on this week.

Hi @Kebechet - We would like to inform you that the latest image version has been rolled out. Please update your sync process and try using the new version(20241215.1). Let us know if you encounter any further issues. Thanks!

Still getting the same problem
Error: C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier android was not recognized. [D:\a\SatisFIT\SatisFIT\src\Client\SatisFIT.Client.App\SatisFIT.Client.App.csproj::TargetFramework=net8.0-android]

So even after the image update I had to do the following. When I changed:
dotnet workload install maui --ignore-failed-sources
to
dotnet workload install android maui --ignore-failed-sources --version 8.0.404
it started to work correctly.

Hi @Kebechet - Thanks for your input! As per your comment https://github.com/actions/runner-images/issues/11178#issuecomment-2558658038, could you please confirm once whether it is working fine now?

it is, but the question is if it is the correct way to have it configured or if it is just a workaround (to specify version of dotnet explicitly)


Add methods to Key that populate existing ArrayByteSequence

In #4735 a method was added that populated an ArrayByteSequence with the data for the column visibility. A suggestion was made that like methods could be added for populating ArrayByteSequence with data for the row, family, and qualifier as well.

@meatballspaghetti You might be interested in doing this one, since you're working on a related issue, #4745

I can look into this.


Resume task

It'd be great I could resume the last task, or pick from recent items with a TUI.

You mean like this?

Yes.

A good start would be to implement it with a --last arg, so we can resume the last task without much headache. A TUI would be preferred without the arg, but that can come later.
What do you think? @almarklein

Yes.

Lol, I totally missed that this issue was on the CLI repo, so I thought you had simply overlooked the feature in the app. Sorry!

A good start would be to implement it with a --last arg, so we can resume the last task without much headache. A TUI would be preferred without the arg, but that can come later.

Yes, that sounds like a great start. A next step could be listing the 8 or so previous records, with numbers 1-8 before them, and allowing to enter a number for the record to resume, with the last record (which might actually be the first in the list?) be the default, so simply hitting enter would be a quick way to resume the last record.

Yes, that sounds like a great start. A next step could be listing the 8 or so previous records, with numbers 1-8 before them, and allowing to enter a number for the record to resume, with the last record (which might actually be the first in the list?) be the default, so simply hitting enter would be a quick way to resume the last record.

I love this. I think it would be nice to have the latest task at the bottom to better reflect the timeline, so:
[8] oldest task
[7] buying food
[6] ...
...
[1] most recent task

Which task do you want to resume? (1)▐

Some of the functionality described here was implemented in #16 .

I love this. I think it would be nice to have the latest task at the bottom to better reflect the timeline, so:
[8] oldest task
[7] buying food
[6] ...
...
[1] most recent task

Which task do you want to resume? (1)▐

This looks like more elegant way to do this, perhaps something more for the future?


Link with Published Ports does not work

Description
When deploying a stack with published ports, Portainer lists those published ports in section "Associated services" in format :. This is rendered as a link with target=_blank and href="http://". In Chrome, this link opens a new tab but without opening the URL of the service (because the hostname.domain portion of the URL is missing).
Steps to reproduce the issue:

Deploy a new stack with a service that publishes a port.
Klick this port in column "Published Ports" in section "Associated services".

I would expect that the new tab is opening the service on that published port.
Technical details:

Portainer version: 1.15.3
Target Docker version (the host/cluster you manage): Docker version 17.09.0-ce, build afdb6d4
Platform (windows/linux): Linux
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer): Portainer compose file adapted from https://github.com/portainer/portainer-compose.
Target Swarm version (if applicable): -
Browser: 62.0.3202.94

I've been able to reproduce this.
In the meantime you can use the link to the published port in the service list view as this one is functional.

Is this issue fixed in the latest develop codebase? I am running the docker image portainer/portainer:develop and when I click on any of the Published Ports in the Services section, it opens a new about:blank tab.
Can you please help me with this?
Thanks in advance.

@agrawal93 please open a new bug report as this one is fixed and related to stack details.

Does anyone know why some containers won't show published ports but some are?

Does anyone know why some containers won't show published ports but some are?

https://github.com/portainer/portainer/issues/1500#issuecomment-415025245


在python脚本里使用selenium调用不了chromedriver

Qinglong version
v2.15.2
Steps to reproduce
123
What is expected?
解决
What is actually happening?
调用chromedriver时python报错：
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 199, in _start_process
self.process = subprocess.Popen(
               ^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/subprocess.py", line 1022, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.11/subprocess.py", line 1899, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/ql/data/scripts/依赖工具/chromedriver'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 90, in start
self._start_process(self.path)
File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 213, in _start_process
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/subprocess.py", line 546, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/subprocess.py", line 1022, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.11/subprocess.py", line 1899, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.11/site-packages/selenium/webdriver/common/linux/selenium-manager'
python有几率调用不了chromedriver(文件已存在指定位置)，多运行几次可能会成功1次，No such file or directory: '/usr/local/lib/python3.11/site-packages/selenium/webdriver/common/linux/selenium-manager这个错误一直存在,我在物理路径上创建这些目录也不行
System Info
No response
Any additional comments?
No response

  service = webdriver.ChromeService(       executable_path='/usr/bin/chromedriver'   )
需要指定路径


feat: run test on all modules

sorry for this PR - it'll most likely get closed but I was wondering what would be the reasons to not include testing on nuxt/modules list; feel free to respond when you get the time to triage this.

I'm open for testing any module that has a good test suite (and whose maintainers are responsive if there are issues flagged up).

To bring a failure to module author's attention, we could keep an open issue on this repository and a bot pings their GitHub (which the modules API includes), so that even takes some responsibilities off of you as the head of the framework.
Seeing if they're responsive may also be related to https://github.com/nuxt/modules/issues/485.
I'll close this for now though

Oh, I like the sound of the auto-pinging, etc.
Maybe we could add a new task that performs that for 'top' modules? My main worry here is waste of CI time.


Makefile: enable race detection for unit tests

Let's enable the race detection for unit tests. Closes https://github.com/thanos-io/thanos/issues/4664.

Nice work addressing all races 💪

🎉 🎉 🎉


Fix blocking-ring tests so read/write on other-thread use acq-rel bool to communicate byte-count

As of now these tests fail on slow environments (like VM on a laptop), which happens because the counts other thread reports is not using an atomic var. We need acq-rel semantics for that update.

Fixed here: 8d649c1f1e2db9c0d5ae410516d051b5d9ad6e44
Will me merged with more_recorder_fixes branch.


Add test equals

add equals and hashCode test

Current coverage is 49.14%

Merging #77 into master will increase coverage by +1.54% as of c26bbc5

@@            master     #77   diff @@
======================================
  Files           46      46
  Stmts         1170    1170
  Branches       304     304
  Methods          0       0
======================================
+ Hit            557     575    +18
+ Partial         37      34     -3
+ Missed         576     561    -15

Review entire Coverage Diff as of c26bbc5

Powered by Codecov. Updated on successful CI builds.