Types Roadmap

[ ] Provide a hack-free safe degraded version of types. Because the currect depend on some likely typescript non-guarantees that might break, So if some users would like to trade safety over precise types and developer experience they can use that version. And we can also be less worried of making workarounds because we have already warned "Hey this might break" :P
Two ways of going about this -

@cassionzen/usestatemachine/safe (temporary name)

declare module "@cassionzen/usestatemachine" {
  interface TypeOptions {
    safe: true
  }
}

Alternative names to "safe" - workaroundFree, hackFree,
Current workarounds - InferNarrowestObject which is almost same as this and Definition.FromTypeParameter (TODO: document what's happening here)

For milestone v1.0.0

[ ] Support guard's that are actually typed as type guards. Meaning this should work -
const eventHasFoo = (state: { event: { foo?: string | undefined  } }): state is { event: { foo: string } } =>
  typeof state.event.foo !== "undefined"
// I always wanted to publish a library provides authoring predicates that infer guards, which I might :P
// Meaning with that library the above can be replaced by something like
// let eventHasFoo = P.doesHave("event.foo", P.isNotUndefined)
// and if they write it in the machine itself (which they should) they'd also get completions and errors via contextual inferrence.

useStateMachine({
  schema: { events: { X: t<{ foo?: string | undefined }> } },
  initial: "a",
  states: {
    a: { on: { X: { target: "b", gaurd: eventHasFoo } },
    b: {
      effect: ({ event }) => {
        let x: string = event.foo
        // without `gaurd: eventHasFoo` foo would have been `string | undefined`
      }
    }
  }
})

It's great the signature is ({ context, event }) => ... instead of (context, event) => ... like xstate, because latter is principally incorrect and consequently has some cons
For milestone v1.1.0

[ ] Provide (probably opt-in) linting

[ ] noInitialToDeadStateNodes// needs to be written once per (tsconfig) project
declare module "@cassionzen/usestatemachine" {
  interface TypeOptions {
    noInitialToDeadStateNodes: true
  }
}

useStateMachine({
  initial: "b", // Error(noInitialToDeadStateNodes): "b" is a dead state node
  states: {
    a: { on: { X: "b" } },
    b: {}
  }
})

[ ] noNonExhaustiveEventsSchema -useStateMachine({
  schema: {
    events: { // Error(noNonExhaustiveEventsSchema): `$$exhaustive` not set to `true`
      X: t<{ foo: string }>()
    }
  }
})

[ ] noSchemalessDefintionuseStateMachine({ // Error(noSchemalessDefintion): `schema` is not set
  initial: "a",
  states: { a: {} }
})

[ ] more? I don't use state machines so I'm not sure what else we could come up with haha

For milestone v1.2.0

[ ] more?

@cassiozen I want to provide a safe version in v1.0.0 itself. Which one of the two options you like? And what should we name it? "safe" is very ambiguous.

What if we flip? We make "safe" the default version and create an "edge" version form more experienced/adventurous users?

more?

We need nested states - hierarchical/recursive states are the next big feature I want to add.

What if we flip? We make "safe" the default version and create an "edge" version form more experienced/adventurous users?

We could do that but the problem is that these features to the users are not "edge" but really basic and beginner-friendly, for TypeScript it's "edge".
What I mean when I say "really basic and beginner-friendly"? Example -
useStateMachine({
  schema: { event: { X: t<{ a: number }>(), Y: t<{ a: number }>(), Z: t<{ b: number }>() } },
  initial: "a",
  states: {
    a: { on: { X: "c" } },
    b: { on: { Z: "a" } },
    c: {
      entry: ({ event }) => {
        let x = event.a
        // event here is narrowed down to { type: "X", a: number } | { type: "Y", a: number }
      }
    }
  },
  on: { Y: "c" }
})

It's only because of txstate we can do that narrowing, with the "safe" version beginners would go "Umm why does it not allow accessing property a in event, the compiler says it could not be present there? The compiler says the event can be { type: "Z", b: number } but that's not true!". Here they are right and the types are wrong.
So my suggestion would be to not flip it.

We need nested states - hierarchical/recursive states are the next big feature I want to add.

Yep sure. The "more?" was only for linters haha. Will add another top-level more xD

@davidkpiano @Andarist Yall should keep an eye on what I'm doing here :P because all these things would eventually come to txstate too!

The "more?" was only for more linter rules haha

I think these lint rules already go a long way. I can't think of any others. The "more" that I referred to was for the 1.2.0 release (or later) 😁

So it's not a "type-level" feature but rather a "runtime-level" feature

Very true. The types need to support that, and I'll work on the "runtime" code.

Regarding the "safe" version: I'm having an internal debate about it. My initial thought is that it would be confusing for a beginner to understand why a "safe" version exists.
As an exercise: What's the worst that can happen? A new version of TypeScript breaks useStateMachine?

What's the worst that can happen? A new version of TypeScript breaks useStateMachine?

Yep that. Or to be precise, the users using useStateMachine would have their builds failing when they upgrade TypeScript. And the worst is this happens and we don't have any workarounds to commit and publish a new version of useStateMachine.
In that case the users would have to switch to safe version (and maybe we'll have to make edge same as safe and publish) and the existing code will have to be edited with assertions. We could provide a few helpers that make it a little easier. So they'd have to do something like...
effect: ({ event }) => {
  let x = (event as XEvent | YEvent).a
}

Or with helpers...
effect: ({ event }) => {
  assertEventType(event, ["X", "Y"])
  let x = event.a
}

In theory one could write a codemod for this but would be quite a task :P

Let's go with the safe version then. Let's call it "boring"?
As in "@cassionzen/usestatemachine/boring"

Ahahaha xD well... It's kinda bettee than safe at least, but sounds way too informal to me. Maybe "lite-typed" or something like that?

I think "light-typed" is the best we could come up with

Sounds good. We can always change it last minute if we come up with something better ;)
How about lightly-typed tho? light-typed feel grammatically incorrect to say. Or even light-types would work.

I don't really care if it's "lite" or "light" - both works for me.
lightly-typed sounds good.

I think I like "lite-types" more. Wanna go with that or "lightly-typed"? I don't have a strong preference tho, just lightly-typed has more syllables :P

Final decision: lite-types
I like that it's short and I don't  care whether it's grammatically correct or not.

Done, it's good!

let [state, send] = useStateMachine({
  schema: {
    events: {
      A: t<{}>()
    }
  },
  initial: "a",
  states: { a: {} }
})
send("A")

Should we allow this? The user has defined an event in schema but it uses it nowhere in the definition. Or this should be a lint rule? It could be they might have kept it for later so an error seems too restrictive to me, not sure tho.

It should be consistent with what happens if the user adds a context schema before adding the context initial value in the definition. Right now it's an error (if I'm not mistaken).

It does give an error right now but I don't see how the comparison is 1:1. But with going what you said and even generally it looks like a mistake which should give an error. Later we could add an allowExtraEventsInSchema rule if we want.

Yeah, agreed

@devanshj how hard/quick would it be to make de state definition recursive in the type level? I have a decent idea of how I would implement it at "runtime" level - and I'm starting to play with the idea of including it on the final 1.0 release.

It's definitely doable but to answer your question you'd have to tell me what the runtime behavior is. Basically what happens when the machine in node a.b.c takes an event X (in attempt to transition it to node a.d.e) ?
In case of xstate, in nutshell (nutshell being the keyword here :P) this happens -

A transition is selected by looking up for X from the innermost node to the root node: Check if a.b.c takes X? Yes, select. No, check if a.b takes X? Yes, select. No, check if a takes X? Yes, select. No, check if root takes X? Yes, select. No, return as no transitions were selected. And note here "takes X" means it should be present in on AND the gaurd (if present) should return true
(let's say a.b takes X and it was selected)
Exit all nodes starting from innermost to the least common ancestor (in our case a): exit a.b.c, exit a.b. Note this is assuming the transition is "internal", if it were external then the root would be the least common ancestor.
Enter all nodes starting from the least common ancestor to the target node: enter a.d, enter a.d.e

(It's hilarious and ironic that I haven't used xstate even once have written zero machines with it yet I know the spec quite well because of txstate 🤣)
If the behavior going to be same as this, well then it might take some considerable time and effort. Especially writing the tests, implementation might be written quicker.
And if the behavior is going to be simpler then might take less time and effort.
Also, I'm not an expert by any means but be careful when not following the spec because my guess is it's been developed by many heuristics that might not be obvious right off the bat. You might also want to check what Steve does with state-designer or even other libraries for that matter.
So yeah the question is this: what happens when the machine in node a.b.c takes an event X?

Also, I'm not an expert by any means nor do I have strong opinions about it but be careful when not following the spec because my guess is it's been developed by many heuristics that might not be obvious right off the bat.

Yes, absolutely. When I say we don't adhere to the spec is not out of lacking knowledge or will, it's a conscious decision. My impression is that the scxml spec (assuming that's the spec we're talking about 😝) is too broad - in certain cases (like actions), it gives many ways to achieve the same thing. And that's totally fine, nothing wrong with this concept, but it does imply that a library that fully follows the spec will necessarily have a bigger footprint (and bigger docs, etc).
useStateMachine has a premise of simplicity: I like that almost all documentation fits in a README.

You might also want to check what Steve does with state-designer

Oh, I've been following state-designer, Robot, react-states and others for a long time. My initial experience with State Machines was with Ruby on Rails back in the day, and I also had a fairly popular state machine library for ActionScript many years ago.

What happens when the machine in node a.b.c takes an event X?

What you described is correct. The library will check if the current state node or any of its parents listens to the "X" event (meaning they have "X" in their "ON" definition).
If they do, it will exit all nested states up until a common ancestor (if any), then enter each nested state until the target.
Let's say we have this:
{
  initial: 'A',
  states: {
    A: {
      initial: 'A1',
      states: {
        A1: {
          initial: 'A12',
          states: {
            A12: {
            },
          },
          on: {
            GOTOA2: 'A2',
          },
        },
        A2: {},
      },
    },
    B: {},
  },
}

Initial state is A.A1.A12
If I send ("GOTOA2), it will check recursively if the states take this event: A12? No. A1? Yes. So the transition will happen.
Exit A12
Exit A1
(A is the common ancestor, so it does not exit nor enter)
Enter A2

If the behavior going to be same as this, well then it might take some considerable time and effort. Especially writing the tests, implementation might be written quicker.

No problem, we can do this on a later release.

Yeah my impression of the spec is similar and I never meant following the spec exactly - what I meant was let's not do something too out of the way and we aren't as you said the transition behavior is going to be same. And anyways you're more expert at this than me so no worries about that :P
Cool then we'll keep this for a later release, so this will be my next task after I'm done with lite-types.


Flutter dekstop release blank screen

:information_source: Info
MSIX latest
ok I successfully install msix installer on other machine but its just show black screen
I know this is happen when a missing depedency But idk what dll missing is
can someone elaborate about this ?

Hello @tonyhart7
you can try fix Junaid Rehmat solution:
https://stackoverflow.com/questions/69127335/flutter-windows-desktop-app-gets-stuck-on-white-screen-after-msix-installation
please don't forget to like his answer if its helped you

fix this issue because flutter dsnt throw error in debug mode


[Doc] Simplify the get started page for local cluster

Search before asking

[X] I searched in the issues and found nothing similar.

What issue do you find in Pulsar docs?
The current Get Started page for local cluster is too much redundant than it should be. Most users want a short happy path to boot a Pulsar cluster and play with it by producing and consuming messages. Although, the current page begins the "Start Pulsar standalone" at almost 2/3 below the whole page.

We don't have to teach users to install JDK on M1. They can Google it, and there're a large portion of users who don't use M1. At least troubleshooting should go at last.
We don't have to mention how to install connectors or offloaders, it's unused on the quickstart page. We can mention them on the overview/quickstart page of connectors and offloaders.
We don't have to talk in detail about the layout of the binary release directory. It's intuitive and can be read from their name.
 Because we don't even produce any message yet. Also, Pulsar CLI has some significant arguments to play with basic messaging, like how to consume from Earliest, how to keep consuming messaging instead of consuming only one message, and how to produce multiple messages in one turn. I have a draft to rewrite the section.

What is your suggestion?
I'll make a draft patch to cover all of the topics listed above in a few days.
cc @merlimat @Anonymitaet @momo-jun @lhotari @codelipenghui
Any reference?
No response
Are you willing to submit a PR?

[X] I'm willing to submit a PR!

@tisonkun, I was preparing to edit these docs today.  Thank you very much for your help! I'll work together with you and Yu to improve the documentation. I'll wait until you submit your draft to take any action.

@Anonymitaet Thanks for your information! I'll try to integrate your comment, submit the patch and answer which ones I accepted.
@DaveDuggins Good to know :) Looking forward to co-work on the content.
FYI - the estimate is by the next Monday (20220905).

@Anonymitaet Patch at https://github.com/apache/pulsar/pull/17475. For your suggestions:

Next steps (It provides hints and related useful resources). For example,

Good point! Addressed at https://github.com/apache/pulsar/pull/17475/commits/e1bd5cece9c13ef2f0d84fe938b394a5077116e2.

Binary release info - If so, suggest keeping this part

Accepted. Addressed at https://github.com/apache/pulsar/pull/17475/commits/e758f05411fc75f84a396eebe2c461e1e706cc4c.

FAQ

"how to install JDK on M1" is not suitable to document on the Get Started page. Imagine that you don't tell users how to buy a computer. It's far away from Pulsar topics. Users can resolve it with Google, StackOverflow, etc.
For the FAQ topic itself, I think we can adopt both of them according to the concrete situation. Since it's unrelated to this patch, I'd like to skip the decision but prompt when we meet a real issue.


Update bug report template to apply bug label

Overview
Having the label makes it easier to filter the issue list.
Testing Instructions
I don't think there is a way to test this without merging the change and then testing through the Github UI.

It worked.


Use routes instead of port-forwarding where possible to improve test …

…reliability
Signed-off-by: Kevin Earls<EMAIL_ADDRESS>We get port forwarding failures regularly when running CI on OpenShift.  This updates some tests to use routes where available instead in order to improve test reliability.

@kevinearls From the description you mention about the failures on OpenShift, but wouldn't the same be true for K8s? Would it not also be worth using the ingress on k8s?

@kevinearls  Sorry approved to soon - can be merged subject to CI passing.

@jpkrohling @pavolloffay  Please review.  @objectiser  please re-review.


No sudo access, local libboost not found

I am working on a university server with no sudo access, hence instead of apt-get I used conda to install libboost-dev. Using advise here, I was able to compile spconv successfully. But when i try to build Det3D it's unable to find boost. is there a way to provide a path to boost libs provided by conda to setup.py?
Instructions To Reproduce the Issue:

what changes you made (git diff) or what code you wrote: None

what exact command you run: python setup.py build develop

what you observed (including the full logs):

Det3D/det3d/ops/nms/nms_cpu.h:9:10: fatal error: boost/geometry.hpp: No such file or directory #include <boost/geometry.hpp> ^~~~~~~~~~~~~~~~~~~~ compilation terminated.

sudo apt-get install libboost-all-dev
conda install libboost


What is the right way to import specific sheet in excel??

I would like to import specific sheet in excel file...
what is the correct way to implement this??

This was answered on SO


欢欢在用go造php的轮子？

:)

It's a kind of practise rather than "reinventing a wheel". :)
One possible plan is to move all katas related string on Code Wars to here. That would be fun and useful in future.
BTW: English please!


examples/mnist_tfrecord.py throws OutOfRangeError for enqueue_many=False

Instead of this code
data = mnist.load_mnist()

x_train_batch, y_train_batch = tf.train.shuffle_batch(
    tensors=[data.train.images, data.train.labels.astype(np.int32)],
    batch_size=batch_size,
    capacity=capacity,
    min_after_dequeue=min_after_dequeue,
    enqueue_many=enqueue_many,
    num_threads=8)

I'm using this code
def read_and_decode(filename_queue):
    reader = tf.TFRecordReader()
    _, serialized_example = reader.read(filename_queue)

    features = tf.parse_single_example(
        serialized_example,
        features={
            'label': tf.FixedLenFeature([8], tf.int64),
            'image': tf.FixedLenFeature([150528], tf.float32)
        })
    label = features['label'][1:]
    image = features['image']
    image = tf.reshape(image, [224, 224, 3])
    image = tf.cast(image, tf.float32) / 255

    return image, label

filename_list = glob.glob(os.path.join(train_dir, '*.tfrecords'))
filename_queue = tf.train.string_input_producer(filename_list, num_epochs=epochs)
image, label = read_and_decode(filename_queue)

x_train_batch, y_train_batch = tf.train.shuffle_batch(
[image, label],
batch_size=batch_size,
num_threads=8,
capacity=2000 + 3 * batch_size,
min_after_dequeue=2000,
enqueue_many=False)`

The rest of the code remains the same.
Error-
OutOfRangeError (see above for traceback): RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 128, current size 0)
         [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_INT64], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

I am missing something but don't know what.

Hi!
This issue isn't related to a bug/enhancement/feature request or other accepted types of issue.
To ask questions, please see the following resources :
https://keras.io/
https://keras.io/#support
https://gitter.im/Keras-io/Lobby
Thanks!
If you think I made a mistake, please open another issue.


Increase max memory for Enigma

Export source is now crashing with the default memory limit. Increasing it to 2GB fixes the problem and makes it faster than it ever was.

Looks good.


add Bosch eBike

RE-CHECK!

Automated adapter checker
ioBroker.bosch-ebike

:thumbsup: No errors found

[ ] :eyes: [W400] Cannot find "bosch-ebike" in latest repository
[ ] :eyes: [W515] Why you decided to disable i18n support?

Add comment "RE-CHECK!" to start check anew

Welcome


[feature] dump installed title ids to a text file

It would be useful to be able to have fbi dump all installed titles to a text file (tid + name or something like this), for convenience when using luma3ds's game patching features.

Kind of out of scope. Not very familiar with Luma3DS's patching features, but I can't see how this would really be useful.


Feature Request: Add a way to make a window "always-on-top" of a native window from another process.

I think this is quite an esoteric feature request but it would help me a lot for my use case.
I am using nappgui to launch audio plugin windows in an audio application. The audio plugins are "sandboxed", meaning they run in a separate process from the main application.
The main application does not interact with nappgui at all. It only launches a separate sandbox process, and the sandbox process uses nappgui to create the plugin windows.
In audio applications, it is very common that when an audio plugin window is open, it will always be displayed on top of the main application window, meaning if the user clicks on the main application window, the plugin windows would not be hidden behind it when the main window comes to the foreground.

On WIN32, the best I can do right now is top simply set all editor windows to be "always on top", meaning it will be always on top of ALL other application windows, which can be done something like this:
auto setup_editor_window(const sbox::device& dev) -> void {
	const auto view_hwnd = (HWND)(view_native(dev.ui.view));
	const auto top_hwnd  = GetAncestor(view_hwnd, GA_ROOT);
	SetWindowPos(top_hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
}

Instead I really want to be able to pass the main application window's native handle to nappgui, and have the nappgui window always be on top of the main window (even though the windows belong to separate processes.) As far as I know the only way to do this on Windows would be by using SetParent to set the main application window to be the parent of the nappgui window.
On Windows it is legal to set a window that belongs to another process as the parent, so I assume that this is how other audio applications are achieving this behaviour (on Windows at least.)
I'm not sure how to achieve the same effect on macOS and Linux. I assume the concepts there are a little different.
Of course I cannot currently call SetParent myself to set this up, because nappgui makes certain assumptions about the parent/child relationships of windows. (For example it assumes that calling GetAncestor(hwnd, GA_ROOT) on a nappgui window will always return another nappgui window.) There are probably other complications too.
I hope this makes sense. It would be really nice to have an interface to set this up in nappgui, perhaps something like a window_native_parent(void* native_window). Though I mainly develop on Windows so I'm not sure yet if this also makes sense for macOS and Linux.

Hi @colugomusic. Yes it make sense.
In Windows it would be more or less clear. The case would have to be investigated in GTK and macOS. Since they are different processes, the operating system could hide the plugin windows with the main window.
Another different case would be that the main program could launch NAppGUI windows in the same process (not sandbox), but without creating a NAppGUI application. That is, a third-party application with NAppGUI windows. This case would be contemplated in the issue #100.


Fix goreport

Fix the code based on Go report

There are still some issues in gocycle and golint.


rbenv breaks an assumption in bin/dev.

Because rbenv uses shims, this line in the generated bin/dev script will always return true in an environment in which foreman has been installed in any gemset at any point, even if it's not in the current gemset:
if ! command -v foreman &> /dev/null

I've found this to be a viable alternative that I believe should work everywhere:
if [ $(gem list --local --no-details --quiet --exact foreman | grep foreman | wc -l) -eq 0 ]

(The use of grep is because when foreman isn't installed, gem list will produce an empty line of output.)

Are there any considerations here re: Windows / WSL we need to account for if we use grep + wc?

That's an excellent question.  I've got an engineer who's using WSL that I can ask.  I will update the ticket when I have an answer.
Another option might be something like:
if ! type rbenv &> /dev/null
then
  if ! command -v foreman &> /dev/null
  then
    # ...
  fi
else
  if ! foreman version >/dev/null
  then
    # ...
  fi
fi

It's a little more cumbersome to be sure, but it seems like it would be viable, and compartmentalize any potential quirks / changes of semantics to just us rbenv users.

I'm informed by my colleague that when run from a Linux terminal in WSL, grep works fine.

@dhh What can I do to move this forward?

Could if ! foreman version &> /dev/null be used across the board regardless if the developer is using rbenv or not?

@t27duck That solution is compatible with rbenv, and certainly seems lower risk.  Honestly, I feel silly that it didn't occur to me.  Might be worth tossing in a > /dev/null 2>&1 to avoid cluttering output, since you'll get some output to STDOUT/STDERR regardless of which environment you're on.

Sounds like @t27duck's solution would do. Feel free to PR that.

Done.


fix: typos using misspell

fix: typos
This PR is part of a campaign to fix a lot of typos on github!
You can see the progress on https://github.com/fixTypos/fix_typos/
https://github.com/client9/misspell

Can one of the admins verify this patch?

@tensorflow-jenkins test this please


Add Custom python.pythonPath to List of Interpreters

This is a feature request from my [post on Stack Overflow].(https://stackoverflow.com/questions/58555980/add-custom-python-pythonpath-to-list-of-interpreters)
In brief, it would be good to have any additional python interpreters in the python.pythonPath setting be shown in the list. See the attached image

It shows the correct interpreter as 'current', however it would be good to have all available interprets in this list.
Also, in the situation as shown in the image, if I were to hit enter, it would silently select the Python 2.7.15 64bit entry. In order to confirm my wish to use an interpreter I have to hit esc.

Ok. I'm not sure what happened here, but today I open up the same file and it is now in the list. I'm guessing it a refresh issue?

@Anti-Distinctlyminty if the problem comes back let us know, else I will consider the issue resolved.


FIRE forgets to escape HTML special characters before rendering

while the actual post is caught for:
Body - Position 0-12:
<a href="
                      ^^^^^

Resolved in FIRE version 1.4.0, PR #180.


carthage update fails due to ENABLE_TESTABILTY not being set

With Signals 2.1.0 and Xcode 7.0.1, carthage update fails with this error:
Tests.swift:11:18: error: module 'Signals' was not compiled for testing
A shell task failed with exit code 65:

This can be fixed by setting ENABLE_TESTABILITY to YES in the project file for release builds.
If it helps, I can send a PR with this change. Thanks!

Thanks, feel free to send a PR!

Sent a PR, so closing this issue.
See https://github.com/artman/Signals/pull/16

Thanks, I published version 2.1.1 which should now work with carthage.


git-url-parse doesn't properly parse Bitbucket Server URIs

Issue Type

Bug report

Gilt details
gilt, version 1.2.2.dev2

Gilt installation method: source

Desired Behaviour
Running gilt overlay using this gilt.yml config file:
- git: https://our.bitbucket.server/git/scm/myproject/my-helloworld-roles.git
  version: master
  files:
    - src: helloworld_*
      dst: roles/

I expect everything matching helloworld_.* to be put in ./roles
Actual Behaviour (Bug report only)
$ gilt --debug overlay
Traceback (most recent call last):
  File "/home/philipsd6/.local/bin/gilt", line 10, in <module>
    sys.exit(main())
  File "/home/philipsd6/.local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/philipsd6/.local/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/philipsd6/.local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/philipsd6/.local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/philipsd6/.local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/philipsd6/.local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/philipsd6/devel/gilt/gilt/shell.py", line 68, in overlay
    with fasteners.InterProcessLock(c.lock_file):
  File "/home/philipsd6/.local/lib/python3.6/site-packages/fasteners/process_lock.py", line 174, in __enter__
    self.acquire()
  File "/home/philipsd6/.local/lib/python3.6/site-packages/fasteners/process_lock.py", line 151, in acquire
    self._do_open()
  File "/home/philipsd6/.local/lib/python3.6/site-packages/fasteners/process_lock.py", line 115, in _do_open
    made_basedir = _ensure_tree(basedir)
  File "/home/philipsd6/.local/lib/python3.6/site-packages/fasteners/process_lock.py", line 37, in _ensure_tree
    os.makedirs(path)
  File "/usr/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/our.bitbucket.server'

The problem is in the git-url-parse dependent package:
In [1]: from giturlparse import parse
In [2]: p = parse('https://our.bitbucket.server/git/scm/myproject/my-helloworld-roles.git')
In [3]: assert p.name == 'my-helloworld-roles'
In [4]: assert p.owner == 'myproject', f"p.owner is incorrect: {p.owner}"
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-4-a20d961cd7d8> in <module>
----> 1 assert p.owner == 'myproject', f"p.owner is incorrect: {p.owner}"

AssertionError: p.owner is incorrect: /our.bitbucket.server/git/scm/myproject

In [5]: assert p.resource == 'our.bitbucket.server', f"p.resource is incorrect: {p.resource}"
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-5-88ee6374fc22> in <module>
----> 1 assert p.resource == 'our.bitbucket.server', f"p.resource is incorrect: {p.resource}"

AssertionError: p.resource is incorrect: https

In [6]: assert p.protocol == 'https', f"p.protocol is incorrect: {p.protocol}"
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-12-86dec67945be> in <module>
----> 1 assert p.protocol == 'https', f"p.protocol is incorrect: {p.protocol}"

AssertionError: p.protocol is incorrect: ssh

Why is this project using retr0h/git-url-parse as a dependency, since according to the README, it is no longer maintained? I would have opened this issue up there if I could've...


Cheer event?

Any plan on implementing an event for cheers in channels? (Assuming the API supports it...)

I'm pretty sure bits (cheers) are included in the "message" event? There should be a bits property on the chatter object, as described in the Twitch IRC docs: https://dev.twitch.tv/docs/irc/tags/#privmsg-twitch-tags
Let me know if that helps 👍

Got it, thanks!


Support mobX.js observables

Please visit this issue for clarification:
https://github.com/mobxjs/mobx/issues/1468
the main problem is that mobx observables won't react to changes on the Proxy-properties returned by baqend. the author of mobx claims that this cannot be an issue with mobx itself but the implementation of the proxy. somehow it is not possible to make them observable.
my workaround for this is to create an object-literal from to proxy-data with .toJSON() and re-create the Proxy later when saving, deleting etc. via .fromJSON(). This kind of works but is not free of implications when handling Dates or Files.
See my workaround:
function createViewModel<T>(
    Class: binding.EntityFactory<any>,
    item: binding.Entity,
    type?: misc.Type,
    refViewModel?: misc.ViewModel
): T {
    const viewModel: T & misc.ViewModel<T> = item.toJSON({
        depth: true
    }) as any;

    // convert all date-values and images
    [...Object.keys(Class.prototype), 'key'].forEach(key =>
        preserveItemValues(item, key, viewModel)
    );

    viewModel.restore = async function() {
        // `fromJSON` doesn't consider Dates
        // specify which dates will be formated
        const keepValues = Object.entries(this).reduce(
            (memo, [key, value]) => {
                if (value instanceof Date) {
                    return [...memo, { key, value }];
                }

                return memo;
            },
            [] as { key: string; value: any }[]
        );

        const item = Class.fromJSON(this);

        // assign values to be kept
        keepValues.forEach(({ key, value }) => (item[key] = value));

        // sync changes back to ref-viewModel
        if (refViewModel) {
            Object.keys(Class.prototype).forEach(key => {
                refViewModel[key] = this[key];
            });
        }

        return item;
    };

    viewModel.ref = item;
    viewModel.type = type;
    viewModel.isViewmodel = true;

    return viewModel;
}

I would love to see real support for mobx observables in the future :)

To whom it may concern, I created a much more complex workaround which pretty much covers all my use-cases regarding mobx:
https://gist.github.com/misantronic/83c41bc89aa4ce44c3ed8213dc75a32d
Usage is pretty simple:
the original baqend-entity is wrapped in a viewmodel:
const viewmodel = toJSON(entitiy);
most of the entity-methods are available e.g. save, update, insert, delete, ...
when changing data on the viewmodel (e.g. by saving), all changes are reflected to all instances of this viewmodel.

Hi,
i have take a deeper look in mobx and it seems that the only problem is, that mobx do not enhance es6 class objects by default. this can be solved by manually wrap our loaded objects into observables afterwards.
Here is a simple example how it should work:
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { extendObservable, observable } from 'mobx'
import {observer} from 'mobx-react';
import {model, db} from 'baqend';
import DevTools from 'mobx-react-devtools';

class AppState {
  @observable public item: model.AclPerson = null

  constructor() {
    this.connect();
  }

  async connect() {
    await db.connect("flo-test", true);
    const item = await db.AclPerson.load('/db/AclPerson/6490cc66-901d-425a-bd98-31a5e39dc7c4');
    this.item = extendObservable(item, item); // we wrap here the loaded object in a mobx observable, since mobx will not enhance instances of es6 classes per default
  }

  async changeName() {
    this.item.name = 'New Name ' + Math.floor(Math.random() * 100);
    console.log(this.item.name)
    await this.item.save();
  }
}

@observer
class TimerView extends React.Component<{appState: AppState}, {}> {
    render() {
        return (
            <div>
                <button onClick={this.onReset}>
                    Name: {this.props.appState.item && this.props.appState.item.name}
                </button>
                <DevTools />
            </div>
        );
     }

     onReset = () => {
         this.props.appState.changeName();
     }
};

const appState = new AppState();
ReactDOM.render(<TimerView appState={appState} />, document.getElementById('root'));

Thank you for your effords!
I actually couldn't make it work using extendObservable. Still, there is another way which kind of works; using decorate:
import { decorate, observable } from 'mobx

...

decorate(
    item,
    Object.keys(item).reduce(
        (memo, key) => ({ ...memo, [key]: observable }),
        {}
    )
);

I am in production using my viewModel-wrapper for quite a while which does a lot for me. It will take a lot of work to get back to using no viewModel.
The acl-management is still a bit difficult to handle. Changes performed by allowReadAccess for example are not recognized by the observable.


brew update fails to download json

brew doctor output
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  brew-pip
  exa

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  python-certifi

Verification

[X] My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
[X] I ran brew update twice and am still able to reproduce my issue.
[X] This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output
$ brew config
HOMEBREW_VERSION: 4.1.12
ORIGIN: https://github.com/Homebrew/brew
HEAD: aa2a77b1f1ac1539e69e186bad1d569100448987
Last commit: 8 days ago
Core tap JSON: 24 Sep 13:27 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: ["--no-quarantine"]
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.42.0 => /opt/homebrew/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 13.6-arm64
CLT: <IP_ADDRESS>.1.1694021235
Xcode: N/A
Rosetta 2: false

What were you trying to do (and why)?
Try to update
$ brew update
Error: Failed to download https://formulae.brew.sh/api/cask_tap_migrations.jws.json!

Looks like has been fixed in server side.

This was a duplicate of a pinned issue. Please check for existing issues before opening new ones: https://github.com/Homebrew/brew/issues/15998


X and Y coordinates

Hi,
I've got the new featherwing capacitive display, Part# 5872, that uses this library. I'm setting up a background and shapes using displayio and other display libraries that give me my desired display orientation in landscape. The X coordinate is horizontal, the Y coordinate is vertical and the origin is in the upper left corner.
But..........this touch display places the X coordinate vertical, the Y coordinate horizontal and the origin is in the lower left corner. This makes it a challenge to get a touch button to work properly. Can the library be altered to have the coordinate system match the adafruit_display_shapes and the adafruit_button coordinate systems?

To fix this, we should add some additional options to this lib like I did with https://github.com/adafruit/Adafruit_CircuitPython_TSC2007/pull/6


main_ui: drop unused variable

components_row is not used in FromTable(), so drop it.
Signed-off-by: Kefu Chai<EMAIL_ADDRESS>

Thanks!


Codeforces problem 118A.cpp

// https://codeforces.com/problemset/problem/118/A
Coding platform
Mention the coding platform from where you have picked the problem
codeforces
Programming language
cpp

[ ] C
[ ] C++
[ ] Java
[ ] Python
[ ] JavaScript

Additional context (OPTIONAL)

Please assign me this issue. I have solved this problem.


docs: Add user guide for Upload and Share Files

Wrote user guide for Upload and Share Files
Fixed test-backend errors
Rearranged the table of contents on the index page

Automated message from Dropbox CLA bot
@joyhchen, it looks like you've already signed the Dropbox CLA. Thanks!

The failing test doesn't look like it is related to the pull request.

You will also probably want to squash the entire change into one commit when you are done (possibly two but probably one). Also the history contains the api egg stuff if if you squash the commits that should go away.

Made the changes and squashed everything into one commit. Here it is.

Thanks for making the changes @joyhchen! I'm taking a look at the conflicts :)

It looks like another user guide was added recently, please use the instructions here to update your branch. Looking good otherwise! cc'ing @christi3k

cc'ing @timabbott 😄

Awesome 🎉 Thanks @joyhchen!

Merged, thanks @joyhchen!


[VS Code] vscode.languages.onDidChangeDiagnostics is not a function

This is a duplicate of #283.


connectDragPreview remains a mystery

I've been reviewing the documentation and github issues for the past hour and connectDragPreview still remains a mystery to me.  I would like to define a custom preview for how the item appears when it is being dragged (just like the tutorial example with the horse image).  Here is my code:
export const tokenCollector: DragSourceCollector = (connect, monitor) => {
  return {
    connectDragSource: connect.dragSource(),
    connectDragPreview: connect.dragPreview(),
    isDragging: monitor.isDragging()
  };
};

class TokenClass extends React.Component<TokenProps> {
  componentDidMount() {
    const { connectDragPreview } = this.props;
    const img = new Image();
    img.src = '<encoded image>';
    img.onload = () => connectDragPreview(
{img}
);
  }
  render() {
    const { connectDragSource, isDragging, children } = this.props;
    return connectDragSource(

        {children}

    );
  }
}
const dragSource = DragSource(DropType.Token, tokenSpec, tokenCollector)(TokenClass);
export { dragSource as Token };

The standard preview appears with this code.
I then tried to wrap my connectDragSource in my component's render() method with connectDragPreview, but that only appears to change the drag source where it was picked up from, not how it appears as it's being dragged.

yeah I have the same feeling, can't make it work 👎

@sebas5384 I got some feedback from a SO question, but it still didn't lead me to an answer and seemed more complicated than it should be. https://stackoverflow.com/q/48811165/1315956

Like @augbog said, under the hood all that React DnD is doing is using setDragImage. CustomDragLayer tries to get around this by setting the drag preview image to an empty image. This is explicitly stated in the docs:

The browser APIs provide no way to change the drag preview or its behavior once drag has started. Libraries such as jQuery UI implement the drag and drop from scratch to work around this, but react-dnd only supports browser drag and drop “backend” for now, so we have to accept its limitations.
We can, however, customize behavior a great deal if we feed the browser an empty image as drag preview. This library provides a DragLayer that you can use to implement a fixed layer on top of your app where you'd draw a custom drag preview component.

This is accomplished by using the getEmptyImage utility function that's included in the react-dnd-html5-backend package. You can see this in action in the CustomDragLayer example provided:
componentDidMount() {
	// Use empty image as a drag preview so browsers don't draw it
	// and we can draw whatever we want on the custom drag layer instead.
	this.props.connectDragPreview(getEmptyImage(), {
		// IE fallback: specify that we'd rather screenshot the node
		// when it already knows it's being dragged so we can hide it with CSS.
		captureDraggingState: true,
	})
}

You are then responsible for translating the CustomDragLayer yourself. This can be seen in the following code excerpt (taken from this file in the same example as earlier):
function getItemStyles(props) {
	const { initialOffset, currentOffset } = props
	if (!initialOffset || !currentOffset) {
		return {
			display: 'none',
		}
	}

	let { x, y } = currentOffset

	if (props.snapToGrid) {
		x -= initialOffset.x
		y -= initialOffset.y
		;[x, y] = snapToGrid(x, y)
		x += initialOffset.x
		y += initialOffset.y
	}

	const transform = `translate(${x}px, ${y}px)`
	return {
		transform,
		WebkitTransform: transform,
	}
}

The CustomDragLayer is also not configured for a specific item type (like DragSource is), so you have to specifically check which item type is being dragged and then decide whether or not the CustomDragLayer should be displayed (following is from same file as above):
renderItem(type, item) {
	switch (type) {
		case ItemTypes.BOX:
			return <BoxDragPreview title={item.title} />
		default:
			return null
	}
}

Kind of a mess if you ask me. I've had a bit more success in the past by using the dom-to-image library to turn the DOM node that I want to use as the drag preview into an image and then passing the resulting image to the connectDragPreview function. Something like:
// Some node you want to use as your drag preview
const node = document.createElement("p");
const childNode = document.createTextNode("This is new.");
node.appendChild(childNode);

domtoimage.toPng(node)
.then(function (dataUrl) {
        const img = new Image();
	img.src = dataUrl;
	img.onload = () => this.props.connectDragPreview(img);
})
.catch(function (error) {
       console.error('something went wrong!', error);
});

I am having the same problem but most links pointed here (eg. CustomDragLayer) seem to be broken, so this doesn't help much :/
Anyone have a working link for CustomDragLayer example?

Yeah, it seems the original links I referenced got axed.
Here is a link for a working example of CustomDragLayer:
http://react-dnd.github.io/react-dnd/examples/drag-around/custom-drag-layer
And here is the source code for that example:
https://github.com/react-dnd/react-dnd/tree/master/packages/documentation-examples/src/02 Drag Around/Custom Drag Layer

Anyone have a working link for CustomDragLayer example? with Javascript

I’m not sure why they keep changing the links, but if you go to the React DnD Github site you’ll find a working example of CustomDragLayer under the Examples tab (currently listed under the ‘Drag Around’ examples).

@atkallie We are on the React DnD Github site and the CustomDragLayer example (at least the one that existed when I logged this issue) was what I unsuccessfully attempted to use as a guide previously.

@mellis481 Here is a working example of the tutorial that you referenced that I put together. I used events in the code below since I wanted the code here to be self-contained, but in production you would probably use something like Redux to keep track of the changes to the knight's position. Hopefully this helps. (I kept it all in one file so that I could paste the code here for others to reference, so I apologize if it's a bit cluttered.)
import _ from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DragDropContext, DragSource, DropTarget } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';

// Example Chess Board where the knight is dragged to different squares and
// is only allowed to change position if the drop target has a position located
// in an L-shape relative to the current position (chess rule for knights)

// configure the knight's initial position
let knightPosition = [3, 4];

// this image is used below to demonstrate how to configure a custom drag preview
const crazyHorse = 'https://www.dhresource.com/100x100/f2/albu/g4/M01/B9/1D/rBVaEFmRPdeAJZ0pAAIcbxpSGmY771.jpg';

// function used to dispatch an event whenever the knight changes position
// whenever the event is dispatched, ReactDnDTutorial (top level component) will
// update
// NOTE: this is needed because knightPosition is a global variable --
// 		 not state or props -- of ReactDnDTutorial so it will not refresh when
//		 the variable changes. In a production application we would probably
//	 	 use Redux instead and map knightPosition to ReactDnDTutorial's props
//		 in mapStateToProps and React would then handle rerendering for us
//		 automatically, but I wanted the logic of this walkthrough to all be
//		 displayed in a single file.
const emitChange = () => {
	const event = new Event('KNIGHT_POSITION_CHANGED');
	window.dispatchEvent(event);
}

// utility function to change the knight's position
const moveKnight = (toX, toY) => {
	// if using Redux the following would be replaced by a call to an action creator
	// (i.e. store.dipatch({ type: 'KNIGHT_POSITION_CHANGED', payload: [toX, toY] }))
	knightPosition = [toX, toY];
	emitChange();
}

// utility function to check if the knight's location can be changed based on L-rule
const canMoveKnight = (toX, toY) => {
	const [x, y] = knightPosition;
	const dx = toX - x;
	const dy = toY - y;

	return (
		(Math.abs(dx) === 2 && Math.abs(dy) === 1) ||
		(Math.abs(dx) === 1 && Math.abs(dy) === 2)
	);
}

// create the constants for the draggable item types
const ItemTypes = { KNIGHT: 'KNIGHT'};

// Knight Piece (Drag Source)
class __Knight extends Component {
	componentDidMount() {
  		const img = new Image();
		img.src = crazyHorse;
		img.onload = () => this.props.connectDragPreview(img);
	}

	render() {
		const { connectDragSource, isDragging } = this.props;
		return connectDragSource(

				♘

		);
	}
}

// Collecting Function
// 		the collecting function returns a plain object of
//		the props to inject into your component
function knightCollect(connect, monitor) {
	return {
		connectDragSource: connect.dragSource(), // connector
		connectDragPreview: connect.dragPreview(),
		isDragging: monitor.isDragging() // monitor
	}
}

// DragSource specification
// 		A plain JavaScript object with a few allowed methods on it.
//		It describes how the drag source reacts to the drag and drop events
const knightDragSourceSpec = {
	// beginDrag is required
	// 		Returns a plain JavaScript object describing the data being dragged.
	//		Object returned is the only information available to the drop
	//		targets about the drag source so it's important to pick the minimal
	// 		data they need to know
	beginDrag(props, monitor, component) {
		return {};
	}
}

const Knight = DragSource(
	ItemTypes.KNIGHT,  // (type) the item type (only the drop targets registered for the same type will react to the items produced by this drag source)
	knightDragSourceSpec,
	knightCollect
)(__Knight);

class Square extends Component {
	render() {
		const { black } = this.props;
		const fill = black ? 'black' : 'white';
		const stroke = black ? 'white' : 'black';

		return (

	        	{this.props.children}

	    );
	}
}

class __BoardSquare extends Component {
	renderOverlay(color) {
		return (

		);
	}

	render() {
		const { x, y, connectDropTarget, isOver, canDrop } = this.props;
		const black = (x + y) % 2 === 1;

		return connectDropTarget(

				<Square black={black}>
					{this.props.children}
				</Square>
				{isOver && !canDrop && this.renderOverlay('red')}
				{!isOver && canDrop && this.renderOverlay('yellow')}
				{isOver && canDrop && this.renderOverlay('green')}

		);
	}
}

function squareCollect(connect, monitor) {
	return {
		connectDropTarget: connect.dropTarget(),
		isOver: monitor.isOver(),
		canDrop: monitor.canDrop()
	};
}

const squareDropTargetSpec = {
	canDrop(props) {
		return canMoveKnight(props.x, props.y);
	},

	drop(props) {
		moveKnight(props.x, props.y);
	}
}

const BoardSquare = DropTarget(
	ItemTypes.KNIGHT,
	squareDropTargetSpec,
	squareCollect
)(__BoardSquare);

class __Board extends Component {
	renderSquare(i) {
		const x = i % 8;
		const y = Math.floor(i / 8);
		return (

				<BoardSquare x={x} y={y}>
					{this.renderPiece(x, y)}
				</BoardSquare>

		);
	}

	renderPiece(x, y) {
		const [knightX, knightY] = this.props.knightPosition;
		if (x === knightX && y === knightY) {
			return <Knight />;
		}
	}

	render() {
		const squares = [];
		for (let i = 0; i < 64; i++) { squares.push(this.renderSquare(i)); }

		return (

				{squares}

		);
	}
}

// typechecking with prop-types
__Knight.propTypes = {
	connectDragSource: PropTypes.func.isRequired,
	isDragging: PropTypes.bool.isRequired
};
Square.propTypes = { black: PropTypes.bool };
__BoardSquare.propTypes = {
	x: PropTypes.number.isRequired,
	y: PropTypes.number.isRequired,
	connectDropTarget: PropTypes.func.isRequired,
	isOver: PropTypes.bool.isRequired,
	canDrop: PropTypes.bool.isRequired
};
__Board.propTypes = {
	knightPosition: PropTypes.arrayOf(PropTypes.number.isRequired).isRequired
};

// Wrap the root component of your application with DragDropContext to set up React DnD.
// This lets you specify the backend, and sets up the shared DnD state behind the scenes.
// const Board = DragDropContext(TouchBackend)(__Board);
const Board = DragDropContext(HTML5Backend)(__Board);

class ReactDnDTutorial extends Component {
	constructor(props){
		super(props);
		this.state = { eventListenerAdded: false }
	}

	componentDidMount(){
		this.handleEventListening();
	}

	componentWillUnmount(){
		this.handleEventListening();
	}

	handleEventListening = () => {
		if(!this.state.eventListenerAdded){
			window.addEventListener('KNIGHT_POSITION_CHANGED', this.handleRefreshComponent)
		}else{
			window.removeEventListener('KNIGHT_POSITION_CHANGED', this.handleRefreshComponent)
		}
	}

	handleRefreshComponent = (e) => { this.forceUpdate() }

	render(){
		return <Board knightPosition={knightPosition} />
	}
}

export default ReactDnDTutorial;

After wrestling with this problem myself, I found this was due to a limitation in the HTML5 Drag-and-Drop API.
You cannot define arbitrary, detached DOM to write up a drag preview. You have to use an image.
To make this easier, we've added the DragPreviewImage component in the top-level API.


Can't install Cordova adapter

Plugin id and versions should be the same in package.json and plugin.xml

Are you trying to install @nano-sql/adapter-sqlite-cordova (V2) or cordova-plugin-nano-sqlite (V1)?

sorry forgot, @nano-sql/adapter-sqlite-cordova
in the meantime i uploaded cordova-adapter-sqlite-eypscap

@nano-sql/adapter-sqlite-cordova has been updated to resolve this issue


[3455] Corrected the kubernetes namespace

📲 What
Modified the Kubernetes namespace that the application is deployed into
🤔 Why
All apps were deploying into the same namespace with the same name which meant that apps were being deployed over each other.
🛠 How
Changed the namespace variable in the deployment stages of the build pipeline
👀 Evidence
The app is now being deployed into the correct namespace

LGTM merging


CircleCI: Disable analytics

I don't think we want Homebrew analytics tracking our failing builds on CircleCI :trollface:

I believe analytics are disabled while brew test-bot is running, but yes, good idea to disable it here if you're running brew update outside of brew test-bot.

Yes, I noticed analytics here: https://circleci.com/gh/Linuxbrew/homebrew-xorg/996 in brew update state


Fix PNG files bug

Added snippet to convert image into RGB format.

References issue #10.

Looks good!
Thank you for this PR @pratik-choudhari, I was looking for a way to remove the transparency (A of RGBA) for another feature.


sqlparser: TableName: pointer->value

TableName introduced many unnecessary nil checks. Code is simpler
if it's used as value. Also, this allows for TableName to be used
as map key, which simplifies the v3 refactor.

This is a trivial refactor, which is a prerequisite for the next one, where I use Tablename as key in a map.


Openjdk8 native build issue due to freetype

Hi,
I am trying to build openjdk8 using temurin build scripts in cygwin. Environment is Windows 11 Visual studio code 2022.
Command executed in cygwin
./makejdk-any-platform.sh --create-jre-image jdk8u
Freetype is not getting compiled getting these errors
First I got ARCHITECTURE: unbound variable in build.sh
if [ "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" = "${JDK8_CORE_VERSION}" ] && [ "${ARCHITECTURE}" = "64" ] && [ "${BUILD_CONFIG[BUILD_VARIANT]}" != "${BUILD_VARIANT_OPENJ9}" ]; then
I changed to
if [ "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" = "${JDK8_CORE_VERSION}" ] && [ "${BUILD_CONFIG[OS_ARCHITECTURE]}" = "x86_64" ] && [ "${BUILD_CONFIG[BUILD_VARIANT]}" != "${BUILD_VARIANT_OPENJ9}" ]; then
Then got this error:
configure : Trying to compile freetype sources with PlatformToolset=v143 to to /cygdrive/c/Openjdk8/temurin-build/workspace/libs/freetype/lib64
configure : User specified --with-freetype-src but building freetype failed
Thanks & Regards,
Rakshith S

@Rakshiths09 in build.sh on line 536 try removing:
jdk8* | jdk9* | jdk10*) addConfigureArg "--with-freetype-src=" "${BUILD_CONFIG[WORKSPACE_DIR]}/libs/freetype" ;;

Also the function at line 242 might give you a hint as to why the freetype failed.  The path to the frettype files probably doesn't exist for VS2022, you might be able to update the path

Not 100% sure Java 8 builds support using VS2022

Hi @karianna,
Changed the git hash tag for freetype to use version 2.8.1. Tried with VS2019. Build is successfull.
And can I build the jdk and jre with javafx included?

Hi @karianna, Changed the git hash tag for freetype to use version 2.8.1. Tried with VS2019. Build is successfull. And can I build the jdk and jre with javafx included?

You'll need to look at the IcedTea project in the AdoptOpenJDK GitHub Org - I'm not really sure if there are up to date instructions


Upgrade web client dependencies

Although I do see this warning when serving it locally, regarding dependencies of moment.
WARNING  Compiled with 1 warnings                                                             6:48:09 PM

warning  in ./node_modules/moment/locale/en-SG.js

There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /home/jake/projects/dandiarchive/web/node_modules/moment/locale/en-SG.js
    Used by 2 module(s), i. e.
    /home/jake/projects/dandiarchive/web/node_modules/moment/locale sync /^\.\/.*$/
* /home/jake/projects/dandiarchive/web/node_modules/moment/locale/en-sg.js
    Used by 2 module(s), i. e.
    /home/jake/projects/dandiarchive/web/node_modules/moment/locale sync /^\.\/.*$/

However there's not really much we can do about this, and I don't think this should affect us.


Implement sdb_array_num_sort()

And maybe sdb_array_sort() too

Done in https://github.com/radare/sdb/pull/71


Warning: currenttemp rate != lastTemp rate when going from > 0 COB to 0 COB

Latest dev branch
With the setting enableSMB_with_COB, the loop after COB hits zero I seem to consistently get this error. It resolves itself on the next loop, but it seems the currenttemp comparison while SMB is not enabled to the lastTemp when SMB is enabled has an issue.

I can’t think of any mechanism that would cause that. Those checks are just comparing inputs from the pump, and shouldn’t care what is recommended by determine-basal. Can you capture what the temp_basal.json and pumphistory.json say at the time?

The next time I catch it happening I'll grab those files.


Updated layout for stack, app, database, and settings

cc @mixonic @bantic
This PR addresses some of the design feedback from last week in a couple of ways:

Add a sidebar to stack.show, providing linkage to other stacks and organization settings
Add resource sidebar to resource.show.* routes, allowing cross linking to other resources in stack and breadcrumb to parent stack
Adds resource icon to header of each resource type
Stronger app layout with flexbox-based holy grail layout

App Show:

Database Show:

Stack Show:

Verification Alert:

cool to see flexbox in action!

@bantic @mixonic I think this is ready, I appreciate your feedback.

I've made the two changes I called out and merged this into master manually. Closing this PR.


add the --del option to make sure rsync deletes removed files

Fix for #61 (thanks @stephencooke)

fixes #61


Bug: Target container is not a DOM element

When opening database pane as a new window. using the search/fitler bar will cause the pane to lose information.
and the console show up some errors:
Uncaught Error: Target container is not a DOM element.
    at Object.createPortal$1 [as createPortal] (plugin:dbfolder:47412:14)
    at Header (plugin:dbfolder:129064:24)
    at renderWithHooks (plugin:dbfolder:36217:19)
    at updateFunctionComponent (plugin:dbfolder:38588:21)
    at beginWork (plugin:dbfolder:40295:17)
    at HTMLUnknownElement.callCallback (plugin:dbfolder:25180:15)
    at Object.invokeGuardedCallbackDev (plugin:dbfolder:25229:17)
    at invokeGuardedCallback (plugin:dbfolder:25291:32)
    at beginWork$1 (plugin:dbfolder:45185:8)
    at performUnitOfWork (plugin:dbfolder:44000:13)
plugin:dbfolder:41317 The above error occurred in the <Header> component:

    at Header (plugin:dbfolder:128985:42)
    at div
    at Draggable (plugin:dbfolder:55657:27)
    at ConnectFunction (plugin:dbfolder:19260:36)
    at PrivateDraggable (plugin:dbfolder:56009:26)
    at PublicDraggable (plugin:dbfolder:56019:32)
    at div
    at Droppable (plugin:dbfolder:56031:34)
    at ConnectFunction (plugin:dbfolder:19260:36)
    at Provider (plugin:dbfolder:18395:20)
    at App (plugin:dbfolder:54634:25)
    at ErrorBoundary (plugin:dbfolder:47900:35)
    at DragDropContext (plugin:dbfolder:54755:19)
    at div
    at div
    at div
    at Table (plugin:dbfolder:130405:60)
    at Database (plugin:dbfolder:131320:49)

React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary.
logCapturedError @ plugin:dbfolder:41317
plugin:dbfolder:47957 Uncaught Error: Target container is not a DOM element.
    at Object.createPortal$1 [as createPortal] (plugin:dbfolder:47412:14)
    at Header (plugin:dbfolder:129064:24)
    at renderWithHooks (plugin:dbfolder:36217:19)
    at updateFunctionComponent (plugin:dbfolder:38588:21)
    at beginWork (plugin:dbfolder:40295:17)
    at HTMLUnknownElement.callCallback (plugin:dbfolder:25180:15)
    at Object.invokeGuardedCallbackDev (plugin:dbfolder:25229:17)
    at invokeGuardedCallback (plugin:dbfolder:25291:32)
    at beginWork$1 (plugin:dbfolder:45185:8)
    at performUnitOfWork (plugin:dbfolder:44000:13)
plugin:dbfolder:41317 The above error occurred in the <ErrorBoundary> component:

    at ErrorBoundary (plugin:dbfolder:47900:35)
    at DragDropContext (plugin:dbfolder:54755:19)
    at div
    at div
    at div
    at Table (plugin:dbfolder:130405:60)
    at Database (plugin:dbfolder:131320:49)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
logCapturedError @ plugin:dbfolder:41317
3plugin:dbfolder:47412 Uncaught (in promise) Error: Target container is not a DOM element.
    at Object.createPortal$1 [as createPortal] (plugin:dbfolder:47412:14)
    at Header (plugin:dbfolder:129064:24)
    at renderWithHooks (plugin:dbfolder:36217:19)
    at updateFunctionComponent (plugin:dbfolder:38588:21)
    at beginWork (plugin:dbfolder:40295:17)
    at HTMLUnknownElement.callCallback (plugin:dbfolder:25180:15)
    at Object.invokeGuardedCallbackDev (plugin:dbfolder:25229:17)
    at invokeGuardedCallback (plugin:dbfolder:25291:32)
    at beginWork$1 (plugin:dbfolder:45185:8)
    at performUnitOfWork (plugin:dbfolder:44000:13)
plugin:obsidian-folder-focus-mode:227 a true

hi @trungng2006 , thanks for the report.
I am going to work on an stable version as soon as the migration of the plugin to the new react version is finished.
There are radical changes that could affect those fixes

After some research I have seen the potential problem
When you change the view to pane, the document property changes to another context, but the plugin code is running with the old one.
What's the problem with that?
The plugin is using React portals to render, for example, the header options. To render them, We are using the next line
document.getElementById("popper-container")

returning a null cause we are looking inside another document.
I will ask to the Obsidian support, cause I don't know how to resolve this right now

After the publication of 2.0.0 I just read about this kind of problem on Obsidian forum
https://forum.obsidian.md/t/plugin-developers-how-to-update-your-plugin-to-support-pop-out-windows/40228
I am going to try the snippet =)

LOL that was quick. Just modifying document per activeDocument is fixed =)


Fix contributor guidelines link in CONTIRBUTING.md

Just changed the link from https://docs.spongepowered.org/en/contributing/guidelines.html to https://docs.spongepowered.org/stable/en/contributing/guidelines.html

https://github.com/SpongePowered/SpongeAPI/issues/1000#issuecomment-852264086


Complete multi-tenancy profile level 1 benchmarks

complete MT-PL1 benchmarks and update definitions

Addresses issues #264, #265, #266, and #267

/lgtm
/approve


Convert recursion in fetch into loop

Fixes #52

@losipiuk PTAL

@mdesmet can you rebase?

@nineinchnick are you good with this PR?

Yes, lgtm


SQDEVOPS-47 Define an initial set of dynamic compatibility tests

We need to define compatibility tests for our charts, that check whether a chart is compatible with a specific k8s version. In the scope of this PR, we focus on dynamic compatibility (e.g., how do our charts behave when we install them in a cluster of a certain k8s API version?).
We define one test suite for our standard and dce charts covering those basic three test cases. When we deploy our charts, assuming the usage of default values, we test:

if the required (default) number of pods is running
if all the running pods have the containersReady condition set to true
if the sonarqube application is ready (apis are ready to serve new requests)

Few indentation problems in the go files. try to run "go fmt" on the folder
As discussed, it would be good to decompose the tests in subfunctions for clarity and reusability

LGTM, just the TODO to be removed, commented images and change jira ticket in commit

DOCKER-112 will address the todos that were removed from the code.


[WIP] Add Zero Shot Inference for Sentence Similarity

Add a zero shot example that reproduces sentence transformer's results. And add a new problem_type for it. We should discuss if it works this way or do we need a new variable like task = {sentence_similarity, detection, ...} to infer the default pretrained model (instead of using zero_shot_xxx).
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@cheungdaven The PR that adds zero_shot for sentence similarity feature.


More native menu items

These are more native menu items that would be nice to have in Tauri.
Apple's Menu Bar Menus guidelines: https://developer.apple.com/design/human-interface-guidelines/macos/menus/menu-bar-menus
Edit > Paste and Match Style
Edit > Delete
Edit > Speech > Start Speaking
Edit > Speech > Stop Speaking
Edit > Start Dictation
Edit > Emoji & Symbols
View > Actual Size
View > Zoom In
View > Zoom Out
Window > Bring All to Front
List of open windows: Most macOS apps also have a list of the open windows at the bottom of the Window menu. The guidelines state that you should:

List open windows — not panels — as menu items at the bottom of the Window menu. List the windows in alphabetical order for easy scanning. When people select an open window in the Window menu, it comes to the front of the window stack.

Another good one might be supporting About <app> on Windows. I noticed that apps like Notepad and VSCode do have it, though it sounds like it's something that has to be manually implemented.

In v2, About menu item is implemented on All 3 platforms. Other native menu items (which are specific to macOS) will be added later once resolved in https://github.com/tauri-apps/muda/issues/83


Disabled on initialisation

Hi - id like to enable animation only after page load, I dont want a page appear fade in.
Im using the react hook, but enabled doesn't work on first render. Could we pass in an enabled (Disabled) option so we can enable it in a post render effect?

how did you solve this issue @glenarama?


[Curse of the Empty Lord] Entrana Ghost, Mory legs showing as viable

The step where you talk to the ghost in Entrana, the Morytania legs don't show as counting as a Ghostspeak amulet when they should.


property name like R2D will not be parsed correctly in single line pattern

        /**
         * @property {number} R2D - radius to degree
         */

The above pattern will result in
R {number}
2D radius to degree

Multiline definition of property works fine:
        /**
         * radius to degree
         * @property R2D
         * @type {Number}
         */

This would be fixed when v1.8(refactored) merged into master, just tips


Add js license details for example page.

This commit is a follow-up to https://github.com/Textalk/angular-schema-form/pull/257

Could you redo the PR against the development branch? gh-pages is only for the index page, the examples lives in the main repo.

Yes, if you want. My original PR was merged into gh-pages however. It contained jslicense.html and most of the changes now are in this file.

As @davidlgj said, the examples live in development/master. Changes in the gh-pages branch are never merged into master/development thus rendering any merged changes null. Please redo the PR against development.


[Enhancement] improve error message handling of JNI connector and support char type of paimon connector

Fixes #27992

fail fast for unsupported types of paimon table
output error massage of JNI to client terminal
support char type of paimon connector
some minor refactor

What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[FE PR Coverage Check]
:heart_eyes: pass : 12 / 14 (85.71%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/ColumnTypeConverter.java
12
14
85.71%
[462, 468]

[FE PR Coverage Check]
:heart_eyes: pass : 2 / 2 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/ColumnTypeConverter.java
2
2
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 11 / 11 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/ColumnTypeConverter.java
11
11
100.00%
[]

[FE PR Coverage Check]
:disappointed: fail : 1 / 2 (50.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/ColumnTypeConverter.java
1
2
50.00%
[397]

[FE PR Coverage Check]
:heart_eyes: pass : 2 / 2 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/ColumnTypeConverter.java
2
2
100.00%
[]

@Mergifyio backport branch-3.1


Access token acquired for service accounts should include promotion sccope

Describe the solution you'd like
At the moment the access token for service accounts doesn't include the promotion scope.
#289 fixes this. Please consider merging it.

@ashleyfrieze I left a comment on the PR. I can't merge it without breaking every existing frodo service account. I'll have to think about this and solicit feedback from you and others how to do this best.

This was implemented with the changes for #391


Ticket data from different timezone are not aligned (bug introduced with #1085)

I am trying to find correlations between tickets in differnet timezone (one in the New York Stock exchange and the other in the London Stock Exchange). Due to changes to the timezone logic, the data in each row of yfinance.download are no longer the data of the Tickets at the same time. Using ignore_tz=False fixes this problem. This problem didn't exist with version 0.1.77 and previous. So I think by default ignore_tz should be set to False as that behaviour is consistent with the previous minor versions.

But ignore_tz=True is default behaviour. Sounds like you copy-pasted from README without reading - post your code please.

I wrote my code with version 0.1.75. I upgraded my packages the other day and found out my data analysis was completely off. Using ignore_tz=False brought back the old behaviour. See below for a minimal example
import yfinance as yf

tickets = yf.download(tickers=f"^FTSE ^DJI", period='7d', interval='1m', ignore_tz=True)
for index, row in tickets.iterrows():
    a = row['Close']['^FTSE']
    b = row['Close']['^DJI']
    # a and b are not data at the same time

tickets = yf.download(tickers=f"^FTSE ^DJI", period='7d', interval='1m', ignore_tz=False)
for index, row in tickets.iterrows():
    a = row['Close']['^FTSE']
    b = row['Close']['^DJI']
    # a and b ar data at the same time

I understand now, behaviour has changed since old version. Do you mind submitting a PR?

Sure. Is the PR just changing the default value to ignore_tz=False?

Yes. I know it's trivial but I want community to be more involved in code.

I didn't see doc, so I just updated README.


Save config file error when *.save file do not exists

oudbase_install.sh tries to restore saved config files when the directory local/etc does exists. Seems that it does not check the right files.

fixed. wrong if statement


Outdated helm in shell-box

Currently gcp shell helm extension throws folllowing error
Error: "helm repo update" accepts no arguments
Usage:  helm repo update [flags]
Which however contradicts to the actual synopsis of helm cli
See: https://helm.sh/docs/helm/helm_repo_update/
Quick solution to update helm to the latest actual version

Shell box was relying on out-dated helm 3.5.0. Currently we install 3.8.2 (same as for GCP toolbox).

Note latest current  helm version is 3.9.0

Fix should be now available in: gcr.io/superhub/cloud-shell:latest

That resolved the issue, I was able to deploy GKE sandbox without any errors.


Fail php-cs-fixer linting early. Closes #187.

Fail php-cs-fixer linting early to speedup builds.

Thanks! 👍


Board flashing instructions updates for v89

Readiness

[x] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
Adds flashing support for NVIDIA Xavier and Orin developer kits, plus minor fixes found for other boards.
Checklist
Optional. Add a 'x' to steps taken.
You can fill this out after opening the PR. "Did I..."

[x] Run spelling and grammar check, preferably with linter.
[x] Avoid changing any header associated with a link/reference.
[x] Step through instructions (or ask someone to do so).
[ ] Review for wordiness
[ ] Match tone and style of page/section.
[x] Run make linkcheck.
[x] View HTML in a browser to check rendering.
[ ] Use semantic newlines.
[ ] follow best practices for commits.

[ ] Descriptive title written in the imperative.
[ ] Include brief overview of QA steps taken.
[ ] Mention any related issues numbers.
[x] End message with sign off/DCO line (-s, --signoff).
[ ] Sign commit with your gpg key (-S, --gpg-sign).
[ ] Squash commits if needed.

[ ] Request PR review by a technical writer and at least one peer.

Docs for 29ee50a4bc8acd73b21aa847836a065b11deee61 are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1854/docs/artifacts/html/index.html

Docs for 6f0452290ae91189bca7e9fe8526f81b05a26e21 are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1855/docs/artifacts/html/index.html

Docs for 263e55d01a5134504bac165103a3d331feef1a95 are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1858/docs/artifacts/html/index.html


Adding additional check to inplace operations

What do these changes do?

This allows subclasses of the QueryCompiler object to be operated on inplace

Related issue number
Resolves #322

[x] passes git diff upstream/master -u -- "*.py" | flake8 --diff
[x] passes black --check modin/

Merged build finished. Test PASSed.

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

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Modin-Performance-PRB/140/
Test PASSed.


How do I validate dxTextBox on lost focus?

Issue Type
question
Description
How can I get the same behavior as this? T596346 - How do I validate dxTextBox on lost focus?
Steps to Reproduce
I've tried this code without success.
<template>
	<div>
		<dx-text-box valueChangeEvent="focusout">
			<dx-validator :validationRules="rules" />
		</dx-text-box>
	</div>
</template>

<script>
import { DxTextBox, DxValidator } from 'devextreme-vue';
export default {
	components: {
		DxTextBox,
		DxValidator
	},

	data: function() {
		return {
			rules: [
				{
					type: 'required',
					message: 'this is required'
				}
			]
		};
	}
};
</script>

Environment Details
"devextreme": "18.1.4-pre-18164",
"devextreme-vue": "^18.1.4-alpha.5",

To get the desired behavior additionally set the value option to null in your textbox.
See this example
This question relates to how our DevExtreme widgets work rather than to our Vue integration. So, if you need a further assistance, please post a question to our support center.


Enhance documentation for BN_mask_bits()

Fixes #5537: Added a note that the error check for BN_mask_bits() depends on the platform's word size and that the return value can be safely ignored. Included a reference to the BN_num_bits() function for precise bit checking.

[x] documentation is added or updated

@nhorman please reconfirm

Ack, approval holds

This pull request is ready to merge

Merged to all the active branches. Thank you for your contribution.


Roll out v2

Overhaul of the entire plugin, core changes include

Opt-out by default.
Backend admin section, allowing you to put your GA tracking code.
New tested banner Frontend design and functionality.
Core banner and setting page functionality now in JS
Improved responsiveness/mobile and CSS layout.
Plugin file layout changed to a simpler approach and in line with team plugins.
Ground work done to start moving toward opening the plugin to WP community.

TODO - Add in accessibility fixes.

Looks good to me!


MusicXML file import

Many thanks this great atom package..
I have a question about opening other formats besides MEI.
For instance, Verovio supports rendering MusicXML files (e.g. like in [this example](http://www.verovio.org/mei-viewer.xhtml?file=examples/musicxml/Bach_Nun_komm_der_Heiden_Heiland_BWV.659.xml&musicxml=true on) on their website). Indeed, the loadData() function of the toolkit natively accepts XML files.
Would you see a simpple way to render MusicXML? (even without the SVG-text binding)
Thank you very much.

Verovio does not render notation from MusicXML directly, but instead converts it to MEI and renders notation from the result.  This is described on the Verovio website.
Including the ability to convert from MusicXML to MEI would definitely be a good feature to add to this plugin.

It seems like verovio also includes a direct MusicXML. The website indicates: "Verovio supports conversion from MusicXML to MEI."
It is possible to see this MusicXML compatibility in the function called bool Toolkit::LoadData(const std::string &data) in the (source code)[https://github.com/rism-ch/verovio/blob/b2194a3af4efa8e7bf01122b14aed14fb0751d8d/src/toolkit.cpp])
I could have successfully experimented in a simple HTML/JavaScript webpage. Using the same loadData function is enough. However, for some reason I cannot find a way to open such MusicXML using the node.js atom plugin. Would you have any idea?

Yes, Verovio will accept a MusicXML file, internally convert it to MEI, and then render notation for it.  No, this package does not support that functionality.  The purpose of this package is to support MEI encoding, so the functionality you suggest is out of scope for this project.
However, I do still think that a MusicXML to MEI converter would be a great addition.

actually you should be able to save the conversion result, shouldn't you?

(with apologies for the very slow reply)  Yes, it might be just that simple!  That's certainly what I'd try first.

@bwbohl Yes, Verovio makes it very simple. Using Toolkit::getMEI() function (see here) with the scoreBase parameter set to true gives the conversion to MEI result.
@siennamw OK, removing the format option works fine: it is enough to let Verovio infer the right markup type. I have tested it on a fork.
In addition, I find your concept of binding graphics to the text editor is really interesting and helpful.I have started adapting your code to make it work with the MusicXML type. There is no ID attributes on MusicXML elements (except on parts), but with a couple of XPath and regex evaluations we can
The proof of concept is on this fork. Soon this might raise a question about the relevant way to organize code and package. As a first thought, I see a couple of options:

Create a different package, e.g. musicxml-tools-atom, that is dedicated to direct support of MusicXML files.
Adding a "convert file from MusicXML to MEI" feature in this mei-tools-atom package. This feature would first convert MusicXML to MEI, open the MEI result in a new tab, and do all the interaction on the MEI text.
Handling both formats in the same mei-tools-atom package, just by modularizing a little bit the functions that are "idiomatic" to each of the MEI, MusicXML formats.

Which would be the most relevant way in your opinion?

In the long run, I think the best plan is to create a Verovio package, which would provide rendering for MEI, MusicXML, and Humdrum (I haven't tried it yet, but the docs show it's supported), as well as access to other Verovio functions like exporting to SVG and converting to MEI.  That package could then become a dependency of language-specific packages that also include things like validation tools.  It would need a well-designed API to interface closely with other packages.
For now, I think that adding "Convert file from MusicXML to MEI" functionality (your #2) is the thing to do.

Resolved by #3

I like your idea on language-specific packages on top of core rendering package in the long run.
In a shorter run, do you think it would be preferable to create another atom package (let's say musicxml-tools-atom) with the MusicXML support?
I would like to distribute easily such version with people. As I have little experience with writing Atom packages, I do not know if we would be better off creating this new package together with a dedicated repository, or if it is possible to install this  mei-tools-atom package with another branch/fork repository.

@PhilippeCuvillier, now that you have a fork with the modifications you were looking for, I suggest you simply rename it to musicxml-tools-atom and publish it yourself.  Instructions for publishing an Atom package


Reconsider naming of some methods and classes

The asHash methods should probably be called toMap as they return a plain map. The HashMap which you use, is just an implementation of the Map interface (e.g. https://github.com/ifedapoolarewaju/transloadit-java-sdk/blob/master/src/com/transloadit/sdk/Steps.java#L71) and you may want to change the used map implementation.
Furthermore, I would prefer it if the Assembly class was named AssemblyAPI or similar as it does not represent an actual Assembly but only provides methods for accessing information about Assemblies. This would also result in a different name for the Transloadit#assembly method (https://github.com/ifedapoolarewaju/transloadit-java-sdk/blob/master/src/com/transloadit/sdk/Transloadit.java#L48). Later, we may want to add a TemplateAPI, BillingAPI or CredentialsAPI.
Finally, you should look at which methods you really want to make public. Be aware that you can always add features but never remove them without a major version release. For example, Transloadit#getAuthData (https://github.com/ifedapoolarewaju/transloadit-java-sdk/blob/master/src/com/transloadit/sdk/Transloadit.java#L56). If you want to use it a different class while not exposing it to the public world, have a look at package-private (see https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html)

@Acconut I have addressed these issues as well


python: add endpoint option in HttpConfig.

Signed-off-by: Jakub Dardzinski<EMAIL_ADDRESS>
Problem
Endpoint api/v1/lineage was hardcoded.
Closes: #695
Solution
Make endpoint parametrized in config.
Checklist

[x] You've signed-off your work
[x] Your pull request title follows our guidelines
[x] Your changes are accompanied by tests (if relevant)
[x] Your change contains a small diff and is self-contained
[x] You've updated any relevant documentation (if relevant)
[x] You've added a header to source files (if relevant)

Codecov Report

Merging #1007 (e9f2c87) into main (70b5ed3) will increase coverage by 1.31%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #1007      +/-   ##
============================================
+ Coverage     84.61%   85.92%   +1.31%
============================================
  Files            78       61      -17
  Lines          3535     3296     -239
  Branches         20        0      -20
============================================
- Hits           2991     2832     -159
+ Misses          516      464      -52
+ Partials         28        0      -28

Impacted Files
Coverage Δ

client/python/openlineage/client/transport/noop.py
92.30% <ø> (-0.55%)
:arrow_down:

client/python/openlineage/client/transport/http.py
89.15% <100.00%> (+0.26%)
:arrow_up:

.../openlineage/client/DefaultConfigPathProvider.java

.../io/openlineage/client/OpenLineageClientUtils.java

...penlineage/client/transports/ConsoleTransport.java

...o/openlineage/client/transports/HttpTransport.java

...in/java/io/openlineage/client/OpenLineageYaml.java

...lineage/client/transports/ApiKeyTokenProvider.java

...a/io/openlineage/client/transports/HttpConfig.java

.../java/io/openlineage/client/OpenLineageClient.java

... and 9 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Microsoft.CLRTypesSQLServer.2019 version 15.0.2000.5

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.0 schema?

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

Microsoft Reviewers: Open in CodeFlow

Seems like a lot of Internal-Errors have been being thrown recently


Pass value to custom delete function

Delete currently just takes a key/attribute name argument which means the actual value will be deleted before any custom delete function is called.  It may be important to have that value available (e.g. backup?)
Alternatively ensure custome delete (and save) are called BEFORE delitem etc.

Labelled as "wontfix" after Version 1.8.0 simply because the main authors don't currently have the time for non essential enhancements.  If there's a huge uptake in people using CleverDict and asking for this feature that may change, or if you're reading this why not Fork, develop a solution, and contribute a Pull Request yourself?

Labelled as "wontfix" after Version 1.8.0 simply because the main authors don't currently have the time for non essential enhancements.  If there's a huge uptake in people using CleverDict and asking for this feature that may change, or if you're reading this why not Fork, develop a solution, and contribute a Pull Request yourself?


Unique visitor count too high, parse problem?

Hi,
I'm using the latest build from goaccess and haproxy.
Haproxy log settings:
http-request capture req.hdr(Referer) len 500
http-request set-var(txn.my_var) req.fhdr(User-Agent)
log-format "%si:%sp %ci %t \"%r\" %ST %B %{+Q}[capture.req.hdr(0)] %{+Q}[var(txn.my_var)] %Tr"

My accesslog example:
Jul 20 02:49:46 localhost haproxy[4531]: x.x.x.x:5040 y.y.y.y 20/Jul/2024:02:49:46.785 "GET https://a.b.c/news/by-random?timeRange=3&limit=8 HTTP/2.0" 200 4679 "https://d.e/" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Mobile Safari/537.36" 2
And here is the goaccess cmdline:
zcat /var/log/haproxy.log-* | ./goaccess /var/log/haproxy.log --log-format='%^ %^ %^ %^ %^ %^ %h %d:%t.%^ "%r" %s %b "%R" "%u" %T' --date-format=%d/%b/%Y --time-format='%H:%M:%S' -o /a/b/c/accesslog.html --real-time-html --port 7891 --ws-url=wss://a.b.c:7890
We also using plausible, and plausible reports 10k unique visitor while goaccess reports 30k. How goaccess actually count unique visitor? Maybe I use the wrong format for time?

This format should do the job:
# goaccess access.log --log-format='%^]: %h:%^ %^ %d:%t.%^ "%r" %s %b "%R" "%u" %T' --date-format=%d/%b/%Y --time-format=%T

For more information on how goaccess manages data and its distinctions from other statistical tools, please refer to this post, #789, and also this one.
Adding to those posts, now with AI-powered detection and privacy blockers becoming more prevalent, even counting visitors through JavaScript is proving to be increasingly challenging. So, I still believe that accuracy relies on the logs, even though we can't always tell if it's a bot or a human for sure.
Let me know if this clarifies things for you.

thank you very much!


cordova request was denied for security

Mr. Khan
I deploy the RTCMultiConnection project on my server referring to your install guide , and I have got my SSL certification and replace the old certification, video conference work well on browser now but android app can't work ,it display request was denied for security .help!

close issue，thanks！

how did you solved it?

Here is a demo file:

http://webrtcweb.com/cordova-apps/video-conferencing/www/js/index.js

Here is config.xml:
view-source:http://webrtcweb.com/cordova-apps/video-conferencing/config.xml

It is using cordova-plugin-android-permissions to request camera/mic permissions on demand. It will solve all such issues.
index.js demo file has checkAndroidPermissions method.  This method request for permissions if camera isn't allowed yet.


[Feat] RP Authz Request request object as signed JWT

I get authz request to work, and that's the initialization url
http://localhost:8001/oidc/spid/begin?provider=http://<IP_ADDRESS>:8000/oidc/op
@dezhizhang1985 that's what the SPID/CIE button MUST trigger
anyway the kind of auth request not use the request object.

this is the commit that enabled this issue
https://github.com/peppelinux/spid-cie-oidc-django/commit/a033884f621d3331ff1583227e36c4db9fea47ab

Done here
https://github.com/peppelinux/spid-cie-oidc-django/commit/1c5c678dc56b662f38bbcfd09dd8e44099772dfd
@dezhizhang1985


Multiple Images

Hello @cotton123236 , thanks for your library. What do we do if we have several images? Because the wrapper is for a single image and not several. Thanks Nicolas

Hello @cotton123236 , Ok I succeeded with an each function. Sorry for this :)


Audit Carbon design kit

As a DDS designer, I need to know what updates have been made to the Carbon design kit, so I can align the Expressive kits to the Carbon kit and prioritize updates.
Acceptance criteria

[ ] list of updates that need to be made
[ ] Olivia will provide a proposed strategy to make updates

skeleton states

new color swatch applied (replace hover-ui)

$ui-05 new swatch update to icons throughout

checkboxes

States

status icons use black or white fill for accessibility (not inverse or icon-01)

Data table
column headers

data table / cell / 32 short / column header / selectable + expandable
3 sortable variants

default cells

2 new states

selected
selected-hover

icon cells

3 new states

hover
selected
disabled

selectable

state name change

01 unselected
05 selected
06 selected - hover
07 selected - disabled
08 selected - row item

selectable + expandable

1 new states


RED4ext not working with patch 2.2

Been getting this error message whenever I try to start the game. Everything was working fine until update 2.2 dropped.
I've downloaded the latest version of RED4ext and still getting the same error. I've verified the game files and did a clean uninstall and reinstall of RED4ext but am still met with the same error code.
Gonna try uninstalling the game and reinstalling to see if that works but wondering if anyone knows what the problem could be.

This is not a RED4ext error. It just catches the error from the game and shows it to the user to prevent unknown issues.
You can try removing the final.redscript file and verifying the game integrity.


[cinder-csi-plugin] Add availability zone topology awareness for ephemeral storage

cinder-csi-plugin

What this PR does / why we need it:
Add availability zone support for ephemeral storage.
Which issue this PR fixes(if applicable):
fixes #1018
Special notes for reviewers:

Release note:
[cinder-csi-plugin] Add availability zone topology awareness for ephemeral storage

/assign @ramineni

/ok-to-test

should we add some release notes/doc update accordingly?

@jichenjc release notes are defined in the first message. you're not the first person asking me for release notes, when they are in place. do I miss something? or do I write them wrong?

you are right, I think I missed that part for unknown reason ,(maybe it's my Friday...)
sorry for inconvenience

@jichenjc no problem, thanks for clarifying :)

/lgtm

/approve


fix #693 [UITableViewExtensions] : Crash in iOS 13.0 (XCode 11.0) due…

… to returning wrong last section (0) even for the empty tableView

Checklist

[x] I checked the Contributing Guidelines before creating this request.
[x] New extensions are written in Swift 5.0.
[x] New extensions support iOS 8.0+ / tvOS 9.0+ / macOS 10.10+ / watchOS 2.0+, or use @available if not.
[x] I have added tests for new extensions, and they passed.
[x] All extensions have a clear comments explaining their functionality, all parameters and return type in English.
[x] All extensions are declared as public.
[ ] I have added a changelog entry describing my changes.

          4 Messages

:book:
Thank you for submitting a pull request to SwifterSwift. The team will review your submission as soon as possible.

:book:
iOS: Executed 578 tests, with 0 failures (0 unexpected) in 11.244 (13.342) seconds

:book:
tvOS: Executed 553 tests, with 0 failures (0 unexpected) in 2.038 (2.569) seconds

:book:
macOS: Executed 418 tests, with 0 failures (0 unexpected) in 0.960 (1.290) seconds

  Generated by :no_entry_sign: Danger

Thank you for contributing to SwifterSwift! I've invited you to join the SwifterSwift GitHub organization - no pressure to accept! If you'd like more information on what that means, check out our contributing guidelines. Feel free to reach out if you have any questions! 😃


Full Height Columns

Hello,
First of all thanks for the this awesome project.
I'm using code like that, i just want to make the this two column full height.
I'm new at grid systems i don't know how its done.
My Code:

    left_menu

    content

Thanks

in 1.x you can use equal height in 2.0 it is default.

Thanks @jlukic! It's elegant solution if you want to make columns equal size.
If you need full height column instead - you could either try stretched class or set min-height to 100%.
.ui.grid {
	min-height: 100%;
}


Can you add notes or example about how to retrieve data from the app "manifest"?

I'm not sure if this is a product or documentation issue but if the issue is confirmed I think they could both be improved.
I recently created a new service principal and wanted to get the application ids and object ids.
If I use the Azure cli, and use commands similar to show on the page, I would do something like this:
az ad sp show --id bf360302-7aa5-48fc-82af-859abdf922c1 --query "{appId:appId, id:id}"

Which returns
{
  "appId": "bf360302-7aa5-48fc-82af-859abdf922c1",
  "id": "11265b2a-86b0-455f-ae4e-2636e2016d70"
}

I thought the "id" here WAS the Object ID.
However, if I view that SAME service principal in Azure Portal, it shows the "Object ID" as a different GUID!!
I then removed the --query and returned the entire object and don't see the GUID from portal anywhere using the az cli result and am wondering where the Portal is getting this information.
If I view the "Manifest" in the Portal, I can see the "id" property is the "Object ID" guid.
This would imply to me that the application manifest object is different than the azure resource object.

Can you confirm the issue with az cli sp show command returning a different ID than the object id?
If it is different can you add a warning to the documentation page saying why
Can you add example showing how to return the application manifest for a service principal using the az cli so that I could retrieve the object id?

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

ID: e99d25ff-03e2-e015-37f4-a29b59ec50d4
Version Independent ID: 1a8e88ed-72c7-fbe7-b0ad-68f23b3946cd
Content: az ad sp
Content Source: latest/docs-ref-autogen/ad/sp.yml
Service: active-directory
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

@jiasli for awareness