FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pywu.cache.json'

when launching pywu under Windows.

I didn't write this with Windows in mind but it may work with a few tweaks. Try changing temp_file at line 43 to "C:<whatever>"


Broken for Heroku pipelines?

Some Heroku apps employ pipelines to promote source versions between staging and production environments. Releasecop fails to check out and compare those remote versions:
# manifest.json
{
  "projects": {
    "metaphysics": [
      {"name": "master", "git": "git@github.com:artsy/metaphysics.git"},
      {"name": "staging", "git": "git@heroku.com:artsy-metaphysics-staging.git"},
      {"name": "production", "git": "git@heroku.com:artsy-metaphysics-production.git"}
    ],
    "prediction": [
      {"name": "master", "git": "git@github.com:artsy/prediction.git"},
      {"name": "staging", "git": "git@heroku.com:prediction-staging.git"},
      {"name": "production", "git": "git@heroku.com:prediction-production.git"}
    ]
  }
}

# output
$ releasecop check --all
metaphysics...
  staging is up-to-date with master
fatal: ambiguous argument 'production/master..staging/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
  production is up-to-date with staging
positron...
  staging is up-to-date with master
  production is up-to-date with staging
prediction...
  staging is up-to-date with master
  production is behind staging by:
    ...
    ...lots and lots of old, already-released commits...
    ...
3 project(s) checked. 1 environment(s) out-of-date.

The heroku releases command shows the git SHA of any deploys. We could git-diff the SHAs we see on staging and production apps as an alternative.


better report generation

what format makes sense?

create an "attempt" object for each attempt
this comes from the probe or harness, and it or its contents are passed to the detector
once we have an object for this we can log prompt creation, model response, and eval all over the same item

ok, we do that now. but what about the reporting...?
maybe take a look at how nmap reports & draw inspiration from that?

with the new jsonl d72a2d7857797b4831dc473d76c2288987948bcb and new cli verbosity d9ce697109a6b1ef84f02e34da8b9bb47e4e7f54 this is better


Support skos:related

See https://github.com/skohub-io/skohub-vocabs/issues/103#issuecomment-720641027

I took a look at it. I can see it in the JSON and already in the HTML which is good. However, I can currently only see it at the property where the triple is added. As skos:related is an owl:SymmetricProperty (along with skos:relatedMatch, skos:closeMatch and skos:exactMatch) I think it should be shown (and added to the JSON) for both concepts that are linked by it. I hope this can easily be added based on GraphQL...

I just now noticed, in addition to the missing support of bidirectionality, that the "Related" field is shown for every concept, even if there isn't a skos:related statement, for example:

This should be handled like skos:scopeNote or skos:defintiion where the heading is only shown when a respective statement actually exists for a given concept.

I just now noticed, in addition to the missing support of bidirectionality, that the "Related" field is shown for every concept, even if there isn't a skos:related statement, for example:

This should be handled like skos:scopeNote or skos:defintiion where the heading is only shown when a respective statement actually exists for a given concept.

Unintentionall merged into master, still to be reviewed.

Unintentionall merged into master, still to be reviewed.

Looks fine now on test. +1

Looks fine now on test. +1

Deployed to production. Closing.

Deployed to production. Closing.


Update edge case tests and fix search bug

/claim #754
/closes #754
@louis030195 Added a good bit more of tests to be sure.

@Neptune650 hmm
i think i did a mistake
it's actually working as expected on main
it's just unintuitive since the beginning, we should associate app name and window name to the audio data through time i think so that users can search audio data with app/window filter (currently it would filter out audio and only select OCR or UI modality)
do you have any suggestion?

@Neptune650 hmm
i think i did a mistake
it's actually working as expected on main
it's just unintuitive since the beginning, we should associate app name and window name to the audio data through time i think so that users can search audio data with app/window filter (currently it would filter out audio and only select OCR or UI modality)
do you have any suggestion?

@louis030195 Well this does fix one issue we had that would only use OCR if app/window_name was specified, while it could also be UI, so essentially this feature was missing, and also adds tests.

@louis030195 Also, the main behavior changed is regarding UI search with app_name, since content_type audio was already being ignored with app_name

@Neptune650 hmm
i think i did a mistake
it's actually working as expected on main

@louis030195 If we have a case like
curl... content_type=UI&app_name=cursor

It'll actually ignore the content type right now.
This fixes that issue.

/approve
i still think in the future we should somehow associate in the db window name and app name to the audio data and then use in search api


Support for Duke WeightedLevenshtein comparator

A simple conditional when creating the comparator. If it sees the WeightedLevenshtein comparator is requested, creates it as well as an estimator and passes the parameters to the estimator instead of the comparator.

Hi,
Thanks for PR. Having a look at it ATM. :+1:

Wondering if we should not have something a bit more generic. Will work on this. Idea : add detection and instantiation of custom estimator in a generic way (just like comparator & cleaners). What do you think ? (cf. https://github.com/larsga/Duke/blob/master/duke-core/src/test/resources/config-custom-estimator.xml)

Hi @YannBrrd ,
any update on this PR?

Thanks for this guys!!


Repartition mapper

@jgraettinger
I thought I had PRed the shard_split command already, but I guess I only PRed the changes to the shard_compose. This will need some reorganization when gazette 2 fully hits, but here's the shard_split command I used for repartitioning distributions-hashes. I also added a short doc describing how the process of repartitioning works. I'm not sure where the best place is to put it, but I'd imagine there will be other "special case" operations that we want to be able to give some guidance for.

This change is

Closing this in favor of a different approach built on Gazette v2.


Amending source code does not show up in referencing projects

If you have two F# projects in VS, where project B references project A, and amend the code in the project A, it won't automatically show up in project B. You have to manually re-build project A before project B "sees" e.g. the amended function signatures.
This is not the same behaviour of e.g. C# projects where it updates without a rebuild occurring.

This is one of the issues that could be addressed by bringing some of the FSharp.Compiler.Service functionality into the Visual F# Tools.  The FCS incremental checker keeps results from a solution-wide graph of projects, rather than one-project-at-a-time.

This falls into the "feature request" bucket, it's not intended to work at this point. Agree it would be very nice to have.

This has been implemented when we brought the VFPT work over


Cant Compile w VS2019: E1696: Cant open source file "xxx"

Hi,
I get multiple comiling errors for files like:
intrin.h
stdarg.h
I have previously seen this error in other projects when there is a code error.
Thanks in advance
/Stephen

Did you install the SDK and the VS extension?

Hi, Thanks for your quick response.
Could you be more specific? is it SDK and VS extension linked to MobiFlight or MSFS and SimConnect?
I am able to compile another MSFS Wasm project without issue.
/Stephen

The project has been forked a couple of times by other users just recently without problems.
Closing due to inactivity.


Cannot resize Imposter Tab

Godot 4.3-stable
As mentioned in #6 the tab cannot be resized properly, it takes up too much space and is hiding the right sidebar completely.
As if it has minimum width/height set somewhere, or hardcoded canvas nodes dimensions instead of fill to container or something.

Yeah, I set the custom_minimum_size property in the scene to make sure all the content can be shown. For example: addons/Imposter/imposter.tscn.

On my notebook it's also happening, i have to use this addon and start pressing tab until i leave this screen, since even the lower options bar from godot don't appear to me, i tried lowering the size of the container but it don't solve this problem to me.
I really liked the function, but the interface is not working well.

When building the plugin, to make sure the GUI looks good, some nodes have a custom_minimum_size set. But this can make the size of the nodes fixed, which isn't really a coding issue. You can find and tweak the custom_minimum_size property of the nodes to fit your screen. Here are the files you'll need to check out:
addons/Imposter/imposter.gd
addons/Imposter/imposter.tscn
addons/Imposter/imposter/scenes/batch_bake.tscn
addons/Imposter/imposter/scenes/dilatate.tscn
addons/Imposter/imposter/scenes/single_bake.tscn

I'd consider a ScrollContainer in-between.

@zhangjt93 Apologies if I'm misunderstanding, but from your 2 replies it seems to me that you're expecting every user to "just tweak 5 files" based on their arbitrary screen/window size every time they import the addon or the sizes change.
I'm not saying you should necessarily be the one fixing it but to acknowledge that the issue should be resolved by this repository and that the UI should be responsive and work out of the box, otherwise this addon is unusable.

Yes, it's kind of unusable if you don't tweak each scene.
Yesterday i did it, made each widget expand to fill the viewport size. I can make a pull request for you to test it and check it out.
Uploading ConceptScene.tscn - Dust Raisers - Godot Engine 2024-10-08 09-30-02.mp4…

Here's the pull request: https://github.com/zhangjt93/godot-imposter/pull/9

@zhangjt93 Apologies if I'm misunderstanding, but from your 2 replies it seems to me that you're expecting every user to "just tweak 5 files" based on their arbitrary screen/window size every time they import the addon or the sizes change.
I'm not saying you should necessarily be the one fixing it but to acknowledge that the issue should be resolved by this repository and that the UI should be responsive and work out of the box, otherwise this addon is unusable.

Yeah, as a plugin, I totally see where you're coming from. Unfortunately, my day job has been eating up a ton of my time lately, so I haven't had much time to tackle these issue. Luckily, @lucasthomaz97  put in some hard work, and it looks like the issue been sorted out. Big thanks to @lucasthomaz97  for stepping up! I'll do my best to find some time soon to make tests and merge in.


Installing US Core IG overrides built-in SearchParameter linked to multiple resources

Describe the bug
HAPI FHIR automatically creates search parameters defined in the core FHIR R4 specification, including search parameters for {{Practitioner.given}} and {{Practitioner.family}}. It appears however that when the US Core IG package is installed, core search parameters are overwritten resulting in the effective removal of those for {{Practitioner.given}} and {{Practitioner.family}}.
To Reproduce
Steps to reproduce the behaviour:

Use the following search requests to verify the existence of search parameters on "Practitioner.given" and "Practitioner.family": GET /SearchParameter?base=Practitioner&code=given GET /SearchParameter?base=Practitioner&code=family
POST a new Practitioner resource with family name (e.g. Smith) and given name (e.g. John).
Confirm that you are able to search for the new Practitioner by both given and family names: GET /Practitioner?given=John GET /Practitioner?family=Smith
Install Load the US Core 6.1.0 IG package using PackageInstallerSvcImpl#install(PackageInstallationSpec theInstallationSpec)
Try searching for the Practitioner by given and family names (repeat step #1).

Actual Behaviour
Get 400 errors saying "Unknown search parameter". Searches for the previously existing search parameters on "Practitioner.given" and "Practitioner.family" come back with no results.
Expected behavior
Should be able to still search by given and family name.
Environment (please complete the following information):

HAPI FHIR Version: 6.8.2
OS: MacOS
Browser: Chrome

Seems that the SearchParameters that are based of multiple resources get overridden and become based on a single resource. For example HAPI FHIR R4 individual-given which is on Patient and Practitioner gets overridden to Patient only as per US Core us-core-patient-given. There lots of other cases with even more base resources such clinical-identifer, clinical-code. So the SearchParameter no longer exists for the other resource types.


auro-alerts: properties need default values

Describe the bug
The following properties don't have default values:

error
success
warning
information

This prevents Svelte apps from using the boolean attribute shorthand, e.g. <auro-alerts error>.
Expected behavior
The above properties default to false.

This issue is negated. Boolean values will be replaced with enumerated attributes https://github.com/AlaskaAirlines/auro-alerts/issues/17 per https://auro.alaskaair.com/getting-started/developers/generator/define-api


Title: Implement Favicon for Enhanced Branding

Is this a unique feature?

[X] I have checked "open" AND "closed" issues and this is not a duplicate

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

Currently, our project does not have a favicon implemented. This absence affects user experience, as a favicon is essential for brand recognition and usability in browser tabs. I'm always frustrated when I have multiple tabs open and can't easily identify our project due to the lack of a distinctive icon.

Proposed Solution
I propose implementing a favicon for our project to enhance brand visibility and user experience. As I've created many favicons for various brands, I can design one for our project as well.
Implementation Steps:
Favicon Creation:

I can create a favicon using a design tool like Figma, ensuring it meets standard dimensions (16x16 or 32x32 pixels). If you have a logo you'd like to use, please share it with me.

Integration:

I will add the favicon to the project directory and update the HTML section with the appropriate tag.

Testing:

I’ll test the favicon across different browsers to ensure proper visibility and compatibility.
Implementing a favicon will improve our project's branding and recognition.

Screenshots
No response
Do you want to work on this issue?
Yes
If "yes" to above, please explain how you would technically implement this

I will create a favicon image using a design tool like Canva or Figma, ensuring it adheres to the standard dimensions.

If you have a logo that you’d like to use as the favicon, please pass it to me; otherwise, I can create a favicon based on our branding.

After that, I'll follow the steps outlined in the proposed solution to integrate the favicon into our project. I will also test the favicon in various browsers to ensure compatibility and visibility.

Please assign me this issue so I can start work as early as possible.
Ping @sristy17

@mahenoorsalat Go for it!

I have question did you have logo for this brand ? if you're okay then I will create one

@sristy17 I have question did you have logo for this brand ? if you're okay then I will create one

As of now we donr have any, You can create one.

okay @sristy17


Input mask on form inputs

This function solves the problem (这个功能解决的问题)
Avoids users to enter wrong data from the get go
Expected API (期望的 API)
This will allow us to mask inputs to specific format e.g (##)-(####)
Means a user will enter the data in that format.
Find below pure JavaScript example
https://imask.js.org/

I've done some experiments and find it's not easy to integrate it whether inside or outside the library.
However this is a somehow useful feature. I'll try to make it work later.

Might not be the optimal solution, but vue-the-mask offers a directive, that can easily be ported to Vue3 and is indeed working (at least for my purposes) with the existing NInput element. With a wrapper component and some tweaking, it's also possible to change between masked/unmasked value (while the displayed value is masked) and also get selection persistence.
./directives/mask.js
function event(name, detail) {
  const evt = new Event(name, { bubbles: true, cancelable: true })
  return evt
}

function dynamicMask(maskit, masks, tokens) {
  masks = masks.sort((a, b) => a.length - b.length)
  return function (value, mask, masked = true) {
    let i = 0
    while (i < masks.length) {
      const currentMask = masks[i]
      i++
      const nextMask = masks[i]
      if (!(nextMask && maskit(value, nextMask, true, tokens).length > currentMask.length)) {
        return maskit(value, currentMask, masked, tokens)
      }
    }
    return '' // empty masks
  }
}

function maskit(value, mask, masked = true, tokens) {
  value = value || ''
  mask = mask || ''
  let iMask = 0
  let iValue = 0
  let output = ''
  while (iMask < mask.length && iValue < value.length) {
    let cMask = mask[iMask]
    const masker = tokens[cMask]
    const cValue = value[iValue]
    if (masker && !masker.escape) {
      if (masker.pattern.test(cValue)) {
        output += masker.transform ? masker.transform(cValue) : cValue
        iMask++
      }
      iValue++
    } else {
      if (masker && masker.escape) {
        iMask++ // take the next mask char and treat it as char
        cMask = mask[iMask]
      }
      if (masked) output += cMask
      if (cValue === cMask) iValue++ // user typed the same char
      iMask++
    }
  }

  // fix mask that ends with a char: (#)
  let restOutput = ''
  while (iMask < mask.length && masked) {
    const cMask = mask[iMask]
    if (tokens[cMask]) {
      restOutput = ''
      break
    }
    restOutput += cMask
    iMask++
  }

  return output + restOutput
}

export function masker(value, mask, masked = true, tokens) {
  return Array.isArray(mask)
    ? dynamicMask(maskit, mask, tokens)(value, mask, masked, tokens)
    : maskit(value, mask, masked, tokens)
}

export const tokens = {
  '#': { pattern: /\d/ },
  X: { pattern: /[0-9a-zA-Z]/ },
  S: { pattern: /[a-zA-Z]/ },
  A: { pattern: /[a-zA-Z]/, transform: v => v.toLocaleUpperCase() },
  H: { pattern: /[0-9a-fA-F]/, transform: v => v.toLocaleUpperCase() },
  a: { pattern: /[a-zA-Z]/, transform: v => v.toLocaleLowerCase() },
  '!': { escape: true }
}

export default function (el, binding, vnode) {
  let config = binding.value
  if (Array.isArray(config) || typeof config === 'string') {
    config = {
      mask: config,
      tokens: tokens
    }
  } else return

  if (el.tagName.toLocaleUpperCase() !== 'INPUT') {
    const els = el.getElementsByTagName('input')
    if (els.length !== 1) {
      throw new Error("v-mask directive requires 1 input, found " + els.length)
    } else {
      el = els[0]
    }
  }

  let position = el.selectionEnd
  const digit = el.value[position - 1]
  const newDisplay = masker(el.value, config.mask, true, config.tokens)
  if (newDisplay !== el.value) {
    el.value = newDisplay
    el.dispatchEvent(event('input'))
    while (position < el.value.length && el.value.charAt(position - 1) !== digit) {
      position++
    }
    if (el === document.activeElement) {
      el.setSelectionRange(position, position)
      setTimeout(function () {
        el.setSelectionRange(position, position)
      }, 0)
    }
  }
}

./main.js
import mask from './directives/mask'
app.directive('mask', mask)

./components/MaskedInput.vue
<template>
  <n-input :value="display" v-mask="mask" @input="refresh" />
</template>

<script setup>
import { masker, tokens } from "@/directives/mask";

const emit = defineEmits(["update:value"]);

const props = defineProps({
  value: [String, Number],
  mask: {
    type: [String, Array],
    required: true,
  },
  masked: {
    type: Boolean,
    default: false,
  },
});
const { mask, masked, value } = toRefs(props);

const display = ref(value.value);
const lastValue = ref(null);

watch(
  () => value.value,
  (newValue) => {
    if (newValue !== lastValue.value) {
      display.value = newValue;
    }
  }
);

watch(
  () => masked.value,
  () => refresh(display.value)
);

const refresh = (value) => {
  display.value = value;
  const val = masker(value, mask.value, masked.value, tokens);
  if (val !== lastValue.value) {
    lastValue.value = val;
    emit("update:value", val);
  }
};
</script>

Use somewhere
<masked-input v-model:value="value" :mask="'##/##/####'" />

Hey @B3nsten did you get it to work somehow? I'm in a project that demands masks, including date and currency.

Hey @B3nsten did you get it to work somehow? I'm in a project that demands masks, including date and currency.

The posted code was working. What's erroring for you?

I'll give it a try, now! Have to adapt a bit because Im working with Nuxt 3!

It worked ❤! Now I'm missing currency mask. Any chance you have it already?

Well, depending on your needs you might get away with something like:
<masked-input v-model:value="value" :mask="['#.##', '##.##', '###.##']" />

You'd have to change a lot of things if you need negative numbers, want to handle the money prefix inside the input (I'd use a naive input group, tho), etc. This approach is not the best for handling variable input lengths and in this state is not suitable to handle anything but strings.

Thanks a bunch! I've been working on this feature for a week! You saved me!

Hello. There is an easier way, it is not necessary to create a new MaskedInput component, you can use the package https://github.com/beholdr/maska , and to set the mask, use as
<n-input placeholder="Phone number *" v-model:value="form.phone" :input-props="{ vMaska: true, 'data-mask': '+# ### ###-##-##' }"/>

@rom-rzic does it work? Tried but nothing happened

Hello. There is an easier way, it is not necessary to create a new MaskedInput component, you can use the package https://github.com/beholdr/maska , and to set the mask, use as <n-input placeholder="Phone number *" v-model:value="form.phone" :input-props="{ vMaska: true, 'data-mask': '+# ### ###-##-##' }"/>

Hello! Could you show how register vMaska in component? I have tried your example but in doesn't work. I register maska in script tag import { vMaska } from "maska"

Hello. There is an easier way, it is not necessary to create a new MaskedInput component, you can use the package https://github.com/beholdr/maska , and to set the mask, use as <n-input placeholder="Phone number *" v-model:value="form.phone" :input-props="{ vMaska: true, 'data-mask': '+# ### ###-##-##' }"/>

Hello! Could you show how register vMaska in component? I have tried your example but in doesn't work. I register maska in script tag import { vMaska } from "maska"

I found the solution!
:input-props="{
   vMaska: true,
  'data-maska': '+# ### ### ## ##',
}"

The reason why @rom-rzic example didn't work because 'data-mask'. You have to use 'data-maska' !
Welcome 🎉

@rom-rzic does it work? Tried but nothing happened

Solution https://github.com/tusen-ai/naive-ui/issues/1385#issuecomment-1728124131

someone got it working for n-input pair?


Enhanced offset calculations

One of the difficulties in dealing with the buffered commands API is working out offsets.  This is especially the case if we are dealing with the "adjust" command to edit parameters within another command stream.
What follows is some very rough ideas.
We support 24-bit offsets already.  In reality we don't need all 24 bits.  We could, potentially, use these longer offsets for some more sophisticated behaviour.
As noted in #51 it may be useful to use the separate "command blocks" sent via the "write to buffer" command as index references within a command buffer.
If we have a command that says it has a 24-bit offset, then in reality we can never use the top bit of that offset as 24-bits is a 16mb space and we have only 8mb of RAM on the VDP, and currently we cannot use the two 2 bits since until we find a practical way to use himem the upper 4mb is inaccessible.  (Practically speaking we probably could use a third bit too.)
We can therefore potentially use those bits to indicate a different type of buffer addressing.
It would be good to be able to indicate which "command block" plus offset to use.  There is no limitation placed on the number of command blocks that can be present in a buffer.  It is probably simplest to use the top bit(s) to indicate we're using "command block + offset".  We could extend our overall "offset" value sent as part of the command to be a 32-bit or even a 40-bit value, with the next byte (or 16-bit word) after the main/primary offset value to be the command block number.
Setting the top bit of the 24-bit offset alone could indicate an 8-bit command block number, set the top 2 bits to indicate a 16-bit command block number.
Having a command with an operation that is indicating "24-bit offset" becomes instead "extended offsets".

this is now implemented in #61 - "24-bit offsets" becomes "advanced offsets", and if the top bit is set then that indicates that a block number will follow the offset amount.  (it didn't feel worth using two bits, that would have just complicated things)
this is supported in all commands that long offsets are used


Placeholder text isn't placed properly when adding any list

Hi Yunseok, this is now fixed. Thanks for helping to improve this package :)

Hi Yunseok, this is now fixed. Thanks for helping to improve this package :)


Support of JupyterLite?

I just tried using ipyreact in jupyterlite:
https://jupyterlite.readthedocs.io/en/latest/_static/lab/
installation, import and definitions work fine, but displaying a widget causes error messages.
Just out of curiosity:
Would it be possible to make ipyreact widgets work in JupyterLite?

whole error message:
[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'ReactModel' from module '@widgetti/jupyter-react'
Error: No version of module @widgetti/jupyter-react is registered
    at f.loadClass (https://jupyterlite.readthedocs.io/en/latest/_static/extensions/@jupyter-widgets/jupyterlab-manager/static/134.40eaa5b8e976096d50b2.js?v=40eaa5b8e976096d50b2:1:74856)
    at f.loadModelClass (https://jupyterlite.readthedocs.io/en/latest/_static/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:10729)
    at f._make_model (https://jupyterlite.readthedocs.io/en/latest/_static/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:7517)
    at f.new_model (https://jupyterlite.readthedocs.io/en/latest/_static/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:5137)
    at f.handle_comm_open (https://jupyterlite.readthedocs.io/en/latest/_static/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:3894)
    at _handleCommOpen (https://jupyterlite.readthedocs.io/en/latest/_static/extensions/@jupyter-widgets/jupyterlab-manager/static/134.40eaa5b8e976096d50b2.js?v=40eaa5b8e976096d50b2:1:73393)
    at v._handleCommOpen (https://jupyterlite.readthedocs.io/en/latest/_static/build/6591.94ed352.js:1:28742)
    at async v._handleMessage (https://jupyterlite.readthedocs.io/en/latest/_static/build/6591.94ed352.js:1:30636)

see https://jupyterlite.readthedocs.io/en/latest/howto/configure/simple_extensions.html

I just created
https://github.com/Octoframes/ipyreact-jupyterlite
with the jupyterlite page here:
https://octoframes.github.io/ipyreact-jupyterlite/
My first attempt was to to put  ipyreact into .jupyterlite/requirements.txt,
https://github.com/Octoframes/ipyreact-jupyterlite/blob/main/.jupyterlite/requirements.txt#L5
and then installing it via pip on github actions
https://github.com/Octoframes/ipyreact-jupyterlite/blob/61ee1a0ded0637054df72a8c68e09e8e353f3393/.github/workflows/JupyterLite.yml#L21
that was not causing any errors in the actions, but running a cell in JupyterLite now tells me:
ModuleNotFoundError: No module named 'ipyreact'

see https://jupyterlite.readthedocs.io/en/latest/howto/configure/simple_extensions.html

Ok, I've just read this till the end and found the section:

and therefore added
c```
Indeed, I don't get any error anymore, but instead the message `Loading widget...` , that never transforms into a widget.
<img width="622" alt="image" src="https://user-images.githubusercontent.com/44469195/234584331-238540f0-2b9b-47a7-a8a3-99df2d03083e.png">

Also, when I run the cell, I get the following log error:
%%react

import * as React from "react";

export default function MyButton() {
    return ( < button > X < /button>);
    }

in your requirements you have ipywidgets>=7.7,<8 but you will end in with the ipywidgets 8 package. This is triggering the error: https://jupyterlite.readthedocs.io/en/latest/howto/configure/simple_extensions.html#avoid-the-drift-of-versions-between-the-frontend-extension-and-the-python-package
If you unpin it, you will get 8, which should be fine.

Ohhh, that's perfect, thank you so much!
your answers are way better than from any GPT model :)
It works now fine! 🎉 🎉 🎉

Should we add a JupyterLite build for this

Awesome 😍
We have it for https://github.com/widgetti/reacton, but it's slightly different since that uses conda-forge, which I don't feel like adding right now. But that would be great to have!

Should we add a JupyterLite build for this main repo as well?

Sounds good :)


[Feature Request]: extend functionality when working with REST APIs - i.e. implement uploading binary files

What would you like to happen?
The tool Postman or Browser-Addon RESTer and others offer more convenience than HOP "REST Client".
i.e. with Postman I can create a CURL as follows that will upload some files in binary format to some REST-Endpoint
`curl --location 'https://someTenantName.d-velop.cloud/dms/r/eccchangedRepoId68113644/blob/chunk/' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Bearer Yo34ALJBl___Snip____JaHxRBCsL87B59TKF_8HNCfQ' \
--data<EMAIL_ADDRESS>
I would be nice to get such capabilities directly in HOP too.
Issue Priority
Priority: 3
Issue Component
Component: Transforms

.take-issue


Object list literal in a function

[ 1 to 5]
|> map ->
  * x: it
    y: it * 2
  * x: it
    y: it * it

Returns:
[{"x":1,"y":1},{"x":2,"y":4},{"x":3,"y":9}]

Expected:
[[{"x":1,"y":2},{"x":1,"y":1}],[{"x":2,"y":4},{"x":2,"y":4}],[{"x":3,"y":6},{"x":3,"y":9}]]

Ugly workaround:
[ 1 to 3]
|> map ->
    res =
      * x: it
        y: it * 2
      * x: it
        y: it * it

Am I misunderstanding something about the syntax for object list literals? Is it only supported in assignments?
Thanks.

I agree that in both cases your code should compile to an (array of dicts) literal.
Minimal breaking example:
a =
  * A: 1
    B: 2
  * C: 3
    D: 4
f = ->
  * A: 1
    B: 2
  * C: 3
    D: 4

Seems that lexer returns the same for both. Looking into AST.

Starting to believe it's fundamental to how current parser is structured.
Meanwhile, a marginally better fix for your code:
[ 1 to 5]
|> map -> return
  * x: it
    y: it * 2
  * x: it
    y: it * it

Yeah, it indeed is how the lexer works... A bit subpar but hey...

I realized that function body is an implicit list, so implicit return of last item of the list is actually the correct semantics... Can't really blame lexer for this :wink:

@summivox Thanks for the return hint. Does read better than having an unused assignment as in the original workaround I had used.

Another way:
f = -> []=
  * A: 1
    B: 2
  * C: 3
    D: 4

That's what * compiles to

For the record: []= is just a destructuring assignment without stating a variable, i.e. "anonymous assignment". Do it's an equivalent to the workaround with a temporary variable.

I guess this is the same issue I've just come across:

LiveScript
JavaScript

table1 =
  * id: 1
    name: 'george'
  * id: 2
    name: 'mike'
  * id: 3
    name: 'donald'
console.log do

id: 1
name: 'george'
id: 2
name: 'mike'
id: 3
name: 'donald'

// Generated by LiveScript 1.3.1
(function(){
  var table1;
  table1 = [
    {
      id: 1
    }, {
      id: 2
    }, {
      id: 3
    }
  ];
  console.log({
    id: 1
  }, {
    id: 2
  }, {
    id: 3
  });
  console.log({
    id: 1,
    name: 'george'
  }, {
    id: 2,
    name: 'mike'
  }, {
    id: 3,
    name: 'donald'
  });
}).call(this);

Function calls using the do keyword are not correctly converting arrays.

@johngeorgewright Nothing incorrect about that! do (in this usage) means ‘treat the following as individual arguments’; * means ‘here begins a new structure’. * does not mean ‘I am an item in an array’ (although lots of people seem to assume that is what it means, and perhaps it should change).

Ah. Apologies, so I need to choose 1 of the following:
table1 =
  * id: 1
    name: 'george'
  * id: 2
    name: 'mike'
  * id: 3
    name: 'donald'

console.log table

... or ...
console.log [
  {
    id: 1
    name: 'mike'
  },
  {
    id: 2
    name: 'mike'
  },
  {
    id: 3
    name: 'donald'
  }
]

Or
console.log [
  * id: 1
    name: 'george'
  * id: 2
    name: 'mike'
  * id: 3
    name: 'donald'
]

Or
console.log []=
  * id: 1
    name: 'george'
  * id: 2
    name: 'mike'
  * id: 3
    name: 'donald'

@rhendric  I believe that this behavior (func do then (implicit-list)) should not change. It has become a "feature". We need better documentation that explains the semantics of * (hopefully without touching too much compiler internals).


2.i Allow to trace OPCODEs and arguments via instrumentation

@pik694 I noticed that for evmone and openethereum there are already some provisions to handle that, just need to be expanded and/or tidied


Group export fails for large groups in Cosmos DB

Describe the bug
Cosmos DB has a maximum character limit for queries. With the way group export is implemented currently it exceeds this limit if a group has more than ~4940 members. This triggers the export job to fail and an unknown error to be recorded as the reason.
FHIR Version?
Stu3/R4/R5
Data provider?
CosmosDB
To Reproduce
Steps to reproduce the behavior:

Create a group with 5000 members
Run a group export on the group

Expected behavior
The export completes successfully.
Actual behavior
The export fails and an unactionable error message is returned.

Cosmos DB doc: https://docs.microsoft.com/en-us/azure/cosmos-db/concepts-limits#sql-query-limits

AB#84438


WIP: implement accounts service

Some or all the scaffolding may be replaced depending on connector implementation.

replaced by https://github.com/coilhq/rafiki/pull/18


Custom constraint embedding existing constraints

Hi,
For a very specific case for which I need to validate a field only if an associated checkbox is checked, I've created a custom constraint embedding existing constraints and using my whole object as $value. I don't know if it's the way it should be but it's working as expected.
Here the code of my validator.
public function validate($value, Constraint $constraint)
    {
        if (!$constraint instanceof ValidScheduledEndDate) {
            throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\ValidScheduledEndDate');
        }

        if ($value->getIsEndDateScheduled()) {
            $validatorBuilder = new ValidatorBuilder();
            $validator = $validatorBuilder->getValidator();

            $constraintNotBlank = new NotBlank();
            $constraintNotBlank->message = $constraint->messageNotBlank;

            $constraintDate = new Date();
            $constraintDate->message = $constraint->messageDate;

            $constraintBeforeNow = new BeforeNow();
            $constraintBeforeNow->message = $constraint->messageBeforeNow;

            $violations = $validator
                ->inContext($this->context)
                ->atPath('scheduledEndDate')
                ->validate($value->getScheduledEndDate(), array(
                    $constraintNotBlank,
                    $constraintDate,
                    $constraintBeforeNow
                ))
            ;
        }
    }

Do you know if there is a way to create a custom rule mapper for this specific case ?
Thanks.

Hi,
So there is a way to do this but it's not very easy at the moment.
To start of you will need to implement a custom RuleCondition (similar to the FieldDependency) to check that a value is set on a related field (I'm assuming that getIsEndDateScheduled is dynamic in the form).
After that a custom FormRuleProcessor is needed that will check for the ValidScheduledEndDate constraint and that will add the rules form the related fields.
You probably also what to implement a ConstraintMapper for the BeforeNow constraint.
I hope this helps. I'm willing to add a FieldValueDependency condition to the lib when I have time to make it easier.

Thanks. I'll try it when I'll have the time.
I'll dig into your code to understand the behaviour of the class you
recommend me to implement.
2015-08-10 2:49 GMT+02:00 Warnar Boekkooi<EMAIL_ADDRESS>
Hi,
So there is a way to do this but it's not very easy at the moment.
To start of you will need to implement a custom RuleCondition
https://github.com/boekkooi/JqueryValidationBundle/blob/master/src/Form/RuleCondition.php
(similar to the FieldDependency
https://github.com/boekkooi/JqueryValidationBundle/blob/master/src/Form/Rule/Condition/FieldDependency.php)
to check that a value is set on a related field (I'm assuming that
getIsEndDateScheduled is dynamic in the form).
After that a custom FormRuleProcessor
https://github.com/boekkooi/JqueryValidationBundle/blob/master/src/Form/FormRuleProcessorInterface.php
is needed that will check for the ValidScheduledEndDate constraint and
that will add the rules form the related fields.
You probably also what to implement a ConstraintMapper
https://github.com/boekkooi/JqueryValidationBundle/blob/master/src/Form/Rule/ConstraintMapperInterface.php
for the BeforeNow constraint.
I hope this helps. I'm willing to add a FieldValueDependency condition to
the lib when I have time to make it easier.
—
Reply to this email directly or view it on GitHub
https://github.com/boekkooi/JqueryValidationBundle/issues/20#issuecomment-129265044
.

I have added a simple example for you on how you could solve your problem :smile:
If you need any more help please reopen the issue.

I hadn't see your example. It will be very useful !
Thank you very much.

@BboyKeen the example is in commit https://github.com/boekkooi/JqueryValidationBundle/commit/c9ad5276e9e68ab25cab52f3035d989fafd2c11e this uses a form_rule_processor.
You can in some cases also use a form_rule_constraint_mapper see for example https://github.com/boekkooi/JqueryValidationBundle/blob/master/src/Form/Rule/Mapping/FileRule.php & https://github.com/boekkooi/JqueryValidationBundle/blob/master/src/Resources/config/form_rule_mappers.yml


Make footer sticky via css so it isn't hanging out in the middle of the page waiting for the JS to load

I noticed this when I added an external JS to my site that was slow to load and saw that the mini-footer was just hanging out in the middle of the page until the script finally loaded. There seem to be several pure css solutions for sticky footers, could one be added so that the footer looks nice while people with slow connections wait for the javascript?

The footer itself does not require JS, layout however does. We have a major rework planned (#1735), which will address this.


depositToSyncFromEthereum somehow does not work

I'm setting up zk sync on the local environment
with:
zk up
zk server
zk prover

And write a simple script as below
import * as zksync from "zksync";
import { Wallet } from "zksync";
import * as ethers from "ethers";

const syncProvider = await zksync.Provider.newHttpProvider("http://localhost:3030");

const ethersProvider = new ethers.providers.JsonRpcProvider("http://localhost:8545");

let privKey="0xcfb3347dfbf70ca6615ceac0f7791cd822ccf96c5cec552367a8380edc4e94f6"
const ethWallet = new ethers.Wallet(privKey,ethersProvider);

const syncWallet = await zksync.Wallet.fromEthSigner(ethWallet, syncProvider);

const deposit = await syncWallet.depositToSyncFromEthereum({
  depositTo: syncWallet.address(),
  token: "ETH",
  amount: ethers.utils.parseEther("1.0"),
});
const depositReceipt = await deposit.awaitReceipt();
const verifiedDepositReceipt = await deposit.awaitVerifyReceipt();

all went well, until the
const depositReceipt = await deposit.awaitReceipt();
this line seems to stuck there forever
And I am pretty sure that on the ethereum network, the transaction from ethereum to the main contract of zk_sync is mined successfully, since I've checked it in the zksync_tesseract1.
Are there something that I've possibiliy do wrong?

Hi @jscode017 !
Make sure to run dummy-prover: https://github.com/matter-labs/zksync/blob/master/docs/development.md#using-dummy-prover

Thanks a lot, that works.


chore: bdd-spring-1575275786 to 0.0.1

chore: Promote bdd-spring-1575275786 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


getSession() does not get called on page load. should warn user

Describe the bug
Unfortunately, I haven't been able to get our sveltekit app to work in production past<EMAIL_ADDRESS>and<EMAIL_ADDRESS>Since the ssr was always somewhat flunky with our - aside from the login page- completely private app we previously disabled it via the config and on all update attempts in the handle hook.
Now, the issue is always the same, everything runs fine locally, until it gets deployed, where you can't get past the login screen anymore, since the session never gets populated. I recently found out that the issue seems to lie somewhere within adapter-node, since running dev and preview works flawlessly, but running the build output directly via node _build presents the same issue our staging environment showed locally.
Any help/pointers would be appreciated, ready to replace our auth code if necessary/it's just us working against sveltekit.
If you have any further questions, feel free to ask !
Reproduction
https://github.com/luhagel/sveltekit-node-session-repro
Logs
No response
System Info
System:
    OS: macOS 11.6
    CPU: (12) x64 AMD Ryzen 5 3600X 6-Core Processor
    Memory: 9.02 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 17.4.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.3.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 98.0.4758.80
    Firefox: 96.0.2
    Safari: 15.0
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.17
    @sveltejs/adapter-node: ^1.0.0-next.67 => 1.0.0-next.67
    @sveltejs/kit: next => 1.0.0-next.260
    svelte: ^3.44.0 => 3.46.4

Severity
blocking an upgrade
Additional Information
No response

If I remove {ssr: false} from your hooks file, it works for me, both in dev and prod (build)

I had the same issue and had to remove the handle function together with the ssr:false (sveltekit v.260), It appears that having ssr disabled prevents getSession from passing data or being run with adapter node on prod.

same here

@benmccann I'm not sure this is a bug, I just tried to debug it, and what I found out was that that page was prerendered (/protected) and that's why it was not working, because it was a static page, so the solution to the @luhagel issue is use this config:
import node from '@sveltejs/adapter-node';
import preprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	// Consult https://github.com/sveltejs/svelte-preprocess
	// for more information about preprocessors
	preprocess: preprocess(),

	kit: {
		adapter: node({
			out: '_build',
			precompress: true
		}),
		prerender: {
			enabled: false
		}
	}
};

export default config;

@benmccann but there should be at least a warning that session is being used on prerendered page, something like that.

@PH4NTOMiki Thanks for looking into this ! Gonna give it a try with the full scale non-repro project and keep you posted :+1:

@PH4NTOMiki That did indeed do the trick, thanks a lot ! And yes, a warning would be helpfull, especially it was a somewhat undocumented change post .206 and ist somewhat difficult to figure out without.

@zommerberg @eriknyk what about you, does that solve the issue?

@PH4NTOMiki Yes, it solves it.

@benmccann
Happy to tackle this one. Just give the a-ok.

Not sure if you'd like me to add another issue for this, but I just ran into a related issue where I was accessing the session through import { session } from '$app/stores'; in __layout.svelte (think user menu), and it took me a while to realise I had a stray prerender = true causing the page not to update.

Not sure if you'd like me to add another issue for this, but I just ran into a related issue where I was accessing the session through import { session } from '$app/stores'; in __layout.svelte (think user menu), and it took me a while to realise I had a stray prerender = true causing the page not to update.

Weird. I'm 95% sure that I added some error log for this before this issue got closed.

Yeah, #4811 should've fixed this.

 Yeah, I would open a new issue and reference this one. Be sure to include a small repro with StackBlitz or a GitHub repo.

Hi,
I don't know if this is related, but i get an error:
"Attempted to access session from a prerendered page. Session would never be populated."
By having 	enabled: false. This indeed dissapears. But i want to enable prerendering.
This code triggers the error: It strange, because i don't really read the session variable. If i delete the parameter, i can run my dev server, but when building with static adapter, it throws the error again.
<script context="module">
	/**
	 * @type {import('@sveltejs/kit').Load}
	 */
	export async function load({ params, fetch, session, context })
    {
        const response = await fetch('/api_routes/coursesAPI/byID/zu9knmlb80.json');
		let course = await response.json();

		if (response.ok) {
			return {
				props: {
                    course: course
				}
			};
		}
	}
</script>

thanks for any help

Hi,
I don't know if this is related, but i get an error:
"Attempted to access session from a prerendered page. Session would never be populated."
By having 	enabled: false. This indeed dissapears. But i want to enable prerendering.
This code triggers the error: It strange, because i don't really read the session variable. If i delete the parameter, i can run my dev server, but when building with static adapter, it throws the error again.
<script context="module">
	/**
	 * @type {import('@sveltejs/kit').Load}
	 */
	export async function load({ params, fetch, session, context })
    {
        const response = await fetch('/api_routes/coursesAPI/byID/zu9knmlb80.json');
		let course = await response.json();

		if (response.ok) {
			return {
				props: {
                    course: course
				}
			};
		}
	}
</script>

thanks for any help

Intended behavior. Also, you're using an old version of Kit.


Cleanup

Typos, whitespace etc...

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Aries-rsa-pr/12/Failed Tests: 1Aries-rsa-pr/org.apache.aries.rsa.itests:org.apache.aries.rsa.itests.felix: 1org.apache.aries.rsa.itests.felix.fastbin.TestFastbinRoundTrip.testCall

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Aries-rsa-pr/18/


[Spanish] localize 'mTLS (Mutual Transport Layer Security)'

Localize the content/en/mutual-transport-layer-security.md document to Spanish

@electrocucaracha, can I work on this?

@electrocucaracha, can I work on this?

It seems like @tinniaru3005 requested this before, but I didn't perform the change.

@tinniaru3005 did you still working on this? Can I reassign this to @vasucp1207?

@tinniaru3005 did you still working on this? Can I reassign this to @vasucp1207?

Ya sure. I got busy with my preparations for my Masters entrance exam and completely for got about it. So sorry for the delay.

Let me know if you need help here as well

@mdf-ido  I'll move this to the backlog, let me know in case that you have some progress.

@electrocucaracha estoy libre para trabajar en este issue. Gracias!

closed by https://github.com/cncf/glossary/pull/2072


NFTS Windows version? 🍤

pls

This project does not support Windows systems because the dependency foremost itself does not support Windows systems.


NPM total downloads badge shows 0 for all packages

Not sure when it started but looks like all of the npm total downloads badges are incorrectly showing as zero. Monthly downloads appear to still be working. I noticed this on my own project but a few examples of well known packages below:
https://img.shields.io/npm/dt/express.svg
https://img.shields.io/npm/dt/angular.svg
https://img.shields.io/npm/dt/mocha.svg
https://img.shields.io/npm/dm/express.svg
https://img.shields.io/npm/dm/angular.svg
https://img.shields.io/npm/dm/mocha.svg

Yes. Looks like it's the same for PyPi.

It looks like the code for npm/dt is making a call like this:  https://api.npmjs.org/downloads/range/1000-01-01:3000-01-01/uuid which returns:  {"error":"exceeded max days of 365"}
Note that npm/dm works fine.  Internally it makes a call like this:  https://api.npmjs.org/downloads/point/last-month/uuid that properly returns:  {"downloads":19184120,"start":"2017-03-14","end":"2017-04-12","package":"uuid"}

Looks like they have updated the API and now only support download counts for a year or not more than 365 days.
This works:
https://api.npmjs.org/downloads/range/2017-01-01:2018-01-01/uuid
We'll have to make multiple requests for counting total number of downloads for a package. It's better to switch to a downloads/year metric now.

Makes sense. Using https://api.npmjs.org/downloads/range/ is not that useful with this restriction. Let's switch to https://api.npmjs.org/downloads/point/last-year/.
For compatibility purposes, let's have npm/dt return the yearly count, as it's the best we can do. If we again get a way to display dt, we'll switch it to give the more accurate result.
And let's add an npm/dy badge.

Seems good to me 👍

@mesaugat As for PyPi, there's little we can do for now: https://github.com/pypa/pypi-legacy/issues/396#issuecomment-237634069
Sometimes badges die…
The corresponding issue is  https://github.com/badges/shields/issues/716.

@espadrine I see, thanks!
I've not looked at the code properly but I think I will be able to work on npm/dt and npm/dy as you said.

Am I right that npm/dt used to return the cumulative total downloads? That's what it looks like from a query like this:
https://api.npmjs.org/downloads/range/1000-01-01:3000-01-01/uuid
I could reach out to the npm registry folks. This badge seems popular with developers. Maybe they would add an endpoint for us.

Yes, it's quite popular. If we can get an endpoint it would be awesome.

For npm talk to Benjamin Coe:   https://github.com/bcoe https://twitter.com/BenjaminCoe

Here's the GitHub repo: https://github.com/npm/download-counts
Reference: http://blog.npmjs.org/post/78719826768/download-counts-are-back

Via Twitter:
Benjamin Coe
@BenjaminCoe
Apr 13
@mitchallen @espadrine we're going to lift the limit for the time being, and will introduce an all-time shorthand soon too.

Nice!

Looks like we will need a code change:
https://api.npmjs.org/downloads/range/1000-01-01:3000-01-01/uuid
{
    error: "unknown error"
}

https://api.npmjs.org/downloads/range/2015-01-01:2018-01-01/uuid
{
start: "2015-01-01",
end: "2017-04-14",
package: "uuid",
downloads: [
{
downloads: 0,
day: "2015-01-01"
},
{
downloads: 0,
day: "2015-01-02"
},
{
downloads: 0,
day: "2015-01-03"
},
{
downloads: 0,
day: "2015-01-04"
},
...

@paulmelnikow I'm adding a change to protect you from this query; should be out in 10 minutes, will keep you updated.

okay, things should magically start working again; I've pinned dates to our epoch, and an appropriate point in the future, so that requesting 1000:3000 doesn't result in an expensive query.

dt badges are back! Thanks for the fast response!

Great, we should add a downloads/week and a downloads/year badge for npm too.

Agreed. Would you like to open a PR?

Sure, I will look into it when I find some time.

just to say well done folks. thanks for getting this taken care of so quickly!

sorry for the ot
but how am I supposed to use the npm badge?
[![npm](https://img.shields.io/npm/dm/localeval.svg)]()
I tried
https://img.shields.io/npm/dm/kotlin-graphics/kotlin-unsigned.svg
but returns 0..


Change state after invocable resolution but before view rendering

I have two states, A and B that match to same URL.
But I want to go to A or B according to asynchronous Server answer.
I have created a third state, C, A and B sibling.
But if I do a $state.go() in it's controller, the screen blink when changing view.
And if I do a $state.go() in it's onEnter method, the parent's state resolve is run twice,
and it triggers a "Error: null is not an object (evaluating '$state.$current.locals[name]')" when changing state (see http://jsfiddle.net/opeaucelle/6gqygkt7)
How can I do ?

Try asking this on stackoverflow as it doesn't seem to be a bug in ui-router but in implementation.
Also, if its the same url how are you supposed to differentiate which it should go to?

We differentiate the state which it should go to with an asynchronous Server call using URL parameters.

I have ask on stackoverflow :
http://stackoverflow.com/questions/31287395/angularjs-ui-router-ability-to-change-state-during-resolve


Ankr Staking

Project
Ankr Staking
Description
Ankr Staking aims to bring the benefits of DeFi to the masses with Liquid Staking, Delegated Staking, DeFi, Bridge, Switch, and Parachain Crowdloan.
Please provide the project scope.
Safe Apps
Select a primary category of your project.
DeFi
Select secondary categories of your project.
Staking
Project logo

Value proposition
No response
Contact
No response
Project URL
https://www.ankr.com/staking/stake/
Github / Dev Docs
https://github.com/Ankr-network
Twitter
https://twitter.com/ankrstaking
Primary integration
Safe Apps SDK
Packages
No response
Modules / Guards
No response
Smart Accounts
No response
Networks
No response
Can you create a Safe via the interface?
None
Can you import an existing Safe via the interface?
None

Hi @Sk1mer12 after no reply, this app has been marked as stale: https://github.com/5afe/safe-apps-list/issues/260


[Release-1.31] - Bump k3s-root for buildroot security updates

Backport fix for Bump k3s-root for buildroot security updates

#11284

Validated on branch master with commit 4a3ea1c / version v1.31
Environment Details

Infrastructure

[X] Cloud
[ ] Hosted

Node(s) CPU architecture, OS, and Version:

Linux ip-172-31-8-168 5.14.21-150500.55.44-default #1 SMP PREEMPT_DYNAMIC Mon Jan 15 10:03:40 UTC 2024 (cc7d8b6) x86_64 x86_64 x86_64 GNU/Linux
NAME="SLES"
VERSION="15-SP5"
VERSION_ID="15.5"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp5"
DOCUMENTATION_URL="https://documentation.suse.com/"

Cluster Configuration:

N/A - configuration does not matter

Config.yaml:

N/A

Additional files

N/A

Testing Steps

Copy config.yaml

$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s

Install k3s
/var/lib/rancher/k3s/data/current/bin/busybox

Replication Results:
https://github.com/k3s-io/k3s/issues/11284#issuecomment-2471360191
Validation Results:

k3s version used for validation:

$ k3s -v
k3s version v1.31.2+k3s-4a3ea1c3 (4a3ea1c3)
go version go1.22.8

$ /var/lib/rancher/k3s/data/current/bin/busybox
BusyBox v1.36.1 (2024-11-08 20:32:42 UTC) multi-call binary.

Additional context / logs:
N/A


Pass rustflags to artifacts built with implicit targets when using target-applies-to-host

What this PR does
This fixes #10744, a long-standing bug with target-applies-to-host=false where RUSTFLAGS are not being passed to artifact-units when built with cargo build (as opposed to cargo build --target <host>).
It doesn't fix a similar problem with linker and links. If the architecture in this PR is accepted, I expect I will be able to fix linker and links in the same way in a subsequent PR.
Below is a hopefully useful table of what flags are passed when, with new behavior bolded (without these changes the flag is not passed). I've only changed values in the top right cell, I've included the whole table for completeness and to hopefully make clear what exactly this feature is doing (which took me awhile to understand).
The table was generated with a host of x86_64-unknown-linux-gnu. "Flag" refers to values in RUSTFLAGS. "Linker" refers to the value of --config target.<host>.linker . The table was built with this repo and then hand modify to bold changed values.

target_applies_to_host=true
target_applies_to_host=false

no --target flag
Flag passed to binFlag passed to shared dep from binLinker passed to binFlag passed to proc macroFlag passed to shared dep from proc macroLinker passed to proc macroBuilt with 5 invocationsWithout rustflags, built with 5 invocations
Flag passed to binFlag passed to shared dep from binLinker not passed to binFlag not passed to proc macroFlag not passed to shared dep from proc macroLinker not passed to proc macroBuilt with 6 invocationsWithout rustflags, built with 5 invocations

--target x86_64-unknown-linux-gnu
Flag passed to binFlag passed to shared dep from binLinker passed to binFlag not passed to proc macroFlag not passed to shared dep from proc macroLinker passed to proc macroBuilt with 6 invocationsWithout rustflags, built with 6 invocations
Flag passed to binFlag passed to shared dep from binLinker passed to binFlag not passed to proc macroFlag not passed to shared dep from proc macroLinker not passed to proc macroBuilt with 6 invocationsWithout rustflags, built with 6 invocations

--target i686-unknown-linux-gnu
Flag passed to binFlag passed to shared dep from binLinker not passed to binFlag not passed to proc macroFlag not passed to shared dep from proc macroLinker passed to proc macroBuilt with 6 invocationsWithout rustflags, built with 6 invocations
Flag passed to binFlag passed to shared dep from binLinker not passed to binFlag not passed to proc macroFlag not passed to shared dep from proc macroLinker not passed to proc macroBuilt with 6 invocationsWithout rustflags, built with 6 invocations

How it is implemented
There are two stages in the UnitGraph's life. It gets built, with correct CompileKind: CompileKind::Host for host units, CompileKind::Target(HostTriple) for artifact units. Then it gets rebuilt with artifact units that are intended for the host  having their kind changed to CompileKind::Host.
This rebuilding step serves to de-duplicate host and artifact units. A step that we want to maintain where possible. Because de-duplicating host and artifact dependencies is only possible if their rustflags don't differ we must calculate rustflags for units before this step, and this step necessarily throws away the information necessary to calculate them.
The possible rustflags have already been determined before creating units. "Calculating rustflags for units" just means determining which set of rustflags go with a particular unit, and storing that somewhere. The obvious place to do that is in the unit itself, so that's what this PR does, which has the convenient side affect of also handing the de-duplication logic for us. If the rustflags are the same, two units can be merged, if they differ, they cannot.
In the above table that's why it takes 5 invocations to build the repo without rustflags, but 6 with them. The shared_dependency merges when it is built without rustflags, and not when it is built with rustflags.
Related PRs, comments and issues
fixes #10744
#9453 - Tracking issue
#9753 - Stabilization PR
#9634 - I believe this was another attempt (going down another implementation route) to fix the same issue
Comments from Alex Crichton noting that this must be fixed 1 2
My own comment describing exactly how I ran into this
Documentation for the feature

@rustbot label: Z-target-applies-to-host
The original work for this feature was done under Alex Crichton, and no team member has seemingly picked up the feature after he stepped down. Since the original bug isn't marked as "S-accepted" I'm rather ignoring the contributor documentation by submitting this PR in the first place (sorry).
If this isn't the direction whatever team member picks this up would like to go in, I'm happy to do something else. If no team member picks this up (which is rather what the contributing docs suggest should happen)... I guess the PR sits here harmlessly ¯\_(ツ)_/¯ (I'll probably show up at office hours in that case and see if I can prompt some movement).

If I'm reading the test error correctly, it's a formatting change in the benchmark harness completely unrelated to this PR
It's expecting
test bin_bench ... bench:           0 ns/iter (+/- 0)

It's finding
test bin_bench ... bench:           0.00 ns/iter (+/- 0.00)

With extra .00s

If you rebase on latest master, the test issue should be fixed.

Rebased on master. Also merged the commit fixing the doc links into the commits moving the the docs around, since I noticed comments on other PRs asking that every commit pass tests.

Could you follow the "atomic commit" pattern? That is, the first commit show the current buggy behavior and pass all tests, followed by the other commits fix both tests and the bug.

I've done this as requested, as well as incorporation the suggested 1 line change, rebasing on master, and fixing the use of a now-deprecated testing function.
I owe you fixing the test so that it doesn't pass on the partial-fix you asked about in the other review commit.

Alright, pushed an updated test that passes --cfg feature="flag" in RUSTFLAGS instead of an unexpected cfg. This doesn't change the behavior of anything in this branch at all, but it means that partial fix now passes the current-behavior version of the test and doesn't pass the fixed behavior version of the test, because it doesn't error when querying rustc for information prior to building anything.
The partial fix branch is here, just for illustrative purposes.

Oops, pushing again with fixed formatting in the test in the first commit, and a fixed comment in the test in the second commit (just sloppy rebasing on my part)

Thanks a lot!
@bors r+

:pushpin: Commit 5be8044e67e0487176faa6493126398422444460 has been approved by weihanglo
It is now in the queue for this repository.

:hourglass: Testing commit 5be8044e67e0487176faa6493126398422444460 with merge 8457356c31a4cf7fd16d7ed03877645637cb0535...

:sunny: Test successful - checks-actions
Approved by: weihanglo
Pushing 8457356c31a4cf7fd16d7ed03877645637cb0535 to master...


Germany phone numbers

I can't type germany phone numbers in +49(####)###-#### format.

@drtzack ,
Finally fixed in the latest version on github.


Preflight Checklist

[X] I agree to follow the Code of Conduct that this project adheres to.
[X] I have searched the issue tracker for an issue that matches the one I want to file, without success.
[X] I am not looking for support or already pursued the available support channels without success.

Version
1.13.0
Installation Type
Official Kubernetes
Service Name
DongTai-agent-java
Describe the details of the bug and the steps to reproduce it

洞态一直报这个地方有服务端请求伪造漏洞，但是token值不能修改，修改就报错显示token无效，所以这是不是一个误报？
Additional Information
No response
Logs
No response

Could you provide the complete method pool information? It can be found from the field "method_pool" in the table "iast_agent_method_pool" of the database. Please remember to obfuscate any sensitive information.

test.txt

test.txt

This method pool did not find a vulnerability in our detection, please check if the correct method pool is provided.
If possible, please also provide the full_stack  in the vulnerability information.

test.txt
之前那个文本里面我只取了一条数据，这个是所有的数据。full_stack漏洞信息在哪找？

test.txt 之前那个文本里面我只取了一条数据，这个是所有的数据。full_stack漏洞信息在哪找？

Field full_stack is in the table iast_vulnerability, primary key id can be found in the vulnerability detail url, for example: https://<hostname>/vuln/vulnDetail/1/12473?..., id is 12473

test.txt之前那个文本里面我只取了一条数据，这是所有的数据。full_stack漏洞信息在哪里找？

full_stack表中字段为iast_vulnerability，主键id可在漏洞详情 url 中找到，例如：https://<hostname>/vuln/vulnDetail/1/12473?..., idis12473

能找到full_stack,但是不知道该漏洞的id从哪找，上面那个test.txt文件里面还是不能发现漏洞吗？


[feature require] add showCheckmark property for FormBuilderFilterChip

Thank you for your hard working.
For class

FormBuilderFilterChip

Can you add new setting of showCheckmark for the children FilterChip.
The checkmark is annoying.
Thanks

Hi @gengzhichen,
Thanks for the suggestion I've worked on this issue and will be releasing it in the next release which, I'm hoping, is a few hours away.


Feature request: b for :pageup to match less pager on linux

Its right above SPACE so its easy to press instead of reaching for pageup
https://man7.org/linux/man-pages/man1/less.1.html

Rather than creating a new issue I'll hijack this one to to ask for specific keybindings as you suggested on Discourse.
"Less" has a ton of redundant keybindings, so it may not make sense to support all of them. For what it's worth, here are the ones I find most useful:

[x] g/G for begin/end of document
[x] space for one screen forward
[x] j/k for vertical scrolling
[x] h/l for horizontal scrolling
[x] q for quitting the pager
[x] / and n/N for searching and going to next/previous match
[ ] </> for begin/end of document
[ ] f/b for one screen forward/backward
[ ] Ctrl+V/Alt+V for one screen forward/backward (also works in Emacs)
[ ] Ctrl+F/Ctrl+B for one screen forward/backward (also works in "vi")
[ ] 30<key> as equivalent to 30 times <key> (e.g. 5j to scroll 5 lines) and in particular:
[ ] 30g to go to line 30

Thanks @vancleve and @knuesel !
I will try to implement it. If we have some clash with existing key bindings, I will let you know so that we can discuss about it.

Hi @knuesel
I implemented '<' / '>', and 'b' to go back (making a nice pair with space). However, f is already used to freeze columns and rows.
I prefer to avoid those key bindings like CTRL+V/ALT+V and CTRL+F/CTRL+B. It just does not make sense for me.
Finally, those key bindings that takes a number will make the processing a lot more complicated. Right now, it is a 1 to 1 function (key binding => action). If I add numbers, then I need a state machine to take care of the command. I think it is an unnecessary complication for a pager.
Feel free to reopen if you disagree.


Doesn't work properly

After decompression text doesn't remain the same

Another example:
Before compress: {"d":1,"f":2,"fs":3,"p":4,"ps":5,"t":6,"ts":7,"s":8,"c":{"b":{"c":0,"s":1,"t":2,"p":0.1},"f":{"c":3,"s":4,"t":5,"p":0.2},"l":{"c":6,"s":7,"t":8,"p":0.3},"s":{"c":9,"s":10,"t":11,"p":0.4}}}
After decompress: {"d":1,"f":2,"fs":3,"p":4,"ps":5,"t":6,"ts":7,"s":8,"c":{"b":{"c":0,"s":1,"t":2,"p":0.1},"f":{"c":3,"s":4,"t":5,"p":0.2},"l":{"c":6,"s":7,"t":8,"p":0.3},"s":{"c":9,"s":10,"t":11,"p":0.4}}}4


Updated bubble examples to be carbon-centric

Summary

Closes #166
Deployment Link

https://terra-graphs-deployed-pr-#.herokuapp.com/
Testing

Additional Details

Thank you for contributing to Terra.
@cerner/terra
@cerner/carbon

Looks like onClick functionality of data points is missing, Can you please add tooltip div while rendering example which will fix this issue.


masquerade: remove iptables nat configuration

What this PR does / why we need it:
KubeVirt has been using nftables more than a year by default (https://github.com/kubevirt/kubevirt/pull/5026).
Our e2e tests have not covered iptables for an even longer period (as the iptables binary was actually using nftables in the backend).
This PR is removing the option to use iptables by masquerade binding. It means that nodes with iptables only won't be able to run VMs with masquerade binding.
Deprecation alert was sent 4 months ago.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

iptables are no longer used by masquerade binding. Nodes with iptables only won't be able to run VMs with masquerade binding.

Our e2e tests have not covered iptables for an even longer period (as the iptables binary was actually using nftables in the backend).

We should probably fix that for old release branches and point it to iptables-legacy. Btw. we still have some envs where iptables is in use (we corrected the linking and it works).
Deprecating it for the next release in ~3 months may be ok. Maybe bring this to kubevirt-dev first. It can potentially impact more adopters than is visible on first sight.

another FYI: And typically I would expect that first a deprecation is announced to collect feedback, and then it gets dropped after a predefined period. Just because our builds made a link mistake does not mean that it is not in use by others.

another FYI: And typically I would expect that first a deprecation is announced to collect feedback, and then it gets dropped after a predefined period. Just because our builds made a link mistake does not mean that it is not in use by others.

There was a deprecation alert - https://groups.google.com/g/kubevirt-dev/c/tt61gZtYa-0

another FYI: And typically I would expect that first a deprecation is announced to collect feedback, and then it gets dropped after a predefined period. Just because our builds made a link mistake does not mean that it is not in use by others.

There was a deprecation alert - https://groups.google.com/g/kubevirt-dev/c/tt61gZtYa-0

Great. Then it is probably ok. :+1:

Sorry for all the questions but one last one: Does Centos 7 (EOL 2024) still have iptables as default? Would that be a problem?

Sorry for all the questions but one last one: Does Centos 7 (EOL 2024) still have iptables as default? Would that be a problem?

I will check

Sorry for all the questions but one last one: Does Centos 7 (EOL 2024) still have iptables as default? Would that be a problem?

I will check

Yes, iptables is still the default. But if has nftables available too. So if the linux kernel is bigger than 3.18, it should work.

Sorry for all the questions but one last one: Does Centos 7 (EOL 2024) still have iptables as default? Would that be a problem?

I will check

Yes, iptables is still the default. But if has nftables available too. So if the linux kernel is bigger than 3.18, it should work.

Alright. Thanks for checking. No objections at this point.

Sorry for all the questions but one last one: Does Centos 7 (EOL 2024) still have iptables as default? Would that be a problem?

I will check

Yes, iptables is still the default. But if has nftables available too. So if the linux kernel is bigger than 3.18, it should work.

Alright. Thanks for checking. No objections at this point.

So can you approve?:)

/approve
Leaving the detailed code review to someone else.

/retest

/test pull-kubevirt-e2e-kind-1.22-sriov

/retest

/retest-required

/retest

/retest


Add partial evaluation to the CLI

Category
Other
Describe the feature you'd like to request
The cedar CLI should let you experiment with partial evaluation queries.
Describe alternatives you've considered
Not doing this
Additional context
No response
Is this something that you'd be interested in working on?

[X] 👋 I may be able to implement this feature request
[ ] ⚠ This feature might incur a breaking change

Among the outputs, it should allow you to see the residuals in human format, in JSON format, and as a flat list of the .unknowns() in the residuals.

Among the outputs, it should allow you to see the residuals in human format, in JSON format, and as a flat list of the .unknowns() in the residuals.

I'm planning to work on it. What does a flat list of unknowns mean?

I think when I wrote that I meant "just a list of the unknowns contained in the expression, without the rest of the structure of the expression"

I think when I wrote that I meant "just a list of the unknowns contained in the expression, without the rest of the structure of the expression"

I'm not sure if it's helpful. What is the usage of the list of unknowns?

So you know which entities need fetching?

You probably know better than me if there is something else that better supports the use case of "I partial evaluate providing only the request/entity data that is cheap to fetch/compute, and then I look at the returned residuals to determine what other data I need in order to get a complete authorization decision"

You probably know better than me if there is something else that better supports the use case of "I partial evaluate providing only the request/entity data that is cheap to fetch/compute, and then I look at the returned residuals to determine what other data I need in order to get a complete authorization decision"

I see. It's just that PE doesn't "fully" evaluate the expression so there could be implicit unknowns. For instance, we'll have a residual like unknown("principal.a") || principal.b for expression principal.a || principal.b, where a and b are both unknowns.

Added by #1082


Fix rendering dots in multi-line fields (simple)

This closes #119, by replacing . with ./. as suggested by
@soenkehahn.
For example:
source-dirs:
- .

Will render as:
hs-source-dirs:
               ./.

This supersedes #120.

I think this is a much cleaner solution. However, code wise, I don't think it should be done in the Render module.
Sent from mobile

On 21 Aug 2016, at 10:34 PM, Pedro Tacla Yamada<EMAIL_ADDRESS>wrote:
This closes #119, by replacing . with ./. as suggested by
@soenkehahn.
For example:
source-dirs:

.
Will render as:

hs-source-dirs:
./.
This supersedes #120.
You can view, comment on, or merge this pull request online at:
https://github.com/sol/hpack/pull/125
Commit Summary
Fix rendering dots in multi-line fields (simple)
File Changes
M hpack.cabal (2)
M src/Hpack/Render.hs (10)
M test/Hpack/RenderSpec.hs (9)
Patch Links:
https://github.com/sol/hpack/pull/125.patch
https://github.com/sol/hpack/pull/125.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Where do you feel like it should be done?

I guess it could be done in Hpack.Run.renderSourceDirs.

A more sophisticated solution would be to tag all directories on the type level and then use generic programming to substitute . with .. before rendering.
At this point we would actually want https://github.com/sol/hpack/issues/67.


Gene Ontology for mouse not working

Hi,
I want to use BingleSeq for RNASeq data analysis on Mouse genome but it continuously throwing the same error of “Incorrect Gene Type” (Please find the attachment). I tried all the possibility but I am not able to resolve it.
Further, in gene Ontology section, there are two time mm9 genome is mentioned in the “Select Genome” section. What is the explanation behind it?
I am attaching a sample and meta data file for your reference. Your response will be highly appreciated.
design_BingleSeq.txt

Sample_Data.txt
Thanks & Best Regards,
Akhilesh Mishra, Ph.D.

Dear Akhilesh Mishra,
Thank you for opening an issue.
I followed up on your example and noted a couple of things that might be the cause and appropriately updated BingleSeq.
So, I believe the issues should now be resolved and you should be able to obtain appropriate GO and footprint results for your data. However, I was unable to get meaningful results due to the small size of the sample data.
Please let me know if you notice any issues.
Regards,
Daniel


[CHORE]: Review Codacy: Move code quality from B to A

What is the chore?
Review all the Codacy suggestions and update any code that needs it, to get code quality into the "A" tier.

Completed.


Add code quality metrics for submissions

In the private metrics available to project admins, it could be useful to have some code quality metrics. For instance the maintainability index (MI) could be a start. Although it is definitely not the ultimate measurement, some people are very critical of it, and should not be relied on too much, it's still better than going through each submission manually and looking at code style I suppose. It gives a score between 0 and 100.
It needs radon package, though. Maybe it could be made an optional dependency?

This should be tagged very very low priority as compared to other raised issues...


How to remove unnecessary pipeline resolver function

Which Category is your question related to?
Pipeline Resolvers
Amplify CLI Version
10.0.0
What AWS Services are you utilizing?
AppSync
Provide additional details e.g. code snippets. Be sure to remove any sensitive data.
How do I remove a single auto generated mapping template that's giving me problems?  Until now, when I've wanted to do this I've been copying the auto generated mapping templates to the resolvers folder and then just deleting it's contents and having it pass along an empty object but that just doesn't feel right.

Hey @gxxcastillo :wave: thanks for raising this! What is the template that is giving you trouble? The approach you mentioned would be the suggested approach for now, as we do not currently support selectively removing the generated templates.

Hi @josefaidt.  Thanks!  I don't remember the details of the template, exactly.  I think I ended up addressing my issue by changing my schema or updating some auth declaration


MQTT gateway doesn't work with Thai API

Seem like ASN1 schema for Thai API is different from other. Decoder cannot decode "net.heberling.ismart.asn1.v1_1.entity.VinInfo.brandName". Error message show "out of bound" when try to decode brandName

Hi,
I tried to reproduce the error using your message from the picture in a unit test, but I cannot manage to format the string properly. Could you post the message that is logged as plain text please?

I found the difference. The Thai API uses the same API versions as the European App. But unfortunately SAIC added a languageType field in the European app, without increasing the version number. Please try out #47. The login should work there, but there might be more problems.

Login response decode successfully but there is no applicationData. I found that there is an error message in response body.

errorMessage toString: [B@1f9354e8

The error message is a byte array, but it contains string data. You should be able to do new String(loginResponseMessage.getBody().getErrorMessage() to get the message.

The error message is a byte array, but it contains string data. You should be able to do new String(loginResponseMessage.getBody().getErrorMessage(), StandardCharsets.UTF_8) to get the message.

I'm just forgot to change API URI to Thailand SAIC URI.  Currently, the Login API is working fine, but the other APIs are not functioning properly. I will now attempt to debug the other APIs one by one

It appears that the MQTT gateway is using the API asn1 schema v2.1, but for Thailand, the API uses asn1 schema v2.0. You can find more information about this at the following URI: https://iov-tap.mgthai.com/TAP.Web/ota.mpv20.

I have added some parts of the ASN.1 schema for version 2.0. Could you try it with them?

@JumpLao Could you try the changes in #47 If they work I could integrate them in the release versions.


Delegation verification should check allowedAction

If allowedAction is specified by a parent capability, then a child capability may not be given any new actions beyond what was specified by the parent. Note that if the parent does not specify allowedAction then any actions may be specified in the child.

@dlongley what use cases are there for allowedAction being empty?
Prohibiting empty allowedAction has the nice property of a verifier needing just the parent to ensure proper attenuation.

allowedAction is a restriction on the actions that can be taken -- and if no restrictions are needed then this is omitted. Regardless, the entire chain must always be present when verifying an invocation. #73 also makes embedding the entire chain a requirement.


Content requirement

As discussed with the press people following content change is required

Text mistakes
Organisational structure page text
Apprentice Scheme text

If all issues are fixed, please close this issue.


parquet_output value_time is off by 1 dt

It appears that parquet_output records are written with a timestamp that is -1 dt of what they should be (e.g. dt=300; 2023-04-02 00:00:00 but should be 2023-04-02 00:05:00).

The following change fixes the issue:
https://github.com/NOAA-OWP/t-route/blob/70a2d0c68f270cc22ad59d7635e7d4fa0cb21170/src/troute-nwm/src/nwm_routing/output.py#L96
        value_time[start_idx:end_idx] = start_datetime + pd.to_timedelta((timesteps[i] + 1) * dt, unit='s')

Thanks Austin. I'll fix it


[GHSA-hxrm-9w7p-39cc] Cookie parsing failure

Updates

CVSS
Severity

Hi @GeorgeIdeas 👋
Can you explain your rational for this change? I see both NVD and microsoft reporting high with the same CVSS.


Add Vitest UI

https://vitest.dev/guide/ui

Configuration setup
reporters: ['default', 'html'],
coverage: {
    reportsDirectory: "html/ui",
    enabled: true,
    include: ["**/*.{ts,tsx}"],
    exclude: ["**/*.test.{ts,tsx}"],
    reporter: ['text', ['html', { subdir: 'coverage'}]],
    provider: "v8",
}

reporters:  ['default', 'html']: default allows you to see your test running in real time in the terminal. html - generates the HTML output and preview the results of your tests.
reportsDirectory: "html/ui": This sets the directory where the coverage reports will be stored. In this case, it's the "html/ui" directory. It's important to set as html/ui as it allows to see the vitest ui with coverage report
enabled: true: This enables the generation of coverage reports.
include: ["**/*.{ts,tsx}"]: This specifies the files to include in the coverage report. In this case, it includes all TypeScript (.ts) and TypeScript React (.tsx) files.
exclude: ["**/*.test.{ts,tsx}"]: This specifies the files to exclude from the coverage report. In this case, it excludes all test files (files ending in .test.ts or .test.tsx).
reporter: ['text', ['html', { subdir: 'coverage'}]]: This allows you to see the coverage report in Vitest UI.
Also run the script command in packge.json, yarn test:ui to generate the vitest ui. This will generate an html folder in the project. Then, run yarn coverage:preview and you'll be able to see vitest Ui and coverage report, see images below

provider: "v8": This specifies the coverage provider. In this case, it's using V8's built-in coverage collection.


Docker update error

Error response from daemon: client and server don't have same version (client : 1.18, server: 1.12)

Hi!
If you are reporting a new issue, PLEASE make sure that does not have any duplicates already open.
We would like to take this time to remind you of the information we need to debug the problem you are seeing. This is an automated response so if this ticket is not about a bug, do not fret.
If you fail to provide this information within 7 days, we will close this because we cannot debug your issue. We can reopen whenever the information is provided.
Thank you.
Please see:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues
Description of problem:

`docker version`:

`docker info`:

`uname -a`:

Environment details (AWS, VirtualBox, physical, etc.):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual Results:

Expected Results:

Additional info:

#ENEEDMOREINFO

You can't use a newer CLI with an older daemon.  Upgrade your daemon, or downgrade your CLI and you should be ok


Set device to maintenance mode if TPM error is detected

We have seen errors like "point is not on the required curve" in the past that prevents the device from upgrading because TPM fails to perform an ECDH key agreement to generate the KEK and decrypt the vault key. To catch these errors early, check if TPM is not functioning properly on a critical path and set the device to maintenance mode.

For now it looks like this :


Filtering out certain wifi networks - black-/white listing

Can it tweaked such that it'll only allow discovering a certain list of WiFi networks? That is, the user (admin) upon installation will provide a list of  whitelisted networks  via config or somehow statically. When the driver runs, it'll only show  those to the client application ignoring all the rest.
If so, where's the place for this in the code?
Also, what does it mean "virtual" Wifi driver?

Can it tweaked such that it'll only allow discovering a certain list of WiFi networks?
Currently, vwifi doesn't have the ability to filter out other wireless interfaces. But it's feasible to do this in vwifi with little modifications. For configuration, we need to figure out some other ways since static configuration seems not possible for a kernel module. Maybe we can write a simple user program for this, and communicate with vwifi via Netlink.

Also, what does it mean "virtual" Wifi driver?

It means vwifi doesn't work with a real wireless network card, and vwifi itself behaves like both a cfg80211 driver and a cfg80211 hardware.

I didn't it say that had it. I said if "it could be" tweaked accordingly -- by myself
I didn't ask about interfaces, I did about networks.
I apologize for my misunderstanding.

Also, I asked, where was that place in the code, so I could rewrite it? @rickywu0421
The code is in the owl_ndo_start_xmit() function (line 599), and you can filter out packet here:

/* TX by interface of AP mode */
    else if (vif->wdev.iftype == NL80211_IFTYPE_AP) {
        /* Check if the packet is broadcasting */
        if (is_broadcast_ether_addr(eth_hdr->h_dest)) {
            list_for_each_entry (dest_vif, &vif->bss_list, bss_list) {
                /* Don't send broadcast packet back to the source interface.
                 */
                if (ether_addr_equal(eth_hdr->h_source,
                                     dest_vif->ndev->dev_addr))
                    continue;

                if (__owl_ndo_start_xmit(vif, dest_vif, skb))
                    count++;
            }
        }
        /* The packet is unicasting */
        else {
            list_for_each_entry (dest_vif, &vif->bss_list, bss_list) {
                if (ether_addr_equal(eth_hdr->h_dest,
                                     dest_vif->ndev->dev_addr)) {
                    if (__owl_ndo_start_xmit(vif, dest_vif, skb))
                        count++;
                    break;
                }
            }
        }
    }


Remove OrthographicProjection.scale (adopted)

Objective
Hello! I am adopting #11022 to resolve conflicts with main. tldr: this removes scale in favour of scaling_mode. Please see the original PR for explanation/discussion.
Also relates to #2580.
Migration Guide
Replace all uses of scale with scaling_mode, keeping in mind that scale is (was) a multiplier. For example, replace
    scale: 2.0,
    scaling_mode: ScalingMode::FixedHorizontal(4.0),

with
    scaling_mode: ScalingMode::FixedHorizontal(8.0),

Just workin' through the CI failures now...

...and now I know -p ci example-check is a thing!

@richchurcher let me know when merge conflicts are resolved and I'll get this in for you :)

@alice-i-cecile I think we should be good now!


Task - New Taxon Name - original combination not set properly

When I create a new species and click to set an original combination as current, only species name is positioned properly, the genus name is not set.

Subgenus is not created. Please check other ranks. A species relationship should be created if a current one is a subspecies.

Ops sorry, I thought you was meaning set only the parent.
Fixed, let me know if you see other issues related with this

@jlpereira Still not there for a species group name you may have a name classified as 'Aus (Aus) aus aus'. You have four ranks. Genus, subgenus, species and subspecies. All four should be set up if I use a button to copy current classification.

@jlpereira Sorry, I did not pull :)


[Spark-23240][python] Don't let python site customizations interfere with communication between PythonWorkerFactory and daemon.py

What changes were proposed in this pull request?
Use a socket, instead of stdout, as the inter-process communication method between PythonWorkerFactory and a newly launched daemon.py to avoid the issue described in the Jira (a case where python stdout can be polluted by extraneous messages).
How was this patch tested?

python/run-tests --modules "pyspark-core,pyspark-sql,pyspark-streaming"
python/pyspark/tests.py
all sbt tests
selected queries on a Spark cluster that uses a python installation with site customizations

Note: The two python test scripts and cluster test were run using Python 2.7 only.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Isn't it too a invasive change to deal with a corner case described in the JIRA .. ? Did I maybe miss something?

corner case described in the JIRA

I don't have a good feeling for how often people use python site customizations. I did encounter a real life case that caused the failure described in the Jira.
This is your area, I will leave it up to you. I still have the first PR where we just better report this case rather than try to fix it.
The logic of the code is largely the same:

launch the daemon
read the port number from a DataInputStream connected to the daemon.

The steps to set up a socket, and the try/catches required, add quite a few lines, even though the end result is the same (read an int from a DataInputStream connected to the daemon).
That being said, the code does add some complexities and timing differences.

ok to test

Test build #87171 has started for PR 20519 at commit c63e8f4.

Test build #87171 has finished for PR 20519 at commit c63e8f4.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87171/
Test FAILed.

Test build #87173 has started for PR 20519 at commit 6c38829.

Test build #87173 has finished for PR 20519 at commit 6c38829.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87173/
Test PASSed.

Test build #87262 has started for PR 20519 at commit 3dc4f9a.

Test build #87262 has finished for PR 20519 at commit 3dc4f9a.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87262/
Test FAILed.

Test build #87267 has started for PR 20519 at commit e07806e.

Test build #87267 has finished for PR 20519 at commit e07806e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87267/
Test PASSed.

I am not yet fully sure about how sitecustomize fills some bytes to stdout but I believe it doesn't always happen because at least we have it for Python coverage - https://github.com/apache/spark/blob/master/python/test_coverage/sitecustomize.py.
The only way I used to verify this PR and https://github.com/apache/spark/pull/20424 was to manually add some bytes to stdout.
So, I am still thinking it's a corner case .. Can we otherwise simply flush and remove the stdout right before starting the daemon?

Hm .. yea but we can't simply flush and ignore the stdout specifically from sitecustomize unless we define a kind of an additional protocol like this because we can't simply distinguish if the output is from sitecustomize or the daemon but they are put int stdout together.

yea but we can't simply flush and ignore the stdout specifically from sitecustomize unless we define a kind of an additional protocol like this because we can't simply distinguish if the output

We might be able to distinguish between sitecustomize.py output and daemon.py output. Assuming the code in the sitecustomize.py is not multi-threaded, we can assume all output from sitecustomize.py comes before any output from daemon.py. Therefore, if daemon.py first prints a "magic number" or some other string that is unlikely to show up in sitecustomize.py output, PythonWorkerFactory.startDaemon() will know when daemon.py output starts. daemon.py would print the port number only after printing this magic value. For example:

daemon port: ^@^@\325

Once the scala code sees "daemon port: " in the launched process's stdout, it knows the next 4 bytes are the port number.
However, if sitecustomize.py starts multi-threaded code (and if that's even possible, that's a corner-corner-corner case), its output could potentially be interleaved with the daemon's output. Also, I am not sure sitecustomize.py output is guaranteed to show up first in stdout, but it seems reasonable that it would.

For the change itself in this PR. it looks a overkill .. Can't we just go with the error message for now?

Can't we just go with the error message for now?

Sure, but before we decide not to fix, did you see my comment above on a much less invasive fix to this issue (very little will change but will fix it in most cases). Summary of that comment: daemon.py should write some expected header to stdout before writing the port number to let PythonWorkerFactory know when the daemon's output starts.

I'm ok with either approach; the stdout approach can still suffer from people doing crazy things in their customizations (like messing with what stdout is), but at that point I'm ok with not supporting those use cases.

I hope we can go with the error message one for now if we are all fine here. Will keep my eyes on JIRA and mailing list and check if similar issues are raised again ..


[BUG] My graphics wont change

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?
Ever since i downloaded bloxstrap, I haven't been able to change my graphic setting, so if i move the bar side to side, no matter the distance my graphics stay the same

Upload your configuration please: https://github.com/pizzaboxer/bloxstrap/wiki/Uploading-your-Bloxstrap-configuration

Issue has been awaiting clarification for over a month, closing as stale. If you have anything further to add, just respond and I'll reopen.


Cleanup

cc @yellow-beard

Only two real changes: make the backtrace output string mutable since frozen string literals was enabled, and use the safe navigation operator for socket&.close (the real bug I wanted to fix).


The db autodiscover doesn't work for ibmdb2 adapter

The db-connected feature on ibmdb2 adapter doesn't work, because the DB autodiscover feature throws an Exception here. We need to manage the Exception and provide the db-connected option without the metadata support, until we will implement a Metadata adapter for ibmdb2.

Fixed in #305.

Since I raised a related issue, I would like to update this ticket:
The link provided in the ticket is no longer valid, correct link is
https://github.com/zendframework/zend-db/blob/release-2.5.2/src/Metadata/Metadata.php#L60
throw new \Exception('cannot create source from adapter');

If the goal of #305 was to suppress this exception, wouldn't it be better to delete this line, instead of suppressing all exceptions?