Multiple map references / chain of provenance

Source information for maps is currently stored in the maps.sources table, with a single set of reference information per source. This is convenient for direct data entry, but is a bit limiting in several cases:

If we are entering a map compilation that has been synthesized from previous mapping
If we are entering a map that has been updated or corrected

This is especially a problem for large compilation sources such as the USGS state geologic map compilation. Some mapping in the SGMC has up to three credible references. Only one is in broken out properly, while the rest are incorporated as comments.

We should update our schema to handle multiple references per source, possibly in tandem with better support for itemizing the individual maps that make up large compilation sources.

There will of course still be many compilation/synthesis maps (e.g., continental-scale ones such as the geologic map of North America) where the source information for each map feature is too far removed to be relevant to the final mapping. This is more relevant in the case where maps have been integrated into a generalized source with few changes.

Another example from SGMC:


The shape of the mask [32, 6375] at index 0 does not match the shape of the indexed tensor [204000, 1] at index 0

File "/home/lei/PytorchSSD/layers/modules/refine_multibox_loss.py", line 112, in forward
loss_c[pos] = 0  # filter out pos boxes for now
RuntimeError: The shape of the mask [32, 6375] at index 0 does not match the shape of the indexed tensor [204000, 1] at index 0

@xxlei 你好，我遇到了你一样的问题，请问怎么解决的？

me too!

Exchange the 97, 98 lines in layers/module/multibox_loss.py may help. At least it works for me.


Move the "optional" attribute from TypeReference to Parameter

The specification models the optional attribute of parameters on their TypeReference instead of directly on the parameter. This creates a confusion between nullable and optional.
The specification needs to be modified so optional parameters carry an optional attribute, while TypeReferences carry a nullable attribute.
Related: #230 #284 #295

So I wanted a function like such:
method(anchor: Construct | undefined, realParameter: string, optionalParameter?: string) {
}

Because that method order made most sense (and yet we didn't necessarily have the first argument always available), but this was rejected.
I've had to reorder arguments, which is not a BIG deal but it was suboptimal to my mind.

@rix0rrr I think is a different issue than where we model optionality of parameters. This is basically about nullibility of parameters, which is currently not supported by jsii (and should in my mind). Care to raise a separate issue?

It is, isn't type nullability something that we need to tackle as part of solving this ticket anyway?

it’s a related topic but not the same. This issue is basically just a modeling improvement (move the “optional” indication from the type reference to the parameter/property specification). Nullability is a different attribute of type references which is not the same as optionality.
If at all, nullability should be part of the type-reference while optionality should be part of the consuming specification.


Bug: Vue-Router erroring when vue.js is loaded from

Adding Vue-router to this template is throwing error Unknown custom element: <router-link> and Unknown custom element: <router-view> when the vue.js loaded from  in the HTML page.
The <router-view> is not getting recognized properly.

To reproduce, comment out the import vue line in the main.js and add the   in your HTML page and add some routes.

Please provide at least the full index.html (preferably as it looks in the /dist folder when you ran npm run build) and main.js

Here is the basic code to reproduce the problem. After creating a sample app based on this webpack template, overwrite the content with below:
index.html
<!DOCTYPE html>

    <meta charset="utf-8">
    <title>vue-webpack</title>

main.js

//import Vue from 'vue'

import App from './App'
import Hello from './components/Hello'

Vue.use(VueRouter);
var router = new VueRouter({
	mode: 'history',
	saveScrollPosition: true,
	routes: [
		{ path: '/', component: Hello },
	]
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: h => h(App),
  router: router
})

App.vue
<template>

    <router-view></router-view>

</template>

You should see error
[Vue warn]: Unknown custom element: <router-view> - did you register the component correctly?

Note that both Vue-Router and Vue are loaded from CDN.
If instead of loading through script tag, if you load the vue through import in the main.js it will work fine (with vue-router still being loaded from CDN)
Note sure two copies of vue... reasoning is correct. Because, in both cases vue-router is loading from CDN. Not sure how loading the vue with import will make the vue-router from CDN not load the 2nd copy.
If vue-router needs a copy of vue internally, it will always need it, irrespective of if vue is being loaded from CDN or not. May be something else is going wrong (unless the vue npm version is coming packed with vue-router that is some how overwriting the vue-router from the CDN so as to not create 2 copies)

I'm pretty sure my reasoning is correct. The same thing happens when someone decides to do:
import Vue from 'vue/dist/vue'
because he wants to load the standalone build (why is this  bad idea (read the warning at the end) ?)
Further explanation: Vue-loader needs to import vue as well, to use the template compiler for turning templates into render functions.
It will assume that Vue is imported like this: import Vue from 'vue', and you, therefore, end up with 2 versions of Vue in the bundled result.
In your case, you end up  one version of Vue in the global namespace (from CDN), and one required by vue-loader. The router is added to the first one (used in main.js) while all your .vue components are referring to the second one (bundled with webpack).
So: Don't include Vue (and possibly neither the router) via CDN if you want to use vue-loader.

Also, as a (very important) sidenote: this effect only happens in dev mode, where vue-loader requires 'vue' to be used in HMR:
https://github.com/vuejs/vue-loader/blob/master/lib/loader.js#L220
a production build or a dev build with HMR disabled would be fine. But who wants to develop without HMR? :D

Thanks - the dev vs production info is what was missing. As long as it works in production, its great. Thanks for the external tip. Will look into it. You have been helpful.


Rationalise exceptions

Use exceptions consistently throughout the library, and build a logical hierarchy of them.

Also, translate them into usable messages in the command-line utilities.

Completed with 88bb984b6ed63c5cedf2f1ae229df702c8bcf721


Refactor/esm

This is quite a big mr, but i tried to break down the changes into smaller commits
for actual file changes, can see
https://github.com/firecow/gitlab-ci-local/pull/1331/files/cf5c1ef7d3e5b83d8e2d0f7a14dd2f1ab6a86102..70829967b2091069d88e1ef5057419605bffefea
instead,
since the "ts2esm vooodo" commit is mostly autogenerated

@ANGkeith Can you pull master. I'll review this in this week. I really want to upgrade to ESM :smile:

@ANGkeith Can you pull master again, and I'll put some time into testing this thoroughly


Hyperv User Permissions

I have server 2019. How can I give the user access to a single vm console?

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

The Grant-VMConnectAccess cmdlet grants access to a user or users to connect to a virtual machine or machines. The cmdlet is intended for use in providing other applications with the appropriate permissions required to initiate a session with Virtual Machine Connection. Examples of such applications are Virtual Machine Manager.


Running Server Assumption of Directory

Update Readme to include running the server from the installation direction of TEXT-Language-REST
e.g.
/Users/pramirez/Desktop/Dry Run (Trevor)/TEXT-Language-REST

Updated README instructions.


Exception "Value connot be null"

I receive an exception when trying to run this utility.
note I am using ssh certificates.
me@wsl2_host ~/cat .zshrc | grep wsl2
eval $($HOME/wsl2-ssh-agent)
Do you have any idea what's happening here?
 me@wsl2_host$ ~/ ./wsl2-ssh-agent --verbose --foreground
[L] 2024/03/26 16:30:22 start listening on /home/me/.ssh/wsl2-ssh-agent.sock
[L] 2024/03/26 16:30:22 invoking [W] in PowerShell.exe
[W] 2024/03/26 16:30:23 ssh-agent.exe version: <IP_ADDRESS> (ignoreOpenSSHExtensions: True)
[L] 2024/03/26 16:30:23 [W] invoked successfully
[W] 2024/03/26 16:30:23 ready: PSVersion 5.1.22621.2506
[L] 2024/03/26 16:30:28 ssh: connected
[L] 2024/03/26 16:30:28 ssh -> [L] (5 B)
[L] 2024/03/26 16:30:28 [L] -> [W] (5 B)
[W] 2024/03/26 16:30:28 [W] named pipe: connected
[W] 2024/03/26 16:30:28 [L] -> [W] -> ssh-agent.exe (5 B)
[L] 2024/03/26 16:30:28 [L] <- [W] (9 B)
[L] 2024/03/26 16:30:28 ssh <- [L] (9 B)
[W] 2024/03/26 16:30:28 [L] <- [W] <- ssh-agent.exe (9 B)
[W] 2024/03/26 16:30:28 [W] named pipe: disconnected
[L] 2024/03/26 16:30:42 ssh -> [L] (747 B)
[L] 2024/03/26 16:30:42 [L] -> [W] (747 B)
[W] 2024/03/26 16:30:42 [W] named pipe: connected
[W] 2024/03/26 16:30:42 [L] -> [W] -> ssh-agent.exe (747 B)
[W] 2024/03/26 16:30:42 [W] named pipe: disconnected
wsl2-ssh-agent.ps1: terminated
Exception calling "Write" with "3" argument(s): "Value cannot be null.
Parameter name: buffer"
At line:33 char:5
+                 $ssh_client_out.Write($buf, 0, $buf.Length)
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException

[L] 2024/03/26 16:30:52 failed to read from [W]: read |0: i/o timeout
[L] 2024/03/26 16:30:52 [W] terminated; retry
[L] 2024/03/26 16:30:52 invoking [W] in PowerShell.exe
[W] 2024/03/26 16:30:53 ssh-agent.exe version: <IP_ADDRESS> (ignoreOpenSSHExtensions: True)
[L] 2024/03/26 16:30:53 [W] invoked successfully
[L] 2024/03/26 16:30:53 [L] -> [W] (747 B)
[W] 2024/03/26 16:30:53 ready: PSVersion 5.1.22621.2506
[W] 2024/03/26 16:30:53 [W] named pipe: connected
[W] 2024/03/26 16:30:53 [L] -> [W] -> ssh-agent.exe (747 B)
[W] 2024/03/26 16:30:53 [W] named pipe: disconnected
wsl2-ssh-agent.ps1: terminated
Exception calling "Write" with "3" argument(s): "Value cannot be null.
Parameter name: buffer"
At line:33 char:5
+                 $ssh_client_out.Write($buf, 0, $buf.Length)
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException

@Hill-98 Could you please check this out? Looks like ReadMessage returns null, but I don't see how that could happen. TBH I'm not familiar enough with PowerShell.

I'm not familiar too, but my guess is that it might be because there was an error in ReadMessage, but PowerShell doesn't abort by default when it encounters an error, so $buf gets a null.

@derekmpage Can you try 0.9.2 (the older version) of wsl2-ssh-agent?
https://github.com/mame/wsl2-ssh-agent/releases/tag/v0.9.2
If the problem is not reproduced there, I suspect it is caused by the changes in #7. I guess I'll just have to revert.

No reply, so I'll close it for now. If you find that the issue does not reproduce with 0.9.2, please let me know.


Preparing training scripts for SchNET, PAIN and ANI

Description
I am preparing training scripts for SchNET, PaiNN, and ANI. This PR is the first of a series of refactoring PRs.
Changes to NNPs

NNPs now all inherit from Pytorch Lightning. This avoids keeping track of a Lightning Mixin, separate Lightning classes per NNP and class complexity.
NNPs now all have:

RepresentationLayer (transforms the input)
InteractionLayer (performs the NNP compuation) and
Readout (performs the scatter add operation to obtain molecular properties)

NNPs initialize all used modules internally, streamlining the setup and avoiding system setup mistakes while removing some of the flexibility.

Todos
Notable points that this PR has either accomplished or will accomplish.

[x] training scripts

Status

[ ] Ready to go

Codecov Report

Merging #75 (d61420d) into main (228bc41) will increase coverage by 1.38%.
The diff coverage is 95.11%.

Additional details and impacted files


NRGKick Bluetooth error with bluez 5.66

Describe the bug
I configured NRGKick charger as follows:
chargers:
- type: template
  template: nrgkick-bluetooth
  mac: A8:03:2A:30:B8:66
  pin: 1234
  name: wallbox4

and get the following error message:
sudo evcc -l debug charger
[main  ] INFO 2023/10/20 11:16:48 evcc 0.121.0
[main  ] INFO 2023/10/20 11:16:48 using config file: /etc/evcc.yaml
[db    ] INFO 2023/10/20 11:16:49 using sqlite database: /root/.evcc/evcc.db
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded

Did i something wrong?
Steps to reproduce

...
Configuration details
open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: c0372a0548285409713f5052e40dcaf8688b1eba68b04ccb0f350f5db9470610

interval: 10s # control cycle interval

meters:
- type: template
  template: huawei-dongle-powersensor
  id: 1
  host: <IP_ADDRESS>
  port: 12000
  usage: grid
  modbus: tcpip
  name: grid1
- type: template
  template: huawei-dongle-powersensor
  id: 1
  host: <IP_ADDRESS>
  port: 12000
  usage: pv
  modbus: tcpip
  name: pv2

#meters:
#  - name: my_pv
#    type: template
#    template: huawei-dongle
#    usage: pv

    # Modbus TCP
#    modbus: tcpip
#    id: 1
#    host: <IP_ADDRESS> # Hostname
#    port: 502 # Port

chargers:
- type: template
  template: nrgkick-bluetooth
  mac: A8:03:2A:30:B8:66
  pin: 1234
  name: wallbox4

vehicles:
- type: template
  template: renault
  title: Zoe
  user<EMAIL_ADDRESS>
  password: 'xxx''
  capacity: 50
  name: ev3

loadpoints:
- title: Carport
  charger: wallbox4
  vehicle: ev3
  mode: pv
  phases: 3
  mincurrent: 6
  maxcurrent: 16
  resetOnDisconnect: false

site:
  title: Zuhause
  meters:
    grid: grid1
    pv:
      - pv2

Log details
evcc --log debug
[main  ] INFO 2023/10/20 11:55:40 evcc 0.121.0
[main  ] INFO 2023/10/20 11:55:40 using config file: /etc/evcc.yaml
[main  ] INFO 2023/10/20 11:55:40 starting ui and api at :7070
[db    ] INFO 2023/10/20 11:55:41 using sqlite database: /home/redi78/.evcc/evcc.db
[site  ] INFO 2023/10/20 11:55:43 site config:
[site  ] INFO 2023/10/20 11:55:43   meters:      grid ✓ pv ✓ battery ✗
[site  ] INFO 2023/10/20 11:55:43     grid:      power ✓ energy ✓ currents ✓
[site  ] INFO 2023/10/20 11:55:43     pv 1:      power ✓ energy ✓ currents ✗
[site  ] INFO 2023/10/20 11:55:43   vehicles:
[site  ] INFO 2023/10/20 11:55:43     vehicle 1: range ✓ finish ✓ status ✓ climate ✓ wakeup ✓
[lp-1  ] INFO 2023/10/20 11:55:43 loadpoint 1:
[lp-1  ] INFO 2023/10/20 11:55:43   mode:        pv
[lp-1  ] INFO 2023/10/20 11:55:43   charger:     power ✓ energy ✓ currents ✓ phases ✗ wakeup ✗
[lp-1  ] INFO 2023/10/20 11:55:43   meters:      charge ✓
[lp-1  ] INFO 2023/10/20 11:55:43     charge:    power ✓ energy ✓ currents ✓
[lp-1  ] DEBUG 2023/10/20 11:55:43 phase timer inactive
[lp-1  ] DEBUG 2023/10/20 11:55:43 pv timer inactive
[lp-1  ] DEBUG 2023/10/20 11:55:43 guard timer inactive
[lp-1  ] INFO 2023/10/20 11:55:43 vehicle updated: unknown -> Zoe
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0003] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0004] MapToStruct: invalid field detected *device.Device1Properties.Bonded
WARN[0004] Recovering from panic: send on closed channel
WARN[0004] MapToStruct: invalid field detected *device.Device1Properties.Bonded
[lp-1  ] ERROR 2023/10/20 11:55:44 charger: Pair failed: Authentication Canceled
[server] FATAL 2023/10/20 11:55:44 unlinkat /tmp/evcc: operation not permitted

What type of operating system are you running?
Linux
Version
evcc version 0.121.0

This is typically a mismatch with the BlueZ version. Did this work before in an older evcc release? Could you upgrade your OS?

no - this is the first time i try to use evcc

Could you please check your bluez version?

bluetoothd -v 5.66

seems that manual paring works on terminal
bluetoothctl pair A8:03:2A:30:B8:66 Attempting to pair with A8:03:2A:30:B8:66 [CHG] Device A8:03:2A:30:B8:66 Connected: yes [CHG] Device A8:03:2A:30:B8:66 UUIDs: 00001800-0000-1000-8000-00805f9b34fb [CHG] Device A8:03:2A:30:B8:66 UUIDs: 00001801-0000-1000-8000-00805f9b34fb [CHG] Device A8:03:2A:30:B8:66 UUIDs: e792361a-2c8a-4373-b365-e22c18dc1144 [CHG] Device A8:03:2A:30:B8:66 ServicesResolved: yes [CHG] Device A8:03:2A:30:B8:66 Paired: yes [NEW] Primary Service (Handle 0x0000) 	/org/bluez/hci0/dev_A8_03_2A_30_B8_66/service0006 	00001801-0000-1000-8000-00805f9b34fb 	Generic Attribute Profile [NEW] Characteristic (Handle 0x0000) 	/org/bluez/hci0/dev_A8_03_2A_30_B8_66/service0006/char0007 	00002a05-0000-1000-8000-00805f9b34fb 	Service Changed [NEW] Descriptor (Handle 0x0000) 	/org/bluez/hci0/dev_A8_03_2A_30_B8_66/service0006/char0007/desc0009 	00002902-0000-1000-8000-00805f9b34fb 	Client Characteristic Configuration [NEW] Primary Service (Handle 0x0000) 	/org/bluez/hci0/dev_A8_03_2A_30_B8_66/service000a 	e792361a-2c8a-4373-b365-e22c18dc1144 	Vendor specific [NEW] Characteristic (Handle 0x0000) 	/org/bluez/hci0/dev_A8_03_2A_30_B8_66/service000a/char000b 	fc24f07e-8256-4a18-b0bc-fb1aa922c7de 	Vendor specific [NEW] Descriptor (Handle 0x0000) 	/org/bluez/hci0/dev_A8_03_2A_30_B8_66/service000a/char000b/desc000d 	00002902-0000-1000-8000-00805f9b34fb 	Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) 	/org/bluez/hci0/dev_A8_03_2A_30_B8_66/service000a/char000e 	ecbb79c5-6972-47ce-abbe-787a003c4f5d 	Vendor specific Pairing successful

should i install a previous version?

5.65 should work, see related issue.

i think i need little help. do you have command for downgrade to this version for raspberry pi os lite?

Closing here until support for 5.66 is merged upstream.

 Newer models (2022 onwards) are known not to work with evcc.
Further info: Link


Uncaught TypeError: editor.displayBuffer.getScrollTop is not a function

[Enter steps to reproduce below:]

...
...

Atom Version: 1.1.0
System: Microsoft Windows 7 Enterprise
Thrown From: atom-typescript package, v7.6.2
Stack Trace
Uncaught TypeError: editor.displayBuffer.getScrollTop is not a function
At C:\Users\A175976\.atom\packages\atom-typescript\dist\main\atom\tooltipManager.js:49

TypeError: editor.displayBuffer.getScrollTop is not a function
    at showExpressionType (C:\Users\A175976\.atom\packages\atom-typescript\dist\main\atom\tooltipManager.js:49:45)
    at C:\Users\A175976\.atom\packages\atom-typescript\dist\main\atom\tooltipManager.js:40:59

Commands
     -1:37.3.0 core:copy (atom-text-editor.editor.is-focused)
     -1:35.4.0 core:paste (atom-text-editor.editor.is-focused)
  7x -1:32 core:backspace (atom-text-editor.editor.is-focused.autocomplete-active)
     -1:02.4.0 editor:newline (atom-text-editor.editor.is-focused)
  3x -0:57.8.0 core:backspace (atom-text-editor.editor.is-focused.autocomplete-active)
  2x -0:56.1.0 core:move-down (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:55.6.0 core:move-up (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:55.3.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:54.5.0 core:move-right (atom-text-editor.editor.is-focused)
  2x -0:52.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:51.4.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:40.9.0 core:copy (atom-text-editor.editor.is-focused)
     -0:40 core:paste (atom-text-editor.editor.is-focused)
     -0:21.2.0 core:copy (atom-text-editor.editor.is-focused)
     -0:18.2.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:17.8.0 core:paste (atom-text-editor.editor.is-focused)

Config
{
  "core": {}
}

Installed Packages
# User
.bin, vundefined
atom-typescript, v7.6.2
linter, v1.9.1

# Dev
No dev packages

Gosh... I am getting this issue to, it won't stop popping up.

Can you confirm that you're using the latest version of Atom and atom-typescript?  Just to be sure we're starting with something clean, we've had reports like this in the past and deleting the atom-typescript folder and reinstalling it seemed to clear it up.

Same problem here.
I updated from 5.2.7 to 8.2 and it fixed it.


Use different WebClient.Builder instances per Retrofit context support non-loadbalancer.

Fixes gh-44.

@OlgaMaciaszek done.

@huahouye Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@huahouye Thank you for signing the Contributor License Agreement!

@OlgaMaciaszek


Anim transition graph

This pull request introduces 1 alert when merging 7b853f0f5b407a3ddfb252a3462f8027b29798a3 into 4ec35653f7449636c97d14c8c26f149488158a15 - view on LGTM.com
new alerts:

1 for Resource not released in destructor

Comment posted by LGTM.com

This pull request introduces 1 alert when merging e409e6bb6661334d3fba8a2296dca777a084ddce into 4ec35653f7449636c97d14c8c26f149488158a15 - view on LGTM.com
new alerts:

1 for Resource not released in destructor

Comment posted by LGTM.com

This pull request introduces 1 alert when merging 6f1e56096d43188c139e8450fcc8a09cd1bb0956 into 4ec35653f7449636c97d14c8c26f149488158a15 - view on LGTM.com
new alerts:

1 for Resource not released in destructor

Comment posted by LGTM.com

This pull request introduces 1 alert when merging fe773e7b9780148950f267488826876bde2bf44c into 4ec35653f7449636c97d14c8c26f149488158a15 - view on LGTM.com
new alerts:

1 for Resource not released in destructor

Comment posted by LGTM.com

This pull request introduces 1 alert when merging 94be8c646af4466958ec1441925e506a7b0df5cd into 4ec35653f7449636c97d14c8c26f149488158a15 - view on LGTM.com
new alerts:

1 for Resource not released in destructor

Comment posted by LGTM.com


Help me fix missing XAML editor in VS 2013 :)

Some time ago i found out that i cannot edit XAML files using visual designer.
Narrowed down problem to this assembly being missing:
Microsoft.Windows.Design.Extensibility, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

Looks like i uninstalled some package with this DLL during one of my cleaning spree, or something.
So can anyone check these locations for "Microsoft.Windows.Design.Extensibility.dll" please?

"Microsoft Visual Studio 12.0" folder, it might be within Common7\IDE folder or its subfolders.
"c:\Windows\Microsoft.NET\assembly" folder (either GAC_MSIL or GAC_32)
"c:\Windows\assembly" folder (either GAC_MSIL or GAC_32)
"c:\ProgramData\Package Cache", it can be inside of cab which is part of some package

I can check in the morning. Just shutdown my comp. If someone else can look
before then that would be cool.
On Jun 7, 2015 1:09 AM, "l0g0sys"<EMAIL_ADDRESS>wrote:

Some time ago i found out that i cannot edit XAML files using visual
designer.
Narrowed down problem to this assembly being missing:
Microsoft.Windows.Design.Extensibility, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Looks like i uninstalled some package with this DLL during one of my
cleaning spree, or something.
So can anyone check these locations for
"Microsoft.Windows.Design.Extensibility.dll" please?

"Microsoft Visual Studio 12.0" folder, it might be within
Common7\IDE folder or its subfolders.
"c:\Windows\Microsoft.NET\assembly" folder (either GAC_MSIL or
GAC_32)
"c:\Windows\assembly" folder (either GAC_MSIL or GAC_32)
"c:\ProgramData\Package Cache", it can be inside of cab which is
part of some package

—
Reply to this email directly or view it on GitHub
https://github.com/EmmittJ/PoESkillTree/issues/139.

Well, fixed it at last.
The key was to run Repair for 3rd time. Looks like saying "third time's a charm" isn't for fun :))

I am facing the same problem while developing a windows phone app. Windows desktop app designer is working without throwing any error and windows phone app is throwing an error as follows:
System.IO.FileNotFoundException
Could not load file or assembly 'Microsoft.Windows.Design.Extensibility, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The bound assembly has a version that is lower than that of the request. (Exception from HRESULT: 0x80132000)
please help. :(

Make sure you have installed all your .net packages.
On Dec 22, 2015 8:08 AM, "pranavjangam57"<EMAIL_ADDRESS>wrote:

I am facing the same problem while developing a windows phone app. Windows
desktop app designer is working without throwing any error and windows
phone app is throwing an error as follows:
System.IO.FileNotFoundException
Could not load file or assembly 'Microsoft.Windows.Design.Extensibility,
Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one
of its dependencies. The bound assembly has a version that is lower than
that of the request. (Exception from HRESULT: 0x80132000)
please help. :(
—
Reply to this email directly or view it on GitHub
https://github.com/EmmittJ/PoESkillTree/issues/139#issuecomment-166661377
.

Yup.checked.everything's alright.. I am trying to solve this problem from last 1 week but still no solution..plz help

This isn't really related to this application. You could try stack overflow.

All i did to fix this, i ran Repair mode (three times). In between i deleted VS profile few times (C:\User..\AppData\Roaming or Local don't remember where it is and i dont have access to machine with installed VS to tell exact location). In AppData VS profile there are some cache-s VS uses to speed up its launch by storing locations of all its DLL and such. So it might be important to delete it too.
In worst case you will have to uninstall VS, delete profile and run fresh installation. I hopefully avoided it.

Okay I'll try this...
Thanks a lot in advance.


[GLBC] LB garbage collection orphans named ports in instance groups

The GLBC does not remove the named port from an instance group when a backend is being deleted.
If users are frequently created/deleting services and ingresses, instance groups will become polluted with old node ports. Eventually, users will hit a max limit.
Exceeded limit 'MAX_DISTINCT_NAMED_PORTS' on resource 'k8s-ig--aaaaaaaaaaaa'

Temporary workaround
region=us-central1
cluster_id=$(kubectl get configmaps ingress-uid -o jsonpath='{.data.uid}' --namespace=kube-system)
ports=$(gcloud compute backend-services list --global --format='value(port,port)' |  xargs printf 'port%s:%s,')
for zone in b c f; do
  gcloud compute instance-groups unmanaged set-named-ports k8s-ig--$cluster_id --zone=$region-$zone --named-ports=$ports
done

Modify the region and list of zone suffix in the script.

Requires https://github.com/kubernetes/kubernetes/pull/46457

I see that the dependency was merged a week ago. Is there a plan/ETA for this one?

@porridge I'm waiting on one more PR to merge before we can update this repo's vendored dependencies.
I expect to have a fix in for the next release of GLBC, but there's no ETA for that just yet.

Any update on this issue?

Hi, I'm starting to work on this now, as my first Kubernetes fix.

This issue was moved to kubernetes/ingress-gce#43


Call before_render on component slots

Feature request
Having #before_render method available in ViewComponent::Slot
Motivation
In some of our components slots we use validation and we can't use #before_render like for components. For now we overwrite some code like following.
class ApplicationComponent < ViewComponent::Base
  def before_render
    super

    slots.each do |_, slot_params|
      Array(instance_variable_get(slot_params[:instance_variable_name]) || []).each do |slot_instance|
        slot_instance.send(:before_render) if slot_instance.respond_to?(:before_render)
      end
    end
  end
end

module ViewComponent
  class Slot
    attr_accessor :content

    def before_render; end
  end
end

@nicolas-brousse I think this makes sense. Want to get a PR going?

I'll try to have a look on it

@manuelpuyol Thank you for your message!
I tried the new API on a new component, but didn't update our existing components yet. I'll have a look 🙌

@manuelpuyol Thank you for your message!
I tried the new API on a new component, but didn't update our existing components yet. I'll have a look 🙌

great! let me know if you need any help :)

great! let me know if you need any help :)

@nicolas-brousse I'm closing the issue but feel free to comment if you have any questions during your component migration

@nicolas-brousse I'm closing the issue but feel free to comment if you have any questions during your component migration

@manuelpuyol I just finished the conversion. I didn't used new api very well the first time so my validations wasn't called on slot components.
But since I finally understand how it must be used, then I confirm this work now without any code that overwrite view_component \o/
Thanks

@manuelpuyol I just finished the conversion. I didn't used new api very well the first time so my validations wasn't called on slot components.
But since I finally understand how it must be used, then I confirm this work now without any code that overwrite view_component \o/
Thanks


KaTeX 0.11

has been released

[x] have a look to see what's new
[x] try it out
[x] update JuDocTemplates
[x] update the docs here

updated highlight.js to 9.15.10 as well


AnyOf &schema.Reference{Path: ".."} is broken now

Hi team,
something happened the last weeks. I've pulled the latest commits and something broke my AnyOf Paths. The code is the following:
var Login = schema.Schema{
	Fields: schema.Fields{
		"id": {
			Validator: &schema.AnyOf{
				&schema.Reference{
					Path: "users",
				},
				&schema.Reference{
					Path: "vents",
				},
			},
		},
		"type": {
			Validator: &schema.AnyOf{
				&schema.String{
					Allowed: []string{"user", "vent"},
				},
			},
			Required: true,
		},
		"password": {
			Validator: &schema.String{
				MinLen: 3,
				MaxLen: 32,
			},
		},
	},
}

"users" and "vents" is defined like always.
the error I get is the following:
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Request-Id: b5j5opb047c06gn5pvjg
Vary: Origin
Date: Wed, 12 Jul 2017 17:29:09 GMT
Content-Length: 79

{
  "code": 422,
  "issues": {
    "id": [
      "invalid"
    ]
  },
  "message": "Document contains error(s)"
}

this worked for a long time before the latest pull. what happened? I see a commit mentioning schema.AnyOf treating as normal fields or something like that. but what happened here?

Could be this one - https://github.com/rs/rest-layer/commit/1e0b0e6dbfa427afa1772b724f4418dd76313ac1

However, probably more likely that it's related to - https://github.com/rs/rest-layer/commit/5b33327a0fb07b058fa7f55e5c7798c1a9b07164.

@omani, could you please share some details on which context you use this schema in. Do you use it with the rest and resources package, or do you rely only on the schema and resource package?
Does the Reference validators work when they are not inside an AnyOf? If not, what is the error?

As an FYI, if you use a resource.Index without passing it to rest.NewHandler(), you must manually call compile on it:
if cmp, ok := index.(resource.Compiler); ok {     // Used to be schema.Compiler!
    cmp.Compile()
}

This type-case is necesarry until #109 is resolved.

#115 might fix this.

@omani is this still broken?
BTW, I never though about using anyof with a reference. I guess projections could not work with this kind of construct and you don't expect it to right?

As a FYI, I never tried to reproduce it.

Adding "help wanted" -- if someone have time to implement a demo-app to confirm this issue, or test if it's fixed, it would be helpful.

Closing due to inactivity, please re-open if this issue is still valid.


WebView2 Source Code Not Visible in WinUI 3 Gallery

Which version of the app?
WinUI 3 Gallery
Description
Source Code for WebView2 is Missing in WinUI 3 Gallery.
Step 1: Open WinUI 3 Gallery.
Step 2: Search for "WebView2".
Step 3: Expand the Source Code Section.
Screenshots

Windows version
Windows 11 22H2 (22621)
Additional context
No response

Thanks for filing this issue @Ritvik-UX. I am able to repro this bug. I will look into this.


Shortcut Keys control

Hi, is there any simple way of disabling the AltGr+R shortcut Key? I use it very often with the Colemak layout for the ` character.
I'm using Windows 10 btw.
Thanks!

Thanks for the suggestion, I'm currently not planning to implement this.


github action conditions

I found that we have duplicate tests running because our github action runs on both pull_request and push. I believe that this configuration will make it run only once for forked pull requests so we don't duplicate test jobs

I'm not gonna merge this just in case there was a specific reason that @chrisjsewell configured it the way he did before

Yeh it's a known issue. It's not an issue with "forked" PRs, as in from branches on OtherAccount/MyST-NB,
just with internal PRs, as in from other branches on ExecutableBookProject/MyST-NB. Then you trigger for the commit to that branch and for the merge into main.
The problem with your configuration is that, if you are working on another branch, you now won't get CI feedback until you create the PR to main. This isn't ideal in the use case, for example, where you are working on a particularly big change that you don't want to make a PR for straight away, and you can't do things like make a PR to a non-main branch.
Ideally you would conditionally trigger for push only if pull-request is not triggered. I looked at this before, but it doesn't seem possible:

https://github.community/t5/GitHub-Actions/How-to-trigger-an-action-on-push-or-pull-request-but-not-both/td-p/35805
https://github.community/t5/GitHub-Actions/How-to-prevent-running-actions-on-push-when-pull-request-is-also/td-p/47013

So in summary, fine for you to merge this, but I reserve the right to change it back if necessary later down the line lol

sounds good - and that makes sense. I don't feel super strongly about it, just seems like we waste a little bit of time running twice the jobs. I'm happy to move it back if it would be useful when the time comes 👍


Adding Initial node label

To add initial node label for nodepools. The nodepool variable type has been changed to any to accommodate string and map .

Creating another PR with proper commits.


[Feature]-[Infinity]:Gracefully deal with errors in view mode

Today the view mode displays errors as toast messages and a lot of them pile up.
We should deal with them in a better way.
Ideas:

Hide all system error messages in view mode
Only error messages triggered by the developer should be displayed
or
Show system error message count in a non-intrusive way that is accessible by the developer when they click an icon(debugger, but less intrusive)
Show all error messages triggered by the developer

Related to #6129
@hetunandu can you give us an update here?

This does not seem to have been handled at all for action executions. We can probably use a catch all and suppress all errors in view mode with a generic request or only for action executions. Let me know how I should implement this

@hetunandu simply hide system-generated errors in view mode?

Related https://github.com/appsmithorg/appsmith/issues/4669

@mohanarpit @ayushpahwa Hey team! Can you please add your planning poker estimates with ZenHub

Most view mode system generated error messages can be suppressed in the errorSaga method in errorSaga.tsx by checking the APP_MODE but this will not suppress any explicit toast message calls in the rest of the code base.
Solution here would be to write a service which can take in the toast message and decide whether to display it or not based on the APP_MODE. This way developers will not have to worry about handled toast messages in different views.

80% of app viewers see some error, according to 6 months data.
Stats

Stat
Values

Reach
9600

Effort (months)
<>

Dropping this into design so we know exactly what sort of experience we want to design for here. We'll add effort estimate once we know what solution we're aiming for.

design planning link: https://www.notion.so/appsmith/System-errors-in-view-mode-79d34bf470d4472f8cc913612cbf625a


WIP: Dispatch away

This PR aims to improve the code base by dispatching based on input data types, options, etc.
This makes the code easier to reason about as well as adds the potential option of changing the precision of the computation (single or double).
Currently, with Circuitscape, a bunch of flags are read from a configuration file, but not all of them apply at all times. Some are valid only for input, some are valid only for output, and some for the computation. Therefore, an API like this is envisioned:
cfg = parse_config("path/to/config/file")
T  = Datatype{Scenario}()
ipflags = inputflags(T, cfg)
compute(T, ipflags)

Will dispatch more away in another PR


orientation of a template is now defined by the parent document.

The only issue is the CreateTemplate function has to be depricated as it doesn't have an orientation.... I created a CreateTpl function that allows a non Fpdf instantiated Tpl to be created without flipping the orientation. I made sure the broken functionality of CreateTemplate stays in place... You can decide how to handle the backwards compatibility there

Very nice work, @d1ngd0. I will augment the documentation to explain why CreateTemplate() is deprecated.
The observation about the Wd - Ht placement disparity was exactly right!


"whoami" command for determining the owner of the API token

Test plan:
Ran npx ts-node ./cli/coda.ts whoami, npx ts-node ./cli/coda.ts whoami <valid token>, and  npx ts-node ./cli/coda.ts whoami <invalid token>
I haven't tested a variety of token types (scoped vs non-scoped)

nits. it's always good to attach a test plan in the PR description.

nits. it's always good to attach a test plan in the PR description.

Done, I think. not sure where exactly the edit has to be for github to incorporate it into the squashed description

Updated CHANGELOG.md and bumped the package version


Descheduler Version Not Working in Official Container Images

What version of descheduler are you using?
descheduler version: v0.19.0
Does this issue reproduce with the latest release?
Yes.
Which descheduler CLI options are you using?
descheduler version

Please provide a copy of your descheduler policy config file
N/A
What k8s version are you using (kubectl version)?
v1.19.0
kubectl version Output
$ kubectl version

What did you do?
I ran the below command. Note that the major and minor versions are empty.
docker run k8s.gcr.io/descheduler/descheduler:v0.19.0 /bin/descheduler version
Descheduler version {Major: Minor: GitCommit: GitVersion: BuildDate:2020-09-01T16:43:23+0000 GoVersion:go1.15 Compiler:gc Platform:linux/amd64}

What did you expect to see?
I expect descheduler version to output the correct version information when using the official container images from k8s.gcr.io.
What did you see instead?
The major and minor versions are empty.

I will try to fix this eventually, but If someone else has time to work on this then don't wait for me.

/assign


Project and Task description is missing on their detail page (self-hosted)

Actions before raising this issue

[X] I searched the existing issues and did not find anything similar.
[X] I read/searched the docs

Steps to Reproduce

Edit project / task description and submit.
Back or refresh project / task detail page.
Instead of displaying the submitted content, the description section only displays the Edit button.
Click Edit button, the submitted content is there normally.

Expected Behavior
Description can be displayed.
Possible Solution
No response
Context
No response
Environment
Self-hosted CVAT 2.15.0.

CVAT About:
Server version: 2.15.0
Core version: 15.0.7
Canvas version: 2.20.5
UI version: 1.63.12

Please, refer to documentation first.
Annotation guides are rendered on job annotation view, not on task page.

Please, refer to documentation first. Annotation guides are rendered on job annotation view, not on task page.

OK. Sorry...😂


[Bug, Bot.Builder.Core.Extensions] Missing CardFactory.cs

There is no implementation of a CardFactory in the .NET SDK (see related issues #77 and #166). As such there is also a discrepancy in the RichCards sample implementation as it uses the Card classes from the Schema library as opposed to the CardFactory from Bot.Builder.Core.Extensions.
Example: CreateAnimationCardAttachment()

This is there in the JavaScript but missing from the C#. See:
https://github.com/Microsoft/botbuilder-js/blob/master/libraries/botbuilder-core/src/cardFactory.ts

The C# implementation has a set of extension functions toAttachment() defined in Schema. This is not exactly the same but give parity.


BUG: differential_evolution with inf objective functions

Differential evolution fails after step 1 with objective functions that have at some point returned inf. It throws a "FloatingPointError: invalid value encountered in subtract" when np.seterr(all="throw"), and a warning otherwise.  This is a regression, which worked as expected in 0.15 but stopped working at some point since.

I'm not sure it was ever envisaged that it would work if the objective returned np.inf. can you flesh out why this is important?There could be an argument for raising an Error if the objective ever returns inf.

I agree that throwing an error on inf would also be reasonable.  If it is decided that the function should not accept inf, it should (a) document this in the docstring and (b) throw an error immediately rather than after the method has been running for a while.  However, there are many advantages to accepting inf:

For parameter combinations which are undefined in the objective function, it makes sense for the objective function to (explicitly) return inf than some arbitrary large constant.
Inf can appear for numerical reasons (e.g. with logs)
It makes sense in the context of objective functions that inf should mean "very bad".
The changes required to accept inf are quite minor
This function accepted inf in previous versions of scipy

As for the way that inf should be allowed in the objective function, there are two ways: (a) it could drop any infinite values in the calculation of convergence or (b) it could say that objective functions returning inf have not converged no matter what.  I have implemented (b), which seems much more sensible.
Also, this PR does not handle or throw an error when nan or -inf are returned, but these are values for which it is difficult to justify finding a defined behavior.  In theory -inf could mean "exit immediately returning the parameters that led to -inf" but this isn't entirely clear and I don't have a strong opinion either way.

I agree that this should work with inf (and especially if it's a regression). In general, I don't think it's uncommon to put inf in objective functions to e.g. indicate bounds.

@mwshinn, could you fix the PEP8 error please?


How to get the file './aic19-track1-mtmc/cam_timestamp/train.txt' ?

Hello, I have some problem and don't how to solve them. I can't find the files 'train.txt' and 'train_fps.txt' in 'aic19-track1-mtmc/cam_timestamp' directory.
The details are in '2a_post_process_for_tracking.py'
    time_stamp_file = './aic19-track1-mtmc/cam_timestamp/train.txt'
    time_stamp_dict = analysis_time_stamp(time_stamp_file)
    fps_file = "./aic19-track1-mtmc/cam_timestamp/train_fps.txt"
    fps_dict = load_fps_dict(fps_file)

hi，
First, for train.txt, you could download dataset from https://www.aicitychallenge.org/2019-data-sets/, and the dataset contains ./cam_timestamp/train.txt.
Second, for train_fps.txt, you could found it in ./src/main_pipeline/train_fps.
Similarly，you also could get test.txt and test_fps.txt.
I hope it will help you.

hi，
First, for train.txt, you could download dataset from https://www.aicitychallenge.org/2019-data-sets/, and the dataset contains ./cam_timestamp/train.txt.
Second, for train_fps.txt, you could found it in ./src/main_pipeline/train_fps.
Similarly，you also could get test.txt and test_fps.txt.
I hope it will help you.

Thank you for your apply!
I found the file 'train_fps.txt' and 'test_fps.txt' in the './src/main_pipeline/'. But, the './cam_timestamp/' in original official dataset actually does not contain the file 'train.txt'.
The directory structure is as follows:
cam_timestamp/
- S05.txt
- S04.txt
- S03.txt
- S02.txt
- S01.txt

Haha,  I still don't know how to find the './cam_timestamp/train.txt'  😂

eval.txt
eval_fps.txt
train.txt
train_fps.txt
Sorry, I forget that I have merged S0*.txt into one file.

eval.txt
eval_fps.txt
train.txt
train_fps.txt
Sorry, I forget that I have merged S0*.txt into one file.

Thank you very much! 😘


Documentation?

What is NestedUtils? I see that in your code snippet, but I don't see anything with that name in the package.json, and Googling for it didn't turn anything up. I'm trying to use this in a project but when I try to insert a table it blows up:
this.onChange(TableUtils.insertTable(     this.props.editorState, 1, 1 ));
insertTable.js:26 Uncaught TypeError: currentBlock.getParentKey is not a function
I'm guessing it's because I'm not using NestedUtils but I haven't been able to figure out what that even is. Thanks!

Hi @dwightware4 Did you get around with that issue?

Still an issue.

@kevinguard hey I did not.

The docs mention you need to use this yet-to-be-merge PR of draft-js: https://github.com/facebook/draft-js/pull/388
This is where NestedUtils comes from. Hopefully it gets merged in soon -- also looking for official table support.

+1

pls help me to fix it

This project is still under active development ?

Same issue


Account notifications seem to be capped at 25.

I just realized I used to have more mentions, or perhaps I am mistaken. Perhaps this is expected until paging is implemented?

I left an unfinished event marked as unread which has now gone beyond 25. It's stuck in the void unless I choose "mark all as seen".


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.9 to before v5.16.10",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bf4f059954dcb221384b2f784677e19a13cd4bdb",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=babfa07e9594373e10b9c01ada6278d0248665e1"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "bf4f059954dcb221384b2f784677e19a13cd4bdb",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "babfa07e9594373e10b9c01ada6278d0248665e1",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "mm: memcg: synchronize objcg lists with a dedicated spinlock\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.16.10 by commit babfa07e9594373e10b9c01ada6278d0248665e1, it was introduced in version v5.9 by commit bf4f059954dcb221384b2f784677e19a13cd4bdb. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2022-1000530


Not Really An Issue...Multiple Broadcasters and Many Viewers

I am using RTCMulticonnection v2.2.2 and Multiple Broadcasters and Many Viewers.
Does anyone have the code to count the number of Viewers connected and post to all html clients?
I am having a hard time trying to get through the code.
Thanks,
Ray

This may help you:
http://www.rtcmulticonnection.org/docs/getAllParticipants/

I believe this is for RTCMultiConnection v3 only?   I cannot find getAllParticipants in v2.2.2
From: Simerjit Kaur<EMAIL_ADDRESS>Sent: Friday, October 13, 2017 6:03 AM
To: muaz-khan/RTCMultiConnection<EMAIL_ADDRESS>Cc: rayj00<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [muaz-khan/RTCMultiConnection] Not Really An Issue...Multiple Broadcasters and Many Viewers (#480)
This may help you:
http://www.rtcmulticonnection.org/docs/getAllParticipants/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/muaz-khan/RTCMultiConnection/issues/480#issuecomment-336409294 , or mute the thread https://github.com/notifications/unsubscribe-auth/AGTac2qRakqCmnweDNsHyoUdAmnln81iks5srzVvgaJpZM4P2Kqw .  https://github.com/notifications/beacon/AGTac3hzUK_2xefaXoam_rswJPGn2bXLks5srzVvgaJpZM4P2Kqw.gif


Verify that zip file entries don't try to escape the parent dir + test

This PR addresses GitHub issue: #1210 .
Briefly describe the changes proposed in this PR:

Check if zip file entries try to 'escape' / 'break out' of the directory  (i.e. tricks like ../../../etc/)
Added test to check if a file
Minor code formatting

Great that you made tests!


Check for optional.isPresent() before calling any public mailer methods

Fixes #1001 by checking if smtpConfig is absent before allowing any public smtp methods to be called.

Should we remove other checks to compensate for this check?

I was thinking that - it could be redundant to check in the private methods now that the public methods all check.

Actually, going through, seems the only ones that were missing were taskCompleted and taskOverdue. The rest fall to the check in sendRequestMail before accessing the config

Closing in favor of #1004


Multiple entries when merging unique for key art,plume,id

Upload attached DB and navigate to Ayaka's optimize page. On Prod, look at the console. On dev, the page will crash
Van_2023-02-14_04-56-16 - Copy.txt

I should have a fix for this in #944
https://github.com/frzyc/genshin-optimizer/pull/944/files#diff-1caad9d4cc71c56c86b391364dcc9afabd8557e16870a5ec2210e4762b93176dL34


Users need to adjust their profile to fill in the gender field

We need logic which makes sure that the gender field is filled in for all attendees using the site for EP2020.
It's probably best to check the gender field for NULL after the user logs in and then redirect them to the profile editing page unconditionally with a note requesting update of the profile.
Since the gender field will be required, they will have to enter the field, so that we slowly end up with a consistent database again.

So to clarify -> upon login, users with no gender information will be redirected to their profile update page if they haven't provided their gender information. They can update their profile there, they will be required to provide gender information in order to update the profile.
They're still able to navigate away from the profile update page and continue using the website as before, if they haven't updated their gender information.
Is that correct?

On 02.03.2020 11:29, umgelurgel wrote:

So to clarify -> upon login, users with no gender information will be
redirected to their profile update page if they haven't provided their
gender information. They can update their profile there, they will be
required to provide gender information in order to update the profile.
They're still able to navigate away from the profile update page and
continue using the website as before, if they haven't updated their
gender information.
Is that correct?

Yes, we don't need a perfect solution, but the profile page and a note
to update the fields should definitely pop up.
--
Marc-Andre Lemburg
http://www.malemburg.com/


Add last_result_size to ruby connection

Add last_result_size to ruby bindings
This PR introduces a new method last_result_size to the Trilogy gem's Ruby bindings. This method allows users to retrieve the exact byte size of the last result received from a query. The byte size includes not only the raw data but also headers, metadata, and any other protocol overhead.
Main changes:
- Added a new method `rb_trilogy_last_result_size` to surface the `conn.recv_buff_len` as a Ruby method.

Note on the test
The test checks that the last_result_size falls within a specific range (150 to 170 bytes). The reason for using a range instead of an exact value is to account for potential changes in the future. For example, changes in how headers or metadata are sent could affect the total byte size. The range provides a buffer to accommodate any of these changes.

Thanks for the PR. Could you say more about what the motivation is for this?
I think (though I'm not 100% sure) that looking at recv_buff_len will tell us the size of the last row rather than all rows (which is what I would consider the "result").

I think recv_buff_len is going to be however many bytes we last read, which could be multiple MySQL packets but could also be an incomplete packet.

We're trying to instrument the amount of data received over the network for each query.


Knobs do not display the current position in the app

rotaries (with discrete positions) already support it. Not visible in version 1 because I disabled the SA342 NADIR for now.
3-way switches, I'll try to support in version 1.1
potentiometers (like COMM volume) are planned for later

closed in favour of more specific sync issues, like #36 or #42
I don't intend to sync each and every possible buttons, but only latched ones (e.g. 3-way, rotaries)


Hard fail on unsupported platforms

Also add more testing
Signed-off-by: Tim Smith<EMAIL_ADDRESS>

👍


Installing Hain Plugins from the command line

Add the ability to install Hain Plugins from the command line like how you can install packages for the atom editor using apm from the command line.

There was a discussion in gitter about installing plugins from CLI.
The simplest way to achieve this is to allow to change the plugins directory so users could set it to the npm global directory and install plugins by npm.
It's slightly different than your request but I believe it's much simpler than adding CLI interface to hain itself

Installing hain plugins from CLI doesn't make sense, because hain is kind of CLI itself

The main benefit with CLI installation is an opportunity of batch installing.
Imagine a situation where a user is using hain with a dozen of plugins and want to install it on another machine. Right now he/she will need to manually type all the plugins while with CLI installation this will be a one shell script execution.

@ewnd9 that sounds right. the CLI can be powerful if hain will be real cross-platform application.
but Currently, main platform for hain is Windows, so i think we need some time to achieve it.
for now, I add this feature into the Backlog.


API Delete button alignment issue

Description:

Fixed in https://github.com/wso2/carbon-apimgt/pull/10420 hence closing.


Background refresh doesn’t clear read articles

When the All Unread feed is refreshed in the background, the All Unread feed doesn’t clear read articles while “Refresh to Clear Read Articles” is on.
This may be due to many a time when I come back into this view it’s been sitting in All Unread in the background, but if new articles are being retrieved in the background then the read articles should go as well I think.

The NNW team has discussed this at great length.  We understand that some users would like automatic read article removal, but honestly, it will probably never happen.  We will most likely always require some kind of manual action from the user so that they aren't getting surprised by having read articles removed.


Change binary serialization due to microsoft security concerns

Release Type: GitHub
Version:  https://github.com/stride3d/stride/pull/1593
based on a PR updating Stride to .NET 7
Platform(s):
Windows 10
Describe the bug
https://learn.microsoft.com/en-us/dotnet/fundamentals/syslib-diagnostics/syslib0011
SYSLIB0011: BinaryFormatter serialization is obsolete
With the new release of .NET 5 Microsoft has found a vulnerability with the BinaryFormatter Class and is telling people to switch to using JsonSerializer or XmlSerializer where applicable.
To Reproduce
When updating stride projects to .NET 7 the compiler throws an error due to the security concern in
sources/core/Stride.Core.Tests/TestSerialization.cs
Additional context
Currently I have suppressed the warning in the dotnet 7 PR as shown in the linked commit
https://github.com/stride3d/stride/pull/1593/commits/54268eaefb82a5d54a06daeab51d2efaa050dc1b
with the added TODO comment.

I believe it will be a correct behavior to keep this suppression in place. This is limited in scope to a Unit test which verifies the Stride serialization of .NET primitives preserves the behavior of BinaryFormatter. There's no security implications for this specific use case.


Rule RET505 cause panic

ruff 0.2.2
(latest changes from main branch)
ruff  *.py --select RET505 --no-cache --fix --unsafe-fixes --preview --output-format concise --isolated

file content:
class Plotter:
    def field_plot(self, df, label, time=None, res=None, neuron=True, dynamic=True):
            for e in edges:
                    line += [
                        {
                        }
                    ]
            line += [
            ]
            if not dynamic:
                return p_graph + p_line + p_field
            else:
\
                Branch = hv.streams.Stream.define("branch", branch=None)

error

error: Panicked while linting /opt/tmp_folder/F_NAME_7062544777190882164.py: This indicates a bug in Ruff. If you could open an issue at:

    https://github.com/astral-sh/ruff/issues/new?title=%5BLinter%20panic%5D

...with the relevant file contents, the `pyproject.toml` settings, and the following stack trace, we'd be very appreciative!

panicked at crates/ruff_python_trivia/src/textwrap.rs:155:22:
attempt to subtract with overflow
Backtrace:    0: ruff::panic::catch_unwind::{{closure}}
             at ./ruff/crates/ruff/src/panic.rs:31:25
   1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/boxed.rs:2029:9
   2: std::panicking::rust_panic_with_hook
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:783:13
   3: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:649:13
   4: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:171:18
   5: rust_begin_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
   6: core::panicking::panic_fmt
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
   7: core::panicking::panic
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:144:5
   8: ruff_python_trivia::textwrap::dedent_to
             at ./ruff/crates/ruff_python_trivia/src/textwrap.rs:155:22
   9: ruff_linter::fix::edits::adjust_indentation
             at ./ruff/crates/ruff_linter/src/fix/edits.rs:212:12
  10: ruff_linter::rules::flake8_return::rules::function::remove_else
             at ./ruff/crates/ruff_linter/src/rules/flake8_return/rules/function.rs:851:24
  11: ruff_linter::rules::flake8_return::rules::function::superfluous_else_node::{{closure}}
             at ./ruff/crates/ruff_linter/src/rules/flake8_return/rules/function.rs:641:25
  12: ruff_diagnostics::diagnostic::Diagnostic::try_set_fix
             at ./ruff/crates/ruff_diagnostics/src/diagnostic.rs:57:15
  13: ruff_linter::rules::flake8_return::rules::function::superfluous_else_node
             at ./ruff/crates/ruff_linter/src/rules/flake8_return/rules/function.rs:640:21
  14: ruff_linter::rules::flake8_return::rules::function::superfluous_elif_else
             at ./ruff/crates/ruff_linter/src/rules/flake8_return/rules/function.rs:720:9
  15: ruff_linter::rules::flake8_return::rules::function::function
             at ./ruff/crates/ruff_linter/src/rules/flake8_return/rules/function.rs:757:9
  16: ruff_linter::checkers::ast::analyze::statement::statement
             at ./ruff/crates/ruff_linter/src/checkers/ast/analyze/statement.rs:227:17
  17: <ruff_linter::checkers::ast::Checker as ruff_python_ast::visitor::Visitor>::visit_stmt
             at ./ruff/crates/ruff_linter/src/checkers/ast/mod.rs:918:9
  18: <ruff_linter::checkers::ast::Checker as ruff_python_ast::visitor::Visitor>::visit_body
             at ./ruff/crates/ruff_linter/src/checkers/ast/mod.rs:1524:13
  19: <ruff_linter::checkers::ast::Checker as ruff_python_ast::visitor::Visitor>::visit_stmt
             at ./ruff/crates/ruff_linter/src/checkers/ast/mod.rs:730:17
  20: <ruff_linter::checkers::ast::Checker as ruff_python_ast::visitor::Visitor>::visit_body
             at ./ruff/crates/ruff_linter/src/checkers/ast/mod.rs:1524:13
  21: ruff_linter::checkers::ast::check_ast
             at ./ruff/crates/ruff_linter/src/checkers/ast/mod.rs:2189:5
  22: ruff_linter::linter::check_path
             at ./ruff/crates/ruff_linter/src/linter.rs:156:40
  23: ruff_linter::linter::lint_only
             at ./ruff/crates/ruff_linter/src/linter.rs:447:18
  24: ruff::diagnostics::lint_path
             at ./ruff/crates/ruff/src/diagnostics.rs:323:22
  25: ruff::commands::check::lint_path::{{closure}}
             at ./ruff/crates/ruff/src/commands/check.rs:194:9
  26: std::panicking::try::do_call
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
  27: std::panicking::try
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
  28: std::panic::catch_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
  29: ruff::panic::catch_unwind
             at ./ruff/crates/ruff/src/panic.rs:40:18
  30: ruff::commands::check::lint_path
             at ./ruff/crates/ruff/src/commands/check.rs:193:18
  31: ruff::commands::check::check::{{closure}}
             at ./ruff/crates/ruff/src/commands/check.rs:94:17
  32: <rayon::iter::filter_map::FilterMapFolder<C,P> as rayon::iter::plumbing::Folder<T>>::consume
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/filter_map.rs:123:36
  33: rayon::iter::plumbing::Folder::consume_iter
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/plumbing/mod.rs:179:20
  34: rayon::iter::plumbing::Producer::fold_with
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/plumbing/mod.rs:110:9
  35: rayon::iter::plumbing::bridge_producer_consumer::helper
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/plumbing/mod.rs:438:13
  36: rayon::iter::plumbing::bridge_producer_consumer
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/plumbing/mod.rs:397:12
  37: <rayon::iter::plumbing::bridge::Callback<C> as rayon::iter::plumbing::ProducerCallback<I>>::callback
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/plumbing/mod.rs:373:13
  38: <rayon::slice::Iter<T> as rayon::iter::IndexedParallelIterator>::with_producer
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/slice/mod.rs:732:9
  39: rayon::iter::plumbing::bridge
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/plumbing/mod.rs:357:12
  40: <rayon::slice::Iter<T> as rayon::iter::ParallelIterator>::drive_unindexed
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/slice/mod.rs:708:9
  41: <rayon::iter::filter_map::FilterMap<I,P> as rayon::iter::ParallelIterator>::drive_unindexed
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/filter_map.rs:46:9
  42: <rayon::iter::fold::Fold<I,ID,F> as rayon::iter::ParallelIterator>::drive_unindexed
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/fold.rs:59:9
  43: rayon::iter::reduce::reduce
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/reduce.rs:15:5
  44: rayon::iter::ParallelIterator::reduce
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-1.8.1/src/iter/mod.rs:991:9
  45: ruff::commands::check::check
             at ./ruff/crates/ruff/src/commands/check.rs:165:10
  46: ruff::check
             at ./ruff/crates/ruff/src/lib.rs:419:13
  47: ruff::run
             at ./ruff/crates/ruff/src/lib.rs:201:33
  48: ruff::main
             at ./ruff/crates/ruff/src/main.rs:49:11
  49: core::ops::function::FnOnce::call_once
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
  50: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:155:18
  51: std::rt::lang_start::{{closure}}
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:166:18
  52: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:284:13
  53: std::panicking::try::do_call
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
  54: std::panicking::try
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
  55: std::panic::catch_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
  56: std::rt::lang_start_internal::{{closure}}
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:148:48
  57: std::panicking::try::do_call
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
  58: std::panicking::try
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
  59: std::panic::catch_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
  60: std::rt::lang_start_internal
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:148:20
  61: main
  62: <unknown>
  63: __libc_start_main
  64: _start

python_compressed.zip

👍 That hard line break causes that panic situation. Haven't had time to dig deeper into what causes this.
black formatted is not able to parse the file. However ruff formatter is able to handle this and after the formatting, it will not panic.
I'm getting the following when trying to fix the file (ruff cli):
panicked at crates/ruff_python_trivia/src/textwrap.rs:172:52:
byte index<PHONE_NUMBER>3709551604 is out of bounds of `\

Update:
The problem is, as indicated in the backtrace:

panicked at crates/ruff_python_trivia/src/textwrap.rs:155:22:
attempt to subtract with overflow

that we try to unsafe subtraction, and therefore Rust panics with overflow error. However, the calling function (dedent_to, textwrap.rs) indicates that it panics in the following case:
/// # Panics
/// If the first line is indented by less than the provided indent.
pub fn dedent_to(text: &str, indent: &str) -> String {

Instead of panicking, we should cleanly shut down with a proper error message.
The problem occurs on the following line (155) in ruff/crates/ruff_python_trivia/src/textwrap.rs:
let dedent_len = existing_indent_len - indent.len();

Here some debug prints about the used variables:
INPUT TEXT: "\\\n                Branch = hv.streams.Stream.define(\"branch\", branch=None)"
INDENT: "            "
EXISTING INDENT LEN: 0
INDENT LEN: 12

Still panics with ruff 0.4.6
file content:
def has_untracted_files():
    if b'Untracked files' in result.stdout:
        return True
    else:
\
        return False

error
All checks passed!

error: Panicked while linting /home/rafal/test/tmp_folder/284806655513326825.py: This indicates a bug in Ruff. If you could open an issue at:

    https://github.com/astral-sh/ruff/issues/new?title=%5BLinter%20panic%5D

...with the relevant file contents, the `pyproject.toml` settings, and the following stack trace, we'd be very appreciative!

panicked at crates/ruff_python_trivia/src/textwrap.rs:172:52:
byte index<PHONE_NUMBER>3709551612 is out of bounds of `\
`
Backtrace:    0: ruff::panic::catch_unwind::{{closure}}
   1: std::panicking::rust_panic_with_hook
   2: std::panicking::begin_panic_handler::{{closure}}
   3: std::sys_common::backtrace::__rust_end_short_backtrace
   4: rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::str::slice_error_fail_rt
   7: core::str::slice_error_fail
   8: ruff_python_trivia::textwrap::dedent_to
   9: ruff_linter::fix::edits::adjust_indentation
  10: ruff_linter::rules::flake8_return::rules::function::remove_else
  11: ruff_linter::checkers::ast::analyze::statement::statement
  12: <ruff_linter::checkers::ast::Checker as ruff_python_ast::visitor::Visitor>::visit_stmt
  13: ruff_linter::checkers::ast::check_ast
  14: ruff_linter::linter::check_path
  15: ruff_linter::linter::lint_fix
  16: ruff::diagnostics::lint_path
  17: ruff::commands::check::lint_path
  18: rayon::iter::plumbing::Producer::fold_with
  19: rayon::iter::plumbing::bridge_producer_consumer::helper
  20: ruff::commands::check::check
  21: ruff::check
  22: ruff::run
  23: ruff::main
  24: std::sys_common::backtrace::__rust_begin_short_backtrace
  25: std::rt::lang_start::{{closure}}
  26: std::rt::lang_start_internal
  27: main
  28: __libc_start_call_main
             at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  29: __libc_start_main_impl
             at ./csu/../csu/libc-start.c:360:3
  30: _start

python_compressed.zip


Update nodejs.yml

Coverage remained the same at 97.009% when pulling cfe08c70c1efe376b650ea4c0160cd8563041cc4 on unional-patch-1 into 24a1995ea683a22cdf1ec4b3de18f6f9dd751a70 on master.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fix issue-280

Fix https://github.com/binux/pyspider/issues/280
Provide a AnonymousUser class and set the  anonymous_user in login_manager.

looks good, thank you.


Debug with f5 never starts and caused extraneous extension activation

Type: Bug

In a TypeScript vscode extension
Have the launch.json:

// A launch configuration that compiles the extension and then opens it inside a new window
{
    "version": "0.1.0",
    "configurations": [
        {
            "name": "Launch Extension",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceRoot}"
            ],
			"preLaunchTask": "npm: compile-ext",
            "sourceMaps": true
        }
    ]
}

Press F5 to debug with Launch extension active

Bug
Debugging never starts. I see a progress bar in the debug view but even if I wait a few minutes, nothing happens. I also get a random error popup from Java
I also see a bunch of extra extensions getting activated too on F5, such as c++, docker, and Java

Removing the preLaunchTask allows me to debug again
The hang may be caused by a misbehaving extension but it's still odd to me that these extensions are being activated. There's also not good feedback about why debugging has not yet started. All I see is an infinite progress bar in the debug view:

VS Code version: Code - Insiders 1.76.0-insider (Universal) (7b6b6869e8f5b71b5e9cdbd3f590b10964f89607, 2023-02-22T05:24:36.668Z)
OS version: Darwin x64 22.3.0
Modes:
Sandboxed: Yes

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
3, 3, 3

Memory (System)
32.00GB (5.70GB free)

Process Argv
--crash-reporter-id 48781ca2-1705-4f64-9bab-325055aab55d

Screen Reader
no

VM
0%

maybe same root cause as #176006


Updated "About Vim" section

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

None of my changes are plagiarized from another source without proper attribution.


textstat.syllable_count(text) doesn't split by newlines

textstat.syllable_count(text) uses text.split(' ') to split words and therefore doesn't split words separated by a newline character. This shouldn't make a large difference, because the pyphen syllable count is often incorrect anyway, but it still introduces noise.

If I'm not mistaken, textstat.letter_count(text, ignore_spaces=True) also doesn't replace newline characters.

Hi @LKirst, thank you for this.
I agree, especially as lexicon_count does remove newlines using split().

Update syllable_count to use split() and not split(' ').
Update char_count to ignore all white space as indicated by the doc string.
Update letter_count to ignore all white space as indicated by the doc string.


Add a Gitter chat badge to README.md

SebastianM/angular2-google-maps now has a Chat Room on Gitter
@SebastianM has just created a chat room. You can visit it here: https://gitter.im/SebastianM/angular2-google-maps.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Already added.


Multi-headphones compatibility

Hi!
I have installed your app on my phone and it looks great.
Thank you for its development!
But I have two FreeBuds 4i headphones, and after I have connected frist instance of those headphones all works fine, but when I switched to another pair your app can't connect to headphones:
Is it possible to update your app to support multiple paired headphones?
A second pair of headphones is connected, and I can use it.
Thanks.

Hi there!
Oh, yes, this can done! Current detecition of headphones is reaaaly simple
I will update this when I have some time. I'm not sure when that is, but should be in ~month :eyes:

Hiiiii 👋👋👋
Here I am after "less than a month" 🥰🥰🥰
I almost finished a big refactor recently, and this should work now :crossed_fingers:
Try it out and let me know: https://github.com/TheLastGimbus/FreeBuddy/actions/runs/8086246091
...actually, i know it should work nicely if you have two headphones paired but one connected. If both are connected, I am unsure what will happen :thinking: you can test this too :)


Dataverse: Send Registrations DOIs to Related Publication Field for a dataset

During a recent OSF talk, I saw DOIs are now being minted for Registrations. From what I can tell those aren't being sent over to Dataverse through the SWORD API when someone is pushing their dataset from OSF to Dataverse.
@posixeleni and myself discussed this as an issue in the Dataverse repo here: https://github.com/IQSS/dataverse/issues/2236 and think it would fit well into the Related Publications metadata field for a dataset in Dataverse.
This metadata map, https://github.com/IQSS/dataverse/blob/guides4.0/doc/sphinx-guides/source/api/sword.rst#dublin-core-terms-dc-terms-qualified-mapping-dataverse-db-element-crosswalk, also shows it can be mapped by using dcterms:relation if you don't want to use related publication.

As @posixeleni mentioned at https://github.com/IQSS/dataverse/issues/2236#issuecomment-108654390 the advantage of "Related Publication" is that it's structured rather than how "Related Material" is free form.


Add Validator setter in EndpointRegistrar

:loudspeaker: Type of change

[ ] Bugfix
[ ] New feature
[x] Enhancement
[ ] Refactoring

:scroll: Description
Add Validator setter to EndpointRegistrar that is propagated to the HandlerMethodArgumentResolver instances configured in AbstractListenerAnnotationBeanPostProcessor.
:bulb: Motivation and Context
Discussed in https://github.com/awspring/spring-cloud-aws/discussions/854.
Currently, there is no easy way to set up validation for payload in the listener methods. The PayloadMethodArgumentResolver and BatchPayloadMethodArgumentResolver have set null for the validator field which means they never will validate the payload. This change will propagate the Validator set in EndpointRegistrar.
:green_heart: How did you test it?

Unit test
Manual test

:pencil: Checklist

[x] I reviewed submitted code
[x] I added tests to verify changes
[x] I updated reference documentation to reflect the change
[x] All tests passing
[x] No breaking changes

:crystal_ball: Next steps

Should have used jakarta.validation.Validaor not?


Bump framework version

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/1302249760

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/1302249760
Status: success


Added Readme

We can hack the LVS rule deck to get the dense design through the checks (since it is definitely fine to have transistors under the caps). I will create a test case.


Improve Character Typing Mood UI/Workflow

First of all the whole concept of these moods is not super intuitive and the messy UI doesn't help. For example it's hard to understand, that the default mood is global but the setting below changes per portrait.
Also the MoodItem design is like nothing else in dialogic or godot.
Note here btw: I made all of this, and I'm not blaming anyone else.

This is kinda adressed by #1565


does not scroll to the top notebook

The first cells of the notebook are not displayed after opening

Extension version: 2021.8.1051926518
VS Code version: Code - Insiders 1.59.0-insider (818c6613f765dd54bb29e77b4f7094a37cf67d08, 2021-07-21T05:14:36.651Z)
OS version: Linux x64 5.8.0-63-generic snap
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-4210H CPU @ 2.90GHz (4 x 3221)

GPU Status
2d_canvas: unavailable_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: disabled_offrasterization: disabled_softwareskia_renderer: enabled_onvideo_decode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
1, 1, 1

Memory (System)
7.70GB (1.86GB free)

Process Argv
--no-sandbox --crash-reporter-id 6d00c0c9-3fe5-497f-84af-e07721208327

Screen Reader
no

VM
0%

DESKTOP_SESSION
i3

XDG_CURRENT_DESKTOP
i3

XDG_SESSION_DESKTOP
i3

XDG_SESSION_TYPE
x11

Hi Guys,
I'm ready to help,
If any one could give a little push on where exactly can find the relevant code and any other recommendations, I'm ready to gooo.
Best of luck !

I don't understand, can you explain the problem some more?

I scrolled up to the maximum. Above there are cells that I do not see

Do you see all the cells if you close and reopen the notebook?

I didn't see them yesterday after restarting vscode, but I see them today. This is not the first time I have seen this problem.

I didn't see them yesterday after restarting vscode, but I see them today. This is not the first time I have seen this problem.

I think this issue was the same as missing markdown cell bug. It's already fixed in latest Insiders.


Exclude benchmark outputs folder from git.

Running the benchmark.rs file will produce an outputs folder, which is meaningless to include in the repo.
Waiting for #1 since this branch is already based on the updated upstream of WHIR.

Merged in upstream and included in #1.


Add the ability to set "Automatically beautify request body" in settings

This features adds a new option in the Preferences -> General tab named "Automatically beautify request body". This option is disabled by default to preserve backward compatibility for the users. If it's enabled, future request body imports will be automatically beautified. It's based on the existing property autoPrettify in CodeEditor class.
This feature could also be an alternative way of what pull request #2305 was looking for (which is then reverted in #2387 due to some side effects). However, it includes smaller changes and uses existing logic to achieve the same goal.

Looks good from a product perspective and is definitely a good middle-ground :+1:

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

Thank you for this contribution!  I can see that a lot of conversation happened in the past about this and the team's reading on it at the moment is we need to come up with a more ergonomic solution.  For example, in many code editors (e.g. vscode, jetbrains, sublime, etc.) there are specific events that take place that will cause the formatting, but that's less obvious in the context of insomnia because in all of these examples one of the primary mechanisms is on file save, but there's no such concept in insomnia where you're typing these specs.  Therefore, we end up trying to find other things to hook into, e.g. blur and paste.
The other reason I have reservations about this is that it looks like it'll work for any kind of file, but in the end it only works for response body types that can be manually prettified.  For example, I would expect checking an "auto beautify response body" setting to prettify yaml, but it doesn't.
In addition, this didn't seem to work on paste.  I was able to get it to work when switching between requests, but overall I didn't see the functionality.  I think this is because the prettifying mainly occurs on componentDidUpdate which doesn't seem to trigger because the uniquenessKey doesn't change when prettifying.

Some good news, though!  We just merged https://github.com/Kong/insomnia/pull/2733 which is very similar in effect to what this does (i.e. "make prettifying easier").


[Candidate 1v1 Drallim Desert v1] Ambient sound is missing

Issue Description
Ambient sound is missing.
Expected behavior
Map has ambient sound.

Issue obsolete. Map moved to back log: https://github.com/xezon/GeneralsRankedMaps/commit/6bcc17399631e515e562ee6acec3a3d520a0ff07

Fixed with https://github.com/xezon/GeneralsRankedMaps/commit/19757aa402ad82087d312cf09502d15fecaba13f


After settling a deferred message the sample hangs

Describe the bug
When running the deferral sample, the sample does not exit.
To Reproduce
Run the sample.
Expected behavior
After completing execution the sample should exit cleanly.

Addressed in #118


how to run an App() in a separate thread?

Hi,
I'd like to run an (headless) App in a separate thread.
I'd like to render some shaders, and use the framebuffer into another part of my application.
I tried this simple code:
#!/usr/bin/python3

import time
from jupylet.app import App

if __name__ == '__main__':

    def create_and_run_app():
        app = App(width=512, height=512, quality=100, fullscreen=False, mode="hidden")  #, log_level=logging.INFO)
        app.start()

    import _thread
    _thread.start_new_thread(create_and_run_app, ())

    time.sleep(10)

but I get this error:
Exception ignored in thread started by: <function create_and_run_app at 0x7f807b0060d0>
Traceback (most recent call last):
  File "p.py", line 9, in create_and_run_app
    app = App(width=512, height=512, quality=100, fullscreen=False, mode="hidden")  #, log_level=logging.INFO)
  File "/home/eric/tmp/jupylet/jupylet/app.py", line 184, in __init__
    self.window = window_cls(size=(width, height), **conf)
  File "/home/eric/tmp/jupylet/jupylet/event.py", line 81, in __init__
    self.init_mgl_context()
  File "/home/eric/tmp/jupylet/jupylet/event.py", line 103, in init_mgl_context
    self._ctx = moderngl.create_standalone_context(
  File "/home/eric/.local/lib/python3.9/site-packages/moderngl/context.py", line 1672, in create_standalone_context
    raise ValueError('Requested OpenGL version {}, got version {}'.format(
ValueError: Requested OpenGL version 330, got version 0

I also tried to use mode="auto" and app.run(), but I get:
Exception ignored in thread started by: <function create_and_run_app at 0x7f34e3fc30d0>
Traceback (most recent call last):
  File "p.py", line 10, in create_and_run_app
    app.run()
  File "/home/eric/tmp/jupylet/jupylet/app.py", line 333, in run
    loop = asyncio.get_event_loop()
  File "/usr/lib/python3.9/asyncio/events.py", line 642, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'Dummy-1'.

Is there a way to call a render iteration x times per second, or in a separate thread?
Thank you

Hi, under the hood Jupylet and the App object employ Python's async programming. It is a programming paradigm that is not entirely compatible with threading.
You may run code and functionality in Python threads, but the App object itself needs an async event loop and I believe this should be done in the main program thread.
The reason for this design choice is that Jupyter notebooks are asynchronous and Jupylet was designed to fit in.
See here for more info:
https://docs.python.org/3/library/asyncio.html
https://realpython.com/async-io-python/
Thanks for reporting!

Hi,
I've read the documentation you provided, thank you.
However, I still cannot run the app in a separate thread.
I tried to call asyncio.run_coroutine_threadsafe(app.run(), loop), but the render() function seems to be called only once.
Do I need to start the app somehow?
Here are the logs:
2021-06-23 18:28:02,888 - jupylet.event - INFO - Enter EventLeg.event(*args=(<function create_app.<locals>.key_event at 0x7f94687f70d0>,)).
2021-06-23 18:28:02,889 - jupylet.clock - INFO - Enter ClockLeg.schedule_interval(interval=0.041666666666666664, **kwargs={}).
2021-06-23 18:28:02,889 - jupylet.clock - INFO - Enter Scheduler.schedule_interval(foo=<function create_app.<locals>.modify_volume at 0x7f94687f71f0>, interval=0.041666666666666664, **kwargs={}).
2021-06-23 18:28:02,975 - jupylet.event - INFO - Enter EventLeg.event(*args=(<function create_app.<locals>.render at 0x7f94687f7310>,)).

Thanks

It seems it should be possible to start an event loop in another thread. If you can do that, the app object should run in that "side" thread:
https://docs.python.org/3/library/asyncio-dev.html#concurrency-and-multithreading

Thanks, I tried use asyncio in a thread, I can see the window but it stays black
import time
from jupylet.app import App
from threading import Thread
import logging
import asyncio
import sys

if __name__ == '__main__':

    def new_app():
        from jupylet.shadertoy import Shadertoy
        app = App(width=512, height=512, quality=100, mode="auto", log_level=logging.INFO)
        st = Shadertoy("""
            void mainImage( out vec4 fragColor, in vec2 fragCoord )
            {
                vec2 uv = fragCoord/iResolution.xy;
                vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4));
                fragColor = vec4(col,1.0);
            }
        """)

        @app.event
        def render(ct, dt):

            app.window.clear()
            st.draw(ct, dt)

        return app

    # in main thread, this works:
    # app = new_app()
    # app.run()

    # this doesn't work: the window is there but stays black
    def start_loop(loop):
        asyncio.set_event_loop(loop)
        loop.run_forever()
        print("exiting thread")

    app = new_app()
    app_loop = asyncio.new_event_loop()
    t = Thread(target=start_loop, args=(app_loop,), daemon=True)
    t.start()

    app_loop.call_soon(app.run)
    time.sleep(3)

    sys.exit(0)

Just a small update, I have successfully run the app like this:
from jupylet.clock import setup_fake_time

app = new_app()
app.mode = "hidden"
app.fake_time=setup_fake_time()
app.start()
while True:
    time.sleep(0.1)
    app.step()

It is a bit hackish but it works and I can see he result on screen.
I could also do that in hidden mode:
app = new_app()
app.start()
while True:
    time.sleep(0.1)
    app.step()
    print(app.observe())

unfortunately, I'd like to use another (Panda3D) OpenGL app at the same time, and I don't think it's possible
But at least this issue is solved now.
Thank you for your support.


Deal with two ultra-trivial warnings

I was too lazy to set git up and clone the repo locally, so these are the only warnings from the mondo list in #62 that I could do anything about right now. I'd like to get to at least some of the rest—the private-type-in-public-interface ones seem at first glance to be pretty doable, but I'd need to be able to run the compiler over the code to check for cascades.
(The fact I did this entirely in the Github UI also means I couldn't squash the two commits myself. Sorry.)

This change is

@bors-servo: r+
Thanks!

:pushpin: Commit 32a02b5 has been approved by jdm

:hourglass: Testing commit 32a02b591671f0d9617ba39abfbc09f1032464ca with merge 91227a0982ff42586820dda72b5b6db9e367166a...

:sunny: Test successful - status-travis
Approved by: jdm
Pushing 91227a0982ff42586820dda72b5b6db9e367166a to master...


Update the .gitignore file and remove .env file

Update the .gitignore file and remove .env file

Hi, i dont see .env file in the .gitignore anymore.
these are the files in the .gitignore  as of now.
local env files
.env.local
.env.development.local
.env.test.local
.env.production.local.
thanks. if anything needs to be removed. let me know.

@github4maninder You need to remove the .env file from the repository not the .gitignore file.
You need to add it in the .gitigonre file, so git won't track changes for it, and commit it to GitHub.
This is because .env file generally contains private data which should not be committed to a public repository.
Here is the .env file-

ohh my bad, took the instructions way to seriously. thanks for the clarification 🥇 . updated the .gitignore file with the .env command. I don't have the vercel account. Kindly authorize this at your end.

thanks for the access @AbhinavXT.

@madihamallick #16

Thank for assigning the issue. i have updated the .gitIgnore file with the .env cmd and removed the .env file from the repo
i believe this can be merged with the Main branch.

Yes It will be merged.

Thank you @madihamallick and  @AbhinavXT . I'm glad that I could contribute!

Thank you @madihamallick and @AbhinavXT . I'm glad that I could contribute!

Good Work✨


dotnet restore from "non project folder" fails

The command:
c:>"c:\program files\dotnet\dotnet.exe" restore "c:\path\to\project\folder"
fails with the following error:
c:\path\to\project\folder\project.xproj(7,3): error MSB4019: The imported project "c:\program files\dotnet\sdk\1.0.1\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the  declaration is correct, and that the file exists on disk.
However, if I navigate to the project folder and execute the exact same command:
c:\path\to\project\folder>"c:\program files\dotnet\dotnet.exe" restore "c:\path\to\project\folder"
It works as expected.
The use case for the first command is that I am running TFS2013.  In order to build my project I need to run the dotnet restore command as a pre-build script.  In the pre-build script path I put:
c:\program files\dotnet\dotnet.exe
and in the arguments I put:
restore "$(TF_BUILD_BUILDDIRECTORY)\path\to\project\folder"
This results in the error as shown.

I just tried this is .NET Core 2.0 Preview 2 and it works like you want.


Add tool versions to gitignore

We're adding a tool-versions line to the gitignore, but we don't seem to have the file itself in this repo? Or does adding the line to the gitignore do some magic?

We added it to the gitignore to allow us to add one locally, but in reality, the package should work w/ multiple versions of Elixir & Erlang.

Test this please

We added it to the gitignore to allow us to add one locally, but in reality, the package should work w/ multiple versions of Elixir & Erlang.

It is true that in reality the library should work with multiple versions of elixir. But I would say that most of the time this is done by CI and there is still one development version, that is the suggested version for developing and that makes it easy to install for new devs.
Testing the library against different version can be done in Travis by building a version matrix with different base images.
Since this PR is super old and I believe the value is questionable I would suggest closing this.

:+1:


GEOMESA-1912 Adding progress indicator for reduce phase of fs ingest

Signed-off-by: Emilio Lahr-Vivaz<EMAIL_ADDRESS>~note: stacks on top of #1605~ rebased

rebased

Retested with local FSDS and it worked


Error at Programming Interface

OS Centos 7
Node 14.17.2
NPM 7.19.1
Additional;

The lib uses puppeteer under the hood, so I assume you need to setup it's dependencies on the machine.
Probably this will help - https://frugalisminds.com/how-to-setup-puppeteer-in-centos-7/

The lib uses puppeteer under the hood, so I assume you need to setup its dependencies on the machine. Probably this will help - https://frugalisminds.com/how-to-setup-puppeteer-in-centos-7/

I did all the instructions on that webpage. Didn't work either. It still gives the same error.

I can suggest you to try run count function with true as second argument:
await count(data[1], true);

This fill run puppeteer with --no-sandbox flag

I'm closing this issue as I believe it is related to missing puppeteer dependencies, not directly related to the package


CsvWriter example not working

I'm having trouble implementing CsvWriter with Symfony 2.3 as shown in the example. When I use
$file = new \SplFileObject('output.csv', 'w');
$writer = new CsvWriter($file);
I get this error message:
ContextErrorException: Notice: fputcsv() [function.fputcsv]: delimiter must be a single character in /my/path/to/vendor/ddeboer/data-import/src/Ddeboer/DataImport/Writer/CsvWriter.php line 48
The code that does work is this:
$writer = new CsvWriter(';', '"', fopen('output.csv', 'w'));
Does this mean there is a problem with the CsvWriter example, or is there something else going on?
Thank you!

Yep the documentation is currently outdated.

We’ve updated the CsvWriter docs for PortPHP, the successor of this library.


fresh + mysql error : Deno is not defined

I use fresh and mysql for crud applications, but in using insert queries in fresh. and click the add button I got an error
Uncaught (in promise) ReferenceError: Deno is not defined
my syntax:
addpost.tsx
/** @jsx h */
import { h } from "preact";
import { useState } from "preact/hooks";
import { tw } from "@twind";
import {client} from '../connection/conn.js';

export default function Counter() {
  const addpost = async()=>{
    let result = await client.execute(`INSERT INTO users(name) values(?)`, [
  "Jessica",
]);

  }
  return (

      <button onClick={addpost}
      >add to database</button>

  );
}

my conn.js
import { Client } from "https://deno.land/x/mysql/mod.ts";
export const client = await new Client().connect({
  hostname: "<IP_ADDRESS>",
  username: "root",
  db: "dbxstd",
  password: "rororororoor",
});

The MySQL client is a backend-only library. So it's not possible to call SQL request directly from the frontend.
You need to run the code in the handler function of your routes and pass down the data.
cf. https://fresh.deno.dev/docs/getting-started/custom-handlers

The MySQL client is a server-only library. So it's not possible to call SQL request directly from the client-side (which is what island are for).
You need to run the code in the handler function of your routes and pass down the data.
cf. https://fresh.deno.dev/docs/getting-started/custom-handlers

I have been able to solve the error, but a new problem appears
when i fetch data from mysql database to fresh .
I have not posted data to the POST method, only the div part that I have designed
i get console browser error
island-inputbody.js:5 Uncaught RangeError: WebAssembly.Compile is disallowed on the main thread, if the buffer size is larger than 4KB. Use WebAssembly.compile, or compile on a worker thread.
my code:
/** @jsx h */
import { h } from "preact";
import { Handlers, PageProps } from "$fresh/server.ts";
import {tw} from '@twind';
import {useState} from 'preact/hooks';
import {client} from '../connection/conn.js';
export const handler: Handlers= {
  async GET(_, ctx) {
    const query = await client.execute("select * from user")
    return ctx.render(query);
  },
  async POST(req,ctx){
    const newname = await req.formData();
    console.log(newname)
    return ctx.render("tolol")
  }
};

export default function InputBody({ data }: PageProps) {
    const [name,setName] = useState("");
    function addpost(){
      alert("dwdw")
    }
  if (!data) {
    return
User not found
;
  }
  return (

      Input

      <input type="text"/>

      <button
      class={tw`
        bg-red-200
        hover:bg-purple-700
        hover:text-white
        hover:shadow-xl
        `}
      >add</button>

  );
}

I think more context is required about your code.
As it seems like it's a different issue and not on the Fresh codebase side, could you move this to a discussion and close the issue as issues are not really made for tech question / debugging.