The method model_validate(cls, <derived-model-class>) returns its derived model class, not self

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
I really appreciate your hard work on the project. 😀
I found that the method model_validate can accept its derived model classes as the argument obj and returns its derived model, not self. But I'm not sure 1) if this is a bug or 2) if I'm not using the method correctly.
Example Code
class Model(BaseModel):
    name: Annotated[
        str,
        Field()
    ]

class SubModel(Model):
    path: Annotated[
        str,
        Field()
    ]

model = Model.model_validate(
    SubModel(name="sub-model", path=".")
)

print(model, type(model))
# name='sub-model' path='.' <class '__main__.SubModel'>

Python, Pydantic & OS Version
pydantic version: 2.7.4
        pydantic-core version: 2.18.4
          pydantic-core build: profile=release pgo=true
                 install path: /home/user-ubuntu/projects/pyfdc/.venv/lib/python3.11/site-packages/pydantic
               python version: 3.11.7 (main, Dec  8 2023, 18:56:58) [GCC 11.4.0]
                     platform: Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.35
             related packages: fastapi-0.111.0 pydantic-settings-2.3.3 typing_extensions-4.12.2
                       commit: unknown

Hi @kim-youngseop-developer,
Good question - you can use the revalidate-instances config setting if you'd like to fine tune this behavior:
from pydantic import BaseModel, ConfigDict

class Model(BaseModel):
    name: str

    model_config = ConfigDict(revalidate_instances='subclass-instances')

class SubModel(Model):
    path: str

model = Model.model_validate(
    SubModel(name="sub-model", path=".")
)

print(model, type(model))
# name='sub-model' <class '__main__.Model'>

See more here: https://docs.pydantic.dev/latest/api/config/#pydantic.config.ConfigDict.revalidate_instances

Thanks for the information! I was really surprised that it is a considered feature. 😱👍


(contribution) new kind of borderless button

hi, I wanted to get bigger icons in my taskbars, but to just have someting wich looks more "heavy metal" (means more cool than cool itself) I added a piece of code to simulate a pressed button, try it with some buttons having border set to false « border="false" »
in traybutton.c, at the draw function
/** Draw a tray button. */
void Draw(TrayComponentType *cp, int active)
{
ButtonNode button;
TrayButtonType *bp;
int labelx;
bp = (TrayButtonType*)cp->object;
JXSetForeground(display, rootGC, colors[COLOR_TRAY_BG]);
JXFillRectangle(display, cp->pixmap, rootGC, 0, 0, cp->width, cp->height);
ResetButton(&button, cp->pixmap, rootGC);
if(active) {
button.type = BUTTON_TRAY_ACTIVE;
} else {
button.border = bp->border;
button.type = BUTTON_TRAY;
}
button.width = cp->width - 3;
button.height = cp->height - 3;
button.x = 1;
button.y = 1;
DrawButton(&button);
/* Compute the offset of the text. */
if(bp->label) {
if(!bp->icon) {
labelx = 2 + cp->width / 2;
labelx -= GetStringWidth(FONT_TRAYBUTTON, bp->label) / 2;
} else {
labelx = cp->width;
labelx -= GetStringWidth(FONT_TRAYBUTTON, bp->label) + 4;
}
} else {
labelx = cp->width;
}
labelx -= BUTTON_SIZE;
if(bp->border==0){/nicoo/ // borderless
if(bp->icon) { /nicoo/
switch(button.type){ /nicoo/
case BUTTON_TRAY_ACTIVE : /nicoo/
PutIcon(bp->icon, cp->pixmap, 1, 1, /nicoo/
cp->width-1, cp->height-1); /nicoo/
break; /nicoo/
        default : /*nicoo*/
        PutIcon(bp->icon, cp->pixmap, 0, 0, /*nicoo*/
           cp->width, cp->height); /*nicoo*/
     }
  } /*nicoo*/

  }else{/*nicoo*/
     if(bp->icon) {
     PutIcon(bp->icon, cp->pixmap, BUTTON_SIZE, BUTTON_SIZE,
        labelx - BUTTON_SIZE, cp->height - BUTTON_SIZE * 2);
  }

  if(bp->label) {
     RenderString(cp->pixmap, FONT_TRAYBUTTON, COLOR_TRAYBUTTON_FG,
                  labelx + 2,
                  cp->height / 2 - GetStringHeight(FONT_TRAYBUTTON) / 2,
                  cp->width - labelx, bp->label);

}
} /nicoo/
}
feel free to reuse, no garantee, I'M NOT A REAL CODER.
I added /nicoo/ to help myself and everydude else to see what I've done, If you want to reuse something, you can remove these comments.
n.b. : I know this is note an issue, but "pull request" seems to be inactivated
n.b. 2 : I made some other minors "hacks" like using icons in border, I also deactivated some stuffs I don't like, examples : having tooltip when I pass over the clock, deactivated many menu functions (I don't like menus) and so. Most of my stuffs are hardcoded so it can be annoying for most dudes.
just for propaganda : http://www.zimagez.com/zimage/capturedcran-20042013-142549.php
\m/ -- nicoo -- \m/

I think the relatively new flat look of JWM gives something pretty similar to this appearance.  Feel free to re-open or create a pull request.


Application to T5 / UL2 family

Do you expect this to work for T5 architecture (and consequently, the very similar UL2) family? And if not, what do you suspect would be an issue and do you expect that some adjustments need to be made?
Google recently released Flan-UL2 which is 20B parameters in size. GPTQ could be a real life-saver here.

Do you expect this to work for T5 architecture (and consequently, the very similar UL2) family? And if not, what do you suspect would be an issue and do you expect that some adjustments need to be made?
Google recently released Flan-UL2 which is 20B parameters in size. GPTQ could be a real life-saver here.

I tried GPTQ quantization of FALN-T5 and it seems to work successfully.
https://github.com/qwopqwop200/GPTQ-for-LLaMa/tree/t5
Additionally, I confirmed that FLAN-UL2 also works. I haven't done exact benchmarks, but it works pretty impressively.

@qwopqwop200 this is great!  Thanks much...  I was able to quantize flan-t5-small... but ran into this error when trying to quantize flan-ul2...

torch._C._LinAlgError: linalg.cholesky: The factorization could not be completed because the input is not positive-definite (the leading minor of order 2985 is not positive-definite).

this is the command I used...

python t5.py google/flan-ul2 wikitext2 --wbits 4 --act-order --groupsize 128 --save ul2-4bit-128g.pt

any ideas?

This is a numerics error due to a layer-Hessian not being positive-definite, you could try to apply higher dampening --percdamp or use more calibration data --nsamples to make the Hessian more clearly positive-definite.

@efrantar, thanks for your feedback earlier in the thread.
I see a fairly significant drop off in performance using an attempt at 4-bit quantization on t5* models using the https://github.com/qwopqwop200/GPTQ-for-LLaMa/tree/t5 branch as compared to int8 quantization.
Some details of the perf gap are captured here.
https://github.com/qwopqwop200/GPTQ-for-LLaMa/issues/157#issuecomment-1503140441
I am trying to understand your earlier comment in this thread and the quantization code in the referenced repo in the hope of improving the int-4 quant performance on these encoder/decoder models.
This repo appears to quantize the encoder layers (layer by layer) and then does the decoder layers (layer by layer) one after the other.  You mentioned needing to do these encoder and decoder quantization in parallel (maybe I'm misunderstanding), but can you help me understand this point a bit more and why they might need to be done in parallel?
Also, any other insight would be appreciated.
Thanks!

I had a slightly different encoder-decoder architecture in mind when I suggested the parallel processing of branches; for T5 specifically, quantizing first the encoder and then the decoder should be correct.
We are also currently looking at some encoder-decoder models in the context of ongoing research projects; if we find anything that could be relevant for quantizing T5 with GPTQ, I will post an update here.


I find this odd

Issue in /src/pages/implement/client-side/atjs/upgrading-from-atjs-1x-to-atjs-20.md
The word Yes is a link next to response tokens but none if the other yeses and nos are linked.  I think it would be better to have the feature named be a link, so for example have the feature named "Response Tokens" take the user to that help page.

Agreed! Nice catch, thanks. Fixed this one, plus another similar one on the same page.


pre_shared_key extension support

Could you add a support for this TLS extension (41)?

Sorry, but no. The is actually a very complicate feature, which is not supported by curl. See: https://github.com/curl/curl/issues/5081

Sorry, but no. The is actually a very complicate feature, which is not supported by curl. See: curl/curl#5081
It is supported in this fork, btw. Maybe you could use their implementation...
https://github.com/Ossianaa/node-libcurl


Should AsyncValue.asData be renamed to AsyncValue.asAsyncData?

Cf the title.
The core idea is that asData is a bit confusing on what this means. "What's data?".
Whereas asAsyncData means "cast to AsyncData"

Honestly AsyncValue may not even make sense anymore with Dart 3.0
We'll have to see

I don't think that's such a big deal for now. This can be revisted later, but I don't want to make a breaking change just for the sake of it


test suite fails againts publicsuffix 20221129

One test of the test suite fails:
[   44s] FAIL: test-is-public-all
[   44s] ========================
[   44s]
[   44s] loaded 9459 suffixes and 8 exceptions
[   44s] builtin PSL has 9459 suffixes and 8 exceptions
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-1.amazonaws.com, PSL_TYPE_PRIVATE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-1.amazonaws.com, PSL_TYPE_PRIVATE|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-1.amazonaws.com, PSL_TYPE_ANY)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-1.amazonaws.com, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-2.amazonaws.com, PSL_TYPE_PRIVATE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-2.amazonaws.com, PSL_TYPE_PRIVATE|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-2.amazonaws.com, PSL_TYPE_ANY)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-2.amazonaws.com, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-3.amazonaws.com, PSL_TYPE_PRIVATE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-3.amazonaws.com, PSL_TYPE_PRIVATE|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-3.amazonaws.com, PSL_TYPE_ANY)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-northeast-3.amazonaws.com, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-southeast-1.amazonaws.com, PSL_TYPE_PRIVATE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-southeast-1.amazonaws.com, PSL_TYPE_PRIVATE|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-southeast-1.amazonaws.com, PSL_TYPE_ANY)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-southeast-1.amazonaws.com, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-southeast-2.amazonaws.com, PSL_TYPE_PRIVATE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-southeast-2.amazonaws.com, PSL_TYPE_PRIVATE|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-southeast-2.amazonaws.com, PSL_TYPE_ANY)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ap-southeast-2.amazonaws.com, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ca-central-1.amazonaws.com, PSL_TYPE_PRIVATE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ca-central-1.amazonaws.com, PSL_TYPE_PRIVATE|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ca-central-1.amazonaws.com, PSL_TYPE_ANY)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.ca-central-1.amazonaws.com, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.eu-central-1.amazonaws.com, PSL_TYPE_PRIVATE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.eu-central-1.amazonaws.com, PSL_TYPE_PRIVATE|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.eu-central-1.amazonaws.com, PSL_TYPE_ANY)=0 (expected 1)
[   44s] psl_is_public_suffix2(webview-assets.cloud9.eu-central-1.amazonaws.com, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE)=0 (expected 1)
[   44s] Summary: 28 out of 290670 tests failed
[   44s] FAIL test-is-public-all (exit status: 1)

I can't reproduce with, all green here.
libpsl commit 182bfd0e5ff96bd61b8ac843f6ec9ffd10f9f038 (latest master branch)
list commit c3b82a80d8b54576740862747532359033ebb744 (which is PSL from 2022-11-29)
Ideally, could you create a Dockerfile that reproduces the issue and upload or link it here ?

Finally got around to testing post 0.21.1 - so I grabbed f2bdc1709d662c3d6af56b019def0b9410cd974a and gave it a build. It fails the same way; tested meson and autoconf builds.
With meson:
[   15s] Summary of Failures:
[   15s]
[   15s] 4/8 test-registrable-domain          FAIL            0.03s   exit status 1
[   15s] 7/8 test-is-public-all               FAIL            0.16s   exit status 1

Fails with publicsuffix version 20221129; last tested and successful publicsuffix version was 20220903

Your environment / OS is still unclear. Can you share more details ?

stepped through the commits - the first list commit that makes my test suite fail is 7ba91b7926498608a46b257c8a9b94fe4cd0ca19 (from Sep-22)

Sorry to say that, but there is no such commit 7ba91b7926498608a46b257c8a9b94fe4cd0ca19.

I can reproduce this issue with libpsl 0.21.1 and 0c4beeb76338bfa580ea9aa7782776f748a6d105 (list commit) and latest list commit 4aec132984ce028c5b9d7882a31a85e5e5330346.
Using libpsl (master) with libidn2 or icu shows no errors
Tested on FreeBSD 13.1 (amd64)

Using libpsl (master) with libidn2 or icu shows no errors

Ok and thanks. Just made a new release v0.21.2.


Support custom CSS

Suggestion from @kaustubhmenon https://github.com/ks888/LambStatus/issues/14#issuecomment-363839917
Suggestion:
Integrate a new CSS/SCSS file for manipulating the UI, without touching any core SCSS files. Could also be similar to Edit CSS in Wordpress (https://en.support.wordpress.com/custom-design/editing-css/)
. While inspecting the structure I noticed that all class names are appended with a random string in the end which could be a possible blocker for targeting CSS classes?
My reply:
StatusPage.io also has a similar feature https://help.statuspage.io/knowledge_base/topics/using-custom-css . Though the css class has a random prefix since CSS modules are used, maybe we can let the principal UI components have the id attribute and customize the design like this:
#container {
    width: 90%;
    max-width: 850px;
}

@ks888 Would it be possible not to use "CSS modules"? This would avoid any css targeting problems. Generally using ID' s(#) is not best way going forward because they causes problems with specificity ().. ID's could cause potential targeting issues if the repo get more functionality and features.
Why not use BEM instead to make sure that classes don't conflict. We have about 3 templates (Current Incidents / Incident History / Incident Main) and coming up templatized/logical class names would not be very difficult. I can definitely help with that :)

Good point! I agree with your idea to make templatized classes.
I think we can keep using css modules while making templatized classes. As this doc describes, css modules enable us to declare an explicit global selector with :global().
The BEM approach will work but I'm worried how many users are familiar with BEM. I also have no BEM experiences. So I feel the simple naming like .container may be better as wordpress.com and statuspage.io do.

Great work so far @ks888. I wish I had found this last year.
At the risk of offering premature advice without finishing my own due diliegence of the docs, how about simply removing CSS Module  content hashing? That still leaves a module name prefix so creating unique selectors should still be very reasonable- global() wouldn't in general, be needed.
The odd #ID lying around isn't an immediate problem, since you can increase specificity with redundancy (#ID#ID). It looks like the only IDs in use are from the SVG charts ($$('*[id]')).
The philosophy of BEM still is available to utilize, and save for [M]odifiers, appears to already be in use.

Thank you for your comment! If content hashing is removed, every css names can be overwritten. Then we will have a backward compatibility problem which makes the refactoring of the UI components difficult. I prefer offering a set of global css names which users freely can override.

Actually the AWS Cognito offers a set of customizable css classes:
background-customizable
banner-customizable
errorMessage-customizable
idpButton-customizable
idpButton-customizable:hover
inputField-customizable
inputField-customizable:focus
label-customizable
legalText-customizable
logo-customizable
submitButton-customizable
submitButton-customizable:hover
textDescription-customizable

Corresponding UI is:


Search Example: Repeating Same User

Using the Search Example provided combined with the Questions/Answers filter example directly from the main okcupidjs GH page (q 403/a 2) returns the same group of users several times before the program completes.
Tested the questions-filter with a more specific question and yeah, it will repeat the same sole-user it found several-dozen times; seems it's repeating its findings again and again for some reason.

I tested this solution and found that only a small portion of the qualifying-users are caught by the API:
const baseQuery = {i_want: "men", they_want: "women" , radius: 10, "questions": [309], "answers": [2] };
OKCupid Website found 24 users,
okcupidjs found only 5.

I was missing a very important line baseQuery.after = hash;. This was crucial to how the API works.

Changes have been merged to master.


Fix PNG Compression

update /Predictor filter to match the right compression method.
add
predictor into createImageInfo in order to persist for smask.
remove
TextDecoder from the jsPDFAPI.arrayBufferToBinaryString (seems
to give
wrong results)

resolve #796, fix #753, fix #702

none is interested about that PR?

Thanks very much for that!

my pleasure.


Make sure that we have only events that can be applied by repositories

When applying ReleaseExceptionEvent we validate that the repo owner has
access to the repo. When we recreate the database this will fail.
The validation should happen before we create the event so we can
recreate the database easily without having to deal with invalid events.

@popovm 👀


User can track loose diapers for intake using a digital scale

A user should be able to add loose inventory via weighing the product on a scale. Here are the notes from the previous year:

You click on the scale tab
You click on the diaper type (ie- disposable inserts), size (NB, 1, 2, 3, etc) (*)
You dump the diapers into a container on the scale
It displays how many diapers are in the container (ie - 82 diapers)
You then click "Add to Inventory" and it adds them to the inventory (ie- 82 disposable inserts to PDX Diaper Bank (Office))

[* Rachel also mentioned "count", though I'm not clear on what that's referring to]
Relevant links (from @seanmarcia )

https://developer.chrome.com/apps/hid
https://keetrax.com/blog/2015/01/interacting-usb-hid-devices-web-apps/

I'm going to take a crack at this in the next few days and since we're lucky to have the heavy lifting part of the code finished we'll just need the weights (I'll use fake weights for the time being.)

You click on the scale tab
You click on the diaper type (ie- disposable inserts), size (NB, 1, 2, 3, etc) (*)
You dump the diapers into a container on the scale
It displays how many diapers are in the container (ie - 82 diapers)
You then click "Add to Inventory" and it adds them to the inventory (ie- 82 disposable inserts to PDX Diaper Bank (Office))

All of this makes sense but I think there are a couple of missing pieces here. They are:

Should we have the ability to set one of the storage locations as "main office" or "home base" or something like that? That way we wouldn't need to click the storage location each time. I'll probably just leave it as a selectable field while we think this through but it is probably a good future improvement.
When clicking the diaper type (adult briefs xxl, kids size 1, kids size 2, etc) do we have any sense on how consistent they are for weights between brands? ie - Is kids size 1 in pampers 42g and kids size 1 in huggies 95g? I'm hoping @pdxdiaperbank will have insight on this question

It makes sense that you don't want to reset the storage location every time. Especially for this task because if you are weight diapers then you have them at the facility you are located in (assumption). Maybe they could set it once and we can re-use that value for each subsequent bulk input. Maybe we could store it in a cookie and have it be defaulted to that value until the user changes it.
I know @pdxdiaperbank did some research on this. I believe she averaged the weight of the different brands for the diaper type. So the understanding was that there would be some possible acceptable error for inputting bulk amounts, but that error was negligible when it comes to distributing diapers. They don't seem to be worried by bulk quantities that are off by small single digits. Rachel, feel free to call me out if I'm way off base here.
As far as the rest of it goes, all I have to say is

I remember this discussion as well, re: the average weight issue. @pdxdiaperbank had said that they would just get a bag of diapers, weigh them out, and then that bag would basically stay sealed until it was disbursed. So as far as the system is concerned, when they are ready to distribute that bag, they'll just look at the bag, see that it says "50 diapers" and then punch that into the system as "I'm removing 50 diapers". If the bag actually contains 51 or 49, it won't ruin the integrity of the system.
It might be useful to have something in this system that prepares a "weigh-label" that can be printed off when they do weighing intake. Unless that process is different for other foodbanks.
Even so -- the quantities they're moving are so massively huge that 1 diaper here and there isn't likely to make a huge impact in their totals.

I think we should close this since we have 2 issues for this. This one and the one for the testing/updating.

Merging this into #117


How to have configs from the parent and custom?

Hi,
is there a way to have a (for ex.) networkpolicy managed by a parent ns / hnc and to have custom ones on the child?
I undestand, that if the hnc is running in propagate mode, it deletes all the configurations of the same resource-type on the child ns. So that would not work?

yes, great!
Thank you.


[BUG] System.UnauthorizedAccessException

Acknowledgement of preliminary instructions

[x] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
System.UnauthorizedAccessException: Access to the path 'C:\Users\Антон\AppData\Local\Bloxstrap\Logs' is denied.
when trying to open bloxstrap.
Recently i changed the name of root of my user and my pc cant find many programs which are using user folder. Any way to fix? I belive its a path problem because i changed username from "Антон" to "Anton"

Duplicate of #1000


SuperAdmin vs. Roles

I've got a question about users who are SuperAdmins vs. users who have roles.
In several of my blade files, I have to check if the person has permission to see a certain piece of data or can view a certain button.  I'd like to do this via roles, but I can't add roles to my superAdmin account, meaning that in every place that happens, I have to do:
@if (Auth::User()->hasPermission('site::role') || \Laralum\Users\Models\User::findOrFail(Auth::id())->superAdmin())
Which gets really ugly after a while.  Is there a reason why hasPermission() doesn't include the superAdmins by default?  Or if not, is there a way that I can modify it to do so?

Would this work for you?
https://github.com/Laralum/Roles/pull/8/files
will be reduced to:
@if (Auth::User()->hasPermission('site::role', true)

In theory, that would work, but since the "true" doesn't really feel obvious as to what's being considered "true", I was thinking more of a setting in config/laralum.php that you could just turn on for the whole site, vs. having to denote it each time.
In that file we list
    'superadmins' => [
<EMAIL_ADDRESS>    ],

Maybe something like:
    'superadmin_has_all_roles' => [
        'true'
    ],

and then the HasRolesAndPermissions.php would check that setting and return true if it's set?  If I was better at programming, I'd submit a PR, but I still don't understand how checking stuff like that works.

It's alright, we take care of it, give me a minute

Update to laralum 1.3.0 and roles 1.1.0.
You'll have to manually update your config to set the default value to true (simply add this option to your laralum.php config file):
https://github.com/Laralum/Laralum/blob/master/config/laralum.php#L34

Yep, that's perfect!  I just submitted a small PR because the HasRolesAndPermissions.php was missing an apostrophe, but yeah, this is exactly what I was looking for.  Thank you so much!

Happy to hear that, it's fixed now, thanks!


Added serializing objects in log solving #108

Added serializing objects in log solving #108

Coverage remained the same at 100.0% when pulling 5e1c14cb8e5fce2adbe0c81ffbce70c374968051 on waldekmastykarz:fix-debug-log-object into 8b4ede874923fbe5fd84ebe79dc20206da18a529 on SharePoint:dev.

Merged manually


Fix typos in bash commands in linear benchmark doc

thank you for catching these! :) :) let's import to phabricator and land this :)


Error

I'm getting error like:

Hello @lusarz,
can't reproduce it on my own.
Please provide more information about your environment.
Minimal sample of error.


Amplicon data with mark_duplicates: false. Does not switch off PCR duplicate removal in GATK-HC

I think this is a case of me not interpreting the docs correctly. I was performing variant calling using GATK-HC. I set mark_duplicates: false but this does not switch off GATK-HC from removing PCR duplicates downs stream (resulted in ~80% of my reads being removed). In order to switch off this I used the command -drf DuplicateRead. Is there any way of configuring this in BCBIO?

Kevin;
Good catch, thanks for identifying this. I agree that it would be better to skip this filter for non-duplicate marked or amplicon data and added in default to do this automatically based on those parameters. If you update to the latest development it'll remove the DuplicateRead filter for these cases. Thanks again.

Thanks Brad, was scratching my head wondering why obvious calls were being missed. Thanks for fixing this. I should be able to re-run the analysis with the same configuration.


suggestion for "watching" objects

While dirty-checking is considered by some to be passe (seems many think the future is in immutable objects blah blah - at present, I don't agree with them), the observe-js library from the polymer works pretty well when you aren't dealing with a very large object set. https://github.com/Polymer/observe-js
There's another library that will take your original pojo and wrap it up in one that creates setter/getters through Object.defineProperty and then fire Object.observe() style events when the setters are called, effectively replicating the O.o() api to some degree without the dirty-checking<EMAIL_ADDRESS>- by default it is VERY ES6-centric in its examples code but there are some ES5 examples to work with I think. Haven't looked at that very deeply yet.
My first released app, SubFire (a jquerymobile client for Subsonic servers) uses observe-js. I created $.fn.extend() methods on the JQM widgets plus a general purpose one for the DOM, that allow one to attach an object/property-path and have it automatically set the value of the widget (or the content of the dom) and call any appropriate .refresh methods needed for JQM.
One could have "div id=fred /div", and object fred = { name: 'fred' }, and be able to
$('#fred').attach(fred, 'name')
So then if I do fred.name = 'Sam', the div content would update to Sam instead of fred.

Thanks, this is very interesting. I certainly would like to add watching of bound properties into the plugin. I would like to use native JavaScript as much as possible to do this as well.
There are a number of challenges that this poses, particularly the syntax for binding to an object when it is being 'watched'. I think the syntax at the moment for the plugin is still a bit clunky.
I think any watching of objects will have to come in a version 2, with a new syntax. My idea is to work very much like xaml and wpf bindings and allow json in any property in the template to allow you to bind values in any property without too much of a lengthy syntax. It would then allow you to apply modifiers to a binding, such as if it is two way, one way etc. In a simple, concise format.

I use this in various webapps with my own Flux-based framework, which provides a "data watching" behavior via Differentia.js. I am not saying you should use my code at all, but rather this is a good example of how you can implement this behavior.
Flux provides a basic mechanism for firing events when data is interacted with. In my framework, when a change event gets fired, the incoming data is compared to old data to look for changes. Here's some example code showing how this is invoked:
function shouldComponentUpdate (nextState, oldState) {
  return FluxAxe.isDiff(oldState, nextState, component.defaultProps);
}

In this example, component.defaultProps is an Object representing the properties which are fed directly into an invocation of jQuery-Template, and is provided to the isDiff function as a search parameter. This means component.defaultProps will be used as the traversal target to differentiate properties in oldState and nextState. With this setup, I can simply specify which properties to "watch", and have jQuery-Template re-render if any of them change.
Anyways, this is only one example of how you can monitor Objects for changes. I hope it helps somehow.

Thanks, that is really useful. I think there are number of ways this could be achieved, and it's useful to evaluate them all as efficiency will make all the difference here.


Can we have a "download capture only" extension?

As with Unix philosophy "do one thing and do it well", I would like to ask if we can have a Chrome extension which only capture download links and send them to the AriaNG server? I mean we have 3 different things:

aria2c running in RPC mode on one server
AriaNG running in another server, which acts as a front-end for aria2 server
Chrome extensions on various client PCs, which captures the link and and send them to the AriaNG server

Of course we can combine all of them on a single PC. But personally, I think it would be better to split their functionalities into different components. The obvious benefit would be upgrading AriaNG independently of the extension.

No, we dont.
According to my experience, common end user always likes all-in-one application whose philosophy is different from operation system module design.
And as current condition,  you can use aria2, ariaNG, extension separatly since you know how to config.
Thanks for you advice.

I just realized Aria2 for Chrome does not rely on AriaNG to work. It has its own configuration parameters, and can send download links directly to aria2. AriaNG works as a "viewer" most of the time.
You're right. I think I can install another web interface such as WebUI-Aria2 and it will work just fine as another viewer. It is nice to have two GUIs at once.

Yes. You got it.


(FACT-3149) Fix memory usage reporting on FreeBSD

In vmstat(8), "free memory" correspond to unused memory that does not
contain any data, and does not include cache / inactive memory which
has some data but is immediatly available to the system if memory is
needed.
Prefer to get active and wired memory page count form sysctl(3) which
correpond to the used memory that can (active) and cannot (wired) be
swapped out, and multiply these by the size of a memory page.  This
give a better overview of the current memory usage.
Prefer vm.stats.vm.v_page_count over hw.physmem:  The available
memory can be lower that what is physically present in the system and
the free / used memory is a portion of the usable memory more than a
portion of the physical memory.

Description of the sysctl entries:

vm.stats.vm.v_page_count: Total number of pages in system
vm.stats.vm.v_active_count: Active pages
vm.stats.vm.v_wire_count: Wired pages
vm.stats.vm.v_page_size: Page size in bytes

Can one of the admins verify this patch?

Rebased to fix conflicts

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

@smortex sorry for the delay, could you rebase on main?

@joshcooper rebased without conflict and CI is green!

Thank you @smortex!


CPOL-83 Provide return type in openapi spec.

Signed-off-by: Heiko W. Rupp<EMAIL_ADDRESS>

The checker is wrong, as above job was cancelled, as I merged the two suggestions from Josejulio and the 2nd merge kicked off yet another build, which then cancelled the above one.
See https://travis-ci.org/RedHatInsights/custom-policies-ui-backend Job 139


create a way for non-developers to add their brand

converting into https://github.com/reimertz/brand-colors/projects/1#card-549200


Plasma Mobile Can Work With Pipewire Too.

Describe the bug
Option services.xserver.desktopManager.plasma5.mobile.enable enforces hardware.pulseaudio.enable, which in turn conflicts with services.pipewire.pulse.enable.
Steps To Reproduce
Enable both services.xserver.desktopManager.plasma5.mobile.enable and services.pipewire.pulse.enable. Pipewire configuration is implied.
Expected behavior
Normal rebuild.
Screenshots
Not applicable.
Additional context
Plasma Mobile works with Pipewire's Pulseaudio emulation just fine. I watched a couple hours of videos with EasyEffects and switched outputs with zero issues.
I worked around the Pulseaudio enforcement by completely removing the requirement from nixos/modules/services/x11/desktop-managers/plasma5.nix.
The system is built from a configuration flake pointing to my fork.
Notify maintainers
The configuration file does not list maintainers, so the notification goes to the author of the new options: @samueldr .
Metadata
[user@system:~]$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.101, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.7.0pre20220127_558c4ee`
 - channels(root): `"nixos-22.05pre347947.689b76bcf36"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I don't have the time to implement the change, but I suppose it would work since pipewire is (AFAIUI) compatible with pulseaudio.
The main problematic part is here:

https://github.com/NixOS/nixpkgs/blob/912bc45da66c084cc68059d66f76d1b205169816/nixos/modules/services/x11/desktop-managers/plasma5.nix#L510-L514

And this could be switched to mkDefault, maybe even mkIf'd on pipewire not being enabled?

https://github.com/NixOS/nixpkgs/blob/912bc45da66c084cc68059d66f76d1b205169816/nixos/modules/services/x11/desktop-managers/plasma5.nix#L550

The assertion would need to be changed to check conditionally that any "pulseaudio-compatible" sound server is present.
Another option would be to verify if the UI still breaks when no sound server is present. Though I suspect enabling a sound server by default would still be beneficial.

I am wondering, if I should mention this issue in #102547 .

I don't know, but you mentioning that issue made a link there, so it's kinda done :).


Add back entrypoint for string splitting

@Veetaha looks like this fixes your issue, sorry for the trouble!

Thanks, commit messages are something :D


Update plugin.json

Brought UI formatting in line, minor content edit.

Codecov Report

Merging #733 (fba917a) into master (c71b29c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #733   +/-   ##
=======================================
  Coverage   32.44%   32.44%
=======================================
  Files          52       52
  Lines        5363     5363
=======================================
  Hits         1740     1740
  Misses       3424     3424
  Partials      199      199

Continue to review full report at Codecov.

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

Codecov Report

Merging #733 (fba917a) into master (c71b29c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #733   +/-   ##
=======================================
  Coverage   32.44%   32.44%
=======================================
  Files          52       52
  Lines        5363     5363
=======================================
  Hits         1740     1740
  Misses       3424     3424
  Partials      199      199

Continue to review full report at Codecov.

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


Default FancyZones layout not being respected

Microsoft PowerToys version
0.68.1
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
FancyZones
Steps to reproduce

Change the default layout to Columns.

Let computer go to sleep.
Wake computer
Layout is set to Priority Grid

Launching the layout editor opens with the expected layout, but it does not take affect even after reselecting the Columns layout. The only way I've found to get back to the Column layout is to use the task manager to end the PowerToys.Runner process and restart it.
✔ Expected Behavior
Default layout to be used when computer wakes.
❌ Actual Behavior
Priority Grid layout is used.
Other Software
No response

Hi, thanks for reaching out. Could you attach /bugreport? Thanks

hmm, did get a notification for this. Anyway, found out some more info. When this issue occurs, I see multiple Power Toys icons in the system tray icon area. If I exit one, all (three) go away and restarting Power Toys resumes working. I'm pretty sure I tried this before, but I don't recall seeing multiple Power Toys icons in that case.
PowerToysReport_2023-03-23-17-05-43.zip

As an update to what I mentioned in my last update. It looks like usually there is only one Power Toys icon in the system tray area and exiting that and restarting Power Toys gets it back to the normal state.
The workaround is easier than what I originally described, but still annoying to have to do that every time you wake up the computer.

Hi. I have the same experience exactly, and I've attached a bug report as well. 3 actually, because I only just learned that clicking Bug Report wasn't automatically sending something to you. :)
Hope this helps. LOVE PowerToys!
PowerToysReport_2023-05-04-09-04-21.zip
PowerToysReport_2023-05-05-22-07-06.zip
PowerToysReport_2023-05-05-22-05-47.zip

Are you still experiencing this issue? /needinfo


[DC-377] Add workspace id as dct:identifier

So, if we make dct:identifier be the catalog ID, then it becomes a duplicate of id. I am inclined to just get rid of the field (or the id field) if we are going to do that, and not duplicate values.

Yes, I think we should remove id and only send dct:identifier.

I think there could be use cases where a user might want to go to the underlying data source, but we want to discourage that in general. Ideally users don't need to know how to query the Data Repo. The one situation I could see where a user would want to do that, and we would want to encourage it, is with power users. But I don't know whether power users would just go directly to the storage source without going through the catalog or not.

There is dcat:accessURL. Although maybe this should also point at the catalog, not back to TDR or terra-ui. We were thinking that we want a way to store and show the workspace link for a workspace dataset, so we will need some place to store the storage system URL, if it's not cat:accessURL.

I'm going to push back on making that change right now. Currently, we have a number of snapshots (albeit in just dev) that do it the other way. I could see us making this change, but we would need to figure out that backfill. We could, potentially, just make the change and have it override the metadata, but I am a bit concerned with overwriting user defined metadata before we have a schema for them.
We could just not do this here, and then when we have our schema, make it clear that the dct:identifier is a reserved field. But as long as users can put whatever they want in dct:identifier, it makes me a little uncomfortable to blow away that data that they explicitly included.

That said, lets skip this for now, ignore dct:identifier, and figure this out with the schema discussion later.


[BUG]: Data model structs field are not accessible

We need to make sure that data model structs' fields are accessible inside client and data model.
Currently it's often omitted due to restrictions of iroha_ffi.

One example is MetadataChanged event fields.

AFAIK, the omission of fields in clients is by design. If you need to expose fields to the clients, you are supposed to derive getters

@DCNick3 yeah, i will clarify that i mean lack of getters (or actually any other way to access struct data)

wherever there is a TODO comment saying a getter cannot be derived because of FFI we can make a manual getter implementation get around this issue


Fix netCDF

Thanks Robin! Could you please also fix the 1 < 2 condition? I'm pretty sure it was meant to be j < 2.

There was a condition in the loop. I just moved the check into the for loop condition.


Add celestia specific changes to tendermint v0.35.x

Description
WIP making a version of core based on the latest v0.35.x branch of tendermint.
Closes: #XXX

closing in favor of #737


MicroWebSrv not started when in AP mode

Hello JC,
I have a new issue maybe in side effect of loboris network status improvements.
Your server code checks WLAN connection before starting. But in AP mode, the connection is not made, thus not starting the web server.
Maybe you could follow the example of lemariva in his FTP server ?

        self.wlan = network.WLAN(network.AP_IF)
        if self.wlan.active():
            ifconfig = self.wlan.ifconfig()
        else:
            self.wlan = network.WLAN(network.STA_IF)
            if self.wlan.active():
                ifconfig = self.wlan.ifconfig()
            else:
                dbg("No active connection")

The server code don't checks WLAN connection ..?
It doesn't this case in my src.
2018-02-09 13:44 GMT+01:00 Liberasys<EMAIL_ADDRESS>
Hello JC,
I have a new issue maybe in side effect of loboris network status
improvements.
Your server code checks WLAN connection before starting. But in AP mode,
the connection is not made, thus not starting the web server.
Maybe you could follow the example of lemariva in his FTP server ?
    self.wlan = network.WLAN(network.AP_IF)
    if self.wlan.active():
        ifconfig = self.wlan.ifconfig()
    else:
        self.wlan = network.WLAN(network.STA_IF)
        if self.wlan.active():
            ifconfig = self.wlan.ifconfig()
        else:
            dbg("No active connection")

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jczic/MicroWebSrv/issues/12, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAegLMyubEK1IJKZvnnGAD7a8d00wbJ1ks5tTD3IgaJpZM4R_3sn
.

--
Sincèrement,

Ok, sorry, it is due to Boris modifications :
      if not self._started :             if not network.WLAN().isconnected():                 print("WLAN not connected!")                 return
I will see with him.
Sorry for inconvenience.
Thank you JC.

Ok no souci, it's possible to check WLAN configuration and not
"isconnected" :)
2018-02-12 9:56 GMT+01:00 Liberasys<EMAIL_ADDRESS>
Ok, sorry, it is due to Boris modifications :
if not self._started : if not network.WLAN().isconnected(): print("WLAN
not connected!") return
I will see with him.
Sorry for inconvenience.
Thank you JC.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jczic/MicroWebSrv/issues/12#issuecomment-364861830,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAegLOxy0GVsG6Gi3RjAXq88A211bUDPks5tT_zMgaJpZM4R_3sn
.

--
Sincèrement,


[Bug]: 403 Forbidden, 'NoneType' object has no attribute 'content'

What happened?
Got this error, but in the browser this link works good
https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=mycourse
Expected Result
Download a course
Branch
master/main
What operating systems are you seeing the problem on?
Windows
Relevant log output
[12:53:17] [udemy-downloader] [__init__:287] INFO: Login Success
[12:53:17] [udemy-downloader] [main:1467] INFO: > Fetching course information, this may take a minute...
[12:53:17] [udemy-downloader] [_get:804] ERROR: Failed request https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=mycourse
[12:53:17] [udemy-downloader] [_get:805] ERROR: 403 Forbidden, retrying (attemp 0 )...
...
[12:53:27] [udemy-downloader] [_subscribed_courses:551] CRITICAL: Udemy Says: 'NoneType' object has no attribute 'content' on https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=mycourse

Other information
No response

failed to authenticate, did you edit the config and put in your username and password?

It shows "Login Success". I can't find where should I put my username and password in config file. I just use .env file with my bearer token.

ah, I didn't see you were using the master branch. is this for a subscription course through udemy personal or pro plans?

It is a common account, not pro and without subscriptions.

are you sure your token is not expired? try getting a new one

After relogin it works. Thanks.


TypeError: string indices must be integers

❯ /usr/bin/python3
Python 3.9.6 (default, May  7 2023, 23:32:45)
[Clang 14.0.3 (clang-14<IP_ADDRESS>.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from market_prices import PricesYahoo
>>> prices = PricesYahoo("MSFT")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/ilankleiman/Library/Python/3.9/lib/python/site-packages/valimp/valimp.py", line 935, in wrapped_f
    return f(**new_as_kwargs)
  File "/Users/ilankleiman/Library/Python/3.9/lib/python/site-packages/market_prices/prices/yahoo.py", line 353, in __init__
    calendars = self._ascertain_calendars(calendars)
  File "/Users/ilankleiman/Library/Python/3.9/lib/python/site-packages/market_prices/prices/yahoo.py", line 389, in _ascertain_calendars
    exchange = self._yahoo_exchange_name[s]
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/functools.py", line 969, in __get__
    val = self.func(instance)
  File "/Users/ilankleiman/Library/Python/3.9/lib/python/site-packages/market_prices/prices/yahoo.py", line 369, in _yahoo_exchange_name
    d[s] = self._ticker.price[s]["exchangeName"]
TypeError: string indices must be integers

latest release, 0.11

#201 - works with python3.11; 3.9 support is no more 😄

Hi @shortland, thanks for the report.
This looks related to the Yahoo API which occasionally fails to return some endpoints. Seems to be back up now - it's working fine for me with 3.9.
Given the nature of the error, it should raise on both Python 3.9 and 3.11. It might have been that the API endpoint was back up when you tried on 3.11.
Let me know if you're still getting the error.
Cheers

I tried both 3.9.6 and 3.11.6 at the same time last night & now - with 3.9.6 giving me the error & 3.11.6 working fine both times. Seems like it's possibly an incompatibility in some dependency

3.9 is using the v10 api endpoint, while 3.11 is using the v6 endpoint:
turns out I needed to update the yahooquery package


Custom microservice details screen

It should be possible to open custom details screen for every microservice by clicking "Details" on a microservice card from dashboard.
This screen should include dependencies for particular microservice (without search function). It will also open road for upcoming features related to CI

#7f8ef38d18ea0bc7b2532f47837a7a7bb1171d72


How can I use the 'NCNet' only when I run the 'visualize_matches.py'?

Hi, Could you give me any advice? I want to output some results like the results you illustrated in your paper(Figure7). How can I modify the code in 'visualize_matches.py' to get the outcome like that?

Hi @BruceWANGDi ,
Do you mean how to plot results on Aachen benchmark? I was using the visualization tools provided by HLoc, you can find the implementation in visualization.py.


577 broken

573 to 577 broken on RX6700 for txt to img
using --clear_all to reset or not - same issue
delete old vmfb and recompile - takes long time - then loading config seems to go through then no vmfb found so compiles again then the old registry lookup failed to get layer manifest file error... but it keeps going.. then runtime error registering modules
 File "iree\runtime\system_api.py", line 255, in add_vm_module
 File "iree\runtime\system_api.py", line 252, in add_vm_modules

RuntimeError: Error registering modules: D:\a\SHARK-Runtime\SHARK-Runtime\c\runtime\src\iree\hal\drivers\vulkan\native_executable.cc:157: UNKNOWN; VkResult=4294967283; while invoking native function hal.executable.create; while calling import;
[ 1]   native hal.executable.create:0 -
[ 0] bytecode module.__init:2828 <eval_with_key>.41:134:18
The odd thing I see is the drive letter - I am on drive E not D...

Thank you for the report. @yzhang93 is investigating it. It is broken on RDNA2 and lower devices but works on RDNA3

It is fixed now. Please try with our next release later today.

working now - please mark solved.


Getting started guide for new users

resolution_duplicate   |    by<EMAIL_ADDRESS>
We should have a way of directing users new to accessdev towards the user documentation and/or a 'getting started' type guide that tells them how to set up the machine & the differences from accesscollab.
This should be the first thing they see when they log onto the machine, e.g. a message like
================================================
Welcome to Accessdev!

For help getting started please go to http://accessdev.nci.org.au/getting-started
To read the general user guides go to http://accessdev.nci.org.au/help

You can also ask for help by emailing<EMAIL_ADDRESS>=================================================

The links don't necessarily need to be served by accessdev, they could be redirects e.g. to the trac.nci wiki, the idea is to have a memorable shortcut for people to type out rather than https://trac.nci.org.au/trac/access/wiki/accessdev/...
We could display the message to only new users using a profile.d script that e.g. only runs if the home directory is empty or something along those lines.
Once a user has read the getting started guide and followed its instructions they should be able to run a UMUI test job (e.g. ssh & svn access has been set up) and know how to migrate a job from accesscollab to accessdev (how to copy across any hand edit files & such needed to run)

Issue migrated from trac:78 at 2024-01-31 17:59:54 +1100

ibc599 changed reviews which not transferred by tractive

<EMAIL_ADDRESS>changed status from assigned to accepted

<EMAIL_ADDRESS>changed priority from major to blocker

ibc599 changed status from new to assigned

ibc599 changed owner from `` to Admin

<EMAIL_ADDRESS>changed owner from Admin to saw562

<EMAIL_ADDRESS>changed resolution from `` to duplicate

<EMAIL_ADDRESS>changed status from accepted to closed

<EMAIL_ADDRESS>removed milestone (was accessdev v1.0)

<EMAIL_ADDRESS>commented

Dupe of #48

<EMAIL_ADDRESS>commented

Milestone accessdev v1.0 deleted


Open source

Hi there, just wondering if it is (or it will be) an open source project for docs.microsoft.com. thanks :)

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

ID: 6079073a-0dd9-3b9b-c160-76e0dd525a3c
Version Independent ID: 631788a5-f4bc-7df0-0540-2a0f67b631de
Content: Introducing docs.microsoft.com
Content Source: teamblog/introducing-docs-microsoft-com.md
Service: unspecified
GitHub Login: @jeffsand
Microsoft Alias: jeffsand

feed back on

Hello! Currently there are no plans to do this. Please check out DocFX if you would like to try the tool that powers our site!

On Wed, 27 Jun 2018 12:59 AM jmcjohnjohn castillo, <
<EMAIL_ADDRESS>wrote:

On Mon, 7 May 2018 10:25 AM jmcjohnjohn<EMAIL_ADDRESS>wrote:

feed back on
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/TeamBlogFeedback/issues/61#issuecomment-386940177,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Akry60F5taowAdIuYAFeprmBgyk8BJm5ks5tv7CcgaJpZM4TyEbu
.


Change the default folder icon

Closes #3118
Any help to improve styling is welcome

Before:

After:

@duke7553 Testing..

@duke7553 After testing:

128x128:
It looks blurry in grid view

256x256:
In tiles view and details view it seems to lose the roundness in the corners

Tiles view:
128x128:

256x256:


style is being applied for twice

The style was originally rendered on server side, but client side will executes again which causing the style inserted into <head> for twice. I think the framework itself should check if there's already style in <head> then remove the old one before inserting the new one.

This bug is basically affecting we debug with the CSS using inspector, we have to disable the property for twice which is anonying

@nodegin Can you post the snippet ? I can't reproduce the issue.

@nkzawa
index.js:
export default class extends React.Component {
  static async getInitialProps ({ req }) {
    const isServer = !!req
    const data = await (await fetch('http://<IP_ADDRESS>:8082/api/data')).json()
    const store = initStore({}, isServer)
    store.dispatch(actions.loadData(data))

    return { isServer, initialState: store.getState() }
  }

  constructor (props) {
    super(props)
    this.store = initStore(props.initialState, props.isServer)
  }

  render () {
    return (
      <Provider store={this.store}>
        <MainLayout>
          <NavigationBar />
        </MainLayout>
      </Provider>
    )
  }
}

NavigationBar:
import $ from '../styles'
import React from 'react'

export default () => (
  <div className={ $.navbar }>
    123
  </div>
)

styles/index.js:
import * as Base from './Base'
import * as Navbar from './Navbar'

export default {
  ...Base,
  ...Navbar,
}

styles/Navbar.js:
import css, { merge } from 'next/css'
import { verticalAlign } from './Base'

const navbar = merge(verticalAlign, css({
  height: 32,
  width: '100%',
}))

export {
  navbar,
}

where styles inside

Same is happening for me.

@nodegin Thanks, but can you make it minimum ?
It seems some parts are missing like initStore and the http://<IP_ADDRESS>:8082 server. Can't prepare it on my local.

@nkzawa Here you go:
8082 (just a simple express route)
const api = express.Router()

api.get('/list', (req, res) => {
  res.send({
    test: 'data',
  })
})

import { createStore, applyMiddleware, combineReducers } from 'redux'
import thunkMiddleware from 'redux-thunk'

import counter from './reducers/counter'

export const configureStore = initialState => {
  const reducers = combineReducers({ counter })
  if (typeof window === 'undefined') {
    return createStore(reducers, initialState, applyMiddleware(thunkMiddleware))
  } else {
    if (!window.store) {
      window.store = createStore(reducers, initialState, applyMiddleware(thunkMiddleware))
    }
    return window.store
  }
}

@nodegin Thanks, but it includes a new file which I don't know if it's related to the issue ...
Can you post only minimum snippets which required to reproduce the issue ? Or if you have the repository url, let me know it.

this might be an issue with glamor, I'll have a look this weekend.

can't reproduce on my end. can you share what the Base file contains? would be nice if you can isolate to something smaller as well.

@threepointone  Here's Base.js FYI:
import css, { merge } from 'next/css'

const alignMiddle = css({
  alignItems: 'center',
  display: 'flex',
})
export {
  alignMiddle,
}

Does this still happen ?

+1


rewrite in rust

rUsT iS sO mUcH fAsTeR aNd sAfEr tO uSe

/s

out of curiosity though, what do you need to write a backend for? I've been trying to come up with an excuse to write a backend for myself, but haven't come up with any cool ideas yet... 😢


Import block snippet into project

AppInventor has this feature where you drag an image of a block snippet into a project and it loads those blocks--like our save PNG but inserting a snippet into an existing project instead of loading an entirely new project. Would love this for both user-generated and docs snippets. Would be extremely cool if students could drag an image from the sidedocs and load a snippet into their project.

Speaking of very cool feature in App Invetor: you can type a math experession, (x+y) in any math block and it automatically gets parsed and expanded to the blocks.

Implemented.


Propose new URL structure

What is the context of this PR?
The current URL structure we use in runner is too long and overloaded. The URL should be as clean and readable as possible. This pull request proposes a new simpler URL structure.

@ajmaddaford What about detection of multiple surveys?. We currently use the collection exercise id in the URL to compare against the one in the session data?

@MebinAbraham

What about detection of multiple surveys?. We currently use the collection exercise id in the URL to compare against the one in the session data?

We'll need to look at what the requirement is for this and if needed how we can do it without the url params, potentially storing something in the cookie.


migrate telemetry module

We'll start using the telemetry module in several projects so we need to migrate the module to here. Note that the telemetry module also imports from the ploomber.config module so we have to move it as well.

[x] migrate telemetry code to this repository
[x] migrate tests (some tests check that ploomber calls the telemetry module, those should stay there, only move the ones that test core functionality, if in doubt, ask)
[x] submit ploomber PR deleting the code, tests and using ploomber_core
[x] add config files for mac and windows CI testing
[ ] submit PR to soopervisor so it uses ploomber_core

Note: ploomber and soopervisor PRs will fail since this isn't available on PyPI yet, once the PR here is working. I'll upload to PyPI so ploomber and soopervisor pass

First two tasks done.

What do you mean by this step:  add config files for mac and windows CI testing
Do you mean we need to add ploomber_core to setup requirement? Like its a new package and we will have to install it first in CI ?

i mean testing the package on windows and mac, we are only testing on linux:
https://github.com/ploomber/core/tree/main/.github/workflows

ah you mean adding testing workflow for the new package. I see

made a first release after merging #1, we can now start integrating this into ploomber and soopervisor:
pip install ploomber-core

released ploomber-core 0.0.2 with your latest changes to support multiple keys, you can now work on the PRs for ploomber and soopervisor


License

Hi @LucasCarioca ,
under what license is your code released? It is missing in the repository.
Thanks for this great, simple and useful app.

Thank you for the not and sorry for the very late reply. I'll update that into the repo

Thanks. 👍


Narrow colorette resolution

It looks like webpack-dev-server uses colorette as well, so changing the resolution globally broke Storybook. I think this narrows it correctly to only resolve that specific version for @redocly/openapi-core. @aureentuluvacal can you verify this looks right? It makes Storybook work correctly but I'm not totally sure how to test the its use with redoc.

@joekrill were you able to visit /http-api with this change? should behave like this:
https://flow-docs-staging.fly.dev/http-api


Building a pattern is ambiguous and sounds like its similar to deploying one

In a discussion earlier there was confusion over the purpose of this section. It sounded like it would be read by users that are consuming the patterns. And therefore the complexity of the concepts discussed seems too deep for that sort of reader. And that would be right.
Maybe a change from Building and Build to Creating and Create would make it clearer that this section is for developers that want to use the framework to create their own pattern that might be contributed to hybrid-cloud-patterns.

Fixed


Deps clash

When trying to build on macOS 10.15.4 I get this:
error: multiple packages link to native library `clang`, but a native library can be linked only once

package `clang-sys v0.21.2`
    ... which is depended on by `bindgen v0.32.3`
    ... which is depended on by `coreaudio-sys v0.2.2`
    ... which is depended on by `coreaudio-rs v0.9.1`
    ... which is depended on by `cpal v0.8.2`
    ... which is depended on by `rodio v0.9.0`
    ... which is depended on by `ggez v0.5.1`
    ... which is depended on by `evolution v0.0.1 (/Users/moritz/code/evolution)`
links to native library `clang`

package `clang-sys v0.26.4`
    ... which is depended on by `bindgen v0.46.0`
    ... which is depended on by `sleef-sys v0.1.2`
    ... which is depended on by `simdeez v1.0.0`
    ... which is depended on by `evolution v0.0.1 (/Users/moritz/code/evolution)`
also links to native library `clang`

that is an interesting problem!
I'll have to do some research on how to resolve.
Thanks for the heads up

The problem is that the audio part off ggez dependencies for mac are not updated.
As audio is not used in this project, and the ui logic can be simplifed, take a look at this PR. It removes ggez and imgui in favor of a simple framebuffer.


[Authorization Logic] Revocation

Eventually, we will need to handle cases where facts or rules are retracted. For example, some credentials need to expire or policies/preferences might change. Handling revocation in authorization systems is often tricky, so handling this properly will require more thought. For example, 1) if if this is in a distributed system we need to ensure that revocations reach all the machines that they should reach, 2) revocations might "cascade" causing other facts/rules to be revoked.
A special case of revocation that might be useful is to have rules/facts that are created with some expiration date initially.
This paper about dynamic updates to policies in the context of SecPal is highly relevant. (Essentially, removing a fact or rule is a revocation).

We have an answer for how to do this in the context of policy transparency in our paper which is revocation monitors. The details of this are pretty orthogonal to transparency so this solution still works even where transparency is not relevant. Essentially the point is in order to do revocation you just need stratified negation and we already support this in both implementations of auth logic, so this is fixed.


fix: reverse introduced breaking change in _create_table

Feature or Bugfix

Bugfix

Detail

Fix breaking change introduced when deprecating Governed tables

Relates

#2708

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: eaa009bd00fbac8485f3ca85d61cea7039af6cf5
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


[POC] Add kafka log appeneder

Some notes:

AsynchronousDeliveryStrategy can not guarantee if the logs missing will happen as it does not check failures. If want to do the checking, BlockingDeliveryStrategy should be used, but as its name showed, it will block the logging thread if the log action and kafka producing action takes long time.
In log config, logger for "org.apache.kafka" should be raised to "INFO" upper level, as it will cause some Kafka Timeout error with "DEBUG" and below.
Should upgrade logback version to 1.2.3+

This looks really cool. I think you are going to do some test? I got a link from Matej https://docs.engineering.redhat.com/display/JP/Service+setup+for+logging , but not sure about some SSL config.
@matejonnet do you know when can we test Kafka appender on PNC devel?

closing, superceded by #1148


sink(ticdc): report the kafka topic create failed error

What problem does this PR solve?

Issue Number: close https://github.com/pingcap/tiflow/issues/6916
What is changed and how it works?

report the kafka topic create failed error
refine the retry delay, make sure don't try it to fast

Check List
Tests

Unit test

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

/merge

Codecov Report

Merging #6920 (f68c657) into master (7c5032c) will increase coverage by 0.0465%.
The diff coverage is 51.4682%.

Additional details and impacted files

Flag
Coverage Δ

cdc
67.3409% <72.0554%> (-0.0359%)
:arrow_down:

dm
52.0987% <36.0184%> (+0.1001%)
:arrow_up:

engine
62.6903% <59.3695%> (+0.0549%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #6920        +/-   ##
================================================
+ Coverage   59.9224%   59.9690%   +0.0465%
================================================
  Files           783        786         +3
  Lines         89519      89803       +284
================================================
+ Hits          53642      53854       +212
- Misses        31168      31240        +72
  Partials       4709       4709

/run-kafka-integration-test

/run-kafka-integration-test

/merge

/merge


[ReorderableListView] Problem after upgrade Flutter 2.2.3

I have now completed the migration and updated to the latest version of flutter 2.2.3 (before I had 2).
After this update I noticed that while before the ReorderableListView widget worked as I expected, that is, if I dragged an element out of the reorderable list space it was hidden, now if I drag it, it remains visible and this is not nice to see. I tried masking with clipRect etc. but when with the longPress the element becomes draggable it is no longer possible to mask it and can be dragged to the top of the screen.
In your opinion it is a bag or there may be a way to solve it.
Thanks

Hi @csacchetti,
Thanks for filing the issue, Please provide the output of flutter doctor -v along with minimal reproducible code sample, This helps to better investigate the issue.
Thank you.

here flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale it-IT)
• Flutter version 2.2.3 at /Users/carlosacchetti/Developer/flutter
• Framework revision f4abaa0735 (2 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/carlosacchetti/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
[✓] IntelliJ IDEA Community Edition (version 2021.1.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] VS Code (version 1.58.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.24.0
[✓] Connected device (1 available)
• Chrome (web)               • chrome                                   • web-javascript • Google Chrome
91.0.4472.114
• No issues found!

Here a sample of code of my app where use ReorderableListView
class ReorderAudioBack extends StatefulWidget {
  ReorderAudioBack({Key? key, this.listAudio}) : super(key: key);
  final List<AudioBack>? listAudio;

  @override
  _ReorderAudioBackState createState() => _ReorderAudioBackState();
}

class _ReorderAudioBackState extends State<ReorderAudioBack> {
  void _updateMyItems(int oldIndex, int newIndex) {
    if (newIndex > oldIndex) newIndex -= 1;

    final AudioBack item = widget.listAudio!.removeAt(oldIndex);
    widget.listAudio!.insert(newIndex, item);
  }

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.symmetric(horizontal: myMethodProp(context, 16.0)),
      child: Container(
        decoration: BoxDecoration(
            color: Theme.of(context).scaffoldBackgroundColor.withOpacity(0.9),
            borderRadius: BorderRadius.only(
              topLeft: Radius.circular(myMethodProp(context, 20.0)),
              topRight: Radius.circular(myMethodProp(context, 20.0)),
            )),
        child: Padding(
          padding: EdgeInsets.only(
              top: myMethodProp(context, 8.0),
              left: myMethodProp(context, 8.0),
              right: myMethodProp(context, 8.0)),
          child: Column(
            mainAxisSize: MainAxisSize.max,
            children: [
              Padding(
                padding: EdgeInsets.symmetric(
                    horizontal: myMethodProp(context, 16.0)),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.end,
                  children: [
                    TextButton(
                      onPressed: () {
                        Navigator.pop(context);
                      },
                      child: Text(
                        MyTexts.methForLang("Close")!,
                        style: myBodyPrimary(context),
                      ),
                    ),
                    SizedBox(
                      width: myMethodProp(context, 4.0),
                    ),
                    TextButton(
                      onPressed: () async {
                        Navigator.pop(context);
                        await updateProvAndDB(context, widget.listAudio!);
                        //* set the index of playlist to 0 if the state is true;
                        setIndexPlaylistToZero(context,
                            context.read<ProviderPref>().isPlaylistProv!);
                      },
                      child: Text(
                        MyTexts.methForLang("Save")!,
                        style: myBodyPrimary(context),
                      ),
                    ),
                  ],
                ),
              ),
              SizedBox(
                height: myMethodProp(context, 8.0),
              ),
              Expanded(
                child: SafeArea(
                  child: Center(
                    child: ReorderableListView.builder(
                        padding: EdgeInsets.symmetric(
                            horizontal: myMethodProp(context, 16.0)),
                        onReorder: (oldIndex, newIndex) {
                          setState(() {
                            _updateMyItems(oldIndex, newIndex);
                          });
                        },
                        itemCount: widget.listAudio!.length,
                        itemBuilder: (context, index) {
                          return audioElementReorderable(
                              widget.listAudio![index]);
                        }),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }

  Widget audioElementReorderable(AudioBack audioBack) {
    return Container(
      key: ValueKey(audioBack),
      decoration: BoxDecoration(
        color: context.read<ProviderPref>().isDarkActiveProv!
            ? Colors.grey[900]
            : Colors.white,
        border: Border.all(
            color: context.read<ProviderPref>().isDarkActiveProv!
                ? Colors.grey[800]!
                : Colors.grey[200]!),
      ),
      child: Padding(
        padding: EdgeInsets.all(myMethodProp(context, 16.0)),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            InkWell(
              onTap: () {
                List<int> listIsEmpty = [];
                for (AudioBack e in widget.listAudio!) {
                  if (e.playlistOk!) listIsEmpty.add(1);
                }
                if (listIsEmpty.length == 1 && audioBack.playlistOk!) {
                  MyAlert().showMyDialog(
                      Text("Operazione proibita!"),
                      Text(
                          "È necessario almeno un brano musicale sia selezionato."),
                      {"ok": () => Navigator.pop(context)});
                } else {
                  setState(() {
                    audioBack.playlistOk = !audioBack.playlistOk!;
                  });
                }
              },
              child: audioBack.playlistOk!
                  ? Icon(Icons.check,
                      color: Theme.of(context).primaryColor,
                      size: myMethodProp(context, 24.0))
                  : Icon(Icons.remove,
                      color: Theme.of(context).primaryColor,
                      size: myMethodProp(context, 24.0)),
            ),
            Text(
              audioBack.name!,
              style: myBodyPrimary(context),
            ),
            Icon(Icons.drag_handle,
                color: Theme.of(context).primaryColor,
                size: myMethodProp(context, 24.0)),
          ],
        ),
      ),
    );
  }
}

If it can be useful I add that this code is contained inside a ModalBottomSheet as you can see from the image of the first post

HI @csacchetti ,
The code shared has lot of unknown variables please share a minimal reproducible code without any third party packages or unknown variables which can be directly run with minimal/ No code changes.

Here is the simplified code. You can copy and paste and it works. You can see that, as the image below shows, after the longPress the element loses the reference to the list edges and goes further. Which it didn't do before and stopped correctly where the list began.
void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'ReorderableListView Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: ReorderableExample(),
    );
  }
}

class ReorderableExample extends StatefulWidget {
  ReorderableExample({Key? key}) : super(key: key);

  @override
  _ReorderableExampleState createState() => _ReorderableExampleState();
}

class _ReorderableExampleState extends State<ReorderableExample> {
  List<String> listAudio = [
    "Mozart",
    "Beethoven",
    "Chopin",
    "Rachmaninov",
  ];

  void _updateMyItems(int oldIndex, int newIndex) {
    if (newIndex > oldIndex) newIndex -= 1;

    final String item = listAudio.removeAt(oldIndex);
    listAudio.insert(newIndex, item);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: Padding(
          padding: EdgeInsets.only(left: 16.0, right: 16.0, top: 50.0),
          child: Container(
            decoration: BoxDecoration(
                color: Colors.amber,
                borderRadius: BorderRadius.only(
                  topLeft: Radius.circular(20.0),
                  topRight: Radius.circular(20.0),
                )),
            child: Padding(
              padding: EdgeInsets.only(top: 8.0, left: 8.0, right: 8.0),
              child: Column(
                mainAxisSize: MainAxisSize.max,
                children: [
                  Padding(
                    padding: EdgeInsets.symmetric(horizontal: 16.0),
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.end,
                      children: [
                        TextButton(
                          onPressed: () {
                            Navigator.pop(context);
                          },
                          child: Text(
                            "Close",
                          ),
                        ),
                        SizedBox(
                          width: 4.0,
                        ),
                        TextButton(
                          onPressed: () {},
                          child: Text(
                            "Save",
                          ),
                        ),
                      ],
                    ),
                  ),
                  SizedBox(
                    height: 8.0,
                  ),
                  Expanded(
                    child: SafeArea(
                      child: Center(
                        child: ReorderableListView.builder(
                            padding: EdgeInsets.symmetric(horizontal: 16.0),
                            onReorder: (oldIndex, newIndex) {
                              setState(() {
                                _updateMyItems(oldIndex, newIndex);
                              });
                            },
                            itemCount: listAudio.length,
                            itemBuilder: (context, index) {
                              return audioElementReorderable(listAudio[index]);
                            }),
                      ),
                    ),
                  ),
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }

  Widget audioElementReorderable(String audioBack) {
    return Container(
      key: ValueKey(audioBack),
      decoration: BoxDecoration(
        color: Colors.white,
        border: Border.all(color: Colors.grey[800]!),
      ),
      child: Padding(
        padding: EdgeInsets.all(16.0),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            InkWell(
                onTap: () {},
                child: Icon(Icons.check,
                    color: Theme.of(context).primaryColor, size: 24.0)),
            Text(
              audioBack,
            ),
            Icon(Icons.drag_handle,
                color: Theme.of(context).primaryColor, size: 24.0),
          ],
        ),
      ),
    );
  }
}

Hi @csacchetti,
Thanks for the sample code, I could see the dragged Item coming back to the list when the pointer is lifted, it is working as expected if I drag the item out of the sheet it jumps back to the top.
Let me know if I missed anything here,

output
https://user-images.githubusercontent.com/31410839/126125835-adce8794-b7af-4824-a859-27e3676ca804.mov

Thank you.

The problem is not that it doesn't return to the right place but that it shouldn't go out of the list space. It did this before the updates. When dragging you got to the top edge of the list, the element scrolled under until and it was hidden. Now it stays above and goes even further. This is not aesthetic. The list should be masked so that you cannot go beyond its margins with the dragged items. At least this was the case before and in my opinion it was the correct behavior.

@csacchetti Can you please share what was the version you upgraded from?

I had Flutter version 2.0.0 and hadn't migrated to null-safety, and it worked fine here. Then I upgraded to 2.0.2 and did the migration and this is where the problem started. I don't know anything about version 2.0.1 because I went straight to 2.0.2.
At least I think so because I don't quite remember if I had tested this feature when I had 2.0.0, but I think so. If not, try the one just above.


fix filter button visibility issue

This PR fixes #14962
there are 2 actual issues:

when we switch tabs and come back to the original query editor or switch between messages/charts/results inside the editor, the filter button will be visible even though row count exceeds the max allow rows.
fix: add a call to update the filter's state in onDidInsert which is called when the view is restored
when the result is coming in batches, the header won't be refreshed.
fix: updated the enabled property setter to force redrawing of the table header, so that the latest enabled state is used.

Pull Request Test Coverage Report for Build 714820244

0 of 13 (0.0%)  changed or added relevant lines in 2 files are covered.
6 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.02%) to 43.555%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/sql/base/browser/ui/table/plugins/headerFilter.plugin.ts
0
6
0.0%

src/sql/workbench/contrib/query/browser/gridPanel.ts
0
7
0.0%

Files with Coverage Reduction
New Missed Lines
%

extensions/import/src/wizard/pages/fileConfigPage.ts
1
73.46%

src/sql/workbench/contrib/query/browser/gridPanel.ts
1
1.94%

extensions/notebook/src/common/ports.ts
4
74.14%

Totals

Change from base Build 713367034:
-0.02%

Covered Lines:
26121

Relevant Lines:
54821

💛  - Coveralls


[Bug] Picture settings broken using Pikachu template

Is there an existing issue for this?

[X] Yes, I have searched the existing issues and none of them match my problem.

Product Variant
Cloud (http://rxresu.me)
Current Behavior
Using the Pikachu template changing the pixel values for picture size does nothing. Also it seems that border radius gets applied to the header section as well as to the image.
Expected Behavior
The image should change size according to provided pixel values and border radius should get applied solely to the image.
Steps To Reproduce

Create a new resume
Choose the Pikachu template
Upload a picture as a headshot
Open picture settings
Change pixel size and border radius setting

What browsers are you seeing the problem on?
Chrome
What template are you using?
Pikachu
Anything else?
No response

I believe I found the issue with this one. It seems the code to actually change the image size is missing from that specific template. I'll try to fix it tomorrow if I can 😄


ophyd v1.4.0rc2

A mirror update of https://github.com/nsls-ii-forge/ophyd-feedstock/pull/6.

The test passed. Merging.


Applications with external TCP ingress can only be deployed to Container App Environments that have a custom VNET

Adding a playground to the latest dotnet/aspire repo.
Output from azd version
azd version 1.6.1 (commit eba2c978b5443fdb002c95add4011d9e63c2e76f)
Describe the bug
When executing azd up I see the following:
ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details:
ContainerAppTcpRequiresVnet: Applications with external TCP ingress can only be deployed to Container App Environments that have a custom VNET. Set ingress traffic to 'Limited to Container Apps Environment' if you want to deploy to a Container App Environment without a custom VNET. For more information on custom VNETs, please visit https://go.microsoft.com/fwlink/?linkid=2238174

TraceID: 4609a9421a8a0e834db222a6ce227d87

ERROR: error executing step command 'provision': deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details:
ContainerAppTcpRequiresVnet: Applications with external TCP ingress can only be deployed to Container App Environments that have a custom VNET. Set ingress traffic to 'Limited to Container Apps Environment' if you want to deploy to a Container App Environment without a custom VNET.  I've not added any policies or anything.

Oh wait, are you exposing the redis service to the internet?

Yes.
It's actually a NATS server which has it's own Auth, but I used Redis to show it wasn't a problem with the Aspire implementation of NATS.
I don't think there is a way of adding a vnet in Aspire, is there?

No there's no support for adding a vnet to the azure container app. I don't recommend exposing anything beyond your own containers from an ACA app. At least not at the moment.
If you want to mess around with this, you can always use azd infra synth and tweak the bicep files.

Does this mean I am premature in expecting to be able to define my infrastructure with Aspire, run it locally, and then have it deploy to Azure?

Oh for sure, Aspire isn't mature enough to model everything that you might need. We're still building out the infrastructure required to let people model more things, the compute environment isn't something we handle today, so you have to drop down to bicep and tweak to enable what you want.
Aside: I have no idea why you're exposing redis or nats ourside of our ACA cluster. Why is that?

I was testing the Aspire integration of NATS.
I only used Redis to demonstrate the error wasn't NATS specific.
However, it is logical to expose NATS as it is designed to be connected to by many IoT devices for message exchanges, and had it's own authentication/authorization built in for that purpose.

For Preview 4, we are hiding container.v0 resources to be configured as external services due to limitations in ACA supporting it
Track these issues for updates on how/when things will eventually land,

Aspire - https://github.com/dotnet/aspire/issues/2099
Azd - https://github.com/Azure/azure-dev/issues/3267

cc @ellismg  @vhvb1989 @davidfowl @mitchdenny


panic: runtime error: invalid memory address or nil pointer dereference

me@host:~$ '/home/me/Downloads/go/bin/go' get  github.com/stapelberg/airscan/cmd/airscan1

me@host:~$ '/home/me/Downloads/go/bin/go' install github.com/stapelberg/airscan/cmd/airscan1

me@host:~$ ./go/bin/airscan1
2020/08/16 14:35:07 finding device for 5s (use -timeout=0 for unlimited)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x7111fa]

goroutine 1 [running]:
github.com/stapelberg/airscan.NewClientForService(0x0, 0x0)
	/home/me/go/src/github.com/stapelberg/airscan/airscan.go:333 +0x3a
main.(*airscanner).scan1(0xc0000de580, 0x0, 0x0)
	/home/me/go/src/github.com/stapelberg/airscan/cmd/airscan1/airscan1.go:173 +0x52
main.airscan1(0x0, 0x0)
	/home/me/go/src/github.com/stapelberg/airscan/cmd/airscan1/airscan1.go:155 +0x6e9
main.main()
	/home/me/go/src/github.com/stapelberg/airscan/cmd/airscan1/airscan1.go:238 +0x25

This is my printer (I do not know whether it should be supported): HP LaserJet 200 colorMFP M276n. It is being advertised with Zeroconf as  _scanner._tcp.

Is there an easy way to find out, from looking at the output of avahi-browse -ar, whether a scanner should be supported?

Found it:
https://github.com/stapelberg/airscan/blob/15a04490cd177b5b9b76c884b04b0b56b9201bee/airscan.go#L36
Unfortunately my printer does not publish that service.


Cannot Install minecraft

const { install, getVersionList, Version} = require("@xmcl/installer/minecraft");

async function testinstall() {
    const minecraft="./minecraft";
    const list = await getVersionList();
    const aVersion = list[0];
    await install("client", aVersion, minecraft)
};
testinstall()

I just ran this code. Then an error occurred.
C:\Users\doohe\WebstormProjects\MRS-electronjs-launcher\node_modules\@xmcl\installer\minecraft.js:1
import { MinecraftFolder, Version as VersionJson } from "@xmcl/core";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Module._compile (internal/modules/cjs/loader.js:892:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (C:\Users\doohe\WebstormProjects\MRS-electronjs-launcher\src\renderer\components\js\mchandler.js:1:45)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)

What's wrong?

const { install, getVersionList, Version} = require("@xmcl/installer/cjs/minecraft");

It makes another err
C:\Users\doohe\WebstormProjects\MRS-electronjs-launcher\node_modules\@xmcl\unzip\index.js:1
import * as fs from "fs";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Module._compile (internal/modules/cjs/loader.js:892:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (C:\Users\doohe\WebstormProjects\MRS-electronjs-launcher\node_modules\@xmcl\core\cjs\launch.js:6:17)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)

You can edit the webpack configuration to remove the exclude path (default is node_modules) of babel-loader.
ko: https://github.com/SimulatedGREG/electron-vue/blob/master/docs/ko/webpack-configurations.md
en: https://github.com/SimulatedGREG/electron-vue/blob/master/docs/en/webpack-configurations.md
see also: https://github.com/SimulatedGREG/electron-vue/blob/45a3e224e7bb8fc71909021ccfdcfec0f461f634/template/.electron-vue/webpack.main.config.js#L24

Or you can wait a moment. We may change the default import from esm to cjs.

How can I change these lines to fix error?
        test: /\.js$/,
        use: 'babel-loader',
        exclude: /node_modules/
      },

Hi, you can reference my other project config which is also based on electron-vue:

Main config
Renderer config

And I use webpack 4.15.1

Are you using minecraft-launcher-core now? : https://github.com/Team-IF/MRS-electronjs-launcher/blob/master/package.json#L29
If not, please tell me the version of @xmcl module, which you are currently using.

minecraft-launcher-core is another project: https://github.com/Pierce01/MinecraftLauncher-core.

https://github.com/Team-IF/MRS-electronjs-launcher/blob/vue/package.json#L60

Hi, you can reference my other project config which is also based on electron-vue:

Main config
Renderer config

Notice that I use webpack 4.15.1, which is diff from the original electron-vue webpack version. It include the babel automatically, and you don't need to config much (that's why I update to webpack4)

I just updated from @xmcl/minecraft-launcher-core to @xmcl/core and all the v2 packages. I get the same error when I try requiring @xmcl/core. Does excluding node_modules from webpack mean that I will also have to include the node_modules package in my app dist? So far, I have just been bundling everything including the packages together.

nvm, I managed to fix it. I have, however, another error:
code:
import { getVersionList } from "@xmcl/installer"
console.log(getVersionList());

error:
TypeError: decompressResponse is not a function
    at<EMAIL_ADDRESS>(get-response.js:15)
    at ClientRequest.handleResponse (request-as-event-emitter.js:121)
    at Object.onceWrapper (events.js:300)
    at ClientRequest.emit (events.js:215)
    at ClientRequest.origin.emit (index.js:39)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:583)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:115)
    at TLSSocket.socketOnData (_http_client.js:456)
    at TLSSocket.emit (events.js:210)
    at addChunk (_stream_readable.js:308)


[Bug]: client invalid signature when OIDC server is restarted

Preflight Checklist

[X] I could not find a solution in the documentation, the existing issues or discussions
[ ] I have joined the ZITADEL chat

Version
1.13.2
Describe the problem caused by this bug
Attempting to validate the abotained authentication token against the OIDC server after it was restarted, resulted in the following error:
failed to exchange token: invalid signature (signature verification failed: square/go-jose: error in cryptographic primitive)
The issue looks to be in the client\rp\jwks.go file, on VerifySignature method where, if the verifySignatureCached return the "invalid signature (signature verification failed: square/go-jose: error in cryptographic primitive)" error and due to this returned error the verifySignatureRemote which refresh the signature with the server is not called
Now:
func (r *remoteKeySet) VerifySignature(ctx context.Context, jws *jose.JSONWebSignature) ([]byte, error) { 	keyID, alg := oidc.GetKeyIDAndAlg(jws) 	if alg == "" { 		alg = r.defaultAlg 	} 	payload, err := r.verifySignatureCached(jws, keyID, alg) 	if payload != nil { 		return payload, nil 	} 	if err != nil { 		return nil, err 	} 	return r.verifySignatureRemote(ctx, jws, keyID, alg) }
To reproduce

From your client perform the authentication against the server.
When the token has been obtained from the server (and stored in a cookie) restart the oidc server
When the server has been restarted try to validate the token against the server. Obviously it will fail asking again for the authentication.
When the authentication is performed the error is shown during the callback check of the received token

Screenshots
No response
Expected behavior

From your client perform the authentication against the server.
When the token has been obtained from the server (and stored in a cookie) restart the oidc server
When the server has been restarted try to validate the token against the server. Obviously it will fail asking again for the authentication.
The authentication is performed correctly

Additional Context
No response

Thanks for reporting an issue. Before we can take your report into account:

Please make sure you use proper markdown formatting for code blocks.
If you meant to refer to code inside the repository, use permanent links
Please use a recent version of OIDC. 1.13.2 is no longer supported. v3 is supported by zitadel. v2 is based on community support only.

Regarding the contents:

What do you mean by "server" are you using an implementation of  our op.Provider with storage, are you using zitadel, another product? How would I be able to reproduce those steps?


What is the build process?

Is it simply compiling blueframe.scss with any tools?

It's just SCSS, so you can use any SCSS preprocessor for whatever framework you're using.

Alternatively, if you are just using it for static HTML sites, I personally like CodeKit for mac which has a local SCSS compiler.


Tested few resources with API version 1000 and 1200

Description
Updated below resources after testing the current features with API version 1000 and 1200

Enclosure
Enclosure group
Logical enclosure
Logical interconnect
Logical interconnect group
Server hardware
Server profile
Server profile template

Check List

[x] New functionality includes testing.

[x] All tests pass for Python 2.7+ & 3.4+($ tox).

[ ] New functionality has been documented in the README if applicable.

[x] New functionality has been thoroughly documented in the examples (please include helpful comments).
[x] New endpoints supported are updated in the endpoints-support.md file.

[x] Changes are documented in the CHANGELOG.

LGTM 👍 just 2 endpoints from LI needs to be marked in endpoint-support.md

Thanks for pointing this out, it will be handled in another PR - 14 with more documentation changes.


Textarea uses the type HTMLInputElement rather than HTMLTextAreaElement

I've created a codesandbox here to better show this issue: https://codesandbox.io/s/xenodochial-carson-4njwh?file=/src/App.tsx (Note the visual aspect isn't working for some reason but the actual error is when you hover over the code to see the TS error).
Essentially because the Textarea component uses HTMLInputElement it means that it is not compatible with any types that hint at HTMLTextAreaElement.

@nlopin should this be HTMLTextAreaElement?


Move PRIu64 to e_os.h

Backport of #3044 for 1.1.0

fixed and updated commit pushed.  (Doh!   OSSLzu was the whole reason why this separate PR was needed for 1.1.0)

pushed thanks.