Event/screen coordinates -> internal coordinates

I'd like to suggest that every node object (in particular root SVG objects) have a method for converting given screen coordinates to the coordinate system of the node.  Currently this can be done with the following code:

function transformPoint(screenX, screenY) {
  var p = this.node.createSVGPoint()
  p.x = screenX
  p.y = screenY
  return p.matrixTransform(this.node.getScreenCTM().inverse())
}

In addition/instead, it'd be really helpful for all click, mousedown, on, etc. events to have this built-in to the event.  Whenever the event has clientX and clientY defined, it could be transformed as above and added to the event as transformX and transformY (or svgX and svgY, or similar).  These would be localized to the node object that the event was attached to.

This type of code is already in the extensions svg.draw.js and svg.resize.js, and it seems useful whenever interacting with SVG via the mouse, so it seems natural to add to the base.  But feel free to reinterpret how you think is best!

I will consider to implement point 1. That seems to be a nice to have feature.
Point 2 is not rly possible to implement. svg.js cant change the data an event is giving to you.
And we cant replace every binding from an event with some custom event to add these data only to fire this event then on the element. At least that does not souns clean.

Oh, I assumed that you could add additional attributes to the event object before passing it in the callback.  You're saying that event objects read-only?

Here's an example of what I imagined for Point 2.  Feel free to still disagree / think this is too "hacky".  But it is possible to attach extra attributes to the event before calling the callback.  This is just for callbacks set via the .click, .mousedown, etc. methods (not all events), which is what I meant originally but didn't say very clearly -- sorry for any confusion!
svg.js.patch.txt

Thats how it could be done indeed. But as you said this is really hacky. Furthermore we try not to alter native Objects (like the Event Object) by adding properties to it.
Imo the implementaton of Point 1 is enough anyway. You then can calculate your coords on your own as you like.

Sounds good!

Giving my 2c here, due to #437.
I initially thought @edemaine 's 2. to be hackish, as well, but is it? I also thought that it would cause unneeded conversions when no-one's really checking those events. But... if the user does interaction, some code will eventually run the matrix translation code. Therefore, it might just as well be done ready and carried in the event. I might like that.
My own asking - in #437 - is simply that the SVG.Matrix of svg.js would be able to do transforms. Currently, it is not. This causes me to need to use the native SVG point creation as well, and it all smells a bit fishy. I like code to be able to stay at one abstraction level.
@edemaine If you are working with UI events and svg.js, you might want to have a look at the svg.rx.js I've been doing. It uses the Reactive Streams abstraction for any user interface events, thus changing the way SVG applications can be structured, quite a bit. Would like to hear your comments.

Any ideas on how to name such a function?

screenPointToElement
screenPointToUserSpace
SOTUS (i know the O has to be a P but hey...)
pointToElement
pointToUserSpace

The name with the best description would be screenPointToUserSpace but nobody likes such long names.
I am not even sure if UserSpace is entirely correct here because of you transform the point into an svg-element with viewport set, it would be wrong because ctm() gets the current transformation matrix which is not affected from Viewport.
So maybe screenPointToElement would be better?
Anyone has a genius idea?

I don't really see the need for a specialized function that important. With it, comes the need for documenting, need for learning, (need for naming, eh!) etc. etc. If SVG.Matrix can .transform a pair of coordinates to another, we can do without the .node reference. My pain point simply is the need to dive deeper than svg.js to do an essential operation.
So @edemaine 's sample would be:
function transformPoint(screenX, screenY) {
  return this.screenCTM().inverse().apply( screenX, screenY );
}

The .apply could also be called .transform. It would take either two integers (as above) or [Int,Int], as do other uses of points (e.g. line.plot). It would return [Int,Int].

The SVG.Matrix class is written for element transforms in the first place. It delivers methods to scale, rotate and so on.
Adding an apply method which handles points would destroy this seperation and lead to confusion.
The code I wrote for the SVG.Point would lead to this:
function transformPoint(screenX,screenY) {
  return new SVG.Point(screenX, screenY).transform(this.screenCTM().inverse());
}

I think its still managable.
However I just found a simple version of point 1 of the first post which would be this:
SVG.extend(SVG.Element, {
  // Transform a point to userspace
  point: function(x, y) {
    return new SVG.Point(x,y).transform(this.screenCTM().inverse());
  }
})

This would turn the transformPoint function to this:
function transformPoint(screenX, screenY) {
  return this.point(screenX, screenY)
}

Your thoughts?

Nice. See #437 that I closed for my comments.

would be cool if anyone could test that for his needs :)


BottomNavigationBar selected item color doesn't change in dark mode

Steps to Reproduce
1 - Create a basic Flutter app with a BottomNavigationBar included.
2 - Add dark mode support and define primarySwatch as well:
return MaterialApp(
      title: Strings.AppName,
      theme: ThemeData(
        brightness: Brightness.light,
        primarySwatch: Colors.deepPurple,
      ),
      darkTheme: ThemeData(
        brightness: Brightness.dark,
        primarySwatch: Colors.red,
      ),
      themeMode: ThemeMode.system,
      home: MyHomePage(),
    );

3 - Run the app
Expected results:
The selected item color in dark mode should be as stated in the primarySwatch: Colors.red.
Actual results:
The selected item color in dark mode keeps default value. (teal).
Dark mode:

Light mode (works as expected):

This one solves the issue. Thank you very much.
You can also mark it as closed.


Any update of ChromiumAR?

The current version is really unstable and low FPS, my test threejs scene is only around 5~15 fps and always crashes no problem on chrome(seems like memory leak issue).
Really need a stable and usable ChromiumAR.
Working on tango development tablet.

i run on lenovo phab2 pro, and i experience frequent application crashes. (when picking or changing phone orientation)

Some of these problems are related to using the WebView flavor of Chromium. We have been working on some improvements but still there are some things that cannot overcome. Hopefully we will get some help from seasoned Chromium developers soon to be able to implement AR in a full featured Chromium build so stay tuned. In the meantime, I would recommend to kill the app frequently (I know, not ideal). We have been able to build some complex prototypes we will be announcing soon but admit that this is still highly experimental.


fix: Forbid MathML namespace in shaka.util.XmlUtils

This PR fixes #4912 by adding MathML to the list of forbidden namespaces.

It seems MathMLElement is undeclared in and closure compiler fails. I need to redo this part.

Oh yeah, you might need to write an extern for that. See, for example, externs/chromecast.js. Since we only need to know that the type exists, it should be simple.

@tosmolka, this is causing test failures overnight and will be reverted.  See https://github.com/shaka-project/shaka-player/actions/runs/3995042189/jobs/6854374446 for details.
Examples:

DashParser ContentProtection
✗ handles clear content [Chrome <IP_ADDRESS> (Linux x86_64)]
Shaka Error MANIFEST.DASH_INVALID_XML (http://example.com/)

VttTextParser
ReferenceError: MathMLElement is not defined
at Function.parseXmlString (lib/util/xml_utils.js:397:34 <- lib/util/xml_utils.js:4082:135)
at Function.parseCueStyles (lib/text/vtt_text_parser.js:419:41 <- lib/text/vtt_text_parser.js:10560:69)
at Function.parseCue_ (lib/text/vtt_text_parser.js:382:19 <- lib/text/vtt_text_parser.js:10493:21)
at _class.parseMedia (lib/text/vtt_text_parser.js:137:33 <- lib/text/vtt_text_parser.js:10038:62)
at verifyHelper (test/text/vtt_text_parser_unit.js:1211:27 <- test/text/vtt_text_parser_unit.js:1100:25)
at UserContext. (test/text/vtt_text_parser_unit.js:223:5 <- test/text/vtt_text_parser_unit.js:248:5)

@joeyparrish, understood. Any advice how to fix the issue?

It seems that MathMLElement is not defined in all contexts.  I don't know how to resolve that off-hand, but I also didn't understand why you needed to make this change at all.
Is there an actual threat to the player?  As I mentioned, we never take the output of XML parsing and append it to the DOM, so the example you gave where an alert is generated is completely unrealistic.  We never parse HTML, only TTML and DASH.  The nodes parsed are only ever read programatically.  The only reason we have the check for HTML elements is to satisfy some static analysis used internally at Google that doesn't understand the context.

@joeyparrish , this gap was identified during security review of shaka-player#xml Trusted Types policy before allowing it in Microsoft product. I also don't think it's exploitable at the moment in the player.
The reasoning is similar to the example mentioned in spec. We want the policy to be self-contained and robust enough so that we don't have to make assumptions about how it's used in the player today or in the future.
Esp. since it's such a minor change I would prefer trying again.

A security team is tasked with assuring that the client-side heavy application code does not contain XSS vulnerabilities.
Since the server side code is homogeneous (it’s mostly an API backend), and the application enforces Trusted Types,
the review only focuses on the Trusted Type policies and their rules.
Later on the reviewed policy names are allowed in the 'trusted-types' CSP directive, safe for the developers to use.
Any additional code, including the code of often-changing dependencies, can be excluded from the review,
unless it creates a Trusted Type policy. Without it, the code cannot cause a DOM XSS.

OK.  Please feel free to try again, then.  @avelad, @theodab, any future PR for MathML needs to be run with the Selenium Lab workflow to confirm before merging.


Network Monitor

Like the DNS log screen, there needs to be an indicator of how many apps are blocked, connections blocked, and so on in the main configure firewall screen. Also, may be, arrange the list to keep blocked apps at the top, and the rest at the bottom (See: Glasswire)?
#42

For a list of UIDs that may make requests but not have a package name, see: android_filesystem_config.h.
android.uid.system does have a package-name, though, which is android.

Introduced network monitor screen which will provide the details on the app, timestamp, IP, port, type of connection, and flag. Blocked connections are highlighted with an indicator.
Need to introduce some stats like per app connections blocked, filtering based on IP.

Need to introduce some stats like per app connections blocked, filtering based on IP.

#42


composer card import - Cannot find module node-v57-linux-x64

While running this command
 composer card import -f admin.card
I am running into this problem

-Cannot find module '/usr/local/lib/node_modules/composer-cli/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64/grpc_node.node

I was assuming that the problem is on GRPC level, therefore found that composer v0.16.6 needs:
"grpc": ">=1.3.5 <1.7.0",
But I do not understand composer, they seem to have different versions?
$npm view composer-cli version
0.19.4
$composer --version
v0.16.6
Aren't composer and composer-cli the same thing and both npm packages? Why do they have different version numbers?

Probably because you have one installed globally and one that is not.

Please uninstall composer-cli and re-install required version.
npm install -g<EMAIL_ADDRESS>check versions:
composer -v and npm version match

Closing due to inactivity. Feel free to reopen the issue if you are still seeing this issue


Error updating Navigation

Getting this error on both 1.4.0 and 1.5.0 beta
× Updating navigation
→ Error: 'https://tenant.sharepoint.com/sites/DocsTest' is not a valid SharePoint Online site URL
ERROR:  Command failed: localm365 spo navigation node list --webUrl 'https://tenant.sharepoint.com/sites/DocsTest' --location TopNavigationBar -o json
Error: 'https://inspectplus.sharepoint.com/sites/DocsTest' is not a valid SharePoint Online site URL

If I run the same command directly in the console, ie localm365 spo navigation node list --webUrl 'https://tenant.sharepoint.com/sites/DocsTest' --location TopNavigationBar -o json
It works fine... and I get the json response

What version do you have locally installed @P3N-101?

Seems that this error is only returned in the CLI for Microsoft 365 on the SPO Command argument validation. The only thing I can think of is a difference in a local version.

Seems I found the issue. There was a single quote used in the URL and this causes issues on Windows. Released a new beta version. Feel free to give it a try.

localm365 --version v3.6.0-beta.3066a8
m365 --version v3.5.0
It seems to be the Menu element of the Doctor.json file that causes the error, without that section it runs without error but still doesnt update the navigation.
I was testing with a comms site thinking the TopNavigationBar was the correct element, nope it returns nothing but QuickLaunch does return so changed it to QuickLaunch but still the same error

Just ran the new beta this is now fixed awesome thanks... I have another one to raise though


Npm registration is corrupt?

At the time of writing, npm should list v0.35.1 as latest version. However, on https://www.npmjs.com/package/electron-prebuilt, it lists 0.34.4 as latest release.

For some reason, npm i -D electron-prebuilt works just dandy, it installs v0.35.1 and saved the proper tag in my package.json.
But running npm info electron-prebuilt returns nothing at all. This causes problems for other modules like npm-check-updates...

Yes this happens when Electron publishes new versions of old releases. I tried to solve it once before but apparently that doesn't work. If anyone is has ideas for what to try next I'm all :ear:s

This is an issue with npm's website. The ideal thing would be for npm to provide a way to view a list of all versions on the site, but alas no such feature exists. Also their website is not open source any more, so you can't submit a PR to improve the state of things. The best you can do is open an issue at https://github.com/npm/www/issues
In the meantime, you can always see a full list of versions for any package with this command:
npm show electron-prebuilt versions


Failed to train the APNet

Following the default procedure and parameter settings, I cannot train the APNet successfully.  For different latents input, the network always produces the same result, e.g. mean face.

I tried to print the output of each layer (as shown below). It seems the network has already collapsed.

@lubovbyc It seems the optimization collapsed. I'm not sure. Have you tried other losses, such as the PDC loss, VDC loss ? You may combine all losses or try another optimizer. If still bugging you, please share your generated data with me, I will try it on my server.

@lubovbyc Thanks for your sharing. I will check it immediately after the Sig Asia submission. Thanks for your patience.

@lubovbyc Hi.  I have tried to alleviate this. You can add more MLP layers for the APNet and use the PDC loss to improve robustness.

@cassiePython Thanks for your reply! I will take a shot and check if working.

@lubovbyc Hi. I have tried to alleviate this. You can add more MLP layers for the APNet and use the PDC loss to improve robustness.
Can you provide the details of change to avoid the collapse. I also get the mean face according to the default code.

@cassiePython Thanks for your reply! I will take a shot and check if working.

Do you get the correct results of APNet by the advice of author?  I meet the trouble same as you

I also struggle in finding the good results of APNet. Should I use the renderer, landmark loss as well?

@lubovbyc I am still confused with the problem. I did not find problem on my dataset. I attached the dataset with 4K images and the corresponding checkpoint. Please check whether it works on your device: https://portland-my.sharepoint.com/:u:/g/personal/cwang355-c_my_cityu_edu_hk/EWMWjP8DHtpEqvhLtZTyfr0BerKDVixlbx8zApUS3QTngA?e=GXsNKw.

I also struggle in finding the good results of APNet. Should I use the renderer, landmark loss as well?

Before using the pseudo gt to train the APNet, I have tried the combination of the rendered loss and the landmark loss. Unfortunately, I fail to train the APNet.
But I have not tried the WPDC loss plus the rendered loss and the landmark loss.

@lubovbyc I am still confused with the problem. I did not find this problem on my dataset. I attached the dataset with 4K images and the corresponding checkpoint. Please check whether it works on your device: https://portland-my.sharepoint.com/:u:/g/personal/cwang355-c_my_cityu_edu_hk/EWMWjP8DHtpEqvhLtZTyfr0BerKDVixlbx8zApUS3QTngA?e=GXsNKw.
Besides, first, please try adding the PDC loss.

Using the model and data provided by you, I still get the same face for different latent code. However, there is a change that the render face is not the mean face using your model.

@roundchuan
Can you get results like this:

@roundchuan Can you get results like this:

No, Just like this

@roundchuan Can you get results like this:

@roundchuan Can you get results like this:

No , all the render faces are the same. And I print the "param_lst" the output of APNet are all the same.

I also struggle in finding the good results of APNet. Should I use the renderer, landmark loss as well?

Before using the pseudo gt to train the APNet, I have tried the combination of the rendered loss and the landmark loss. Unfortunately, I fail to train the APNet.
But I have not tried the WPDC loss plus the rendered loss and the landmark loss.

The results are just like this follow your data and checkpoints.

@lubovbyc I am still confused with the problem. I did not find this problem on my dataset. I attached the dataset with 4K images and the corresponding checkpoint. Please check whether it works on your device: https://portland-my.sharepoint.com/:u:/g/personal/cwang355-c_my_cityu_edu_hk/EWMWjP8DHtpEqvhLtZTyfr0BerKDVixlbx8zApUS3QTngA?e=GXsNKw.
Besides, first, please try adding the PDC loss.

Using the model and data provided by you, I still get the same face for different latent code. However, there is a change that the render face is not the mean face using your model.

Thanks for your kind reply. can you attach constants.pkl as well? It seems that the file is omitted

TO ALL: Recently, I generate more datasets with different sizes (e.g. 4K, 6K, 1W, 2W), and find a local minimum (e.g. the mean face) will appear during training the APNet all the time on some datasets. Before fixing this issue, you can use my pre-trained model first: https://drive.google.com/drive/folders/1qNvRu8vLPD278FW7GS-I9p6-yxYhKZY9


Pre-defined proxy in code?

https://github.com/seanmiddleditch/gha-setup-ninja/blob/master/index.js#L10
This code shows an IP for a proxy... it seems unused right?

I should have commented what that was from. It shows up in some old GitHub docs, so it might have been the internal proxy Actions required at the time I wrote it?

Removed now thanks to #27


How to help with pydm

Hi! I would like to help develop pydm but am not sure how to. Where could I start?
I searched for pydm inside the docs and did not find results. I saw this in the UI for the docs after searching for pydm: No matching documents.

As noted on discord:
I've been pushing code to here to get bootstrapped with basic features. Will be stopping in the next day or so and working on tests and landing: https://github.com/google/iree/pull/7301
I've been pushing e2e tests to this branch: https://github.com/google/iree-samples/tree/laurenzo_pydm/pydm/simple
I haven't figured out a good place to put them yet since they span some project components.
These things are always hard to get started because you need to connect a certain minimum amount of things before you have much of anything. I'm trying to get to that minimal point.
It's not documented because this is highly experimental. I have high hopes for it, but that is what they are right now.
Once I land the above patch (probably next week - I need to write a lot of tests), it may be possible to carve out some areas to work on, but this is all very young with quite a few design decisions either just in my notebook or needing to be worked out.
What level of effort are you willing to put in? And what parts do you think would be good to contribute to?

When you say you've been pushing code here to get bootstrapped with basic features, what are those basic features?
What is the purpose of the end to end (I assume that is what e2e stands for) tests?
I'm willing to spend 30-60 minutes working on this each day for the next two months. I'm not sure what to contribute to, because I'm not sure what the the state of the project is.

Continuing from discord (deduping conversationg):
The near term goal is end-to-end compilation and execution of simple but semantically meaningful Python programs. This is a bit squishy, but roughly I'm moving the AST-typeinference-runtimelibrary-lowering snowball down the hill piece by piece by focusing on types and concepts that are at the foundation of the language or are tricky and need precise modeling early: functions, numerics, lists, iterators, control flow, variables, assignment, etc. The desire is to have a framework which will compile really nice code in the presence of types and not excessive use of dynamic features but will degrade to full featured dynamic-mode Python.
This is primarily different from Cython, for example, because a) It does not presume the presence of the CPython runtime library, b) it is build as a toolkit in MLIR, and c) we are focused on extracting parts of the program for ahead of time compilation and distribution as part of other systems. We've got a number of things that we want to use it for which would benefit from a domain specific Python compiler toolkit.
The PYDM dialect is a modeling of the Python AST in that it is designed to be a trivial transformation from the AST while composing well with what comes below (type inference, lower level types, lowerings, etc). The importer.py bridges the gap between Python AST and PYDM dialect. In my experience, this layer has to be codesigned correctly with the needs of the rest of the system and not just be a completely generic modeling of the AST. This influences everything about the dialect design from the types (i.e. boxing is central to PYDM but does not exist at the AST level), exception handling methodology (i.e. the way we model exception_result makes it unnecessary to have non-local jumps, which is a desirable feature further down), variable management (how you model free and cell variables is really tricky if you want it to compose), and the specific ops being formulated to work at the right granularity and interop with type inference.
When the above referenced PR lands, PYDM will be able to run simple numeric/loopy/list-y programs like fibonacci generators. My plan is to grow that from there, proceeding down the axis of core concepts that need to be designed early (next up is probably iterator and for..in modeling). When possible, I leave off things that are pure elaboration (i.e. supporting every type of arithmetic over every type in the numeric hierarchy or every method of list) until a later phase, because at this phase, design decisions can still shift, causing a lot of things to need to be invalidated. The big items that I have sketched in my notebook but am still working through are the correct modeling for first class functions, non local state in general, and function calls. These are quite tricky and the cost of getting them wrong is high.
I am spending about 1/3 of my time on this project, and I expect to be able to get most of the big design decision-impacting features nailed down this year. This is a hard time to scale a project to new people unless if they are in sync technically and commitment level. While I'd love to accept the help, it is a hard time to shard the work into easy, incremental pieces unless if the person has done this kind of dynamic language implementation before.
I don't mean to pry, but it sounds like you have an education/curriculum component to what you are wanting to do? If that is the case, I suspect you are looking for a concrete thing you can show in the next couple of months? There may be such a scoped unit here (i.e. with what is there now, you have everything you need to compile fibonacci programs to web-assembly, for example) but I'm focused on a bit longer/holistic time horizon and need to stay so. If you wanted to take some of this and use it/adapt it for simple things in the near term, that might be doable.

We've got a number of things that we want to use it for which would benefit from a domain specific Python compiler toolkit.

What are those things?

I suspect you are looking for a concrete thing you can show in the next couple of months?

That would be helpful. I would like to actually contribute instead of just compiling an existing program to WebAssembly.

This is a hard time to scale a project to new people unless if they are in sync technically and commitment level.

I think I am more committed than I am technically qualified. Do you recommend anything I can read to be more helpful? I thought this was useful but I think I need to learn more.

PyDM has been deprioritized/deleted, so closing for now as no active work there.


Optimize products stock availability filter

I want to merge this change because optimizing products stock availability filter

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-5133 Slow stockAvailability filter in RT


Access applied changes in Plandex Cloud

Hi sir,
Thank you for sharing this amazing programming engine in the AI community! I gave it a try yesterday to ask it to generate a new code snippet based on the given instructions. However, after I committed the changes, I did not see anywhere to access the newly generated code. Am I expected to access it on Plandex Cloud, and if so, how can I access it through the terminal?

Hi @danenania, thank you so much for your guidance. I might have accidentally run plandex rewind so the changes are canceled. I now see the newly generated files.

@jzy95310 Great!
One thing you could try in the future to avoid losing anything is to checkout a new branch first before rewinding with plandex checkout. Then you can rewind in the new branch, but still keep everything you've done in the main branch in case you want to go back to it.
I'm also interested in adding a feature like git reflog at some point that would allow undoing a rewind and returning to any previous state.
Btw I'm curious if you have any feedback so far?

@danenania I think the plandex should be pretty useful for managing code snippets and files efficiently in batches. However, I have not had a chance to run more comprehensive tests. Thanks for your contribution to developing this amazing programming engine!


Option to pass a function instead to tasks

Problem
People don't seem to like the watch event. I admit it is a bit cumbersome as the one event that handles all watch targets and is separate from where the watch is configured. It also currently doesn't work well with spawning task runs and with the use case of modifying the config, it doesn't work at all.
Idea
Have tasks accept a function instead:
jshint: {
  all: ['lib/*.js'],
},
watch: {
  target: {
    files: ['lib/*.js'],
    tasks: function(changedFiles) {
      grunt.config('jshint.all', changedFiles);
      grunt.task.run('jshint');
    },
  },
},

Or if you want to spawn:
jshint: {
  all: grunt.option('files') || ['lib/*.js'],
},
watch: {
  target: {
    files: ['lib/*.js'],
    tasks: function(changedFiles) {
      grunt.util.spawn({
        grunt: true,
        args: ['jshint', '--files', changedFiles.join(',')],
      }, function() { });
    },
  },
},

Or if you have some really crazy use case; there won't be a need to request it implemented here as users can package it into their own module:
watch: {
  target: {
    files: ['lib/*.js'],
    tasks: require('my-crazy-task-runner'),
  },
},

This would close #151, #149, #82 and probably a few more.

I have script which should be executed for each added or changed file.
I have 3 theoretical possibilities:

execute script for every changed file from grunt watcher. Full path of each changed/added file should be provided

Build CLI parameters with all changed files and execute script once with this parameters

Do not use grunt and grunt-contib-watch. Your script should implement you own watcher. This is not Unix-way-style (my script should do 2 jobs: watching files in directory and handle this files), but due on  some grunt-contib-watch  restrictions it is not possible to implement feature in 2 previous  ways.

What is the best option with current grunt-contrib-watch plugin possibilities.
I need to provide
Is there still possible to access from  changedFiles

I want to use Grunt Behat Parallel option, but I don't want it to write it in initConfig to execute it default. I am totally new to Grunt, can somebody please help.
here is example which I dont want to use in initConfig
grunt.initConfig({
behat: {
example: {
options: {
output: false,
failOnUndefined: false,
failOnFailed: false
},
cmd: './bin/behat',
features: 'features/',
flags: '-f pretty'
},
example2: {
features: 'features/',
}
}
});


Maximum Difference

From all the positive integers entered in a list, the aim of the program is to subtract any two integers such that the result/output is the maximum possible difference.
Language to be used: Python

/assign


feishu: Add version 5.31.6

Closes #10570

[X] I have read the Contributing Guide.

/verify

IMO it‘s more appropriate to add feishu to the Nonportable bucket since _"Runtime data are stored in %APPDATA%\\LarkShell, and are not persisted by Scoop.".


Adds check-rabbitmq-queues-synchronised.rb

Pull Request Checklist
General

[x] Update Changelog following the conventions laid out on Keep A Changelog

[x] Update README with any necessary configuration snippets

[ ] Binstubs are created if needed

[x] RuboCop passes

[x] Existing tests pass

New Plugins

[x] Tests

[x] Add the plugin to the README

[x] Does it have a complete header as outlined here

Purpose
This check will verify that all mirrored queues are synchronised.
Examples

$ bin/check-rabbitmq-queues-synchronised.rb -h rabbitmq.service.consul --username guest --password guest
CheckRabbitMQQueuesSynchronised OK

# With an unsynchronised queue
$ bin/check-rabbitmq-queues-synchronised.rb -h rabbitmq.service.consul --username guest --password guest
CheckRabbitMQQueuesSynchronised CRITICAL: 1 unsynchronised queues

$ bin/check-rabbitmq-queues-synchronised.rb -h rabbitmq.service.consul --username guest --password guest --list-queues
CheckRabbitMQQueuesSynchronised CRITICAL: test_queue: 1 unsynchronised slave(s)

Thanks for your contribution to Sensu plugins! Without people like you submitting PRs we couldn't run the project. I will review it shortly.

@majormoses I added unit tests for this check (and by the way learned how to make tests in ruby :))
and some examples in this PR.

I will get to this hopefully tonight.

@majormoses Updated with your comments taken in account.

released: https://rubygems.org/gems/sensu-plugins-rabbitmq/versions/3.6.0


detect force push failure on deletion of protected branches

Gitea version (or commit ref): 26e49b8
Git version: 2.7.4
Operating system: Windows 10
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] Yes (provide example URL) https://try.gitea.io/dschneiderbauer/awsiotgg (trying to delete develop branch)
[ ] No
[ ] Not relevant

Log gist:

Username for 'https://try.gitea.io': dschneiderbauer
Password for<EMAIL_ADDRESS>remote: Gitea: Internal error
remote: Fail to detect force push: exit status 128 - fatal: bad object<PHONE_NUMBER>000000000000000000000000000000
remote:
To https://try.gitea.io/dschneiderbauer/awsiotgg.git
 ! [remote rejected] develop (pre-receive hook declined)
error: Fehler beim Versenden einiger Referenzen nach 'https://try.gitea.io/dschneiderbauer/awsiotgg.git'

Description
Trying to delete a protected branch leads to above error in console.

It seems this is solved?

@lunny No, I still receive the same error on try.gitea.io


use QTimer to update plugins

🦟 Bug fix
Summary
GuiRunner was creating a thread to call plugins' Update functions and accessing GUI items, which was not entirely thread safe since GUI operations should not be done off the Qt GUI thread. This has been replaced by using a QTimer to signal the UpdatePlugins function every 33 ms, which should now make all Update calls thread safe.
Checklist

[X] Signed all commits for DCO
[ ] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[X] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

I think the easiest way is to test this with a reliable crash is the jennuine/edit_material_colors branch that targets Dome. The following steps would then be:

ign gazebo -v 4 shapes.sdf
In the entity tree, expand the model > expand the link > click on the visual (for any of the shapes)
In the component inspector, expand the material element and start playing with the sliders

Without this PR, it will either crash on step (2) when you click on the visual or at some point in step (3)


Issue #SB-16483: UI implemetation for pause, resume, cancel and retry download

@souravdey091
Pending from next PR

Raise the event and update UI on download cancel
Cancel download should work seamlessly


Allow Language Server to work with .NET 5.0. Detect absence of .NET SDK 3.1 or greater and display error message

This PR mitigates issue #737 by using the latest MS Build Locator package (fix).
It picks some changes from the November QDK release fix #755 with:

Forcing the Working Directory of the LanguageServer to be the same as the LanguageServer is (in case we might need to add a global.json to select the .NET SDK version)
Not quitting the LanguageServer if there was an issue with the MSBuildLocator when .NET Core SDK 3.1 or greater is not found
Check if .NET Core SDK 3.1 or greater is not installed and display a message to the user with an option to download it (opens the download page) and asking the user to restart VS/Code.

Updating the language server to .NET 5 is blocked until the QDK build pipeline can be updated. I don't know when that will be, so I'll close this for now.


404 link in README.md

The link for Create GitHub Apps on your organization is not valid.

ugg, that's right, I have to replace :org


use the cc and inline-c crates to replace meson usage for tests

See https://wasmer.io/posts/novel-way-to-develop--test-and-document-c-libraries-from-rust for some examples of how to use inline-c.

I forgot to tell you about a couple of shortcomings when you want parametrized tests and inline-c, I opened https://github.com/Hywan/inline-c-rs/issues/19 to address it upstream.

Closing this because upstream hasn't made any movement and since the main purpose of the C library is to support language bindings, technically the C library is highly tested (in better languages to write tests in) by bindings that extensively cover it (currently python).
Also, the meson tests are being dropped for now as well because I see them as semi-pointless due to all the bindings tests that exercise the interface.
What I could see inline-c being used for in the future is doctests once cargo nextest supports running them as cargo test probably would break in various places due to running via threads instead of processes similar to pkgcraft.


Use blosum80 supplied with the nanocorrect

Currently the BLOSUM80 file is expected to be in the current working directory. However, when analysis is done from different directory it's missing and poa fails. The error is gobbled up by DEVNULL. Instead, workout a path of the nanocorrect.py file and use blosum80 file found in that directory.

I have added the check for a local blosum file, before fall back to the one in the repo.

Looks good, thanks for this.


Improve to find system/3rd package for add_requires/find_package.lua in package definition

We can improve the builin find_package script in add_requires to support to find more system/3rd package in other package managers.
Example (libusb)
for apt and some linux systems, it is libusb-1.0
But, we always use libusb as package name to find and use it:
add_requires("libusb")
target("test")
    set_kind("binary")
    add_files("src/*.c")
    add_packages("libusb")

for find_package, it always be libusb.
xmake l find_package libusb

Solution
package("libusb")
    -- pacman::xxx, brew::xxx ...
    add_extsources("pkg_config::libusb-1.0", "conan::libusb")

related issue: https://github.com/xmake-io/xmake/issues/1140

I added add_extsources() to add external package sources. https://github.com/xmake-io/xmake/pull/1248
        add_extsources("pkgconfig::libusb-1.0")

And I have improved xmake-repo/libusb to support it.
https://github.com/xmake-io/xmake-repo/blob/66f5ae98c44320a33275f2ac782effd5b87298f0/packages/l/libusb/xmake.lua#L25-L27

on_fetch has been supported.
package("libusb")
    on_fetch("linux", function(package, opt)
        if opt.system then
            return find_package("pkgconfig::libusb-1.0")
        end
    end)


Added Echo Time Calculator

Fixes Issue🛠
Closes #1521
Description👨💻
Added Echo Time Calculator that calulate the echo time in air, water as well as solid.
I added the background that matches the theme of website as well as calculator type.
I have also made it responsive for different screen size.
Type of Change📄

[ ] Bug fix (non-breaking change which fixes a bug)
[X] New feature (non-breaking change which adds functionality)
[ ] Style (non-breaking change which improves website style or formatting)
[ ] Documentation (non-breaking change which updates or adds documentation)
[ ] Responsiveness (non-breaking change which improves UI/UX on different screen sizes)

Checklist✅

[X] I am an Open Source contributor
[X] I have performed a self-review of my code
[X] My code follows the style guidelines of this project
[X] I have commented on my code, particularly in hard-to-understand areas

Screenshots/GIF📷
https://github.com/Rakesh9100/CalcDiverse/assets/168854094/48c797e7-dd74-432a-aae8-e9ce216b24dd

@Rakesh9100 Sir, please review this PR.
Thank You!

@Rakesh9100 @Nihal4777 Sir, please review this PR.
Thank You!

@Rakesh9100 This PR is reviewed and can be merged.


Rendering issue in Firefox

I'm pretty sure this used to work but I haven't been on the site in a while. I am getting this:

works for me in firefox nightly.

Tried again today:

Not as bad, just minor rendering issues with the subscript.

If I make the window really narrow at some point it scales down and looks better:


Documentation regarding renaming columns incorrect - enums

http://laravel.com/docs/4.2/schema#renaming-columns
As pointed out in #1186, the documentation says
Note: Renaming enum column types is not supported.

It should say:
Renaming any column on a table which contains an enum is not supported.

Please send a pull request.


[WIP] Update sodiumoxide from version 0.0.14 to 0.0.16.

This should fix this problem mentioned in Rocketchat: https://chat.hyperledger.org/channel/indy-sdk?msg=BkFvNq3zpyuHLqGBR
  = note: /usr/local/lib/../lib/libindy.so: undefined reference to 'crypto_stream_aes128ctr_xor'
          /usr/local/lib/../lib/libindy.so: undefined reference to 'crypto_stream_aes128ctr'

@peacekeeper Thanks for pointing to new sodiumoxide. It can't be merged as is as it requires to modify our packages and environment to use new libsodium binaries.

So it looks like the current problem here is that the CI/CD is using a version of libsodium that is too old to play nice with sodiumoxide 0.0.16. Would it be an acceptable workaround to build libsodium 1.0.16 on our ci dockerfile instead of installing libsodium 1.0.8 through apt?

We have binary packages for multiple platforms. Ubuntu 10.04 is still the most common linux distro and we need the simple way to install our packages here.

Somebody did the change in the meantime without using this PR.
https://github.com/hyperledger/indy-sdk/blob/master/libindy/Cargo.toml#L60
This can be closed, I think.

In scope of #696 sodium was incremented to .16v . To pass CI ubuntu now use custom build of system libsodium instead of sodium18 from xenial apt repo


Add a select field at the profile page to select the language

THe logic is all done. The column exists in the database and defaults to en.
With the i18n updates form @slashplusweb we have enough trnaslations to implement the field on the profile page.

Implement field
Extend FormRequest
Verify with a test

done


Add Maven Central status to readme badge

This may help users find the latest artifact in Maven Central.
This also renames the readme to markdown format so that the badge is rendered nicely on github.

Thanks!


Add option in configuration.

Add option in configuration for selecting custom database connection. Maybe someone want to change the database setting to another database connection like an SQLite or another MySQL database connection.

This is a good idea which definitely should've been implemented earlier. There are a bit too many issues with this PR, though, such as the netbeans files, the code style, and the usage of the static facade in the manager. I'll get the change in myself as it's a rather small one. Thanks for the heads up!


no raw.jsonl data

Hello, I'm amazed by your work. Have you released the data used for training the repoformer? I can't seem to find it.

Hi @gaotongxue12138 ,
Thank you for your interest. We are unable to release the data due to various internal constraints. However, the data creation pipeline is released here for reproduction.


Copy shortcut  turns on INSERT text mode

Issue Type: Bug
When editing files, the -- INSERT -- text mode keeps turning on. Seems like I can get it to trigger quite easily, but the most repeatable way is by pressing command+c to copy. I then press the insert key to turn off --INSERT-- mode, but another "copy" shortcut press and it's back on.
This doesn't happen when cutting text, or when copying using the context menu.
The copy shortcut only turns on the INSERT text editing mode, pressing it again won't toggle back to NORMAL mode.
VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:31:32.854Z)
OS version: Darwin x64 18.7.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
3, 3, 3

Memory (System)
16.00GB (0.49GB free)

Process Argv
-psn_0_1556860

Screen Reader
no

VM
0%

Extensions (10)

Extension
Author (truncated)
Version

vscode-svgviewer
css
2.0.0

gitlens
eam
9.9.3

beautify
Hoo
1.5.0

python
ms-
2019.9.34911

vscode-typescript-tslint-plugin
ms-
1.2.2

debugger-for-chrome
msj
4.11.7

vetur
oct
0.22.3

sonarlint-vscode
Son
1.10.0

code-spell-checker
str
1.7.18

vim
vsc
1.10.2

I have no idea how the vim extension was installed on my machine. I'm guessing that's what is causing this behavior.
Apologies, closing out the issue as it was resolved with a vim uninstall.


Controls:MetroWindow Question

Hi there is it possible to use a menu inside Controls:MetroWindow for a button so for example if user clicks Settings it will dropdown a menu like contextmenu strip?

Good @thoemmi sir, can you please specify the namespace of Infrastructure:ContextMenuOnLeftClickBehavior

ContextMenuOnLeftClickBehavior is not part of MahApps.Metro but written
in another project by mine. You can find the code here:
https://github.com/thoemmi/Solutionizer/blob/master/Solutionizer/Infrastructure/ContextMenuOnLeftClickBehavior.cs
Best regards
Thomas
On Tue, Aug 1, 2017 at 2:46 PM, Fandi Susanto<EMAIL_ADDRESS>wrote:

Good @thoemmi https://github.com/thoemmi sir, can you please specify
the namespace of Infrastructure:ContextMenuOnLeftClickBehavior
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MahApps/MahApps.Metro/issues/1633#issuecomment-319359736,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEf2vYgdhQ35TCMoGAMmXd7H8y7O1XDks5sTx4hgaJpZM4C2f7w
.


'Text' case of validate() function does not work.

Expected behavior: function should check to ensure that each character of the input is one of the allowed characters (i.e. only lower/uppercase letters, periods, commas)
Current behavior: algorithm incorrectly checks the input. New algorithm needs to be written.

see branch: [fix-text-validation] for bug fix


CPI panics when a manual network is the only defined network

Using the latest version of the CPI and attempting to bring up a new bosh director with bosh init. I'm using the manifest from the networking fork that I created in the spring for our work on furnace but I'm hitting problems right away.
With the following:
networks:
- name: default
  type: manual
  subnets:
  - range: <IP_ADDRESS>/28
    gateway: <IP_ADDRESS>
    cloud_properties:
      vlan_id: *vlan_id
...

jobs:
- name: bosh
  instances: 1
  resource_pool: vms
  persistent_disk_pool: disks
  networks:
  - name: default
    static_ips: *director_ips
    default:
    - dns
    - gateway

Things panic with no indication of the problem, only a stack from the panic:
[Main] 2016/10/12 14:51:18 ERROR - Panic: runtime error: invalid memory address or nil pointer dereference
********************
goroutine 1 [running]:
runtime/debug.Stack(0xc420018050, 0xc4203fa200, 0x40)
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/packages/golang_1.7.1/src/runtime/debug/stack.go:24 +0x79
github.com/cloudfoundry/bosh-utils/logger.(*logger).HandlePanic(0xc4200cadc0, 0x45cdb9, 0x4)
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/tmp/bosh-init-release234893063/extracted_packages/bosh_softlayer_cpi/src/github.com/cloudfoundry/bosh-softlayer-cpi/Godeps/_workspace/src/github.com/cloudfoundry/bosh-utils/logger/logger.go:146 +0x102
panic(0x3edb00, 0xc420018050)
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/packages/golang_1.7.1/src/runtime/panic.go:458 +0x243
github.com/cloudfoundry/bosh-softlayer-cpi/action.CreateVMAction.Run(0x641b80, 0xc4200cb100, 0x641a40, 0xc420013e60, 0x63fe40, 0xc42008e2d0, 0xc420094640, 0xc420130300, 0x24, 0x14b65b, ...)
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/tmp/bosh-init-release234893063/extracted_packages/bosh_softlayer_cpi/src/github.com/cloudfoundry/bosh-softlayer-cpi/action/create_vm.go:71 +0x8d6
github.com/cloudfoundry/bosh-softlayer-cpi/action.(*CreateVMAction).Run(0xc420014900, 0xc420130300, 0x24, 0x14b65b, 0xc4201345e0, 0xf, 0xc4201345b0, 0xd, 0x2, 0x1000, ...)
	<autogenerated>:13 +0x130
reflect.Value.call(0x42ee40, 0xc420014900, 0x293, 0x45cccd, 0x4, 0xc4201163c0, 0x6, 0x8, 0xc420134140, 0x3e3480, ...)
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/packages/golang_1.7.1/src/reflect/value.go:434 +0x5c8
reflect.Value.Call(0x42ee40, 0xc420014900, 0x293, 0xc4201163c0, 0x6, 0x8, 0x6, 0x8, 0x0)
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/packages/golang_1.7.1/src/reflect/value.go:302 +0xa4
github.com/cloudfoundry/bosh-softlayer-cpi/api/dispatcher.JSONCaller.Call(0x42ee40, 0xc420014900, 0xc420010420, 0x6, 0x6, 0xd, 0x100, 0x1cc, 0xc42012c5a0)
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/tmp/bosh-init-release234893063/extracted_packages/bosh_softlayer_cpi/src/github.com/cloudfoundry/bosh-softlayer-cpi/api/dispatcher/json_caller.go:43 +0x3e1
github.com/cloudfoundry/bosh-softlayer-cpi/api/dispatcher.(*JSONCaller).Call(0x6826b8, 0x42ee40, 0xc420014900, 0xc420010420, 0x6, 0x6, 0x0, 0x1cc, 0xc420121948, 0x62669)
	<autogenerated>:7 +0x81
github.com/cloudfoundry/bosh-softlayer-cpi/api/dispatcher.JSON.Dispatch(0x641a00, 0xc420013e90, 0x641ac0, 0x6826b8, 0x647f40, 0xc4200cadc0, 0xc420126600, 0x249, 0x600, 0x600, ...)
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/tmp/bosh-init-release234893063/extracted_packages/bosh_softlayer_cpi/src/github.com/cloudfoundry/bosh-softlayer-cpi/api/dispatcher/json.go:91 +0x5e2
github.com/cloudfoundry/bosh-softlayer-cpi/api/dispatcher.(*JSON).Dispatch(0xc420013ec0, 0xc420126600, 0x249, 0x600, 0x600, 0x0, 0x0)
	<autogenerated>:2 +0x87
github.com/cloudfoundry/bosh-softlayer-cpi/api/transport.CLI.ServeOnce(0x640dc0, 0xc42002e008, 0x640e00, 0xc42002e010, 0x641a80, 0xc420013ec0, 0x647f40, 0xc4200cadc0, 0x0, 0x0)
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/tmp/bosh-init-release234893063/extracted_packages/bosh_softlayer_cpi/src/github.com/cloudfoundry/bosh-softlayer-cpi/api/transport/cli.go:43 +0x26d
main.main()
	/Users/cfdojo/.bosh_init/installations/bbed3a38-d962-48a1-6248-ec2d36f5c124/tmp/bosh-init-release234893063/extracted_packages/bosh_softlayer_cpi/src/github.com/cloudfoundry/bosh-softlayer-cpi/main/main.go:45 +0x549

********************
':
              exit status 2

Root cause seems to be that softLayerVirtualGuestCreator.Create(...) returns a nil VM and error when it doesn't find a "dynamic" or "vip" network.

The fix is included in PR #167
\cc @maximilien please help review and merge. Thanks.
\cc @mattcui @jianqiu

Yup, looking at PR now

Closing this since it seems fixed AFAIK


Fix errors when hash keys are provided as strings

Closes #306 and closes #296.
This fix resolves two problems:

When a parent key is provided as a string
When a nested hash has string keys

 Here is an overview of what got changed by this pull request:
Clones added
============
- spec/integration/schema/or_spec.rb  1
- spec/integration/params/or_spec.rb  1

See the complete overview on Codacy

Ok, I actually copied the schema test case to test params schema and changed provided inputs to hashes with strings, should I remove/update it?

Thanks for this fix :)


When running example, I get corrupted responses

When running the example, I get extra information and formatting in the result. It successfully connects and gets a result.  I am using c#/.Net 7/Console. Examples are below...
Example Response1:
Input: When was Microsoft founded?
Chatbot: ";
  c[2].optionA = "April 4, 1975";
  c[2].optionB = "July 24, 1983";
  c[2].optionC = "January 3, 1976";
  c[2].optionD = "July 29, 1977";
  c[2].correctoption = "optionA";

  c[3].question = "What is the full form of PDF?";
  c

Example Response2:
Input: When was Microsoft founded?
Chatbot: '),
                     ('Microsoft', 'The Microsoft Corporation was established in 1975', 'When was Microsoft founded ?')],
            "Testcase 7.3": [("Who is CEO of Google?"), ('Google', "Sundar Pichai is the CEO of Google", "Who is CEO of Google")],
            "Testcase 7.4": [("Whats the time right now?"),
                              (None, "Sorry, I am not able to identify the date", "Whats

Example Response3:
Input: When was Microsoft founded?
Chatbot: ","_labels":"ORGANIZATION","_output":"Microsoft"},{"_input":"What is the headquarters of IBM?","_labels":"ORGANIZATION","_output":"Armonk, New York, United States"},{"_input":"What is the name of CEO of Microsoft?","_labels":"PERSON","_output":"Satya Nadella"},{"_input":"What is the name of the CEO of Apple?","_labels":"PERSON","_output":"Tim Cook"}]'
print(ner(text

My code:
using Azure;
using Azure.AI.OpenAI;

const string key = "redacted";
const string endpoint = "redacted";

// Enter the deployment name you chose when you deployed the model.
const string engine = "redacted";

OpenAIClient client = new(new Uri(endpoint), new AzureKeyCredential(key));

string prompt = "When was Microsoft founded?";
Console.Write($"Input: {prompt}\n");

Response<Completions> completionsResponse =
	await client.GetCompletionsAsync(engine, prompt);
string completion = completionsResponse.Value.Choices[0].Text;
Console.WriteLine($"Chatbot: {completion}");

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

ID: d93ea762-d8b1-efd8-c538-7de3bdcd10b4
Version Independent ID: 476a17b4-14c0-10a9-090c-a6c23624866a
Content: Quickstart - Deploy a model and generate text using Azure OpenAI Service - Azure OpenAI
Content Source: articles/ai-services/openai/quickstart.md
Service: cognitive-services
Sub-service: openai
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@GenesisMRainer
Thanks for your feedback! We will investigate and update as appropriate.

@GenesisMRainer
It seems like the response you are getting is not in the expected format. The response should only contain the text generated by the OpenAI model.
In your code, you are using the GetCompletionsAsync method to get the response from the OpenAI model. This method returns a Response object, which contains the generated text in the Text property of the Choice object.
To fix the issue, you can modify your code to only print the generated text by accessing the Text property of the first Choice object in the Choices array. Here is an example:
string prompt = "When was Microsoft founded?";
Console.Write($"Input: {prompt}\n");
Response completionsResponse =
await client.GetCompletionsAsync(engine, prompt);
string completion = completionsResponse.Value.Choices[0].Text;
Console.WriteLine($"Chatbot: {completion}");*string prompt = "When was Microsoft founded?";
Console.Write($"Input: {prompt}\n");
Response completionsResponse =
await client.GetCompletionsAsync(engine, prompt);
string completion = completionsResponse.Value.Choices[0].Text;
Console.WriteLine($"Chatbot: {completion}");
This should only print the generated text in the console. If you are still getting extra information and formatting in the response, you may need to check the configuration of your OpenAI model or
For an issue like this, I'd recommend you create a support ticket since the support team will be able to respond much more quickly and have a conversation with you to figure out what could be going on.

I am already doing what you suggested as seen in the code I provided earlier.  I will open a support ticket.
Thank you for your assistance.

@GenesisMRainer what model/model version were you testing the code with?
To replicate the behavior in the quickstart with the completions endpoint we recommend using text-davinci-003. I tested again just now to confirm and I get the following as expected:

However, I think I am able to repro your issue if I test with gpt-35-turbo (0301) model in which case I can get output like the following:

gpt-35-turbo (0301) was an early release that can work with both the completions and chat completions endpoint. However, when using with the completions endpoint it is specifically trained to expect input in the ChatML format. Using gpt-35-turbo (0301) with the tradiitonal prompt style will yield unexpected and low quality results. If you want to use a gpt-35-turbo or gpt-4 model we recommend using the newer Chat Completions API which expects a different input format.

@GenesisMRainer
We are going to close this thread.if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


Implementation requests

Please implement DRN (Delubrum Normal) and the last Guildhest Solemn Trinity to the bot

Sure, added


URL is not maintained after login

When clicked on the "add new question" in IFE, the components redirect to login. After login, however, it goes to home page instead of the original link.

Fixed.


Expiring entries under load results in Hibernate retrieving a null value

Expected behavior
Redisson / Hibernate should return the correct value
Actual behavior
Redis (or some other mechanism) results in null value
Steps to reproduce or test case
I have a cached entity "Campaign". It's cache region has a TTL of one minute. A related entity runs getCampaign() and sometimes returns null for a period of time (one minute-ish; see screenshot).
Under consistent load this morning we experienced application errors in spikes due to this. Here's a screenshot of our error frequencies:

Redis version
6.2.6
Redisson version
3.23.5 (w/ redisson-hibernate-6)
Redisson configuration
singleServerConfig:
  idleConnectionTimeout: ${idleConnectionTimeout:-15000}
  connectTimeout: ${connectTimeout:-10000}
  timeout: ${timeout:-5000}
  retryAttempts: ${retryAttempts:-5}
  retryInterval: ${retryInterval:-1000}
  password: ${password:-null}
  subscriptionsPerConnection: ${subscriptionsPerConnection:-5}
  clientName: ${clientName:-null}
  address: ${REDIS_URL:-redis://localhost:6379}
  subscriptionConnectionMinimumIdleSize: ${subscriptionConnectionMinimumIdleSize:-1}
  subscriptionConnectionPoolSize: ${subscriptionConnectionPoolSize:-50}
  connectionMinimumIdleSize: ${connectionMinimumIdleSize:-2}
  connectionPoolSize: ${hibernate.hikari.maximumPoolSize:-500}
  database: ${database:-0}
  dnsMonitoringInterval: ${dnsMonitoringInterval:-5000}
threads: ${threads:-0}
codec: ${codec:-!<org.redisson.codec.SnappyCodecV2> {}}
eventLoopGroup: ${eventLoopGroup:-null}

What else could I provide to assist debugging? I'm not sure it's related to expiration, but the fact that it comes and goes is suspicious!

Updated to Redisson 3.24.3 and still experiencing the issue. Hibernate is 6.3.1.Final.

Looks like this is caused by a Hibernate bug introduced in 6.3.0. https://hibernate.atlassian.net/browse/HHH-17188?focusedCommentId=112948

all jdbc value reading lazy to avoid expensive result set access when not needed. In your example, since the entity instance is already found in the persistence context, the jdbc values are not read from the query result and only the identifier is put in the query cache.

(emphasis mine)


Zone namespace support based on terarkdb dev 1.4 version

At present, bytedance has encountered various problems of insufficient performance of the SSD disk itself due to the unfriendly IO pattern. Based on the more friendly IO pattern support brought by Zone Namespace to the KV database, we have supported it on terarkdb Zone Namespace to give full play to the capabilities of the disk itself

There was a problem with the previous submission, and another amendment


lxd/storage/btrfs: Add volume delete shortcut

Most people don't have nested subvolumes and recursively deleting
subvolumes can be time consuming and has additional restrictions on path
traversal that's caused issues to some users.
Closes #9479
Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

@tomponline good to go :)


Create action for automatic deployment

[ ] Use make recipe
[ ] Configure action to execute after merge request is approved.

Closed with pull request #7.


Password not stored in Keychain

Hi all.
When I add a server (on Navidrome by the way) in Submariner, I can access my music.
After closing and re-opening the application, it gives me a "Wrong username/password (code 40)" error. After some research, I believe the application is unable to store the password in the keychain.
I have tried uninstalling / reinstalling / restarting / whatever and nothing works. Can you help me?
I don't have a problem with the application, but I can't use it.
Some useful information :

Application download from MAS
MacOS 13.3.1
API Version 1.16.1

Did you get any prompts for your keychain password and to allow or deny it?
When you update the password for the server when editing the settings for it, do you get any error? A Keychain failure should be shown.
Do you see any entries in Keychain Access? For example, it looks like this for me when I search for the server, and look at allowed applications:

Does this happen with the non-MAS version?

Hi

I probably have a prompt for an access to the keychain initially but I don't get it anymore. (after reinstall or after the creation of a new server)
No error when I update the password
It's empty in the keychain. I try to create a keychain in the keychain called "session" and give access Submariner to it and same result.
I try non-MAS version, it's the same

I don't know if it can help but my server have an address is https://subdomain.domain.me but I also try with the local IP and the result is still the same.

Do you see anything in Console.app related to Keychain when you try saving the password?
If you have Xcode installed and don't mind building from source, try the latest commit. The Keychain handling code was rewritten in Swift, but should be functionally/logically identical. Put breakpoints on all the Keychain functions (fetch, adding, updating, updating), and try updating your password again.

Here are the few lines about the Submariner and the keychain. I imagine this is the error, but I have no idea how to fix it.
log.txt

This is pretty weird looking. I think the class genp is a hint though - I noticed in the older version, I mixed up generic password with internet password, which I fixed in the latest code in Git. That might be a red herring though - if it was a mix-up, I'd expect it to be in Keychain but not able to find it the next time? Worst case, I'd recommend trying the latest from Git, either build it yourself, or try the (unsigned, so you'll need to right-click->open) CI-built one here.
FWIW, years ago, I did deal with a corrupt keychain database that prevented me from making an account in Mail.app. I wonder if this is another case of corruption. The solution for it was to reset the login and local keychains from Keychain Access. It is annoying because you'll lose the saved passwords in it and have to sign into i.e. iCloud again, but it did work for me.

Oh, there's the error being thrown in Keychain. I suspect it is a mix-up between generic/internet passwords. path is an attribute of an internet password, but not a generic one. Trying the latest build might solve the issue if that's the case.

I am trying your build but it crashes when I try to save my server and I do not have Xcode to try to compile it myself 😕
log2.txt

Could you try this build? It's of the latest code from Git plus additional logging for Keychain.
Submariner-2.2-KeychainTest.zip

I'm sorry but the app is still crashing when I try to save the server.
Submariner-2023-05-01-213655.ips.zip

I think it might be a null object made when it reconstructs the URL here, causing a crash on the next line. I've attached another build that adds some logging there. Can you show the console output for this build? It'll log what the value of the string and the constructed NSURL will be.
Submariner-2.2-KeychainTest2.zip

I've found and identified the crash.
The null resource name is a different regression introduced in the rewrite of that class to Swift. The setter for resourceName assumed there was always a previous resource name. I'm going to push a fix for these issues, and probably cut 2.2 soon.
Thanks for helping identify this!


[Bug]: api/completion endpoint returns 200 but body contains error

Is there an existing issue for the same bug?

[X] I have checked the existing issues.

Branch name
main
Commit ID
3b7b6240c3adb967c5fe9e98ed73c05cd60ecd46
Other environment information
No response
Actual behavior
API returns 200/OK with object:
data:{"retcode": 500, "retmsg": "'function' object is not subscriptable", "data": {"answer": "ERROR: 'function' object is not subscriptable", "reference": []}}
data:{"retcode": 0, "retmsg": "", "data": true}
Expected behavior
No response
Steps to reproduce
POST object with "conversation_id" and "messages" to <base_url>/v1/api/completion

Receive 200/OK and error

Additional information
No response

Could you specify that errro. There's not any error message here.

Screenshots attached.

What is the version of the docker image and the code?
I suggest you to use dev version of image and pull the latest code.

I have tried both latest and dev. They all have the same issue. All the other endpoints, including the ones that were not working before are functioning normally, i.e. list_chunks. It is just completion that shows this error.
Current env:

I have worked around this issue but the bug remains. The issue is with the 'stream' option which if set to True will cause the retval 500. For now I am able to get completion results by specifying "stream": false.


AV bypass

Greetings to all,
I found this tool really good for my red teaming . I wonder if there is any way to evade av so that it can bypass. I will appreciate if you can help in this regards
Regards

AV "bypasses" aren't open source since they would get patched, what you are looking for is a crypter, you could either code one yourself or buy a subscription


Organization name should be shown if contributor is part of org

NOT A P0
Describe the bug
Contributors from an org are not showing the org name in the Contributor step (project setup).
To Reproduce
Add a project under an org w/ multiple team members. Then view contributor step.
Expected behavior
Contributors that are inherited from the org should show org name in the small pill next to their name.
Screenshots

Desktop (please complete the following information):

OS: macOS
Browser: Chrome

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."


Completed timer extension

#7
A simple timer chrome extension, with start and reset functionalities.
Preview of different states are included in the extension directory.
Previews

Hey @DarkFalc0n, can you add an error picture at last and not between the example that you are showing

Good @DarkFalc0n 👏 merged PR
Thanks for contributing 💛


Problem after update flower power to version v2.0.3

Hi Sandeepmistry
After I updatet the "flower power" to the version v.2.0.3 the script does not get all information.
Did you also try the script with a new firmware?
Regards,
Tobi
connectAndSetup
readSystemId
system id = a0:14:3d:00:00:84:xx:xx
readSerialNumber
serial number = PI040298ADxxxxxxx�����
readFirmwareRevision
firmware revision = 2016-09-14_hawaii-2.0.3_hardware-config-MP
readHardwareRevision
hardware revision = 2013-07-26_hawaiiProduction-1.2_protoDV-bootloader
readManufacturerName
manufacturer name = Parrot
readBatteryLevel
battery level = 39
readFriendlyName
friendly name = Flower power 86xx�
writeFriendlyName
disconnected!

Hi @tj2000bch,

Did you also try the script with a new firmware?

I have not tried with the latest firmware.
Are you using Linux or Mac?

Hi @Sandeepmistry
I’m using Linux. Bat now I have deleted the following part of the script and it works again.
/*
function(callback) {
console.log('readFriendlyName');
flowerPower.readFriendlyName(function(error, friendlyName) {
console.log('\tfriendly name = ' + friendlyName);
    console.log('writeFriendlyName');
    flowerPower.writeFriendlyName(friendlyName, callback);
  });
},
*/

/*
function(callback) {
console.log('readCalibratedEa');
flowerPower.readCalibratedEa(function(error, ea) {
console.log('calibrated EA = ' + ea.toFixed(2));
          callback();
        });
      },
      function(callback) {
        console.log('readCalibratedEcb');
        flowerPower.readCalibratedEcb(function(error, ecb) {
          console.log('calibrated ECB = ' + ecb.toFixed(2) + ' dS/m');

          callback();
        });
      },
      function(callback) {
        console.log('readCalibratedEcPorous');
        flowerPower.readCalibratedEcPorous(function(error, ecPorous) {
          console.log('calibrated EC porous = ' + ecPorous.toFixed(2) + ' dS/m');

          callback();
        });
      },
	  */

Ok, seems like a reasonable workaround.

Thank you for the correction

Hi all,
I try to make it working on Rpi3 but I only get
connectAndSetup
disconnected!
with no info.
I also tryed to remove the above parts of the script, with no success.
Anyone would have an idea of how to make it good again?
Thx!


refactor: Make transaction tables use react-query

High Level Overview of Change
Removes redux for transaction tables, adds new tests and moves error messages to the table instead of using the banner (that didn't properly disappear).
Type of Change

[x] Refactor (non-breaking change that only restructures code)
[x] Tests (You added tests for code that already exists, or your new feature included in this PR)

TypeScript/Hooks Update

[x] Updated files to React Hooks

Before

After

Look good. Do we have a solution for the banner yet?

Look good. Do we have a solution for the banner yet? It seems like we are moving away from it just by putting the same error message in the TransactionsTable

Thats the approach I went with.  The banners were broken in general in that they wouldnt go away some of the time.  It makes sense to just put errors inline since multiple parts of the page could error.


OPTIONS default behavior not compatible with Angularjs

Hi
When calling a flask webserver from angularjs, you get method not allowed and content-type not allowed errors. This is because the flask OPTIONS response does not specify Access-Control-Allow-Headers and Access-Control-Allow-Methods by default.
This is fixed by following code fragment:
@app.after_request
def apply_caching(response):
    response.headers['Access-Control-Allow-Headers'] = 'Content-Type'
    response.headers['Access-Control-Allow-Methods'] = 'GET,PUT'
    return response

Is the exclusion of these headers intentional or is this a bug? I think a lot of people call Flask from angularjs, so supporting these headers by default might be good for adoption and ease of use?
Kind regards

You only need those headers for CORS (cross-origin/domain requests).

Thanks for this explanation, I did not realize this was the case.
I suspect enabling CORS by default poses a security risk?

Yes. Also, it shouldn't be needed at all unless you intend to access your endpoints with AJAX calls from a different host/port. And in that case, you'd include another of those headers to specify which hosts are actually allowed to send requests.

Thanks for this explanation. I knew about the Access-Control-Allow-Origin header and I currently set this to allow the web server to access the REST API. I did not realize the other Access-Control-Allow-* headers also had to do with CORS.
Closing this as the bug is invalid.


Problem with downloaded file path !

Hello,
i have a problem, once i download the file & get the link to get my files it's always give 404 page not found !
i set download directory to /var/www/koko the files are there i guess there is a problem in some configuration
please check the image

Hi,
I don't have the time to check now, but in the settings there is a field named "base_url" (or similar). I think you need to put "http://<IP_ADDRESS>/aria2/koko/" in.

Hello,
thank you so much :) it's work now

I think there is a bug. When i set the directURL in configuration.js, it doesn't have any effect in UI or it does the same thing as @yas9999 is shows on the picture. Can someone take a look on it? Thanks.
BTW, I bypassed it by overwriting some methods in main.js and set the url there, but it is not an elegant solution.


package.json node engine needs updating

raised an issue in curriculum, though I suspect it belongs here.
With regard to a pr: glitch imports from master I believe, so base pr branch on gomix and merge to master?
Describe the bug
Working through the challenge Information Security with HelmetJS - Hash and Compare Passwords Asynchronously I noticed the console complaining about the node version. It is looking for v4 but v8 is currently used.
To Reproduce
Steps to reproduce the behavior:

Go to the challenge.
In glitch project add bcrypt as a dependency and require it in server.js
follow the instructions in the challenge, using bcrypt hash and compare
open the logs window to see Could not find node 4.4.3, using 8, just before the console.log outputs.

Expected behavior
the message should not appear
Screenshots
n/a
Desktop (please complete the following information):

OS: ubuntu xenial
Browser firefox
Version 61.0.1 (64-bit)

Additional context
Error shows up in learn repo running challenge (specified above) with curriculum import.

Closing after moving outstanding issues from boilerplate repos, please reopen if this persists.
/cc @moT01


Add image keys for PHP-8.2 and PHP-8.3

Close in favour of https://github.com/EasyEngine/easyengine/pull/1827


Addition of new minFeeRefScriptCoinsPerByte protocol parameter

Fee calculation need to be adjusted in Conway. It has been decided that size of reference scripts should contribute to the fee amount charged in a transaction.

Addition of new protocol parameter: minFeeRefScripts :: NonNegativeInterval
Adding UTxO argument to getMinFeeTx:

getMinFeeTx :: UTxO era -> PParams era -> Tx era -> Coin

Adding another factor to the calculation in Babbage, along the lines of:

  ...
  <+> Coin (round ((refScriptsTotalSize % 1) * unboundRational (pp ^. ppMinFeeRefScriptsL)))
  where
    refSciptsTotalSize =
      maybe 0 (toInteger . getSum) $ foldMap (fmap Sum . getPlutusScriptSize) refScripts
    txBody = tx ^. bodyTxL
    ins = (txBody ^. referenceInputsTxBodyL) `Set.union` (txBody ^. inputsTxBodyL)
    refScripts = getReferenceScripts utxo ins

Where getPlutusScriptSize :: Script era -> Maybe Int is a function that calculates the size of a plutus script for any Script

I thought we were just going to add it to the transaction size for the purposes of fee calculation?

Can you provide any insight into how and why this decision was made?

Certainly. Using reference scripts does not come for free from the point of view of SPOs. The node has to spend resources looking up the reference input (which is not being spent) in the UTxO, but most importantly a script needs to be deserialized. Therefore it is almost as much work for the node to process a script as if it was part of the transaction, but there is less
incentive for SPOs to do that work. That being said, it is definitely less work, and for that reason we want to be able to tune this lever by a parameter that is different from minFeeA

I thought we were just going to add it to the transaction size for the purposes of fee calculation?

@michaelpj Yeah, that will still sort of going to be the case. As I said above, it will just be adjusted with a separate paramter. So, for example if minFeeRefScriptCoinsPerByte would be set to minFeeA value, then it would be as if the size of a reference scripts was added to the size of the transaction. The argument @WhatisRT presented in favor of a separate protocol parameter was that the user is paying for adding the transaction on chain (reaching consensus, network overhead etc.) and the work is proportional to the size of the transaction, while using a reference script is also proportional to the size, but it requires less work than for the full transaction. Thus the community might want to have some freedom in tuning that parameter separately.

Ok thanks! Appreciate the insight.
To me, it seems like the deserialization work should logically add to the execution units rather than the tx size (so that something like partial deserialization could save on ex units), but I can understand it being easier to use the existing and much simpler tool to achieve a similar result.

So if this is a SC execution, shouldn't that be covered by SC related "fees"? As @Quantumplation said, shouldn't this be covered by the execution units?

Can you provide any insight into how and why this decision was made?

Certainly. Using reference scripts does not come for free from the point of view of SPOs. The node has to spend resources looking up the reference input (which is not being spent) in the UTxO, but most importantly a script needs to be deserialized. Therefore it is almost as much work for the node to process a script as if it was part of the transaction, but there is less incentive for SPOs to do that work. That being said, it is definitely less work, and for that reason we want to be able to tune this lever by a parameter that is different from minFeeA

I thought we were just going to add it to the transaction size for the purposes of fee calculation?

@michaelpj Yeah, that will still sort of going to be the case. As I said above, it will just be adjusted with a separate paramter. So, for example if minFeeRefScriptCoinsPerByte would be set to minFeeA value, then it would be as if the size of a reference scripts was added to the size of the transaction. The argument @WhatisRT presented in favor of a separate protocol parameter was that the user is paying for adding the transaction on chain (reaching consensus, network overhead etc.) and the work is proportional to the size of the transaction, while using a reference script is also proportional to the size, but it requires less work than for the full transaction. Thus the community might want to have some freedom in tuning that parameter separately.

Do we have an idea on what minFeeRefScriptCoinsPerByte value is going to be in relation to minFeeA. I was assuming less due to the smaller tx size and less bytes being sent over the wire. But I would like to see what gets recommended.

Is the intention to make that parameter as high as if the script had been included in the witness? Or is the intent to rather create a new incentives, without increasing the cost as much?

Do we have an idea on what minFeeRefScriptCoinsPerByte value is going to be in relation to minFeeA

Honestly, I have no idea what the initial value for this parameter will be. The intent of this issue is to provide the functionality for making this possible.

I was assuming less due to the smaller tx size and less bytes being sent over the wire.

I'd assume so as well.

Sounds like a good first question for IntersectMBO to work on :)

I thought we were just going to add it to the transaction size for the purposes of fee calculation?

@michaelpj , ignoring the direct topic of the issue itself, your comment is very concerning. Is it mentioned somewhere in the documentation that this plan exists to add ref script size to the size of the tx that references it?

Is it mentioned somewhere in documentation that this plan exists to add ref script size to the size of the tx that references it?

This was discussed in a meeting as a potential solution, but instead we decided to add a new protocol parameter that will be a multiplier for the size of reference scripts. Which is what this ticket is about. It is a strictly more powerful solution since it gives fine control over how much ref scripts will contribute to the fee of a transaction.


Example for pre-annotating videos with custom model and tracker

We don't have such an example yet, however you can contribute it :-)

You can check how to prepare pre-annotations for LS here:
https://labelstud.io/guide/predictions.html#Format-pre-annotations-for-Label-Studio

As object tracker model you can try Yolo + Deep Sort

How to write ML model wrapper for LS:
https://labelstud.io/guide/ml_create.html

I am currently facing the issue where the entire model class is build re-instantiated when ever a predict request is made, I have not dug into the flask code to figure out why. Any idea why this is happening I would assume the class is created once and then the endpoint just calls its predict function. Like this I cannot save object tracks in BaseModel class hence my asking for an example with a custom model and tracker.

Hi @ozayr
Do you use active learning?
Please check if you have webhook enabled in project settings

我目前面临的问题是，当发出预测请求时，整个模型类都会重新实例化，我还没有深入研究烧瓶代码来找出原因。任何想法为什么会发生这种情况，我都会假设该类被创建一次，然后端点只是调用其预测函数。像这样，我无法将对象轨道保存在 BaseModel 类中，因此我要求提供一个带有自定义模型和跟踪器的示例。

Hello, if you import open video frame when you do video pre-annotation, look forward to your answer

@ozayr Have you achieved it?

@makseq The number of image frames decoded by the ML model and Label Studio doesn't match. Is there any way to fix this?


node-pre-gyp info This Node instance does not support builds for N-API version 6

Fails on W10 with node v12.16.3

Please check #65.

Please check #65.

@rkistner In Mac works fine but no using W10. I'm using yarn any extra packages for yarn?

@rkistner In Mac works fine but no using W10. I'm using yarn any extra packages for yarn?

Hi @rkistner ahain,
I've created a playground repo to test the new version https://github.com/ajmasia/electron-sqlite-playground
When run dev server for windows, the app close after run:

I'm using Electron 9.0.0 and Node v10.19.0 that's support N_API 3
Dependence is built correctly:

On mac works fine, any iadea?
Thanks!

Hi @rkistner ahain,
I've created a playground repo to test the new version https://github.com/ajmasia/electron-sqlite-playground
When run dev server for windows, the app close after run:

I'm using Electron 9.0.0 and Node v10.19.0 that's support N_API 3
Dependence is built correctly:

On mac works fine, any iadea?
Thanks!

Working on a fix for Windows. This is the same issue as in #67, so moving the discussion there.
Note that the issue title (node-pre-gyp info This Node instance does not support builds for N-API version 6) is unrelated to the actual crash - that's just an informational message.

Thanks, @rkistner for star working on this fix, and sorry for my mistake 😄


messages: ticker_interval: -1 does not disable tickers

Is there an existing issue for this?

[X] I have searched the existing issues

Output of ddev debug test
Expand `ddev debug test` diagnostic information
[COPY-PASTE HERE THE OUTPUT OF `ddev debug test`]

Expected Behavior
The new messages feature says that you can disable the ticker completely with:
messages:
    ticker_interval: -1

But that doesn't actually work. If you set that and then roll back the last_ticker_at value in ~/.ddev/.state.yaml, you will still get a ticker message.
Actual Behavior
x
Steps To Reproduce
No response
Anything else?
No response

Thanks for fixing this. I added the below lines in my ~/.ddev/global_config.yaml and it seems like the "Tip of the day" has stopped:
messages:
    ticker_interval: -1

I do still get this warning, how can I disable it?
 IMPORTANT MESSAGE
 If you have warnings about omit_containers: [dba] try `grep "^omit_containers.*dba" */.ddev/config.yaml` in the directory where you keep your projects

Also, I just turned off the daily message for now,

https://github.com/ddev/remote-config/pull/10

Thanks as always @rfay for a fast response! It's much appreciated.
I do think "Tip of the day" could be useful, if it was less intrusive, I might not feel I need to turn it off. The main reason I do that for now, is because it was too large, and when I start DDEV, it looks like an important error message. A discrete one or two lines might work better?

The last few weeks this error message is shown in big red when starting up DDEV:

IMPORTANT WARNING
If you're running Colima v0.5.6, don't brew upgrade to v0.6.* until you save your databases or you'll lose them. ddev snapshot -a. https://twitter.com/randyfay/status/1723701983549456541

As a user, I only need to see this warning once or twice. I think showing it continually defeats the purpose, since repeatedly showing warnings will make the user ignore them, since the warning may be:

Not relevant
Already seen

In my opinion, such warning should be shown at most maybe three times, and then expire, to never be shown again.

I had

https://github.com/ddev/remote-config/pull/21
ready to go so I just pulled it.

Perfect, thanks!
How about my idea to only show warnings a set number of times? Very quickly such "LOOK AT ME!!!!"-blobs of content become annoying. If another warning shows up, the users will be less likely to heed the actual content -- they have become banner-blind be permanent exposure.

Have you considered how wonderful it is that we can communicate an important message without a new release? As always, contributions that do not increase complexity are welcome.

It's a great feature, I agree :)
I created #5568, let's see if it's possible to tweak the set up, without getting too complex.


casting the $month

hi , I am getting the error Undefined offset: 12 on PHP 7.1.12 (cli) ,
and I found out its in the Converter.php
so , I cast the month to be integer ,,

I create a new release
Thank you a lot


networking: document the metadatasvc more completely

[ ] Document how to run and configure it
[ ] Create a .service and .socket file for the metadatasvc
[ ] Point users to docs if network plugins cannot contact metadatasvc. Currently the error message is  fairly cryptic.

cc @eyakubovich

@eyakubovich Has any progress been made on this, it is set for v0.5.0, this week.

I'll document it. However it's held up on https://github.com/coreos/rocket/pull/637 getting merged as it changes the registration over to Unix socket.

Why should .service and .socket be part of rkt? That's should be part of distro -- we have no way of knowing the path of where the binary will even reside (it also assumes systemd). I'll create a sample one though to help the packagers.

Yes, sample one in contrib/ or such would be good.

@eyakubovich It is safe to assume it will be /usr/bin/rkt


banana-cake-pop: Update to version 1.0.0-preview.14

Update autoupdate url URL
Update to version 1.0.0-preview.14

I have searched. No other PRs exist.
Is an issue required for a version update PR?!

Is an issue required for a version update PR?!

No

/verify


Request location permission from Users

VERSIONS

Xamarin.Forms.GoogleMaps - latest
Xamarin.Forms - latest

PLATFORMS

[x] Android

With the new Android security model required to ask the user for permission to access location. The problem is if I open a page with a map on it I can’t ask for permission before I get an exception.
Java.Lang.SecurityException: my location requires permission ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION
I try to set MyLocationEnabled to false and IsEnabled to false so I could ask for Permission and then Enable it. But that did not work. Is there a recommended solution?

I'm in the same situation!
I appreciate any recommendation

Use plugin permission by james montemagno. That guy has a lot of useful plugins

I use that plugin, but that is not the point. I want to show the map and then ask for location permission. But I can’t figure out how to show the map then ask for permission and the query location. As soon as I open a page with the map on it, it crashes because the map control cannot be used without that permission, or I can’t figure out how. In my opinion, the map control should work without permission.

Yes, during the request permission (with Montemagno's plugin), the map raise an exception!

I dont know how to explain this, my english as bad as i naming a variable :D. Set MyLocationEnable to false before permission granted i guess. I will send my code tomorrow if you want

Setting MyLocationEnable to false was my first guess. I did it in the xaml as well as in the code. That did not work.  See screenshots.

A code sample would be highly appreciated. Btw. Really cool control love it. Thanks for your help.

I Figured out what the problem was. From the example code, I think I copied IsShowingUser=True. I Removed that, and afterwards, it works as expected.
Now I set the IsShowingUser=false until I got the permissions checked and switched it on as soon the permissions are ready.
Thanks for your help.

Hi @SergeBerwert ,
I think your solution is correct.

c# - Location permission for Android above 6.0 with Xamarin.Forms.Maps - Stack Overflow


Translate for unc0ver?

I would like to contribute this repo via translating unc0ver into zh_TW

https://github.com/Samgisaninja/unc0ver-localizations


unresolved import wasm_bindgen_macro::wasm_bindgen

🐛 Bug description
Compiling wasm-bindgen v0.2.22
error[E0432]: unresolved import `wasm_bindgen_macro::wasm_bindgen`
  --> /home/MYNAME/.cargo/registry/src/github.com-1ecc6299db9ec823/wasm-bindgen-0.2.22/src/lib.rs:39:13
   |
39 |     pub use wasm_bindgen_macro::wasm_bindgen;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `wasm_bindgen` in the root

error: aborting due to previous error

🤔 Expected Behavior
It should compile
👟 Steps to reproduce
I followed the https://github.com/rustwasm/wasm-pack#-quickstart-guide, it breaks at step
wasm-pack init

🌍 Your environment
wasm-pack version: 0.4.2
rustc version: 1.29.0-nightly

hi @marcocastignoli ! i'm pretty sure this is because the latest wasm-bindgen requires rust version 1.30.0. you can install that using rustup install beta or rustup install nightly.
while you're at it- we released a new version of wasm-pack yesterday- i'd check it out, the user experience is way improved! (and helps catch things like this)
lemme know if you are still having issues!


Bug resolving collisions with items when compact mode is "null"

When adding a new item to layout { x: 0, y: 0 } with existing items if it collides, the layout seems to kind of randomly move the items away from collisions.
I made a code sandbox that demonstrates the issue: https://codesandbox.io/s/rgl-bug-resolving-collisions-rh1dv
Just click on Insert new for about 10 times and see that items are moved down kind of randomly creating unnecessary gaps. Once you have inserted 2 items, you can see that the first item was moved after all static ones leaving a gap. I implemented my own solution (may not be perfect) using CSS grids that displays on the sandbox the expected result.
Additionally, if you change this line setLayout(nextLayout); to setLayout(layoutWithoutCollisions);, you'll see that RGL correctly moves the items away. However, that's not always the case, I found certain cases when items that don't collide but close to statics seem to also be moved away.
I don't know if this is a "feature" or a "bug" since the logic to move away items doesn't make much sense to me.
I'd like to help solving this issue since it's very problematic. For instance, if you have a colliding item that has a big height, you'll see a very huge gap on your screen.

🙄

Can this bug be addresses/opened?
I am seeing same issues, where the resize does not work as expected


Double the Dynamo write capacity and add alarms on indexes

Updated stack in UAT and it looks as expected.

Updated prod stack.

This PR was successfully deployed to production by CircleCI build 166 at 2017-03-23 10:47 GMT.


StackOverflowError with certain mod combinations

Zenith Version: 1.2.3-1.20.1
Fabric Loader Version: 1.15.11
Minecraft: 1.20.1
Fabric API: 0.92.2+1.20.1
Crash log: https://mclo.gs/3s2y9RE
I'm building a new modpack and had things pretty stable, but when I added Spellblades and Such and its dependencies (Extra RGB Attributes, AzureLib, Spell Engine, and Runes). The mixin that seems to be causing the problem is from Extra RPG Attributes, specifically here. That said, their mixin seems pretty tame, so I dug into Zenith's side of the loop.
Looking through the in Zenith, I'm seeing that LootCategory's ShieldBreakerTest seems to be doing some somewhat dubious checks here. I'm not exactly sure what the overall intent of these few lines is, but calling LivingEntity#setItemInHand from within a Loot Predicate seems like it'll almost always be a bad idea that can cause recursion like seen in this crash. Is there a better way to handle this LootCategory test?

Just realized this is a duplicate of #182. Didn't notice it in my search because it doesn't mention the keyword I searched for (Overflow)


CMake: SOVERSION should be 0 instead of 0.0.1

I think I've made a mistake in the previous PR https://github.com/lemire/simdjson/pull/76
Here is a good example about VERSION/SOVERSION: https://github.com/intel/mkl-dnn/blob/master/src/CMakeLists.txt#L95-L96

Before we merge this, can you tell us why it is a mistake? (So that the change is documented.)

Before we merge this, can you tell us why it is a mistake? (So that the change is documented.)

This PR changes SOVERSION from 0.0.1 to 0, which also changes the resulting shared object's SONAME to libsimdjson.so.0 from libsimdjson.0.0.1. According to semantic versioning convention, the 0.X.Y series are not expected to bump the ABI, which means softwares compiled against simdjson won't need to be recompiled during the 0.X.Y upgrades. However, if we set the SONAME to libsimdjson.so.0.0.1, anything linked against it would need to be recompiled against simdjson when the version has been bumped to 0.0.2, which is unnecessary.

Thanks. Super.


Add README.md section for CLI Automation under Developent Tools.

Populate with the three seemingly maintained packages.

Thank you!

You're welcome.


[v1.1.1] Fix: Updated the Github release workflow

#2  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @GoodM4ven and the rest of your teammates on  Graphite


feat: diff function to support exporting the difference between the two vnodes

Describe the solution you'd like
I found that nearly all of the vdom frameworks support effecting the dom directly, but don't support exporting the difference between the two vnodes. I thought maybe it would be useful when we want to get difference between the two vnodes and render them to the website for visualization by the custom styles, just like the git diff styles that help us to diff the two versions of our code.
I thought that we can set the diff of props for all vnodes, and export the two diffed vnodes tree as result. Maybe it would be very interesting and help us know where we have updated.

There is existing functionality for exporting diffs with the diff function:
You can access effects with data.effects. An effect looks like:
export interface Effect {
  type: EffectTypes;
  el: DOMNode;
  flush: () => void;
}

I'm not exactly sure how the diff functionality for the highlighting will work. I think it would be easier to provide the newVNode and oldVNode in the effect, that way the developer can implement the highlight diff

Hey! I seen you've made some issues to the Million repo, If you'd be willing I'm extending an invitation for you to become a collaborator :)
Link: aidenybai/million/invitations


why chef-rvm and not rvm?

I am curious why this repo is called chef-rvm but the cookbook is named rvm. This would appear to require the name of the repo name be changed in order for the cookbook to work. Or am I missing something?

There were a couple of reasons that the repo ended up as chef-rvm. The most basic was that I needed a way to distinguish the Chef cookbook from the RVM project proper :) There also seems to be an emerging pattern where cookbook-as-a-git-repo codebase names are being prepended with chef- or appended with -cookbook. And finally, the knife-github-cookbooks knife plugin explicitly supported this convention.
The main issue is that the cookbook won't work out of the box unless it's renamed from chef-rvm to rvm due to some dynamic module/class construction. Does that help shed some light (thanks for the question BTW)?

Yes it does, thanks. We are with RightScale so we don't use knife. This makes forking a bit of an issue, but knife is really how things should be done to deal with just this sort of thing. We are just behind the times.
On Dec 10, 2011, at 8:16 PM, Fletcher Nichol wrote:

There were a couple of reasons that the repo ended up as chef-rvm. The most basic was that I needed a way to distinguish the Chef cookbook from the RVM project proper :) There also seems to be an emerging pattern where cookbook-as-a-git-repo codebase names are being prepended with chef- or appended with -cookbook. And finally, the knife-github-cookbooks knife plugin explicitly supported this convention.
The main issue is that the cookbook won't work out of the box unless it's renamed from chef-rvm to rvm due to some dynamic module/class construction. Does that help shed some light (thanks for the question BTW)?

Reply to this email directly or view it on GitHub:
https://github.com/fnichol/chef-rvm/issues/59#issuecomment-3095577

Use librarian, and it is a non issue.

@pearcec agreed, the librarian gem is a great way to manage your cookbooks/ directory. Kudos to @yfeldblum for such a great solution :)

I'm going to close this out for now. If anyone has further concerns or questions, just re-open!