luci-base: move some generic classes into a separate luci-base-libs package

The new package luci-base-libs provides the modules that not strictly relate to the web-interface of luci. By separating these libs they can be used by other packages without having to install the web-components.
This change was inspired by providing a shell-only interface for 4MB-flash devices, by keeping as much code common with a full install. Dropping the luci-web stuff reduces the package by 100kb.

a later version of this code should not have a separate Makefile, the luci-base packge should be modified to generate both packages.

@feckert  just seen that you marked it with WIP-flag and not gave it a NACK yet. So I'll continue to work on this.

I pushed the missing changes to finish the integration of the rearranged libraries. I ran a test based on "luci-mod-admin-full".
@feckert can you review?

Just rebased to recent master. Any other issues preventing from merging?

@jow- @feckert any opinions on this change?
We are using it for some months in our freifunk firmware and were able to improve the support for 4MB devices.

@SvenRoederer from my side ok, but that's up to @jow- if he wants to merge this.
A little question then. If you don't need the LuCI you have still include the whole LuCI feed repo during compilation and build. Doesn't it make then not more sense to move it into the package feed?

our package luci-app-owm-cmd (https://github.com/freifunk-berlin/firmware-packages/blob/master/utils/luci-app-owm) is using the luci-lib-httpclient package which  pulls in luci-base. The 4MB devices we use w/o web-interface and don't need uhttpd and the web-framework. As luci-app-owm-cmd is just a cmdline-app to report some data, we like to use it on these devices, which will pull also the full web-framework as of the mentioned dependency.
Solving this luci-app-owm-cmd-dependency by moving some packages to OpenWrt-packages would recursively require a bunch of packages to be moved. As our images for other routers will include the full LuCI, we need the luci-feed anyways.

@jow- What do you think on this?

@jow- just seen that your commit cf1219bd0790506279b14007595e8389e5eb99ff caused conflict of my PR.
What do you think of the intention of this PR?

@jow- ping ... I would be happy to get your feedback on this idea.

@jow- @NeoRaider @hnyman as @feckert mentioned above (https://github.com/openwrt/luci/pull/2817#issuecomment-558991698) this PR looks fine.
What do you think on merging?

Did you actually runtime test all LuCI views with this change? I do see that dispatcher.lua still references util.striptags and util.pcdata in the tpl.context.viewns meta table while these functions were moved to a new XML class. That will likely break rendering a bunch of templates.

This was introduced when rebasing  from 83408a1 to ce8fb70.  Pushing an updated version which also updates the docs.

Just pushed a rebased version.

@jow- @NeoRaider @hnyman I fixed the missing lines mentioned in https://github.com/openwrt/luci/pull/2817#issuecomment-604872131 and tested the code on a recent master (551d839f90853b58f81d124c77442009d4df0) successfully.
Would be great if you accept this for master.

@jow- @NeoRaider @hnyman @feckert ping

@SvenRoederer I'm really not the right person to ping about LuCI packaging - I personally don't use LuCI, and Gluon doesn't even include the feed anymore.

@jow- @hnyman @feckert Any feedback on this would be great.

@SvenRoederer Sorry I can't help you there either!
This was created by @jow-.
He has the last word on that.

I don't think we should move pcdata() to a new luci.xml class. This has the potential to break a lot 3rd party out of tree code.

As mentioned this change was driven by keeping some commandline tools working on 4MB devices which don't provide a web-ui (no uhhtp, no luci web-framework).
I don't remember the exact details anymore, but it turned out that one of the libs in the new package depends on the striptags() and or the pcdata() function of luci.utils. But luci.utils depends on the luci.dispatcher and its dependencies. This way half of the stuff, required for the webframework ended up in the new "small" package. As this mixup of having web-framework related thing in the stripped down "non-web" package, which did not made sense at all.
So the most clean solution I found, was to refactor the functions into this new module, to break the dependency chain.

This has the potential to break a lot 3rd party out of tree code.

@jow- Every change has this potential, but I think the change of having luci authenticate trough the rpcd had much more consequences. Here the worst case is adding a new "require" line and replacing "util" by "xml".
And we can gain 100kb of flash.

Please add wrappers to luci.util restoring this functionality. You can lazy-load luci.xml if needed.

@jow- added a wrapper to luci.util which calls the luci.xml functions. Also added a message that the code should be updated to use luci.xml directly.

@jow- can you check again for a merge? Added the compatibility-wrapper
https://github.com/openwrt/luci/pull/2817/files#diff-22b6303e1f39e747a12833e3814328d4R163; https://github.com/openwrt/luci/pull/2817/files#diff-22b6303e1f39e747a12833e3814328d4R190

@jow- Did you had a chance to review this PR again after adding the compatibility-wrapper as requested?

Merged via 8b8d83e42dd3d10d82e29a8614a7b3e3e94b16c6, 68521fca04e9b2ae801cc2daa4f920a2c43bc03f, 354e4cb4a70d576a4f02e024f3c8fb1e72f09350, 7edd635026594da577b73f059c0d8b95d653f8fc

Thanks


Move out psimi-enricher to it's own repo

The small bit of work I did do to fix the dependencies issue is at [1].  However, running enrich-xml.sh still fails because the xml writer is not being set up for unknown reasons.
[1] https://github.com/MICommunity/psimi/tree/fix-psimi-enricher


feat(AP-1917): Removing client-side DNT support

This PR removes the dnt check client-side as it is a fully deprecated standard and not supported by most products. We can consider implementing it server-side, but client-side enforcement breaks feature flagging and personalization usecases.

Hotfixes needed?

@mattstrom Yes, please

hotfix-v1.23-v1.22


Adapter error messages

`
I'm getting these error messages in IOBroker log. What else can I check?
2021-01-06 19:51:51.595  - info: bydbatt.0 (23325) cleaned everything up...
2021-01-06 19:51:52.306  - info: bydbatt.0 (23325) terminating
2021-01-06 19:51:52.310  - info: bydbatt.0 (23325) Terminated (NO_ERROR): Without reason
2021-01-06 19:51:52.313  - info: bydbatt.0 (23325) terminating
2021-01-06 19:51:52.844  - info: host.smarthome instance system.adapter.bydbatt.0 terminated with code 0 (NO_ERROR)
2021-01-06 19:51:52.845  - info: host.smarthome Restart adapter system.adapter.bydbatt.0 because enabled
2021-01-06 19:52:22.878  - info: host.smarthome instance system.adapter.bydbatt.0 started with pid 23340
2021-01-06 19:52:25.288  - info: bydbatt.0 (23340) starting. Version 0.0.2 in /opt/iobroker/node_modules/iobroker.bydbatt, node: v14.15.1, js-controller: 3.1.6
2021-01-06 19:52:26.108  - error:  Unhandled promise rejection. This error originated either by throwing  inside of an async function without a catch block, or by rejecting a  promise which was not handled with .catch().
2021-01-06 19:52:26.109  - error: bydbatt.0 (23340) unhandled promise rejection: Request failed with status code 401
2021-01-06 19:52:26.112  - error: bydbatt.0 (23340) Error: Request failed with status code 401
at createError (/opt/iobroker/node_modules/@mhoc/axios-digest-auth/node_modules/axios/lib/core/createError.js:16:15)
at settle (/opt/iobroker/node_modules/@mhoc/axios-digest-auth/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd  (/opt/iobroker/node_modules/@mhoc/axios-digest-auth/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
2021-01-06 19:52:26.115  - info: bydbatt.0 (23340) cleaned everything up...
2021-01-06 19:52:26.683  - info: bydbatt.0 (23340) terminating
2021-01-06 19:52:26.687  - info: bydbatt.0 (23340) Terminated (NO_ERROR): Without reason
2021-01-06 19:52:26.693  - info: bydbatt.0 (23340) terminating
2021-01-06 19:52:27.217  - info: host.smarthome instance system.adapter.bydbatt.0 terminated with code 0 (NO_ERROR)
2021-01-06 19:52:27.218  - info: host.smarthome Restart adapter system.adapter.bydbatt.0 because enabled
2021-01-06 19:52:57.248  - info: host.smarthome instance system.adapter.bydbatt.0 started with pid 23357
2021-01-06 19:52:59.891  - info: bydbatt.0 (23357) starting. Version 0.0.2 in /opt/iobroker/node_modules/iobroker.bydbatt, node: v14.15.1, js-controller: 3.1.6
2021-01-06 19:53:00.451  - error:  Unhandled promise rejection. This error originated either by throwing  inside of an async function without a catch block, or by rejecting a  promise which was not handled with .catch().
2021-01-06 19:53:00.452  - error: bydbatt.0 (23357) unhandled promise rejection: Request failed with status code 401
2021-01-06 19:53:00.455  - error: bydbatt.0 (23357) Error: Request failed with status code 401
at createError (/opt/iobroker/node_modules/@mhoc/axios-digest-auth/node_modules/axios/lib/core/createError.js:16:15)
at settle (/opt/iobroker/node_modules/@mhoc/axios-digest-auth/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd  (/opt/iobroker/node_modules/@mhoc/axios-digest-auth/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
2021-01-06 19:53:00.457  - info: bydbatt.0 (23357) cleaned everything up...
2021-01-06 19:53:01.084  - info: bydbatt.0 (23357) terminating
2021-01-06 19:53:01.088  - info: bydbatt.0 (23357) Terminated (NO_ERROR): Without reason
2021-01-06 19:53:01.093  - info: bydbatt.0 (23357) terminating
2021-01-06 19:53:01.622  - info: host.smarthome instance system.adapter.bydbatt.0 terminated with code 0 (NO_ERROR)
2021-01-06 19:53:01.623  - info: host.smarthome Restart adapter system.adapter.bydbatt.0 because enabled
`

Error: Request failed with status code 401
your side is not available

Error: Request failed with status code 401
your side is not available

It is available. What else to check?

It is available. What else to check?

switch the adapter to debug ..

switch the adapter to debug ..

Found the problem. Username is not "user" but "installer". Maybe that should be added in the adapter config?

Found the problem. Username is not "user" but "installer". Maybe that should be added in the adapter config?


file is not found

hi, where is the detic.py in node.py & wrap.py directory? thanks!

see https://github.com/HiroIshida/detic_ros/tree/master/node_script

yeah, this line in wrapper.py. => "from detic.predictor import VisualizationDemo"

oh, I now see your question.
The symbolic link of the Detic is created inside the node_script in the time of building the docker image.
https://github.com/HiroIshida/detic_ros/blob/4afc32aa2fab3ed19ec05c56ab778e07d591ac4e/Dockerfile#L97
https://github.com/HiroIshida/detic_ros/blob/4afc32aa2fab3ed19ec05c56ab778e07d591ac4e/prepare.sh#L9


Merge pull request #1 from dallaspythondojo/master

JSFUN and other assignments until #3

No changes :) might have been merged already


Add instructions on how to install ueberzug

Update readme with instructions on how to install ueberzug, since it's not available via pip anymore

Hi, I started using your plugin and really enjoy having it as part of my workflow! I was wondering if there's an update on how to install ueberzug; I've noticed that it's no longer maintained, and there doesn't seem to be other documentation on how to install it.

I went back through the readme and noticed that kitty seems to support functionality similar to ueberzug out of the box, so I started using kitty. Works really well! :)
Still, I did some digging. I can't speak for other distros, but for Ubuntu based distros >= 22.10, they're able to install ueberzug with apt. This is the source I'm referring to: link.

Hi, thank you for reminding me. You can install überzug for python by reverting to an older tag of the no longer maintained ueberzug repo, cloning it and installing it manually via setup.py - I have now added the relevant instructions to the readme

I went back through the readme and noticed that kitty seems to support functionality similar to ueberzug out of the box

while kitty is used to display plots via matplotlib, uberzug is intended to provide different functionality in this plugin, which is to overlay saved python outputs in the terminal without having to open a separate split window for displaying them


Preview Image only works once, on the first drag.

First of all, I would like to state I'm completely new the React development, and there are probably some really basic things I'm missing that is causing the problem I will show below. Please bare with my newbie ignorance if that is the case.
I have a draggable object defined below, that I created following the examples on the React DnD site:
import type { CSSProperties, FC } from "react";
import { DragPreviewImage, useDrag } from "react-dnd";
import { DraggableTypes } from "./DraggableTypes";

export interface CardProps {
  cardData: CardType;
}

export const mainCardStyle: CSSProperties = {
  border: '12px solid white',
  outline: '3px solid white',
  outlineOffset: '-20px',
  borderRadius: '25px',
  width: '65%',
  height: '100%',
  minWidth: '120px',
  minHeight: '320px',
  textAlign: 'center',
  color: 'white',
  backgroundImage: 'linear-gradient(to top, #396BE5, #ACA9E4)',
  marginRight: '10px',
  marginBottom: '10px',
  cursor: 'move',
  float: 'left',
  boxShadow: '0px 5px 8px grey'
};

const innerDivStyle: CSSProperties = {margin: '10px'};
const imageDivStyle: CSSProperties = {marginTop: '40px',marginBottom: '20px'};
const titleDivStyle: CSSProperties = {marginBottom: '10px'};

function collectHandler(monitor: any) {
  return {
    isDragging: monitor.isDragging(),
    handlerId: monitor.getHandlerId(),
  };
}

export const DraggableCard: FC<CardProps> = function Card({ cardData }) {
  const [{isDragging}, drag, preview] = useDrag(
    function ()
    {
      return {
        type: DraggableTypes.Card,
        item: { cardData },
        collect: collectHandler,
        //end: (item, monitor) => { preview(null, { captureDraggingState: true });}, <== unsure about this.
      };
    },
    [cardData]
  );

  const opacity = isDragging ? 0.4 : 1;

  return (
    <>
      <DragPreviewImage connect={preview} src={cardData.image + ".png"} />

            {cardData.title}

            {cardData.description}

    </>
  );
};

It's working, for the most part. I can drag it into a drop target and have stuff happened as I expected. The only problem is that if I drag the object, and let go without dropping it into the drop target, the next time I drag it, the preview image no longer works. Instead i just get a transparent copy of the draggable object that moves with my cursor, instead of the assigned preview image, as if I never assigned the preview image at all (it works as if this line: <DragPreviewImage connect={preview} src={cardData.image + ".png"} />, was completely removed from the code).
The draggable object is dynamically created from an array of data. So I'm not sure if Im supposed to clear data first each time I drop. I've asked Chat GPT for some insights and it told me I have to clear the preview and gave me the line I liked with the "<==". That hasn't fixed the issue, though.
I know React has some strangeness where if the data doesn't change, things don't rerender sometimes. I'm not sure if this is the issue. Am I doing something wrong, or is there some limitation in React DnD I'm not aware of? Thank you for your time. :)

@EOMedvis Please use key property on <DragPreviewImage key={new Date().getTime()} /> this will ensure the rerender on every drag

Oh. Awesome. That was it! Thank you for the solution!

Actually, I think I fixed the PreviewImg not being scaled. I can scale and store an image as a src before feeding it to the DragPreviewImage and it seems to work.


What people says

Added feedback in 2nd slider to the What People Says section

Do not put words in "quotes".  That is changing the structure of the copy.
Also, do not mention words like "enemy" - that is poor writing.
Go to other websites similar to this company to get ideas on what they write about.   None of your writing is relevant to the topic of this company.


More CSS options + sans serif font

Two options that would be helpful:

underline
strike-through
color highlight

Lastly, I am wondering if the font family can be set to sans serif? Or maybe have some choice between serif and sans serif?

So, are we talking about implementing the whole markdown, https://daringfireball.net/projects/markdown/syntax??


Create a noun list

Collect noun list from various sources.
Ask community to help for adding more verbs.

Currently best bet is to ask teams from Anna University or Amrita for their consent to reuse the datasets.
Otherwise we may have to manually compile the data sets from available dictionary sources or Wiktionary.

Tamil Sandhi Checker by Nithya has added a noun list. We can potentially use/add that data here with proper attribution.


fuj/ add new operator std

Motivation and Context

Add new operator diopiStd.
Description

Implemented diopiStd with cnnlStdVarMean API, for cnnlStdForward API only sopport single dim.
Use cases (Optional)

BC-breaking (Optional)

Checklist
Before PR:

[ ] I have read and followed the workflow indicated in the Contributors.md to create this PR.
[ ] Pre-commit or linting tools indicated in Contributors.md are used to fix the potential lint issues.
[ ] Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
[ ] New functionalities are covered by complete unit tests. If not, please add more unit test to ensure the correctness.
[ ] The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

[ ] CLA has been signed and all committers have signed the CLA in this PR.

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


Feat/ancestry sheets #12

Basic Ancestry Sheet functionality added. Moved item tabs to be vertical on the right as per the actor sheets. Switched the editor to the built-in <prose-mirror> element.
Also fixed up the custom fonts.
TO DO:

[x] Fix the editor value when populating for edit mode
[x] Add advancement tab to ancestries
[x] Update Culture sheet to account for general item changes (changes made but pending push)
[x] Another style pass?
[x] Remove custom editor component
[x] check editing permissions (edit toggle for items/img and title always editable for right permissions?)
[x] improve ancestry component within char sheet? (probably a separate issue)

I'd intentionally left the tabs in the middle of the sheet instead of vertically on the right, as we don't have an actual design for the item sheets and I wanted to remain as generic as possible. Also, for the sake of commonality, this matches what 5e does.

* [ ]  check editing permissions (edit toggle for items/img and title always editable for right permissions?)

I think here we follow what other systems do and have edit/view mode only for actor sheets (as they're interacted with a lot), and have item sheets always editable (if you have the right permissions).

I think here we follow what other systems do and have edit/view mode only for actor sheets (as they're interacted with a lot), and have item sheets always editable (if you have the right permissions).
Yeah, that's the route I would have wanted to go as well. Didn't realise it was a pattern, but recognised that it's just easier to work with sheets that are ready to edit when you open them.
I suppose there could be people who still want a "play" mode for items that editors can use to avoid making mistakes, but lets go with the easier option if that's not a standard

I'd intentionally left the tabs in the middle of the sheet instead of vertically on the right, as we don't have an actual design for the item sheets and I wanted to remain as generic as possible. Also, for the sake of commonality, this matches what 5e does.

OK, a bit of a google shows me that it's more prevalent than I thought (though I'm sure I've played at least one system that does the side tabs for non-actors). My own preference would be for the side tabs as they free up more space in the main window for content, plus it's internal consistency if all sheet tabs are the same, and it'd be more expandable. I'd honestly just thought that people left the horizontal tabs on things because they hadn't gotten round to changing it 🤣
But happy to revert the change, it's pretty simple.

I was thinking there was a lot of repeated code and trying to come up with
a better approach after I'd turned the PC off.
That definitely sounds like a good plan to try!
On Sun, 29 Sept 2024, 08:28 stanavdb, @.***> wrote:

@.**** commented on this pull request.
In src/system/applications/item/injury-sheet.ts
https://github.com/stanavdb/cosmere-rpg/pull/56#discussion_r1779954355:

   if (

       this.item.system.description!.value ===

       CONFIG.COSMERE.items.types.injury.desc_placeholder

   ) {

       this.item.system.description!.value = game.i18n!.localize(

           this.item.system.description!.value!,

       );

   }

   const enrichedDescValue = await TextEditor.enrichHTML(

       this.item.system.description!.value!,

   );

   return {
       ...(await super._prepareContext(options)),
       isPermanent:
           this.item.system.type === InjuryType.PermanentInjury ||
           this.item.system.type === InjuryType.Death,

       descHtml: enrichedDescValue,

Can't we move the description enrichment into the base item?
—
Reply to this email directly, view it on GitHub
https://github.com/stanavdb/cosmere-rpg/pull/56#pullrequestreview-2335753506,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANGKWFPC3QRQR5OGB5TBZJTZY6TZDAVCNFSM6AAAAABPABUXUCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGMZVG42TGNJQGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

created issue #69 to cover the character sheet component aspect (and widened scope to be al item types)

Final style touches done, will open another issue for theming.

While reviewing I ran into some small usability issues with the advancements. I figured I'd just do some suggested changes on a branch from this PR. If you like them you can merge them into the PR. https://github.com/stanavdb/cosmere-rpg/tree/ancestry-sheet-pr
What I've changed:

Free path is now a reference to an Item instead of an id. We should use ids for things like prerequisites or other form of dependencies (so that GMs can modify/clone Items as they like but they'll still count as the "same"). However here we want to grant some path upon taking the ancestry, so we should refer to the Item directly.
Free talents now uses references to Talent items instead of ids. Same as point 1.
Refactored talent picks to bonus talents and changed the way they're edited. I've moved the restrictions to be per level, and changed up the way they're edited to be consistent with other Item sheets.

OK, taken a look at that now.
1 & 2: That's great, I was thinking I would raise an issue to come back and update them to reference real objects at some point, but wasn't aware Items could hold collection within them (silly me, pretty sure I set something similar up using custom system builder a while back!) but whatever the approach it was going to take me another week or so to figure out how to plug it all together, so thought it better to do something quick for a 0.1 release (esp. as the advancement section was effectively just for reference, seemed like giving GMs a way to make notes quickly would have been better than my holding up the milestone). So you turning that round quickly is amazing! - side note, I'd love to pick your brains about the why/how you figured out what you needed to get embedded collections in. I can see what you added, but I don't 100% understand where it comes from 🤣
3: I like that it's refactored to support the embedded collections. That makes a lot of sense, and mechanically it's a lot simpler in places. And the styling and consistency is great. Display wise... I'm not a huge fan of lists-as-tables. I can see how logically it can make dealing with items in the TS files a bit cleaner, but I think it'd be better from an accessibility/screen-reader front to use table elements if you aren't a fan of the grid approach.

While reviewing I ran into some small usability issues with the advancements. I figured I'd just do some suggested changes on a branch from this PR. If you like them you can merge them into the PR. https://github.com/stanavdb/cosmere-rpg/tree/ancestry-sheet-pr
What I've changed:

Free path is now a reference to an Item instead of an id. We should use ids for things like prerequisites or other form of dependencies (so that GMs can modify/clone Items as they like but they'll still count as the "same"). However here we want to grant some path upon taking the ancestry, so we should refer to the Item directly.
Free talents now uses references to Talent items instead of ids. Same as point 1.
Refactored talent picks to bonus talents and changed the way they're edited. I've moved the restrictions to be per level, and changed up the way they're edited to be consistent with other Item sheets.

OK, taken a look at that now. 1 & 2: That's great, I was thinking I would raise an issue to come back and update them to reference real objects at some point, but wasn't aware Items could hold collection within them (silly me, pretty sure I set something similar up using custom system builder a while back!) but whatever the approach it was going to take me another week or so to figure out how to plug it all together, so thought it better to do something quick for a 0.1 release (esp. as the advancement section was effectively just for reference, seemed like giving GMs a way to make notes quickly would have been better than my holding up the milestone). So you turning that round quickly is amazing! - side note, I'd love to pick your brains about the why/how you figured out what you needed to get embedded collections in. I can see what you added, but I don't 100% understand where it comes from 🤣
3: I like that it's refactored to support the embedded collections. That makes a lot of sense, and mechanically it's a lot simpler in places. And the styling and consistency is great. I did have the restrictions per-level originally and then moved them up top because I wasn't sure how much busy work it would be to have to repeat the same or very nearly the same on each one... 🤷🏻♂ Display wise... I'm not a huge fan of lists-as-tables. I can see how logically it can make dealing with items in the TS files a bit cleaner, but I think it'd be better from an accessibility/screen-reader front to use table elements if you aren't a fan of the grid approach.

The only real reason I haven't been using just regular tables is that they get a lot of default styling out of the box that we do not want.

The only real reason I haven't been using just regular tables is that they get a lot of default styling out of the box that we do not want.

Cool. I'll have a deep dive on this idea at some point this week. We can override a lot of the styling or potentially look at a sub-grid option to get the same row-container type approach. I might just merge the changes in tomorrow and then open a new issue/PR for the tables refactor, it'd likely be a new component or an overall approach I'd want to apply across any existing examples. But I'll also do more digging around what exactly is best practice these days (assuming we even can follow it within a foundry form!)

Merged in and addressed the conflicts with release branch.
Issue #72 raised for the table debate
[ ] Need to check items module.scss as I believe there are orphaned declarations for the old lists

...ATM you're applying the font globally, is that something we want? We'll want the font for our sheets but all the other Foundry element obviously weren't designed with it in mind. Might be better to keep the Foundry defaults for Foundry stuff and only use our fonts on our sheets.

That's a fair point. Without rambling too much (and perhaps there lies the evidence that this should be a separate Discussion?), I have a personal preference when I see the foundry interface themed up. I wish there were more style themes around in the modules list (or even a separate section jus for themes, but I digress), and like it when a system takes the time to use the fact that Foundry was intentionally built on a basis that it can be easily themed from top to bottom. It improves immersion (or at least product familiarity) to me. And honestly I think the Laski sans font works quite well for the job, I'd not use Penumbra for UI elements and even hesitate to use the Palatin option (if we can find some way to provide that for the subheadings) for much beyond a few labels.
But you raise a good point about them not being designed for these fonts and we'd need to do thorough checking I guess. Perhaps we get a poll going about whether the themes should apply across the foundry base UI too? I say themes because as I write this I realise some/all of these font choices could well change between books...
So, OK, for now I'll just limit the fonts to anything .application/.sheet

That's a fair point. Without rambling too much (and perhaps there lies the evidence that this should be a separate Discussion?), I have a personal preference towards seeing the foundry interface themed up. I wish there were more style themes around in the modules list (or even a separate section jus for themes, but I digress), and like it when a system takes the time to use the fact that Foundry was intentionally built on a basis that it can be easily themed from top to bottom. It improves immersion (or at least product familiarity) to me. And honestly I think the Laski sans font works quite well for the job, I'd not use Penumbra for UI elements and even hesitate to use the Palatin option (if we can find some way to provide that for the subheadings) for much beyond a few labels. But you raise a good point about them not being designed for these fonts and we'd need to do thorough checking I guess. Perhaps we get a poll going about whether the themes should apply across the foundry base UI too? I say themes because as I write this I realise some/all of these font choices could well change between books... So, OK, for now I'll just limit the fonts to anything .application/.sheet

Yeah I'd like to take a look at complete foundry theming at some point, but that should be its own separate issue

... So, OK, for now I'll just limit the fonts to anything .application/.sheet

Yeah I'd like to take a look at complete foundry theming at some point, but that should be its own separate issue
Moved from global vars to just sheet styles (as per the h1s)


The last example of parsed output is incorrect

The last example in the command-line argument list is incorrect.
Instead of:

Command-Line Input
argv[1]
argv[2]
argv[3]

a"b"" c d
ab" c d

it should be:

Command-Line Input
argv[1]
argv[2]
argv[3]

a"b"" c d
ab"
c
d

I've confirmed this against the output from CommandLineToArgvW by using the following program:
#include <windows.h>
#include <stdio.h>

int main() {
    int argc;
    wchar_t *example_command_line = L"\"program.exe\" a\"b\"\" c d";
    printf("Example command line: %S\n", example_command_line);
    wchar_t **argv = CommandLineToArgvW(example_command_line, &argc);
    printf("argc=%d\n", argc);
    for (int i = 0; i < argc; ++i) {
        printf("argv[%d] %S\n", i, argv[i]);
    }
    return 0;
}

This outputs:
Example command line: "program.exe" a"b"" c d
argc=4
argv[0] program.exe
argv[1] ab"
argv[2] c
argv[3] d

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

ID: 767a133c-6b2a-d353-f39a-9ced2772a1ff
Version Independent ID: 03b704f2-39fc-f68a-f649-0ed46eb9282f
Content: Parsing C Command-Line Arguments
Content Source: docs/c-language/parsing-c-command-line-arguments.md
Product: visual-cpp
Technology: cpp-c-language
GitHub Login: @corob-msft
Microsoft Alias: corob

This is my mistake -- sorry!  I was writing a custom implementation of CommandLineToArgvW and looking for the expected rules and this document was the best I could find.  However, I've now realized that if I log out the results of main(int argc, char **argv), they match the documentation.  So the behavior that I thought was incorrect is simply an implementation detail related to CommandLineToArgvW.  I'll close this out.


Flash Raspberry Pi OS

The official Set up your SD card is up to date. The Raspberry Pi Imager work as expected on Windows.

When using the The Raspberry Pi Imager,

it will ask if the user wants to do any customisation

User should select to apply some customisation to configure the Wi-Fi

and enable SSH

The customisation form filled

We should use the Lite version

Update version of the screenshot with "yes"

More screenshots


Randomized Prim's Algorithm Python

🚀 Feature
Algorithm for creating a maze.
Have you read the [Contributing Guidelines on Pull Requests]?
Yes
Motivation
Mazes are fun.
Pitch
This algorithm is a randomized version of Prim's algorithm. This algorithm introduces stylistic variation because the edges closer to the starting point have a lower effective weight.

@iamrajiv Can I go ahead with this?

@iamrajiv Kindly respond

I can do it in python or C,please assign

Can you please assign this issue to me

Pls, assign this issue to me. I am selected for WoC


Download limit is reset after restart

Support guidelines

[X] I've read the support guidelines

I've found a bug and checked that ...

[X] ... the documentation does not mention anything about my problem
[X] ... there are no open or closed issues that are related to my problem

Description
When rTorrent downloads at maximum speed ISP, everything else becames unusable. To combat this I always set maximum download speed just a little bit below of what ISP provides. However, after every restart, the setting is reset back to "Unlimited". This might also be happening to Upload, but I personally haven't tested this.
I might be more of a ruTorrent issue, but I am not sure.
Expected behaviour
The setting persists.
Actual behaviour
Download speed limit is set to "Unlimited"
Steps to reproduce

Open web UI.
Right click "Download Speed" on the footer and select any other besides "Unlimited".
Do docker compose down && docker compose up -d.
Reload web UI.
Right click "Download Speed" and see that it is back to "Unlimited" value.

Docker info
Client: Docker Engine - Community
 Version:    24.0.7
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.21.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 14
  Running: 11
  Paused: 0
  Stopped: 3
 Images: 64
 Server Version: 24.0.7
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3dd1e886e55dd695541fdcd67420c2888645a495
 runc version: v1.1.10-0-g18a0cb0
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.5.0-41-generic
 Operating System: Ubuntu 22.04.3 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.46GiB
 Name: octopus
 ID: d056d3d9-e0f9-4938-9230-a5ea4d5d54c4
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Registry Mirrors:
  https://mirror.gcr.io/
 Live Restore Enabled: false

Docker Compose config
No response
Logs
N/A.

Additional info
No response

Download (and upload) speed are set here in the .rtorrent.rc config file when the container starts.
# Global upload and download rate in KiB. "0" for unlimited
throttle.global_down.max_rate.set_kb = 0
throttle.global_up.max_rate.set_kb = 0

If you want to persist your changes, you will have to have override the defaults in your config.

Thank you for suggestion, but tweaking config files everytime a users wants to set a permanent limit is not a viable solution. Download/upload limit set using web UI should be persistent and should be handled by rtorrent itself.
I don't mind trying to do it myself, I just need a pointer to know where to start however.

I agree with @t4rl , the web ui settings should be persistent otherwise they are totally useless.
Also i changed the rtorrent config file but I think the webui settings shuold behave the same way, not only temporarily.
I think the idea behind ruTorrent is to manage rtorrent almost exclusively from webui without having to touch the config files and that should apply to the download limit settings too.

@de666 Yes, I agree that this would be the more user friendly option. It's something that would need to be implemented upstream in the rutorrent codebase.
I'd file a bug upstream with them instead.
@crazy-max and the team behind this docker image can't really help with this because they are not the devs behind rutorrent, they just use/include it in this image.
To be honest, I'm also not sure the rutorrent folks will see this as something they need to implement. The Rutorrent webUI is supposed to be only be a frontend for rtorrent and it is not designed to be responsible for managing rtorrent's config files

A possible workaround is to use the ruTorrent throttle plugin to apply a speed limit instead. It's re-enabled with the latest version of this docker image because it supports a theoretical maximum of 33 gigabits. (beyond what rTorrent can output)


L2 normalization for hid_resp and hid_cont

@jasonwu0731 Thanks for your excellent work.
Calculate RCL loss
scores = torch.matmul(hid_cont, hid_resp.transpose(1, 0))
loss_rs = xeloss(scores, resp_label)
loss += loss_rs
loss_rs = loss_rs.item()
when calculate rs loss, is it nessary to L2 normalize hid_resp hid_cont before matmul? So that the [CLS] vector be an embedding of a sentence.

Hi,
I did not get what you are suggesting, can you point me to the code or equation? Thank you


Fix click issues for data-micromodal-close

In the case of markup like this, clicking the div element does not close the modal.
<button aria-label="close" data-micromodal-close>

inner

</button>

I fixed this.

It doesn't work anymore.
<button class="modal__close" aria-label="Close modal" data-micromodal-close>
  <svg class="icon" aria-hidden="true" role="img">
     <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-close"></use>
  </svg>
</button>

@firestar300 can you please open a new issue for this and provide a reproduction repository?


Create new MediaPlayer everytime when need a beep. For fixing issue #155

Thanks! This change also allowed some additional simplifications, which are now merged in.


Unable to show ics files.

I am unable to get any content to show for ICS files from Google. I am using a private ICS file link which works with the native MM calendar module without error.

show me your config. This module is not working with standalone. The event data is derived from original MM calendar module.

modules: [
//{
//	module: "clock",
//	position: "top_right"
//},
{
module: "MMM-CalendarExt3",
position: "center",
title: "Family Calendar",
config: {
broadcastPastEvents: true, // <= IMPORTANT to see past events
mode: "week",
weeksInView: "4",
weekIndex: "0",
instanceId: "Main",
maxEventLines: 5,
firstDayOfWeek: 1,
calendarSet: [],
			calendars: [
				{
					url: "https://calendar.google.com/calendar/ical/tcarnathan77%40gmail.com/private-c8xxxx/basic.ics",
					name: "Tiffany", // <= RECOMMENDED to assign name
					color: "Red" // <= RECOMMENDED to assign color
				},
				{
					url: "https://calendar.google.com/calendar/ical/980bhdk8qnqqpjbnb0rn7smpag%40group.calendar.google.com/private-c0axxxxxx/basic.ics",
					name: "Alyson", // <= RECOMMENDED to assign name
					color: "Pink" // <= RECOMMENDED to assign color
				},
				{
					url: "https://calendar.google.com/calendar/ical/tsmnshq381mi7elni0oqganfh0%40group.calendar.google.com/private-ba9xxxxx/basic.ics",
					name: "Ethan", // <= RECOMMENDED to assign name
					color: "Blue" // <= RECOMMENDED to assign color
				},
			]
		}
	},
]

“calendars” don’t belong to this module. Use MM’s original “calendar” module together.

What is the format requirements?

Figured it out. Cheers.


Update containers with meta information

Updated public ID container and service container with meta information.

r? @krishnaIndia
(maidsafe_highfive has picked a reviewer for you, use r? to override)


[Suggestion] General purpose sticky notes/labels

I think this feature would help with the readability of more complex systems. For example you can add label about the data which is moved down the pipe, add additional comments about some parts of the system, or give "names" to the pipelines to make their use more clear.

Thank you for those great suggestions!
I created 3 issues based on them:

(v1) https://github.com/jodigiordano/gg/issues/13
(v1) https://github.com/jodigiordano/gg/issues/14
(tbd) https://github.com/jodigiordano/gg/issues/15


Urgent: sap_hana_preconfigure: need to add RHEL 8.8 to supported releases

according to https://me.sap.com/notes/2235581 RHEL 8.8 is supported, but not in the list

change is already merged to dev

@berndfinger : can you please check if kernel min release or anything else need to be added for the role to properly support RHEL 8.8

@berndfinger : can you please check if kernel min release or anything else need to be added for the role to properly support RHEL 8.8
Yes, we need a minimum RHEL kernel version for RHEL 8.8 as per SAP note https://me.sap.com/notes/2777782 v.47. I'll create a PR for this.

Solved by https://github.com/sap-linuxlab/community.sap_install/commit/c06ece88dc8d1276ec2aa611a12c1aaaf93c69ff and PR #501


suspending external command with [ctrl-z] does not yield a shell prompt

Using elvish built from HEAD run vim then press [ctrl-z]. The vim process is apparently suspended but the elvish process doesn't provide a new prompt. Typing is echoed but commands aren't executed. Sending SIGUSR1 results in the following stack dumps. I can reproduce on macOS and Linux.
goroutine 5 [running]:
github.com/elves/elvish/pkg/sys.DumpStack(0xc0001922d0, 0x15d49c8)
        /Users/krader/projects/3rd-party/elvish/pkg/sys/dumpstack.go:10 +0x9d
github.com/elves/elvish/pkg/program/shell.handleSignal(0x1672de0, 0xc000026660, 0xc0000a2010)
        /Users/krader/projects/3rd-party/elvish/pkg/program/shell/signal_unix.go:19 +0x6b
github.com/elves/elvish/pkg/program/shell.setupShell.func1(0xc0001b6120, 0xc0000a2000, 0xc0000a2008, 0xc0000a2010)
        /Users/krader/projects/3rd-party/elvish/pkg/program/shell/shell.go:28 +0xb0
created by github.com/elves/elvish/pkg/program/shell.setupShell
        /Users/krader/projects/3rd-party/elvish/pkg/program/shell/shell.go:25 +0x12d

goroutine 1 [semacquire]:
sync.runtime_Semacquire(0xc000196c88)
        /usr/local/Cellar/go/1.14.1/libexec/src/runtime/sema.go:56 +0x42
sync.(*WaitGroup).Wait(0xc000196c80)
        /usr/local/Cellar/go/1.14.1/libexec/src/sync/waitgroup.go:130 +0x64
github.com/elves/elvish/pkg/eval.(*pipelineOp).invoke(0xc000697220, 0xc000697270, 0xc0007af5e8, 0x100e856)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:173 +0x4c9
github.com/elves/elvish/pkg/eval.effectOp.exec(0x166ba00, 0xc000697220, 0x0, 0x3, 0xc000697270, 0x0, 0xc000200050)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/op.go:32 +0x69
github.com/elves/elvish/pkg/eval.chunkOp.invoke(0xc000b101a0, 0x1, 0x1, 0xc000697270, 0xc000b102c0, 0xc0007af6b0)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:29 +0x7e
github.com/elves/elvish/pkg/eval.effectOp.exec(0x166c9a0, 0xc000b10200, 0x0, 0x3, 0xc000697270, 0xc000b10240, 0xc000b10260)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/op.go:32 +0x69
github.com/elves/elvish/pkg/eval.(*Evaler).Eval(0xc0001ec000, 0x166c9a0, 0xc000b10200, 0x0, 0x3, 0xc000316060, 0xc000b10220, 0x3, 0x3, 0x15d3748, ...)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/eval.go:281 +0x1e1
github.com/elves/elvish/pkg/program/shell.evalInTTY(0xc0001ec000, 0x166c9a0, 0xc000b10200, 0x0, 0x3, 0xc000316060, 0xc0000a2000, 0xc0000a2008, 0xc0000a2010, 0x0, ...)
        /Users/krader/projects/3rd-party/elvish/pkg/program/shell/shell.go:43 +0x1b4
github.com/elves/elvish/pkg/program/shell.Interact(0xc0000a2000, 0xc0000a2008, 0xc0000a2010, 0xc00011bd88)
        /Users/krader/projects/3rd-party/elvish/pkg/program/shell/interact.go:85 +0x965
github.com/elves/elvish/pkg/program.(*shellProgram).Main(0xc00018c840, 0xc0000a2000, 0xc0000a2008, 0xc0000a2010, 0xc000098190, 0x0, 0x0, 0xc00011bf18)
        /Users/krader/projects/3rd-party/elvish/pkg/program/shell.go:31 +0x27c
github.com/elves/elvish/pkg/program.Main(0xc0000a2000, 0xc0000a2008, 0xc0000a2010, 0xc000098190, 0x1, 0x1, 0x0)
        /Users/krader/projects/3rd-party/elvish/pkg/program/program.go:103 +0x1c8
main.main()
        /Users/krader/projects/3rd-party/elvish/main.go:14 +0x69

goroutine 34 [chan receive]:
github.com/elves/elvish/pkg/eval.getBlackholeChan.func1(0xc0001b6060)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/port.go:59 +0x47
created by github.com/elves/elvish/pkg/eval.getBlackholeChan
        /Users/krader/projects/3rd-party/elvish/pkg/eval/port.go:58 +0x58

goroutine 35 [syscall]:
os/signal.signal_recv(0x1672de0)
        /usr/local/Cellar/go/1.14.1/libexec/src/runtime/sigqueue.go:144 +0x96
os/signal.loop()
        /usr/local/Cellar/go/1.14.1/libexec/src/os/signal/signal_unix.go:23 +0x22
created by os/signal.Notify.func1
        /usr/local/Cellar/go/1.14.1/libexec/src/os/signal/signal.go:127 +0x44

goroutine 6 [chan receive]:
github.com/elves/elvish/pkg/cli/prompt.(*Prompt).loop(0xc0002841c0)
        /Users/krader/projects/3rd-party/elvish/pkg/cli/prompt/prompt.go:77 +0xc8
created by github.com/elves/elvish/pkg/cli/prompt.New
        /Users/krader/projects/3rd-party/elvish/pkg/cli/prompt/prompt.go:70 +0x15f

goroutine 7 [chan receive]:
github.com/elves/elvish/pkg/cli/prompt.(*Prompt).loop(0xc0002842a0)
        /Users/krader/projects/3rd-party/elvish/pkg/cli/prompt/prompt.go:77 +0xc8
created by github.com/elves/elvish/pkg/cli/prompt.New
        /Users/krader/projects/3rd-party/elvish/pkg/cli/prompt/prompt.go:70 +0x15f

goroutine 15127 [chan receive]:
github.com/elves/elvish/pkg/eval.relayChanToFile(0xc0000a4e40, 0xc0000a2008, 0xc0005aa4c0, 0xc, 0xc000196bd4)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/port_helper.go:47 +0x1ae
created by github.com/elves/elvish/pkg/eval.portsFromFiles
        /Users/krader/projects/3rd-party/elvish/pkg/eval/port_helper.go:31 +0xfd

goroutine 15129 [select]:
github.com/elves/elvish/pkg/eval.ListenInterrupts.func1(0xc00008e0c0, 0xc00008e180, 0xc00008e1e0, 0xc00008e240)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/interrupts.go:46 +0xad
created by github.com/elves/elvish/pkg/eval.ListenInterrupts
        /Users/krader/projects/3rd-party/elvish/pkg/eval/interrupts.go:42 +0x143

goroutine 13879 [syscall]:
syscall.syscall6(0x107dbd0, 0xf99a, 0xc00025fa9c, 0x0, 0xc0008e8090, 0x0, 0x0, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.14.1/libexec/src/runtime/sys_darwin.go:74 +0x2e
syscall.wait4(0xf99a, 0xc00025fa9c, 0x0, 0xc0008e8090, 0x90, 0x1593fa0, 0x1)
        /usr/local/Cellar/go/1.14.1/libexec/src/syscall/zsyscall_darwin_amd64.go:44 +0x87
syscall.Wait4(0xf99a, 0xc00025faec, 0x0, 0xc0008e8090, 0x37, 0xc0008db560, 0x6)
        /usr/local/Cellar/go/1.14.1/libexec/src/syscall/syscall_bsd.go:129 +0x51
os.(*Process).wait(0xc00018e330, 0x37, 0xc0008db560, 0x6)
        /usr/local/Cellar/go/1.14.1/libexec/src/os/exec_unix.go:38 +0x7b
os.(*Process).Wait(...)
        /usr/local/Cellar/go/1.14.1/libexec/src/os/exec.go:125
github.com/elves/elvish/pkg/eval.ExternalCmd.Call(0xc000230b80, 0x37, 0xc0008f4050, 0xc000281d80, 0x5, 0x8, 0xc0003df440, 0xc0002a5800, 0xc0004840a0)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/external_cmd.go:91 +0x37e
github.com/elves/elvish/pkg/eval.(*formOp).invoke(0xc0002fb5f0, 0xc0008f4050, 0x0, 0x0)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:380 +0x8be
github.com/elves/elvish/pkg/eval.effectOp.exec(0x166b960, 0xc0002fb5f0, 0xe93, 0x1003, 0xc0008f4050, 0xffffffffffffffff, 0xffffffffffffffff)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/op.go:32 +0x69
github.com/elves/elvish/pkg/eval.(*pipelineOp).invoke.func1(0x166b960, 0xc0002fb5f0, 0xe93, 0x1003, 0xc0008f4050, 0xc000010de0, 0xc0009df700, 0x0)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:136 +0x60
created by github.com/elves/elvish/pkg/eval.(*pipelineOp).invoke
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:135 +0x424

goroutine 15128 [chan receive]:
github.com/elves/elvish/pkg/eval.relayChanToFile(0xc000169740, 0xc0000a2010, 0xc0005aa4c0, 0xc, 0xc000196bd4)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/port_helper.go:47 +0x1ae
created by github.com/elves/elvish/pkg/eval.portsFromFiles
        /Users/krader/projects/3rd-party/elvish/pkg/eval/port_helper.go:32 +0x150

goroutine 15130 [syscall]:
syscall.syscall6(0x107dbd0, 0xf99e, 0xc00005fa9c, 0x0, 0xc0008e8000, 0x0, 0x0, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.14.1/libexec/src/runtime/sys_darwin.go:74 +0x2e
syscall.wait4(0xf99e, 0xc00005fa9c, 0x0, 0xc0008e8000, 0x90, 0x1593fa0, 0x1)
        /usr/local/Cellar/go/1.14.1/libexec/src/syscall/zsyscall_darwin_amd64.go:44 +0x87
syscall.Wait4(0xf99e, 0xc00005faec, 0x0, 0xc0008e8000, 0x12, 0xc0003ce0d0, 0x1)
        /usr/local/Cellar/go/1.14.1/libexec/src/syscall/syscall_bsd.go:129 +0x51
os.(*Process).wait(0xc0006f6120, 0x12, 0xc0003ce0d0, 0x1)
        /usr/local/Cellar/go/1.14.1/libexec/src/os/exec_unix.go:38 +0x7b
os.(*Process).Wait(...)
        /usr/local/Cellar/go/1.14.1/libexec/src/os/exec.go:125
github.com/elves/elvish/pkg/eval.ExternalCmd.Call(0xc00060e0d8, 0x3, 0xc0006972c0, 0x0, 0x0, 0x0, 0xc000316180, 0xc00060e0d8, 0x15a6d71)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/external_cmd.go:91 +0x37e
github.com/elves/elvish/pkg/eval.(*formOp).invoke(0xc0007bb040, 0xc0006972c0, 0x0, 0x0)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:380 +0x8be
github.com/elves/elvish/pkg/eval.effectOp.exec(0x166b960, 0xc0007bb040, 0x0, 0x3, 0xc0006972c0, 0x14d9040, 0xc0008dd4d8)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/op.go:32 +0x69
github.com/elves/elvish/pkg/eval.(*pipelineOp).invoke.func1(0x166b960, 0xc0007bb040, 0x0, 0x3, 0xc0006972c0, 0xc0004dc030, 0xc000196c80, 0xc00060e000)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:136 +0x60
created by github.com/elves/elvish/pkg/eval.(*pipelineOp).invoke
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:135 +0x424

goroutine 13880 [semacquire]:
sync.runtime_Semacquire(0xc0009df708)
        /usr/local/Cellar/go/1.14.1/libexec/src/runtime/sema.go:56 +0x42
sync.(*WaitGroup).Wait(0xc0009df700)
        /usr/local/Cellar/go/1.14.1/libexec/src/sync/waitgroup.go:130 +0x64
github.com/elves/elvish/pkg/eval.(*pipelineOp).invoke.func2(0xc0009df700, 0xc0008f4000, 0xc0002df630, 0xc000010de0, 0x1, 0x1)
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:156 +0x40
created by github.com/elves/elvish/pkg/eval.(*pipelineOp).invoke
        /Users/krader/projects/3rd-party/elvish/pkg/eval/compile_effect.go:155 +0x49d

Also, running commands like sleep 99 which do not handle SIGTSTP result in ^Z being echoed to the terminal and no other action being taken. The command can still be killed with [ctrl-c] and a usable elvish prompt appears.

Since elvish does not support job control it should set SIGTTIN, SIGTTOU and SIGTSTP to be ignored by all child processes.See "APUE", third edition, page 379.
I can't find any evidence it does so. In fact, looking at /proc/self/status we see that no signals are ignored: SigIgn:<PHONE_NUMBER>000000. And it's catching every signal that can be caught: SigCgt: fffffffffffbfeff. This state of affairs is presumably the default behavior of the Go runtime. Looking at the signal disposition of a child process, such as sleep 99, shows no signals ignored.

Argh! Even if elvish marks the three tty job control signals to be ignored vim unignores SIGTSTP, but leaves SIGTTIN and SIGTTOU ignored. That is wrong. I've opened issue https://github.com/vim/vim/issues/5990.
The other problem is that Go's Process.Wait(), by design, doesn't return when the process is stopped by SIGSTOP or SIGTSTP. See https://github.com/golang/go/issues/3138 and https://github.com/golang/go/issues/3111. So there isn't any way to make this work without implementing fairly comprehensive support for job control. Which means using lower level APIs such as https://golang.org/pkg/syscall/#Wait4 or https://pkg.go.dev/golang.org/x/sys/unix?tab=doc#Wait4. Which will complicate working on MS Windows and other non-UNIX platforms.
The best we can do for now is ignore those three signals when launching an external command and hope the process doesn't subvert our intentions by handling any of them.

Hmm, this also seems to be related to how Elvish is started. I cannot reproduce this when my terminal emulator starts Elvish directly, but I can reproduce this if I launch Elvish from bash.

It would be nice if vim respects the ignored status of SIGTSTP, but Elvish should also defend itself against any unexpected behavior in external commands.

I cannot reproduce this when my terminal emulator starts Elvish directly, but I can reproduce this if I launch Elvish from bash.

That's due to bash implementing job control and setting up the controlling tty accordingly; which includes the appropriate setsid() calls, etc. Your terminal emulator is unlikely to do any of that since it reasonably assumes the process it launches will take care of it.

Elvish should also defend itself against any unexpected behavior in external commands.

Short of implementing POSIX job control our only option is to modify the termios structure so there is no suspend or delayed suspend character in effect when running an external command.

@#$%"(*)!!! Vim not only ignores whether SIGTSTP is ignored it also ignores the termios suspend key value. It instead uses a hardcoded definition of ctrl-z that always calls the vim suspend function. My pull-request will still attempt to deal with this by nulling the suspend character but I don't expect that to have much value.


Replace patches don't get applied to arrays of primitives

If your view-model would have an array of primitive values, then 'replace' patches won't get applied to DOM. This is caused by bug in Polymer: Polymer/polymer#3377
See test test/d-b-n_smoke/arrays.html » puppet-client, when stamped from dom-bind and bound to puppet object w/ array » should observe changes to  » array items, » fire a change event, and update dom-bind

Turns out to be a clone of https://github.com/PuppetJs/puppet-polymer-client/issues/14

See #14 for real-life example

In our case it seems it's not just an array of primitives problem, it also affect arrays of objects.
However I figured out it might not ma a Polymer's issue, but ours. I'm still investigating.

I will mark it as done, as in general we clearly are applying patches for arrays of primitives.
#14 seems to be very narrow use case (described https://github.com/PuppetJs/puppet-polymer-client/issues/14#issuecomment-222372565), so we could track it there.


Register object store issue

Hi, I`d like to register s3 object store to read files hosted on s3, followed the example I found [here] (https://github.com/datafusion-contrib/datafusion-objectstore-s3/issues/15)
Here is my code part, but it throws me the trait 'ObjectStore' is not implemented for 'AmazonS3FileSystem'
let mut execution_ctx = ExecutionContext::new();
  execution_ctx.register_object_store(
        "s3",
        Arc::new(AmazonS3FileSystem::new(None, None, None, None, None, None).await)
    );

how can I fix this? Thanks

@yaroslavambrozyak thanks for raising this.
I believe this is likely due to having different versions of the datafusion crate.
Right now, while we are in development mode and still working on 0.1 release, we have pinned to a specific datafusion commit which you will see in our Cargo.toml.  You will have to ensure you are using the same datafusion commit in your Cargo.toml.  You will also need to ensure any other overlapping dependencies are on the same version.
We are currently planning the 0.1 release at which point we will switch to a specific version of datafusion, likely 7.0.
Hope this helps and thanks for trying this out!

@yaroslavambrozyak I have imported like this in the meantime:
datafusion-objectstore-s3 = { git = "https://github.com/datafusion-contrib/datafusion-objectstore-s3", rev = "366bb6cf51518bc1e3f71ba73f0aff13d6415711" }

@yaroslavambrozyak closing this issue.  Let us know if any further questions or issues :)

@yaroslavambrozyak I have imported like this in the meantime:
datafusion-objectstore-s3 = { git = "https://github.com/datafusion-contrib/datafusion-objectstore-s3", rev = "366bb6cf51518bc1e3f71ba73f0aff13d6415711" }

This helped me, thanks guys


[Program]: Write a C# program to find the adjoint of a matrix

Description
Write a C# program to find the adjoint of a matrix
The adjoint of a square matrix A is the transpose of the matrix of cofactors of A. The adjoint of a matrix A is denoted as A*.
Input  :
1 2 3
4 5 6
7 8 9

Output :
[[-3, 6, -3], [6, -12, 6], [-3, 6, -3]]

How to contribute

Save the solution in program/program/find-the-adjoint-of-a-matrix/program/FindTheAdjointOfAMatrix.cs file

!assign


Activity 4.1.2 Hash Tables: Context, Visuals

2.md

Give an explanation of why you can access element in O(1) time
In step 1 of hashing, elaborate on the line "this element can be used as an index to store the original element."
Explain why modulo is a good way to reduce the hash to an index
Provide explanation for the diagram. At this point, the reader has no context to what a diagram of a hash table looks like, so the diagram may be confusing without further explanation as to what the numbers on the right are, what an "item" is, why there are arrows between items, why some slots have items and some don't, etc.

It's O(1) because the amount of time does not change with the size of the collection.

An element is converted into an integer by using a hash function. This element can be used as an index to store the original element, which falls into the hash table.

The item that is in index 0 is converted into an integer and 01 represents that.

which modulo?

We distribute items through a hashing function. If the items are assigned with index 0 then, it will be connected with 0. Items could be linked together. For index 5, three items are linked together.


Add tests to export schema business functions

resolve #314

apart from comments above, I would add a unit test in getPropertyJsonSchema test suite where property is a subdocument

Good job @MarcosApodaca!
@brauliodiez this PR can be merged.


Listener factory and checker

Q
A

Is bugfix?
❌

New feature?
✔

Breaks BC?
✔

Fixed issues
❌

This PR is evolution of yiisoft/event-dispatcher#55
In comparison to the old PR support of invokale objects is added.

@viktorprogger is it possible to integrate ListenerConfigurationChecker somewhere so it's actually used?

@samdark, yes, there will be sattelite PRs in demo and templates.


Repro cards

I have 2 repro cards with this PCB   both has 1mb flash save memory

I wrote the clean tool in this and I have a repro game with the same PCB with a fire red room in
The tool crashed every time in trying to save progress
Is this happen for what ?
The tool in this repro cart
The game in that repro cart
Is this won't happen with a original cartridge ?

The issue is using a reproduction cartridge for the actual game (Fire Red).
Games on those are patched to save differently. The tool cannot realistically handle saving to those, as it's a very risky operation.
I actually wonder whether the repro cart works with the Pal Park transfers in Gen 4 or not...
The tool does work with flashcarts though.
Not going to fix this.

So tool will work with a original cart ? Even if it's wrote in a repro cart ?

Yes, that is not a problem.

Okay the problem are the repro carts will work tool in repro cart and original cart


Django Factory gets the wrong manager for model on 2.5.0

Using factory_boy 2.5.0 break my build. I have a model using a custom manager for object creation but factory_boy is somehow ignoring it and using Django's default manager. When creating an object using my factory I expected I could pass extra arguments that my custom manager accepts. The documentation statest that

create() uses Model.objects.create()

but that doesn't seem to be true in 2.5.0.
I tried setting my model meta using import model syntax
from models import Model
class Meta:
    model = Model

and 'app.Model' syntax
class Meta:
    model = 'app.Model'

None of them work. factory_boy 2.4.1 works fine, but I can't figure out what changed between those versions that broke it.

Hi,
Could you provide an example of how you declare your custom manager? I think the change comes from commit 636ca46951d710a4b9d9fd61ec1da02294806d3d.

You can see the issue happening on the following commit.
https://github.com/rubendura/factory_boy/commit/417c16926397dc7e281bd7bfd94d434c57228f7a
That test passes under commit 25bd44c30007d5babecefed651827431569ee1ee "Fix support for Django 1.7."
Don't know if I should do a pull request for this as it only adds a failing test and no solution to it.


Replace mvnrepository.com with search.maven.org

Hey, if you do a PR, on whatever topic, on whatever open source repo: please provide context. You put unnecessary burden on maintainers (most of the time maintaining thins in their free time) by just throwing changes at them.
Describe why you do the PR. There is a reason, why there is a description field.
Sorry, but this is not the first time I get something like this. I perceive it as rude.
I'll from now on just close all PRs without any description on repos I maintain.

My apologies @jjohannes. I felt the title described the changes but I can see how that can come off as rude.
mvnrepository.com is filled with ads and is not an official maven central search website.
search.maven.org is built by the maintainers of Maven Central and does not have any ads. Plus its a much cleaner/nicer experience.
This PR is just a text replace of mvnrepository.com with search.maven.org

Thanks for elaborating @SidB3. I used mvnrepository.com, although it has a lot of issues, because it has the one quite useful feature that it shows you all the dependencies in a list and lets you navigate between them.
That being said, I have no strong preference here.
So I am happy to accept this change then.
The part of the readme is generated by the build though, you should adjust the URL here:
https://github.com/gradlex-org/java-ecosystem-capabilities/blob/main/gradle/plugins/documentation/src/main/kotlin/gradlexbuild/javaecosystem/capabilities/documentation/ReadmeUpdate.kt#L64
And then run the :updateReadme task (which should produce the same thing that you adjusted manually).

Thanks for the clarification @jjohannes. Updated the PR.

Thank you for the contribution @SidB3!


Support implementing ObjC protocols from Dart

This should be possible with a single static piece of native code that can live in package:objective_c, so we won't have to generate different native code for each protocol.

The fix for https://github.com/dart-lang/native/issues/835 is going to involve ffigen generating ObjC code for each block that the user needs. So there's not really any reason to try to avoid having ffigen generate native code anymore. It will be simpler and more efficient to just generate ObjC and Dart bindings for each interface that we want to implement from Dart, rather than having a generic thing like NSProxy that lives in package:objective_c.

The fix for #835 is going to involve ffigen generating ObjC code for each block that the user needs.

How would we solve the bundling of that Swift code? Am I correct in assuming that if it's a Flutter plugin I presume we write cocoapods code to include it, and if we use native assets, we'd need to have a SwiftCodeAsset as output from hook/build.dart?

Or can the Objective C just be compiled to a dylib and we can output it as a NativeCodeAsset @liamappelbe ?

I'm not sure what the difference is between ObjectiveCCodeAsset and NativeCodeAsset, but the code can be bundled as an ordinary dylib.

I'm not sure what the difference is between ObjectiveCCodeAsset and NativeCodeAsset, but the code can be bundled as an ordinary dylib.

👍  Then we don't need an ObjectiveCCodeAsset.


Map Mode Right Click fix

Allow Right-click context menu when in mapmode
Fixes AB#2151

@samsinsane Some of the context menu items don't make sense in map mode - e.g. "Move To".
This should be approved, and we'll change the context menu contents to match functionality.


Fix some favicon issues

See discussion in #ansible-community.

Ok, I also resolved the last issue: that the icons weren't shown on Safari. The problem is that Safari does not support SVGs for icons :-( So if we use SVGs, Safari will not display them. That's why I converted the SVGs to PNGs. I included instructions on how to do the conversion with ImageMagick in the commit message; where should I properly document it? In the README, or somewhere else?

Thanks for looking into this.
I guess document in the commit message and in this PRs description.

Actually, we have original logos here https://www.ansible.com/logos

Thanks, I used the images from there and added instructions to the README how they are obtained and how I modified them (adjusting the SVG bounding box; rescaling the PNG versions).

CC @webknjaz

@gundalow @ssbarnea thanks for reviewing and merging!


Sleep the thread if the computer is loaded.

I will close this, https://github.com/petterarvidsson/craft-akka-server/pull/25 solves this.


Advice for implementing type aliases

I have forked grace to use as a language for specifying biologically realistic neural networks, and I would like to provide the user with a few (hard-coded) type aliases, like:

Neuron ~ { segments: List Segment, membranes: List Membrane }
Membrane ~ List { channel: Channel, channel_conductance: Real }
Channel ~ { activation: Optional Gating, inactivation: Optional Gating, gates: Natural }
TimeConstant ~ < Instantaneous | Exponential { tau: Real } | Linear { slope: Real, offset: Real } >

My ideal type aliases have a similar role to Haskell's newtypes: they constrain the type of the value they contain, in addition to just providing a syntactic shorthand. And any value that satisfies the right-hand-side should ideally be inferred to have the type on the left-hand side.
I'm a bit stuck in the design:

I might add new values to Syntax.Scalar, making a concrete Neuron, Segment, Membrane scalar type, and then have the infer function return these directly if inference encounters the compatible record or alternative.
Or maybe there should be a new Type called Alias { name :: Text, type_ :: Type s }, and resolving type aliases should be done abstractly.

Do you have thoughts about these? Or is it known that type aliases are just incompatible with grace's bidirectional type checking for some reason?
Thanks! And please feel free to close this issue as off-topic, if it doesn't belong here in Issues.

In general aliases will not work perfectly well because you can't guarantee that they propagate intact to error messages and type errors.
For example, the simplest solution would be to replace the alias with the thing it represents at parse time (e.g. treat it as syntactic sugar) but then you'd never see the alias in inferred types or error messages.
You could try to preserve the alias in the syntax tree (e.g. using Alias) but even in that case the alias might still disappear in certain circumstances.  For example if you do something like:
let foo : Neuron = …

in  foo.bar

… that will initiate a subtype check to see if Neuron is a subtype of forall (a : Type) (a : Fields) . { bar : a, b }.  In the simple case you could replace Neuron with the equivalent record type at that point in the code or you could update the record-specific subtype check to add special logic for handling Neuron (and possibly an error message specific to the Neuron type)
I guess what I'm trying to say is that it really depends on how much work you want to do.  The more you want to preserve those type aliases in inferred types and error messages then the more invasive the change to the codebase.

Thanks @Gabriella439 !
My own priority is:

Declaring something Neuron with an annotation causes the typechecker to assert the record has at least Neurons fields (or, that it has exactly Neuron's fields, if this is easier).

And everything else is optional. e.g. I don't care much about the type aliases appearing in inferred types, I don't need to be able to use a Neuron as a subtype of larger records, etc.
My users will mostly be copy-pasting code examples and tweaking them. So the aliases are primarily meant to catch spelling errors and accidentally omitted fields.
Given that, maybe the best way forward is to update the record-specific subtype check, adding special logic for Neuron?

Then the simplest approach is to desugar Neuron to the equivalent record at parsing time

Oh yes, this makes a lot of sense. Thank you!!


Please provide WordPress database export (as of May 3 or 4, 2023)

Hi @phil-evans,
Thank you for adding the new strings to the "rp" domain, which we've just finished translating into French, so I think we're ready for a release candidate (RC1) for deployment.
Could you please send a new WordPress database export for us to download?  On Slack over the #riskprofiler-wp channel would be ideal, as there may be encrypted passwords in the database export, so Slack seems a safer choice.  :-)
Many thanks!

sent in the #riskprofiler-wp channel on slack

Super!  Received!  Thanks so much!  Closing this one as completed also.
I'll send another request for DB export tomorrow after I get the various issues fixed on my end.  Many thanks!


Update docs for removing the CA certificate requirement for SQL cli.

Fixes CC-7176.

This change is


Issue#339.3 More changes to fix budget switching issues

Github Issue (if applicable): #339
Trello Link (if applicable):
Forum Link (if applicable):
Explanation of Bugfix/Feature/Enhancement:
Added code to be aware of when the budget version ID changes.
Recommended Release Notes:
Switching budgets should no longer prevent the Budget Progress Bars and Add Goals Indication features from working properly.

Thanks!


Hosted families not converting correctly in Revit

Hosted families like windows are not converting and sending correctly in the current 2.8 alpha release.
It is also quite weird as the problem only occurs when not sending Everything.
Problems observed:

hosted families are not sent when sending by View or Selection (they work when sending Everything)
the report shows "Conversion returned null" for such families (not a very helpful error message)
it sounds like they should have been converted as children of the host family, but that didn't trigger correctly?
no such problem exists in 2.7

hosted families are not sent when sending by View or Selection (they work when sending Everything)

@teocomi I don't think its related to sending by View, Selection or Everything. It doesn't work after the initial sent even when sent by Everything. see GIF below👇:

Stream Used
https://latest.speckle.dev/streams/62f7dfc963
Files Used
If you want to test it on your end, download the file from following link and try to send FamilyInstances couple times.
https://drive.google.com/file/d/1yx8pg0jGewBGyxfygaLVJU6IIlRE7p1z/view?usp=sharing


Setup flexiable dev container system for Ruby on Rails ENV

[ ] should be compatible with VS code dev containers
[ ] should support RVM
[ ] should support NVM
[ ] should have one non-root(with sudo) and root user
[ ] should install the required ruby version (using args)
[ ] should install the required node version (using args)
[ ] should configure with PostgreSQL
[ ] should configure with Redis
[ ] should have more control over which processes are running

Known issues with current dev container setup

I can't drop DB, because there is always some open connection and I don't know the app that uses the DB.


Landing page for events

Navigating to:
https://ldjam.com/events/ludum-dare
I get a spinner and nothing happens.
I'd suggest either navigating to a page that actually loads something (e.g. just https://ldjam.com/), or creating a page that is relevant to the given event. I.e. shows posts in that event, games in that event, etc.
Another thought:
There is no list of "guides" anywhere, this could be a place for a list of links to various guides. Without knowing about it, there is no way to get to https://ldjam.com/events/ludum-dare/hosting-guide, or https://ldjam.com/events/ludum-dare/rules right now, AFAIK.
(The same thing happens with https://ldjam.com/events/)

/ludum-dare is a group node. It's broken at the moment, but it will eventually be a list of events under it (kinda like how /news) shows the news.


ByteArray key parallelism is not working as expected

When used ByteArray as key in kafka, splitting work by ProcessingOrder.KEY is not working well.
I think because of Lomboks @EqualsAndHashCode, which is not able to infer key type and compare arrays.
I am using ByteArrayDeserializer in my kafka consumer.

    void testEqualsKey() {
        assertNotEquals(
                new KeyOrderedKey(new TopicPartition("1", 1), "1".getBytes()),
                new KeyOrderedKey(new TopicPartition("1", 1), "1".getBytes())
        );
        assertEquals(
                new KeyOrderedKey(new TopicPartition("1", 1), "1"),
                new KeyOrderedKey(new TopicPartition("1", 1), "1")
        );
    }

Hi, we will look into this.
Thanks


Document command line to kill language server

I first asked this feature here.
I use project with Python/C++ over SSH.
After few days of use, I guess VSCode updates and previous language server processes remain dangling. I understand this is improving, and has its own set of issues, but I would like to have an easy way to restart/kill the server.
What is the best way to kill them all?

This LS isn't in node, so if killing node worked before it was likely because the LS's parent exited. The LS should be watching its parent and if the parent exists, will also exit. That may not be working (and may be related or the same as #1755).
On Linux, the actual binary name is Microsoft.Python.LanguageServer; I'd check in ps/top/htop to verify this, but you should be able to kill processes with that name.


Allow register domain with given uuid

Is your feature request related to a problem? Please describe.
No
Proposed Solution
register domain request support optional domain id parameter.
Additional context
Our cadence server running both old and latest version without xdc, to give user the fixed api workflow interface, it's convenient to keep same domain uuid for both system.

I was approached by a contributor for first steps onto this issue, it would be good to share some guidance onto who tackles this issue.
Cadence in a multi cluster environment, domains have a unique UUID even if they share the same name. At Uber for example, we have a couple of regions. PHX and DCA. So a global domain would be created, say "cadence-samples-domain". A global domainis essentially the same domain name under the two regions (PHX and DCA) which are configured to function as Active and Passive for purposes of replication. Both instances of the cadence service would automatically generate a domain UUID when the domain is registered using the CLI with cadence --do test-domain domain register --global_domain true
We don't provide a mechanism to use a specific UUID during registration, but I imagine it would not be hard to create. Now what I definitely do not know is if Cadence depends on the UUID for replicating workflow history or in any way requires domains to have a unique domain UUID. I would suggest grepping the codebase to find out where and how the domain UUID is used.

This can cause issues when you have two domains with the same ID on two different clusters. Connecting them will cause big problems.
We need very good clarification on the problem you want to address.
DomainID is not exposed to the client, so it is purely internal to Cadence backend, what is the problem of having different IDs?

@zedongh could you explain what you are trying to do and where/how you use domain id?

@zedongh could you explain what you are trying to do and where/how you use domain id?

This issue could be closed now. We have different version Cadence last year. One of them is very old version without xdc. For easily upgrade and unify user's interface. Wanna keep both version have same domain uuid (in two different cadence store).


When me upgrade angular to V.15,  npm survey-analytics don`t load some file css

Command
run, serve
Is this a regression?

[X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
In version 14 my survey-analytics works fine when I upgrade to version 15 my survey-analytics doesn't work, when I delete that file data and I ctrl+z again my project runs normally usually, the error only occurs when i intentionally upgrade to version 15, i'm using webpack
Minimal Reproduction
In version 14 my survey-analytics works fine when I upgrade to version 15 my survey-analytics doesn't work, when I delete that file data and I ctrl+z again my project runs normally usually, the error only occurs when i intentionally upgrade to version 15, i'm using webpack
Exception or Error
No response
Your Environment
Angular 15

Anything else relevant?
No response

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.


Trade component

Thanks for the updates. I noticed the behaviour is a little strange when the user doesn't have a balance of the asset


Fix linter issues in pkg/manager/

This change is

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved, some commit checks failed.

pkg/manager/manager.go, line 53 at r1 (raw file):

// VirtletManager provides a main part of Virtlet responding to requests
// from kubelet, talking with tapmanager and libvirt.

Sorry @jellonek but I don't understand that sentence at all.

Comments from Reviewable

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.

pkg/manager/manager.go, line 53 at r1 (raw file):
Previously, pigmej (Jędrzej Nowak) wrote…

// VirtletManager provides a main part of Virtlet responding to requests
// from kubelet, talking with tapmanager and libvirt.

Sorry @jellonek but I don't understand that sentence at all.

Rephrased. PTAL again.

Comments from Reviewable

Reviewed 1 of 1 files at r2, 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.

pkg/manager/manager.go, line 52 at r2 (raw file):

VirtletManager provides the main part of Virtlet which

pkg/manager/manager.go, line 52 at r2 (raw file):

/ V

Comments from Reviewable

Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.

Comments from Reviewable


Column does not exist when using multiple levels of inheritance

This library does exactly what I need so thanks!
However, it doesn't seem to work when using multiple levels of inheritance:-
class A(models.Model):
    hashid = HashidsField(real_field_name="id")

    class Meta:
        abstract = True

class B(A):
    pass

class C(B):
    pass

Python 3.9.9 (main, Feb 26 2022, 15:01:10)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.20.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: c = C.objects.create()

In [2]: C.objects.get(hashid=c.hashid)
---------------------------------------------------------------------------
UndefinedColumn                           Traceback (most recent call last)
.../django/db/backends/utils.py in _execute(self, sql, params, *ignored_wrapper_args)
     83             else:
---> 84                 return self.cursor.execute(sql, params)
     85

UndefinedColumn: column c.id does not exist
LINE 1: ...c"."b_ptr_id" = "b"."id") WHERE "_c...
                                                             ^
HINT:  Perhaps you meant to reference the column "b.id".

If I only use 2 levels, it works - but I need the 3.
Any ideas?

Sorry about the delay, somehow missed the ticket. I'll take a look after work today.
Might be related to #19 .
Good to know the detail that this happens with more than 2 levels of inheritance.

Should be fixed in version 0.6.0(11e25d02779d41e16c72dea0a7c58e1261b2b41f)

Great! Thanks so much. Any idea when 0.6.0 will be released?

Hi @bodgerbarnett , it should be already released now. https://pypi.org/project/django-hashids/#history

@bodgerbarnett , sorry that didn't fix the issue. I'll create a new PR for that.

hi @bodgerbarnett , it should be fixed in version 0.6.5, released just now.

Superb! Working fine now. Thanks so much for your efforts!


Get databaseId for organizations

Following up on #112, we should:

create a utility function to avoid duplication between repos and users streams
use this util to implement a similar behavior for organizations and their children's streams

Some initial thoughts on refactoring
Technically, user{i} could be item{i} and we could extract the TempStream as a ContextStream to be shared between users, repos, and orgs streams
Some pseudo code of what I am thinking about:
ContextStream(request_records, request_body) -> [request_body_reponses]

repo:
request_records = [{repo, org}]
request_body = "{nameWithOwner, databaseId, id: nodeId }"

users
request_records = [{login}]
request_body = "{login, databaseId, id: nodeId }"

#117 is related, and actually makes this refactoring a bit harder because of limitations in the github API.

Quick note/heads up, we also need to differentiate Bots. The current implementation does not work if a bot is specified in the list of user_usernames


default: use layer revisions

master will now fetch upstream repositories instead of local clones.
There is no need to mirror OpenXT sub-project repositories.

v2:

Rebased on master post vglass merge.

Note: Since https://github.com/OpenXT/xenclient-oe/pull/1368 xenclient-oe will no longer use the repositories cloned under ${TOP}/openxt/. To build against local changes of repositories, the currently recommended path is to either use devtool (for local development build-tree) or some externalsrc configuration (e.g, https://github.com/eric-ch/meta-openxt-externalsrc, https://gitlab.com/ericch/meta-vglass-externalsrc).


Cron schedule for recurring backups is not working as expected

On master-head - commit id: 1b0778b1d

*/35 * * * * vs 35 * * * * is interpreted the same way

Expected Result:

b-star35 should have NOT taken a backup at 8.35AM GMT. It should have taken it 35 minutes after the backup was created. Backup CR was created around 8.33 AM

This is working as expected

When */35 * * * * is schedule--> This means every 35 minutes a backup will be taken. Backup CR was created at 8.33. So it is okay to see a backup created at 8.33 (expected). But we should NOT expect to see a backup for this cron schedule at 8.35. Which is not the case.

@sowmyav27 */35 * * * * means every 35th minutes. If you run it through this online cron parses that's what you get. Current time is 10:22 but it says next is at 10:35. So we took a backup when the CR is created, and then again at the 35th minute. This is working as expected then

Closing it as its working as expected.


missing Mouse move behavior

Hi, I cloned this layout from Ben: https://github.com/achtan/zmk-config-from-ben
and there I can see the "Mouse move behavior"

how every In my own repo: https://github.com/achtan/zmk-corne-5-col
I don't see that option...
How can I setup the Mouse move behavior?

Mouse movement stuff is (I think) not yet merged into ZMK main so you'll need to enable it as an experimental feature (don't forget to update your westl.yml accordingly). See https://github.com/nickcoutsos/keymap-editor/wiki/Experimental-ZMK-Features#mouse-emulation

Mouse movement stuff is (I think) not yet merged into ZMK main so you'll need to enable it as an experimental feature (don't forget to update your westl.yml accordingly). See https://github.com/nickcoutsos/keymap-editor/wiki/Experimental-ZMK-Features#mouse-emulation

How exactly should I update west.yml to be able to use mouse feature?

Your config/west.yml file should look something like:
manifest:
  remotes:
    - name: zmkfirmware
      url-base: https://github.com/zmkfirmware
  projects:
    - name: zmk
      remote: zmkfirmware
      revision: main
      import: app/west.yml
  self:
    path: config

If you wanted to use the implementation in https://github.com/zmkfirmware/zmk/pull/778 for example, you might change it like so:
manifest:
  remotes:
    - name: zmkfirmware
      url-base: https://github.com/zmkfirmware
+    - name: krikun98
+    - url-base: https://github.com/krikun98
  projects:
    - name: zmk
-      remote: zmkfirmware
-      revision: main
+      remote: zmkfirmware
+      revision: mouse-pr
      import: app/west.yml
  self:
    path: config

Hi there! The mouse functionality is not merged to the main branch and there is official support
https://zmk.dev/docs/keymaps/behaviors/mouse-emulation
It seems like the keymap output is including the incorrect file:
#include <dt-bindings/zmk/mouse.h>

instead of:
#include <dt-bindings/zmk/pointing.h>
```c

Mouse emulation also needs to be enabled via config:

CONFIG_ZMK_POINTING=y

Just a heads-up, since I just tried to update my config and then suddenly the mouse functionality stopped working :)

Hmm, I'll try to look at this soon. The config aspect is annoying because I don't want to search out and parse those files...

Ok, I've refreshed behaviors from the current ZMK source. Now when selecting a mouse behavior it'll show a little warning to ensure it's enabled in your build configuration. It's untested as I'm not around a ZMK keyboard but it should include the correct header and... I think the binding parameters are unchanged.


Looser meta enforcement option (aka allowing apply to not enforce a rename in dd.apply_and_enforce)

I would like to make a case for allowing a more flexible dd.apply_and_enforce specifically, and more generally permitting a more flexible dask operation. I would like to be able to avoid the _rename call in dd.apply_and_enforce, and instead validate meta.columns is a subset of df.columns.
I'll briefly describe my use case:
We have multiple sensors deployed at multiple client facilities. The process of updating a sensor is rarely smooth and clients usually update at their convenience (some with hard limitations on # of updates a year). Sensor updates carry new, removed and modified datasets, which translates to new columns in a dask.dataframe. Collecting data from multiple sensor versions makes it difficult for us to know which columns are to be expected in advance (sensor versions are created weekly and often add and remove dozens of columns). The data itself is pretty structured.
In the past, we created pandas dataframes with the right labels for each sensor separately and directly instantiated a dd.DataFrame and everything worked pretty good. Several sensor metadata column names were the only input to to columns. We couldn't use dask's interface to access columns except those initially declared (df['Sensor_feature_1'] didn't work obviously), but that wasn't really needed.
I'm aware of the benefits of being strict and declarative about columns, but to me dask's previous flexibility had tremendous power and I would like to try bringing it back as a default-off flag with some restrictions and perhaps stricter sanity and dedicated tests, making it a feature and not a side-effect.
For now, I see this as:

Adding strict=True parameter to dd.DataFrame, to avoid users doing it without explicit knowledge for now.
Using that parameter in dd.apply_and_enforce (and perhaps other appropriate locations in the future).
Adding sufficient tests for that specific use cases.
Adding documentation with some kind of a disclaimer.

Thoughts?

In principle I'm for opting-in to looser restrictions as you suggest.
I'm against adding another parameter to the actual dataframe object itself.  Tracking parameters through all DataFrame calls is expensive.  Currently there are only four (graph, name, meta, divisions)  However we can probably still accomplish this either through keyword arguments to the relevant methods or through globals.  I think that we would add strict as a parameter only after this became a more significant use case from more users.
Alternatively, we could consider being loose by default, if we can demonstrate that we can do it in a way that never results in incorrect behavior for the known columns.  I'm not sure if this is possible, but might be worth thinking about.
cc @jcrist

I'm against adding another parameter to the actual dataframe object itself.

Valid point. Adding another parameter to the DataFrame constructor was just an interface suggestion, any approach is ok by me.

we can probably still accomplish this either through keyword arguments to the relevant methods or through globals.

I tend to favor keyword arguments, but that adds some boilerplate kwargs passing from function to function, which dask already has a bit too much of IMHO. Sounds good nevertheless.

we could consider being loose by default, if we can demonstrate that we can do it in a way that never results in incorrect behavior for the known columns.

Perhaps later on, if you ask me.

Sorry for jumping in late here after you've already submitted a PR. I'm slightly against this, as every use case I can see can be solved in what I think is a cleaner way.

If you want to treat all the frames as only having the intersection of their columns, then you can cull the extra columns on load using either the usecols keyword to readcsv (either in dask or pandas), or just subsetting the columns directly as my_df[list_of_columns]. This leads to each partition having matching metadata.

If you want to treat all the frames as having the union of their columns, then dd.concat will do this for you. Pandas does this already, but dask doesn't in some cases (fixed in #1877). Here you'd use dd.concat(dask_dataframes_for_each_file). If a partition is missing a column, it's filled with NaNs.

I'd really like to continue being strict about metadata - in the past being more lax has led to hard to diagnose bugs and harder to maintain code.

Just to be clear, my use-case is your second bullet, so I don't think the first is relevant to this issue.
I totally understand your concern about being less strict. I expected that (and was hoping for your involvement here) and for that reason I suggested this as somewhat of an experimental/"use at your own risk" type of thing.
Regarding the concat suggestion:
It took me a while to reply because I was benchmarking the two approaches:

performing the same task: parsing files, minor cleanups, saving result to hdf files.
on the same dataset: roughly 50g of data.
in the same environment: 12cores xeon, 128g ram.

Had wildly different results. With my PR it took 4 and a half hours (and didn't peek above 30g of used ram). Without my PR and with calling concat it died for lack of memory after 10 hours. This might be handled as a concat performance issue (and if you wish I'll open a dedicated issue with more thorough benchmark and a reproduction), but I can understand why concat won't be as efficient as my suggestion in certain cases (mine included).
WDYT?

It looks like this proposal was rejected.  Closing.  My apologies for the lack of response.


Update readme to use spring boot

Codecov Report

Merging #29 (c44ba78) into 0.4.x (95a31af) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##            0.4.x      #29   +/-   ##
=======================================
  Coverage   97.67%   97.67%
=======================================
  Files          41       41
  Lines         817      817
  Branches       39       39
=======================================
  Hits          798      798
  Misses         18       18
  Partials        1        1

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


Respect collection_interval and filter in EventQuery implementations.

The result is that any EDP simulator instance using a known EventQuery impl other than RandomEventQuery should respect these fields.
This also fixes an issue where event filters with empty expressions were not properly being treated as filter predicates that always evaluate to true. Finally, this readjusts test templates to better match real-world usage (e.g. dropping age and gender fields from the Video template, having them on the common Person template instead.)

This change is

I added a Person event template to TestEvent to hold all fields that relate to the virtual person. I don't think any of the templates had the social grade field.
I expect that in practice these will be part of a common template for a given market and that templates for specific ad formats will be mutually exclusive (oneof in protobuf terms).
CC @iverson52000 and @jcorilla
There are two changes in this PR that are relevant for the CSV event query:

The date format in our synthetic event CSV files is dd/MM/yyyy. I updated the test data to make this clearer.
An empty filter expression should be treated as an expression that always evaluates to true. There was a test that was instead verifying that an error is thrown in this case.

Swapping reviewers since @uakyol is OOO.

Swapped reviewer as Dulio is out.


Adding note about using nltest to check for 2016 DC

@mapalko & @Dansimp
Based on feedback from my customer and assistance from the GTP/AADP identity team - adding the nltest command to find a 2016 DC. This missing information resolved my customer's issue with problematic AADJ devices.

I don't think this makes sense to put in this specific part of the documentation. I think it should be included as a note in the actual deployment guidance.

Closing the PR based on Matthew's comment above. Thank you for taking the initiative to provide contributions.


feat(EndpointAnalyticsRemediationScripts): added remediation for the …

…Windows client branding

Hi Niklas Rast,
This seems exactly like the script I made and featured in my blogpost: https://skotheimsvik.no/rare-windows-endpoint-branding-using-intune-remediation
Have you just copy/pasted that one and added your name to i?


Deduping creds db

Empire Version
Empire: PowerShell post-exploitation agent | [Version]: 1.5.0
OS Information (Linux flavor, Python version)
Ubuntu 16.04, python 2.7
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
Run mimikatz a few times, and you end up with a mountain of duplicate credentials. it would be really neat to be able to dedupe those, or 'search them' in some meaningful way.

You can tab-complete after typing "creds" and you can list them by type. You can also filter by things such as UserName by typing "creds " and it will list only for that user. I will look at how the Mimikatz output is getting parsed and check why duplicate creds aren't getting removed.
Thanks

I'm on a gig where there are multiple domains, and I find it would be super super handy to be able to filter just by domain!

We're looking into the de-duping issue. For searching domains, with https://github.com/PowerShellEmpire/Empire/commit/7d697cb4b7c5c73a12edfa944f0c4e1481271cb4 the command creds X (wildcards/* accepted) should now search domain, username, hostname, and the password itself.

There should be a fix for de-depuping credentials in the dev branch now (https://github.com/PowerShellEmpire/Empire/issues/248). Credentials are uniquified on (host, domain, username, password).

i will go git pull, and check :D

okay, well after the git pull i still have the same number of creds, with dozens of repeats - I wager that "what's already in the db" isn't going to get deduped, but all new stuff is?

also attempting to search by wildcard doesn't seem to work? unless an asterisk doesn't count..

(there should be a dozen or so repeated pws that begin with 'm' in my db)

er, wait, sorry - I had to change to the dev branch.
New to git ;b

wildcarding works for me now.


RE: Setup self-attestation feature #342

Hi @TitleistProV1, could you please confirm if you are still facing the above issue, or it has been resolved. also kindly refer to all the comments in the related issue.

Marking the issue as closed due to no response.