Unscheduling jobs at runtime

Excuse me if I've overlooked this information somewhere on this site.
I am trying to find out whether Whenever supports scheduling and unscheduling jobs at runtime.
This means that the app reponds to the user request and starts a cron job. After a while (couple of days later) the app responds to another request and stops the same cron job that it started.
I don't see that the sheduled job is saved anywhere or that it was given an ID or a tag...
If I could give it a tag, then I could say:
"Find all cron jobs with this tag an unschedule them from executing ever again."

Rather than adding and removing cron jobs on the fly, I'd have a single cron job that runs a script under your control (like a rake task). Then have that task query the database to work out what scripts it should run.

For example a Web App where users create games. Every game lasts several days. Depening on when the game started and how it's set up, the game must perform some work (some calculations and generation of data in DB) at specific moments in time even when none of the players are online.
When the game is ended and deleted, its scheduled jobs should be deleted.
This is because any new games that get created will have scheduled jobs at potentially very different time of day.

Yep, so your script would be set to run every 10 minutes (for example), query the database to see what games are currently active, and then run any tasks that need to be run for each game.

But this would not be sufficient.
It would be preferable that the scheduled job gets executed to 1 second precision.
And to set that a script gets executed every second would imply massive processing overhead.

You'll only get to 1 minute regularity with Cron anyway. I think you should
revisit why you need this process to run so frequently and at such
precision.
Does this even need to be a scheduled task? Can't the game calculate at
runtime what the correct state should be based on its knowledge of what
"pseudo-scheduled" tasks would've done?

I don't think this is within the remit of Whenever or indeed cron. I'm going to close this, but feel free to continue any discussion here :)


Not able to set lparams on cardView

I'm new to anko, but so far I've not been able to find a way to set layout parameters on a cardView.
i.e.
cardView {

}.lparams { // lparams does not exist on cardView
    margin = dip(5)
}

@kiangtengl
lparams should be wrap under layout. You can apply lparams method to whatever view you want.
For example:
textView {
xxx
}.lparams {
xxx
}

This won't work.
While try to wrap this textView under linearLayout:
linearLayout {
   lparams {
      width = wrapContent
      height = wrapContent
    }
    textView {
    xxxx
    }.lparams {
    width = matchParent
    height = wrapContent
    }
}

This should work.


Refactored RobotCollisionChecker

This pull request ports #342 to master.
This depends on:

https://github.com/personalrobotics/or_ompl/pull/67

:+1:


Add ClaimToGroupMapper

Add CI/CD plumbing
Add Group mapper, inspired by https://github.com/amomra/oidc-group-mapper

Added multi-stage build


Add "Lập Trình Căn Bản" Book to Vietnamese books list

What does this PR do?
Add resource(s)
For resources
Description
Added a new book to the Vietnamese books list.
Why is this valuable (or not)?
The current Vietnamese books list is quite limited, and this addition helps improve the diversity and quantity of available resources.
How do we know it's really free?
I have thoroughly verified that this book is freely available for readers.
For book lists, is it a book? For course lists, is it a course? etc.
Yes, this is a book.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

This book appears to have been taken without permission from codegym.vn and appears not to be an authorized distribution. Please see docs/CONTRIBUTING.md guidelines.


Determine gas costs for month of March

Problem
Protocol is expensive to operate and we don't know exactly how much we're spending
Impact
Runway
Proposed Solution
Acceptance Criteria
From an end user perspective, the below criteria must be met to consider this done:

[ ]

Complexity: 8
See the discussion in Sprint Poker #26
Powered by Parabol

Urgency: 3
See the discussion in Sprint Poker #27
Powered by Parabol

Impact: 3
See the discussion in Sprint Poker #30
Powered by Parabol

Urgency: 3
See the discussion in Sprint Poker #30
Powered by Parabol

stale, closing


video h264 interrupted

dear author ,
when put video  rtp stream into livekit room , sometimes the video got interrupted , the rtp transport at then same machine,  the webrtc api like below :
videoRTCPFeedback := []webrtc.RTCPFeedback{{"ccm", "fir"}, {"ccm", "tmmbr"}, {"nack", ""}, {"nack", "pli"}}
videoTrack, err := webrtc.NewTrackLocalStaticRTP(webrtc.RTPCodecCapability{
	MimeType:     webrtc.MimeTypeH264,
	ClockRate:    90000,
	SDPFmtpLine:  "level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f",
	RTCPFeedback: videoRTCPFeedback,
}, "video", "pion2")

could u give me some advice ,thank you !

Please provide more details. Does it work initially and then stops? Does it resume some time later?
Which client are you using?

closing due to lack of response/details


Tools: fix static code analysis issue in board N6010 module.

Signed-off-by: anandaravuri<EMAIL_ADDRESS>

Coverage increased (+0.02%) to 62.589% when pulling e1a071be438927420548480c813371d6b86a5b55 on aravuri/fix_kw into 1bc5607f922a811d61424b8ec9ee2ac18bb8e9b1 on master.


Add the empty, empty_like methods to Tensor

I added the empty and empty_like methods to Tensor. These produce uninitialized tensors that do not require a (potentially costly) memset call. Please see #1371 for the original issue.

@LaurentMazare, what are your thoughts on this addition?

No real interest for this, by design tensors are immutable in candle (except for vars) so contrary to PyTorch there isn't much of a point making an uninitialized tensor that couldn't be set later anyway. We would need a pretty compelling use case to add this.


[BUG] Pnginfo Template loss wildcard name when use Adetailer

Template wrong information from adetailer prompt
Png Info:
bust_portrait, colorful, beautiful, delicate_face, fairytale, A Serbian looking lady wearing light brown gradient Tassel skirt with pleats and pale color rose on leg width and flowers and earrings, aqua theme costume, soft_pastel_colors, romantic, vintage, beautiful_patterns, gouache_painting, ethereal, Great_Gatsby, spring_fashion, Vogue_fashion, opulent, Man_Ray, Rolf_Armstrong, colorful_jeweled_ballgown, light_on_face, Maya🦩, lora:rococo_2:0.6:lbw=1,1,1,0,1,1,0,0,1,1,1,1, 18th century, medium hair with hair over one eye and hair slicked back, white split-color hair, lora:sd_xl_dpo_lora_v1-128dim:0.7, lora:ZoomSliderXL01:-0.4
Negative prompt: (asian:2), (aidxlv05_neg:1.4), close-up, cut off, Back view, elderly, wrinkles, sorrowful, sad
Steps: 20, Sampler: Euler a, CFG scale: 5, Seed:<PHONE_NUMBER>, Size: 1024x1024, Model: realcartoonXL_v6, Denoising strength: 0.2, ADetailer model: face_yolov8n.pt, ADetailer prompt: "North Germanic people looking face, detail face, {2$$gownList/other/faceWord}", ADetailer negative prompt: "(asian:1.6), elderly, wrinkles, sorrowful, sad", ADetailer confidence: 0.3, ADetailer mask only top k largest: 1, ADetailer dilate erode: 4, ADetailer mask blur: 4, ADetailer denoising strength: 0.25, ADetailer inpaint only masked: True, ADetailer inpaint padding: 32, ADetailer model 2nd: hand_yolov8s.pt, ADetailer prompt 2nd: detail finger, ADetailer negative prompt 2nd: "extra fingers, interlocked fingers", ADetailer confidence 2nd: 0.5, ADetailer mask only top k largest 2nd: 2, ADetailer dilate erode 2nd: 4, ADetailer mask blur 2nd: 4, ADetailer denoising strength 2nd: 0.3, ADetailer inpaint only masked 2nd: True, ADetailer inpaint padding 2nd: 32, ADetailer ControlNet model 2nd: sai_xl_depth_256lora [73ad23d1], ADetailer ControlNet module 2nd: depth_hand_refiner, ADetailer version: 24.1.2, Template: "North Germanic people looking face, detail face, {2$$gownList/other/faceWord}", Negative Template: "(asian:1.6), elderly, wrinkles, sorrowful, sad", Hires checkpoint: dreamshaper_8 [879db523c3], Hires prompt: "detailed texture, rich detail, detail face, detail fingers, bright global illumination, lora:sd15_lcm_lora_rank1:0.7", Hires negative prompt: "EasyNegativeV2, blurry, extra fingers, depth of field, blurry background", Hires upscale: 1.25, Hires steps: 10, Hires upscaler: R-ESRGAN 4x+, Lora hashes: "sd15_lcm_lora_rank1: a98be391e9ea", Eta: 0.5, ControlNet 0: "Module: depth_hand_refiner, Model: sai_xl_depth_256lora [73ad23d1], Weight: 1.0, Resize Mode: ResizeMode.INNER_FIT, Low Vram: False, Guidance Start: 0.0, Guidance End: 1.0, Pixel Perfect: True, Control Mode: ControlMode.BALANCED, Hr Option: HiResFixOption.BOTH, Save Detected Map: True"

https://github.com/adieyal/sd-dynamic-prompts/pull/790


Use alpine as a pipectl base image

What this PR does / why we need it:
The go_image rule uses distroless base runtime images, which makes Kapetanios runner unavailable because they lack even a basic shell for exploring the filesystem.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

/lgtm

/lgtm

/approve

/approve


vscode-extensions.ms-vsliveshare.vsliveshare-pack: Init at 0.4.0

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Heads up, this uses the Microsoft Pre-Release Software License.

Heads up, this uses the Microsoft Pre-Release Software License.

Looks like we're building from source for liveshare extensions which is failing on macOS.
Installation using this step seems to work fine without need for build from source - maybe I'm missing something (cc @grahamc)

Looks like we're building from source for liveshare extensions which is failing on macOS.
Installation using this step seems to work fine without need for build from source - maybe I'm missing something (cc @grahamc)

Closing for now


spring native放弃了bootstrap支持

我最近在学习spring native , 但是发现了一个问题. spring native已经放弃了对bootstrap的支持. 但是cloud Alibaba 貌似还没有相应的处理, 导致在项目启动时, 加载配置中心出错. 是否可以新增个alibaba的native插件, 使我可以对接native, 就像Google出的native-support一样, 我希望能提供一个这样的native支持, 感谢!
版本信息:
spring native: 0.11.x,0.12.0
spring cloud: 2021.0.3(2021.0.1以上测试了是和cloud alibaba兼容的)
spring boot: 2.6.8 (2.6.3以上测试了,也是和cloud alibaba兼容的)
spring cloud alibaba: 2<IP_ADDRESS>

卧槽 楼上的大佬 我刚在研究spring native 正愁找不到人 你就出来了

卧楼的大佬 我刚在研究春天的人 正愁找不到人 你就出来了

给个邮箱联系下啊 交流交流

<EMAIL_ADDRESS>

Since 2<IP_ADDRESS>, you can use import instead of bootstrap.
Currently, SCA has not done compatibility testing with Spring Native, so don't use Spring Native for the current project !
This need a lot work ......

I know that Alibaba has no support for native products However, I think the Alibaba technical team can start to study it, just like the native support provided by Google Alibaba has always been the leader of the Internet in China. I think 80% of the projects in the Chinese market use springcloud alibaba So I want to get help from native support so that I can keep up with the mainstream of technology.
Spring native has been tried by big manufacturers abroad, such as Google, Facebook and twitter Therefore, I think we can also keep up with the top technology and produce one. There are many like-minded people who can work together and take the lead

Since 2<IP_ADDRESS>, you can use import instead of bootstrap.
Currently, SCA has not done compatibility testing with Spring Native, so don't use Spring Native for the current project !
This need a lot work ......

I know that Alibaba has no support for native products However, I think the Alibaba technical team can start to study it, just like the native support provided by Google Alibaba has always been the leader of the Internet in China. I think 80% of the projects in the Chinese market use springcloud alibaba So I want to get help from native support so that I can keep up with the mainstream of technology. Spring native has been tried by big manufacturers abroad, such as Google, Facebook and twitter Therefore, I think we can also keep up with the top technology and produce one. There are many like-minded people who can work together and take the lead

I agree with you, please add my dingtalk account: steverao2021, so that we can talk about this topic.


FEATURE REQ: Switch Formation when Morale Low

The symbol shows up in the prebattle scene before pressing the last button.  We could look for it, set a flag, and if set, next battle switch to the next formation.  Could also just add a delay in, or when it sees it start adding a delay in.  Quite a few things, but something that would be cool to address.
I am competent in Python, but have not had time to implement this myself.  Just found this script yesterday.

Sure, it seems pretty useful. If you want to try implementing this yourself, feel free to do so and open a pr. For now I'll label it as an "Enhancement".


CodeBlockLowlight doesn't seem to work

Describe the bug
I'm trying to get code syntax highlighting using https://tiptap.dev/docs/editor/extensions/nodes/code-block-lowlight
However, it seems not to work following the setup on the docs.
BTW I'm not sure why importing the ./styles.css doesn't work in codesandbox, but works fine locally. However, the colors are all washed and I'm wondering how I can get them to work with the styles you've already applied to the code block.
To Reproduce
https://codesandbox.io/p/devbox/mui-tiptap-demo-forked-czw63n
Steps to reproduce the behavior:

I added the required dependencies
I set up according to docs
Try to add the following into the editor (3 ticks + typescript)

const hello = "Hello"

Expected behavior
Expecting the syntax highlight to work :(
Screenshots

System (please complete the following information)

mui-tiptap version: 1.12.0
@tiptap/react version: 2.8.0
@mui/material:  6.1.2
@mui/icons-material version: 6.1.2
Copy-paste your extensions array used for the editor:

import "./styles.css";
import type { EditorOptions } from "@tiptap/core";
import { Blockquote } from "@tiptap/extension-blockquote";
import { Bold } from "@tiptap/extension-bold";
import { BulletList } from "@tiptap/extension-bullet-list";
import { Code } from "@tiptap/extension-code";
// import { CodeBlock } from "@tiptap/extension-code-block";
import { CodeBlockLowlight } from "@tiptap/extension-code-block-lowlight";
import { Color } from "@tiptap/extension-color";
import { Document } from "@tiptap/extension-document";
import { Dropcursor } from "@tiptap/extension-dropcursor";
import { FontFamily } from "@tiptap/extension-font-family";
import { Gapcursor } from "@tiptap/extension-gapcursor";
import { HardBreak } from "@tiptap/extension-hard-break";
import { Highlight } from "@tiptap/extension-highlight";
import { History } from "@tiptap/extension-history";
import { HorizontalRule } from "@tiptap/extension-horizontal-rule";
import { Italic } from "@tiptap/extension-italic";
import { Link } from "@tiptap/extension-link";
import { ListItem } from "@tiptap/extension-list-item";
import { OrderedList } from "@tiptap/extension-ordered-list";
import { Paragraph } from "@tiptap/extension-paragraph";
import { Placeholder } from "@tiptap/extension-placeholder";
import { Strike } from "@tiptap/extension-strike";
import { Subscript } from "@tiptap/extension-subscript";
import { Superscript } from "@tiptap/extension-superscript";
import { TableCell } from "@tiptap/extension-table-cell";
import { TableHeader } from "@tiptap/extension-table-header";
import { TableRow } from "@tiptap/extension-table-row";
import { TaskItem } from "@tiptap/extension-task-item";
import { TaskList } from "@tiptap/extension-task-list";
import { Text } from "@tiptap/extension-text";
import { TextAlign } from "@tiptap/extension-text-align";
import { TextStyle } from "@tiptap/extension-text-style";
import { Underline } from "@tiptap/extension-underline";
import { all, createLowlight } from "lowlight";

import CustomMention from "./extensions/mention/CustomMention";

const lowlight = createLowlight(all);

import { useMemo } from "react";
import {
  FontSize,
  HeadingWithAnchor,
  LinkBubbleMenuHandler,
  ResizableImage,
  TableImproved,
} from "mui-tiptap";
import { mentionSuggestionOptions } from "./extensions/mention/mentionSuggestionOptions";

export type UseExtensionsOptions = {
  /** Placeholder hint to show in the text input area before a user types a message. */
  placeholder?: string;
};

// Don't treat the end cursor as "inclusive" of the Link mark, so that users can
// actually "exit" a link if it's the last element in the editor (see
// https://tiptap.dev/api/schema#inclusive and
// https://github.com/ueberdosis/tiptap/issues/2572#issuecomment-1055827817).
// This also makes the `isActive` behavior somewhat more consistent with
// `extendMarkRange` (as described here
// https://github.com/ueberdosis/tiptap/issues/2535), since a link won't be
// treated as active if the cursor is at the end of the link. One caveat of this
// approach: it seems that after creating or editing a link with the link menu
// (as opposed to having a link created via autolink), the next typed character
// will be part of the link unexpectedly, and subsequent characters will not be.
// This may have to do with how we're using `insertContent` and `setLink` in
// the LinkBubbleMenu, but I can't figure out an alternative approach that
// avoids the issue. This is arguably better than being "stuck" in the link
// without being able to leave it, but it is still not quite right. See the
// related open issues here:
// https://github.com/ueberdosis/tiptap/issues/2571,
// https://github.com/ueberdosis/tiptap/issues/2572, and
// https://github.com/ueberdosis/tiptap/issues/514
const CustomLinkExtension = Link.extend({
  inclusive: false,
});

// Make subscript and superscript mutually exclusive
// https://github.com/ueberdosis/tiptap/pull/1436#issuecomment-1031937768

const CustomSubscript = Subscript.extend({
  excludes: "superscript",
});

const CustomSuperscript = Superscript.extend({
  excludes: "subscript",
});

/**
 * A hook for providing a default set of useful extensions for the MUI-Tiptap
 * editor.
 */
export default function useExtensions({
  placeholder,
}: UseExtensionsOptions = {}): EditorOptions["extensions"] {
  return useMemo(() => {
    return [
      // We incorporate all of the functionality that's part of
      // https://tiptap.dev/api/extensions/starter-kit, plus a few additional
      // extensions, including mui-tiptap's

      // Note that the Table extension must come before other nodes that also have "tab"
      // shortcut keys so that when using the tab key within a table on a node that also
      // responds to that shortcut, it respects that inner node with higher precedence
      // than the Table. For instance, if you want to indent or dedent a list item
      // inside a table, you should be able to do that by pressing tab. Tab should only
      // move between table cells if not within such a nested node. See comment here for
      // notes on extension ordering
      // https://github.com/ueberdosis/tiptap/issues/1547#issuecomment-890848888, and
      // note in prosemirror-tables on the need to have these plugins be lower
      // precedence
      // https://github.com/ueberdosis/prosemirror-tables/blob/1a0428af3ca891d7db648ce3f08a2c74d47dced7/src/index.js#L26-L30
      TableImproved.configure({
        resizable: true,
      }),
      TableRow,
      TableHeader,
      TableCell,

      BulletList,
      Document,
      HardBreak,
      ListItem,
      OrderedList,
      Paragraph,
      CustomSubscript,
      CustomSuperscript,
      Text,

      // Blockquote must come after Bold, since we want the "Cmd+B" shortcut to
      // have lower precedence than the Blockquote "Cmd+Shift+B" shortcut.
      // Otherwise using "Cmd+Shift+B" will mistakenly toggle the bold mark.
      // (See https://github.com/ueberdosis/tiptap/issues/4005,
      // https://github.com/ueberdosis/tiptap/issues/4006)
      Bold,
      Blockquote,

      Code,
      Italic,
      Underline,
      Strike,
      CustomLinkExtension.configure({
        // autolink is generally useful for changing text into links if they
        // appear to be URLs (like someone types in literally "example.com"),
        // though it comes with the caveat that if you then *remove* the link
        // from the text, and then add a space or newline directly after the
        // text, autolink will turn the text back into a link again. Not ideal,
        // but probably still overall worth having autolink enabled, and that's
        // how a lot of other tools behave as well.
        autolink: true,
        linkOnPaste: true,
        openOnClick: false,
      }),
      LinkBubbleMenuHandler,

      // Extensions
      Gapcursor,
      HeadingWithAnchor,
      TextAlign.configure({
        types: ["heading", "paragraph", "image"],
      }),
      TextStyle,
      Color,
      FontFamily,
      FontSize,
      Highlight.configure({ multicolor: true }),
      HorizontalRule,

      ResizableImage,
      // When images are dragged, we want to show the "drop cursor" for where they'll
      // land
      Dropcursor,

      TaskList,
      TaskItem.configure({
        nested: true,
      }),

      CustomMention.configure({
        suggestion: mentionSuggestionOptions,
      }),

      Placeholder.configure({
        placeholder,
      }),

      CodeBlockLowlight.configure({
        lowlight,
      }),

      // We use the regular `History` (undo/redo) extension when not using
      // collaborative editing
      History,
    ];
  }, [placeholder]);
}

Additional context
Add any other context about the problem here.

Have u also set a css file for code lowlight?
From my expereince, lowlight just adds classNames, therefore you should write css for your own.
There are plenty of sites that provide highlight css file that you can use.
// your extensions
CodeBlockLowlight.configure({
        lowlight: createLowlight(common),
      }),

// lowlight.css
...
  .hljs-variable,
    .hljs-template-variable,
    .hljs-attribute,
    .hljs-tag,
    .hljs-name,
    .hljs-regexp,
    .hljs-link,
    .hljs-name,
    .hljs-selector-id,
    .hljs-selector-class {
      color: #f98181;
    }
...

Thanks for chiming in @semanticist21 and helping out! That sounds like the right solution to me, so I'll close this. If there's still some problem that is specific to mui-tiptap, feel free to chime in again.


want to add the frontend of the profile section which user can see his information and can edit i want do it's front end and backend both

please assign this issue to me and also label it's level and also add gssoc tag to it

please assign this issue to me and also label it's level and also add gssoc tag to it

Hello @sakshamgumber , Go for it
All the Best

same issue #37

sorry but you are doing only ui side but i am doing backend as well as frontend so my level is more of it

Its not about the level; its the same issue to which I was assigned. The content you mentioned for this issue is the same as what I mentioned.

i am doing modification in the backend code which i have alreday done and now doing work on frontend

Duplicate of #37

That's why I stopped working on this project.


Cache.markStale + houdini_load.fetch not reaching the server.

Describe the bug
I have a query defined, and it does not refetch when i tell it to.
It looks like this:
export const _houdini_load = graphql(`
    query GetSentence($input: GetSentence_Input!) @cache(policy: NetworkOnly) {
    }
}

here i try to mark it as stale and refetch.
        cache.markStale("GetSentence");
        const variables = _GetSentenceVariables({ params: { id: gameId } });
        const response = await _houdini_load.fetch({ variables });

no request is sent to the server.
houdini config
const config = {
    // defaultCachePolicy: "NetworkOnly",
    features: {
        imperativeCache: true
    },
}

Severity
blocking an upgrade
Steps to Reproduce the Bug
        "houdini": "^1.2.10",
        "houdini-svelte": "^1.2.10",

Reproduction
No response

Could you add where you have these code blocs?
From what I understand, imperativeCache is not needed here.
Note also that cache is not used in the kit server.

sure.
this snippet is from a +page.js in my routes folder:
export const _houdini_load = graphql(`
    query GetSentence($input: GetSentence_Input!) @cache(policy: NetworkOnly) {
    }
}

this is in a store.js in the same directory as the query above.
        cache.markStale("GetSentence");
        const variables = _GetSentenceVariables({ params: { id: gameId } });
        const response = await _houdini_load.fetch({ variables });

some more context on.
i create a store that contains a fetchSentence function.
this function is called once on init of the store and later from a storemethod.
the init returns a fresh sentence. no problem.
but when i call fetchSentence later, the sentence returned by GetSentence is the same as the old even tho i marked the cache as stale AND set the query to NetworkOnly.
function createStore() {
    const Store = writable({
        sentence: null,
        error: null
    });
    const { subscribe, set, update } = Store;

    const fetchSentence = async (gameId) => {
        cache.markStale("GetSentence");
        const variables = _GetSentenceVariables({ params: { id: gameId } });
        const response = await _houdini_load.fetch({ variables });
        const error = response.errors && response.errors[0];
        const sentence = !error && response.data.GetSentence;
        return { sentence, error };
    };
   [...]
    return {
        subscribe,
        init: async ({ gameId }) => {
            const { sentence, error } = await fetchSentence(gameId);
           [...]
    },
        getSentence: async ({gameId}) => {
            const { sentence, error } = await fetchSentence(gameId);
           [...]
     }
 }

I don't really get why you are doing all this. You are somehow recreating the store that Houdini is already giving you 🤔. I'm maybe missing something?
I would do something like:
# +page.js
export const _houdini_load = graphql(`
    query GetSentence($input: GetSentence_Input!) @cache(policy: NetworkOnly) {
    }
}

And in data of your +page.svelte, you have your store, and you can refetch.
In Addition, you can do also this in any other *.svelte file:
<script>
const store = new GetSentenceStore()

const getNewOne = () => {
  store.fetch({ gameId: 7 })
}
</script>

<button on:click={getNewOne}>Get Data Plz</button>
{JSON.Stringify($store, null, 2)}

@jycouet i sent an abbreviated version of the store. there is a lot going on in there. including fetching and storing multiple sentences in parallel.
this method just doesnt fit my architecture.

Okay, sorry that I didn't grasp what you are trying to do.
I'm not sure how to help you best.
For sure, you can do a "bigger" or "custom" store to have your right abstraction but in order to help I need more context/code. When you are in the client, houdini provides you regular stores... So you can derive and do everything you want. The code I suggested is naive, but it's like this that you should interact with stores.
What I can point out, is that "_houdini_load" is meant to be used in a universal load function.
Let me know how to help more 👍

ok i got it to work the way i like.
replaced _houdini_load with sentenceStore.fetch basically. but still in the context of my store. storeception.

Great to read 🎉

what was the issue tho wiht my invalidating cache strategy?

In the fetch function you have the policy arg where you can tune stuff directly.
"manual" cache invalidation is for more complex usecases


Is Indoor Navigation possible with a Custom Map?

Is Indoor Navigation possible with a Custom Indoor Map I create for a certain building?

Yes, indoor navigation is possible with custom maps, both in online and offline scenarios.

Can I have any sample code Indoor Navigation implemented in Xamarin.Forms ?

@DivyaVaniChinta Here's a demo of indoor navigation implemented with what's available in the current release of the API: https://github.com/Esri/arcgis-runtime-demos-dotnet/tree/main/src/CampusRouting
Keep checking the release announcements for future enhancements in support for indoor navigation.


Elang/OTP 21; OTP-14666: os:putenv and os:getenv no longer access the process environment directly

We can no longer resolve DLL dependencies by modifying the PATH just before loading the driver/NIF.

Fixed with issue d9068e0248af56744ffe4c26ae351b3f053d116d .


Random INT

Is there a way to randomize and integer so I can randomize a NSG priority rule?

There are no template function to create a random integer, it would be quite nice though. If you want to be really creative and forget about being user friendly you could do something like this:
// generate guid
var randomGuid = guid(subscription().id, deployment().name, resourceGroup().id)
// define delimeters
var delimeters = [
  'a'
  'b'
  'c'
  'd'
  'e'
  'f'
  '-'
]
// create a string array from the guid with only numbers, if empty just multiply the loop index with 3(just to make sure that it's not empty)
var justNumbers = [for (number, i) in split(randomGuid, delimeters): ((number == '') ? i+1*3 : number)]
// concatenate the first 5 items in the array, take first 4 characters and convert to integer
var randomNumber = int('${take('${justNumbers[0]}${justNumbers[1]}${justNumbers[2]}${justNumbers[3]}${justNumbers[4]}',4)}')

output randomNumberInt int = randomNumber

Why would you want randomize an NSG rule?

We need to add a dynamic range of NSG rules, so we need a dynamic range of priority number.

I get that you need to assign some priority numbers, but I'm not following why you need them to be random.

I want to assign a random priority between, for example 100 and 200

Why random? Why not predefined values?

Thanks for getting me on the right path I choose to set the priority static


WP Dashboard not working

Hello.
When I try to get Plausible to work in WP, with the dashboard feature, I enter the shared link created from the system, click the "View your stats in your WordPress dashboard" toggle in the WP app, hit save, but the toggle does not stick, and the dashboard doesn't show.

thanks for reporting @JohnSharkey and sorry for the inconvenience! we just released a new version of the plugin yesterday and this is a new bug that we will fix as soon as possible. there's already a thread for this issue here: https://github.com/plausible/wordpress/issues/72

Closing this in favor of release 1.2.4


Big Sur icon

I whipped up a Big Sur icon. If you'd like to use it, I have a Sketch file.

Very nice! Maybe you can comment it in the original issue #1056


Comparison

Hey @adefossez I just stumbled across this courtesy of @mpariente's GitHub activity feed. I added it to this comparison of resample implementations: https://gist.github.com/jonashaag/2cde4daa72cebfb20641373d8dceeaae
Just FYI :)

@jonashaag thanks a lot for that! By the way I just fixed an issue in the code that was particularly bad for high sampling rate in irreductible form, which is exactly the case you are covering.
The results are much better now, see screenshot here after. When you get a chance could you update your notebook with it?

Cool! :-)
If you're interested we could also make it into a proper repo and collaboratively add new implementations from time to time. In the meantime I'll update the Gist.

Btw would you mind adding benchmark column with resampy kaiser_fast (which I have found to be good enough mostly)?

https://github.com/jonashaag/audio-resampling-in-python
Not sure why it doesn't render though...

I'm only replying now about kaiser_fast. Actually when doing the benchmark I am setting the number of zero crossing in julius to the same value as kaiser_best. Comparing to kaiser_fast, and updating the number of zero crossings for julius just roughly scales both algorithm runtime by the same factor, so it has not much interest.

I'm only replying now about kaiser_fast. Actually when doing the benchmark I am setting the number of zero crossing in julius to the same value as kaiser_best. Comparing to kaiser_fast, and updating the number of zero crossings for julius just roughly scales both algorithm runtime by the same factor, so it has not much interest.


Add record parameter to task and thread decorators

Codecov Report

Merging #45 (147d8c4) into main (0d8ffaf) will decrease coverage by 0.06%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
- Coverage   60.53%   60.47%   -0.07%
==========================================
  Files          18       18
  Lines         930      931       +1
  Branches      161      161
==========================================
  Hits          563      563
- Misses        321      322       +1
  Partials       46       46

Flag
Coverage Δ

unittests
60.47% <0.00%> (-0.07%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

belay/device.py
69.59% <0.00%> (-0.18%)
:arrow_down:

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


Work on API keys - spec and implementation needed

API keys will be used for communication between services. This can be done even as a separate service, but we'll first need some investigation and specs before implementing it. @arvindh123 Please write all the findings in the comment section of this issue.

@arvindh123 Please link here comments from the initial implementation you've done.

PAT Data structure
{
    "platform": {
        "users": {
            "create": {},
            "read": {},
            "list": {},
            "update": {},
            "delete": {}
        }
    },
    "domains": {
        "domain_1": {
            "entities": {
                "groups": {
                    "create": {}, // this for all groups in domain
                },
                "channels": {
                    // for particular channel in domain
                    "delete": {
                        "channel1": {},
                        "channel2":{}
                    }
                },
                "things": {
                    "update": {} // this for all things in domain
                }
            }
        }
    }
}

I'm trying to explain here challenges with example use case
Lets take things share function, It requires Token for Authn and Authz.
The PAT will be passed Bearer Token via header.
The service function input variable token  will either access token or PAT
Typically, for access token , grpc function   Identify returns user id , domain id , subject id.
These ids are required for further process.
In auth Identify grpc call we can verify the PAT originality.
But in response we can return only user ID.
Because PAT are not specific to domain, it is specific to user.
A PAT might contains scopes for multiple domains.
So service function could not determine on which domain request need to process.
The Authorization grpc call needs domain id to do authorization.
In service function, input variable id provide the thing ID.
Using this thing ID we can find the PAT have access that thing ID and domain ID.
But down side, since we don't know the domain ID , So we need to iterating over all domains in PAT to find. This is not efficient process.
// Token - Access token / PAT encoded ID
func (svc service) Share(ctx context.Context, token, id, relation string, userids ...string) error {
	user, err := svc.identify(ctx, token) // grpc identify call
	// users = { user id , pat id } -> response for PAT,  missing domain ID
	if err != nil {
		return err
	}

	if _, err := svc.authorize(ctx, user.GetDomainId(), auth.UserType, auth.TokenKind, user.GetId(), auth.DeletePermission, auth.ThingType, id); err != nil {
		return errors.Wrap(svcerr.ErrAuthorization, err)
	}

	policies := magistrala.AddPoliciesReq{}
	for _, userid := range userids {
		policies.AddPoliciesReq = append(policies.AddPoliciesReq, &magistrala.AddPolicyReq{
			SubjectType: auth.UserType,
			Subject:     auth.EncodeDomainUserID(user.GetDomainId(), userid),
			Relation:    relation,
			ObjectType:  auth.ThingType,
			Object:      id,
		})
	}
	res, err := svc.auth.AddPolicies(ctx, &policies)
	if err != nil {
		return errors.Wrap(errAddPolicies, err)
	}
	if !res.Added {
		return err
	}
	return nil
}

Options:

Change endpoint from "/things/{thingid}/share" to "/domains/{domainID}/things/{thingid}/share"

Moving Domain ID to the end of data structure , like below example:

 "channels": {
        // for particular channel in domain
        "delete": {
                "channel1": "domain1",
                "channel2":"domain2"
          }
  },

Having separate PAT for  domain level and Platform level .
This will not work properly, because in request we don't have domain ID , so it need to iterate over all domain ids to find entity ID presence.

ToDo:

[ ] Check with other platforms about PAT.
[ ] Check with Key value store like etcd,  badger

@dborovcanin
If we add domainID to all the endpoints like  /domains/{domainID}/things/{thingid}/share
Then we need to modify the addons endpoints , since they also works on domain level.
And also we need to extend PAT for Addons services. I hope with modifying auth function (make it work with PAT) we can make it work for all services including addons

Embedded KV Store

https://github.com/boltdb/bolt
https://github.com/dgraph-io/badger

https://github.com/qichengzx/m2
m2 is a simple http key/value cache system based on hashicorp/raft.
https://github.com/vaccovecrana/vephar
vephar is a minimal K/V store with an API and a dashboard
using:
hashicorp-raft for cluster coordination.
badger for Raft logs and data storage.
raft-badger with slight modifications for current badger compatibility.
https://github.com/mosuka/cete
Cete is a distributed key value store server written in Go built on top of BadgerDB.
It provides functions through gRPC (HTTP/2 + Protocol Buffers) or traditional RESTful API (HTTP/1.1 + JSON).
Cete implements Raft consensus algorithm by hashicorp/raft. It achieve consensus across all the instances of the nodes, ensuring that every change made to the system is made to a quorum of nodes, or none at all.
Cete makes it easy bringing up a cluster of BadgerDB (a cete of badgers) .

I'm leaning towards Badger, It looks promising for me.
Badger’s design is based on a paper titled WiscKey: Separating Keys from Values in SSD-conscious Storage.
And we can implement distribute Badger with Raft as mentioned in previous comment

We will need this for Dashboards sharing on our UI.

This is blocked by the new Auth model, but it is also blocking dashboards sharing on the UI side, so we must address it in this sprint.

This ticket is becoming urgent due to plans to use PAT in Dashboard sharing and other projects that utilize MG auth services.


Installation Problem of en_coref_md

When I used pip install en_coref_md, I got 'could not find a version that satisfies the requirement en_coref_md (from versions: ) No matching distribution found for en_coref_md'. But I checked all my python and spacy versions. Can anyone help?

The link is meant to be used.
Instead of using pip install en_coref_md use pip install https://github.com/huggingface/neuralcoref-models/releases/download/en_coref_md-3.0.0/en_coref_md-3.0.0.tar.gz

Thanks Arjoonn!


HDFS-17361. DiskBalancer: Query command support with multiple nodes

Description of PR
https://issues.apache.org/jira/browse/HDFS-17361
For: https://issues.apache.org/jira/browse/HDFS-10821 mentioned, Query command will support with multiple nodes.
That means we can use command hdfs diskbalancer -query to print one or one more datanodes status of the diskbalancer.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
41m  5s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+0 :ok:
markdownlint
0m  0s

markdownlint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
46m 46s

trunk passed

+1 :green_heart:
compile
1m 22s

trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
compile
1m 15s

trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08

+1 :green_heart:
checkstyle
1m 12s

trunk passed

+1 :green_heart:
mvnsite
1m 25s

trunk passed

+1 :green_heart:
javadoc
1m  8s

trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javadoc
1m 38s

trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08

+1 :green_heart:
spotbugs
3m 20s

trunk passed

+1 :green_heart:
shadedclient
39m 50s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
1m 14s

the patch passed

+1 :green_heart:
compile
1m 15s

the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javac
1m 15s

the patch passed

+1 :green_heart:
compile
1m  6s

the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08

+1 :green_heart:
javac
1m  6s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

-0 :warning:
checkstyle
0m 59s
/results-checkstyle-hadoop-hdfs-project_hadoop-hdfs.txt
hadoop-hdfs-project/hadoop-hdfs: The patch generated 1 new + 2 unchanged - 0 fixed = 3 total (was 2)

+1 :green_heart:
mvnsite
1m 12s

the patch passed

+1 :green_heart:
javadoc
0m 56s

the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javadoc
1m 34s

the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08

+1 :green_heart:
spotbugs
3m 25s

the patch passed

+1 :green_heart:
shadedclient
39m 55s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
261m 53s
/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
hadoop-hdfs in the patch passed.

+1 :green_heart:
asflicense
0m 41s

The patch does not generate ASF License warnings.

453m 33s

Reason
Tests

Failed junit tests
hadoop.hdfs.server.diskbalancer.command.TestDiskBalancerCommand

Subsystem
Report/Notes

Docker
ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6508/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/6508

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets markdownlint

uname
Linux 3213ddf32fed 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 11dc1860b7b57e710d68b1d0daa26dd396cc66b3

Default Java
Private Build-1.8.0_392-8u392-ga-1~20.04-b08

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_392-8u392-ga-1~20.04-b08

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6508/1/testReport/

Max. process+thread count
2610 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6508/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 50s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+0 :ok:
markdownlint
0m  1s

markdownlint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
47m 57s

trunk passed

+1 :green_heart:
compile
1m 25s

trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
compile
1m 17s

trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08

+1 :green_heart:
checkstyle
1m 13s

trunk passed

+1 :green_heart:
mvnsite
1m 28s

trunk passed

+1 :green_heart:
javadoc
1m 10s

trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javadoc
1m 39s

trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08

+1 :green_heart:
spotbugs
3m 28s

trunk passed

+1 :green_heart:
shadedclient
40m 37s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
1m 12s

the patch passed

+1 :green_heart:
compile
1m 16s

the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javac
1m 16s

the patch passed

+1 :green_heart:
compile
1m  8s

the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08

+1 :green_heart:
javac
1m  8s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
1m  1s

hadoop-hdfs-project/hadoop-hdfs: The patch generated 0 new + 1 unchanged - 1 fixed = 1 total (was 2)

+1 :green_heart:
mvnsite
1m 15s

the patch passed

+1 :green_heart:
javadoc
0m 55s

the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javadoc
1m 29s

the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08

+1 :green_heart:
spotbugs
3m 21s

the patch passed

+1 :green_heart:
shadedclient
40m  6s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
258m 32s
/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
hadoop-hdfs in the patch passed.

+1 :green_heart:
asflicense
0m 42s

The patch does not generate ASF License warnings.

412m 47s

Reason
Tests

Failed junit tests
hadoop.hdfs.TestRollingUpgrade

Subsystem
Report/Notes

Docker
ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6508/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/6508

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets markdownlint

uname
Linux f805f2dd21ee 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 885da523f1c449024d562b4fd938e41a83db48ae

Default Java
Private Build-1.8.0_392-8u392-ga-1~20.04-b08

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_392-8u392-ga-1~20.04-b08

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6508/2/testReport/

Max. process+thread count
2530 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6508/2/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

The failed unit test seems unrelated to the change.

@Hexiaoqiao @ZanderXu @zhangshuyan0 @tasanuma can you please take a look at this PR when you have free time? Thanks~

Hi @Hexiaoqiao @ZanderXu @zhangshuyan0 @tasanuma Could you mind help me review this PR when you have free time? Thanks~

Hi @zhangshuyan0 @ZanderXu @smarthanwang please help to push this modification forward If there are no any further comments. Thank you very much.

The result of the CI is here. The failed tests seem not to be related.
https://ci-hadoop.apache.org/blue/organizations/jenkins/hadoop-multibranch/detail/PR-6508/3/tests

Merged it. Thanks for your work, @haiyang1987!

Thanks @tasanuma for your review and merge !!!


Add password requirements to UI

We need to add password requirements to the password reset UI. There is no design as of now, but we'd love for it to look something along these lines:

As of now we only have two requirements: the password must be greater than 8 characters and contain at least 1 number (so you can ignore the first two lines on that example above).
Please use colors that are already included in the theme. Symbols are important in terms of accessibility, so please include those also (as in using a check mark and an x). Let me know if you have any follow up questions and/or if you'd like to pick this up.

@calisio Should the password requirements list be positioned below the Password or Confirm Password field?


[Suggestion] Word Wrap Scrolling for Tactical Gear

In the BLREdit GUI, when choosing a tactical gear for any loadout, the scrolling is horizontal instead of vertical due to there being 4 items per row on a typical 1920x1080 fullscreen resolution. Would it be possible to implement a QoL word wrap for the selections to exclusively vertical scroll with 2 items per row instead of having to scroll horizontally with 4 items per row? Perhaps resolution-friendly GUI scaling would be beneficial as well to prevent awkward horizontal scroll bars.

i changed the tactical gear to just use two columns in the next Update v0.7.5 it's not yet fully dynamic will close this if it's fully dynamic.

Item List Scaling is now fully dynamic with update v0.7.5


Update tests and example to be case-agnostic

Addresses #109

It appears as Closed instead of Merged because I introduced a new commit.


Bug in LicenseQuery

This line is throwing a "column not found" error, it should be:
$this->subQuery->andWhere(Db::parseParam('digitalproducts_licenses.productId', $this->productId));
Version: 2.0.2

Same for orderId, it should be:
        if ($this->orderId) {
            $this->subQuery->andWhere(Db::parseParam('digitalproducts_licenses.orderId', $this->orderId));
        }

Is this plugin abandoned @andris-sevcenko ? This issue and plenty of others are pretty big but easy to fix. Considering forking the repository just to fix them.

Also, pull requests are always welcome. We have finite resources as well and appreciate the help :)

I apologize for coming off a bit harsh, I understand these things take time. I just hadn't seen a post from a contributor on this repo in a while and was wondering if it was wise to continue to use it in production.
My own resources are spread pretty thin as well unfortunately, but if I can find the time I'll try forking and submitting a few PRs.

@lazlo-bonin not offended in the slightest. I should have reacted at least, even if I was busy.
I'm guessing I'll be resuming work on this in two weeks or so. If your timeline is more pressing, you can just hot-patch your install and submit PR at your leisure. There's no pressure.
This can definitely be used in production. The only possible way this plugin ends its life I can imagine at this point if it just gets rolled into Commerce itself.


[python] Reported evaluation metric and early stop

The issue that I face is: when one runs with the early stopping enabled, one aims to be able to stop specifically on the eval_metric metric. However, python API of LightGBM checks all metrics that are monitored. This is different from the XGBoost choice, where they check the last item from the eval list, but this is also a justifiable choice. However, this choice should not prevent us from reaching the aforementioned goal.
There is some undocumented feature of the code, related to the list of evaluation metrics that are considered. Namely, if one uses any predefined metric as the objective (with the corresponding name string), then the objective metric is prepended to the list of evaluation metrics. Which is unexpected on the user side and not desired in terms of the goal defined before.  If one uses a custom objective function, then there no such extra metric prepended.
Is there a chance to either have the early-stopping criterion to be configurable (with an extra argument in the fit function) or to drop the objective that appears in the evaluation result and that is not documented anywhere?
Environment
I observe this feature with lightgbm v2.1.0.
How to reproduce
Here is a   basic toy example:
import numpy as np
import lightgbm as lgb

# generate random data
X = np.random.randn(10000,5)
y = np.random.randn(10000)

# define MSE evaluation and objective functions (for the sake of example)
def evaluate_mse(truth, prediction):
    return('xxx', np.mean(np.square(truth - prediction)), False)

def obj_mse(truth, prediction):
    grad = 2 * (prediction - truth)
    hess = 2 * np.ones(shape=truth.shape)
    return(grad, hess)

clf = lgb.LGBMRegressor()
# Train with the default 'mse' objective
clf.set_params(**{'objective': 'mse'})
clf.fit(X, y,
        eval_set=[(X,y)],
        eval_names=['validation_0'],
        eval_metric=evaluate_mse,
        verbose=50)
# Train with the custom implementation of the MSE
clf.set_params(**{'objective': obj_mse})
clf.fit(X, y,
        eval_set=[(X,y)],
        eval_names=['validation_0'],
        eval_metric=evaluate_mse,
        verbose=50)

In the example above there is no early stopping, but you can already see the mismatch in the monitored metrics

you can try the latest master branch with following code:
import numpy as np
import lightgbm as lgb

# generate random data
X = np.random.randn(10000,5)
y = np.random.randn(10000)

# define MSE evaluation and objective functions (for the sake of example)
def evaluate_mse(truth, prediction):
    return('xxx', np.mean(np.square(truth - prediction)), False)

def obj_mse(truth, prediction):
    grad = 2 * (prediction - truth)
    hess = 2 * np.ones(shape=truth.shape)
    return(grad, hess)

clf = lgb.LGBMRegressor()
# Train with the default 'mse' objective
clf.set_params(**{'objective': 'mse', 'metric': 'None'})
clf.fit(X, y,
        eval_set=[(X,y)],
        eval_names=['validation_0'],
        eval_metric=evaluate_mse,
        verbose=50)

@mlisovyi It is in the Parameter document.
You can set it to None', 'null' or 'na'. However, Python None` equals to empty string, which will use the objective name as the metric name.

Thanks a lot for pointing this out. There seems to be some room for improvement of the documentation: the section that you pointed out does say nothing about how the metric arg is used (only what are the possible values and even omitting the disabling values). Also in other places in the python API documentation (I can not say anything about docs of other API's) there is no mention that the metric parameter is also used to evaluate performance.
What is the policy on contributions to documentation updates? I'm fine to make a PR with text add-on's if you have no time for it.

@mlisovyi it will be great if you can contribute on it.
You can just create a PR to fix it


Add (or investigate fsspec support for) num_retries for failed file operations

Feature request
e.g. the filesystem is laggy and times out, or in the case of STSci, is just a little flaky and sometimes refuses connections.
Before submitting
Please check the following:

[ ] I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves.
[ ] I have included any relevant links, screenshots, environment information, and data relevant to implementing the requested feature, as well as pseudocode for how I want to access the new functionality.
[ ] If I have ideas for how the new feature could be implemented, I have provided explanations and/or pseudocode and/or task lists for the steps.

This may be easier with the implementation of https://github.com/astronomy-commons/hipscat/issues/307, which will support passing fsspec objects directly to most operations, instead of requiring storage_options


[Bug]: On hover the highlight is not proper

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior

Steps To Reproduce

Drag and drop a button widget
Click on property pane
Navigate to On click property
Hover on "Execute a query" property
Observe that the hover is not proper

Environment
Release
Version
Cloud

Screenshot is not uploaded. What should exactly happen on Hover. The Execute a query  and Execute a JS function hover interaction is the same. @vivekverma2312 @somangshu

@ankurrsinghal Please check the screenshot and loom video

https://www.loom.com/share/aaa79f2c1696475b961798e89280eb79

Are we able to verify this? How is this only happening on release? Can others check on local? cc @aswathkk @rahulramesha

@somangshu Observed this 5 days back on release. Check this thread


Nice game

Nice game, can you add license details, that will help other developers

Hi @anantharunasep Thank you for your feedback. Can you please do it and make a pull request. Thanks a lot buddy.

Hi @anantharunasep  MIT License has been added to the repository. Thanks for suggestion my Friend!


No output

Problem
I was running the python -m colored_traceback script.py command, but no output was shown to the terminal. I was getting error messages without adding the module, so I knew it wasn't working.
I figured out how to fix it by adding the hook manually from inside the script, as suggested:
import colored_traceback
colored_traceback.add_hook()

I then got an error message:
Error in sys.excepthook:
Traceback (most recent call last):
  File "/home/mazunki/.local/lib/python3.8/site-packages/colored_traceback/colored_traceback.py", line 27, in colorize_traceback
    tb_colored = pygments.highlight(tb_text, lexer, self.formatter)
  File "/home/mazunki/.local/lib/python3.8/site-packages/colored_traceback/colored_traceback.py", line 32, in formatter
    colors = _get_term_color_support()
  File "/home/mazunki/.local/lib/python3.8/site-packages/colored_traceback/colored_traceback.py", line 66, in _get_term_color_support
    curses.setupterm()
_curses.error: setupterm: could not find terminal

(half-working) Solution
The reason I was getting no output was because I am using Alacritty, a custom terminal, and my $TERM variable was set to alacritty. Changing this as
TERM=linux python script.py
# or
TERM=xterm-256color python script.py

solves the issue for imports, allowing you to view the colored traceback, but it still doesn't print anything by importing the module.
Conclusion
I think either the module should forward the hook traceback to the user, or at least print a message saying that Curses failed to find a proper terminal; instead of just doing nothing.
PS: Also, @Alacritty, why do they even change $TERM when it leads to issues like these all over the place...? Can't even use ssh(1) without overriding TERM.

i ran into the same issue. im using Konsole on manjaro. after installing with pip i just put this in ~/.bashrc:
alias python='TERM=xterm-256color python'

@PopeyedLocket At the time I opened this issue, Alacritty's terminfo wasn't very established under people's /usr/share/terminfo/, thus infocmp alacritty would say something along the lines of infocmp: couldn't open terminfo file /usr/share/terminfo/a/alacritty.
It's weird that Konsole's terminfo doesn't exist under Manjaro, but nothing surprises me from a broken OS.
Regardless, you might have some luck by making a copy of the xterm-256colorterminfo entry: infocmp xterm-256color > /usr/share/k/konsole. Perhaps vt100 is better than xterm-256color, since that's what Konsole is based on.
This is probably not a complete set of terminal codes, but I'm unable to find a better source. The better solution is to install a real OS.

"real"? good god .. some programmers are so opinionated. manjaro works great!


Problem: the status parameter for querying a block is deprecated

Solution: remove status parameter and adjust documentation
FYI: I thought we had this in our documentation, but I couldn't find anything.
Issues This PR Fixes
#360
Related PRs
bigchaindb/bigchaindb#2021

Codecov Report

Merging #363 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #363   +/-   ##
=======================================
  Coverage   99.15%   99.15%
=======================================
  Files           9        9
  Lines         236      236
=======================================
  Hits          234      234
  Misses          2        2

But is there backend logic implemented for status? or it just takes a parameter and doesn't use it at all?

It was an optional parameter for the query request.
The logic itself was in BDB Server.


Remove the WeakSafeReentrantLock that is no longer used

What changes are proposed in this pull request?
Remove the WeakSafeReentrantLock that is no longer used
Why are the changes needed?
Does this PR introduce any user facing changes?
no

Related: #15182

duplicated with thub.com/Alluxio/alluxio/pull/15182


Dockerfile for the windowTrimmer program (Crawford Lab)

Support for the windowTrimmer program written by Thomas Konneker from Crawford's Lab (used in the DNase-seq pipeline).

Quick question - does the code live in a repo of its own, or is this the only copy on github?

I just checked with Ian and this script was only used and kept in-house, so this will be the only copy on github.

👍


[CET-9460] Backstage version update from 1.25.2 to 1.27.7

Change description
CET-9460 Backstage version update from 1.25.2 to 1.26.5
Used command yarn backstage-cli versions:bump
Type of change

[ ] Bug fix (fixes an issue)
[ ] New feature (adds functionality)
[x] Improvement (improves codebase without changing functionality)

Checklists
Development

[ ] The changelog has been updated as appropriate
[ ] Lint rules pass locally
[ ] Application changes have been tested thoroughly
[ ] Automated tests covering modified code pass

Security

[ ] Security impact of change has been considered
[ ] Code follows company security practices and guidelines

Code review

[ ] Pull request has a descriptive title and context useful to a reviewer. Screenshots or screencasts are attached as necessary
[ ] "Ready for review" label attached and reviewers assigned
[ ] Changes have been reviewed by at least one other contributor
[ ] Pull request linked to task tracker where applicable

Can we do the same in the backend plugin? https://github.com/cortexapps/backstage-backend-plugin/pull/52


Single *_build.rs in builder.

It should be possible to have just one *_build.rs file in builder that produces all the *_wasm.rs files.
It could look like that:
odra::casper::codegen::gen_contract!([
    (dao::voting_contracts::AdminContract, "admin_contract"),
    (dao::voting_contracts::AdminContract, "admin_contract2")
]);

Works with cargo-odra 0.0.8


Service command line flags set during install but not during configure

Not sure this is a bug, but it was an unexpected surprise to me and it's causing me some pain.
I have found that when trying to set the alertmanager_external_url value, it is only set when running the install tag, and not the configure tag.  Digging in, the reason is that the web.external-url value is provided to the binary as a command line flag, and that is baked in to the alertmanager.service template, which is only done during the install step.
This is a problem for me, because I'm trying to bake AMIs in AWS with most of the installation done ahead of time, and then deployment instantiates these AMIs and applies dynamic configuration to them, things like IP addresses, ports, URLs, etc.  I've found that the setup here makes it so that I really can't do that.
Since those arguments to the binary are really (at least, in my mind) configuration, shouldn't the configure task update the flag as appropriate or re-template the service?

We could move creating systemd service file from install.yml to configure.yml and this should solve this problem without breaking anything.
Could you prepare a PR?

https://github.com/cloudalchemy/ansible-alertmanager/pull/57


Fix crash caused by reverse video playback and VideoSynchronizer tests

To follow up on #6765, I muted the sandcastle video and handled the NotSupportedError that's thrown when setting playbackRate to a bad value (this is what was causing the context freezes in both Firefox and Chrome).
I added a sync tolerance of 0.1 to the sandcastle so that seeking backwards isn't insanely choppy. I would have made it smaller but this seemed like a good middle ground value for all the browsers that I tested (Safari, Firefox, and Chrome). Chrome was overall very smooth for both normal and reverse playback.
As for Safari and Firefox, things get a little funky 🎸. When clock synchronization is enabled and there is a low tolerance set on the video sync, Safari and Firefox are both very choppy. At least during reverse playback, the choppiness is of the same degree. On the other hand, when a large tolerance is used, normal playback is smooth in both browsers, but reverse playback behaves completely differently! Safari is smooth because it handles negative playbackRate just fine and there is minimal hand-holding. Since Firefox doesn't support negative playbackRates, it becomes very choppy because the VideoSynchronizer reverts to manual seeking. The minimal hand-holding has the opposite effect because the video is paused unlike Safari. I don't really like how the same tolerance value can mean very different things for each browser, but we have to handle the NotSupportedError somehow in order to stop the cesium viewer from crashing.
TL;DR
🎉 The context no longer freezes at all, so this should fix #6765! (Tested in Firefox, Chrome, and Safari). 😕 I don't know what's going on in Edge, but maybe lowering the tolerance would help.
🎉 I re-enabled the failing tests from #6772 and they seem to be passing both locally and on Travis. 😕 I might be missing something here, but we'll see!
🤔 Another possibility is to add an optional reverseTolerance to VideoSynchronizer that applies only when syncing in reverse. It can be a bit tighter by default and would improve the choppiness in Firefox.

Thanks for the pull request @lukesanantonio!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:

Thanks @lukesanantonio!  I marked this next release since #6772 is marked next release
@mramato can you review when you have a chance?

Thanks for tracking this down @lukesanantonio!  I want to take a better look at this on Monday and read up on recent video changes in browsers a little more, but I think your general approach is good (especially in regards to muting the video).

@mramato reminder to review this for next release

Thanks again @lukesanantonio!  Just those few comments.

Thanks, @mramato! I fixed the smaller things you mentioned but still not sure what we should do with the try block.

@mramato Check out this new change. Do you think there is room for testing some of this new behavior of using the last valid rate? What would make it difficult is that the limits are very browser specific.

Do you think there is room for testing some of this new behavior of using the last valid rate?

I thought we were just setting playBackRate to 0 and using manually seeking, how come you changed it?

Oh that's a good point! Sorry, I think I just misinterpreted your comment. I just changed it back to what it was.

Looks good, I'll merge once this is green.  Thanks again @lukesanantonio!


Unit test panic in printer.go

This PR does the following:

Add non-nil request and response in the chain
Fix invalid assertion failure

For issue: https://github.com/gavv/httpexpect/issues/240

Coverage: 94.91% (+0.04%) from 94.875% when pulling 98a4ab1f91fae175608c6790700ac2ab14c31608 on fahimbagar:unit-test-panic-in-printer into c6e4f37d5ea0fcc74eabddb88443c59c7ba35931 on gavv:master.

Thank you!


Update Pages “home”

Automatically generated by Netlify CMS

👷 Deploy Preview for shimmering-marigold-4f5b4a processing.

Name
Link

🔨 Latest commit
c70bb883881b49ade73dd3eedecd7d8e3bae911d

🔍 Latest deploy log
https://app.netlify.com/sites/shimmering-marigold-4f5b4a/deploys/6500e2bf49a981000813d6b9


Provide an example of tests/testdata usage in bats tests

To improve the test coverage, I need to use some assets from files inside the ddev project, but have a hard time understanding how to do this right.
I need to run a command inside the testing ddev project like this:
  ddev exec "curl -X POST -H "Content-Type: application/json" -d @[some_dir]/testdata/test-metric.json http://opentelemetry-grafana:4318/v1/metrics"

So, to make the files available inside the testing ddev project, I have to list them in the install.yaml that looks not so good.
So, could you please provide an example of the usage of test asset files from the testdata directory? Thanks!

Hi @MurzNN - Please take a look at ddev-platformsh, which uses lots of stuff in testdata, https://github.com/ddev/ddev-platformsh/tree/main/tests


[5.5] Accumulated concurrency ABI revisions

The concurrency-5.5-abi-2 branch tracks a number of concurrency ABI changes.  We eventually want to make these changes in the 5.5 branch, but we don't want to merge them quite yet.  Running PR testing for this PR is essentially CI testing for this branch, and we should do so manually every day or so.
Nothing will stop you from pushing to this branch directly, but please use pull requests instead.  A build scheme has been set up (https://github.com/apple/swift/pull/37392), so you can do PR testing on PRs to this branch with @swift-ci as usual.

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - 84d6dd97137dc977541fbf212cc59bc70ec555b1

Build failed
Swift Test OS X Platform
Git Sha - 84d6dd97137dc977541fbf212cc59bc70ec555b1


metadata: preserve createdat on update

Signed-off-by: Stephen J Day<EMAIL_ADDRESS>

Codecov Report

Merging #1156 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1156   +/-   ##
=======================================
  Coverage   31.78%   31.78%
=======================================
  Files          27       27
  Lines        2168     2168
=======================================
  Hits          689      689
  Misses       1331     1331
  Partials      148      148

Continue to review full report at Codecov.

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

LGTM


[Beginner][Translate] User Rights Management Document to english md

https://github.com/OpenTenBase/OpenTenBase/issues/37
Create 07-user-rights-en.md
fix 07-user-rights.md

there is already exist 07-user-rights.en.md,please fix the 07-user-rights.en.md rather than create a new 07-user-rights-en.md,thanks for your contribution

there is already exist 07-user-rights.en.md,please fix the 07-user-rights.en.md rather than create a new 07-user-rights-en.md,thanks for your contribution

Agree with Jack. Please check and fix it @enkilee

there is already exist 07-user-rights.en.md,please fix the 07-user-rights.en.md rather than create a new 07-user-rights-en.md,thanks for your contribution

Agree with Jack. Please check and fix it @enkilee Thank you :)

OK .
*https://github.com/OpenTenBase/docs/pull/20

So I close this PR.


Best practice for production use?

Hi,
We're planning to use Vernemq for mobile notification in our service.
Currently we have approx. 2M users, and the most of them are on Android platform.
We've been successfully tested Vernemq on our development stage, but we have no idea how to configure/setup the vmq nodes for production use.
So, let's say if there are 1M connection, what would be the best practice?

what would be appropriate max connection config for a single vmq node?
how much memory would a single vmq node need?
how many nodes should I have in the cluster?

I've tried with 50,000 max connection on m3.xlarge ec2 instance (15GB memory) and it consumed almost 90% of the memory.
I'm also curious if there is a way to reduce memory use of vernemq :)
(or more efficiently)

Hi @DawoonC thanks a lot for your interest! :)
I'm afraid we can't just give a quick best way to do it here. Can you get in touch with me via e-mail, to discuss your options? (info at vernemq.com)


Parse Ruby blocks correctly. Fixes #1

The parser used to continue reading (and expecting) Ruby lines
when a Ruby line ended in a backslash, e.g.
- a |
  b |

This behavior is incorrect when using Ruby block syntax, e.g.
- a do |b|
  .div

where the first HAML line after the Ruby line was read as
a continuation of the Ruby line, and the HAML parsing started
only at the second subsequent HAML line.
This misbehavior manifested in malformed indentation errors
when the subsequent HAML tree had more than one branch
at the root node.
We fix this by making the parser aware of Ruby block syntax.

Thanks for sending the pull request! I was just having trouble with this issue.
It looks good at a quick glance, but I'll review it right away tomorrow 👌

Great, I'll merge and release a new version 👍

Released 0.5.1 🎉

https://rubygems.org/gems/hamli/versions/0.5.1
https://github.com/r7kamura/hamli/releases/tag/v0.5.1

:clap: :+1:


Add GDScript plugin for IntelliJ IDEA

Hi,
I thought it was worth adding. Plugin is still beta-quality but presence on awesome list will increase the chance of getting some feedback / bug reports. :smile: It has been actively developed for several months (during my free time) and tested by few people, thanks to GitHub community.
Entry is still sorted alphabetically so it should be OK.

Two links are failing on CI (not related to my PR):
1. [L069] 301 https://github.com/RodZill4/godot-procedural-textures  → https://github.com/RodZill4/material-maker
2. [L158] 301 https://github.com/Shfty/Qodot  → https://github.com/Shfty/qodot-plugin

Thanks!
It's always good to see more IDE support for GDScript :slightly_smiling_face:


Removed the word count paste JS as it was hijacking the natural paste

I previously writ this code as the word count wasn’t working for paste,
but just tested this without this code and it’s now totally fine even
on old IE

Cool :+1:


JavaScript Design Patterns  - Singleton Pattern

JavaScript Design Patterns

Singleton Pattern

https://www.dofactory.com/javascript/design-patterns/singleton
https://www.cnblogs.com/xgqfrms/p/16084639.html
https://www.cnblogs.com/xgqfrms/p/12901143.html

23-design-patterns-app

https://github.com/xgqfrms/23-design-patterns-app
https://www.cnblogs.com/xgqfrms/p/12904917.html
https://refactoringguru.cn/design-patterns/


User score overview

Is your feature request related to a problem? Please describe.
As a student, I want to see my current scores of all my assignments.
Describe the solution you'd like
New view in the assignment tab which shows scores

Since students should not have access to the assignment properties to calculate the maximum possible scores of an assignment, we should create a new column in the assignment table for the max scores and update it on each assignment property PUT similar to how we do it for the submission scores.

I implemented the scores as an item in the assignment card and as secondary text in the submission list. Closing this issue for now.


Transfer project to @housepower organization

Hi @housepower members,
I'd like to propose transfer this project from my own repository to @housepower's repository.
The project is an Apache Spark DataSource V2 API implementation for ClickHouse, it could be considered as a data source plugin of Apache Spark.
The vision of this project is to provide a seamless user experience for Spark users to access ClickHouse.
The project is currently in a very early stage. Basically, it uses gRPC protocol and JSON-relative serialization to communicate to the ClickHouse server, support write/read both single ClickHouse node and ClickHouse cluster, see more detail in the integration tests which under module clickhouse-spark-31-integration.
Spark DataSourceV2 API is on rapid development, due to the limitation of development resources, the project currently only supports Spark 3.1.x.
Looking forward to your feedback and thank you very much.

cc @lamberken @shijiyu @sundyli @zhang2014

Great, this project has brought a very good bridge connection between ClickHouse and Spark.

Transfer done.


Rename wasmcloud-actor-derive -> wasmcloud-actor-macros

In alignment with #388

@rvolosatovs I want to work on this issue


Cannot read properties of null (reading 'map')

Hello folks,
lovely work you guys are doing there.
I am facing an issue. After doing NPM INSTALL and when I do npm run dev for a quick run. I am getting the following error:
Cannot read properties of null (reading 'map')
Looks like it is seeking api-key from .env file.
It would be great if you could provide a sample .env file too with this repo which can be used to quickly run the application and see before starting to work on it. :)

I got this issue too. never fixed


README.md is not able to follow on Google Cloud Platform.

Reproducible steps:

Google Cloud Console -> Create VM -> Google Drawfork Ubuntu 16.04 LTS
Configuration: n1-8highcpu / 7.2G Memory
chmod a+w ~/  # https://github.com/conda/conda/issues/6748
Follow https://github.com/tensorflow/magenta
curl https://raw.githubusercontent.com/tensorflow/magenta/master/magenta/tools/magenta-install.sh > /tmp/magenta-install.sh && bash /tmp/magenta-install.sh 2>&1  | tee stderrout.log.txt
yes -> ENTER -> yes (initialize Miniconda2) -> y [NEW packages like pip]

Outstanding error message:
/home/itspeter_google_com/miniconda2/etc/profile.d/conda.sh: line 59: CONDA_PREFIX: readonly variable
[2019-04-28T16:52:29+0000]: Did not successfully activate the magenta conda environment
===========================================
Installation did not finish successfully.
Please follow the manual installation instructions at:
https://github.com/tensorflow/magenta
stderrout.log.txt

It is true that creating a new conda environment (https://github.com/conda/conda/issues/6748) faces issues when the root directory is read only; this is probably because conda requires to create temporary files in root directory for environment management and storage purposes, and read only mode does not let it to do so. The error is in line 59 of file /home/itspeter_google_com/miniconda2/etc/profile.d/conda.sh requires execution permission for variable CONDA_PREFIX. You can try giving executable permission to all conda variables, as most likely more than one variables may require executable permissions. Is your current user have administration privileges? Try giving it so might help it.

For cases where the auto-install script fails, you can also try the manual installation instructions. Please reopen the bug if either of these solutions don't fix the issue.

giving executable permission to all conda variables

How to do that exactly?
I'm not a master in Python so any help would be appreciated.
I have the same problem when trying to install Magenta on my computer.

For cases where the auto-install script fails, you can also try the manual installation instructions. Please reopen the bug if either of these solutions don't fix the issue.

I'm trying also to do it manually but still getting some errors so I can't install Magenta at all.
I've already opened a but here https://github.com/tensorflow/magenta/issues/1546


app.UseHttpsRedirection() behind  IIS

Will ANCM automatice  set ASPNETCORE_HTTPS_PORT  environment variable ?

@shirhatti that's a good idea.

@John0King are you running IIS on 443 or a custom port?

Not sure I understand the ask here. Do you want ANCM to enforce HTTPS redirection?

@Tratcher  port 443.

IIS Express with Visual Studio will set ASPNETCORE_HTTPS_PORT environment variable (so the default template work) ,  but running on IIS do not have this environment variable.

Yeah I don't think there is a good way to reliably redirect to Https with IIS easily.


How to extract result from given object to the Html Output

Hello,
I am using this project for class scheduling solution and I don't want to use HTML as the final response.
I am trying to figure out the object that given to the HTML response (alg.Result). Can anyone explain how to extract the result from this JSON object given to HtmlOutput
var htmlResult = HtmlOutput.GetResult(alg.Result);
below you can find the result in the JSON format from alg.Result object algResult.txt
~
If I can understand the solution, I will contribute and make the feature for sending result through API to make more multi usable and user friendly to be used from anywhere
@mcychan

I updated README.md.
Please help to improve JsonOutput.cs

I can create the function that result can be sended through API to the specific endpoint
for example: ApiModel.sendResult(alg.Result,"/api/specific_end_point");
what do you think about it ? @mcychan

That means you would like to add a new project called GaSchedule.OpenApi
Showing the Rest API with additional nuget packages and dependencies

no no, i will add some classes for api, i think i can do it also send GaSchedule.json through API in the same format,users do not need to add file to the project manually
p.s
Class ApiModel

function sendResult(alg.Result,"/api/specific_end_point"){
           // send result in specific end point
}

function GetConfigurationFile("api/get_file"){
         // read json file from this API and send to the algorithm same as parsing file
}

@mcychan

Sorry, I'm not familiar with the latest REST APIs with .NET
I can do the Rest API in java.
You may refer to OpenApi.java and test.html

You don't need to do anything, I will make it for your project (contribute). I will create a pull request for this task also I will explain on read_me file how to use it.
@mcychan


Option to allow don't sort sub-keys

In eslint-plugin-package-json, we use sort-package-json to auto-fix order-properties rule. However, sort-package-json also sort sub-keys too. This resulted in an issue https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/80.
Would you like to have an option to allow don't sort sub-keys? I am willing to submit a pull request for this change.

Please see the readme for an explanation (https://github.com/keithamus/sort-package-json?tab=readme-ov-file#i-would-like-this-tool-to-be-configurable-with-a-config-file-or-command-line-arguments):

I would like this tool to be configurable with a config file or command line arguments.
The lack of configuration here is a feature, not a bug. The intent of this tool is that a user can open a package json and always expect to see keys in a particular order. If we add a configuration for this tool, then that promise is broken, as users will first need to look at the configuration for each project to learn the ways in which this tool will change the package.json. The structure of the package.json should always be predictable & deterministic from project to project. I think the reason why this project is well used is because it is not another "tool" you have to set up with yet another JSON file and more cruft in your project to support it. You run a command and it does what it says on the tin.
A lot of people who ask for configuration cite the use case that they simply don't like the given order that exists and want to make sweeping changes. To me this seems far better suited to simply making a fork of this project as then you can go far further than specifying configuration.

Thanks for your reply, and sorry for my noise issue. I will provide this option from my side.


Allow saving of custom preset

The PATCH to scratch with preset: undefined does not set preset to null - therefore whilst the compiler value will be updated, the preset will still have the original value.
This PR explicitly sets preset: null in the PATCH request (along with any other fields that have a local value of undefined).
Fixes #939.

No problem Alex - Merry Christmas :)


[Bug]: Animation on switching tab in Entity Explorer

Is there an existing issue for this?

[X] I have searched the existing issues

Description
The animation which is made for the tab switching in the entity explorer seems slow, We should remove it

Steps To Reproduce

Open any app
Switch to widgets tab on the entity explorer
observe the animation

Public Sample App
No response
Version
Cloud - v1.7.0

This should ideally be like
https://user-images.githubusercontent.com/11089579/168990983-33ea56d9-d587-40bb-98c9-1a7149d092b9.mp4
cc @areyabhishek @momcilo-appsmith @vinay-appsmith we will take this ahead, let us know in case you feel otherwise

@arunvjn On switching to widgets tab, Search Widgets is not focused. Could you please add this.


Higher quality audio...?

Before I start, I want to thank you for building this awesome and regularly maintained library.
I've been using this class as the backbone for my YouTube downloader which has been really great for the most part. I noticed that the DASH (audio only) the only Itag value for AAC audio is 140. I was wondering if it is possible to get the Itag value of 141 so that I can get higher quality audio. Finally, I've noticed anytime I try to download audio the audio is downloading very slowly and is not taking advantage of all the bandwidth that I have. However, when trying video they download much quicker and is able to use all the bandwidth. I've tested this on multiple computers in multiple locations and the results are always the same. Can you please shed some light on this matter?
Thanks

Sorry, I have no idea about the itag 141 (DASH M4A AAC 256 kbit/s) stream. Manipulating the streams is outside the scope of XCDYouTubeKit. I’d be happy to learn about your findings though, don’t hesitate to post more information here.


Missing Content in PDF to Markdown Conversion

I'm using the Zerox project to convert PDFs to Markdown using OpenAI API 4o-mini, but I've noticed that not all content is being converted, and some useful information is missing. This issue persists even with documents that shouldn't be difficult to OCR.
Could you provide insights into what might be causing this? Understanding the limitations or reasons behind the incomplete conversions would be helpful for users trying to get the most out of the tool.
Thank you.

@shawn8888, try the prompt mentioned in #48 and see if that improves.

@shawn8888, try the prompt mentioned in #48 and see if that improves.

Sorry, I am not familiar with github. How to use this updated prompt?

@shawn8888 pass it like this:
custom_system_prompt = """
    Convert the following PDF page to markdown.
    Return only the markdown with no explanation text. Do not include deliminators like ```markdown.

    RULES:
    - You must include all information on the page. Do not exclude headers, footers, or subtext.
    - Charts & infographics must be interpreted to a markdown format
    - Non text based images must be replaced with [Description of image](image.png)
"""
zerox(file_path, output_file_path,
                      custom_system_prompt = custom_system_prompt,)

The result .md file is the same. Am I doing it wrong? The .py file is attached.
C:\Backup\Projects\python>python hello_zerox2.py
C:\Python312\Lib\site-packages\pyzerox\models\modellitellm.py:52: UserWarning:
    Custom system prompt was provided which overrides the default system prompt. We assume that you know what you are doing.
    . Default prompt for zerox is:

    Convert the following PDF page to markdown.
    Return only the markdown with no explanation text.
    Do not exclude any content from the page.

  warnings.warn(f"{Messages.CUSTOM_SYSTEM_PROMPT_WARNING}. Default prompt for zerox is:\n {DEFAULT_SYSTEM_PROMPT}")
ZeroxOutput(completion_time

hello_zerox3.zip

@shawn8888, looks like its the vision model (gpt 4o mini), and not zerox. Try with gpt 4o and see if it does the same, also may be check with your document image manually with gpt to see if that changes anything.

@pradhyumna85

The result on the console only shows the "default system prompt". How do I know the custom system prompt is working?
4o model does return more text than 4o-mini, which surprised me. I also found an obvious mistake in 4o but not in 4o-mini. AI illusion I guess?

@pradhyumna85
Good idea! I modified the custom_system_prompt to return JSON, and it successfully did so, confirming its functionality. However, I would still appreciate it if Zerox could return both the default and custom prompts.


Improvement: The presentation of a Credential should show clearly who is the Issuer and Subject of the Credential

also a new browser window with the Identity Explorer should be open when clicking on a DID URI


set thumbnail_base64 to fallback value if thumbnail is missing

In the reader api's fetch_thumbnails method, if the thumbnail doesn't exist or can't be fetched from the datastore, sets meta.data.thumbnail_base64 to the string "NO_IMAGE" so the indexer can special-case it.
Also exposes botocore.exceptions.ClientError as mediachain.datastore.dynamo.DynamoError for easier catching.

:+1:

Adding NO_IMAGE support to the Indexer in version 0.0.6, which I'll push shortly.

A bit confused about the decision here, will the indexer not attempt to download the image by itself if NO_IMAGE is specified?


response is not correct for no records

If we have no records the <ListRecords> opening tag is missing.
<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<?xml-stylesheet type="text/xsl" href="/static/xsl/oai.xsl"?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
  <responseDate>2020-06-02T23:00:28Z</responseDate>
  <request until="2020-06-02T23:00:28+00:00Z" from_="2020-06-02T06:00:00+00:00Z" metadataPrefix="marc21" verb="ListRecords">
    https://localhost:5000/oai2d
  </request>

  <ListRecords/>
</OAI-PMH>

 is an opening and closing tag at the same time. But in my opinion, if the response of ListRecords is empty, the should be no  tag at all but
 instead. But this is surely open for discussion, the spec is not so clear about it.

If there are no records to be returned, the OAI provider should not send ListRecords response with empty contents, but noRecordsMatch error message.
Please see "Error and Exception Conditions" section in: http://www.openarchives.org/OAI/openarchivesprotocol.html#ErrorConditions

This issue has just been reported on the OAI-PMH Google group.
A zenodo repository was failing it's validation, as the set chosen to validate against (in their case, the openaire set) didn't contain any records, but output an empty <ListIdentifiers/> element rather than the expected <error code="noRecordsMatch"/>.
Currently they are unable to register their OAI-PMH endpoint.


new geo-images has buggy UX

URL
No response
How to reproduce the issue?
Should work like this:

click "edit" to launch iD
open "Map data" (shortcut U) from the right-hand panel
go down to "georeferenced photos"
click the three dots to open the "load photos" dialogue
select a random NOT geo-tagged image.

The result is the attached images.
Problems:

the actual image filename (IMG_etc) is in the same color as the frame. It is not black, like all other text.
the alert icon is too easy to miss. There is nothing else in the app to show that there are issues so you create a UX problem with people missing there is a detected issue because your alert image is light gray. Even less conspicuous than plain text.
hovering over the warning icon shows a warning that is cut off.

Screenshot(s) or anything else?

While hovering the 'alert' icon:

Which deployed environments do you see the issue in?
Released version at openstreetmap.org/edit
What version numbers does this issue effect?
No response
Which browsers are you seeing this problem on?
Firefox

@zander @nickrsan  changed the colour of alert svg

@zander @nickrsan Changed svg to red

hey @zander @nickrsan  pls have a look at this
https://github.com/openstreetmap/iD/assets/121725696/7fd511a2-5322-4a47-a082-e5c710bfbfb2

hey @zander @nickrsan have a look at this
https://github.com/openstreetmap/iD/assets/121725696/d180dd49-624a-40e2-9adc-55ce28a72841
I just changed some css and some added class to svg in js


Add self to invoke meta

This PR adds self (reference to invokee) to the invoke meta.
Addresses #2715
From the changeset:
Invoke creators now have a reference to self, which is the ActorRef that invoked the child actor:
const machine = createMachine({
  invoke: {
    src: (context, event, { self }) => () => {
      // `self` is a reference to the `machine` that
      // invoked this callback actor.
      // This sends a 'SOME_EVENT' event to parent.
      self.send({ type: 'SOME_EVENT' });
    }
  },
  initial: 'pending',
  states: {
    pending: {
      on: {
        SOME_EVENT: 'success'
      }
    },
    success: {
      type: 'final'
    }
  }
});

Just a reminder - this needs a changeset 😉

Waiting on this.
This feature is going to open up a lot of possibilities.
Also, I think that the self reference should also be added to plain actions arguments like discussed here.

There are two type problems that have to be addressed before landing this, the call sites with errors are shown here:
diff --git a/packages/core/src/State.ts b/packages/core/src/State.ts
index 6aef9796d..96ef66de7 100644
--- a/packages/core/src/State.ts
+++ b/packages/core/src/State.ts
@@ -72,11 +72,15 @@ export function bindActionToState<TC, TE extends EventObject>(
     exec:
       exec !== undefined
         ? () =>
-            exec(state.context, state.event as TE, {
-              action,
-              state,
-              _event: state._event
-            })
+            exec(
+              state.context,
+              state.event as TE,
+              {
+                action,
+                state,
+                _event: state._event
+              } as any
+            )
         : undefined
   };

diff --git a/packages/xstate-react/src/useReactEffectActions.ts b/packages/xstate-react/src/useReactEffectActions.ts
index d7657ed0b..527f07d66 100644
--- a/packages/xstate-react/src/useReactEffectActions.ts
+++ b/packages/xstate-react/src/useReactEffectActions.ts
@@ -13,7 +13,7 @@ function executeEffect<TContext, TEvent extends EventObject>(
     action,
     state,
     _event: state._event
-  });
+  } as any);

   originalExec();
 }

Closing this PR since this is already done one the next branch and we don't plan to introduce this in v4.


Yatin: Watch lincsquad.com

Yatin requests the watch of the watch_keyword lincsquad\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

lincsquad\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


gRPC load balancing

I cant seem to make Envoy working with multiple gRPC services deployed. gRPC call always goes to the same instance. How does Envoy load balancer discovers there are other instances of same service were launched with docker-compose scale?
Service1 configuration i use:
admin:
  access_log_path: /tmp/admin_access.log
  address:
    socket_address: { address: <IP_ADDRESS>, port_value: 9901 }

static_resources:
  listeners:
  - name: listener_0
    address:
      socket_address: { address: <IP_ADDRESS>, port_value: 30271 }
    filter_chains:
    - filters:
      - name: envoy.http_connection_manager
        config:
          stat_prefix: ingress_http
          codec_type: AUTO
          route_config:
            name: local_route
            virtual_hosts:
            - name: service1_grpc
              domains: ["*"]
              routes:
              - match: { prefix: "/" }
                route: { cluster: service1_grpc }
          http_filters:
          - name: envoy.router
            config: {}
  clusters:
  - name: service1_grpc
    connect_timeout: 25s
    type: STRICT_DNS
    lb_policy: ROUND_ROBIN
    dns_lookup_family: V4_ONLY
    http2_protocol_options: { }
    hosts: [{ socket_address: { address: <IP_ADDRESS>, port_value: 30270 }}]

Now caller service has gRPC client init with:
grpc.Dial("service1_grpc:30271", grpc.WithInsecure())
Problem is, whenever i launch multiple instances of service1 using docker-compose scale command, newly launched ones never receive any calls. Where is the problem with my configuration?

@ArkadyB from your other issue it sounds like this is now working, can we close this out?

@htuch yes, you can.


incorrect sourceMappingURL

i'm including js-xls library using script tag with next src
"libs_path/js-xlsx/dist/xlsx.core.min.js"
after that my 38 google chrome tries to load source map for it using next path
libs_path/js-xlsx/dist/dist/xlsx.core.min.map
as you can see dist is repeated twice (.../dist/dist/......).
as i can see there is next line in xlsx.core.min.js - "//# sourceMappingURL=dist/xlsx.core.min.map"
to make chrome load .map file from correct path i changed it to "//# sourceMappingURL=xlsx.core.min.map" (without dist prefix)
i have surfed internet looking if this can be configured in some way, but i didn't find solution, help please

This is also related to another issue I'm having. I'm using the bower package (0.7.11)
https://github.com/ember-cli/ember-cli/issues/2912

All of the source map references are stripped.
@tjhart I was able to repeat the steps in https://github.com/ember-cli/ember-cli/issues/2912#issue-53562633 with no issue, so I assume the fixes in ember-cli/ember-cli#2912 resolved the issue.  Please raise a new issue if you still have problems.