Increment pg container version to 10.16 from 10.15.

What does this PR do?
Increment pg container version to 10.16 from 10.15.
New release changelog: https://www.postgresql.org/docs/10/release-10-16.html
What ticket does this PR close?
Resolves #120 ++ : N/A
Checklists
Change log

[x ] The CHANGELOG has been updated, or
[ ] This PR does not include user-facing changes and doesn't require a CHANGELOG update

Test coverage

[ ] This PR includes new unit and integration tests to go with the code changes, or
[x ] The changes in this PR do not require tests

Documentation

[ x] Docs (e.g. READMEs) were updated in this PR, and/or there is a follow-on issue to update docs, or
[ ] This PR does not require updating any documentation

Hey @erekgit - thanks for submitting this. I'll get one of the maintainers to take a look to see if they have any feedback before we approve.
Please note that before we can accept this PR, you will need to amend your commits to add the DCO signoff. We have instructions for how to amend your commits to add the signoff here.
You might also consider rebasing to compress your changes into one commit - we have instructions for that here, if you are interested.

This looks good to me, but I think the commit history definitely needs to be squashed

Even with the Sign Off, the commit isn't showing up as verified:  "Signed-off-by: Erik Anderson<EMAIL_ADDRESS>

Is this acceptable?

When I look at the commit message, I see:
 Postgres 10.16 Update

Signed-off-by: Erik Anderson<EMAIL_ADDRESS>
this is fine. we are checking on one more thing, then we will kick off a pipeline build before approving.

@erekgit can you please rebase against the master branch of the upstream project? We just updated our gh action so that it should run on your PR - we'd like to just get some test validation before we merge.

@izgeri can you check now? ought to be rebased from  upstream https://github.com/cyberark/conjur-oss-helm-chart.git
now

@izgeri this change passes Jenkins pipeline builds.


Fix KeyVault core reference to runtime and add constructor with httpclient

When key vault users are getting KeyVault.Core nuget package, they get an error related to GAC and System.Runtime. The dependency is unnecessary for net451.
There is an ask by developers regarding exposing HttpClient in the constructor.

@herveyw please review

@pomortaz Looks fine, I think you'll need to bump the KeyVault package version if you want the new NuGet description and release notes to be published.

@herveyw we are going to bump the SDK package version soon with new API version. I'll let it handle the new package creation.

:shipit:

@pomortaz Please fix merge conflicts

@markcowl can you please pull the changes?


Issue 1148 : Reset start time when rerunning a workflow from that task

Reset task start time when rerunning a workflow from a specific task to prevent workflow from timing out using the old value of start time.

Pull Request Test Coverage Report for Build 2688

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
5 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.03%) to 69.171%

Files with Coverage Reduction
New Missed Lines
%

grpc-server/src/main/java/com/netflix/conductor/grpc/server/GRPCServer.java
2
85.71%

core/src/main/java/com/netflix/conductor/service/Lifecycle.java
3
30.0%

Totals

Change from base Build 2684:
-0.03%

Covered Lines:
9383

Relevant Lines:
13565

💛  - Coveralls

Thanks for the fix and the quick turnaround on the comments.


Chrome not freeing up HDD space after offline content deletion

Have you read the FAQ and checked for duplicate open issues?:
yes
What version of Shaka Player are you using?:
2.4.3
Can you reproduce the issue with our latest release version?:
yes
Can you reproduce the issue with the latest code from master?:
yes
Are you using the demo app or your own custom app?:
custom app (electron)
If custom app, can you reproduce the issue using our demo app?:
yes
What browser and OS are you using?:
MacOS / Windows
What are the manifest and license server URIs?:
any manifest
What did you do?

Download one or multiple offline manifest
Clear/Delete the files (using shakaplayer code, not by clearing the db manually)

What did you expect to happen?
The available HDD space of the indexeddb to be reclaimed
What actually happened?
The available HDD space of the removed manifest of indexeddb are not reclaimed, chrome (chromium) is not compressing the LevelDB files on disk, as a result the references are removed in Indexeddb (and seemingly removed) however they still taking up space on the HDD.
Downloading a new manifest sub-sequential seems to trigger a db compress action, however still not clearing all the previous data (just reducing the size with small chunks). This will lead to a situation where a users HDD is full and/or indexeddb quota is reached.
Technically this seems to be a bug in both webkit / chrome
https://bugs.chromium.org/p/chromium/issues/detail?id=488851
https://bugs.webkit.org/show_bug.cgi?id=178204
However it would be interesting to review if there are workarounds to enforce/manually trigger a leveldb compression action after a manifest deletion

I tried experimentally downloading a few assets and then deleting them, and yeah the indexeddb.leveldb folder did end up with a few hundred megabytes of data in it anyway. So I can confirm that this is an issue.
I'll ask Aaron about this, he knows the IndexedDB stuff better than me.

If we use web APIs to delete the data, and the browser doesn't free up any space on the disk, I'm not sure if there are any steps we can take at the JavaScript level to mitigate this.
We will track it as an external issue for now, but we're open to ideas on workarounds if anyone has any.

I talked to Aaron (who implemented the offline storage stuff to begin with), and he agrees that there's probably nothing we can do as a workaround ourselves.

Not really a workaround, but as an alternative solution approach if possible for the use case: Electron provides better ways of managing downloaded content as it provides direct file system access.
Shaka can still be used for playback. Here is an Electron DASH + MSS downloader library with an example using Shaka:
https://github.com/castlabs/downstream_electron

We already allow someone to implement their own storage mechanism. With that you should be able to plug-in an alternative back-end to store the content.

Did anyone found a workaround for this issue? I just tried the offline feature and the problem is still, well a problem for me.

This seems to be a bug in Chrome with no known workaround.  I've just asked for an update on the associated Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=488851
We'll try to make the right contacts in Chrome to get this resolved.  But it will require an update to the browser, which normally would take about 3 months to make it from trunk to a stable release.  But both development and release schedules are impacted by COVID right now, so I doubt that the Chrome team could promise any particular timeline on a fix.
Please accept our apologies for this ongoing issue in Chrome.

Thanks @joeyparrish, @bartsidee
I ran into this issue a few days ago as well. We've just did an indexeddb implementation in our app, quota is updated as you save items but as you delete them the size stays the same. You have to manually delete the indexeddb in order to free up the space...
does anyone know if there's a way (programatically) to refresh the quota api to get the right size? I wouldnt mind doing a refreshSpace() before querying the space.

As far as we know, there's no API for that.  The browser should do it automatically, but there's a bug in Chrome preventing it from working correctly.


Override user.paste

Since a few commands use this, and it doesn't work currently, just use insert for now.

Sorry, just noticed black reformatted things again. If you prefer otherwise, just let me know. It's what we use for the community repo.

Huh, I may have gotten confused by your comment in the textarea todo issue. The issue (that you're fixing here) is pasting into the text area. Using paste to get text out of the textarea into other applications works fine? In my refactorings yesterday I swapped the 'draft submit' command to use insert() rather than user.paste(). Sounds like I should swap that back.
Happy to swap to the community repo code style.

From my testing, any command that uses the default user.paste will fail in the draft window on both Mac OS X and Windows.
eg: https://github.com/knausj85/knausj_talon/blob/84e9a94d89a15d1318fb2c915cdcfb015d7aaae2/text/symbols.talon#L48
since the default implementation is global,  this is a hack so at least the commands will work  in the draft window.  I figure this is better than silently failing.  does the default implementation work on linux?
as far as I'm aware, user.paste will work for draft submit on only Mac OS X and Windows,  so using insert makes sense for that.  we could consider making  the logic operating system specific in the interim.

Pasting into the textarea works fine on Linux (Fedora 32) using 'paste that' or Ctrl+v, and using user.paste() for draft submit also works fine (at least with Gedit or Firefox).
Since luxisbochs uses MacOSX I imagine the paste works for him. I wonder why it doesn't for you? In any case, insert() is still pretty quick for a couple of sentences of text, so I think using it for 'draft submit' is fine.


How to implement Cookie Consent code into website. [HELP NEEDED]

Hey everyone.
I am having trouble implementing the cookie consent code into my website. Could someone please provide me with detailed steps in installing this on my website (tjbruce17594.com)
Thanks very much!
Code I'm trying to use:
http://pastebin.com/hcPyp1FH
Thanks for any help! :D @Dolondro

Hullo!
You want to put it inside the  tag in your HTML the code that reads this in your source code:
`		<!--[if lte IE 9]>

<![endif]-->`

So just replace that with the Cookie Code?

What should the end result of the source code look like? @Dolondro

Sorry, it shouldn't replace it, it should to just underneath it. The end code will look like this:
`

Home | tjbruce17594

<!--[if lte IE 8]>

<![endif]-->

</head>

`

Thanks very much! Working now. :) Solved.


Possible to support multiple programs with inter-dependencies?

Apologies if this is a dumb question, let's say I have a project with a few programs:
programs/main
programs/admin
programs/pools

where the accounts, structs, enums, etc are defined in the main program, and referenced as a dependency in the other two.  Anchor creates three IDL's. Is it possible to generate a client (or three different clients?) from this structure?  Right now I don't think it's possible to expose the structs cross-program.

Ahh thanks for the links those are what I was looking for.  And yea the IDL generation fails because not all the types are there...expected.
I was able to temporarily work around by just removing the Type-Defined parameters, and go back to the raw primitives.  Not ideal but I'm unblocked for now.
I've got all the program business logic centralized right now but it's becoming monolithic so I'm trying to break it out into smaller programs with extra CPI calls.
Thanks for the info and appreciate your work on this project, it's been extremely helpful!


updated versions of R and units

The following package(s) will be updated in the lockfile:
RSPM -----------------------------------------------------------------------

units   [0.8-2 -> 0.8-3]

The version of R recorded in the lockfile will be updated:

R       [4.2.2 -> 4.3.1]

This hopefully will settle Issue #20


Sync main

Description of change

Pull-Request Checklist

[ ] Code is up-to-date with the main branch
[ ] npm run lint passes with this change
[ ] npm run test passes with this change
[ ] This pull request links relevant issues as Fixes #0000
[ ] There are new or updated unit tests validating the change
[ ] Documentation has been updated to reflect this change
[ ] The new commits follow conventions outlined in the conventional commit spec

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Most page content deleted when "default static layouts" button is pressed

Sometimes when editing a page I want to add some things that are not in the Dream theme. I will click on the "default static layouts" button to see more options. But then almost all the content is deleted (goes back to original page setting I think).
I'm using SQLite.

I thought it happened because I made a change to a template. But it also happens in untouched templates (clean).


fix: add filtering of same-substation lines after consolidation

Pull Request doc
Purpose
Avoid producing a grid which has branches with the same start and end bus, by filtering any lines that end up with the same substation after the main map_lines_to_substations_using_coords logic. I think what's going on is: we're already filtering lines whose endpoints are the same after the specified rounding, but endpoints with different endpoint coordinates can still end up mapped to the same substation (or group of substations). I may be misinterpreting what's going on though.
What the code is doing
Following the example from before, we use pandas.Series.compare to find indices where the values don't match, and filter to just those values.
With the filtering in place, we also need to amend const.substation_interconnect_assumptions to remove these lines which had been manually specified as one interconnection or another.
Testing
Tested manually, using the test introduced in https://github.com/Breakthrough-Energy/PowerSimData/pull/578. Before: the test fails. After: the test passes. During grid building, we see dropping 3185 lines having same endpoints after substation consolidation, after the previous filtering step: dropping 4473 lines having same endpoints coordinates after rounding.
Time estimate
5 minutes to understand the change itself, longer if you want to head-scratch about the root cause that the change fixes.

Should we remove the first drop_zero_distance_line? It should be covered by the one you introduced after consolidation, no?

Should we remove the first drop_zero_distance_line if statement? It should be covered by the one you introduced after consolidation, no?

Seems to be equivalent in terms of the number of lines dropped: I get dropping 7658 lines having same endpoints after substation consolidation (3185 + 4473 = 7658). The hash used in checking if we've already got the minimum spanning tree seems to be different though, not sure exactly what's up there.


Ordered lists serialising/deserialising incorrectly

I have some across an issue with editing ordered lists. It is hard to describe so here is a gif of it.

First I have created a list and saved it in our system, then refreshed the page to load that saved version. I then add a new item at the end by pressing 'enter' and press 'tab' to indent it. As you can see in the gif, the text for that new item is moved to the top.
When I press 'tab' I get two validateDOMNesting error's.

 cannot appear as a descendant of

 cannot appear as a descendant of

I think it is something to do with the serialising or deserialising because there are no issues with creating the initial list.

I have a similar problem, when list item text is wrapped in a paragraph. Not that I am using this fix to get around #498
const getContent = (state) => {
  const json = JSON.stringify(state);
  const search = '"type":"paragraph"';
  const fix = '"type":"PARAGRAPH/PARAGRAPH"';
  const content = json.replace(new RegExp(search, 'g'), fix);
  console.log(`export default ${content}`)
  return JSON.parse(content)
}

can you check if this still is a problem with the latest version? slate was massively updated/rewritten. List handling is still a bit tricky though, so please check if it works properly for you. any feedback is appreciated!


Fix OOM error in SDXL Fine-Tuning validation stage

What does this PR do?
Fixes OOM issue during validation in SDXL fine-tuning script
Out Of Memory issue observed after several validation cycles in SDXL fine-tuning script:
File "/usr/local/lib/python3.10/dist-packages/habana_frameworks/torch/hpu/graphs.py", line 51, in replay

    _hpu_C.replay(self.hpu_graph, asynchronous)

RuntimeError: [Rank:0] FATAL ERROR :: MODULE:PT_SYNHELPER workspace Allocation of size ::6450192384 failed!

After this fix full training with validation finishes successfully.

@libinta @regisss Kindly review this critical fix

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Example Site Code does not match Sample Pictures

Hi! Thanks for this template.
I am setting up my website and am noticing some deviations between the base code and the pictures. For example, the menu in the sample picture has an About page but in the config.toml there is no about page listed.
Is it possible to update the example site so it is easier to follow along with the template?

Nevermind! I see what I am doing wrong. 🙃

Hi there. Sorry for the late reply.
I've tweaked the toml file in a way that it's now displaying the about page, without having to define a custom frontmatter. :)


Merge rc/1.18 into next.

No conflicts.

Why not against master? I realize that it would normally be against next, but master is already incompatible with 1.17.

I created this to aid an internal mergeback from 1.18 to master, which will need this against ql:next. Happy to do this against ql:master separately too, but I'd rather not block the internal merge on the sequence of rc/1.18->master->next here.


git clone does not work

Hell(o)
I tried git clone https://gitee.com/ossrs/srs.git and git clone -b develop https://gitee.com/ossrs/srs.git which results in a Klone nach 'srs'... meaning Cloning to srs... on two different computers and it is just there not doing anything really.

fatal: konnte nicht auf 'https://gitee.com/ossrs/srs.git/' zugreifen: Failed to connect to gitee.com port 443 after 130398 ms: Die Wartezeit für die Verbindung ist abgelaufen
It fails. Other repos work.

I did that and it didn't work

You could directly use github because gitee is only a mirror of github:
git clone https://github.com/ossrs/srs.git


[Kernel] Expand MoE weight loading + Add Fused Marlin MoE Kernel

Summary

Expands weight loading to support grouped and per channel weight quantization. Cleans-up fp8 MoE to use the updated weight loading
Adds Marlin Fused MoE Kernel for w4a16 by @ElizaWszola
Adds CompressedTensorsMoEMethod to support MoE w4a16 models from llm-compressor and compressed-tensors
Tested using 2 and 4 TP with Mixtral

Next Steps:

The CompressedTensorsMoEMethod is not leveraging the scheme structure in-place for compressed-tensors in order to keep the scope of this PR focused on the kernel + updated weight loading. Will be updated in a follow-up to use the scheme structure

co-authored by @ElizaWszola, from Neural Magic

/ready

W4A16, the "4" is int4? or fp4?

Int4

@dsikka @mgoin Hi, is there a UT for this kernel? I saw the API has differences from Triton-based FusedMoE.

@dsikka Hi! Thanks for your work. Do you have plans to support gptq models in the future?

Hi, thanks for the work! I am wondering does this MoE kernel work on A100 GPU?

@binxuan Yes it is supported on A100 (SM 8.0 and up)

Thanks for confirming. I tried the mainline code, but got following error. I think the device name returned from get_device_name somehow was bytes instead of str.

device_name = current_platform.get_device_name().replace(" ", "_")
TypeError: a bytes-like object is required, not 'str'

After fix this issue, got a second error from triton mentioning

AssertionError: fp8e4nv data type is not supported on CUDA arch < 89

If I want to use it with deepseek-v2, I saw that it uses fused_moe by default. Do I need to swap it out to get it running?

If I want to use it with deepseek-v2, I saw that it uses fused_moe by default. Do I need to swap it out to get it running?

Hi @fengyang95 - are you trying to run a W4A16 deepseek-v2 model?

If I want to use it with deepseek-v2, I saw that it uses fused_moe by default. Do I need to swap it out to get it running?

Hi @fengyang95 - are you trying to run a W4A16 deepseek-v2 model?

YES

Using H20 (sm_90) can start normally; is it also because it is currently not compatible with L40 (sm_89)? @dsikka


Access violation in TGetOptsParams on FreeBSD 12.1

on FreeBSD 12.1 with Free Pascal 3.2.0 and binutils 2.33
Compilation with build.sh script is is success.
$ BUILD_TYPE=dev ./build.sh

But when executable runs, it raises access violation exception on TGetOptParams line 276
$ ./bin/app.cgi
An unhandled exception occurred at $000000000042354B:
EAccessViolation: Access violation
  $000000000042354B
  $0000000000459E7B  BUILD,  line 276 of vendor/fano/src/Libs/Cli/Implementations/GetOptsParamsImpl.pas

Heap dump by heaptrc unit of ./bin/app.cgi
52663 memory blocks allocated : 5975448/5975856
52660 memory blocks freed     : 5975256/5975664
3 unfreed memory blocks : 192
True heap size : 1277952 (32 used in System startup)
True free heap : 1277056
Should be : 1277152
Call trace for block $0000000800DF57E0 size 128
  $00000000004146B1
  $000000000042354B
Call trace for block $0000000800D99C00 size 40
  $00000000004146B1
  $000000000042354B
Call trace for block $0000000800D99B00 size 24
  $000000000042354B

Note only FreeBSD, it happens in Ubuntu 18.04 too after upfrage to FPC 3.2.0

Fix in 2d531e44d3
See related bug https://bugs.freepascal.org/view.php?id=37233


issues with the generated xml file

Although the generated appx file works as expected I got the following errors during app submission
Package acceptance validation error: We don’t allow the capability you’ve specified: runFullTrust.
Package acceptance validation error: The PublisherDisplayName element in the app manifest of TDM.appx is Reserved, which doesn't match your publisher display name: *****.
Package acceptance validation error: You don't have permissions to specify the following namespaces in the appx manifest file of the package TDM.appx: http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities

If I remove the runFullTrust capability as well as the namespace, electron app would not run anymore (even the hello world example). I am not sure how to debug this appx.

Hey! Sorry to say that submission is still in the works and will be possible with Windows 10 Anniversary Update, which will be ready for people this summer.
https://www.microsoft.com/en-us/windows/upcoming-features
(Closing this in the meantime - the XML is fine, we're just waiting for the store ;-))

@felixrieseberg so do we really need the runFullTrust capability? internetClient capability seems to be just fine for a simple app.
<Capabilities>
  <Capability Name="internetClient"/>
</Capabilities>

One other question. Do you happen to kow how I can debug the generated appx. I can install it but not sure how to debug it.

Hi @felixrieseberg ! We just stumbled upon this very same issue while submitting our app to the Windows Store, is there any update regarding the status?
Windows 10 Anniversary Update is supposely coming soon, Is there a workaround for submitting the app in the meantime?
Thanks :smile:!

Hey! Sorry to say that runFullTrust is what makes the whole application work. We're working with a few selected companies right now to iron out the edges, but submission should be available "soon". We still don't have a date yet, but as soon as we do, I'll make sure to let people know!

@felixrieseberg Hey there. Anniversary has been around for a while so I wanted to push my app to the store.
Sadly this is what happens:

Complaint about PublisherDisplayName being Reserved
Complaint about http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities

And also Your developer account doesn’t have permission to submit apps converted with the Desktop Bridge at this time. - but I guess I'll just have to fill out that form.
Please reopen the issue.


Unable to launch rmf office demo properly

Hi,
I just followed instructions to download and compile the rmf_ws source code today.
The downloading and compiling were smooth and successful.
However, when I ran the first rmf_demo on office map, there were no robots spawn on Rviz and Gazebo was also not launched.
In RMF panel, there was no robot's information. Tasks could be submitted but had no action from the system.
Some screen captures when I launch the demo are as follow,

I am using Ubuntu 20.04 with both ROS noetic and ROS 2 foxy installed.
Do you have any idea what issue is causing that?

I see the error "Address already in use" for localhost:8080, can you check you don't have anything running on localhost at that port? it seems it might be conflicting...

It would be helpful if you could copy out the log into a github gist too, thanks!

@JGUO006 as of PR https://github.com/open-rmf/rmf_demos/pull/80, the correct way to launch the demo is ros2 launch rmf_demos_gz office.launch.xml. But in your first screenshot, you're using the old command ros2 launch rmf_demos office.launch.xml
This was done to separate gazebo and ignition dependencies in launching the demos.

Sorry, I accidentally closed this ticket. My suggestion above is relevant to not starting gazebo without which, there are no robots that make their presence known to the fleet adapters. As a result, the adapters will not respond to the bid for a new task. But as @marcoag and @aaronchongth have pointed out, there is another issue with the conflicting addresses on your system.

Hi,
Thanks all for your prompt reply! I have checked that one of my docker containers installed recently is using port 8080. It is causing the port conflicting (already in use) issue.
After I stopped docker containers and checked that the port 8080 is not being used any more, I ran the old command ros2 launch rmf_demos office.launch.xml first. There was no error message but the result was the same as mentioned above. No robots spawn and Gazebo not pop up.
Then I ran the recommended command ros2 launch rmf_demos_gz office.launch.xml, everything was just back to normal.
Here are some screen captures,

That solved this issue here. Thank you!

@JGUO006, glad to hear that you're able to run the demo. I'll go ahead and close this ticket 😄


Mapping issue

I know this is hasn't been updated in a while, but I just found this script.
Getting an issue when I go to run it.
Traceback (most recent call last):
  File "ping_to_netbox.py", line 167, in <module>
    result = pool.map(threadedPingReverseSave, listOfIpsWithMask)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 251, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 567, in get
    raise self._value
TypeError: do_one() takes exactly 3 arguments (2 given)

Thanks!

Looks to me like you're using a different python-ping library. The one you'll need for this app is here: https://github.com/samuel/python-ping
I've not confirmed this via testing, but the error is saying that "do_one()" takes 3 arguments, and the code in samuel's python-ping clearly still shows 2 arguments... https://github.com/samuel/python-ping/blob/master/ping.py

Appreciate the reply. I ended up reworking some of the code to take away the multithreading and it works for me. It's a little slow (400 IPs in about 5 minutes), but I only need it to run once a day. I also don't have it doing DNS search, not adding new IPs, and patching to the REST API instead of posting.
This is an awesome tool!
#!/usr/bin/env python
#Copyright Sean Hunter
#Using MIT License (see license file for detail)

import json, requests, ipaddress, time
#Python3 way (currently broken)
#import ping3
#Python2 way (currently the only non-broken way)
import ping
from multiprocessing import Pool
from pprint import pprint

#############################################################################
#DEAR USER - YOU MUST DEFINE EVERYTHING FROM HERE ###########################
#############################################################################

#How long to wait for ping responses
timeout = 2
#Currently configured for a local run against a Docker Netbox install
#Adjust to fit your environment (in prod, probably on port 80 or 443)
ip_addresses_url = "http://localhost:8001/api/ipam/ip-addresses/"
ip_prefixes_url = "http://localhost:8001/api/ipam/prefixes/"

#Authorization header
#This must be generated from the Netbox web UI at http://netbox/user/api-tokens/
header={"Authorization": "Token "}

#Set to:
#1 - Scan RFC1918 space (<IP_ADDRESS>/16, <IP_ADDRESS>/12, <IP_ADDRESS>/8)
#2 - Scan IP addresses defined in Netbox
#3 - Scan prefixes defined in Netbox
load_scanner_from_rfc1918_or_netbox = 2

#############################################################################
#THROUGH HERE ###############################################################
#############################################################################

#NOTE: Current possible status for IP addresses in Netbox include:
#1 - Active
#2 - Reserved
#3 - Deprecated
#5 - DHCP
#Don't ask what happened to 4. I assume Jeremy Stretch murdered him, the poor fellow.

def threadedPingReverseSave(addr):
	#Drop trailing /xx
	ip = addr.split("/")[0]
	#Run ping twice - first to ensure ARP completes before second ping goes through
	#this is often visible in labs where the first ping to a newly online device will fail
	ping.do_one(ip, timeout, 1)
	ping.do_one(ip, timeout, 1)
	rtt = ping.do_one(ip, timeout, 1)
	#Create the appropriate search string for a PTR record by reversing the IP space and
	#adding in-addr.arpa to the query
	#If the ping failed...
	if rtt == None:
		print(ip + ": NO RESPONSE BEFORE ICMP TIMEOUT EXPIRY")
		#There's not a great answer here, so we're going to assume the IP is merely reserved
		#Feel free to adjust this to your needs
		status = 3
	#If the ping succeeded...
	else:
		print(ip + ": " +str(rtt))
		status = 1
	return status

if __name__ == '__main__':
	start_time = time.time()
	if load_scanner_from_rfc1918_or_netbox == 1:
		#Load from RFC1918
		print("Not currently loading addresses from RFC1918, even though I was told to!!")
	if load_scanner_from_rfc1918_or_netbox == 2:
		#GET IP addresses from Netbox
		print requests.get(ip_addresses_url+"?limit=5000", headers=header)
		response = requests.get(ip_addresses_url+"?limit=5000", headers=header)
		listOfIpsWithMask = response.json()['results']
		for ipaddr in listOfIpsWithMask:
			ipaddr['isNew'] = "old"
	if load_scanner_from_rfc1918_or_netbox == 3:
		#GET IP prefixes from Netbox
		response = requests.get(ip_prefixes_url+"?limit=5000", headers=header)
		listOfPrefixes = response.json()['results']
		print(json.dumps(listOfPrefixes, indent=4))
		listOfIps = []
		for prefixObj in listOfPrefixes:
			print(prefixObj['prefix'])
			print(ipaddress.ip_network(prefixObj['prefix']).hosts())
			for host in ipaddress.ip_network(prefixObj['prefix']).hosts():
				listOfIps.append({"address": str(host)})
		listOfIpsWithMask = listOfIps
		for ipaddr in listOfIpsWithMask:
			ipaddr['isNew'] = "new"

	index=0
	for i in listOfIpsWithMask:
		if listOfIpsWithMask[index]['custom_fields']['Ignore from Automatic Status Update?']==True:
			index+=1
			continue
		else:
			if listOfIpsWithMask[index]['status']["value"]==1 or listOfIpsWithMask[index]['status']["value"]==3:
				newStatus=threadedPingReverseSave(listOfIpsWithMask[index]['address'])
				if newStatus!=listOfIpsWithMask[index]['status']["value"]:
					r=requests.request(method="patch",url=ip_addresses_url+str(listOfIpsWithMask[index]['id'])+"/", headers=header, json={"status": newStatus})
					print("\tREST API Status: "+str(r.status_code))
			index+=1

	#print(json.dumps(listOfIpsWithMask,indent=4))
	completion_time = time.time() - start_time
	minutes=int(completion_time / 60)
	seconds=int(completion_time % 60)
	print("Run took " + str(minutes) + " minutes and " + str(seconds) + " seconds")


ARROW-17869: [Java][Gandiva] Allow reserve not implemented in varlen output buffer

Java's buffer type doesn't support reserve, so NotImplemented won't be treated as an error for reserve.

@github-actions crossbow submit java-jars

@github-actions crossbow submit java-jars

@github-actions crossbow submit java-jars

@github-actions crossbow submit java-jars

Hmm... It's strange...

@github-actions crossbow submit java-jars

Brew's LLVM 15 enables z3 by default, and it's shared linked. So at task Build Java Jars, it's required to have libz3 installed on the system. There are several ways to solve this:

Add a brew install z3 task to Build Java Jars task
Pin LLVM for java to 14. Currently it uses arrow/cpp/Brewfile. We can create another Brewfile in arrow/java and pin it in the new file.
We can also pin LLVM to 14 for all MacOS builds at arrow/cpp/Brewfile. Because LLVM 15 is noticably slower than LLVM 14 somehow. It can also speed up the build time for other MacOS CI tasks.

Which way is preferred? cc @kou @pitrou

for now but we need a new Jira issue for unpinning.

for now but we need a new Jira issue for unpinning.

I've pinned Brew llvm version to 14. Also filed https://issues.apache.org/jira/browse/ARROW-17902 to track current workarounds for LLVM 15 related issues.

@github-actions crossbow submit java-jars

@github-actions crossbow submit java-jars

@github-actions crossbow submit java-jars

@github-actions crossbow submit java-jars

Hmm... it would be much more desirable to implement Reserve on Java-exported buffers instead. @lwhite1 @lidavidm Could one of you help perhaps?

From a quick glance only: why are we reserving if we're resizing immediately afterwards anyways?

From a quick glance only: why are we reserving if we're resizing immediately afterwards anyways?

Because the resize implementation for SimpleBuffer doesn't amotize the realloc costs, if we don't reserve, there will be N reallocs, one for each resize call. Now it's reduced to log2(N), since with each reserve we double the buffer size. We still need to call resize to track the actual size.

Ah, thanks for the explanation. I think it would be best if we could implement reserve for Java-allocated buffers, but I am not familiar with the code and don't have time to look at it.

That said: it seems like we could recycle the logic for resize here to also implement reserve? https://github.com/apache/arrow/blob/5fd54bc6c39613adcc3d196669c28182e12cbec0/java/gandiva/src/main/cpp/jni_common.cc#L715-L753

That said: it seems like we could recycle the logic for resize here to also implement reserve?
https://github.com/apache/arrow/blob/5fd54bc6c39613adcc3d196669c28182e12cbec0/java/gandiva/src/main/cpp/jni_common.cc#L715-L753

It seems like we can. I can take a look later today if you don't have time for it.

@js8544 Are you closing this PR in favor of another one?

@js8544 Are you closing this PR in favor of another one?

@pitrou Yes, I will submit another PR once https://github.com/apache/arrow/pull/14310 is merged since this change requires llvm@14.


chore: Use the rustup snap to install latest stable rust

Description
This changes the way Rust and Cargo are installed for building the charm. Instead of using the deb packages available for the base, it uses the rustup snap to install the latest stable Rust and Cargo releases.
This will solve building issues for modules like pydantic that now depend on newer releases of Rust to build.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that validate the behaviour of the software
[x] I validated that new and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have bumped the version of the library

My feeling here was more or less "let's use what is in the latest Ubuntu". But I understand if we really want the latest pydantic we need this workaround.


Allow user to update its own properties in identity

backport to RELEASE-3.0.x

retest

retry

retest


Integration Test - Release - 2021/11/01 10:36:51

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#pri3'

#pri2

#pri3

#assign PRMergerTest1

#assign NonAllowedUser

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

#reassign PRMergerTest2

#reassign NonAllowedUser

#please-close


rxjava2: reactive Vertx should be injected in Junit 5

In Vertx Rxjava 2 sample, I tried to use all vertx-rx-rxjava2 APIs instead of the vertex core.
But the io.vertx.reactivex.core.Vertx can not be injected in the JUnit 5 methods like the normal Vertx.
My application is based on the following stack:

Vertx 4.0.0
Java 11
Windows 10

I have to wrap it myself like this:
WebClient client = WebClient.create(new io.vertx.reactivex.core.Vertx(vertx));

which vertx version ?

Vertx 4.0.0

@jponge ?

As documented in the release notes, you need to add a dependency on https://github.com/vert-x3/vertx-rx/tree/master/rx-junit5-providers/vertx-junit5-rx-java2

@jponge @vietj  Thanks.


[Feature Request] Field Operations Support

Explicit support for field operations is lacking, and will likely be a highly requested feature for the upcoming Dawntrail one.
At some point, some additions were made to the code to support older field operations, but this didn't end up going much of anywhere.
I want to identify where this feature is at, and what it may need.

[ ] All Field Operations

[ ] Setup similar to Variants, to be as simple to include into combo code

[ ] Bozja

[ ] Lost Actions

[ ] Eureka

[ ] Automatic Elemental setting?

[ ] (foundation for) Occult Crescent

Im sure it would depend on how the field operation goes. if it is just something like giving a cure or shield thats one thing. But the full list of bozja lost actions is a whole lot to account for.
We will have to see how the new content plays out

Certainly not the whole list, certainly not allowing many options; would only follow those recommended in the DSR rotations, I reckon.
Still too early to know any design decisions ha.

[ ] Eureka

[ ]  Automatic Elemental setting?
Isnt that base game? ->


Local CloudCode server URL

Seems like all Parse actions done within Cloud Code are against Parse.com apps and not against local Parse Server. When I started trying out Parse Server I've set all keys to corresponding keys of my Parse.com app. Now I've got 155 error in my trigger, which should not be happening as I don't see anything within parse-server repo to throw it. So looks like it was communicating with Parse.com. When I changed all keys to random string I started getting I/O errors in Android app.
Here is the code in index.js:
// Initialize the node client SDK automatically
Parse.initialize(args.appId, args.javascriptKey || '', args.masterKey);

I wasn't able to find any way to provide server url in JS SDK. Am I missing something? Anyway, JS SDK initialized with Parse Server should probably be connected to localhost.

Follow on in #132.


Fix logic.sql Invalid Column usage

Per #51, this PR is a quick fix to unblock CreateIfNotExstsAsync running the logic.sql script.

@cgillum curious how often would the package version?

@jasonwun you mean the nuget package? I can publish the updated package either tonight or tomorrow.

@jasonwun you mean the nuget package? I can publish the updated package either tonight or tomorrow.

Thanks, that would be helpful. It currently blocks some of our PoC on cloud environment. We have a workaround to manually migrate the schema but it is quite hacky.

Unfortunately, I ran into a blocking issue (unrelated to this PR) that prevents me from doing a release immediately. The release might be delayed until either tonight or early next week.

This is now released: https://github.com/microsoft/durabletask-mssql/releases/tag/v0.11.0-beta.


batchWrite / batchGet && transactGet / transactWrite

Hey Chris,
Thanks for writing this datasource. Have enjoyed using it in my project. There has come a need for us to do batchWrite/ transactWrite in our project and I love the way your code has an inbuilt datasource cache. Are there any plans to add this additional functionality to your repo?
Cheers,
jack

batchWrite is definitely something I have considered. I will take a look into this and writeup what I think it will take and respond. Thanks for bringing it up and glad you are enjoying the repo!


Display action menu on long-press of convo row

’Nother little QOL (quality of life) one here, also lo-pri but great if easy:
• let long-press on a convo row display an action menu (obvi can get much smarter about what goes in there later)
• this also fixes the weirdness of long-press being an immediate “pin” action
• I put convo-level Notifications in there but I don’t think we have’em yet … ignore if not
Slack Message

There is a new build with some of these implemented

These are great — here's some updated guidance now that we have design system and components coming together.

can we introduce the preview/actions directly (like reactions) rather than sliding them in from the bottom?
style guidance:

https://www.loom.com/share/a2a2c46e8c734bf7b27469430b0c6d35
https://www.figma.com/design/p6mt4tEDltI4mypD3TIgUk/Converse-App?node-id=2853-5916&t=e61aVPFvxGke3PnG-1

@alexrisch please prioritize however you deem fit


[vehicle] Fix when door missing & seat is not free

modify behavior when door is missing on the car (switch from handle to seat bone)
do not handle wheel_ bone if vehicle has less than 4 seat (can create issue returning -1 so driver seat)
check if seat is free or that it's not a player  (can lockpick car while npc on seat)

Merged !


Relay: Add ACK responses and fix status

I think we've decided against ACK for now. ACK might be introduced on relayed messages at some point.


prefer cloudflare-worker then worker package export conditionals if available

Related discussion in #84

Thanks for the PR! I want to discuss internally what we want it to be called ("cloudflare-worker" feels a bit long to me, but I dunno what a good replacement is just yet.). I'll get back to this when we have some clarity.

Yeah, sounds good to me, let's do that.

This looks fine to me. @Andarist, what do you think? should we add webworker as well?

LGTM too - I've only left some minor suggestions.
I don't think you should include webworker condition yet - cause this has not been defined/promoted anyway (at least, not just yet, and as far as I've seen, I could have missed something).
I believe there were some talks about creating a document that would gather all known "standardized" conditions, one that would live outside of the node/webpack/whatever. I'm not sure what is the status of this though - cc @guybedford


Modsetting.lsx file not upadting with all mods

I have about 30 mods and it adds all of them to the mod folder but the modsetting.lsx file is only updated with 3 of them. Any ideas why this would happen? I have the newest version 1.0.8

This is a known issue with 1.0.8, as it cant extract the metadata from newer mods. A fix will be released alongside 1.0.9, for now the best solution is trying the canary version available on the discord.


Rescue from any error encountered while attempting to remove the old AMI

What was the problem this solved? Are you getting more AWS errors or is something wrong w/ the logic in the gem?

It was giving me an Uninitialized constant on that previous AWS error. I'm
sure we can come up with an alternative solution if that is preferable.
On Dec 15, 2016 5:46 PM, "Logan Serman"<EMAIL_ADDRESS>wrote:

What was the problem this solved? Are you getting more AWS errors or is
something wrong w/ the logic in the gem?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lserman/capistrano-elbas/pull/18#issuecomment-267478251,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIlWhNhvJJxNH0mIHlK5LQ12VT2sj03Vks5rIdFcgaJpZM4LOZBk
.

Tracked in #34 , see my comments on #19.


[BUG] 'React' is referenced directly or indirectly in its own type annotation.

TypeScript Version:  3.3.0-dev.20181208

Search Terms:

'React' is referenced directly or indirectly in its own type annotation.
Error: Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isJsonSourceFile'.
Code

// @strict: true
// @module: esnext
// @moduleResolution: node
// @target: es2018
// @filename: global.d.ts
declare global {
  const React: typeof import("./module");
}

export {};

// @filename: module.d.ts
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e95e11dcf2afe422e9044bbdb0e926b1647fbf9e/types/react/index.d.ts#L44-L47
export = React;
export as namespace React;

declare namespace React {
  function createRef(): any;
}

// @filename: some_module.ts
export {};
React.createRef;

// @filename: emits.ts
console.log("hello");
React.createRef;

Expected behavior:
compiled without<EMAIL_ADDRESS>Actual behavior:
crashes in<EMAIL_ADDRESS>(issue: https://github.com/Microsoft/TypeScript/issues/28762) (https://github.com/Microsoft/TypeScript/pull/28782 fixed)
compiles error in<EMAIL_ADDRESS>'React' is referenced directly or indirectly in its own type annotation.

Playground Link:
minimal example: https://gist.github.com/magic-akari/cfc0e1c31ddcc5dd4a2f07a5da4725dc
example with @types/react: https://gist.github.com/magic-akari/aa10dfb809268eb4f63d5749d113a93a
Related Issues:
https://github.com/Microsoft/TypeScript/issues/28762

@magic-akari Wrong project?
You should report here I guess.

@aminpaks Is there anything wrong in the example code?

@magic-akari I don't know. I was just pointing out that I think you reported the issue in the wrong project.
This project is TypeScript language, DefinitelyType project is maintaining React types.

@aminpaks I have reproduced the issue with my code.
The only things related to React is that I use the React as the variable name and its logic is the same as the definition of @types/react.
There is no module imported from react or @types/react.
I am not sure if it is related to DefinitelyType, for it worked in<EMAIL_ADDRESS>

@magic-akari I understand.
React itself is a javascript library, it doesn't include any typings (facebook doesn't like TypeScript?) Anyways this means every time there is a new TypeScript version (current 3.2) there is a chance that types created by DefinitelyTypes project are not compatible anymore.

There is no module imported from react or @types/react.

We might not import it directly but that's how TypeScript works. We always import types from @types/react (based on tsconfig and typeRoot) otherwise VSCode (runs TypeScript language server) can't understand the semantics of React.

@aminpaks

Can you push your code in a repo?

You can clone the gist just like how to clone GitHub repo.

Looking at the second link you posted, are we importing @types/react to global namespace?

Yes. It is what I want to do.
Please clone and play with the first gist link which is the key to this issue.
The first gist only depends on Typescript.

I just realized what you mean. You're right this has nothing to do with DefinitelyType project.
Should not it be like this:
// global.d.ts
declare namespace React {
  function createRef(): any;
}

// emits.ts
console.log('hello');
React.createRef;

For someone run into this issue, try this code below:
// global.d.ts
declare global {
  export namespace React {}
  export namespace ReactDOM {}
}

export {};

It works in current version typescript like the original code in<EMAIL_ADDRESS>Not sure if the original code is wrong or not.

Thank you for your patience @aminpaks .


Fix typo in link to go-redis/redis

Currently it tries to take you to https://github.com/gofiber/storage/blob/main/redis/github.com/go-redis/redis


Add minimal description about location_types_summary and class_objects_summary, and summary.php_version

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 84.233%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
4867

Relevant Lines:
5778

💛  - Coveralls


Close excessive figures

Since the number of LfpTrendLogs can be quite high (hundreds, at least), we may want not to keep all the created figures open to save OS resources. Otherwise, the graphic resources would get exhausted and no new figure would get created (at least on X11 system on linux), where I experience the following error:
  Maximum number of clients reached
  Exception in thread "AWT-EventQueue-0": com.jogamp.nativewindow.NativeWindowException:
  X11Util.Display: Unable to create a display(:1) connection.

Sure, editing the main file is not good at all. I didn't mean doing this. My assumption was that some types of plots (e.g. the LFPTrendLogs) would always be closed immediately, as the number of the their runs is typically high. But, maybe, in some data, the number of runs is relatively small and one would want to keep all of them.
The disadvantage of limitting the number of open figures is that you would plot 100 not-so-important plots, and the next super-important plot would not stay open. Therefore, prioritizing the plots could be a plus.
The idea of customization processing using user-defined options is great. So what about to either:

customize the maximum number of open plots, and also customize the priority of each plot type, such that the plots being kept will be determined automatically to those with higher priority? (perhaps too complex), or
for each plot type, customize whether to keep such plots opened, or not? (this is much easier to implement)

Sure, editing the main file is not good at all. I didn't mean doing this. My assumption was that some types of plots (e.g. the LFPTrendLogs) would always be closed immediately, as the number of the their runs is typically high. But, maybe, in some data, the number of runs is relatively small and one would want to keep all of them.
The disadvantage of limitting the number of open figures is that you would plot 100 not-so-important plots, and the next super-important plot would not stay open. Therefore, prioritizing the plots could be a plus.
The idea of customization processing using user-defined options is great. So what about to either:

customize the maximum number of open plots, and also customize the priority of each plot type, such that the plots being kept will be determined automatically to those with higher priority? (perhaps too complex), or
for each plot type, customize whether to keep such plots opened, or not? (this is much easier to implement)

Ah, ok I misunderstood. It was the idea that users are changing in there what they want to plot and what not. If that is not what you suggested, then that is fine with me and I think the way you implemented it makes sense. From my personal perspective one could even think about closing all, as they are saved anyways… For me the saving as both png and pdf (vector) is actually relevant and super important, but maybe that is also something that some people don’t like. Maybe we can think about a list of potential options. Plotting and printing/saving would be the first obvious things.
I think it would be easily possible to implement plot and print options by datatype in the json structure. Potentially even optional, if not defined go back to default…
From: Tomáš Sieger<EMAIL_ADDRESS>Sent: 25 January 2021 17:50
To: neuromodulation/perceive<EMAIL_ADDRESS>Cc: Neumann, Wolf-Julian<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: [ext] Re: [neuromodulation/perceive] Close excessive figures (#8)
Sure, editing the main file is not good at all. I didn't mean doing this. My assumption was that some types of plots (e.g. the LFPTrendLogs) would always be closed immediately, as the number of the their runs is typically high. But, maybe, in some data, the number of runs is relatively small and one would want to keep all of them.
The disadvantage of limitting the number of open figures is that you would plot 100 not-so-important plots, and the next super-important plot would not stay open. Therefore, prioritizing the plots could be a plus.
The idea of customization processing using user-defined options is great. So what about to either:

customize the maximum number of open plots, and also customize the priority of each plot type, such that the plots being kept will be determined automatically to those with higher priority? (perhaps too complex), or
for each plot type, customize whether to keep such plots opened, or not? (this is much easier to implement)

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/neuromodulation/perceive/pull/8#issuecomment-766952289, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMAAPAPV3DMLV5MOWNFE443S3WOKDANCNFSM4WRN65XA.

Ah, ok I misunderstood. It was the idea that users are changing in there what they want to plot and what not. If that is not what you suggested, then that is fine with me and I think the way you implemented it makes sense. From my personal perspective one could even think about closing all, as they are saved anyways… For me the saving as both png and pdf (vector) is actually relevant and super important, but maybe that is also something that some people don’t like. Maybe we can think about a list of potential options. Plotting and printing/saving would be the first obvious things.
I think it would be easily possible to implement plot and print options by datatype in the json structure. Potentially even optional, if not defined go back to default…
From: Tomáš Sieger<EMAIL_ADDRESS>Sent: 25 January 2021 17:50
To: neuromodulation/perceive<EMAIL_ADDRESS>Cc: Neumann, Wolf-Julian<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: [ext] Re: [neuromodulation/perceive] Close excessive figures (#8)
Sure, editing the main file is not good at all. I didn't mean doing this. My assumption was that some types of plots (e.g. the LFPTrendLogs) would always be closed immediately, as the number of the their runs is typically high. But, maybe, in some data, the number of runs is relatively small and one would want to keep all of them.
The disadvantage of limitting the number of open figures is that you would plot 100 not-so-important plots, and the next super-important plot would not stay open. Therefore, prioritizing the plots could be a plus.
The idea of customization processing using user-defined options is great. So what about to either:

customize the maximum number of open plots, and also customize the priority of each plot type, such that the plots being kept will be determined automatically to those with higher priority? (perhaps too complex), or
for each plot type, customize whether to keep such plots opened, or not? (this is much easier to implement)

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/neuromodulation/perceive/pull/8#issuecomment-766952289, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMAAPAPV3DMLV5MOWNFE443S3WOKDANCNFSM4WRN65XA.

Sounds perfect!
I, personally, like both png and pdf (I use png for quick overview and merge all pdfs into a single large one to send to other people). Also, printing and immediate closing of figures would work for me perfectly. Immediate closing of some figures was simply a not-so-nice workaround to make all the plots even printed...

Sounds perfect!
I, personally, like both png and pdf (I use png for quick overview and merge all pdfs into a single large one to send to other people). Also, printing and immediate closing of figures would work for me perfectly. Immediate closing of some figures was simply a not-so-nice workaround to make all the plots even printed...

I am merging now, because this is a good quick solution before we implement options, which I do not have the time right now.

If you like, I can sketch options (not only regarding the number of figures, but also put some hard-coded constants there, customize plotting, etc.).


combine is rather bad on 2-character sequences

There are numerous hash collisions for relatively short sequences of ASCII characters (this is for the String instance, but tuples of Char etc. have essentially the same problem):
let eqhash a b = hash a == hash b
let sameHashes xs = filter (\xs -> not (null xs) && not (null (tail xs))) . groupBy eqhash . sortBy (comparing hash) $ xs
let readable = [' '..'~']
let mcons a b = liftM2 (:) a b
sameHashes $ mcons readable $ mcons readable [""]

Note that there are 3-way hash collisions for simple two-character strings.  It seems like a better combine function would be a good idea; a teensy bit more computation would be offset by reduced collisions and thus fewer string equality tests.  The best test here is probably benchmarking on 0-4 character strings using Data.HashMap.Strict.  My concern here is as much with data structures containing multiple integer fields whose value is usually small as much as with strings, though.

Just as a note, I've taken the liberty of porting hashable to use MurmurHash3, as it was finalized a few months ago for real (modulo future performance increases; constant/algorithmic changes are reserved for MurmurHash4.)
The branch with the relevant commit is here:
https://github.com/thoughtpolice/hashable/tree/murmurhash3
Actual commit:
https://github.com/thoughtpolice/hashable/commit/ff02f9a03ff38374ae69198411823599e4c69880
Note that while it includes Murmur, it does not enable it by default. I did this to be pragmatic so people could test out the branch, and look at the results. Unfortunately it currently fails the "text/rechunked" test, and I'm not exactly sure why. I also haven't run the benchmarks yet (the included ones, or any sort of unordered-container benchmarks.) Will do so later when I get the chance, although maybe you'd prefer to do this yourself @tibbe :)

It fails the re-chunk test because you can't build an incremental hash with the API provided by MurmuHash3.h, which the re-chunk test relies on.
I doubt it is impossible to do, but it might require work on our part.

I've tried to use MurmurHash3 before. The Haskell implementation wasn't fast enough (due to non-optimal code generation by GHC) and the C implementation was still slower than the current hash function (but undoubtably it has better collision properties). MurmurHash is optimized for throughput on longer inputs. Google's CityHash is a modification of MurmurHash that is faster on small strings.
For lazy Text we need an incremental version of MurmurHash as we don't want two texts that compare equal to have different hash values due to different internal chunk layout. If we end up using MurmurHash3 we need to create an incremental version (e.g. based on MurmurHash2 which already has an incremental version).

The other option is not providing hashing for lazy Bytestring/Text values, or canonicalizing the chunking before hashing.

It's possible to write an incremental version of MurmurHash. The official MurmurHash2 implementation has one.


Js sample fixes

LGTM, I'm happy to have this merged now. @jeffswartz we can update the code base if needed when the comment about how we treat audio differently is answered


[VS Code] Joining collaboration session: 由于身份验证错误，无法加入主机。请验证主机是否联机，然后注销后再次登录并重试。

%0A%0A%23%23 Error:%0AJoining collaboration session: 由于身份验证错误，无法加入主机。请验证主机是否联机，然后注销后再次登录并重试。%0A%0A%23%23 Steps to Reproduce:%0A1.%0A2.%0A%0A||Version Data|%0A|-:|:-|%0A|**extensionName**|VSLS|%0A|**extensionVersion**|1.0.337|%0A|**protocolVersion**|2.2|%0A|**applicationName**|VSCode|%0A|**applicationVersion**|1.35.0|%0A|**platformName**|Windows|%0A|**platformVersion**|10.0.17134|

Hi, @1525113309 ,thank you for reporting the issue. Would you give us some more information to investigate ? Does this consistently happen for you or happened once ? Did resigning in work?  Also , your logs may provide us with helpful information. You can access them via the "Live Share: Export Logs" command from the command palette (ctrl + shift + p) and attach them to the issue. I am consolidating the issue with #433 . Please attach your logs there and help us to investigate.


Investigate Integration of PySceneDetect for Expanding Weapon Detection to Video Feeds

Expanding our weapon detection capabilities from static images to video feeds using PySceneDetect offers an opportunity to enhance situational awareness and security measures. PySceneDetect is a powerful tool for scene detection and segmentation in videos, which can complement our existing image-based weapon detection model. This GitHub issue aims to explore options and considerations for integrating PySceneDetect into our workflow to extend our weapon detection capabilities to video feeds seamlessly.

Discovered flaws with PySceneDetect in keyframe detection with moving backgrounds, extended model to videos with the existing YOLOv8 architecture support for videos and changing frames.


Invalid parser option

Solo-python crashes just after running. It looks like one of the parser options are invalid. Log below.
Version: solo-python==0.0.6
Python: Python 3.7.2
OS: Fedora 29
Installed without errors via  pip3 install solo-python --user.
$ solo
Traceback (most recent call last):
  File "/home/sz/.local/bin/solo", line 7, in <module>
    from solo.cli import solo_cli
  File "/home/sz/.local/lib/python3.7/site-packages/solo/cli/__init__.py", line 17, in <module>
    from solo.cli.key import key
  File "/home/sz/.local/lib/python3.7/site-packages/solo/cli/key.py", line 18, in <module>
    from solo.cli.update import update
  File "/home/sz/.local/lib/python3.7/site-packages/solo/cli/update.py", line 41, in <module>
    help="Development option: pull firmware from http://localhost:8000",
  File "/usr/lib/python3.7/site-packages/click/decorators.py", line 170, in decorator
    _param_memo(f, OptionClass(param_decls, **attrs))
  File "/usr/lib/python3.7/site-packages/click/core.py", line 1459, in __init__
    Parameter.__init__(self, param_decls, type=type, **attrs)
TypeError: __init__() got an unexpected keyword argument 'hidden'

Are you using an old version of click? Current is 7.0, should have hidden: https://github.com/pallets/click/pull/500

Hi!
Yes, I do apparently:
$ pip3 freeze | grep click
click==6.7
click-completion==0.3.1

Update with pip3 install --upgrade click --user helped, thank you! In that case adding a hard version dependency would prevent this issue to occur on other installations.

Fixed in v0.0.7


emit an event when there are errors loading/preloading chunks

Description
I would love to be able to catch errors when preloading chunks (which often occurs when a new deployment has taken place) so that I can handle thiings appropriately.
Suggested solution
This is how we've implemented within Nuxt:
https://github.com/nuxt/nuxt/pull/19038/files#diff-7860a08e52b47fe432d19a402b062801774cefbb935172e30ce1e83a1ec6a962
Alternative
No response
Additional context
I would be very happy to implement this within Vite. It's a relatively small (and non-breaking) change
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

I think it would be better to move this upstream, so you don't need to rely on __vitePreload and other frameworks could benefit. If you have already an idea for the PR, maybe it is easier to discuss it there. I don't know if you are thinking of a standard way to handle these errors in Vite or if you would like to propose a way to configure this.

Thanks for the heads up @doutatsu 👍🏼

will it also solve "regular" failed dynamic imports? Because in my case, probably 99% are related to this and not chunks that no longer exists after a deploy :/

I imagine it would then be possible to trigger a retry. Though it would be
useful to have a suggestion as to how.
On Tue, 6 Jun 2023, 21:11 Victor Neves, @.***> wrote:

will it also solve "regular" failed dynamic imports? Because in my case,
probably 99% are related to this and not chunks that no longer exists after
a deploy :/
—
Reply to this email directly, view it on GitHub
https://github.com/vitejs/vite/issues/12080#issuecomment-1579380322, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAN26FVPUC7JBALARRGCVLXJ6FFVANCNFSM6AAAAAAU6JV4YY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

The PR adds an error event - it's up to you to handle it.


refactor reporter

The refactored reporter should go into the kubebench controller image. It should fit in the "run reporter" step in #50. It should take a key-value styled input from previous step and send the record to an external file or db. The initial supported data destination are csv and big query.

/priority p1

/assign

this was fixed by #67


MakingFilesR.ipynb notebook is corrupted

Github will no longer load MakingFilesR.ipynb.  I also tried running it locally and it eventually fails.  It stops rendering after
Outlier

I checked this on both Windows and Linux with Chrome and FierFox, and it rendered fine for me. Are you using a Mac? What browser are you trying to view it with Github, and what version of Jupyter Notebook/Lab are you trying to run it locally?
The notebook actually ended on the line "Outlier", which I've now changed to make it clearer when the notebook ends.

I was on Safari on OS X and was working with the latest version of Jupyter notebooks on OS X.  However, my whole class tried to render the notebook on GitHub using a variety of computers, OS, and internet browsers.  I'm not sure if this was a GitHub issue that was temporary because I had checked before my class and it worked.
Either way the new changes appear to be working for me.
Thanks!

@jpuritz This issue popped up again for me, so I've added a note on the Readme. If Github has problems rendering, you should always be able to paste the URL into https://nbviewer.jupyter.org/ and view the notebook. Will look into other reproducible paper repository options in the future....

That's a bummer.  It might be worth following up with GitHub.  I've yet to find a perfect solution for this.  I like Rmarkdown, but it has trouble actually running BASH scripts without producing errors.


Persistence on Docker

Is persistence supported when using a Docker volume? If so, how is it configured?

Hi @leandromonaco!
There is no persistence as such. But you can use the Recorder-feature to log, and later replay, all incoming requests. See the docs here: http://docs.getmoto.org/en/latest/docs/configuration/recorder/index.html
Does that help you?

Thanks for the quick reply. I was not aware of that feature, I'll check it out 🙂

@bblommers I gave the feature a try using Cognito. I'm getting an error and raise a separate issue for it
https://github.com/getmoto/moto/issues/6531


Failed to start API Mock endpoint TypeError: arn.split is not a function

Describe the bug
I receive error Failed to start API Mock endpoint TypeError: arn.split is not a function when I run amplify mock. However, I am able to push the amplify backend to the cloud without any issue.
Amplify CLI Version
Tested with amplify cli 4.18.0, 4.20.0 and 4.21.0
To Reproduce
Steps to reproduce the behavior or terminal output if applicable
Scanning for plugins...
Plugin scan successful

GraphQL schema compiled successfully.

Edit your schema at /Users/jaidi/Workspace/Otavalo/src/Otavalo/source/web/otavalo/amplify/backend/api/otavalo/schema.graphql or place .graphql files in a directory at /Users/jaidi/Workspace/Otavalo/src/Otavalo/source/web/otavalo/amplify/backend/api/otavalo/schema
Could not find ref for "authotavaloUserPoolId". Using unsubstituted value.
Failed to start API Mock endpoint TypeError: arn.split is not a function

Expected behavior
Being able to mock
Screenshots
No screenshots, but I have sent the project to<EMAIL_ADDRESS>Desktop (please complete the following information):

OS: Mac Mojave 10.14.6
Node Version. v13.12.0

Additional context
Our backend uses a combination of:

Cognito
Lambda functions
Custom AppSync Pipeline Resolvers

I am facing the same issue, was there an update/resolution for this?

Update here. After removing the resources created in CustomResources.json entirely, amplify mock worked once more. I still don't know what is causing the issue but at least I know it's there


Require prevEndRow when conditionally modifying an extent

Fixes #3356

I think this was closed in favor of #3870, but it's not clear without a comment. If somebody involved can confirm this, I think it would help people who were following this.

Yes, it was closed in favor of #3870


[bug]: rest endpoint v2/wallet/address/next not returning an address

Background
https://localhost:8080/v2/wallet/address/next
With (and without) param body: ["type": 1]
Is returning:
["code": 5, "details": <__NSArrayM 0x600003050a20>(

)
, "message": Not Found]

Your environment

version of lnd: 0.18.2-beta
which operating system (uname -a on *Nix): macOS
version of btcd, bitcoind, or other backend: Bitcoin Core v26.2

Steps to reproduce
When I run the above endpoint I expect an address to be returned, however I am getting an empty array.
Expected behaviour
Return an address.
Actual behaviour
See above..

Hello @Fonta1n3
You're experiencing transcript error. It seems your query would be best dealt with by the support team.
I'll have to refer you to the official support Requests team with the ticket ID BTC07638
Please see the link below to our dedicated support line:
Bitcoin Support Requests
Note; Click on the live chat icon at the bottom corner of the page to initiate chat

Are you sending a POST request? And are you running a release build or a self-compiled binary?

Yes POST, and I compiled from source git checkout v0.18.2-beta. Previously I didn't need to pass any params. Ive also tried ["type": "WITNESS_PUBKEY_HASH"] and "p2wkh". I am on regtest.
lncli -network regtest newaddress p2wkh returns an address fine. Not sure what I am doing wrong...

Then you need to compile with the correct build tags. See https://lightning.engineering/api-docs/api/lnd/index.html#experimental-services.
So in your case make build tags="walletrpc" to enable that specific subserver.
Also, ["type": "WITNESS_PUBKEY_HASH"] is not valid JSON. It would need to be {"type": "WITNESS_PUBKEY_HASH"}.
Converting to a discussion as this is troubleshooting and not a bug.


16 Bit grayscale heightmaps

This is the setup I am using to generate 16 Bit grayscale heightmaps, extracted from the (now dead) #141 . There is a big chunk of code here that is basically a drop-in replacement of the ImageWriter-class used so far (I gave it its own file). Technically that class could be used to write all images (which would remove the Pillow-dependency) but I didn't want to go in too deep again. Maybe later.
The tests won't be passed until I also update the grayscale heightmap in worldengine-data. That can happen once the code here is acceptable, I think.
EDIT: I had to base this off of #161 , currently only the last two commits here are actually new.
PS: I will try hard to keep this my last PR until all others are handled. ;)

Ok, so let's merge #161 first

Ok, I think I understand what you mean. Since draw_grayscale_heightmap() is still around and in working order (although it will produce output that slightly differs from the raw elevation map) all of this should not cause problems right now.
Here it doesn't look like the functions in draw.py are actually used, though:
https://github.com/Mindwerks/worldengine-gui/blob/master/worldengine-gui/view.py

that could be because Bret reimplemented the GUI, we dropped the code I had from lands. I think in the long run we should use the same functions here and there but the GUI is still in alpha state for now I think. Probably @psi29a is the best person to comment on this

Still, me not calling draw_grayscale_heightmap() in draw_grayscale_heightmap_on_file() would not stop the GUI from using draw_grayscale_heightmap(). Right now it might just not be necessary to do that extra step in draw_grayscale_heightmap_on_file().

About the three failing tests:
The grayscale-test obviously fails until a new (16 Bit) grayscale heightmap is pushed to worldengine-data.
The ancient-map tests might need a slightly extensive rewiring within drawing_functions.py. I think I will take care of it later today, but there will be a lot of (very trivial) changes, as far as I can tell.

Couldn't this already be done via GDAL export? It was the reason why I dropped pypng support to begin with as GDAL can handle this for us.

Yes, GDAL can do it. But creating a proper heightmap without GDAL seems like a good idea to me, the "normal" fake-grayscale heightmap isn't too useful anyway.
GDAL can still handle all possible other formats ( #159 ), including raw data.

Additionally, Pillow can handle several different formats but doesn't fully support the PNG-standards. And since worldengine uses Pillow to exclusively write PNG-files, I thought that it might be a good idea to switch to a library that fully supports PNG, and only that.

It is a pity that 16-bit greyscale png isn't widely supported.
I know... been there with pypng as well. :)
https://github.com/psi29a/worldsynth/blob/2b2e9f8d8b42f34f512b923a96e1fdc636f795b1/worldsynth.py#L635

Well, I haven't found a program that couldn't at least open the output. And the file could be directly imported to Unreal Engine, which (I think) is a good example use-case for grayscale heightmaps.
Also, the class I wrote to handle PNG does support all formats (except the ones using palettes) so the output could be changed by switching just a small piece of code:
img = PNGWriter.grayscale_from_array(world.elevation['data'], filename, scale_to_range=True)

becomes
img = PNGWriter.grayscale_from_dimensions(world.width, world.height, filename, scale_to_range=True)
draw_grayscale_heightmap(world, img)

So at the very least nothing is lost.

So, do you think I should pursue and finish this PR? Or do you really not like the idea of creating 16 Bit heightmaps by default?

Are you sure that gdal can't create 16-bit greyscale pngs? I thought I tested this, which is the reason I removed pypng since it would be redundant.
https://trac.osgeo.org/gdal/ticket/2806
^-- uint16 png works

GDAL can do it for sure, I said that before. ;) But it is also a library that isn't too easy to install (for me, at least) and won't automatically come with the WorldEngine release. And I am not sure what uses the fake grayscale (it's actually RGBA made to look gray) 8 Bit heightmap as default output actually has.
I did design the PNGWriter-class to be a full replacement for the Pillow-writer - I didn't know that would kind of be a step backwards. I will think about this tomorrow.

I decided to just finish this and let you decide. With leftover code from https://github.com/Mindwerks/worldengine/pull/141 there wasn't much work left to do, so I just went all the way - Pillow is gone, I even regenerated all the data (mostly because I needed the tests to hiccup in case x- and y-coordinates of arrays/images were accidentally swapped; since all test-maps were square before that was not assured). Python 2 and 3 passed all tests with that data on my system.
There are some more PyPNG abilities that could be taken advantage of, but I tried to leave output and code as unchanged as possible (there already are enough changes in this PR, even though most of them are tiny).

I'm still curious as to what the problem was with GDAL on linux... it works here just with pip install pygdal (provided you have libgdal-dev package installed).
Any releases I upload (binary releases) will include gdal, that includes windows/osx/linux.

It was pygdal that didn't work for me, I don't remember the exact reason, though - I switched PCs since so I don't have an immediate way to reproduce the problem either.

A fresh environment:
(venv3)tcl@worldengine$ pip3 install pygdal
Collecting pygdal
  Using cached pygdal-<IP_ADDRESS>.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-4b773ez_/pygdal/setup.py", line 61
        print 'GDAL prefix from environment variable %s' % ENV_GDALHOME
                                                       ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4b773ez_/pygdal

I feel like I posted this before. pygdal really doesn't seem to be compatible with Python 3.
I also switched PCs again and still cannot get a proper Python 2 venv going. On the laptop it worked fine - but I will just go ahead and assume that pygdal will work fine with Python 2. It has to work somewhere, I guess.^^
On top of all those errors, I have the perfect solution for this PR - no need to include two ways to produce 16 Bit heightmaps, we can just remove draw_grayscale_heightmap() completely! :P (I really feel that the output isn't exactly useful in 8 Bit.)

Yeah, python2.  It was fixed here:
https://github.com/dezhin/pygdal/blob/master/setup.py#L61
just waiting for new release to drop.

Oh ... I also feel like I read that before.^^

I rebased #185 on this since before I wasn't able to have that PR pass it's new tests.
Since there are quite a lot of changes in here, I'll give a short rundown:

The image-drawing class (PNGWriter) operates on a numpy-array and provides the same interface as the old ImagePixelSetter; pixels can be accessed/modified via the numpy-interface, if wanted.
Pillow has been completely replaced by PyPNG.
All access to the image-module happens inside image_io.py, the image-module could be swapped out easily.
All direct access to data-carrying arrays (as well as images) happens via [y, x]; there were inconsistencies before where [x, y] was used instead. (Orientation of the images stays the same.)
PNGReader reads PNGs and stores them in a numpy-array; the reader is used by the tests and later might want to be used in other parts of the code to circumvent the need for directly accessing the underlying image-module.
At the moment RGBA-, RGB- and grayscale-PNGs can be created easily within a single line of code; palette-support was skipped for now.

Do we need Pillow at all anymore?  If we default to PyPNG (purely python) for all output, then use GDAL to support other things that Pillow normally supported, then we don't need Pillow.

We don't need Pillow, I tried to remove it. Did I overlook something?

also in appveyor, tox, etc for the pillow->pypng switcheroo ?

tox.ini, requirements.txt and setup.py should be taken care of. appveyor? I don't know what to change in there.

This is super! :)

Do we need new blessed images?

Some for sure. I don't remember which ones, though - I created a full set of new worlds and images; non-square because I needed some feedback whether [y, x] etc. were misused.

This is still my next PR, some (if not all) of my current PRs are based on this. Maybe somebody finds some time to check the code; the x-y-replacements have been done using a regular expression, so there are not typos to be expected (and thus most of the changes in drawing_functions.py won't have to be reviewed in depth).

I added a small comment to image_io.py regarding the [y, x]-notation, rebased the code to the current master and made some very small improvements. Is this ready to be merged yet?
Do you think that _dynamic_draw_a_mountain() should be removed? It isn't used yet and seemingly was never finished. Bot should esampson get done with his current work, the function would be already obsolete.

Data used to pass the tests: https://github.com/Mindwerks/worldengine-data/pull/11
I didn't have to regenerate all data (ancient maps, rivers and grayscale heightmap would have been enough) but I wanted to have non-square maps to make sure the changes to the xy-notation in this PR are alright.

The maps can be square and rectangular. That's fine.
Do you consider this PR ready?

I think it's ready, yes.

I don't see a PR for the WE-data?

This one.
https://github.com/Mindwerks/worldengine-data/pull/11

Weird, I didn't get that an hour ago... I need sleep.

Tests succeeded. :)
By the way: Will the Travis-tests be updated before a release? Or is that too much work?

What do you mean?

All the tests that usually fail.

all the tests are green, otherwise it wouldn't say so.
do you mean environments?  python3, and the osx py2/py3?

I meant all the optional tests that don't seem to work properly.
https://travis-ci.org/Mindwerks/worldengine/jobs/90341134
https://travis-ci.org/Mindwerks/worldengine/jobs/90341141
https://travis-ci.org/Mindwerks/worldengine/jobs/90341123
Do only I see those?

Yes, those are environments... not tests. And no, we can't fix that until Travis upgrades ubuntu 12.04 to something more recent and we have someone with osx experience to help get that running. Any volunteers? ;)
There are other factors to, pypy (on ubuntu 12.04)... we sit in a catch22 and I haven't figured out yet how to handle that.

Ah, thanks for the explanation.

What kind of experience/skills are needed for the OS X  environment testing?  I have an OS X box, and I run python on it via MacPorts. What else would I need?

Well, travis allows us to use osx in addition to linux (ubuntu 12.04).
I got travis to setup up the osx instances, but now we need to figure out how to actually get python (2.7 and 3.whatever) installed on them along with virtualenv and tox. Likely we can do that with brew/taps.
That would get us coverage on osx up and running. :)

btw.. merging this branch.


Building project may exhaust memory and result failure

(Master branch, latest commit 65ed0f5)
Cmake exhausts memory and swap space while running 'make -j' in test (virtual) machine:
Linux (Fedora 25 x64 with kernel 4.8.6), gcc 6.4.1, 4GB RAM and 2GB swap.
It happens during the AFProxyNetClientPlugin complication, then results build failure. See log for detail:

In file included from /var/devspace/ARK/Frame/SDK/Core/Base/AFMemAlloc.h:25:0,
from /var/devspace/ARK/Frame/SDK/Core/Base/AFCoreDef.hpp:24,
from /var/devspace/ARK/Frame/SDK/Core/Base/AFCData.h:23,
from /var/devspace/ARK/Frame/SDK/Core/Base/AFDefine.h:23,
from /var/devspace/ARK/Frame/SDK/Interface/AFIModule.h:26,
from /var/devspace/ARK/Frame/SDK/Interface/AFIClassModule.h:24,
from /var/devspace/ARK/Frame/Server/GameServer/GameLogicPlugin/AFCPropertyConfigModule.h:27,
from /var/devspace/ARK/Frame/Server/GameServer/GameLogicPlugin/AFCPropertyConfigModule.cpp:21:
/var/devspace/ARK/Frame/SDK/Core/Base/AFMemPool.hpp:34:5: warning:   when initialized here [-Wreorder]
AFMemPool(uint32_t unit_num = 50, uint32_t unit_size = 1024) :
^~~~~~~~~
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
Frame/Server/LoginServer/LoginLogicPlugin/CMakeFiles/AFLoginLogicPlugin.dir/build.make:86: recipe for target 'Frame/Server/LoginServer/LoginLogicPlugin/CMakeFiles/AFLoginLogicPlugin.dir/AFLoginLogicPlugin.cpp.o' failed
make[2]: *** [Frame/Server/LoginServer/LoginLogicPlugin/CMakeFiles/AFLoginLogicPlugin.dir/AFLoginLogicPlugin.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Frame/Server/ProxyServer/ProxyNetClientPlugin/CMakeFiles/AFProxyNetClientPlugin.dir/build.make:110: recipe for target 'Frame/Server/ProxyServer/ProxyNetClientPlugin/CMakeFiles/AFProxyNetClientPlugin.dir/AFProxyNetClientPlugin.cpp.o' failed
make[2]: *** [Frame/Server/ProxyServer/ProxyNetClientPlugin/CMakeFiles/AFProxyNetClientPlugin.dir/AFProxyNetClientPlugin.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

This issue is caused by using'make -j'. Adding -j parameter without specifying number leads make won't limit the number of jobs that can run simultaneously, and consumes all the physical and virtual memory.
Suggest change build instruction in README and also add notes for this problem.

Submit PR #5 for the suggestion.

@Fredida
Hi, thanks for this suggestion, I always use make -j 4 or make -j 6 to build the project. And for now,  I changed the MemPool in develop branch, and try to use tcmalloc, Please wait for next release version.
Your pull request will be merged to master branch, thanks for your PR.

@Fredida Merged your PR, thanks.


[Feature Request]: Access "Allow setting alarms and reminders"-permission from within the app

Describe your idea
Feature request ported from previous issue https://github.com/fibelatti/photo-widget/issues/129.
Currently the allow permission button, is only accessible once, when you first download the app. This is a minor oversigt, as one might need to enable it later. Therefor I think it would be great to have the a "Allow setting alarms and reminders" button inside the settings
Describe how you think it could work
Go to settings -> "permissions" (or something like that) -> Allow alarm and reminder permission (Sub text: This allows for more accurate timers)
Press it, and it will take you to the same page, as the current implementation does
Additional context
No response

Hi @HeldGames, a new setting was included in version 1.19.0, released today. It only shows for people who haven't given the permission yet, so you might not see it. Thanks for your suggestion!


Add 1-27 as supported release branch

Issue #, if available:
Description of changes:
Add EKS-D 1.27 build support
Add 1-27 as a supported release branch
Add 1-27 metrics server
Add 1-27 cluster autoscaler
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

We just had another release for 1.27

/approve


Use PreLoader Animation (Already Created) before the Site Loads

Requirement 👇🏼
Run the index.html to see the various loaders available, under client/src/static/loader/index.html.
Any one of these shall appear before the site loads up.

would like to take it!

Sure! Assigned.
Please make sure you are able to run the client side locally (Mentioned in the README).

@tarunnsingh
Is the issue is still open can you assign it to me?

@mbhole1857 It has been assigned as of now, keep track we have many issues coming in :grinning:

sorry I'm not having much time these days, feel free to assign some other person :)

@mbhole1857 Want to work on this?

Hi, @tarunnsingh I have started working on this issue. I have been able to locally run the app and also use a preLoader provided by npm and it all works perfectly. But I know that I am supposed to use the custom animations already created. I have run the index.html file in the loader and there are some really beautiful animations there. But I am having trouble to understand how I am going to use them. I have created a LoaderComponent.js but I don't know what to put in it. So, if you can please guide me on how to use the preloader animation, it would be great.

Hey @namrataaaa,
I am a bit engaged lately, however animating SVGs in React is a bit tricky. Even I haven't tried it yet.
 So that at least we would have the components and flow ready.
Then we could later learn and figure out how to animate the SVGs in React properly.
Maybe using Framer Motion could help.
Also see this ✌🏼

@tarunnsingh I went through a lot of resources including the ones you provided. But I still couldn't figure it out. I/m trying and hope to succeed. As you mentioned, I could make a PR using any one of the loaders from https://mhnpd.github.io/react-loader-spinner/?spm=a2c6h.14275<IP_ADDRESS>fd17c81LLbMBx or https://vamosgs.github.io/react-preloaders/. I basically just installed the packages required and imported them in the app. So, please go through the above mentioned two sites and let me know which loader I should use. I can add custom styling to it for making it look better with the colour theme of the website.

@namrataaaa In this, 4th in the second row looks good! If you could twitch it's color a bit to match with that of the site's logo, then it would be great!.
Also if you could put up another loader before the blog posts section loads, it would be another feature.
I could create a new issue on that and assign that to you?


LCFS - Implement Keycloak Automatic Session Renewal in LCFS Frontend

Describe the task
Implement automatic session renewal using Keycloak in our frontend ReactJS application LCFS.
Purpose
The current session duration provided by our provider is 5 minutes, which is quite short. This task aims to ensure seamless user experience by renewing sessions automatically, thus avoiding frequent re-authentication prompts. By tracking the session length and renewing it once it expires, we can provide an uninterrupted experience to the user.
Acceptance Criteria

[ ] Modify the Keycloak configuration to enable session monitoring.
[ ] Implement a mechanism to track the session expiry time.
[ ] Once the session expires, automatically renew the session without user interaction.
[ ] Ensure that the user's current state in the application is preserved post-renewal.
[ ] Perform thorough testing to verify that session renewal happens smoothly.
[ ] Add Documentation into the main app readme explaining how session renewal works in LCFS

Additional context

The session renewal mechanism must be robust enough to handle scenarios where the user may have multiple tabs or windows of the application open.
Consideration must be given to error handling to manage any failures in session renewal gracefully.

Code Examples
Here is an example of how the session renewal feature could be integrated into our existing Keycloak setup:
import React, { useEffect } from 'react';
import { createRoot } from 'react-dom/client';
import { ReactKeycloakProvider } from '@react-keycloak/web';
import { QueryClient, QueryClientProvider } from 'react-query';
import { getKeycloak, keycloakInitOptions } from './keycloak';
import App from './App';
import Loading from './components/Loading';

import './styles/index.scss';
import 'bootstrap/dist/css/bootstrap.css';

const queryClient = new QueryClient();
const keycloak = getKeycloak();
const root = document.getElementById('root');

// Function to renew session
const renewSession = (minValidity) => {
  keycloak.updateToken(minValidity)
    .then((refreshed) => {
      if (refreshed) {
        console.log('Token was successfully refreshed');
      } else {
        console.warn('Token is still valid');
      }
    })
    .catch(() => {
      console.error('Failed to refresh the token, or the session has expired');
    });
};

// Function to setup session renewal checks
const setupSessionRenewal = () => {
  const sessionStatus = keycloak.tokenParsed?.session_state;
  const expiresIn = keycloak.tokenParsed?.exp - Math.ceil(new Date().getTime() / 1000);

  if (sessionStatus && expiresIn) {
    console.log(`Session expires in ${expiresIn} seconds. Setting up auto-renewal.`);
    setInterval(() => renewSession(5), expiresIn * 1000); // 5 seconds before expiry
  } else {
    console.error('Cannot determine session state or expiry from the token.');
  }
};

if (root) {
  createRoot(root).render(
    <ReactKeycloakProvider
      authClient={keycloak}
      initOptions={keycloakInitOptions}
      onTokens={setupSessionRenewal} // Setup renewal on token initialization
      LoadingComponent={<Loading />}
    >
      <QueryClientProvider client={queryClient}>
        <App />
      </QueryClientProvider>
    </ReactKeycloakProvider>
  );
}

Hey team! Please add your planning poker estimate with Zenhub @AlexZorkin @hamed-valiollahi @jig-patel @kevin-hashimoto @prv-proton

This is automated in the latest release of our application. Archiving ticket.


⚠ Bofrost.fr has degraded performance

In f45010e, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1786 ms

Resolved: Bofrost.fr performance has improved in 9d8b32e after 6 minutes.


#999 cif parsing

This PR fixes 2 bugs in relation with CIF files parsing:

#999 chem_comp can be set for macromolecular cif files and contain vectors of entities. In the case of mmCIF files the block of code that parses files containing only one entity (such as PDB het cif files) must not be reached.
#950 core cif files often define charges as part of the atom type symbol. In that case, the element symbol must be stripped of the charge.

@ppillot  are you able to reproduce the bug without your change and see if the change actually fixes the issue?

Also, do you have any idea why nglview fails to show 3pqr recently, althought it has been working well for years (because we have been showing it as example in our nglview website)

Here is the code in nglview: https://github.com/nglviewer/nglview/blob/d9e7740100b586b1e73cc51d247d16b6dc8d0914/nglview/adaptor.py#L123-L125

Thank you. Hopefully there will be a release soon.

@hainm release done and available on npm

Beautiful. Thank you very much.


请问大佬总是出现这种错误怎么办，不知道怎么改

(yl) D:\ChineseBert-main\tasks\THUCNew>python THUCNews_trainer.py --bert_path ./111/ --data_dir ./cnews/ --save_path ./222/ --max_epoch=5 --lr=2e-5 --batch_size=8 --gpus=0
Some weights of the model checkpoint at ./111/ were not used when initializing GlyceBertForSequenceClassification: ['cls.predictions.bias', 'cls.predictions.transform.dense.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.transform.LayerNorm.weight', 'cls.predictions.transform.LayerNorm.bias', 'cls.predictions.decoder.weight', 'cls.predictions.decoder.bias']

This IS expected if you are initializing GlyceBertForSequenceClassification from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPretraining model).
This IS NOT expected if you are initializing GlyceBertForSequenceClassification from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
Some weights of GlyceBertForSequenceClassification were not initialized from the model checkpoint at ./111/ and are newly initialized: ['classifier.weight', 'classifier.bias']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
Traceback (most recent call last):
File "THUCNews_trainer.py", line 229, in
main()
File "THUCNews_trainer.py", line 193, in main
model = ChnSentiClassificationTask(args)
File "THUCNews_trainer.py", line 51, in init
self.model = GlyceBertForSequenceClassification.from_pretrained(self.bert_dir)
File "d:\ProgramData\Anaconda3\envs\yl\lib\site-packages\transformers\modeling_utils.py", line 1071, in from_pretrained
model.class.name, "\n\t".join(error_msgs)
RuntimeError: Error(s) in loading state_dict for GlyceBertForSequenceClassification:
size mismatch for bert.embeddings.glyph_embeddings.embedding.weight: copying a param with shape torch.Size([23236, 1728]) from checkpoint, the shape in current model is torch.Size([23236, 1152]).

您是如何解决这个问题的？我遇到了相同情况

请问是如何解决的呢？


Update UPGRADING-3.7.md

3.7 has been released

Thanks @jaredbeck :) good luck with your upgrade!

Thanks Lee. Upgrade was a piece of cake. I'm glad to see cap cares more about upgrade paths now. The upgrade from 2 to 3 was really painful. From 3 to 4 won't be so bad, I hope fingers crossed


all-contributors

@all-contributors please add @imbsky for code doc maintenance

@all-contributors please add @nzws for code


Add testcafe id's to ManageProjections.jsx

Please do work for this task in a branch called issue-130.

Completed in issue-124.


How to perform inference.

Hi, I have trained the model on my custom dataset, and now I want to perform inference how should I go about doing that.
@chprjha @pidahbus

Is this the way to go!


Add more metrics, consumer, and producer tests

Co-authored-by: Timothy Pansino<EMAIL_ADDRESS>Co-authored-by: Hannah Stepanek<EMAIL_ADDRESS>Before contributing, please read our contributing guidelines and code of conduct.
Overview
Describe the changes present in the pull request
Related Github Issue
Include a link to the related GitHub issue, if applicable
Testing
The agent includes a suite of tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here,
For most contributions it is strongly recommended to add additional tests which
exercise your changes.

LGTM 🚀


How about Dreame Trouver M1 support dreame.vacuum.r2380r

Aren't TROUVER M1 dreame.vacuum.r2380r and Dreame MOVA M1 dreame.vacuum.r2380 the same?!
What is required for support?
🙂

Uncomment first custom_components/dreame_vacuum/config_flow.py

Ah.... It seems to work. Good luck.🙂🙂🙂


Compare 'now' on db instead of timezonw.now()

Task linked: QF-2702 Get V("now") from db in querysets

Yes, agree