Druid no longer returns nulls as dimensions in new version(0.17.0)

Affected Version
0.17.0
Description
query:

{
"dataSource": "stats",
"queryType": "groupBy",
"intervals": "2020-10-03T00:00:00-04:00/2020-10-03T23:59:59-04:00",
"granularity": { "type": "period", "period": "P1D", "timeZone": "America/Toronto" },
"dimensions": ["segments"],
"aggregations": [{ "fieldName": "Impressions", "name": "imp", "type": "longSum" },{ "fieldName": "Clicks", "name": "Clicks", "type": "longSum" },{ "fieldName": "PageVisit1", "name": "pv1", "type": "longSum" },{ "fieldName": "PageVisit3", "name": "pv3", "type": "longSum" },{ "fieldName": "ViewConversions", "name": "act_view", "type": "longSum" },{ "fieldName": "ClickConversions", "name": "act_click", "type": "longSum" }],
"retainMissingValue": true,
"replaceMissingValueWith": null,
"filter": {
"type":"and",
"fields": [
{ "type":"in", "dimension":"StatsID", "values": [123] }
                    ]
        }
    }

in the older druid version(as we tested 0.12.0) when a dimension is null, it will still be in the query result.

[
{
"version": "v1",
"timestamp": "2020-10-03T00:00:00.000-04:00",
"event": {
"pv1": 0,
"Clicks": 53,
"pv3": 0,
"act_click": 0,
"segments": null,
"imp": 58217,
"act_view": 1
}
}
]

we can see "segments": null, this is indicating that dimension is null all across the date range we are querying.
new druid(0.17.0):
even when we used

"retainMissingValue": true,
"replaceMissingValueWith": null

it still returns nothing when a dimension is null.

[
{
"version": "v1",
"timestamp": "2020-10-03T00:00:00.000-04:00",
"event": {
"pv1": 0,
"Clicks": 53,
"pv3": 0,
"act_click": 0,
"imp": 58217,
"act_view": 1
}
}
]

now segments field totally disappeared. which is not consistent with the older druid behaviour.

I tested 0.18.1, and it's fixed there.
we will close this ticket.

closed.


Testing of Bootstrap5.0 CSS variables

Summary
This task is about testing and documenting the set of the CSS variables that are supported in Bootstrap 5.0 and that are useful for our marketplace customization purposes.
Details
Add the following variables to the :root element and test if changing these variables at runtime works. Furthermore, think of which minimum set of Bootstrap CSS variables are useful for our use case, as not all of these variables should be necessarily supported.
--bs-white: #fff; --bs-gray: #6c757d; --bs-gray-dark: #343a40; --bs-100: #f8f9fa; --bs-200: #e9ecef; --bs-300: #dee2e6; --bs-400: #ced4da; --bs-500: #adb5bd; --bs-600: #6c757d; --bs-700: #495057; --bs-800: #343a40; --bs-900: #212529; --bs-primary: #0d6efd; --bs-secondary: #6c757d; --bs-success: #198754; --bs-info: #0dcaf0; --bs-warning: #ffc107; --bs-danger: #dc3545; --bs-light: #f8f9fa; --bs-dark: #212529;
Refer to the Bootstrap Github Issue for more information.
Also, research Github Issues concerning this topic, to find out which set of variables will be supported in the Bootstrap5.0 stable version. This is useful for knowing to which level of complexity a Bootstrap Runtime customization can be achieved.
For our purposes for the time being, the most basic set of variables is: --bs-primary, --bs-secondary, --bs-dark, --bs-light, --bs-body-bg and shades of light or dark such as: --bs100, .., --bs-900.
Acceptance criteria

[ ]  Word document or similar: "Support of Bootstrap CSS variables" with list of Bootstrap CSS variables that have been tested and are supported.
[ ] Manual testing
[ ]  UI Customizeability is preserved

Additional context
N/A.

For later.


Show comments instead of listing comments

Describe requirements
Instead of having to click on individual comments in the Reporter app, is it possible to have all of the comments be listed below the comments, like, and dislike header?

Alternatives
No response
Other Relevant Info
No response
Impact
When there are lots of comments, one will have to click each one to see the comments instead of looking at them all at once.

@HeatherEisan
The list is shown using the popup titles, if we configure the comment field in the popup title we can see the comments list

@sumitzarkar: After I submitted this issue, I reconfigured the title to reference the comment field.

@HeatherEisan, does making the title of the pop-up the comment field solve it for your use case? I was planning to do this with the Citizen Problem Reporter update:

The challenge with auto-expanding them is because it is driven by the record pop-up, there could potentially be a lot of information in the pop-up including attachments which could mean a lot of scrolling to read the comments.

It solves the problem in which users can quickly see comments in a list. It might be frustrating to a user to click on each comment to view more information. Users are accustomed to scrolling whether it’s social media or websites (such as Google reviews) to gather more information.


Pixhawk does not emit any PWM for camera trigger

Hi guys,
I recently built and set up an FX-79 Buffalo, it's equipped with 3DR Pixhawk hardware, the good old big one, and it fly very well.
I installed a Sony NEX-7 camera onboard for aerial mapping, and I just uploaded a mission generated using QGC. The drone follow precisely the grid without any problem, but for some reason the trigger is not activated.
In the QGC section for camera, it was by default set as PWM emitted on port AUX 5 and 6.
Considering I was need just 1 port (the NEX camera is activated by IR sensor, which work with PWM) to trigger the camera, I disabled the AUX5 and let the AUX6 on. For some reason the AUX6 has never emitted a signal during the whole flight, and the log confirm, nothing came out on port AUX6.
Any chance to set a PWM output for triggering a camera on an MAIN port instead of AUX to make it work?
http://logs.uaventure.com/view/vay8epkqGFfJno4mUgh2DB
Thanks
Dam

Please see #6092 and #6194

Hi, thanks for your help.
I tried as suggested to move the AUX to 3 and 4, I tested again but sadly it still doesn't take picture. Log here: http://logs.uaventure.com/view/LKPD4qmviHBbQzmYEp7Kz3
Please, can someone help me fix this? I really need this working as I'm using this frame for my professional employ, and I don't want to switch to APM.
Best Regards
Damiano

Closing in favour of #6961. Thanks for reporting.


support >= fivetran_utils 0.2.0

compatibility issues where other source packages require fivetran_utils >= 0.2.0

@jamesrayoub quickbooks_source v0.3.0 is now live on the dbt hub!
Let me know if you have any further questions or requests when upgrading.


Features: The about section

**Is your feature request related to a problem? **
The about section has huge paragraph which not give an attractive look to the page. The about us section can be enhanced by adding the image , button which has learn more .
Describe the solution you'd like
The about us section can have image , by adding the learn more button at the about it improve the page .
By touching the learn more user will see the description about the page.
Describe alternatives you've considered
This will attract the page of the about section.
Additional context

I can fix this


riak_kv_bitcask_backend infinite loop recovery [JIRA: RIAK-1821]

We have an installation in which a disk corruption causes a riak that will not restart.
We get an infinite number of these messages (see below).  The same file seem to be retried again and again.  Dunno how the <<>> key made it into the file, but it can't be converted using riak_kv_bitcask_backend:key_transform_to_1/1, and that seems to cause an infinite superviser restart or something.
console.log:2015-05-21 10:15:54.881 [warning] <0.572.0> Hintfile '/var/lib/riak/bitcask/799258707915337533392640142891717276374338109440/1974.bitcask.hint' invalid
console.log:2015-05-21 10:15:54.882 [error] <0.572.0> scan_key_files: error function_clause @ [{riak_kv_bitcask_backend,key_transform_to_1,[<<>>],[{file,"src/riak_kv_bitcask_backend.erl"},{line,99}]},{bitcask,'-scan_key_files/5-fun-0-',7,[{file,"src/bitcask.erl"},{line,1182}]},{bitcask_fileops,fold_keys_int_loop,5,[{file,"src/bitcask_fileops.erl"},{line,595}]},{bitcask_fileops,fold_file_loop,8,[{file,"src/bitcask_fileops.erl"},{line,720}]},{bitcask_fileops,fold_keys_loop,4,[{file,"src/bitcask_fileops.erl"},{line,575}]},{bitcask,scan_key_files,5,[{file,"src/bitcask.erl"},{line,1190}]},{bitcask,init_keydir_scan_key_files,4,[{file,"src/bitcask.erl"},{line,1283}]},{bitcask,init_keydir,4,[{file,"src/bitcask.erl"},{line,1235}]}]

Hey @krestenkrab, did you see these:

https://github.com/basho/bitcask/issues/212
https://github.com/basho/bitcask/pull/213
https://github.com/basho/bitcask/pull/214

I believe you are hitting the same problem. Let me know if it looks like a different or if the new PRs help or not. They have not been reviewed yet, but we will try to fix this issue for our next release.

Indeed.  Even our data files are corrupt for some reason. Here's an example of a corrupt .data file with just a single tombstone and a single key in it.
We've seen this problem twice the last week, so there must be something wrong with the OS/file system we're running this on.
00000000  3b 86 87 8c 55 5d 1d 41  00 47 00 00 00 16 02 00  |;...U].A.G......|
00000010  09 6c 61 73 74 2d 73 65  65 6e 34 38 3a 39 61 3a  |.last-seen48:9a:|
00000020  33 39 3a 62 61 3a 34 64  3a 36 62 3a 30 30 3a 38  |39:ba:4d:6b:00:8|
00000030  62 3a 39 30 3a 37 38 3a  37 62 3a 35 31 3a 38 33  |b:90:78:7b:51:83|
00000040  3a 64 63 3a 39 64 3a 63  30 3a 65 63 3a 32 35 3a  |:dc:9d:c0:ec:25:|
00000050  64 64 3a 34 37 62 69 74  63 61 73 6b 5f 74 6f 6d  |dd:47bitcask_tom|
00000060  62 73 74 6f 6e 65 32 00  00 07 90 2d 95 f8 ec 55  |bstone2....-...U|
00000070  5d 1d 41 00 47 00 00 00  d1 02 00 09 6c 61 73 74  |].A.G.......last|
00000080  2d 73 65 65 6e 34 38 3a  39 61 3a 33 39 3a 62 61  |-seen48:9a:39:ba|
00000090  3a 34 64 3a 36 62 3a 30  30 3a 38 62 3a 39 30 3a  |:4d:6b:00:8b:90:|
000000a0  37 38 3a 37 62 3a 35 31  3a 38 33 3a 64 63 3a 39  |78:7b:51:83:dc:9|
000000b0  64 3a 63 30 3a 65 63 3a  32 35 3a 64 64 3a 34 37  |d:c0:ec:25:dd:47|
000000c0  35 01 00 00 00 25 83 6c  00 00 00 01 68 02 6d 00  |5....%.l....h.m.|
000000d0  00 00 08 23 09 fe f9 68  42 16 e8 68 02 62 00 00  |...#...hB..h.b..|
000000e0  c9 01 6e 05 00 41 99 d1  ce 0e 6a 00 00 00 01 00  |..n..A....j.....|
000000f0  00 00 14 01 7b 22 74 69  6d 65 22 3a 31 34 33 32  |....{"time":1432|
00000100  31 36 35 36 39 35 7d 00  00 00 86 00 00 05 98 00  |165695}.........|
00000110  02 87 41 00 02 e7 2b 15  47 54 73 38 6f 4a 6f 58  |..A...+.GTs8oJoX|
00000120  6f 63 68 52 31 33 47 6a  73 74 56 4f 31 00 00 00  |ochR13GjstVO1...|
00000130  00 0c 01 58 2d 52 69 61  6b 2d 4d 65 74 61 00 00  |...X-Riak-Meta..|
00000140  00 03 00 83 6a 00 00 00  06 01 69 6e 64 65 78 00  |....j.....index.|
00000150  00 00 03 00 83 6a 00 00  00 0d 01 63 6f 6e 74 65  |.....j.....conte|
00000160  6e 74 2d 74 79 70 65 00  00 00 15 00 83 6b 00 10  |nt-type......k..|
00000170  61 70 70 6c 69 63 61 74  69 6f 6e 2f 6a 73 6f 6e  |application/json|
00000180  00 00 00 06 01 4c 69 6e  6b 73 00 00 00 03 00 83  |.....Links......|
00000190  6a 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |j...............|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000320  00 00 00                                          |...|
00000323

Wait, that's interesting.  There was a change in Bitcask for Riak 2.0 that deals with data resurrection when merging tombstones.  The new code will actually re-open old files and append tombstones to it during a merge, which is a first for Bitcask.  It's tricky enough that you could be seeing a bug related to it. I can see you are using Bitcask with this new scheme on, since your tombstone has the "bitcask_tombstone2" token on it.  Could you send a few of these corrupt data files our way and give us some context on the cluster activity?
https://github.com/basho/bitcask/pull/156

Cluster activity is simple, it's a single node 64/partition system running plain open source Riak, I'll see if I can get the exact version from ops.
I'll mail you a bad bit cask file.

I noticed this text in Kafka's documentation End of section 5.5, "Guarantees"

Note that two kinds of corruption must be handled: truncation in which an unwritten block is lost due to a crash, and corruption in which a nonsense block is ADDED to the file. The reason for this is that in general the OS makes no guarantee of the write order between the file inode and the actual block data so in addition to losing written data the file can gain nonsense data if the inode is updated with a new size but a crash occurs before the block containing that data is not written. The CRC detects this corner case, and prevents it from corrupting the log (though the unwritten messages are, of course, lost).

This might be what caused zeros to appear at the end of the data file.


Update: btc-rpc-explorer 2.2.0

merged by #1846 .. now on final testing for v1.7 release

basic install testing looks good ... keeping open for final release testing & recovery/update test.

First install of the v3.0.0 looks good .. ready for final testing in the RC2

Tested again and looks ready to ship for v1.7 ... closing issue.


Types used in JSX.LibraryManagedAttributes have to accept both provided type parameters

Bug Report
🔎 Search Terms
LibraryManagedAttributes
🕗 Version & Regression Information
This issue manifests itself at least since 3.9 but I strongly suspect that it has been here since JSX.LibraryManagedAttributes were introduced to TS. It also happens in the latest nightly build.
This is the behavior in every version I tried, and I reviewed the FAQ for entries about JSX/React
⏯ Playground Link

Extra prop directly provided in LibraryManagedAttributes (working)
Extra prop indirectly provided in LibraryManagedAttributes (not working)
Unused C type passed to indirect version (working again)

💻 Code
I've stumbled upon this because in Emotion (CSS-in-JS library) we provide support for a "pseudo" css prop - to do that we have a conditional type like:
type WithConditionalCSSProp
 = 'className' extends keyof P
  ? string extends P['className' & keyof P]
    ? P & { css?: Interpolation<Theme> }
    : P
  : P

which we use in the LibraryManagedAttributes type. However, as this is React-based library we want to only extend what React types offers and not replace them entirely. So we've tried this:
type LibraryManagedAttributes<C, P> = WithConditionalCSSProp<
  ReactJSXLibraryManagedAttributes<C, P>
>

and for some weird reason this didn't work as expected. We've managed to work around by doing this:
type LibraryManagedAttributes<C, P> = ReactJSXLibraryManagedAttributes<C, P> & WithConditionalCSSProp

I couldn't wrap my head around why the "composed" type doesn't work though - I've tested that TS is able to resolve it correctly! Even when it was used in the LibraryManagedAttributes type (I've assigned result to some extra prop and the produced types were as expected).
After more investigation I've discovered that we could make the version with types composition work by making WithConditionalCSSProp accept C - even if it has stayed unused in its implementation:
type WithConditionalCSSProp<C, P> = 'className' extends keyof P
  ? string extends P['className' & keyof P]
    ? P & { css?: Interpolation<Theme> }
    : P
  : P

type LibraryManagedAttributes<C, P> = WithConditionalCSSProp<
  C,
  ReactJSXLibraryManagedAttributes<C, P>
>

and this has lead me to narrow down the issue to even weirder scenarios - I've linked all of them in the "Playground Link" section.
🙁 Actual behavior
Types used by LibraryManagedAttributes that do not accept both provided type parameters are ignored which leads to obscure observable effects because one can think that their changes are reflected by the affected type is not used at all - it doesn't error or anything, it's just skipped over.
🙂 Expected behavior
Types used by LibraryManagedAttributes should be able to accept any amount of type arguments.

It sounds like this is a complaint about how the React .d.ts file is written, not a TypeScript bug. The React file is maintained on DefinitelyTyped and changes should be proposed at that repo; we don't ourselves author or control it.

It sounds like this is a complaint about how the React .d.ts file is written, not a TypeScript bug. The React file is maintained on DefinitelyTyped and changes should be proposed at that repo; we don't ourselves author or control it.

This is not complaint about React types at all - they work fine. Take a look at isolated playgrounds that I have provided. The behavior presented doesn't look as expected - I have also consulted  that with some TS advanced users from the community prior to reporting and all of them were like WAT

This is not complaint about React types at all - they work fine. Take a look at isolated playgrounds that I have provided. The behavior presented doesn't look as expected - I have also consulted  that with some TS advanced users from the community prior to reporting and all of them were like WAT

Yep, you're right, WAT indeed. Condensed inline version
/** @jsx jsx */
import React from 'react'

declare const jsx: typeof React.createElement
namespace jsx {
    export namespace JSX {
        export interface Element {}
        export interface ElementClass {}
        export interface ElementAttributesProperty {}
        export interface ElementChildrenAttribute {}
        export interface IntrinsicAttributes {}
        export interface IntrinsicClassAttributes<T> {}
        export type IntrinsicElements = {
            div: { className: string }
        }
        // Works
        export type LibraryManagedAttributes<C, P> = P & { css: string };

        // Equivalent to above, but fails
        // export type WithCSSProp
 = P & { css: string }
        // export type LibraryManagedAttributes<C, P> = WithCSSProp

    }
}

declare const Comp: (p: { className?: string }) => null

;<Comp css="color:hotpink;" />

Yep, you're right, WAT indeed. Condensed inline version
/** @jsx jsx */
import React from 'react'

declare const jsx: typeof React.createElement
namespace jsx {
    export namespace JSX {
        export interface Element {}
        export interface ElementClass {}
        export interface ElementAttributesProperty {}
        export interface ElementChildrenAttribute {}
        export interface IntrinsicAttributes {}
        export interface IntrinsicClassAttributes<T> {}
        export type IntrinsicElements = {
            div: { className: string }
        }
        // Works
        export type LibraryManagedAttributes<C, P> = P & { css: string };

        // Equivalent to above, but fails
        // export type WithCSSProp
 = P & { css: string }
        // export type LibraryManagedAttributes<C, P> = WithCSSProp

    }
}

declare const Comp: (p: { className?: string }) => null

;<Comp css="color:hotpink;" />


Getting no_url action when triggering a block_action by clicking on modal button

Description
An action submitted from a modal doesn't trigger the appropriate call to the action api. Instead I get a no_url error from api.
here's the
curl 'https://timothyurista.slack.com/api/blocks.actions?_x_id=...`
here's the form data
service_id: BXXXXXXX
service_team_id: TXXXXXX
actions: [{"action_id":"buttonclick","block_id":"findapp","text":{"type":"plain_text","text":"Click Me","emoji":true},"type":"button"}]
container: {"type":"view","view_id":"VPDN7LL2W"}
client_token: web-XXXXXXXX
token: xoxc-TOKENXXXXXXX
_x_reason: dispatch_action_to_developer
_x_mode: online
_x_sonic: true

I want to trigger this with bolt:
app.action({ action_id: 'buttonclick', block_id: 'findapp' }, async({ context, payload, body, ack }) => {
  ack();
  console.log('findapp')

  console.log(ack);

  await app.client.apiCall('views.update', {
    token: context.botToken,
    user_id: payload.trigger_id,
    view: payloads.findApp()
  })
})

the modal template:
{
	"type": "modal",
	"title": {
		"type": "plain_text",
		"text": "My App",
		"emoji": true
	},
	"submit": {
		"type": "plain_text",
		"text": "Submit",
		"emoji": true
	},
	"close": {
		"type": "plain_text",
		"text": "Cancel",
		"emoji": true
	},
	"blocks": [
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "A message *with some bold text* and _some italicized text_."
			}
		},
		{
			"type": "section",
      "block_id": "findapp",
			"text": {
				"type": "mrkdwn",
				"text": "You can add a button alongside text in your message. "
			},
			"accessory": {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text": "Click Me"
          },
          "action_id": "buttonclick",
			},
		}
	]
}

but nothing is sent when triggering action inside a modal. Thoughts?

What type of issue is this? (place an x in one of the [ ])

[x] bug
[ ] enhancement (feature request)
[ ] question
[ ] documentation related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version:
"@slack/bolt": "v1.4.1"
node version:
latest
OS version(s):
Steps to reproduce:

Expected result:
I expect once the modal triggered and I clicked the button it would call my update function
Actual result:
The load never propogated but I got a false no_url error from slack.
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.

I tried to reproduce your situation but I was not able to. The following example worked as I expected. Can you share the actual code you're trying to run?
app.command('/just-to-open-view', async ({ body, ack, context }) => {
  ack();
  await app.client.views.open({
    token: context.botToken,
    trigger_id: body.trigger_id,
    view: theView
  })
});

app.action({ action_id: 'buttonclick', block_id: 'findapp' }, async({ body, ack }) => {
  console.log(body)
  ack();
})

const theView = {
  "type": "modal",
  "title": {
    "type": "plain_text",
    "text": "My App",
    "emoji": true
  },
  "submit": {
    "type": "plain_text",
    "text": "Submit",
    "emoji": true
  },
  "close": {
    "type": "plain_text",
    "text": "Cancel",
    "emoji": true
  },
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "A message *with some bold text* and _some italicized text_."
      }
    },
    {
      "type": "section",
      "block_id": "findapp",
      "text": {
        "type": "mrkdwn",
        "text": "You can add a button alongside text in your message. "
      },
      "accessory": {
        "type": "button",
        "text": {
          "type": "plain_text",
          "text": "Click Me"
        },
        "action_id": "buttonclick"
      }
    }
  ]
}

@seratch thanks for trying to reproduce this! I think I figured out what the issue was. I was using glitch url for the event stream and a different one for the modal stuff. However when I tried to update the event url to match the expected modal results (through the web ui) that change didn't take for some reason, bot had possibly locked that resource. I think this is why I got a url not found error. I am going to launch a new demo bot using only a single url for events and interactions and slash commands and I will check to see if this is still an issue. Thanks again!

Hi ,
I had the same issue and i need to ask what i had to do if i need to use a url for actions different from the one of events
Thanks,


New version: charmbracelet.vhs 0.8.0

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Automated with GoReleaser
Microsoft Reviewers: Open in CodeFlow

@wingetbot run

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\vhs.exe returned exit code: 1
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\vhs.exe returned exit code: 1

(Automated response - build 895.)


extended k8s configuration capabilities for nodes and the coordinator

Is your feature request related to a problem? Please describe.
Currently pod configurations are created by a script. So we do not have control over these configurations. This is making it difficult to customize the graphscope deployment. For example, adding a customized mount point, setting ephemeral storage, setting CPU limits to guide the scheduler, or assigning pods to nodes using labels is not possible.
Describe the solution you'd like
Being able to configure the pods however we like.
Describe alternatives you've considered
Currently we are setting k8s defaults for some of the critical issues (ephemeral storage). But it's not a valid solution for all of the problems.
Additional context

Hi @xarion,
Supporting more complete kubernetes deployment options is indeed in our TODOs. I would like you know that currently we already allow the user to add custom volumes (see the k8s_volumes arguments in Session.init) and set the cpu/mem requests/limits (see graphscope.set_option).
We are planning to support a user-provided dict as arguments and merging the dict into our builtin deployment settings before sending to kubernetes. Such a feature will be hopefully released be the end of July.
Hope the information above could be helpful for you folks.

Thanks for the response @sighingnow.
Unfortunately, although graphscope.set_option allows us to set the cpu/mem limits, those values are not used while creating the kubernetes configuration. Only the requested cpu/mem values are reflected to the config.
Also, as you mentioned, k8s_volumes allows us to mount drives, but it is in a limited way. We have been unsuccessful in our attempts to use this setting to increase the ephemeral storage. One way would be to attach a mount to the log folder. But unfortunately this is also not enough, because to my knowledge k8s_volumes are not attached on the Jupyter and coordinator pods. Even if it worked, this is a complex way of dealing with the kubernetes configuration.
I suggest instead of passing parameters to a dict, let us use the kubernetes way and define a yaml file.

Hey @sighingnow.

Unfortunately, although graphscope.set_option allows us to set the cpu/mem limits, those values are not used while creating the kubernetes configuration. Only the requested cpu/mem values are reflected to the config.

This is still causing a major headache for us.

Hi @xarion,
I think the k8s_volumes should be enough to set require storage and k8s_engine_cpu, k8s_engine_mem, etc. should be enough to set the cpu/mem limit.

assigning pods to nodes using labels is not possible.

We could add options like k8s_engine_pod_label={}, k8s_vineyard_pod_label={} to support that. Do you think such options enough for your cases? It they could work, we can try to include the implementation in the upcoming v0.17.0 release.

let us use the kubernetes way and define a yaml file.

That won't happen before v0.17.0, we need to investigate the schema the yaml file to define which options are customizable and which are not.

Hi @sighingnow

I think the k8s_volumes should be enough to set require storage and k8s_engine_cpu, k8s_engine_mem, etc. should be enough to set the cpu/mem limit.
Currently graphscope sets the "requests" parameter in kubernetes. This does not necessarily block the resources for the pod. So multiple tasks that request the max memory can be scheduled to the same node. Unfortunately, we are having this issue and we have hacky solutions to prevent this. To correctly fix this, the "limits" parameter should be set.

This does not necessarily block the resources for the pod.

The session (as well as graphscope.set_option) has a preemptive (see https://github.com/alibaba/GraphScope/blob/main/python/graphscope/config.py#L86). When it is set as False, the arguments k8s_engine_cpu, k8s_engine_mem, etc. will be use as "required", rather than "limit".

Currently graphscope sets the "requests" parameter in kubernetes. ..... To correctly fix this, the "limits" parameter should be set.

I guess you mean "requests" is what you want, but we currently set them as "limit".

You're right, I confused limits and requests in my post.
preemptive=false resolved our headache. Now we can better schedule pods.
For the future, deploying to our existing systems will require a more elaborate kubernetes configuration. So we are looking forward to the release of 0.17.0!

For the future, deploying to our existing systems will require a more elaborate kubernetes configuration.

FYI: node selector has been added in https://github.com/alibaba/GraphScope/pull/2087

Closing as problems raise in this issue has been resolved. Feel free to open new tickets if you have other feature requests.


Error on CDS patch function

Error	CS0103	The name 'SendAsync' does not exist in the current context
The above error is happening when performing update on CDS record.  It is happening within the method(PostAsync) in the following class
CDSWebApiService
Can somebody please help to resolve it?
Thanks

@umerjaved
Which sample are you running when you get this error?

@umerjaved
The CDSWebApiService is a sample that encapsulates re-usable calling patterns into methods.
The CDSWebApiService class is only tested in the context of the samples published here. If you are re-using it in a different project, you might run into issues not encountered in the development of these samples. As a sample, the idea is that you can borrow some of the patterns demonstrated in your own code.
If you are having issues running any of the samples that depend on CDSWebApiService, please re-open this issue.


Support one shot urls

Hello,
Thank you for this nice little crate, it's very useful!
I was wondering if you could add support for one shot urls. There is support for oneshot files and urls individually, but not for oneshot urls as I understand it. For example:
Both these work as intended: $ rpaste -u "https://github.com" and $ rpaste -o foo.txt
But this does not: $ rpaste -o "https://google.com"
Neither does this: $ rpase -o -u "https://amazon.com" (Well it works but doesn't make the url one shot).
Another way would be to introduce a brand new category OneshotUrl or something similar and have rpaste expose a different flag for it. I have started some work on doing that here.

Hey! 🐻
Yeah, this feature would be really nice!
Saw that you already started implementing it so feel free to submit a PR and I'm happy to review.
One question would be which multipart field to use for that. I think it can be something like:
curl -F "oneshot_url=<url>" "<server_address>"

Hey! bear
Yeah, this feature would be really nice!
Saw that you already started implementing it so feel free to submit a PR and I'm happy to review.
One question would be which multipart field to use for that. I think it can be something like:
curl -F "oneshot_url=<url>" "<server_address>"

Been a bit busy past few days, but yeah, I'll try to get it done hopefully by next week and submit a PR for you to review. Glad you like the feature request!

Looking forward to it!


Two mimetype file created when running on Windows machine

On the writeEpub function of write.go, it seems that calling filepath.Join(rootEpubDir, mimetypeFilename) on a Windows machine would generate a path joined by a backslash \ instead of usual forward slash /.
Calling fs.WalkDir(filesystem, rootEpubDir, addFileToZip) later would result in comparing forward slash path of mimetype with the backslash version by filepath.Join(rootEpubDir, mimetypeFilename) which in the end resulting with another mimetype with deflate method.
Changing path == filepath.Join(rootEpubDir, mimetypeFilename) to filepath.Base(path) == mimetypeFilename would be a quick fix but there might be a better way to do this.

I don't have access to a Windows machine to test this on, but maybe I could create a breaking test and run it in GitHub Actions so I can make sure the fix is working.
If you get a chance, could you attach an EPUB with the extra mimetype file to this issue? Thanks!

Because I don't have a Windows machine, I'm not really able to test this, so I'll mark it as Help wanted for now.
I did do some quick research and found this:

For creating and manipulating OS-specific paths directly use os.PathSeparator and the path/filepath package.
An alternative method is to always use '/' and the path package throughout your program. The path package uses '/' as path separator irrespective of the OS. Before opening or creating a file, convert the /-separated path into an OS-specific path string by calling filepath.FromSlash(path string). Paths returned by the OS can be converted to /-separated paths by calling filepath.ToSlash(path string).

https://stackoverflow.com/a/9373342/399105
@nitxy I see you're new to GitHub. Are you familiar with pull requests? I'm asking because if you don't know them and are interested in learning, this would be a perfect issue to learn them since it's a small one:
https://docs.github.com/en/pull-requests

Fixed by #61


Enable setting custom app registration ClientID via UI

Can you add a config option to set the ClientID instead of requiring a custom build of the exe?

I definitely can and will add custom app registration via the UI. I am working on the next version but i will make sure it's also in this version.
I do have some questions if you don't mind, I have 0 way of knowing anything about my users other than data that comes from the Microsoft Store, and that's limited to very short cryptic and crash logs, and number installs or launches.

Do you use the app on windows10/11, Mac or Linux?
Do you or will you use it from the Microsoft store?
What is the hesitation (if any) of using the application at your company?
What features (other than aforementioned) does the app lack?
Do you use the subscription page?
how do you like the layout?

Sure thing.  I'd be happy to help with testing if needed.

@cricketthomas I was thinking about this issue along with #107 and I wonder if both issues would be resolved by acting as a user instead of an app registration.  That would at least be preferable at my company.

The app registration is actually required for user impersonation.
The app has no rights at all, it's performing all actions as the signed in user, if the user can't do it, the app can't do it. #107 is mainly around some assumptions I made when building the application which will have to be fixed, since it was a bad approach to assume most users in the tenant have global reader over subscriptions and RGs.
The app just needs to be installed in your tenant so you can sign into it with your from your domain, I have no control over anything other than registering in my own tenant as a multi-tenanted application.
Also, since your firm has blocked the Microsoft store, would an MSIX package solve your issue so you can install it (outside of the store)?
I'm on vacation right now so I can't actually code anything right now, but when I get back I'll work on getting these issues taken care of.

Yes, an MSIX would be very helpful.
I guess that explanation makes me wonder how the old MS Keyvault app made things work.  Were they using some all-powerful app reg specially provision by MS?


Pass di when register module autoloaders

it'll be very convenient to access DI instance when ModuleInterface::registerAutoloaders() is changed to ModuleInterface::registerAutoloaders(variable $di) .
    public function registerAutoloaders()
    {
        (new Loader())
            ->addNamespace(__NAMESPACE__ . '\Controllers', __DIR__ . '/controllers/')
            ->register();
    }

VS
    // better performance
    public function registerAutoloaders(Di $di)
    {
        $di->loader->addNamespace(__NAMESPACE__ . '\Controllers', __DIR__ . '/controllers/');
    }

an amazing feature that allow user to set a higher loading order for the current module when prepend the loading namespaces: $di->loader->addNamespace(__NAMESPACE__ . '\Controllers', __DIR__ . '/controllers/', true);

It's easy to  implement, how about $di = null by default, to keep backward compatibility?
https://github.com/ice/framework/blob/dev/ice/dispatcher.zep#L189
https://github.com/ice/framework/blob/dev/ice/mvc/moduleinterface.zep#L18

@mruz it's fine!

After a sound thought, pass the loader loading the current module to registerAutoloaders($loader) to allow developer control the module loading process.
$di->loader->addNamespace(__NAMESPACE__ . '\Controllers', __DIR__ . '/controllers/');
can be done in registerServices(Di $di)

let loader = this->di->get("loader")

Will get the loader from te di or create a new if not exist, so maybe that way.
Then ModuleInterface::registerAutoloaders(Loader $loader = null), you won't need to update your app if you have just registerAutoloaders() in every module.

Every loader has its own namespaces room. create a new loader to load a module to guarantee its independent room and don't pollute the global loader (this->di->get('loader')) .
How do you think?


Translator role isn't recognised by the API

Creating a new board and restricting it to read/write by the translator role gets a 422 response from the POST request, with the following response body: error: "The property '#/boards/permissions/read' value "translator" did not match one of the following values: all, team, moderator, admin"

Should have a fix out in #189 - a workaround now is to setup the board and edit the allowed roles to set what you want.

Cheers, I'll pass that on to Galaxy Zoo.

Thanks guys, happy to wait for #189.

This is now deployed and live on the production talk API.

Thanks Cam, works great.


Update loader.conf

Alcor micro AU6375 reader #532

Thank you very much @louies0623. :+1:
Congratulations to your first Pull Request :1st_place_medal:
You are now credited in the project history as someone who has contributed code:
https://github.com/helloSystem/ISO/commit/e9294ba7d6e437a0402efb374a5943ea3c90e0db
I have reviewed and merged your pull request and it and it will be in the next ISO build.
Small tip for your next pull request: If you write "Closes #532" in the description, then that ticket is automatically closed when your pull request is merged.


Create hello-femi

Prints out hello femi?

Ijava?

Thank you for participating  in hacktoberfest ❣ if you liked working on this repo you can share it with friends and star this project for helping others


Update maintainer of Auth0 provider

:+1: don't forget to update the list in the gh-pages branch too!


Telnet not available in v3.7

The telnet command was somehow removed in version 3.7. Was that intentional, and if not, can that be fixed?
Works in 3.6:
➜  docker run -it alpine:3.6
/ # telnet
BusyBox v1.26.2 (2017-11-23 08:40:54 GMT) multi-call binary.

Usage: telnet [-a] [-l USER] HOST [PORT]

Connect to telnet server

	-a	Automatic login with $USER variable
	-l USER	Automatic login as USER

Doesn't work in 3.7:
➜  docker run -it alpine:3.7
/ # telnet
/bin/sh: telnet: not found

telnet was moved into subpackage busybox-extras as of https://github.com/alpinelinux/aports/commit/23f4c6bd6c

@jumanjiman thanks
podtest:~# apk add busybox-extras
(1/1) Installing busybox-extras (1.27.2-r9)
Executing busybox-extras-1.27.2-r9.post-install
Executing busybox-1.27.2-r7.trigger
OK: 10 MiB in 22 packages
podtest:~# tel
-ash: tel: not found

podtest:~# busybox-extras
BusyBox v1.27.2 (2018-05-28 18:53:52 UTC) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

Usage: busybox [function [arguments]...]
   or: busybox --list[-full]
   or: busybox --install [-s] [DIR]
   or: function [arguments]...

	BusyBox is a multi-call binary that combines many common Unix
	utilities into a single executable.  Most people will create a
	link to busybox for each function they wish to use and BusyBox
	will act like whatever it was invoked as.

Currently defined functions:
	dnsd, fakeidentd, ftpd, ftpget, ftpput, httpd, inetd, readahead, telnet, telnetd, tftp, tftpd, udhcpd
podtest:~# busybox-extras  telnet
BusyBox v1.27.2 (2018-05-28 18:53:52 UTC) multi-call binary.

Usage: telnet [-a] [-l USER] HOST [PORT]

Connect to telnet server

	-a	Automatic login with $USER variable
	-l USER	Automatic login as USER


Unable to find image 'willow:latest' locally

Following the instructions from https://github.com/toverainc/willow/blob/main/README.md when running ./utils.sh docker on macOS I get the following error:
Unable to find image 'willow:latest' locally
docker: Error response from daemon: pull access denied for willow, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

I think this might be due to the build not being tagged properly in the ./utils.sh build-docker step when built using colima instead of Docker Desktop.

But RUN --mount requires BuildKit so since I don't have the full Docker Desktop install (it has become bloatware on the Mac) it does not work without it. I have commented out the --mount lines to see if I can simple build without a cache.

Comment out did seem to fix it, but having another build issue that I will open in another issue.

Ok, I'll look out for your new issue and consider what we want to do about this one.
Thanks for working through it!

Sure thing, opened new issue here: https://github.com/toverainc/willow/issues/41

And thanks for your work!

Thanks!

But RUN --mount requires BuildKit so since I don't have the full Docker Desktop install (it has become bloatware on the Mac) it does not work without it

I run buildkit without docker desktop (though on ubuntu)


Implement flake8-cognitive-complexity

GitHub, PyPI.

[ ] CCR001: Cognitive complexity is too high (X > Y)

Configuration options: max-cognitive-complexity
This plugin is focused on cognitive complexity vs cyclomatic complexity which we have via mccabe. Apparently this is the algorithm used by SonarSource, CodeClimate, etc. according to the README. See here for more details.

Cool plugin! ruff would be a nice opportunity to spread this to a wider audience.
It passes over de function body once to computer a complexity score >= 0. Should not be too hard or expensive to add.

I was looking to replace my flake8 plugins list with ruff and there's 2 plugins I couldn't replace yet:

flake8-cognitive-complexity
flake8-expression-complexity

Hope to see them implemented in ruff.

Also in the same terms it would be nice to implement flake8-cohesion

It'd be also nice to implement https://github.com/Miserlou/JonesComplexity that WPS uses, for example..

Are you planning to use these rules alongside the mccabe complexity rule or instead of it?

I usually have all enabled, unless they are exact duplicates, of course..

FWIW, flake8-cognitive-complexity and flake8-cohesion are the only two rules I still run. If those were added to Ruff, I could fully remove flake8 from my project.
I do run McCabe in Ruff as well, but they serve three different purposes, IMHO.

I do run McCabe in Ruff as well, but they serve three different purposes, IMHO.

Could you explain how the purpose between Mc Cabe and this rule differ in your view?

Could you explain how the purpose between Mc Cabe and this rule differ in your view?
-@MichaReiser

Cognitive complexity is how hard the code is to understand, while cyclomatic complexity is the number of independent branches. For example, a switch case that handles every letter of the alphabet might be very easy to understand, but it would have 26 separate branches.

Thanks, that makes sense. What's the motivation for catching the switch if it is easy to understand?
I'm asking because we're currently leaning towards having one single complexity rule with a configuration option for the metric to avoid overlap (and conflicts). However, that wouldn't support your use case.

Ah, I see your point! The main reason I run McCabe is because I don't want to run flake8 in Github Actions for just a single rule. I personally wouldn't mind replacing it.
However, I do find unique benefit from the related flake8-cohesion, which looks at a class as a whole.

Hi @MichaReiser! I'm a big fan of the rule proposed in this issue, I'm curious have you/the astral team done any of the design work here/is this included in a product roadmap in any way?


docs: Update Firestore readme files

Description
Updated cloud_firestore and cloud_firestore_web ReadMe's to point towards new documentation.

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


ReoGrid throwing exception :- An unhandled exception of type 'System.OutOfMemoryException' occurred in unvell.ReoGrid.dll

I am getting error when trying to populate ReoGrid with 40000 rows and 150 columns.
please see my code and suggest me something which will work for huge rows and columns. looking for help.

        private string GenerateColumnText(int num)
        {
            string str = "";
            char achar;
            int mod;
            while (true)
            {
                mod = (num % 26) + 65;
                num = (int)(num / 26);
                achar = (char)mod;
                str = achar + str;
                if (num > 0) num--;
                else if (num == 0) break;
            }
            return str;
        }

        private void button2_Click(object sender, System.EventArgs e)
        {

            string strSum = "", strColName, strImmediateOneUp = "", strImmediateTwoUp = "";

            int startsum = 0;
            int currow = 0;
            bool firstTimeSum = true;

            int NumRows = 40000;
            int NumColumns = 150;

            var sheet = reoGrd.CurrentWorksheet;
            sheet.SuspendFormulaReferenceUpdates();
            sheet.Resize(NumRows, NumColumns);  // resize

            DataTable dt = new DataTable();

            for (int col = 0; col < NumColumns; col++)
            {
                strColName = GenerateColumnText(col);
                DataColumn datacol = new DataColumn(strColName, typeof(string));
                dt.Columns.Add(datacol);
            }

            for (int row = 0; row < NumRows; row++)
            {
                dt.Rows.Add();

                for (int col = 0; col < NumColumns; col++)
                {
                    if (row < 2)
                    {
                        dt.Rows[row][col] = new Random().Next(1, NumRows).ToString("D2");
                    }
                    else
                    {
                        if (firstTimeSum)
                        {
                            if (row - currow == 2)
                            {
                                currow = row;
                                startsum = 0;
                                firstTimeSum = false;
                            }
                            else
                            {
                                startsum = 1;
                            }
                        }
                        else
                        {
                            if (row - currow == 3)
                            {
                                currow = row;
                                startsum = 0;
                            }
                        }

                        if (startsum == 0)
                        {
                            strColName = GenerateColumnText(col);
                            strImmediateOneUp = strColName + ((row + 1) - 1).ToString();
                            strImmediateTwoUp = strColName + ((row + 1) - 2).ToString();
                            strSum = string.Format("=SUM({0}:{1})", strImmediateTwoUp, strImmediateOneUp);
                            dt.Rows[row][col] = strSum;

                            string cellname = GenerateColumnText(col) + (row + 1).ToString();
                            var cell = sheet.Cells[cellname];
                            cell.Style.BackColor = Color.LightGoldenrodYellow;
                        }
                        else
                        {
                            dt.Rows[row][col] = new Random().Next(1, NumRows).ToString("D2");
                        }
                    }

                }

                startsum = 1;
            }

            Stopwatch stopwatch = new Stopwatch();
            stopwatch.Start();

            sheet["A1"] = dt;
            sheet.ResumeFormulaReferenceUpdates();
            //sheet.Recalculate();

            stopwatch.Stop();
            TimeSpan timeSpan = stopwatch.Elapsed;

            MessageBox.Show(string.Format("Time elapsed: {0}h {1}m {2}s {3}ms", timeSpan.Hours, timeSpan.Minutes, timeSpan.Seconds, timeSpan.Milliseconds));

        }

please test my code then you can see i am getting error......out of memory exception. error message is -- An unhandled exception of type 'System.OutOfMemoryException' occurred in unvell.ReoGrid.dll
looking for your suggestion. thanks

See another issue I replied you https://github.com/unvell/ReoGrid/issues/194
I tested again with 40000x150 cells, it takes 18 seconds to finish the initialization, but don't get OutOfMemoryException, you should optimize your code.

I translated it to VB.net & did't had any problems.

Maybe you have to few memory & the swap file is not activated.

My test done in 18 seconds so I think there is something can be optimized to be faster in your code, one of them is avoid to use DataTable, you can try manage data directly using ReoGrid worksheet, it smiler to DataTable but is more faster.
If there is no more OutOfMemoryException can we close this now?


VM-Install-Shortcut uses unnecessary amount of characters for "executableArgs"

What's the problem?
The function VM-Install-Shortcut creates an argument $executableArgs with a long list of arguments that can each be long themselves, leading to the possibility of hitting the character limit when creating a shortcut (which is a quiet error that doesn't display).
I propose we remove the && echo $executableDir^> $executablePath $arguments piece as this doesn't serve much functionality and it extends the command that is put inside the shortcut by almost double.
Steps to Reproduce
Attempt to create a shortcut whose $executablePath + $arguments may be long, for example:
$executablePath = "%ProgramFiles%\Google\Chrome\Application\chrome.exe"
$arguments = "C:\Tools\cyberchef\CyberChef_v10.5.2.html & exit"
This gets cut off around C:\Tools\cyb which is incomplete for me to perform the action I'm intending to do to fix another issue.
Environment
VMWare
Windows version: Windows 10.0.19045
powershell version: 5.1.19041.3803
choco version: 2.2.2
boxstarter version: 3.0.3
Additional Information
No response
Detected by test suite
No

I think the echo is useful to know what has been run for console applications. From https://github.com/mandiant/VM-Packages/issues/676 (issue for discussion on how to unify and improve shortcuts):

It's useful to display what commands get executed when a LNK is clicked

I think it would be good idea in the shortcut helper to either:

fail the installation if we exceed the limit
render a warning remove the echo in this case (I prefer this option)

But CyberChef is not a console application, so it should not be run as a console application and the echo is not used in that case. Or am I missing something @emtuls ? 🤔

Cyberchef is not normally a console application, but due to how I would like to have chrome open the local cyberchef html page (programmatically modifying Chrome config files is fairly inconsistent and will likely break), it would work best if I utilized a command prompt shortcut, which is essentially what our 'consoleapp' flag creates for VM-Install-Shortcut.
One other alternative that may resolve the current issue with cyberchef, if we don't take this route, would be fixing https://github.com/mandiant/VM-Packages/issues/842#issuecomment-1895621941, as I believe that should reduce the length of the command as well.

@emtuls what is the state of this issue? :thinking:


ir: consider all nested definitions inside structs to be inner types.

Fixes #643

 Warning

These commits modify unsafe code. Please review it carefully!

r? @fitzgen

@bors-servo r+

:pushpin: Commit 469a428 has been approved by fitzgen

:hourglass: Testing commit 469a428242560625f4dc09025a93aad4166bab01 with merge f775f1f24c743505bd35da09958fcb10300b4069...

:sunny: Test successful - status-travis
Approved by: fitzgen
Pushing f775f1f24c743505bd35da09958fcb10300b4069 to master...


refactor(app): Add bare-minimum client calls for BR update

overview
~Currently blocked by #3765, PR to be rebased once it is merged.~ Closes #3359 and #3361
This PR continues on the work of 3765 to enable the full BR migration/update flow from dispatching a single action. We'll still need more selectors and UI to actually dispatch said action, but this should be the bulk of the plumbing. Please read #3765 for technical background and decision making
changelog

refactor(app): Add bare-minimum client calls for BR update

review requests
The flow that this PR implements (including what was implemented in 3765) is:

If you're going to test this, it will take a robot fully from Balena to buildroot. If possible, you may want to do this on a freshly-minted Balena RPi with ENABLE_VIRTUAL_SMOOTHIE=true. Otherwise, code reviews are very much appreciated if you don't have the time to functionally test this.
We also don't currently have BR builds up for 3.10.1, so you will probably have to spoof your app-shell/package.json down to 3.10.0.
real-life testing instructions
make -C app dev OT_APP_DEV_INTERNAL__ENABLE_BUILD_ROOT=1

Dispatch a buildroot:START_UPDATE action to a robot name, e.g.:
store.dispatch({type: 'buildroot:START_UPDATE', payload: 'opentrons-OT2P20180418A06'})

Pro-tip: Use the Chrome console rather than the Redux devtools to dispatch the action so you have up-arrow history as you're testing. Copy-paste in the app's devtools is very broken at least on macOS for some reason
Then, keep an eye on the Redux devtools for the following actions depending on which path in the flow you're following (this section copied / pasted / expanded on from 3765):

buildroot:START_PREMIGRATION, buildroot:PREMIGRATION_STARTED, buildroot:PREMIGRATION_DONE

Robot was not ready for migration, so the update server was bootstrapped

robotApi:START_UPDATE

Start update request will be re-dispatched after bootstrap is done and robot is migration capable

robotApi:[REQUEST|RESPONSE|ERROR]__POST__/session/update[/migration]/begin

Token request, response, or error
Request path will change based on migration of BR update

robotApi:[REQUEST|RESPONSE|ERROR]__POST__/session/update[/migration]/cancel

Token cancel request if initial token request came back 409
Request path will change based on migration of BR update

robotApi:[REQUEST|RESPONSE|ERROR]__POST__/session/update[/migration]/:token/status

Status check poll on a 2s interval
Please let me know if you can cause this interval to keep polling when it shouldn't be

buildroot:UPLOAD_FILE

File upload request made from app-shell side to avoid buffering the whole update file into memory

robotApi:[REQUEST|RESPONSE|ERROR]__POST__/session/update[/migration]/:token/commit

Commit request once the file has been uploaded + verified by BR

robotApi:[REQUEST|RESPONSE|ERROR]__POST__/session[/update]/restart

Restart request once file has been committed
Path is read from capabilities because varies based on BR migration vs update

buildroot:UNEXPECTED_ERROR

This action needs fleshing out but punted to reduce scope
Something unexpected happened. Potential causes:

No BR file downloaded (check your app-shell/package.json in case you need to spoof it)
Update server bootstrap failed (check robot logs)
BR file upload request failed (check robot logs)

Resized to large after a retroactive evaluation of how much time I worked on this 🙃


Something is wrong with import_csv

Throwing an error, looks like something is missing? line 18 in import-data. I think str_to_lower needs something to work with!

Should be fixed as of https://github.com/stevenpbachman/shinygeocat/commit/7247a4de0918c357d1f21acff92863c408bb791a, will close when mapping branch is merged.

closed by #62


Compilation errors in Fedora Rawhide builds

The previous week was ok. The main suspected culprit is upgraded fpc version.
Sample failing build:
https://copr-be.cloud.fedoraproject.org/results/vondruch/doublecmd/fedora-rawhide-x86_64/00719511-doublecmd-gtk/builder-live.log
Fedora 26 and 27 builds fine. Reported upstream.

It seems that Lazarus in rawhide should be rebuilt for newer fpc 3.0.4. Pinging the maintainer to rebuild it.

There was a problem with the rawhide build and an update was delayed. doublecmd compiles fine with the 1.8.0 rebuilt in rawhide.


Introduce environment value for DBPATH.

In the current implementation, we only specify DBPATH in the command-line option.
Therefore, lioss introduces several specifying forms for DBPATH.

environment value LIOSS_DBPATH, and
command-line options.

resolved in #4


Allow other people to change highlight colors

This is probably a desired feature. Opening to replace #13, since the context menu has been added in.

Got this in #91e73a6ac6785bc1f60f44d86096ce7c749fa30a


Add a post about checking my Netlify redirects

🚀 Deployed on https://67208a3d908ab6999ae4fef4--alexwlchan.netlify.app


QRadar does not ingest feed from Opentaxii

Hi everyone,
I am trying to ingest some IOC in QRadar from OpenTaxii in Docker container. Here is what I managed to do:

Get the taxii server running
Push/Pull data from the server using the taxii client Cabby
Connect successfully from QRadar Threat Intelligence App to taxii server

However when I pull the data with 'Poll Now', I don't receive any data. I know the timestamp matters when QRadar pulls data so I tried to create an fresh IOC event (from MISP), and push it to the taxii server before pulling it from QRadar, but nothing.
I used tcpdump to check what the taxii server answers, and I can see the server sending the IOC to QRadar, so it seems that QRadar doesn't understand the data. When pulling from QRadar, I configured it to use TAXII 1.x.
Here is my configuration file for the taxii server:
domain: "mydomain.com:9000"

support_basic_auth: yes
return_server_error_details: yes

auth_api:
  class: opentaxii.auth.sqldb.SQLDatabaseAPI
  parameters:
    db_connection: sqlite:////data/auth.db
    create_tables: yes
    secret: secret
    token_ttl_secs: 3600

taxii1:
  save_raw_inbox_messages: yes
  xml_parser_supports_huge_tree: yes
  count_blocks_in_poll_responses: no
  unauthorized_status: UNAUTHORIZED
  hooks:
  persistence_api:
    class: opentaxii.persistence.sqldb.SQLDatabaseAPI
    parameters:
      db_connection: sqlite:////tmp/data.db
      create_tables: yes

taxii2:
  persistence_api:
    class: opentaxii.persistence.sqldb.SQLDatabaseAPI
    parameters:
      db_connection: sqlite:////data/data.db
      create_tables: yes

logging:
  opentaxii: debug
  root: debug

Regarding the services I have the exact default configuration from data-configuration.yml
Any help would be appreciated

Issues is probably not related to QR


WEBSITE-418 mariadb tasks update

Creation of an additional testing DB in MariaDB for Hibernate ORM

Seems right; Merge it yourself if you like :)

But how does this fix https://hibernate.atlassian.net/browse/WEBSITE-418 ?

Ar


ERROR_RESPONSE =     message = "PASSWORD_INVALID";

I am getting this error some time
Momentum[3954:548195] RESPONSE_USER_REGISTRATION :: {
currentTimeStamp =<PHONE_NUMBER>660;
deactivate = 0;
message = "PASSWORD_INVALID";
metadata =     {
};
newUser = 0;
totalUnreadCount = 0;
}
State:- User Login
2019-04-26 12:57:56.704744+0500 Momentum[3954:548195] GET_URL :: https://apps.applozic.com/rest/ws/message/list?startIndex=0&mainPageSize=20&deletedGroupIncluded=1
2019-04-26 12:57:56.705441+0500
Response For user application update reponse :"application id is empty or AppInfo not persent"
2019-04-26 12:57:57.020492+0500 Momentum[3954:548195] ERROR_RESPONSE : Error Domain=NSURLErrorDomain Code=-1012 "(null)" UserInfo={NSErrorFailingURLStringKey=https://apps.applozic.com/rest/ws/message/list?startIndex=0&mainPageSize=20&deletedGroupIncluded=1, NSUnderlyingError=0x280550d80 {Error Domain=kCFErrorDomainCFNetwork Code=-1012 "(null)" UserInfo={_kCFURLErrorAuthFailedResponseKey=<CFURLResponse 0x282558c00 [0x210c95610]>{url = https://apps.applozic.com/rest/ws/message/list?startIndex=0&mainPageSize=20&deletedGroupIncluded=1}}}, NSErrorFailingURLKey=https://apps.applozic.com/rest/ws/message/list?startIndex=0&mainPageSize=20&deletedGroupIncluded=1} && ERROR:CODE : -1012

@mobileappdeveloper2019  This can come for two reasons, if the App Id is incorrect or if there is a password set for the user but it's not passed while connecting.
Just recheck once and if it continues then please upload all the logs with details here


SpriteAnimator.cs Line 68 There's a Debug Message and you cannot disable.

this line can be found
Debug.Log(SpriteAnimationHelper.GetCurrentFrame());
There's no option or settings to disable the message....maybe a bool  "DebugMessage"
if(DebugMessage){ Debug.Log(SpriteAnimationHelper.GetCurrentFrame());}
This generates a lot of GC.

Hi, sorry about that and for the late answer, i'm gonna be fixing it right now


TN-3117 out of window proms UI changes

https://jira.movember.com/browse/TN-3117

a new required Visit field is added to the manual entry modal
If the entered questionnaire completion date is not within the time window of the selected visit, a warning message will appear and tell user as such.  However, the user will not be prevented to continue.
a new visit query string is passed on to the backend api when applicable
example url that will be passed on from the frontend:  /api/present-needed?subject_id=3067&entry_method=paper&authored=2022-01-21T01:16:59Z&visit=Month 3

@pbugni & @ivan-c Will you have a minute to try out my changes?  Let me know if you see any issue?

@achen2401  I thought this was contingent on @pbugni  adding some new services?

@mcjustin Yes, you are right.  This PR only addresses the frontend changes.

@mcjustin Yes, you are right. This PR only addresses the frontend changes.

@achen2401 I was under the impression from our session on Thursday, that the existing API, namely /api/patient/<id>/timeline delivered all you needed for this feature.  Is there something lacking?

@pbugni sorry, I am merely pointing out that there are other backend changes that still have to made based on the specs, i.e. 5.b.iii, 5.b.iv This PR is purely for frontend changes.


Terminology change in the code

Description TBD

Terminology changes to be made so far:

EXPERIMENT POINT will be changed to SITE, ID to TARGET, and Add Experiment Site to Add Decision Point.

ID for the Grouped Metric will be changed to Key.

Handling this change in the above mentioned ticket and closing this ticket.


404 error while installing @msal-angular in angular 9 app

npm install msal @angular/msal-angular --save
giving error -
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@angular%2Fmsal-angular - Not found
npm ERR! 404
npm ERR! 404  '@angular/msal-angular@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:

@MrinmoyM The correct name is @azure/msal-angular, instead of @angular/msal-angular. Can you please try that?

My bad! Thanks.


Added a cronjobs (Session Expiry)

For Session Expiry for checking expired sessions and remove them.
It runs the first minute of every hour.

I signed it!


Update data objects to match the structure that the new API returns

My tool failed miserably on Friday night when the first fixture started. I've updated the objects to match the structure that the new api returns

👍
Just for future reference - you need to update the nuspec version for a new package to be released.


Unhandled exception at 0x755849C2 in cpp-tests.exe: Microsoft C++ exception: std::out_of_range at memory location 0x00D8E634.

Windows 10 / VS2019
Steps to Reproduce:

Start 38:Node: Physics3D -> press only the right green arrow -> after 5:Physics3D Test => Crashing

Unhandled exception at 0x755849C2 in cpp-tests.exe: Microsoft C++ exception: std::out_of_range at memory location 0x00D8E634.
CCImage.cpp line 815
on bool Image::isCompressed()
{
return Texture2D::getPixelFormatInfoMap().at(_pixelFormat).compressed;
}

Steps to Reproduce:
Start 38:Node: Physics3D ->Pressing the **left** green arrow is also frozen the cpp-tests.exe

thanks for your feedback, does the official v4 works?
I'm in bus at this time

v4 works here

fixed

root cause is libjpeg.lib header mismatch for win32 only


ci: fixing ci issues

:tada: This PR is included in version 1.20.1 :tada:
The release is available on:

GitHub release
v1.20.1

Your semantic-release bot :package::rocket:


data_slideseqv2_olfactory_bulb

Update metadata:
https://docs.google.com/spreadsheets/d/1QCeAF4yQG4bhZSGPQwwVBj_XF7ADY_2mK5xivAIfHsc/edit#gid=1453488771
Details of data(publication, GitHub):
https://singlecell.broadinstitute.org/single_cell/study/SCP815/highly-sensitive-spatial-transcriptomics-at-near-cellular-resolution-with-slide-seqv2#study-summary
Processed: https://stagate.readthedocs.io/en/latest/T3_Slide-seqV2.html

https://www.nature.com/articles/s41593-022-01030-8
This paper also does Slideseq of olfactory bulb and actually has GT available


remove unnecessary whitespace

Only deleted the unnecessary whitespace, nothing else!

Sorry, these changes introduce too much noise.


Bug in isHalfWidth()

Hi, I use validator.isHalfWidth() to check whether the string is halfwidth, all passed except the string like ｇｏｏｇｌe, the last characters e is half width, and  validator.isHalfWidth('ｇｏｏｇｌe') returns true.

From the README

isFullWidth(str) - check if the string contains any full-width chars.
isHalfWidth(str) - check if the string contains any half-width chars.
isVariableWidth(str) - check if the string contains a mixture of full and half-width chars.

If you want to check that a string is half-width only, you'll need to use validator.isHalfWidth(str) && !validator.isFullWidth(str).

Sorry, I didn't read the doc carefully.
Thanks.

No problem.


A Fond Farewell to Source-Range-Based Dependencies

It was certainly a fun experiment. Ultimately, we saw greater wins from the dynamic duo of type body fingerprints and private dependencies.
Drop all of the infrastructure for this feature from the Driver and Frontend.

@swift-ci test

@swift-ci test

⛵

⛵


Writing custom target wrapper: changing LogEventInfo.Message does not reset _layoutCache

I want to write custom target wrapper. My custom wrapper needs to change log message - it  accumulates count and appends it (https://github.com/NLog/NLog/pull/2751).
And i noticed - when wrapped target is FileTarget (or MailTarget) so text in file (or email) is unchanged. I see in LogEventInfo class that it uses _layoutCache for caching rendered layout (but i guess that ConsoleTarget does not use that cache?).
I guess it is a bug - is'nt it?
What workaround can i use?

Targets or target wrappers should not modify logevents. Only loggers with their filters. You need an external cache that a custom layout renderer can perform lookup in.

@snakefoot Why you forbid to append some additional info to log message in custom wrapper?  I think it is not good for public library.
And other question - why FILTER modifies log message? It breaks SRP, doesnt it?

Oh. I can not even set property in custom wrapper! That property is not shown in layout for FileTarget (${all-event-properties})
It is 100% bug.

Oh guys - i deleted code PrecalculateVolatileLayouts(e.LogEvent); in method protected override void Write(AsyncLogEventInfo e) - i copy-pased it from other wrapper target. And it is now ok.
Sorry guys. I think this theme can be closed.

If you apply the AsyncTargetWrapper around your target  (or use targets async="true") then you will see the "bug" again.
Nlog sends the same LogEvent-instance to all targets (performance). So if one target modifies the LogEvent then it affects all other targets
Sent from my Samsung device
-------- Original message --------
From: Konstantin<EMAIL_ADDRESS>Date: 14/06/2018 09:59 (GMT+01:00)
To: NLog/NLog<EMAIL_ADDRESS>Cc: Rolf Kristensen<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [NLog/NLog] Writing custom target wrapper: changing   LogEventInfo.Message does not reset _layoutCache (#2773)
Oh guys - i deleted code PrecalculateVolatileLayouts(e.LogEvent); in method protected override void Write(AsyncLogEventInfo e) - i copy-pased it from other wrapper target. And it is now ok.
Sorry guys. I think this theme can be closed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/issues/2773#issuecomment-397206804, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK-fnDeXuvLdmgDlVd2QW1M62x5C7nsYks5t8hf7gaJpZM4UmbXz.

I think this theme can be closed.

Thanks for the feedback!


Creating a new site fails with "NexposeFailureException: templateID must be specified."

Expected Behavior
A new site would be created.
Current Behavior
An error of "NexposeFailureException: templateID must be specified."
File "W:\Python27\lib\site-packages\nexpose\nexpose.py", line 1314, in SaveSiteConfiguration
    return self._ExecuteSave(self.RequestSiteSave, site_configuration, 'SiteSaveResponse', 'site-id') # TODO: if this turns out to be 'id' instead of 'site-id' than remove the paramet
er from the function
  File "W:\Python27\lib\site-packages\nexpose\nexpose.py", line 1143, in _ExecuteSave
    response = self.VerifySuccess(save_function(object_to_save.AsXML(exclude_id=False)))
  File "W:\Python27\lib\site-packages\nexpose\nexpose.py", line 1280, in VerifySuccess
    raise NexposeFailureException(message)
NexposeFailureException: templateID must be specified.

Steps to Reproduce (for bugs)
Attempt to create a new site using "SaveSiteConfiguration".
Python code that reproduces the issue:
site_name = "Test-Site-Nexpose-" + datetime.now().strftime("%Y%m%dT%H%M%z")
site_desc = "Test Site"

site_cfg = nexpose.SiteConfiguration.Create()
site_cfg.id = -1
site_cfg.name = site_name
site_cfg.description = site_desc
site_cfg.hosts.append(Host("<IP_ADDRESS>"))

session.SaveSiteConfiguration(site_cfg)

Context
Attempting to dynamically add hosts to a sites that can then be scanned.
Your Environment

Nexpose-client-python version: 0.1.0
Python version: 2.7.13
Nexpose product version: 6.4.45

The Nexpose API requires a scan template ID to be specified in a SiteConfigSaveRequest so we should update the code here to default to full-audit-without-webspider to match what the Ruby gem does.

The templateId is set in the AsXML call, however it's after the XML is built (or so it appears).
https://github.com/rapid7/nexpose-client-python/blob/master/nexpose/nexpose_site.py#L129

Ah, yep I noticed this the other day when first looking into it.

@gschneider-r7 Is there any timeline for releasing bug fixes? Thanks!

@gschneider-r7 , I've made a PR that addresses this.
https://github.com/rapid7/nexpose-client-python/pull/8

Fix has been merged and a new version, 0.1.1, will be released shortly.
Side note: please use Range(from, to) for IP addresses, even single addresses, instead of Host.
e.g.
site_cfg.hosts.append(Range("<IP_ADDRESS>", None))

I should be able to release the new version tomorrow as I've run into issues with the pypi service today.

Version 0.1.1 is now published on pypi (for pip install) and the packages are also available on the github release page: https://github.com/rapid7/nexpose-client-python/releases/tag/0.1.1


slugbuilder: Bump buildpacks

A bunch of minor improvements, no version changes. The Go buildpack was force-pushed so this also fixes the slugbuilder build.
https://github.com/heroku/heroku-buildpack-multi/compare/65baa2d8...26fa21ac
https://github.com/cloudfoundry/staticfile-buildpack/compare/11f3205c...16b2bb2c
https://github.com/heroku/heroku-buildpack-ruby/compare/165d85b1...d2d08e2b
https://github.com/heroku/heroku-buildpack-nodejs/compare/d3952c3e...d8fbb5b0
https://github.com/heroku/heroku-buildpack-python/compare/f1da8d4b...3ea07357
https://github.com/heroku/heroku-buildpack-go/compare/faf0717a...6eeb09f5

LGTM


Question About JWKS Auto-Refresh Removal in v3

Hey, I noticed in v3 the auto-refresh for JWKS when a KID is missing got removed. It was super useful for key rotations.
Just curious, what's the reason behind this change?
Really appreciate the work you've put into this package. It's been a huge help!

I know this is a question and not a request, but I plan on starting a native implementation that mimics the old "refresh on unknown kid" behavior tomorrow. It seems I may have miscalculated it's utilities for other people's use cases.
The reason that feature is no longer supported natively is the specific behavior I designed it for added a large amount of complexity to the project.
The key rotation strategy for the projects I run do not benefit from that feature. New keys are added with a long delay before they are used. When working on the newer jwkset package, I didn't reimplement the feature because I assumed there were few use cases for it.
Since it seems your use case can benefit from the old "refresh on unknown kid" behavior, it is likely that me not including this feature natively in V3 affected more than your use case.
This feature can be re-implemented using a custom jwkset client. My plan is to start writing an implementation tomorrow, then publish it to the jwkset project and document it here in the keyfunc project.
Thank you for your feedback!

Here's my draft pull request. Anyone is welcome to take a look.
@sc-tomer, how does this look to you?
https://github.com/MicahParks/jwkset/pull/13

That's perfect! I can't thank you enough.
PR looks great.

Closing due to release of v3.2.2.
https://github.com/MicahParks/keyfunc/releases/tag/3.2.2


Revise documentation for scrollEventThrottle

Recent releases support the prop on Android
As of 0.74, iOS does not throttle by default.

Was this change included in 0.73 or earlier? If yes, then we need to backport platform tag removal to versioned docs for those releases.

Sure, let me dig that up.

Looks like down to 0.69 https://github.com/facebook/react-native/commit/cf55fd587e6cc82a73079be6076d244ab72fa359


Remove "_spanSecondaryId" tag

Related to #143
After removing "_spanSecondaryId" tag.
Run
./mvnw spring-boot:run -pl wavefront-spring-boot-sample

Then access localhost:8080/oops.
span.event now visible in TObs UI.

Hi @mhoshi-vm, this should be resolved server-side in https://github.com/wavefrontHQ/java-lib/pull/97. We need spanSecondaryId since it's possible a Zipkin trace can reuse a span ID within a given trace. While your PR does work for common scenarios, it won't work in the scenario where a trace has two spans with the same ID, and both those spans have span events.


Change FRD class to FrequencyResponseData?

The FRD class name is non-pythonic (or at least non PEP8) and generates problems in compiling the documentation on MacOS (see PR #297).  If we change the name of the class to FrequencyResponseData this will be more consistent with the other classes (StateSpace, TransferFunction) and also remove this problem on MacOS.
Note that the frd function would still exist for creating frequency response data objects (like ss and tf).

Addressed in PR #326


Changes as per 14/02/2023

Remove references to subscription manager

Reviewed on the call on the 21st of February 2023.


setBadge ERROR ...

hi there ..
i have a problem using setBadge i got error below when i use it in other page ... it's work fine only in one page in others i got error like below ...
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'setBadge' of undefined
TypeError: Cannot read property 'setBadge' of undefined
at SuperTabs.setBadge (super-tabs.js:217)
at SuperTabsController.setBadge (super-tabs-controller.js:8)

How are you trying to use it?

i found a solution for that i use badge


Create a sustainability community

The link to where the sample should be stored:
https://github.com/odpi/egeria-samples-api/tree/main/governance-program/sustainability-community


Will Not Build with GHC 8

Markov chain library dependency will not build on GHC 8.

Builds successfully with Haskell Platform 8.0.1 MINIMAL. Please use the minimal version with HSoM instead of the full version when using Windows.

This issue was incorrectly resolved. Please see here for more information: https://github.com/Euterpea/HSoM/issues/3


Support custom serializer as a parameter: model_dump(serialize: Callable, ...)

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
Actually I'm thinking of pretty json, and it would be great if pydantic supports this feature.
Below is an example code which can describe my idea:
import orjson
from pydantic import BaseModel

class TokenList(BaseModel):
    a_tokens: list[int]
    b_tokens: list[int]

class MyResult(BaseModel):
    name: str
    token_list: TokenList

def custom_serializer(obj: Any) -> Any:
    if isinstance(obj, BaseModel) and not isinstance(obj, TokenList):
        return obj.model_dump()
    else:
        return obj

def json_serialize(obj):
    if isinstance(obj, TokenList):
        # No indent option here
        # and orjson >= 3.9 support Fragment, which is an already-dumped json object
        return orjson.Fragment(orjson.dumps(obj.model_dump()))
    else:
        return str(obj)

result = MyResult(...)
dumped_obj = result.model_dump(serialize=custom_serializer)

# Apply indent=2, except for TokenList
j = orjson.dumps(dumped_obj, default=json_serialize, option=orjson.OPT_INDENT_2)
print(j)

Many people have been thingking about the way of pretty-printing list[int] or list[float],
but currently there is no elegant way for doing that...
I know pydantic 2.4 supports field-level and model-level custom serializers,
but my idea is to additionally support serializer as a parameter of model_dump.
Custom serializers could be needed only for some cases, not always. (pretty-printing is one of that cases)
Of course, there will be many use-cases of this feature, though I can't imagine it right now...
Affected Components

[ ] Compatibility between releases
[ ] Data validation/parsing
[X] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[ ] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

Hi @ttti07,
If you're looking to use a custom serializer that's not attached to the model or any fields, could you do the following instead?
dumped_obj = custom_serializer(result)

model_dump triggers serialization of a model based on its serialization schema, which is determined when a BaseModel subclass is defined. This serialization occurs largely in rust, so it's not super intuitive to add a custom callable to the model_dump call, especially when you can use that custom callable as shown above.

You can do this:
import orjson

from pydantic import BaseModel, field_serializer

class TokenList(BaseModel):
    a_tokens: list[int]
    b_tokens: list[int]

class MyResult(BaseModel):
    name: str
    token_list: TokenList

    @field_serializer('token_list')
    def token_list_serializer(self, token_list: TokenList, _info):
        return orjson.Fragment(orjson.dumps(token_list.model_dump()))

result = MyResult(name='foo', token_list=TokenList(a_tokens=[1, 2, 3], b_tokens=[4, 5, 6]))
dumped_obj = result.model_dump()
print(dumped_obj)
j = orjson.dumps(dumped_obj, option=orjson.OPT_INDENT_2)
print(j.decode())

You addressed this:

I know pydantic 2.4 supports field-level and model-level custom serializers, but my idea is to additionally support serializer as a parameter of model_dump. Custom serializers could be needed only for some cases, not always. (pretty-printing is one of that cases)

I think the above would be solved if you could specify @field_serializer('token_list', when_used='json') so that result.model_dump() ignores the serializer but result.model_dump(mode='json') used it. But this gives Unable to serialize unknown type: <class 'orjson.Fragment'> so you'd also need to be able to specify a flag or something to not worry about return values that aren't JSON-serializable, which makes it harder to explain what mode='json' means.
Another option would be to allow 'custom modes', e.g. @field_serializer('token_list', when_used='orjson') and result.model_dump(mode='orjson'). But this gives a SchemaError about when_used: Input should be 'always', 'unless-none', 'json' or 'json-unless-none'. Here it's easy to think of an API that would allow custom inputs but still validate them, e.g:
ORJSON_MODE = SerializerMode('orjson')
...
@field_serializer('token_list', when_used=ORJSON_MODE)
...
dumped_obj = result.model_dump(mode=ORJSON_MODE)

@sydney-runkle custom_serializer(result) doesn't work because it just returns obj.model_dump(). It doesn't apply recursively so the branch for TokenList is never triggered.


Add an empty constructor on MapFragment

When adding a fragment though xml
    <fragment xmlns:android="http://schemas.android.com/apk/res/android"         android:name="at.bluesource.choicesdk.maps.common.MapFragment"  />
We receive the following error
This class should provide a default constructor (a public constructor with no arguments)
Can the empty constructor be added to the MapFragment class?
If not, is there any workaround for this?

We recommend that you create a MapFragment in code and add it via fragment manager:
supportFragmentManager.beginTransaction().apply {
    mapFragment = MapFragment.newInstance()
    add(R.id.mapContainer, mapFragment)
    commit()
}

The mapContainer is just a FrameLayout in our activity.


Int values

I think all values are rounded to integers. Unfortunately Scotland GSPs look a bit odd
Is it correct this was done for speed?
How much slower is this?
Is there an option to not round the values for the charts?

One possible way to do this would be to keep the headline figures the same, but for the chart line, plot the value (%_yield * max_installed_GSP_capacity)
So in the example in the screenshot, this would be 28%*3MW.
The advantage of this is that the line chart would have 100 possible y values (so almost continuous values), while you don't need to change the headline.

actually the first solution you suggested worked pretty well , thanks! @dantravers
before

after

Great- that looks great!
From: lina @.>
Sent: 27 June 2022 19:53
To: openclimatefix/nowcasting @.>
Cc: dantravers @.>; Mention @.>
Subject: Re: [openclimatefix/nowcasting] Int values (Issue #118)
actually the first solution you suggested worked pretty well , thanks! @dantravers https://github.com/dantravers
before
https://user-images.githubusercontent.com/24292074/176014422-51ad8598-540c-4638-9bd4-332df0169ae9.png
after
https://user-images.githubusercontent.com/24292074/176014467-3e5be97d-7354-4930-923f-96c0b1a9d5cf.png
—
Reply to this email directly, view it on GitHub https://github.com/openclimatefix/nowcasting/issues/118#issuecomment-1167753872 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJGGYO4EKFELF643BB377TDVRH2CBANCNFSM5ZIF2XDA .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AJGGYOZUCKZS2PBEB26AKATVRH2CBA5CNFSM5ZIF2XDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIWNIFEA.gif Message ID: @.*** @.***> >


Question

Hi
One question about the code
The embedding of tracks:
https://github.com/JialianW/TraDeS/blob/3eafd249ca0f18af8000d5798d4c552a0bd627ec/src/lib/utils/tracker.py#L177
Could you tell me why delete the embedding here?
Thanks

For saving storing file size


Develop

Develop

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

Hi @Cussrro, I'm closing this PR now that develop has been merged into master.  Master is now targeting Windows 10, version 2004.  Please let us know if you have any issues.


Link CleanRL's PPO Implementation

What does this PR do?

Hello, this is an awesome repo! We really love using Flax at CleanRL to seed up our implementations. I was wondering if you'd be interested in linking our PPO implementation, which runs faster (1850% speedup) by using EnvPool, a library for fast parallelizing environments, jitting the entire rollout through EnvPool's XLA interface, storing data more efficiently, and jax.scan. Thanks for your consideration!
Checklist

[ ] This PR fixes a minor issue (e.g.: typo or small bug) or improves the docs (you can dismiss the other
checks if that's the case).
[ ] This change is discussed in a Github issue/
discussion (please add a
link).
[ ] The documentation and docstrings adhere to the
documentation guidelines.
[ ] This change includes necessary high-coverage tests.
(No quality testing = no merge!)

Nice! @jheek

Codecov Report

Merging #2780 (a621fbe) into main (62617db) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2780   +/-   ##
=======================================
  Coverage   81.22%   81.22%
=======================================
  Files          53       53
  Lines        5636     5636
=======================================
  Hits         4578     4578
  Misses       1058     1058

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


Response code confusion

Hi,
I have been using the CurlSharp Library for some time now and Ive noticed I get a response code of 200 on a successful HttpGet. I am a bit confused as to what this means exactly other than(from what I can Guess) is the HTTPGET was successful.
I have looked at the enums but haven't found any 200.
do you mind explaining it?

cURL HTTP API returns standard HTTP status codes.
You may also want to peruse RFC 2616 for further details.


Collecting Tailwind CSS demos & examples

Hey guys,
First of all, I'm very happy to see so many people trying out Tailwind and trying to create prototypes, demos, clones and even redesigning entire websites using the framework.
I've been very active in researching utility css frameworks for my own use in the past few months, before Tailwind was actually launched.
After the launch of Tailwind I decided I should try and collect as many Tailwind demos & examples as possible, and also, start a snippets library, because people will start searching a lot on Google for examples, and it wouldn't hurt to stumble upon an organized set of resources.
Yesterday I launched https://tailwindexpo.com/ and already collected a few examples.
Do you have more demos & examples you want to be featured in TailwindExpo?
If so, please DM or @ me on Twitter and let me know.
PS: I hope the makers of Tailwind don't mind me creating this website, if there's any issue with it, just DM me and let me know. I'm not in any way affiliated with the makers, just extremely enthusiast about the framework.

Just for reference. #22

Thanks. Not sure how I missed that thread

@nechita There is already a awesome-tailwind list, maybe we could join the two projects into one by using the list as a CDN?

@m1guelpf let's take this privately and see what happens :P

all offline :(

@DiegoArrieta check https://builtwithtailwind.com/


Cursor pagination

For this iteration I just wanted to get it working mechanically. It seems to work fine in happy paths but I'm not happy with the API at this point so I didn't want to waste to much effort on it in it's current state. Adding the helper functions first,next, and previous were necessary for cursor based paging but they are reserved for it at this point and I think that gives the API a bad feel since they apply to other schemes. The thing is, for first the minimum necessary arguments for cursor-based is also valid for offsets (just limit) so I still think we may have to add something to describe the theme explicitly in some way

Thanks! Sorry for taking a bit longer to reply. For cursor-based pagination, I'd prefer to use the same argument names as in the GraphQL Cursor Connections Specification. That would make it unambiguous which pagination type is used, and it would also make it easier to validate the arguments.

offset/limit-based pagination: offset, limit
page-based pagination: page, page_size
cursor-based pagination: first, after, last, before

So for forward pagination, you'd set first and after; for backward pagination, you set last and before. The cursor field can be removed.
As for the Meta struct, I would also take a hint from the specification. We already have the fields has_next_page? and has_previous_page?. If we use after and before as described in the algorithm, we need to add the fields start_cursor and end_cursor instead of next_cursor and previous_cursor.
I'm not sure how to handle cursor encoding/decoding yet. I'd like this library to be usable in combination with absinthe_relay, which already generates a globally unique id. We should keep that in mind. Perhaps we'll need the option to pass or configure the cursor encode and decode function or to pass the decoded internal id directly?
The added pagination functions for cursor-based pagination should probably be private. I'd prefer to add another one or two function bodies to the paginate function that match on the cursor pagination arguments.

Still a work in progress but I have something close to what you were imagining save for handling encoding/decoding. As for that, I figure since you'll more than likely always use the same encoding scheme for the same repo, it might make sense as a configuration option.

How do you think it should behave if the user tries to page past the end? Should we not handle it and expect the user to respect thehas_next_page? / has_previous_page? or catch this and stay on the same page?

Sorry again for taking so long again. I pushed a few changes that were necessary when I used your changes in our project. Thanks for your work!


[BUG] CM6 - Block got folded up randomly

Describe the bug
Thanks for the CM6 support upgrade. This is a bug of a block got folded when
To Reproduce
Steps to reproduce the behavior:

Fold one of the child bullet-point (usually the 1st one I think).
Any arrow down or mouse click on that folded up line or on the parent line will fold the whole block. (illustrated with screenshot)

Expected behavior
This kinda interfere with my workflow of folding each child block once I finished writing to continue with the next child.
Screenshots
Normal state for moving arrow updown

This is the problematic state, an arrow down will fold the whole thing

An arrow down and then

Desktop (please complete the following information):

OS: Windows
Obsidian Version: 0.13.16
plugin version: 2.0.0

Additional context
Not entirely sure if this is the plugin's problem or Obsidian's. If it's not yours can you note so that I can redirect to the forum.

@b1uegh0st Thank you for your feedback. Should be fixed in https://github.com/vslinko/obsidian-outliner/releases/tag/2.0.1

Thanks for the prompt response and action. It is a confirmed fix


python3Packages.pyp: init at 0.3.4

Motivation for this change
This is a nice package: https://github.com/hauntsaninja/pyp.
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 138998 at 0a192fa3 run on x86_64-linux 1

2 packages built successfully:

python38Packages.pyp
python39Packages.pyp


Adding Time to Calendar parameters

Thanks for providing such an awesome library!
Do you plan to add "time" parameter? Theoretically, would it be possible to pass the time along side the date to addtocalendar so instead of marking the whole day it mark only the specific time,
For example: I want to add an event to calendar on 9 Oct 2017 at 11:00AM, so that it reminds me about that time, not about the full day.
I've typed from a mobile device so please ignore the errors in typing.
Thanks,
Wasif

Thanks for your feedback @wasifale -- I don't plan to add a specific param for time, however you can specify the starting time and ending time of your event as part of the start-date and end-date params. If you want an all-day event, you can omit end-date.


Add additional build info in table

Changes

This makes the table that contains the builds for each target platform collapsible.
More detailed information about the build / docker image publication appears (renders on-open)
Fix last updated timestamp for all jobs

Checklist

[x] Read the contribution guide and accept the code of conduct
[ ] Readme (updated or not needed)
[ ] Tests (added, updated or not needed)

This is still a work in progress, but i'm merging it because it's already a bit more useful than last time.


dead?

or still alive?

Not very active at the very least. Lots of stuff on my plate.
If you want to pick it up, that should be possible to arrange.
On Thu 12. Oct 2017 at 1:15 AM, Daniel Hanke<EMAIL_ADDRESS>wrote:

or still alive?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/waterlink/active_record.cr/issues/66, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAlLFnn58Osk0qB6d7BghF7GVPdqx1KYks5srUwKgaJpZM4P2QM2
.

--
Oleksii Fedorov
Software Engineer, Consultant, and Software Crafter,
Adept of Depth in a world of Shallow,
I care about software developers' productivity and software quality,
Grab my Ultimate Tutorial: Getting Started With Kotlin:
https://iwillteachyoukotlin.com

@waterlink I'd be happy to take it over if no one else has offered


Use sklearn joblib implementation

Coverage increased (+25.5%) to 74.036% when pulling e6c564fe542f33c4235deaca4deca9178178d8a3 on development into 3a6983b2d3e27d891d8b425be6a1fd48e776a003 on master.