WIP: record: don't save Record's which are empty into the terraform state

Issue: https://github.com/adamdecaf/terraform-provider-namecheap/issues/24

I trust this PR is outdated due to the new v2 major release.
Thanks for your contribution!


Does not install on ReadTheDocs.com

For reasons I do not understand, needs will not install in RTD.com. See the log below; I got      AttributeError: '_NamespacePath' object has no attribute 'sort'
Note:: I know, it does run on RTF.org (e..g http://sphinxcontrib-needs.readthedocs.io/) But we use it commercial  variant: .com; which is slightly different (mainly to support non-opensource).
Note:: The same setup does run on my (Mac-based) PC; both with python-3.4 and python-3.6
Thanks for needs. Even more thanks, when a new versions becomes available. As this is a showstopper (other issues/suggestions have less prio)
Log

Collecting sphinxcontrib-needs (from -r /home/docs/checkouts/readthedocs.org/..../checkouts/master/docs/requirements.txt (line 11))
Downloading sphinxcontrib-needs-0.1.47.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/home/docs/checkouts/readthedocs.org/..../envs/master/lib/python3.6/site-packages/setuptools/init.py", line 10, in
from setuptools.extern.six.moves import filter, filterfalse, map
File "/home/docs/checkouts/readthedocs.org/..../envs/master/lib/python3.6/site-packages/setuptools/extern/init.py", line 1, in
from pkg_resources.extern import VendorImporter
File "/home/docs/checkouts/readthedocs.org/..../envs/master/lib/python3.6/site-packages/pkg_resources/init.py", line 3017, in
@_call_aside
File "/home/docs/checkouts/readthedocs.org/..../envs/master/lib/python3.6/site-packages/pkg_resources/init.py", line 3003, in _call_aside
f(*args, **kwargs)
File "/home/docs/checkouts/readthedocs.org/..../envs/master/lib/python3.6/site-packages/pkg_resources/init.py", line 3045, in _initialize_master_working_set
dist.activate(replace=False)
File "/home/docs/checkouts/readthedocs.org/..../envs/master/lib/python3.6/site-packages/pkg_resources/init.py", line 2577, in activate
declare_namespace(pkg)
File "/home/docs/checkouts/readthedocs.org/..../envs/master/lib/python3.6/site-packages/pkg_resources/init.py", line 2151, in declare_namespace
_handle_ns(packageName, path_item)
File "/home/docs/checkouts/readthedocs.org/..../envs/master/lib/python3.6/site-packages/pkg_resources/init.py", line 2091, in _handle_ns
_rebuild_mod_path(path, packageName, module)
File "/home/docs/checkouts/readthedocs.org/..../envs/master/lib/python3.6/site-packages/pkg_resources/init.py", line 2120, in _rebuild_mod_path
orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-b2xxkrcn/sphinxcontrib-needs/

As a workaround, I forces RTfD.com to use another versions of setuptools.

After several tries, setuptools==34.3.2 does work
NOT working variant: setuptools==36.8.0
Didn't try/record others

Those versions are selected purely on google results. See e.g https://github.com/pypa/setuptools/issues/885#issuecomment-278652057

The only solution, which sphinx-needs could do, is to force the installation of a specific setuptools version by adding it as dependency to our setup routine.
But as this bug is part of setuptools only, affects other packages as well and sphinx-needs has no functional requirement to a specific setuptools version, my proposal is to do nothing here on our site.
Maybe we could set a red note on the starting page of our documentation that the installation of sphinx-needs works with setuptools version x.y.z only, as long as the bug is not solved.
Any feedback?

Ok, good to know and thanks for your commitment.
I close this issue because the chance is high enough that this issues gets solved by one of the involved external parties(rtd team, setuptools, ...)


Merge two sorted lists (Branch: Harshil525 patch 1)

Hacktoberfest! 🎊🎈
🎉 Have you read the Contributing Guidelines? 🤔
Yes and I have followed the same as well.
📝 Description
I updated an issue with merge two sorted lists and then gave the question and solution as well. Please look into it and then please accept the PR for it. Also add a label of #hacktoberfest and #hacktoberfest-accepted. It would be a great help.
Fixes #395 🔧

✅ Checklist

[yes ] I've read the contribution guidelines. 📚
[yes ] I've checked the issue list before deciding what to submit. 🔍
[ yes] I've edited the README.md and linked to my code. 📄

🔗 Related Issues or Pull Requests
No, nothing. It's updated as a new issue.

Done with the issue of Merge two sorted lists, please approve it @Kushal997-das with labels.

Hi there!
I am the Mentor of this project.
Although this repo is not part of Hacktoberfest 2024, we have some great alternatives for you. Welcome to SkillShow, a repository focused on skill enhancement!
Guidelines:

Please adhere to the existing guidelines.
No additional rules, thanks!
Check it out here: SkillShow.

Note: Start by creating an issue. Once it’s assigned to you, feel free to open a pull request (PR). Directly opening a PR will lead to an invalid label.
Looking forward to your contributions!


expose a method to parent components to focus on text input manually

I needed to focus on textInput after navigator transition is over. So, i needed to create a triggerFocus method and expose it for parent components.
I think this might be useful for others too.

Thank you for the PR, I will merge it today

A new version has been published


feat: add GitHub Action out-of-the-box

[x] Enables GitHub actions CI workflow out of the box

[x] If user selects one of the test runners, yarn|npm run test will be added to .github/workflows/ci.yml
[x] If user selects one of the linting options, yarn|npm run lint will be added to .github/workflows/ci.yml

[x] If github-actions option is selected from CI (while scaffolding new nuxt app), dependabot config is auto-updated to support the github-actions ecosystem
[x] Debug why tests are failing (commitlint option in answers.linters)

We could even add Circle CI, Travis CI etc. in future!


ability to disable db resource

I call this within another module.  I would like to be able to disable database creation altogether based on an outside variable?  Is this possible, to effectively set the count to 0?

create_db_instance -


A module re-export should only reference the target module if all of it is imported

Original reporter: david.waern@
A module re-export should only reference the target module if the target module is imported without hiding any of its exports (otherwise we should inline just the exported bits).

should be resolved by #688


Colours Used in Rule Editor are Incorrect

First up I want to say a huge thanks for this plugin! It's brilliant, and something that I've found absolutely indispensible!
I'm having an issue where the colours used in the rule editor don't conform to the active theme. In my case I'm on a dark theme:

The gutter with the line numbers use light colours, consisting of a white background and grey text.
The cursor uses an illegible very dark grey colour.

Thanks for your feedback! This problem has been fixed in version 0.2.2, please update the plugin and have a try

That's fixed it! Thank you so much!


Example

Is there a full example somewhere using this structure in Expressjs?  (I could only find PHP.)
I have been using the setup of Route-Controllers-Models as seen in beerlocker. So, this is very different to me. I really like the structure and some of the ideas I see in it. I just need a full example to really get a feel for the mental process behind this approach.
Thanks!

Hi Jason, the Controller/Service/Repository pattern is a super set of what I see in beerlocker.  The importance of services/repositories is to keep controllers extremely lean and also be reusable across controllers.  Services should always be your "thick" layer with all the business logic required to create your data model.  Repositories are relatively lean and should only be for retrieving data, not applying any business logic.  I like to keep separation between models and view models.  View models represent the final model a controller returns where models (data models) are generic models returned from services that could be consumed by any controller (not specific to what the controller will return).  You don't need to create model classes in JS because you can create JSON on the fly in contrast to C# or Java.
I have a working example in my marvel node application seen here:
https://github.com/trwalker/marvel-node
Sorry for the delayed response.  Let me know if you have any more questions.
-Tim

That's great. Thank you for that sample. I love the controller versioning and configuration file approach.


renderer,config: add custom DRM modeline support

Describe your PR, what does it fix/add?
This allows specifying custom display resolutions for the DRM backend. This is useful for display overclocking, working around broken EDIDs, etc. To use this feature, specify a modeline instead of a resolution in the config, for example:
monitor = DP-1, modeline 1071.101 3840 3848 3880 3920 2160 2263 2271 2277 +hsync -vsync, 0x0, 1

This example is a custom 3840x2160@120Hz mode with tightened timings. I use it because the standard timings don't work with my monitor and GPU combination (M28U with RX580).
The syntax is compatible with Sway and Xorg.
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
I've been daily driving this for a few weeks and haven't ran into any issues.
Is it ready for merging, or does it need work?
I think it is, but probably needs a documentation update as well.

Changed parseModeLine to use CVarList, implemented same-rule check for custom modelines, and ran clang-format.
Instead of comparing modeline strings, I opted to store drmModeModeInfo in CMonitor and memcmp it with the version from the rule. It's slightly more technically correct, because multiple modeline spellings can parse into identical parameters. It also doesn't require keeping the unparsed modeline in the rule.
Clang-format also caught some stuff not related to my changes, but I filtered them out in the interest of keeping the diff clean.

Done, though I have to say this same file is inconsistent about both of those things.

if it is you can blame my small brane

forgot, could you make a wiki mr? plox

I'm a little busy currently, but I'll get to that soon-ish.


remove redundant hash impls; bump version to 0.5.1

Fixes #52

Uh, ok, it looks like 0.5.0 is pretty badly broken independently of this..

Don't bother to fix it if it's a mess, I'll move to 0.6.0 as soon as I understand how to fix #52. Thanks


Fit all and pan to selected functionality

Discord username
No response
How important is this feature to you?
4 – Lack of it makes using Enso a lot harder
Describe the idea you'd like to see implemented.
Right now there is no way to automatically move the scene to see your nodes when they got lost. Due to the bug with panning the canvas while scrolling the full screen visualizations it happens pretty often that users loose their nodes and trying to find them can be really hard.
We should implement the way to do it.

There should be a shortcut and a pop-up when user does not have any nodes on scene with an information about the shortcut.
If user have a node selected, pressing the shortcut should move the scene to show the selected nodes.
If user doesn't have any nodes selected, pressing the shortcut should fit all nodes on the scene.

Is your feature request related to a problem?
No response
Screenshots, screencasts, mockups.
No response
Would you be willing to help us implement this feature?
No

An alternative approach would be to detect if the scene is empty (the case when the user scrolled away), and then move the screen to the nearest (or last created) node.

This would probably cause strange effect when panning screen in such a way that nodes are not visible. Sometimes you want to do it in order to have clean screen and create a new graph there. I think that what Sylwia proposed is more generic and I like it a lot. Does it make sense to you @4e6 ?

@wdanilo @sylwiabr I think this should be simple enough to do in GUI2 now - there is one major issue though:
There are already shortcuts for this for visualizations, and I think these shortcuts should have the same keybinds, at least by default.
However, in the visualizations "fit all" uses Cmd+A which conflicts with the shortcut for "select all nodes", and "zoom to selected" (which I'd assume is equivalent to "pan to selected" in the graph) uses Cmd+Z, which conflicts with the shortcut for "undo".
Does anyone have any preferences on the appropriate keybinds for all mentioned actions?

One option is to have completely different keybinds from the current system - e.g. Cmd+0 for both actions - which one is triggered depends on whether any selection is active.
(Note of course, that Cmd+0 usually resets zoom instead, so we may want to use a different shortcut for that)

First of all, cmd + z is a terrible choice for a shortcut to fit visualization data on screen ;)
Secondly, when visualization is active, it should handle some shortcuts differently than when visualization is not focused. For example, cmd + a should select all nodes or all visualization points (depending if viz is selected or not).
Regarding exact shortcuts, let's create a list of actions for shortcuts and then we can brainstorm on what are the best options. How does it sound? :)


ASTC 8x8 support broken

This line:
https://github.com/raysan5/raylib/blob/eed170f85217b38bd0ff8091325dcaf06fd61608/src/textures.c#L2677
Should contain this constant: COMPRESSED_ASTC_8x8_RGBA

Hi @timkerchmar! Thank you very much for reporting this issue! Corrected in commit https://github.com/raysan5/raylib/commit/bb43755a9df89fab3018c5684d9a38ae5b52397b


poi folder

what is poi folder in world folder thats appears when 1.12 world imported in mv?

in 1.14.4

No idea. This is a general Minecraft question. Try asking on the Minecraft forums.


nnabla python on Windows

After installing nnabla Python package in Windows, I tried to import nnabla module, but unfortunately the following errors happened:
(nnabla) C:\Users\abc>python
Python 3.6.3 |Anaconda, Inc.| (default, Nov  8 2017, 15:10:56) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import nnabla
2017-11-21 15:49:26,440 [nnabla][INFO]: Initializing CPU extension...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\abc\AppData\Local\conda\conda\envs\nnabla\lib\site-packages\nnabla\__init__.py", line 42, in <module>
    prefer_cached_array(True)
  File "_init.pyx", line 103, in nnabla._init.prefer_cached_array.lambda
  File "_init.pyx", line 103, in nnabla._init.prefer_cached_array.lambda
TypeError: a bytes-like object is required, not 'str'

Could you give some clues on how to fix this problem? Thanks

Now it should be fixed at 0.9.6.  Thanks


brew cleanup should be folded in

I don't understand the use case for brew cleanup and why homebrew leaves behind old packages if I never use them anyway.
Lots of people are surprised when they discover the cleanup command and then see that it returns them multiple gigabytes of space. Shouldn't the default action be for homebrew to cleanup after itself?

Shouldn't the default action be for homebrew to cleanup after itself?

Yes, however, it's too slow to do that automatically or even check if it's needed because we don't have a metadata store. It's a desired feature if you or anyone else would want to work on it, though.


[Bug]: Fetch requests do not go through service worker

Provide environment information
"@serwist/next": "^8.4.4",
"@serwist/precaching": "^8.4.3",
"@serwist/sw": "^8.4.3",
Which project is this issue for?
@serwist/next
Link to reproduction - Issues with a link to complete (but minimal) reproduction code help us address them faster
h
To reproduce
page.tsx:
fetch('/local_test');
sw.ts:
self.addEventListener('fetch', event => {
console.log('Fetching:', event.request.url); // Nothing shown in console (Chromium 121)
}
Describe the bug
Fetch request is not going through service worker (the request does not show up in the console). I also tried 'navigationPreload: false', which did not help. I set the path in public/manifest.json correctly, I think: "start_url": "/PATH_AT_WHICH_PAGE.JSX_IS_SHOWN".
Expected behavior
Fetch request is going through service worker, i.e. the request should be printed in the console.
Screenshots (if relevant)
No response
Additional information (if relevant)
I am trying to create a mock API, therefore using a local URL.
I actually think there are two bugs: I get an error in the console: 'GET https://example.com/local_test' ... net:ERR_FAILED: 1) The URL shown is from an old version of the service worker. It looks like it did not reload, despite 'skipWaiting: true, clientsClaim: true,' 2) I suspect there is an internal serwist fetch listener which is called first, returns a failing promise and then my custom fetch listener is not activated? If so, how can I serve the fetch request anyway?

The URL shown is from an old version of the service worker. It looks like it did not reload, despite 'skipWaiting: true, clientsClaim: true,'

The service worker does take some time to install. After that, you need to reload the page so that it is loaded under the control of the service worker. You may find having it reload automatically useful.

I suspect there is an internal serwist fetch listener which is called first, returns a failing promise and then my custom fetch listener is not activated? If so, how can I serve the fetch request anyway?

Please add your own fetch listeners before Serwist's code. Its listener calls event.respondWith, which ends the fetch event listener call chain, resulting in your code not being called. Thanks!

Thanks for the reply. If I add my event listeners before installSerwist(), they are indeed called. Concerning the page reload, I though that skipWaiting should take care of that? https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting

@manuelei skipWaiting and clients.claim() do kick out the current active worker, make the waiting worker active, and claim all clients, including this one, making every new request go through the newly active worker, but they are time-sensitive. So I mentioned reloading just to be sure, but you may also check when it goes active; at that point, there shouldn't be any outdated service worker.
Do note that I don't really understand "1) The URL shown is from an old version of the service worker. It looks like it did not reload, despite 'skipWaiting: true, clientsClaim: true,'" that well though. Sorry about that, but I think I need an illustration of the issue.

Sorry, I noticed that the service worker actually updates now that I add my listeners before installSerwist(). But the code for the page (page.jsx) does not update...
And I now figured out why: I was seeing so many "NetworkFirst" console messages that I assumed that would be the default strategy for all documents...which it is not. After adjusting the 'runtimeCaching' property accordingly, my problems seem to be solved now. Thank you.


/fill and /setblock are not reset by checkpoints

basically what the title says, when using a command block to /fill something after the player goes through a checkpoint, the checkpoint does not reset it, unlike the other map blocks in the room. this is also true for things such as falling gravel or sand, which do not get reset either

yea, only mapping blocks get reset. that's why they exist
if you do stuff with command blocks, you gotta figure out resetting that yourself.
I can't do much about falling blocks either; a workaround would be to have a dummy door listener that doesn't have a flag bound to it, has the reset block type as air and either the closed or open type as whatever the falling block is. then just have the area encompass where those blocks would be after falling


[bug] tauri-cli crate name discrepancy

Describe the bug
Trying to update to tauri cli 1.2.1 (from 1.2.0) I ran:
cargo install tauri-cli
but I get a build error. A crate is named ‘sha-1’ but seems to be referred to as ‘sha_1’ with an underscore not a dash.
Reproduction
cargo install tauri-cli
and it goes bang on my system. Around 300 crates in. (Windows 10, latest version of rust).
Expected behavior
No response
Platform and versions
Windows 10
Rust 1.65
Previous version of Tauri is 1.2.0
Stack trace
No response
Additional context
No response

I can't reproduce this.
Can you try installing it like this please? cargo install tauri-cli --locked

That has fixed it, thanks a lot for your help!


Feature request: change base url

Hello,
I'm trying to debug Elm in the cloud using SageMathCloud (cloud.sagemath.com) and elm-reactor.
From this plateform, you can run a server and access it in the browser but not at a simple URL such as http://<IP_ADDRESS>:8000/ but rather at https://cloud.sagemath.com/my-project-id/port/my-port/.
When doing so, I currently bump into a blank page. Is there any way to specify to elm-reactor to ignore the base URL my-project-id/port/my-port/ or would adding this option to elm-reactor be somehow easy to do?
Thanks,
Théo
PS: my current work around is to create a symlink from my-project-id/port/my-port/ to my base directory.

For info, since 0.17, the workaround I had found does not work any longer.
The generated HTML tries to load a script at https://cloud.sagemath.com/_compile/my-project-id/port/8000/Main.elm and this obviously is not going to work (it should rather be https://cloud.sagemath.com/my-project-id/port/8000/_compile/Main.elm).
PS: Feel free to close the issue if that's not something you want to solve.

I do not see a clear route to resolving this, so I guess it makes sense to close. Perhaps there is some way, but it makes sense to open that as a separate issue when someone thinks of it.


Volume Up and Down not firing

Hi,
i have tried many way to detect volume up and down but its not working. i don't know why. My code is as below. please let me know where i am wrong.
export class HomePage {
constructor(public navCtrl: NavController, public platform: Platform, private push: Push, public musicControls: MusicControls) {
    platform.ready().then(() => {
        alert("system ready");

    });

	musicControls.subscribe().subscribe(action => {

alert(JSON.stringify(action));
switch(action) {
case 'music-controls-next':
alert("Next");
break;
case 'music-controls-previous':
// Do something
alert("Previous");
break;
case 'music-controls-pause':
// Do something
alert("Pause");
break;
case 'music-controls-play':
// Do something
alert("Play");
break;
case 'music-controls-destroy':
// Do something
break;
   // Headset events (Android only)
   case 'music-controls-media-button' :
       // Do something
	   alert("Media Button");
       break;
	case 'music-controls-media-button-volume-up'
		alert("volume up");
		break;
	case 'music-controls-media-button-volume-down'
		alert("volume up");
		break;
   case 'music-controls-headset-unplugged':
       // Do something
	   alert("headset unplugged");
       break;
   case 'music-controls-headset-plugged':
       // Do something
	   alert("Headset plugged");
       break;
   default:
       break;

}
});
musicControls.listen(); // activates the observable above
//musicControls.updateIsPlaying(true);
}
}

Hi @vickynathaiya,
Are the volume up/down the only events that are not triggered ?

yes, actually i am working with headset events.
headset plugged, unplugged and headset hook event are working properly. But i don't know why volume up and down not working

The code above looks like it won't work. The action coming back is in JSON format. You'll need to retrieve the action from the message parameter after parsing the JSON.
// action looks like this as a string: '{\"message\":\"music-controls-media-button-volume-down\"}'
const eventType = JSON.parse(action).message

Then can you use your switch statement on eventType.

I'm having problems with this too, events from the headphone buttons doesn't fire. Only plug and unplug events are fired.
`  function events(action) {
  const message = JSON.parse(action).message;
  switch(message) {
    case 'music-controls-next':
    // Do something
    break;
    case 'music-controls-previous':
    // Do something
    break;
    case 'music-controls-pause':
    // Do something
    break;
    case 'music-controls-play':
    // Do something
    break;
    case 'music-controls-destroy':
    // Do something
    break;

    // Headset events (Android only)
    // All media button events are listed below
    case 'music-controls-media-button' :
    // Do something
    break;
    case 'music-controls-headset-unplugged':
    // Do something
    break;
    case 'music-controls-headset-plugged':
    // Do something
    break;
    default:
    break;
  }
};
MusicControls.subscribe(events);
MusicControls.listen();`

@Sbissa Your cases are not sufficient to cover play and pause events from headset.
Listen to more events.
Something like this.
`  this._ngZone.run(() => {
switch(message) {
case 'music-controls-next':
case 'music-controls-skip-forward':
self.onSkipForwardFromOutside();
// Do something
break;
case 'music-controls-previous':
case 'music-controls-skip-backward':
self.onSkipBackwardFromOutside();
// Do something
break;
case 'music-controls-pause':
case 'music-controls-toggle-play-pause' :
case 'music-controls-play':
self.onPlayFromOutside();
break;
case 'music-controls-seek-to':
// Do something
break;
// Headset events (Android only)
// All media button events are listed below
case 'music-controls-media-button-music':
case 'music-controls-media-button-headset-hook':
case 'music-controls-media-button-pause':
case 'music-controls-media-button-play':
case 'music-controls-media-button-play-pause':
this.registerTap(()=>{this.onPlayFromOutside()},()=>{this.onRepeatWithoutTouch()},CONFIG.DOUBLE_TAP_DELAY);
console.log(action);
break;
      case 'music-controls-media-button-skip-forward':
      case 'music-controls-media-button-step-forward':
      case 'music-controls-media-button-meta-right':
      case 'music-controls-media-button-next':
        self.onSkipForwardFromOutside();
        break;
      case 'music-controls-media-button-skip-backward':
      case 'music-controls-media-button-step-backward':
      case 'music-controls-media-button-meta-left':
      case 'music-controls-media-button-previous':
        self.onSkipBackwardFromOutside();
        break;
      case 'music-controls-headset-unplugged':
        self.pause();
        // Do something
        break;
      case 'music-controls-headset-plugged':
        self.pause();
        // Do something
        break;
      case 'music-controls-media-button-fast-forward':
      case 'music-controls-media-button-rewind':
        break;
      default:
        break;
    }
  });`

@quran-memorizer the problem isn't the case. I'm not receiving any events, only the plug and unplug.

@Sbissa - this should be resolved in the latest release, try installing from the github repo directly as NPM is out of date currently.

Yeah, currently @homerours is the only one who has access to publish the pacakge to NPM.

Thanks guys, i used the github repo and works now!


Add document outlining where to put different forms of documentation

Note: this PR is not intended to be merged. This document will be added to the github wiki. This PR exists only as a means to generate feedback on the document before publishing it to the wiki.
Feedback / suggestions are greatly appreciated!

It would probably be worth adding lists of examples to each of the categories.

Open source component has been added to the github wiki. The MS-internal component is now up in PR for our internal eng hub wiki. Closing this PR.
Thanks for all the feedback, reviewers!


Chained variables do not update properly

I have a set of chained variables:

Azure Monitor datasource variable (single select)
Subscription variable (multi select + include all)

They both load data as expected, however, whenever I change my Azure Monitor datasource, my subscription variable updates with the new values, but the selected value remains as the previous one:

the part that I have blacked out is the UID of the originally selected subscription.

Can you show the definition of your variables?

@torkelo  I have an array of variables where it can either be of type DataSourceVariable, QueryVariable :

I then use this in my EmbeddedScene like so:
 new EmbeddedScene({
        $variables: new SceneVariableSet({
          variables: variables,
        })
})

Missing the datasource definition/ full model

I have helper functions for each variable type, but in general, I have a list of variables, i.e.:
 const variables = [
      getDataSourcesVariableForType("grafana-azure-monitor-datasource", AZMON_DS_VARIABLE, "Azure Monitor Datasource"),
      getSubscriptionVariable(),
    ];

where for datasource for example, it is defined like so:
return new DataSourceVariable({
        name: name,
        label: label,
        pluginId: dsType,
        hide: hide ? VariableHide.hideVariable : VariableHide.dontHide,
    });

for subscription:
new QueryVariable({
        name: SUBSCRIPTION_VARIABLE,
        label: "Subscription",
        placeholder: "Azure Monitor Subscription",
        datasource: {
            type: "grafana-azure-monitor-datasource",
            uid:`\${${AZMON_DS_VARIABLE}}`
        },
        query: {
            queryType: "Azure Subscriptions",
            refId: "A",
        },
        isMulti: true,
        includeAll: true,
        hide: hide ? VariableHide.hideVariable : VariableHide.dontHide,
    });


Swift List of Int type

I need to create an array of Int like [1,2,3].
But i cannot use
var days = List()
So, what is the workaround to get this??
Following is the complete class which extends Object and  Mappable for ObjectMapper
class OfficeTimingData:Object, Mappable{
dynamic var fromHour:String?
dynamic var toHour:String?
//    var days: [Int]?
var days = List()
required convenience init?(_ map: Map) {
    self.init()
}

func mapping(map: Map) {
    fromHour <- map["fromHour"]
    toHour <- map["toHour"]
    days <- map["days"]
}

}

Lists of primitives are not supported yet. There is issue #1120 to track adding support for that. You'll find there some ideas how you can workaround that currently.

+1

Closing this issue in favor of #1120.


CommandBar 'More' button visible even if all secondary commands are collapsed

Describe the bug
When we create a CommandBar with secondary commands, and bind visibility on the secondary commands to a view model, it's possible for all commands to become Collapsed per view model property updates.
When in this state, the More button will appear to do nothing.
Steps to reproduce the bug
Clone the fork of the XAML Controls Gallery app on https://github.com/crhaglun/Xaml-Controls-Gallery
Build, deploy, start and navigate to the CommandBar sample page
Press "Hide secondary commands" to update visibility of secondary commands
Expected behavior
If OverflowButtonVisibility is set to Auto (default), the expected behavior would be for the More button to become collapsed, just like it does when the list of secondary commands is empty
Version Info
NuGet package version:
Microsoft.UI.Xaml 2.1.190405004.2

Windows 10 version
Saw the problem?

Insider Build (xxxxx)

May 2019 Update (18362)
Yes

October 2018 Update (17763)
Yes

April 2018 Update (17134)
Yes

Fall Creators Update (16299)

Creators Update (15063)

Anniversary Update (14393)

Device form factor
Saw the problem?

Desktop
Yes

Mobile

Xbox

Surface Hub

IoT

Additional context
Previously accepted as spec bug #15069521 before moving to Github

Thanks for reporting this. Since the logic for this is in CommandBar's code, we'll need to wait until WinUI 3.0. But we'll take a look after that.

This may be related: in Win10 1809 I've noticed that when an AppBarSeparator is present in the primary commands, it causes the overflow button to always be visible. My command bar only contains primary commands, the default label position is right, and the command bar is wide enough so nothing overflows. If I remove the AppBarSeparator elements, the overflow button disappears.

I also ran into this issue recently while working on a ribbon control. I suspect it has something to do with how the height of the AppBarSeparator (and anything that's not an AppBarButton) is determined. The simple but kind of ugly workaround for this is to set the CommandBar height to 40 (the default collapsed height).

I can confirm that this issue still exists.


Merge UDMIF into faucetsdn UDMI

This is an initial merge of the UDMIF projects which includes an Angular front end and a GraphQL API service.  It also includes a preliminary IaC implementation.  All of the work is in progress.

I spoke to the IaC team.  They're reviewing their work and should get to updating this next week.

There's still a cloud/gcp/index.js and cloud/gcp/src/index.js file... are they both right? Also cloud/gcp/package.json is an exact copy of cloud/gcp/src/package.json... ?

For now, I'm acting as the middle man of this PR. I've let the team know about your latest comments.

I think there's one stray .zip file cloud/gcp/function.zip? Or, if it's intended, what is that?
cloud/gcp/index.js is empty -- seems like it only half got moved to cloud/gcp/src/ --?

Those were put there temporary to be able to deploy the cloud function. This will be dynamic in the next PR. We will delete that src folder.


Upgrade peer dependency to allow React 16?

I'm happy to help test this more extensively, but my initial tests seem promising: that is, it doesn't just blow up.
The release announcement: https://reactjs.org/blog/2017/09/26/react-v16.0.html
Breaking changes: https://reactjs.org/blog/2017/09/26/react-v16.0.html#breaking-changes
Steps
Install the package
Expected Result
No warnings about incompatible peer dependencies
Actual Result
Warnings about incompatible peer dependencies:
warning<EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS><= 15".
warning<EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS><= 15".

Version
<EMAIL_ADDRESS>Testcase
N/A

Duplicate #2131.


[1.11.2] Feature Request or Config Help

DynamicSurroundings-1.11.2-<IP_ADDRESS>
forge-1.11.2-<IP_ADDRESS>5
Hello,
i only have a little request. A very good mod but i miss the loudness from the vanilla-rain.
How can i have the vanilla-loudness of the Rain? Copy the sound assets over the mod with a little pack, a special config or some else?
Thx

I have to say this is a first. :)  Use the Individual Sound Configuration GUI in the configuration settings for the mod.  Locate "dsurround:rain" and set the slider to the right.  See if that does it for you.

Yes thx i have made this and another Solution, i have made a sounds.json RessourcePack with the old minecraft sounds. Works very good. Thx.


Receiver Facing: Error says CDC Prime - Now what?

As a user that receives COVID testing data from RS via the CSV upload pilot feature,
When my rhapsody system kicks out an error, and it says CDC Prime, I do not know the facility sending the information
Who and how will the submitter be contacted to fix the data.
Problem:

it is not clear who is responsible for contacting the submitter

Background:
This came up in interim check in call with Colorado PHE
https://cdc.sharepoint.com/:w:/r/teams/USDSatCDC/_layouts/15/Doc.aspx?sourcedoc={9571319D-5BD9-4B42-AECE-B1E39443B8DB}&file=COPHE_Interim_CSV Pilot Upload Program_2.23.22.docx&action=default&mobileredirect=true
Slack thread
TO DO:

f/u with COPHE to let them know we are working on this - we said we would look into it on 2/23
get more info from OO team on current state

@victorialb-usds @rhood23699 Who from Colorado asked the initial question? Would the following solve Colorado's question?
Look at Reporting Facility name in MSH.4. In cases where a centralized name and CLIA are used in the MSH.4 (ie, CA-DPH), the PHD can look at OBX.23 Performing/Testing Facility.

It was first asked by Alyson via email and then it was asked again by Nancy.

From: Rachel Han @.***>
Sent: Monday, March 14, 2022 6:38:15 AM
To: CDCgov/prime-reportstream
Cc: Bredow, Victoria A. EOP/OMB; Mention
Subject: Re: [CDCgov/prime-reportstream] Receiver Facing: Error says CDC Prime - Now what? (Issue #4581)
@victorialb-usdshttps://github.com/victorialb-usds @rhood23699https://github.com/rhood23699 Who from Colorado asked the initial question? Would the following solve Colorado's question?
Look at Reporting Facility name in MSH.4. In cases where a centralized name and CLIA are used in the MSH.4 (ie, CA-DPH), the PHD can look at OBX.23 Performing/Testing Facility.
—
Reply to this email directly, view it on GitHubhttps://github.com/CDCgov/prime-reportstream/issues/4581#issuecomment-1066800730, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWBKYYCO7ZV4YQZ2NUH4EADU746MPANCNFSM5PRRKUJQ.
Triage notifications on the go with GitHub Mobile for iOS<>https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675<> or Android<>https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub<>.
You are receiving this because you were mentioned.Message ID: @.***>

@BerniXiongA6 to reach out to @Adrian-Brewster so someone from Ops team can respond to Colorado's question.
Please also provide a recommendation for how customer support questions are to be captured internally if/when they come up during a research session.
cc @victorialb-usds

can we CC or soft hand this off to the<EMAIL_ADDRESS>inbox when questions like this come in?

I emailed COPHE (CC'd Victoria) with an explanation of how to identify the sending facility for a message that has errored out.
When a message fails or NACKS at the state surveillance system, they should contact<EMAIL_ADDRESS>with the affected files message ID or accession number and the O&O team will investigate the cause of failure and work with the sender to correct and resubmit.  This takes the burden off of the state for chasing down issues with the sender.  This the data is so heavily validated before moving to production, this has not been an issue thus far (knocking on wood).  I explained this to Nancy in my email as well.
thank you for capturing the new workflow @BerniXiongA6 . I think we can go ahead and close this out now.


Windows showing back button without anything on the stack!

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Native back button shown on window even thought nothing is on the stack
Expected behavior:
No back button shown
Steps to reproduce:
Install latest nightly, run app on windows
Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.0
Xcode version: Not installed

Hello! While we appreciate you opening an issue with us i am going to close this issue and ask that you open a new one that has the issue template filled out please. Thanks for using Ionic!


Module 2.3 Assignment

👋Please give this assignment another try. You should have a pull request where you update the module 2.3 file.

Great job creating the assignment-edit branch.

For your next step, try creating that branch again and pushing it up to GitHub. There should be differences from master on that branch due to the changes you've made.
Go to https://github.com/Campus-Advisors/campus-advisor-training-MrLeeABCIS/pulls to open a Pull Request. Click New Pull Request
Make sure base is set to master and compare is set to your new branch

You can re-watch the video on how to do this here


To disable WebNotification for Crosswalk for Android

Building with "-Ddisable_notifications=1" reduces size by 68K.
The 'notifications' is an independent module in 'modules' folder.

@d0ngjun
It's the clean patch cherry-picked to crosswalk-lite branch.

@d0ngjun

@halton,  please merge this patch, since the corespondent part in 'chromium' is merged already.


I install luafilesystem ,but when I run openresty is error

nginx: [error] init_by_lua_file error: lua/ngx_base/resty/utils/lfs_help.lua:16: module 'lfs' not found:
no field package.preload['lfs']
no file 'lua/lfs.lua'
no file 'lua/ngx_base/lfs.lua'
no file 'lua/ngx_base/resty/utils/lfs.lua'
no file 'lua/modules/lfs.lua'
no file '/usr/local/share/lua/5.1/lfs.lua'
no file '/opt/openresty/nginx/lualib/'
no file '/opt/openresty/site/lualib/lfs.ljbc'
no file '/opt/openresty/site/lualib/lfs/init.ljbc'
no file '/opt/openresty/lualib/lfs.ljbc'
no file '/opt/openresty/lualib/lfs/init.ljbc'
no file '/opt/openresty/site/lualib/lfs.lua'
no file '/opt/openresty/site/lualib/lfs/init.lua'
no file '/opt/openresty/lualib/lfs.lua'
no file '/opt/openresty/lualib/lfs/init.lua'
no file './lfs.lua'
no file '/opt/openresty/luajit/share/luajit-2.1.0-beta3/lfs.lua'
no file '/usr/local/share/lua/5.1/lfs.lua'
no file '/usr/local/share/lua/5.1/lfs/init.lua'
no file '/opt/openresty/luajit/share/lua/5.1/lfs.lua'
no file '/opt/openresty/luajit/share/lua/5.1/lfs/init.lua'
no file '/opt/openresty/site/lualib/lfs.so'
no file '/opt/openresty/lualib/lfs.so'
no file './lfs.so'
no file '/usr/local/lib/lua/5.1/lfs.so'
no file '/opt/openresty/luajit/lib/lua/5.1/lfs.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
lua/ngx_base/resty/utils/lfs_help.lua:16: in main chunk
[C]: in function 'require'
lua/ngx_base/conf/base_config.lua:18: in main chunk
[C]: in function 'require'
./lua/nginx_init_by_lua.lua:35: in main chunk

please close this issue, since you created 2 the same ones.


Expose av_frame_make_writable

Overview
I'm currently decoding some vp9 video, modifying it's frames, and writing that back out. Because I am modifying the plane data in place, it corrupts subsequent frames since the decoder keeps previous frames around so it can apply inter-frame (de)compression. FFmpeg provides av_frame_make_writable to support this use case (basically it just copies the plane data if you don't own it)
Existing FFmpeg API
av_frame_make_writable
Expected PyAV API
I would expect a frame.make_writable()
Example:
for frame in cont.decode(video=0):
    frame.make_writable()
    modify_frame(frame)

Investigation
I called av_frame_make_writable with ctypes, which resolves the problem
Reproduction
import av
import ctypes
import numpy

# this is horrible -- do not do this
class ctAVFrame(ctypes.Structure):
	_fields_=[
		("_ob_head", ctypes.c_byte * object.__basicsize__),
		("vtable", ctypes.c_void_p),
		("ptr", ctypes.c_void_p),
	]
_av_frame_make_writable = ctypes.CDLL(av.video.frame.__file__).av_frame_make_writable
_av_frame_make_writable.argtypes = (ctypes.c_void_p, )
_av_frame_make_writable.restype = ctypes.c_int
def av_frame_make_writable(frame: av.VideoFrame):
	_av_frame_make_writable(ctypes.cast(id(frame), ctypes.POINTER(ctAVFrame)).contents.ptr)

in_cont = av.open("./input.webm")

out_cont = av.open(f"output.mkv", "w")
tmpl = in_cont.streams.video[0].codec_context
out_stream = out_cont.add_stream("libx264", tmpl.rate)
out_stream.options["preset"]="ultrafast"
out_stream.options["crf"]="28"
out_stream.width = tmpl.width
out_stream.height = tmpl.height
out_stream.pix_fmt = tmpl.pix_fmt
out_stream.thread_type = "AUTO"

for i, frame in enumerate(in_cont.decode(video=0)):
	if i % 20 == 0:
		# without this there is significant error
		# av_frame_make_writable(frame)
		numpy.frombuffer(frame.planes[0]).fill(0)

	out_cont.mux(out_stream.encode(frame))

	if i > 2000:
		break

out_cont.mux(out_stream.encode(None))
out_stream.close()

I was running this on a vp9 video from yt-dlp (though I would expect this to happen to anything with interframe compression). With the fix commented out there is significant amounts of error in the output.
Versions

OS: Arch Linux
PyAV runtime:

PyAV v12.1.0
library configuration: --disable-static --enable-shared --libdir=/tmp/vendor/lib --prefix=/tmp/vendor --disable-alsa --disable-doc --disable-libtheora --disable-mediafoundation --disable-videotoolbox --enable-fontconfig --enable-gmp --enable-gnutls --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libspeex --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libxml2 --enable-lzma --enable-zlib --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libx265 --enable-libxvid --enable-gpl
library license: GPL version 3 or later
libavcodec     60. 31.102
libavdevice    60.  3.100
libavfilter     9. 12.100
libavformat    60. 16.100
libavutil      58. 29.100
libswresample   4. 12.100
libswscale      7.  5.100

PyAV build:
binary wheel
FFmpeg:
binary wheel

Additional context
It would be nice if av_frame_clone was exposed too, though I'm not sure if exposing it as .clone() makes particular sense, since it does not clone the actual plane data

@abextm What use case do you expect if av_frame_clone() is exposed?

In my case I was doing detection on some video and if the frame hit a case it would write it to an output stream. If it only was a marginal hit, I would also write it to a second output with some debugging data overlaid on top of it. Without av_frame_clone order becomes important because I have to write the unmodified frame before the drawing onto debug frame, which is sort of annoying. With av_frame_clone I could just clone, make_writable, then do whatever without affecting the non-debug feed.


refactor: command() in Common function

Description
Improvement.
Benchmark
Test 		Time 	Memory
command_new() 	11.8162 	2 MB
command() 	12.5120 	0 Bytes

<?php

namespace App\Controllers;

use CodeIgniter\Debug\Iterator;

class Home extends BaseController
{
    public function index(): string
    {
        $iterator = new Iterator();

        $iterator->add('command_new()', static function () {
            for ($i = 0; $i <= 10; $i++) {
                command_new('env');
            }
        });

        $iterator->add('command()', static function () {
            for ($i=0; $i <= 10; $i++) {
                command('env');
            }
        });

        return $iterator->run(40000);
    }
}

Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[x] Conforms to style guide

Latest in 427f2a6a

Benchmarking on macOS shows things are getting very slow.
Why?
Test 		Time 	Memory
command_new() 	0.0203 	0 Bytes
command() 	0.0004 	0 Bytes

<?php

namespace App\Controllers;

use CodeIgniter\Debug\Iterator;

class Home extends BaseController
{
    public function index(): string
    {
        $iterator = new Iterator();

        $iterator->add('command_new()', static function () {
            command_new('env');
        });

        $iterator->add('command()', static function () {
            command('env');
        });

        return $iterator->run(10);
    }
}

I have already benchmark on 2 PC windows, new better then old.
@kenjis What a result when run more iterator?

Running on macOS with M2, shows similar results with @kenjis
<?php

namespace App\Controllers;

use CodeIgniter\Debug\Iterator;

class Home extends BaseController
{
    public function index(): string
    {
        $iterator = new Iterator();

        $iterator->add('command_new()', static function () {
            command_new('env');
        });

        $iterator->add('command()', static function () {
            command('env');
        });

        return $iterator->run(40000);
    }
}

On 10 runs:

Test	        Time	Memory
command_new()	0.0059	0 Bytes
command()	0.0002	0 Bytes

On 1,000 runs:

Test       	Time	Memory
command_new()	0.0275	0 Bytes
command()	0.0169	0 Bytes

On 2,000 runs:

Test	        Time	Memory
command_new()	0.0432	0 Bytes
command()	0.0331	0 Bytes

On 4,000 runs:

Test	        Time	Memory
command_new()	0.0750	0 Bytes
command()	0.0666	0 Bytes

On 40,000 runs:

Test        	Time	Memory
command_new()	0.6287	0 Bytes
command()	0.6578	0 Bytes

I removed the for loop inside the closure as the iterator itself loops the closure already.

Running with the loop inside the closure:
<?php

namespace App\Controllers;

use CodeIgniter\Debug\Iterator;

class Home extends BaseController
{
    public function index(): string
    {
        $outputs = [];
        $template = 'On %s runs:
';

        foreach ([10, 1000, 2000, 4000, 40000] as $run) {
            $outputs[] = sprintf($template, number_format($run));

            $iterator = new Iterator();
            $iterator->add('command_new()', static function () {
                for ($i = 0; $i <= 10; $i++) {
                    command_new('env');
                }
            });
            $iterator->add('command()', static function () {
                for ($i = 0; $i <= 10; $i++) {
                    command('env');
                }
            });

            $outputs[] = $iterator->run($run);
            $outputs[] = '
';
        }

        return implode("\n", $outputs);
    }
}

On 10 runs:

Test
Time
Memory

command_new()
0.0176
0 Bytes

command()
0.0020
0 Bytes

On 1,000 runs:

Test
Time
Memory

command_new()
0.1605
0 Bytes

command()
0.1714
0 Bytes

On 2,000 runs:

Test
Time
Memory

command_new()
0.3197
0 Bytes

command()
0.3409
0 Bytes

On 4,000 runs:

Test
Time
Memory

command_new()
0.6282
0 Bytes

command()
0.6774
0 Bytes

On 40,000 runs:

Test
Time
Memory

command_new()
6.2965
0 Bytes

command()
6.7474
0 Bytes

When the iteration is very small, command() is much, much faster. Why?

If I quit almost all applications except terminal, and disables Xdebug.

Test
Time
Memory

command_new()
0.0045
0 Bytes

command()
0.0040
0 Bytes

But if I am running Firefox and PhpStrom, the values sometime differ a lot like:

Test
Time
Memory

command_new()
0.0059
0 Bytes

command()
0.0293
0 Bytes

<?php

namespace App\Controllers;

use CodeIgniter\Debug\Iterator;

class Home extends BaseController
{
    public function index(): string
    {
        $iterator = new Iterator();

        $iterator->add('command_new()', static function () {
        });

        $iterator->add('command()', static function () {
        });

        return $iterator->run(40000);
    }
}

However, such micro-optimization would have little or no effect on performance improvement in the real world.
I cannot assume that command() will be executed many times in a request.

[!IMPORTANT]
We expect all code changes or bug-fixes to be accompanied by one or more tests
added to our test suite to prove the code works.

This PR does not have the necessary test code. If you want this PR to be reviewed, please add the test code.
See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#unit-testing
If the test is not added, this PR will be closed.


Nameset gutter width

It's nice to have smaller gutters on mobile and it would be great to be able to nameset these so a gutter with is tied to a grid.

+1 that would be very useful, indeed


auto-test emitter by ffplay if possible

change the manual test to trying automated test

Nice idea but I prefer to leave the choice to the user. For example, I think that many people prefer to do the test with howdy test
Sorry, I'm not going to do this merge
But thank you for your involvement

Never mind. I use ffplay because howdy must be run as superuser.This makes me need to be authenticated using sudo howdy test. And howdy also uses python, which makes it difficult to kill its process. In my case, kill $! doesn't work, and it seems need to use killall python instead of killall howdy because there's no process name howdy. Leaving it up to users to choose is great, but sometimes people don't want to open a new window.
I noticed that using ffplay would pause my desktop rendering. That's a problem.


Crashing when joining to a server

Version of Advanced Rocketry
1.12.2-1.4.1-1
Have you verified this is an issue in the latest unstable build
Y,N, N/A
Version of LibVulpes
LibVulpes-1.12.2-0.3.0-44
Version of Minecraft
1.12.2
Crash report or log (if applicable)
crash-2018-11-24_22.44.48-client.txt
Description of the problem
I had update the mod today and this happens when i join the server i crash im not sure what going on here

The log you posted here is for version 1.4.1.-1, which is a very old build, the latest is 1.4.1-113.  Would you be able to try that build?  Secondly, I see you're using sponge.  Advanced rocketry does not support sponge all that well since they modify a lot of things.  I know there's some activity going on here that may be related though
https://github.com/zmaster587/AdvancedRocketry/issues/1439

Это та же ошибка.  #1415 and #1433

I saw the latest release on CurseForge is indeed version 1.4.1-1, uploaded on Novenber 16th.

Yea on the curseforge i click download latest and that was it that it gave me very confuse

@JoeSGT @takarabako Sorry, the workaround for sponge was not meant to be uploaded to curse and messed with the versioning system.

Looks like it happen to another player of mine i had compile it this commit and use the jar for testing it fix few other player but other are still having the issue https://github.com/zmaster587/AdvancedRocketry/commit/96d54b071c819bd0d01b2cf6654f69b0e91744b0
crash-2018-11-25_20.33.57-client.txt

Also i hope this is more information on the error
https://pastebin.com/raw/kjw42M4a

okay it seem if any of my players are in their space stations or anything within space they crash only way to prevent them from crashing when joining is when i teleported them back to spawn point which is in the overworld

okay it seem if any of my players are in their space stations or anything within space they crash only way to prevent them from crashing when player joining then when i teleported them back to spawn point which is in the overworld

Since you are using sponge, see #1439. You need to compile sponge_login_fix branch for you server, and apply some additional code fix mentioned down in the comment to the client jar to make it fully working.

@takarabako i manage to get someone to edit the mod using your code it work can confirm that thanks you also @zmaster587 why won't you use his code to fix these issues?

Here's my attempt at compiling Advanced Rocketry from the 1.12.2 branch along with the following patches applied for anyone else that needs it:

https://gist.github.com/takarabako/b5c6c2a93e9f25063b90d3e82ac61b59
https://github.com/zmaster587/AdvancedRocketry/commit/2159fac300281c49ae33e15afd731df2b49d0b36

Literally all I've tested is that it boots and that I can enter singleplayer, use at your own risk. If your PC explodes, dog dies or thermonuclear war breaks out because of it, I am not responsible. MAKE A BACKUP.
AdvancedRocketry-1.12.2-1.4.1-UNSUPPORTED-universal.zip
If I forgot to apply a patch please let me know.

@JoeSGT It's more a workaround for a bug in sponge that does not exist with standard forge as opposed to an issue in AR.  I've also not yet had the time to vet and make sure that it doesn't break stuff in installations where sponge does not exist.  Changing the order in which packets are sent during initial connection is not exactly a trivial change and is not something I can just throw at people without testing in a variety of environments.

@JoeSGT Looks like sponge have fixed the issue and already compiled a new build on their website. Now we don't need these workarounds :)

Going to try it


Icons should have transparency.

VSCode Version: 1.3.1
OS Version: Debian Stretch

The icon (twisted), should have transparent background in the mid of the twist, which makes it feel like visible through the eye of the logo. Currently, it is white. #

This is also an issue on macOS...

This is especially true considering the "Zoom" effect on the macOS Dock and the fuzzy background in the macOS full screen "Application Launcher".

Thanks for the feedback. We're working on improving the application icon for VS Code. See this blog post for more details: https://blogs.msdn.microsoft.com/visualstudio/2017/03/08/iterations-on-infinity/

@stevencl ,
Interesting enough, reading through the article you sent mer, I noticed that - on Windows - neither the white border nor the white "eyes" appear on any of the icons.
For example in the Start menu the icons are all single color, and also when used as a folder icon, there's no white border or eyes to be found.
B.

We updated our icon, please see: https://code.visualstudio.com/blogs/2017/10/24/theicon


Update Chinese translations for the new version

Updated the Chinese translation file according to the latest English one.
Also added names of the three new items (logistics-distributor, logistics-bot and quantum-chemical-plant) in DSP.

Guess I'm glad I haven't merged this yet.
Do you consider it to be ready at this point?

@dcbroad3 Yes, I'm sorry I haven't tested it locally earlier. Now I'm confident it's ok to merge.

I'll try to check it out tonight. Surprised the one tooltip change was necessary..

But why minify the JSON? I think minifying makes it harder to see the changes in these files.

But why minify the JSON? I think minifying makes it harder to see the changes in these files.

In the case of these files you're probably right. I got accustomed to minifying all JSON files, but these would be valuable to leave unminified. You're welcome to do so although I'm likely to merge your changes today.


Going to Graal

This is the initial work to get out a CLI from this amazing sbt-plugin 😄 .
Motivations

extract the current version in hybrid or even completely non-sbt projects, but remaining completely compatible with the versioning scheme used in sbt projects
extract the version easily in CI environment without the need to spin up Sbt and mangle the output

How
This project got separated in 3 parts:

the core implementation
a cli using the core
an sbt-plugin using the core

Missing
If we agree on moving on with this, I'm looking forward to guidance on how/where to build the binaries and publish.
(in case I have already a good setup almost ready for GH Actions)

Cleaning up my open PRs, @dwijnand do you agree to close this one?

Yep


Fixed the CloudFormation UpdateProvisioningTemplate API

Fixed the UpdateProvisioningTemplate API so that it includes the preProvisioningHook parameter.
Issue #, if available: https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iot/issues/10
Description of changes:
When updating a provisioning template in CloudFormation the preProvisioningHook hook parameter was being ignored because it is missing from the sources.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Fixed in https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iot/commit/be69bfe93bbcf0248ed6f49232b5b895578e16a1


WIP: do not merge

Cherry-pick of https://github.com/kedacore/keda/pull/5859

/remove-lifecycle stale

/remove do-not-merge/work-in-progress

/lgtm


Fully expand macros

Now that quote has an implementation, maybe it makes since to explore using Macro.expand from Translator.translate.

No longer need to do this I don't think. AST is expanded at areas where it makes sense.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_10ndtaxe8f/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_10ndtaxe8f/clone/recipe/meta.yaml:23: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_10ndtaxe8f/clone/recipe/meta.yaml:56: missing_pip_check: For pypi packages, pip check should be present in the test commands
ERROR: /tmp/abs_10ndtaxe8f/clone/recipe/meta.yaml:68: missing_license_family: The recipe is missing the about/license_family key.
WARNING: /tmp/abs_10ndtaxe8f/clone/recipe/meta.yaml:68: missing_description: The recipe is missing a description
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_ee19zaja1f/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_ee19zaja1f/clone/recipe/meta.yaml:23: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_ee19zaja1f/clone/recipe/meta.yaml:56: missing_pip_check: For pypi packages, pip check should be present in the test commands
WARNING: /tmp/abs_ee19zaja1f/clone/recipe/meta.yaml:68: missing_description: The recipe is missing a description
ERROR: /tmp/abs_ee19zaja1f/clone/recipe/meta.yaml:68: missing_license_family: The recipe is missing the about/license_family key.
Errors were found


[cluster] NotInfluenceReceiveTimeout in the Cluster ?

Hi !
Wondering if there's a way to implement a message that doesn't influence the grain timeout ?
Similar to NotInfluenceReceiveTimeout?

@otherview Hi, thank you for asking! = )
I think you should just add NotInfluenceReceiveTimeout function to that message type, and should be OK. Since it’s an interface, as long as your object matched NotInfluenceReceiveTimeout interface, the message won’t affect timeout.

hmm.. to be honest I thought it wouldn't work and didn't try it !
Let me give it a go tomorrow and I'll post some results!
Thanks @PotterDai !

Was looking more into this.
The magic happens here:
https://github.com/AsynkronIT/protoactor-go/blob/f81631684a62bfb0a9f3bf4170f4802d43174501/actor/actor_context.go#L420-L428
And it works fine for actors because we usually define the messages that we're passing around.
However in the cluster, we gRPC the message into a structure https://github.com/AsynkronIT/protoactor-go/blob/3a8d8611c9ecd2ed98b696b18b311185aff079ac/cluster/protos.proto#L14-L17
All the messages we pass along in the cluster will have that type. Maybe if we add something to the cluster.GrainRequest and check it in the _, influenceTimeout = md.(NotInfluenceReceiveTimeout)
That would work ?

@otherview  Hmm, I think you are right! Sorry that I mislead you in previous post! This feature is not supported in Cluster it seems. This is going to be tricky since adding only this parameter to GrainRequest seems to be a bit overwhelming... perhaps we should introduce some parameters in Protobuf's code-gen, then it will call CancelReceiveTimeout() in Receive func, and create a new one? Actually how did you set the timer in Grains?

@otherview hmmm this is going to need some change. For now I came with same path like you
message GrainRequest {     int32 request_type = 1;     int32 method_index = 2;     bytes message_data = 3; }
And add func (*GrainRequest) NotInfluenceReceiveTimeout() {  }  which will return true/false according to request_type  .


add toJson(Sink*) variant

Add a Slice::toJson() overload that allows dumping into a Sink.

Coverage increased (+0.005%) to 96.414% when pulling a996db960a0b5ebc057a254895708d2cfcd2bed1 on feature/to-json-with-sink into 794efb7c38c144a819284e8b47432729421a5c42 on main.


Waves of nomads go across civilizations

For some reason (I think disease is causing this) there's always a colony that's inside of another one and makes waves inside of it, almost like conway's game of life

 they are mowing down entire chunks of land and then get their children mowed down
 (once i think about it, that continent does look like a dancer lol)
something I could recommend to fix this is to make the extremely young have a low amount of strength, but soon they adopt the strength that their parent had

Bump

You gonna respond?

I don't plan working on this project anymore


Feature request: separate formatting rules for nested statements

Hi.
I would like to have an option for existing rules or completly separate rules for nested method calls, value statements etc.
For example I would like to have alignment like this:
  DATA(lo_foo) = NEW lcl_foo(
    iv_parameter1 = abap_true
    iv_parameter2 = abap_false
  ).
  DATA(lo_bar) = NEW lcl_bar(  ).

  DATA(lv_foor_result) = lo_foo->foo_method(
    iv_parameter1 = abap_true
    iv_parameter2 = abap_false
    iv_parameter3 = VALUE #( field1 = abap_true
                             field2 = abap_false )
    iv_parameter4 = lo_bar->bar_method( iv_parameter1 = abap_true
                                        iv_parameter2 = abap_false )
  ).

  lo_foo->foo_method(
    iv_parameter1 = abap_true
    iv_parameter2 = abap_false
    iv_parameter3 = VALUE #( field1 = abap_true
                             field2 = abap_false )
    iv_parameter4 = lo_bar->bar_method( iv_parameter1 = abap_true
                                        iv_parameter2 = abap_false )
  ).
  DATA(lv_test2) = VALUE lts_struct(
    field1 = abap_true
    field2 = abap_false
  ).

  DATA(ls_test) = VALUE lts_struct(
    field1 = lo_foo->foo_method(
               iv_parameter1 = abap_true
               iv_parameter2 = abap_false
               iv_parameter3 = VALUE #( field1 = abap_true
                                        field2 = abap_false )
               iv_parameter4 = lo_bar->bar_method( iv_parameter1 = abap_true
                                                   iv_parameter2 = abap_false ) )
    field2 = lo_bar->bar_method( iv_parameter1 = abap_true
                                 iv_parameter2 = abap_false )
  ).

  INSERT VALUE #(
    field1 = abap_true
    field2 = abap_false
  ) INTO TABLE lt_table.

Right now the closest looking thing I configured is this:
  DATA(lo_foo) = NEW lcl_foo( iv_parameter1 = abap_true
                              iv_parameter2 = abap_false ).
  DATA(lo_bar) = NEW lcl_bar( ).

  DATA(lv_foor_result) = lo_foo->foo_method(
      iv_parameter1 = abap_true
      iv_parameter2 = abap_false
      iv_parameter3 = VALUE #( field1 = abap_true
                               field2 = abap_false )
      iv_parameter4 = lo_bar->bar_method(
          iv_parameter1 = abap_true
          iv_parameter2 = abap_false ) ).

  lo_foo->foo_method(
      iv_parameter1 = abap_true
      iv_parameter2 = abap_false
      iv_parameter3 = VALUE #( field1 = abap_true
                               field2 = abap_false )
      iv_parameter4 = lo_bar->bar_method(
          iv_parameter1 = abap_true
          iv_parameter2 = abap_false ) ).
  DATA(lv_test2) = VALUE lts_struct( field1 = abap_true
                                     field2 = abap_false ).

  DATA(ls_test) = VALUE lts_struct( field1 = lo_foo->foo_method(
                                        iv_parameter1 = abap_true
                                        iv_parameter2 = abap_false
                                        iv_parameter3 = VALUE #( field1 = abap_true
                                                                 field2 = abap_false )
                                        iv_parameter4 = lo_bar->bar_method(
                                            iv_parameter1 = abap_true
                                            iv_parameter2 = abap_false ) )
                                    field2 = lo_bar->bar_method(
                                        iv_parameter1 = abap_true
                                        iv_parameter2 = abap_false ) ).

  INSERT VALUE #( field1 = abap_true
                  field2 = abap_false )
         INTO TABLE lt_table.

Main used rules are:
"Close brackets at line end"
"Align parameters and components" with configuration:

To clarify - there is no way (or i missed it) to:

control alignment of VALUE and similar statements like with "Functional call continue behind the call for up to X parameters" for methods
align closing brackets on new line for top statements and on line end for nested statements
always allow parameters left to assignment operator for top statements and never allow them for nested statements
align different number of method parameters behind functional call in top and nested statements

I propose the following additional options:
Rule "Close brackets at line end":

Rename it to something like "Align closing brackets" and add two options:
Top statemets - possible values "at line end" "at new line" "keep as is"
Nested statements - possible values "at line end" "at new line" "keep as is" "same as top"

Rule "Align parameters and components"

Additional option "top VALUE statement (etc.): continue behind open bracket for up to X components"
Additional option "nested VALUE statement (etc.): continue behind open bracket for up to X components"
Split the option "Allow line starts left of assignment operator" into two options for top and nested statements
Split the option "Functional call: continue behind the call for up to X parameters" into two options for top and nested statments

Hi Lightirius,
thanks for this thorough proposal! I must admit, I'm not quite sure which way to go:

on the one hand, particularly regarding the closing parentheses, I know some colleagues who favor this style, including some that have given clean code a lot of thought.
on the other hand, this goes against several agreed styleguide rules (Close brackets at line end – Keep parameters behind the call – If you break, indent parameters under the call – Indent and snap to tab regarding 4 spaces) and would add a lot of new options and therefore complexity (both on the UI and in the implementation) to this already quite complex rule – and anyway, what would be the argument why top statements should be treated differently from nested statements?

So, maybe a case for "discussion wanted"?
Kind regards,
Jörg-Michael

Hi Jörg-Michael,
I understand that this is a big proposal that will introduce a lot of complexity and most of it goes against the SAP styleguide, so yes it needs a discussion.
My points are mostly subjective. They are based on the preference to minimize the amount of empty space on the left side of the code editor and (subjectively) more cleanly separate top and nested statements. If you strictly follow SAP recommended styleguide - VALUE statements, method calls and similar constructions can be pushed too far to the right. Personally, I see that as a bad style, because it forces you to constantly look to the right. ABAP is already somewhat verbose and some lines are already long.
As an example, there can be a VALUE statement for some BAPI structure. They can have A LOT of fields, so we have each field on a separate line. If you use inline declarations it can move all of the code too far to the right for the next 10-50 lines.
Somewhat exaggerated example, that fits into the recommended 120 columns limit:
  DATA(really_specific_variable_name) = VALUE zcl_class_with_types=>really_specific_type_name( fieldname1 = value1
                                                                                fieldname2 = value2
                                                                                fieldname3 = value3
                                                                                fieldname4 = value4
                                                                                fieldname5 = value5
                                                                                fieldname6 = value6 ).

Right now in ABAP cleaner we already have some options that go against SAP styleguides and I don't think that some optional deviations are bad.
For example, for method calls we already have configurable number of parameters to keep after the call, I don't see why not add an extra parameter for other constructions like VALUE NEW etc. It can be a simple checkbox "apply to VALUE and similar statements"
The point about closing bracket on the new line - In my opinion it allows you to clearly see the end of the long statement, but for nested statements it is too much, hence separate rules.
Points about the complete separation of rules for top and nested statements is mostly fine-tuning, and they might be too complex to implement\maintain\configure. (They are still less complex than some formatting tools for other languages)
Minimally, I would really love to see these options added:

Add ability to control the amount of components behind the open bracket for VALUE, NEW, etc. statements, similar to "Functional call continue behind the call for up to X parameters"
Apply "Allow line starts left of assignment operator" to VALUE, NEW, etc, statements (Can't test right now, but it might already work if long lines are wrapped)
Option to keep the closing bracket on the new line for multiline top statements (aka "the closing bracket with the dot")


expect_any_instance_of(…).not_to receive(…) makes a private instance method public

Subject of the issue
expect_any_instance_of(…).not_to receive(…) or expect_any_instance_of(…).to receive(…) make a private instance method public. expect(…).not_to receive(…) and expect(…).not_to receive(…) work as intended.
Your environment

Ruby versions: 2.3.8, 2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.6, 3.2.4, 3.3.4 (for the latter, the reproducer script has to be changed slightly to account for the changed NoMethodError message)
rspec-mocks version: 3.13.1

Steps to reproduce
Run the following script.
# frozen_string_literal: true

begin
  require "bundler/inline"
rescue LoadError => e
  $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
  raise e
end

gemfile(true) do
  source "https://rubygems.org"

  gem "rspec", "3.13.0" # Activate the gem and version you are reporting the issue against.
end

puts "Ruby version is: #{RUBY_VERSION}"
require 'rspec/autorun'

RSpec.describe 'a private method' do
  let(:klass) do
    Class.new do
      private

      def defined_private_method
      end
    end
  end

  let(:object) { klass.new }

  shared_examples 'behaves like a private method' do
    it 'can’t be called from the outside' do
      expect{object.defined_private_method}.to raise_error "private method `defined_private_method' called for #{object}"
    end

    it 'is included in the list of private methods' do
      expect(object.private_methods).to include :defined_private_method
    end

    it 'is not included in the list of public methods' do
      expect(object.public_methods).not_to include :defined_private_method
    end
  end

  context 'that is not mocked' do
    include_examples 'behaves like a private method'
  end

  context 'mocked with #expect' do
    before do
      expect(object).not_to receive(:defined_private_method)
    end

    include_examples 'behaves like a private method'
  end

  context 'mocked with #expect_any_instance_of' do
    before do
      expect_any_instance_of(klass).not_to receive(:defined_private_method)
    end

    include_examples 'behaves like a private method'
  end
end

Expected behavior
There should be no failures.
Actual behavior
All examples in context 'mocked with #expect_any_instance_of' fail.

Thanks for reporting this, apologies for the delay in looking at it but can you give #1596 a spin to see if it solves your issue?


Fully supporting GitHub codespaces

What are codespaces?
In their latest Satellite, GitHub announced the launch of Codespaces, an online development environment running VSC, fully integrated with GitHub. As the time of writing this, the feature is in public beta. You can read more about it here.
What needs to be done?
I’ve tried this recently to review a PR, it was pretty great, although some manual setup was still required, like installing pipenv, syncing it and installing docker-compose (The docker engine was already included). Thankfully, GitHub is providing a .devcontainer config file, to automate all this process. The documentation is here.

This would be in my interest if I had access to CodeSpaces

Hey @Xithrius I think we should close this for now.
We tried to poll for it in the dev-core channel, but we don't have enough people that can implement and review this feature, due to limited accessibility.
We can reopen it in the future if we do find people.

@HassanAbouelela Very well.


Update mongo document doesn't not throw error if id is not found

Repro steps:

Open a mongo document
Edit _id to an id that doesn't exist
Update to Azure

Expected: Error saying we could not find that id
Actual: No error

When we call updateOne, we need to look at the result of nMatched


delete link to non-existent script

Since webpack.config.js entry section have only 'js/app' chunk name, webpack doesn't bundle 1-vendor.js.

Ok; thank you!


feature-wip support Json reader

Proposed changes
Issue Number: close #12574
This pr adds NewJsonReader which implements GenericReader interface to support read json format file.
TODO:

modify _scann_eof later.
Rename NewJsonReader to JsonReader when JsonReader is deleted.

Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[x] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[x] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[x] No Need

Does it need to update dependencies:

[ ] Yes
[x] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 38.92 seconds
load time: 570 seconds
storage size:<PHONE_NUMBER>0 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221021195440_clickbench_pr_32519.html

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 38.77 seconds
load time: 574 seconds
storage size:<PHONE_NUMBER>3 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221023175947_clickbench_pr_32848.html

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 37.85 seconds
load time: 559 seconds
storage size:<PHONE_NUMBER>8 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221026031737_clickbench_pr_34041.html


reloading sway crashes stuff

Describe the bug
reloading (not restarting) sway's config file causes apps to crash
To Reproduce
Steps to reproduce the behavior:

in sway, run wayland native firefox (firefox-wayland or firefox with MOZ_ENABLE_WAYLAND=1 environmental variable set)
reload sway's configuration (i believe swaymsg reload does this though i do it via a keybinding)
observe firefox disappearing, its stdout contains something like: Gdk-Message: 02:14:11.949: Lost connection to Wayland compositor.

Expected behavior
sway to reload and firefox staying active just like the other open apps
Additional context
found trying to mess with waybar, reproduced by @betaboon who's running the same, though likely not related to that
on freenode #sway someone (presumably not running NixOS) couldn't reproduce this
@primeos is reporting sway itself crashing
Notify maintainers
@primeos @Synthetica9 for sway
Metadata
/nix/store/jdvyrg22d1i8wf3mk5ajw6jr9angcj16-sway-1.4
  nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.7.0-rc4, NixOS, 20.09.git.954fc73349a (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.4`
 - channels(root): `""`
 - channels(evils): `"nixos-20.09pre225673.8ba41a1e149, nixos-stable-20.03.1866.a7c70f2e10b, nixos-unstable-small-20.09pre225882.e4d710b1c94, nixpkgs-20.09pre225882.e4d710b1c94"`
 - nixpkgs: `/home/evils/.nix-defexpr/channels/nixpkgs`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: sway
# a list of nixos modules affected by the problem
module:

That's strange, on my test PC this does even crash Sway itself... :o
Sometimes I can reload Sway once with neither Sway nor Firefox crashing.
This is my debug output from Sway:
2020-05-16 19:58:33 - [xwayland/xwm.c:1305] unhandled X11 event: MappingNotify (34)
[ This message is repeated 45 times! ]
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
[ The xkbcomp error is repeated 27 times! ]
2020-05-16 19:58:33 - [main.c:521] Missing a required Wayland interface
Gdk-Message: 19:58:33.647: Error reading events from display: Broken pipe
2020-05-16 19:58:33 - [common/ipc-client.c:88] Unable to receive IPC response
(EE) failed to read Wayland events: Broken pipe
Gdk-Message: 19:58:33.652: Error 104 (Connection reset by peer) dispatching to Wayland display.
Gdk-Message: 19:58:33.647: Error reading events from display: Broken pipe

I think the XWayland errors are unfortunately normal, but the following error seems interesting:
2020-05-16 19:58:33 - [main.c:521] Missing a required Wayland interface

But I think/hope that this is an upstream issue (most likely in Sway or wlroots) and doesn't just affect NixOS (though it might not affect some other distributions due to e.g. different library versions).

i haven't had sway itself crash
though i just noticed an xwayland app in one of my background workspaces is gone
i may have also had alacritty disappear
so this doesn't seem firefox related, updating issue wording now

i don't think this is stale

yea, definitely still happens
now also crashes sway for me

But I think/hope that this is an upstream issue (most likely in Sway or wlroots) and doesn't just affect NixOS (though it might not affect some other distributions due to e.g. different library versions).

I should have noted that more prominently. I think you should report this bug to Sway directly (unless you think it's Nixpkgs specific of course). Be sure to provide all of the required information: https://github.com/swaywm/sway/blob/master/.github/ISSUE_TEMPLATE/bug_report.md

this seemed like a big enough issue that if it was due to upstream they'd know about it
a quick search does show they have an open issue that sounds similar
https://github.com/swaywm/sway/issues/6247

i recently found this https://major.io/2022/05/24/sway-reload-causes-a-firefox-crash/
TLDR; do not use xkb_numlock without specific device ID (NOT category),
probably applies to other xkb_* options, but xkb_layout seems fine


Parse (and ignore) generics in the middle of ClassRef

Duchess doesn't accept the following class declaration:
java_package!{
    package scala;
    class "None$" {}
}

The reason is that the reflection checks of Duchess try to parse the  javap output of scala.None$, which includes a method declaration that returns a type scala.Option<A>.WithFilter. The parser doesn't like the <A> in the middle of the type. This happens because WithFilter is an inner class of scala.Option<A>.
This PR makes the parser accept and ignore the type arguments in the middle of the path of a type. Since Duchess doesn't currently support nested classes, ignoring those arguments seems acceptable. As a result, the opaque class declaration above works.
I see two future possible improvements:

When the user declares an opaque class (i.e. with an empty body), the reflection checks of Duchess should just parse the class signature in the output of javap (i.e. everything that is before {), not also its body. This way, Duchess would be more robust.
Parsing scala.Option<A>.WithFilter should not throw away the information that scala.Option has type argument A. This is necessary to eventually support nested classes (https://github.com/duchess-rs/duchess/issues/50).

Hmm, ok. Let's do this. Sorry for not noticing this for so long, @fpoli !
I agree with your improvements. Maybe open an issue for that first one in particular?


Clear environment variable 'DatabaseName' prior to Image build

I tried creating an container with the following command:
docker run --name pv2017-demo-w1 -m 4G -e ACCEPT_EULA=Y -e username=xxx -e password=xxxxxx -e ClickOnce=Y -e bakfile="c:\run\my\mysqlbackupfile.bak" -v c:\myfolder:c:\run\my navdocker.azurecr.io/dynamics-nav:2017-cu1

But for some reason it kept using the already installed database.
i then added some debugging code to the scripts and found out that the environment variable was already set in the image and that the scripts check for the existence of this.
I've now added this to my SetupVariables.ps1 to prevent this from happening.
if ($databaseName -eq 'CRONUS') {
    Write-Host "Bugfix: Reset databaseName if env:databaseName is CRONUS"
    Write-Host "        (Assumption that the Environment Variable was already set in VM at build time)"
    $databaseName = ''
}

Now it's happily restoring my backupfile and using that in the resulting container:
Output:
Initializing...
** Notice: Custom SetupVariables.ps1 starting **
** DEBUG: PRE env:databaseName: [CRONUS] **
** DEBUG: PRE databaseName    : [] **
** DEBUG: Default Behaviour databaseName    : [CRONUS] **
Bugfix: Reset databaseName if env:databaseName is CRONUS
        (Assumption that the Environment Variable was already set in VM at build time)
** DEBUG: POST databaseName    : [] **
Disabling Password Complexity Requirements
** Notice: Custom SetupVariables.ps1 completed **
Running Specific Image
Starting Local SQL Server
Using NavUserPassword Authentication
Using Database .bak file 'c:\run\my\mysqlbackupfile.bak'
Modify NAV Service Tier Config File for Docker
Hostname is 9f88718660a7
.
.
.

Yeah, I can see why this is happening. I will fix this.

I think a better fix to SetupVariables is:
$bakfile = "$env:bakfile"
if ($bakfile -ne "") {
$databaseServer = "localhost"
$databaseInstance = ""
$databaseName = ""
} else {
$databaseServer = "$env:databaseServer"
$databaseInstance = "$env:databaseInstance"
$databaseName = "$env:databaseName"
if ($databaseServer -eq "") {
$databaseServer = "localhost"
}
}
Meaning that if you specify a bakfile, you are running the local Sql Server.
In case you want to use a bakfile and a different SQL Server, you should restore the bakfile manually and specify databaseServer, Instance and Name to the Docker run command.

FIx checked in - specific images will be rebuild over the next days.


Split some helper functions from load_gltf

Checklist

[ ] cargo clippy reports no issues -- The one clippy issue is unrelated to this change
[ ] cargo deny issues have been fixed or added to deny.toml
[ ] relevant examples/test cases run
[ ] changes added to changelog

[ ] Add credit to yourself for each change: Added new functionality @githubname.

Problems PR Solves
The load_gltf is adding all the nodes straight to the scene, but often it is desired to just have the meshes be available, and then added in code to the scene as needed.
Related Issues

Now, I did not check any complicated gltf scenes, so I hope I didn't break any hierarchies there :)


[Doc] Is there any CHANGELOG.rst or Migrating Guide? (IDFGH-2147)

I'm migrating our project from 3.x to 4.x, but there is no document about it, at least it's not easyly found as in most projects on GitHub.

@keelung-yang Thanks for reporting, would you please help take a look at the release notes? Thanks.

@keelung-yang Thanks for reporting, would you please help take a look at the release notes? Thanks.

@Alvin1Zhang I checked, it helps although far away from a migrating guide. But I almost finished my migrating work. Thanks!

Thanks for the reporting and feedback, could this ticket be closed? Thanks.

https://docs.espressif.com/projects/esp-idf/en/stable/api-guides/build-system-cmake.html#migrating-from-esp-idf-gnu-make-system

https://docs.espressif.com/projects/esp-idf/en/stable/api-guides/build-system-cmake.html#migrating-from-esp-idf-gnu-make-system

Thanks for your url. It did help. Seems migrating guides are seperated by topics.


feat: Add cursor movement when performing refactor

@ThePrimeagen Adding support for cursor movement when performing refactors. It's all dependent on highlighted area however to for extract var in our current tests it's all still 0.

I assume you are correct! :)


about thumos14 label

Hello, in thumbos14, CliffDiving is a subclass of Diving, and the action instances of CliffDiving in the annotation file also belong to Diving. Why don't you use this prior knowledge to remove the action instance of CliffDiving class in the Diving class during training and add a Diving class for each predicted CliffDiving action instance during post-processing?
I think an action instance belonging to two categories may make the training difficult to converge.

Thanks for your suggestion!
In fact, I have noticed some papers on fully-supervised temporal action localization that use such a label engineering technique.
However, to my knowledge, existing weakly-supervised approaches do not use it.
Therefore, we did not adopt it for a fair comparison with the previous works, although it may bring some performance gains.

谢谢你的建议！
事实上，我注意到一些关于全监督时间动作定位的论文使用了这种标签工程技术。
然而，据我所知，现有的弱监督方法并没有使用它。
因此，我们没有采用它来与之前的作品进行公平的比较，尽管它可能会带来一些性能提升。

Thanks for your reply. For the point annotation of Thumos14, SFnet provides four annotation files. Are these four files manually annotated? Is the Thumos 14 point annotation uniformly sampled from the ground truth mentioned in your paper generated by yourself or provided by other papers?

As I have stated in the paper, we used the automatically generated point-level labels that are provided by Moltisanti et al. (CVPR'19).
The point-level labels can be found on their project page, specifically the 'train_df_ts_in_gt.csv' file.

As I have stated in the paper, we used the automatically generated point-level labels that are provided by Moltisanti et al. (CVPR'19).
The point-level labels can be found on their project page, specifically the 'train_df_ts_in_gt.csv' file.

In the paper,you perform experiments about comparing different label distributions:Manual,Uniform and Gaussian. Where did you get the manual and uniform label?

The manual labels are provided by SF-Net, while the Uniform-distributed labels are generated using ground-truth intervals in the dataset construction stage before the training starts.

The manual labels are provided by SF-Net, while the Uniform-distributed labels are generated using ground-truth intervals in the dataset construction stage before the training starts.

I see the SF-Net,but it provides the four single-frame text files. Are these four files manually annotated?Do you use one of the txt files？

All the four files contain manually labeled annotations from different annotators. For selection, we followed SF-Net official code that randomly choose the annotator id for each video in the dataset construction stage.

All the four files contain manually labeled annotations from different annotators. For selection, we followed SF-Net official code that randomly chooses the annotator id for each video in the dataset construction stage.

Thanks for your reply. Have you noticed that there is an annotation file THUMOS2.txt that the video of CliffDiving class is not marked with its parent class Diving? But in other annotation files, the videos of CliffDiving class still belong to the parent class Diving.

I am not sure whether there are any papers that reduce the Cliffdiving class to the Diving class.
An example of the opposite case is the WTAL-C codebase, which is widely used as the baselines for many other works.
You may check out how others do by navigating their code links here.

I am not sure whether there are any papers that reduce the Cliffdiving class to the Diving class. An example of the opposite case is the WTAL-C codebase, which is widely used as the baselines for many other works. You may check out how others do by navigating their code links here.
Hi,I find the split_test.txt that you provide lacks three videos,for example video_test_0000270.I want to know the reason.

I followed the implementation of STPN, where it is mentioned that the test split of THUMOS'14 is the same with SSN.
In the SSN paper, the authors mentioned that "2 falsely annotated videos (“270”,“1496”) in the test set are excluded in evaluation" and they used only 210 testing videos for evaluation.

I followed the implementation of STPN, where it is mentioned that the test split of THUMOS'14 is the same with SSN.
In the SSN paper, the authors mentioned that "2 falsely annotated videos (“270”,“1496”) in the test set are excluded in evaluation" and they used only 210 testing videos for evaluation.
Thank you very much.

I followed the implementation of STPN, where it is mentioned that the test split of THUMOS'14 is the same with SSN.
In the SSN paper, the authors mentioned that "2 falsely annotated videos (“270”,“1496”) in the test set are excluded in evaluation" and they used only 210 testing videos for evaluation.
Thank you very much.

Hello, I'm sorry to bother you. I am a beginner and would like to ask you why some fully supervised methods, such as actionformer, use feature lengths that are inconsistent with the feature lengths you provide. Is it because i3d uses different sampling rates when extracting features?

I followed the implementation of STPN, where it is mentioned that the test split of THUMOS'14 is the same with SSN.
In the SSN paper, the authors mentioned that "2 falsely annotated videos (“270”,“1496”) in the test set are excluded in evaluation" and they used only 210 testing videos for evaluation.
Thank you very much.

Hello, I'm sorry to bother you. I am a beginner and would like to ask you why some fully supervised methods, such as actionformer, use feature lengths that are inconsistent with the feature lengths you provide. Is it because i3d uses different sampling rates when extracting features?

The feature lengths depend on the sampling rate and the total number of frames. Actionformer adopts a smaller stride of 4 (vs. 16 for ours) with a video fps of 30 (vs. 25 for ours).

Hello, I would like to ask that the point label is frame-level, and the video is divided into 16 frames. So how to apply this point-level classification loss? One is a frame and the other is a segment. Looking forward to your reply.

Thank you for your reply, and I wish you a happy life!

Hello, I would like to ask that the point label is frame-level, and the video is divided into 16 frames. So how to apply this point-level classification loss? One is a frame and the other is a segment. Looking forward to your reply.

The segment, within which the labeled point (frame) falls, is utilized as a positive sample for the point-level loss.

Thank you for your reply, and I wish you a happy life!


Add prefixes function

The function match returns the suffixes/remainder of all words in the trie which match the given input.
>>> let x = 'fromList' [("ham", 1), ("bacon", 2), ("hamburger", 3)]
>>> match "ham" x
(Just 1,fromList [("",1),("burger",3)])

I recently wanted to instead search for all the possible words in the trie which are prefixes of my given input.
>>> let x = 'fromList' [("ham", 1), ("bacon", 2), ("hamburger", 3)]
>>> prefixes "hamburger and fries" x
["ham", "hamburger"]
>>> prefixes "hambur" x
["ham"]

I wonder if this could be added to the library?
Here is an example implementation (though perhaps the return type should be adjusted to [([c], a)]:
-- | Prefixes of given word that appear in the trie, smallest first.
prefixes :: Ord c => [c] -> TMap c a -> [[c]]
prefixes []     _                 = []
prefixes (c:cs) (TMap (Node _ e)) =
  case Map.lookup c e of
    Nothing -> []
    Just t' ->
      let x = (c:) <$> prefixes cs t'
      in  if [] `Trie.member` t' then [c]:x else x

Thank you for the suggestion! I think it's nice to add, probably under a different name (candidate: lookupPrefixes) and type returning [([c],a)] instead of [[c]].

I first thought your prefixes function could be implemented without touching .Internal module by

First, convert the query string to TSet of all of its prefixes, using TSet.singleton and TSet.prefixes (which can be done O(n))
Second, take the intersection of the map being looked up tmap :: TMap c a and TSet of prefixes, by first converting TSet to TMap by TMap.fromTSet

In code:
import qualified Data.Trie.Map as TMap
import qualified Data.Trie.Set as TSet

lookupPrefixes :: Ord c => [c] -> TMap.TMap c a -> [([c], a)]
lookupPrefixes str tmap = TMap.toList $ TMap.intersection tmap strPrefixes
  where
    strPrefixes = TMap.fromTSet (const ()) $ TSet.prefixes $ TSet.singleton str

But it isn't as simple as I've imagined, and probably (I'll test it) isn't as fast as manually-written recursion.