What is the proper installation of modflared?

Describe the bug
I tried to set up a tunnel using cloudflare zero tunnel but i can't connect to my server
Which version of the mod/game are you using?
Fabric 1.19.4
To Reproduce
I think it will be helpfull to mention all steps i ve gone trough:

I've put the modflared in the mods folder. After minecraft's start i could not find any config file, so i have not configured anything since i will configure my DNS to add the txt record.
I have my domain in cloudflare, i ve set up the zero tunnel (choose name, put your card [you wont be charged for that, if free is chosen]) . After creating the tunnel, i ve created the public hostname with these values:
Subdomain Domain(Required) (optional) path
play                       .      mydomain.com           /

Service
Type(Required)                  URL(Required)
TCP                             ://             localhost:25565      (i ve had my machine's internal ip but it didnt work, then have tried the <IP_ADDRESS> and localhost, also set them in server.properties but no luck )

i have installed cloudflared on my ubuntu server LTS but it was buggy (path issues and so on) so i have chosen the cloudflared trough docker. I installed the docker with the command given in the tunnel's settings.
4, i've set up the TXT dns record with these values:
name content
(the same as i set for the public hostname)
play                                                                         cloudflared-use-tunnel

The CNAME record was created automatically after creating the tunnel.
Expected behavior
Connection to the server
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I've checked the docker logs and it has been receiving the config values:

hostname: play.mydomain.com
service: tcp://whateverlocalhost:25565

I've set up the server's map which uses the HTTP, using the same method and it worked. The URL in the public hostname was my machine's internal IP.
So, on this step i am pretty confused why it does not working, i tried using cloudflared manually: cloudflared-windows-amd64.exe access tcp --hostname play.mydomain.com --url (My machine's IP [ERROR] , localhost, <IP_ADDRESS>,):25565
It will show something like:
Start Websocket listener
but it wont connect.

It works when i use manually:
cloudflared-windows-amd64.exe access tcp --hostname play.mydomain.com --url <IP_ADDRESS>:25565
and i connect to the localhost or <IP_ADDRESS>.
Why ? It supposed to work from play.mydomain.com isn't it?
Maybe the the access.json config is required as
[Modflared Init Thread/ERROR]: No accessData to load found!

It is important that you connect to <IP_ADDRESS> in Minecraft. Because when you start the game, the mod only executes the command that you executed yourself(cloudflared-windows-amd64.exe access tcp --hostname play.mydomain.com --url <IP_ADDRESS>:25565).

Because you are using a version below 1.0.0 you have to create the access.json.

It is important that you connect to <IP_ADDRESS> in Minecraft. Because when you start the game, the mod only executes the command that you executed yourself(cloudflared-windows-amd64.exe access tcp --hostname play.mydomain.com --url <IP_ADDRESS>:25565).

Because you are using a version below 1.0.0 you have to create the access.json.

ohhhh, that explains a lot. Just the phrase "If your server admin has properly configured their server you should be able to connect to the server as usual. " had me confused.


Window resizing lags in v0.9.2

I wanted to say thank you first. After dealing with Ash and Vulkano, Screen-13 is just pure fun to experiment with.
However, there is an issue when resizing the window in the latest version that results in freezes.
Just tried the triangle example and it happens here also. In 0.9.1 i had no such behavior.
OS: Windows 11

One of the things updated in 0.9.2 was the gpu-allocator crate, I suspect but have not yet confirmed that this may be related to the issue. The main issue is that the HashPool and LazyPool types have no way to manage memory and so allocating new images to support a new swapchain size as you resize creates lots of new resources that are not reused or freed - they remain in the pool for any other request to use.
I've been putting off this work because everything works fine for regular games and programs which request very similar resources each frame. Resize breaks this. Also a lot of the toys I've been making are resolution independent and don't have this issue during resize.
I think the Pool types work well because they're much more efficient than creating new resources each time one is needed, but there should be some new API that manages the total supply of resources within given limits. Right now only an individual bucket of resources (of the same dimensions/settings) is kept to a reasonable number.

I wasn't able to repro on Ubuntu but I finally got to a Windows machine and it repro'd right away. The issue is that Swapchain::destroy is hanging for about 500ms. The previous version does not exhibit the issue.
I used OpTick profiler to debug the issue:
cargo run --example triangle --features profile-with-optick

Once I upgraded the Nvidia driver from 546.33 -> 551.23 the issue went away.
If you are on Nvidia hardware is this something you can try?

Oh damn, should have come up with updating my drivers myself..
Now its working fine.
Sorry for wasting your time and thank you very much!


Assignment 1 Solution by Faraz Shahid

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

make directories and change their compositions

What did you learn from the changes you have made?

shell bash and git actions

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

no

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

yes, but google helped! New to this so just the syntax and remembering the commands

How were these changes tested?

locally

A reference to a related issue in your repository (if applicable)
Checklist

[x] I can confirm that my changes are working as intended

@monzchan I have created another PR for updated assignment. Please review. Thanks!


allow usage inside Sourcegraph

This, along with
https://src.sourcegraph.com/sourcegraph@add-srclib-basic-toolchain,
makes the srclib-basic toolchain work inside Sourcegraph.
Other TODOs are listed at (put link here shortly).

Could you please take this PR from here and merge it in? Probably needs updates to the tests, etc., as well. Thank you!


Checkboxes to a [Bollean] field type

How I can pass the checkboxes data to a Schema with a field [Bollean] type?
I have a few services in a form dinamicaly created using a helper to populate the form with checkboxes and I dont know how I send the data to SimpleSchema with the name and value for each field.
The SimpleSchema its simple:
BridesServicesList = {
services: {
type: [Boolean]
}
};
And the form too, only with <input type="checkbox" name="idService" checked>

You should use the afFieldInput component to render the inputs so that autoform recognizes them and knows how to get their value.

Ok, if I expose the options on the Schema, but Im using a helper (Its more simple) to pickup the checkboxes from the database dinamically (What I need). I tried to create a SimpleSchema with database data, but its so complex to do, because the same code needs to be run on Server and Client in different times (to create and validate the form), what is driving the process of creation and validation of the form, confusing.
Theres a way to create inputs checksbox dinamically using a helper and send to a SimpleSchema with a [Boolean] field type? Or another way?


Improve editorial description

Add title2 for steps

Add command to create secrets for edge clusters

Align style guide with https://kubernetes.io/docs/contribute/style/style-guide/

Use simple and direct language
Address the reader as "you"
Code snippet formatting: Don't include the command prompt
Code snippet formatting: Separate commands from output

/approve
/lgtm

Only @radoslawc and @aravind254 have approval rights in this repo.


getDeliveries API calls occasionallly slow

There were slow getDeliveries calls like this on 11/29:
http://pdhprod-functionapp.azurewebsites.net/api/waters/org/co-san-juan-basin-phd.elr-download/deliveries
Most SJB getDeliveries calls were just fine - returned 200 in a few seconds on avg.
However some others timed out, Example:
At 3:07:38 the getDeliveries request came in for co-san-juan-basin.
At 3:37:38 that call timed out, taking 30 mins.
Search for 6e305ed2-c858-4aa6-81c1-1cc43ccfd5f0 in azure logs if you want to see it for yourself.
All the SJB calls that timed out were within a short duration, from 3:07:38 to 3:11:39 on 11/29/2022.  A total of 13 calls timed out.
There are other slow calls I saw as well, such as:
http://pdhprod-functionapp.azurewebsites.net/api/waters/org/pa-phd.elr-chester-hl7/deliveries
taking minutes as well.
This also came in a spurt of slow calls all together, on 11/29./2022.

The slow Chester county calls were in a spurt, from 12:06 to 12:10.  This is the same time we were doing other intense db calls.

There were also closely bunched slow calls on 11/22 at 12:15 to http://pdhprod-functionapp.azurewebsites.net/api/waters/org/ca-scc-phd.elr-download/deliveries
No other recent slow spurts.


⚠ Bofrost.de has degraded performance

In d6b20e2, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1825 ms

Resolved: Bofrost.de performance has improved in 5c4e548 after 6 minutes.


Update spring-security-oauth version to 2.3.5.RELEASE

FWIW, this dependency will go away once I've finished migrating to Spring Security 5.1 and its OIDC support. More info at https://github.com/jhipster/generator-jhipster/issues/9276.


update to ASP.NET Core 2.0

Updated
https://github.com/damienbod/AngularWebpackVisualStudio/tree/aspnetcore_2_0_0
We have to wait until the CI updates to 2.0

@robisim74 @FabianGosebrink ASP.NET Core 2.0 is ready.
Switch now?
Greetings Damien

IMHO : Yes.
Sent from NineFrom: damienbod<EMAIL_ADDRESS>Aug 18, 2017 15:33To: damienbod/AngularWebpackVisualStudioCc: Fabian Gosebrink; MentionSubject: Re: [damienbod/AngularWebpackVisualStudio] update to ASP.NET Core 2.0 (#108)@robisim74 @FabianGosebrink ASP.NET Core 2.0 is ready.
Switch now?
Greetings Damien
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/damienbod/AngularWebpackVisualStudio","title":"damienbod/AngularWebpackVisualStudio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/damienbod/AngularWebpackVisualStudio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@damienbod in #108: @robisim74 @FabianGosebrink ASP.NET Core 2.0 is ready.\r\n\r\nSwitch now?\r\n\r\nGreetings Damien"}],"action":{"name":"View Issue","url":"https://github.com/damienbod/AngularWebpackVisualStudio/issues/108#issuecomment-323354630"}}}

IMHO: Yes.

Great!

@damienbod will you do? Can back you up on the weekend, tomorrow the earliest.

ASP.NET Core 2.0 now

In 5 minutes...!


Last generation only increase

Add a comment about validation for GenerationStatus.LastGeneration field (originally this PR added the validation itself, but we need to use a different approach and we'll do that later on).
/assign @deads2k @p0lyn0mial @JoelSpeed

I'm not super familiar with the usage of this field, but it appears to track the observed generation of some resource related to the operator in some way.
What happens if a user comes along and deletes the related resource? The operator I'm guessing (or maybe something else) creates a new copy of the resource? At that point, the generation would go down wouldn't it?
/hold while we work this out

I'm not super familiar with the usage of this field, but it appears to track the observed generation of some resource related to the operator in some way.
What happens if a user comes along and deletes the related resource? The operator I'm guessing (or maybe something else) creates a new copy of the resource? At that point, the generation would go down wouldn't it?
/hold while we work this out

@JoelSpeed good point. I talked to David offline and we agreed on a different approach, to be implemented later on. For now we'll just add a comment to the field describing that. PTAL and let me know if it looks to be in the right format.

/lgtm

/lgtm
The idea for the future path forward works for me

/hold cancel


Add feature : fortune

Fixed circular Import bug
and added fortune command

Closing this PR. Please open a new one.

Yeah i just opened another one now.
On Wed, 14 Apr, 2021, 2:19 pm Vinay Keerthi, @.***>
wrote:

Closed #8 https://github.com/stonecharioteer/sarathi/pull/8.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/stonecharioteer/sarathi/pull/8#event-4592301102, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALJ2HPRTMUDYVPARRXE54E3TIVJKFANCNFSM42X27ZVA
.


Add test for unsetting access limited state of assets

I should've added this in PR #3767.

Thanks for reviewing, @floehopper. I've rebased on master and force pushed in preparation for merging.


Add a certificate for custom domain PFX or App Svc cert?

in Add a certificate for custom domain you offer 3 choices but don't give a clue on why you would choose one over the other.  Then you have a BIG  NOTE saying, there's a 3rd. That should be in the bullet list.

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

ID: b2906753-7656-ef4d-0de9-7e238181e3e1
Version Independent ID: 66dcb903-38dd-858b-dfb4-8a8dafaa0930
Content: Secure a custom DNS with a TLS/SSL binding - Azure App Service
Content Source: articles/app-service/configure-ssl-bindings.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@Rick-Anderson Thank you for your feedback! We will review and update as appropriate.

@Rick-Anderson Thanks again for the feedback! If I have understood right, the three choices you are referring here are:
•	Upload PFX Certificate
•	Import App Service Certificate
•	Create a Free certificate or Import a key Vault certificate
And ask for “why you would choose one over the other” you may refer to this link here might be helpful: https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-certificate#import-an-app-service-certificate

@Rick-Anderson We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion.


Remove all other instances of shell=True

Todo:

[ ] Test changes to Windows builds.
[ ] Test changes to ds_bench.
[ ] Ensure other tests still function properly.

I don't think just removing shell=True works. We can change the command string to a list for most cases. We also need a bit more for some commands such as ones including pipes.

Agreed, @tjruwase will share a more full PR fixing this soon.


Fix ActiveRecord::Base.find_all_by_towhat calls

Addresses 2 issues in https://github.com/ManageIQ/manageiq/issues/6754

@matthewd @Fryguy please review

:+1:


⚠ SolarOscp has degraded performance

In 4fdbf0d, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 130 ms

Resolved: SolarOscp performance has improved in aa4e44c.


Support prometheus as a metrics interface

This is more of a bug on the existing minimalistic dashboard. I am connected to AWS MSK and Currently I do not see any realtime production/consumption metrics under tab General. There is no error in the logs.

@germanosin Thanks for the input, I am currently using Aws MSK & have enabled "Open Monitoring" Under which the port 11001 can be used by the JMX port. I tried like you suggested. I am getting the following errors when I add -e KAFKA_CLUSTERS_0_JMXPORT=11001
But I understand that this is  "Open Monitoring" JMX port provides metrics from JMX, but it is Prometheus protocol. (Came here searching for whether Prometheus fetching had been added yet.) I was getting the following error
ERROR com.provectus.kafka.ui.util.JmxClusterUtil - Cannot invalidate object in pool, service:jmx:rmi:///jndi/rmi://xxx.xxxx.xxxx.kafka.us-east-1.amazonaws.com:11001/jmxrmi
       java.net.SocketTimeoutException: Read timed out]
        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:370) ~[?:?]
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270) ~[?:?]
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:229) ~[?:?]
        at com.provectus.kafka.ui.util.JmxPoolFactory.create(JmxPoolFactory.java:17) ~[classes!/:?]
        at com.provectus.kafka.ui.util.JmxPoolFactory.create(JmxPoolFactory.java:12) ~[classes!/:?]
        at org.apache.commons.pool2.BaseKeyedPooledObjectFactory.makeObject(BaseKeyedPooledObjectFactory.ja

Please not, In my configuration I have 2 different kafka cluster specificied, out of which I'm only looking forward to monitoring one of them (which is in MSK)

@MaratGumarov please note that there's a branch issues/442


Install SDL2 wrap includes to SDL2/SDL.h?

The SDL2 wrap installs headers directly to include/SDL.h. The code I'm trying to build with meson uses SDL2/SDL.h. Most distros seem to provide SDL2/SDL.h, so it ends up taking priority.
Is there a way to make the wrap install its includes to the SDL2 subdirectory?

sorry, wrong repo, too much switching between tabs :D


Check subnet constraints

Add the ability to deny creation of subnets with
specific CIDRs. Also allow setting the APIC subnet scope.
Both pieces of information are read from a 'network
constraints' file; the filename is specified as
a config option.
Signed-off-by: Amit Bose<EMAIL_ADDRESS>(cherry picked from commit 60efefd672ee3cb3ceea595ac629127afcc04b98)

Addressed review comments.

please delete the branch if you don't need it anymore


Feature Request

Recent colors in color pallete
Curved text along path
https://css-tricks.com/snippets/svg/curved-text-along-path/

I would also be interested in the ability to type text along a path, or at least along an arc.


Implemented list accelerator details endpoint, and added cohort and participant information

#2657  👈 (View in Graphite)
main

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


First Pull Request

Changes were made.

Please check your JSON, it doesn't appear to be valid. https://jsonlint.com/

Should be fixed now


dust3d: init at 1.0.0-rc.6

Motivation for this change
Closes #90231
I'm using i3, so I cannot confirm if the .desktop file is working correctly. Also not sure about the license situation (see #90231 for discussion).
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg eval

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 98802 run on x86_64-linux 1

1 package built:

dust3d

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:
dust3d:

Please consider this feature to be alpha.
A substituteInPlace with an unmatched pattern got detected:
substituteStream(): WARNING: pattern 'Exec=AppRun' doesn't match anything in file '/nix/store/zkk271aws8npg0klpj00bsvgq1igwsqy-dust3d-1.0.0-rc.6/share/applications/dust3d.desktop'

Please check the offending substituteInPlace for typos or changes in source.

Closing due to inactivity from author.


Improve circular reference assertion

It throws AssertionError: There are circular references when there is a mech/policy that is actually totally missing


Problems with c_analyze_text

(Legit-Info) [Yoga Legit-Info]$ ./stage1 qcluster
Using SQLite3
18:06:09 [Q] INFO Q Cluster ten-purple-maryland-nevada starting.
18:06:09 [Q] INFO Process-1:1 ready for work at 29372
18:06:09 [Q] INFO Process-1:2 ready for work at 29373
18:06:09 [Q] INFO Process-1:3 ready for work at 29374
18:06:09 [Q] INFO Process-1:4 ready for work at 29375
18:06:09 [Q] INFO Process-1:5 monitoring at 29376
18:06:09 [Q] INFO Process-1 guarding cluster ten-purple-maryland-nevada
18:06:09 [Q] INFO Process-1:6 pushing tasks at 29377
18:06:09 [Q] INFO Q Cluster ten-purple-maryland-nevada running.
18:11:09 [Q] INFO Enqueued 37
18:11:09 [Q] INFO Process-1 created a task from schedule [c_analyze_text]
18:11:10 [Q] INFO Process-1:1 processing [kansas-ink-pizza-freddie]
05-27 18:11:10 tasks:c_analyze_text [INFO] 76:task started: c_analyze_text
05-27 18:11:12 log_time:time_now [INFO] Starting analyze_text at May-27 11:11AM MST
18:11:12 [Q] ERROR Failed [kansas-ink-pizza-freddie] - Cannot resolve keyword 'text' into field. Choices are: criteria, date_added, id, iname, laws, profile : Traceback (most recent call last):
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django_q/cluster.py", line 436, in worker
res = f(*task["args"], **task["kwargs"])
File "/home/tpearson/Develop/Legit-Info/cfc_app/tasks.py", line 82, in c_analyze_text
call_command(cmd, '--api', '--skip', '--compare')
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/core/management/init.py", line 168, in call_command
return command.execute(*args, **defaults)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/core/management/base.py", line 371, in execute
output = self.handle(*args, **options)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 138, in handle
impacts = Impact.objects.all().exclude(text='None')
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/query.py", line 950, in exclude
return self._filter_or_exclude(True, *args, **kwargs)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/query.py", line 962, in _filter_or_exclude
clone._filter_or_exclude_inplace(negate, *args, **kwargs)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/query.py", line 967, in _filter_or_exclude_inplace
self._query.add_q(~Q(*args, **kwargs))
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1358, in add_q
clause, _ = self._add_q(q_object, self.used_aliases)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1380, in _add_q
split_subq=split_subq, check_filterable=check_filterable,
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1258, in build_filter
lookups, parts, reffed_expression = self.solve_lookup_type(arg)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1084, in solve_lookup_type
_, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1482, in names_to_path
"Choices are: %s" % (name, ", ".join(available)))
django.core.exceptions.FieldError: Cannot resolve keyword 'text' into field. Choices are: criteria, date_added, id, iname, laws, profile

analyze_text was doing Impact...Exclude(text='None') but the "text" field has been renamed to "iname".  Fixed.

05-27 18:32:27 Oneline:Oneline_parse_header [WARNING] Headers not found in text file. A Z - H B 2 0 0 4 - 1 7 1 7 - Y 2 0 1 9 . h t m l   2 0 1 9 - 1 1 - 1 9   _ T I
05-27 18:32:27 analyze_text:process_state [INFO] 238:No bill_id found, removing: AZ-HB2004-1717-Y2019.txt

More problems:
20:38:08 [Q] INFO Process-1 created a task from schedule [c_analyze_text]
20:38:08 [Q] INFO Process-1:3 processing [eight-charlie-william-west]
05-27 20:38:08 tasks:c_analyze_text [INFO] 76:task started: c_analyze_text
05-27 20:38:11 log_time:time_now [INFO] Starting analyze_text at May-27 01:38PM MST
05-27 20:38:11 analyze_text:handle [INFO] 150:Processing: United States (US)
05-27 20:39:55 analyze_text:handle [ERROR] 151:Process State Error: get() returned more than one Law -- it returned 2!
Traceback (most recent call last):
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 162, in handle
self.process_state(state)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 188, in process_state
self.process_legislation(filename, textdata, header)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 269, in process_legislation
self.save_law(key, header, rel, imp_chosen)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 343, in save_law
law = Law.objects.get(key=key)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/query.py", line 436, in get
num if not limit or num < limit else 'more than %s' % (limit - 1),
cfc_app.models.Law.MultipleObjectsReturned: get() returned more than one Law -- it returned 2!
20:39:55 [Q] ERROR Failed [eight-charlie-william-west] - 151:Process State Error: get() returned more than one Law -- it returned 2! : Traceback (most recent call last):
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 162, in handle
self.process_state(state)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 188, in process_state
self.process_legislation(filename, textdata, header)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 269, in process_legislation
self.save_law(key, header, rel, imp_chosen)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 343, in save_law
law = Law.objects.get(key=key)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/query.py", line 436, in get
num if not limit or num < limit else 'more than %s' % (limit - 1),
cfc_app.models.Law.MultipleObjectsReturned: get() returned more than one Law -- it returned 2!
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django_q/cluster.py", line 436, in worker
res = f(*task["args"], **task["kwargs"])
File "/home/tpearson/Develop/Legit-Info/cfc_app/tasks.py", line 82, in c_analyze_text
call_command(cmd, '--api', '--skip', '--compare')
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/core/management/init.py", line 168, in call_command
return command.execute(*args, **defaults)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/core/management/base.py", line 371, in execute
output = self.handle(*args, **options)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 166, in handle
raise AnalyzeTextError(err_msg) from exc
cfc_app.management.commands.analyze_text.AnalyzeTextError: 151:Process State Error: get() returned more than one Law -- it returned 2!

Added .first() to get the first that matches the key.

.first() did not seem to solve the issue.  Problem is two records with same key in law database.
21:28:15 [Q] INFO Enqueued 44
21:28:15 [Q] INFO Process-1 created a task from schedule [c_analyze_text]
21:28:15 [Q] INFO Process-1:1 processing [mike-texas-butter-edward]
05-27 21:28:15 tasks:c_analyze_text [INFO] 76:task started: c_analyze_text
05-27 21:28:19 log_time:time_now [INFO] Starting analyze_text at May-27 02:28PM MST
05-27 21:28:19 analyze_text:handle [INFO] 150:Processing: United States (US)
05-27 21:30:21 analyze_text:handle [ERROR] 151:Process State Error: get() returned more than one Law -- it returned 2!
Traceback (most recent call last):
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 162, in handle
self.process_state(state)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 188, in process_state
self.process_legislation(filename, textdata, header)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 269, in process_legislation
self.save_law(key, header, rel, imp_chosen)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 344, in save_law
law = Law.objects.get(key=key).first()
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/query.py", line 436, in get
num if not limit or num < limit else 'more than %s' % (limit - 1),
cfc_app.models.Law.MultipleObjectsReturned: get() returned more than one Law -- it returned 2!
21:30:21 [Q] ERROR Failed [mike-texas-butter-edward] - 151:Process State Error: get() returned more than one Law -- it returned 2! : Traceback (most recent call last):
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 162, in handle
self.process_state(state)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 188, in process_state
self.process_legislation(filename, textdata, header)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 269, in process_legislation
self.save_law(key, header, rel, imp_chosen)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 344, in save_law
law = Law.objects.get(key=key).first()
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/db/models/query.py", line 436, in get
num if not limit or num < limit else 'more than %s' % (limit - 1),
cfc_app.models.Law.MultipleObjectsReturned: get() returned more than one Law -- it returned 2!
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django_q/cluster.py", line 436, in worker
res = f(*task["args"], **task["kwargs"])
File "/home/tpearson/Develop/Legit-Info/cfc_app/tasks.py", line 82, in c_analyze_text
call_command(cmd, '--api', '--skip', '--compare')
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/core/management/init.py", line 168, in call_command
return command.execute(*args, **defaults)
File "/home/tpearson/.local/share/virtualenvs/Legit-Info-YLTR15_m/lib/python3.6/site-packages/django/core/management/base.py", line 371, in execute
output = self.handle(*args, **options)
File "/home/tpearson/Develop/Legit-Info/cfc_app/management/commands/analyze_text.py", line 166, in handle
raise AnalyzeTextError(err_msg) from exc
cfc_app.management.commands.analyze_text.AnalyzeTextError: 151:Process State Error: get() returned more than one Law -- it returned 2!


PhoneGap/Ionic

You say, "Oddly enough, the best explanation comes from something built on top of Phonegap - Ionic"
But I do not think that is accurate. Ionic is built on top of Angular, and wraps the Cordova CLI.

Thanks, I should have made it as clear as you just did. It is now.


Can I disableAutoFocus or autoFocus=false

Is it possible to disable tooltip auto focusing?
I can't find anything regarding this in the documentation - maybe there is some custom event handling i don't understand.
Im using tooltip with an input - and when an error occurs it steals the focus, while typing.
example:
<v-tooltip
  :autoHide="true"
  :open="hasError"
  :shown="hasError"
>

    <input type="number" id="quantity" name="quantity">

  <template #popper>

      Input is wrong

  </template>
</v-tooltip>

e.g like
disableAutoFocus
or
autoFocus=false

Dublicated https://github.com/Akryum/floating-vue/issues/872


Fix build on recent Golang

LGTM :+1:

Is hooktftpd still maintained? If yes, anyone to review and merge this PR?


Issue create tenants with same name.ashahi1

This PR addresses the negative test scenario mentioned in Issue #898 - Create two tenants with the same name.
Objective: Test to verify tenant creation by trying to create two tenants with same name
Steps:

create tenant.
Try creating another tenant with same name.
Use tenant ls command to verify we have only one tenant with same name.

Performed testing locally with one ESX and two vms setup.

This is being addressed in a separate PR: https://github.com/vmware/docker-volume-vsphere/pull/914
Hence closing this PR


Can't have two separate dynamodb table fixtures

For my test suite, I have two fixtures that each creates a dynamodb table and populates it with some sample data. Some of my tests only needs one of them, and some tests needs both tables. I have found that for the tests that needs both of the tables, one or the other table "goes missing". I suspect that with mock_dynamodb(): is basically clobbering whatever mocked table(s) existed already.
This is using moto 4.2.7.
import boto3
from boto3.dynamodb.types import TypeSerializer
from moto import mock_dynamodb
import pandas as pd
import pytest

@pytest.fixture()
def demo_conf_env(monkeypatch):
    """
    Mocked AWS Credentials for moto.

    This makes sure we don't accidentally do anything to real stuff.

Not sure if this is by design or not. If so, I couldn't find any documentation to that effect.

Excuse the mock_dynamodb() decorator on the test. That is vestigial from my attempts at figuring this one out. The same problemoccurs with and without the decorator.

Hi @WeatherGod, that is the expected behaviour actually. The mock_dynamodb decorator will delete any existing data, to ensure that tests always act on a clean slate, and do not have any old data from previous executed tests.
When using fixtures, the recommendation is to use a single dynamodb-fixture that starts the mock. See the docs here:
http://docs.getmoto.org/en/latest/docs/getting_started.html#example-on-usage

These examples only show single resources being created and say nothing
about best practices when dealing with multiple, orthogonal resources. My
codebase developed the need for two tables that operated in isolation, so
my tests had two separate fixtures and worked fine. Then when I had to
implement a feature where both tables were needed, it just made logical
sense to invoke both fixtures, leading to this surprising result.
I wonder if it is at all possible for mock_dynamodb (or some variant),
could be a fixture itself? Then both of my dynamodb fixtures could share
the same instance of the mock_dynamodb fixture?
On Mon, Nov 6, 2023 at 6:28 PM Bert Blommers @.***>
wrote:

Hi @WeatherGod https://github.com/WeatherGod, that is the expected
behaviour actually. The mock_dynamodb decorator will delete any existing
data, to ensure that tests always act on a clean slate, and do not have any
old data from previous executed tests.
When using fixtures, the recommendation is to use a single dynamodb-fixture
that starts the mock. See the docs here:
http://docs.getmoto.org/en/latest/docs/getting_started.html#example-on-usage
—
Reply to this email directly, view it on GitHub
https://github.com/getmoto/moto/issues/6996#issuecomment-1797024980, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACHF6AXJIWUQ5RO2QFPMYTYDFXARAVCNFSM6AAAAAA7AH37NKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJXGAZDIOJYGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Just re-read what you linked, and I think I was getting confused with some
of the examples further up the page. Yes, this is closer to what I should
do, but maybe the example should be expanded a bit to show two separate
fixtures using the s3 fixture in order to be explicit. I'd be willing to
make a PR to do that.
I wonder if there is also room, perhaps in the FAQ, for a "don't do this"?
I don't know how often you have encountered users making the mistake I've
made, but it feels like an easy mistake to make. Again, I'd be willing to
write something up as a penance ;-)
On Mon, Nov 6, 2023 at 7:09 PM Benjamin Root @.***> wrote:

These examples only show single resources being created and say nothing
about best practices when dealing with multiple, orthogonal resources. My
codebase developed the need for two tables that operated in isolation, so
my tests had two separate fixtures and worked fine. Then when I had to
implement a feature where both tables were needed, it just made logical
sense to invoke both fixtures, leading to this surprising result.
I wonder if it is at all possible for mock_dynamodb (or some variant),
could be a fixture itself? Then both of my dynamodb fixtures could share
the same instance of the mock_dynamodb fixture?
On Mon, Nov 6, 2023 at 6:28 PM Bert Blommers @.***>
wrote:

Hi @WeatherGod https://github.com/WeatherGod, that is the expected
behaviour actually. The mock_dynamodb decorator will delete any existing
data, to ensure that tests always act on a clean slate, and do not have any
old data from previous executed tests.
When using fixtures, the recommendation is to use a single dynamodb-fixture
that starts the mock. See the docs here:
http://docs.getmoto.org/en/latest/docs/getting_started.html#example-on-usage
—
Reply to this email directly, view it on GitHub
https://github.com/getmoto/moto/issues/6996#issuecomment-1797024980,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACHF6AXJIWUQ5RO2QFPMYTYDFXARAVCNFSM6AAAAAA7AH37NKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJXGAZDIOJYGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Enhancement to the docs are always welcome @WeatherGod!
This question (or a variation) of it does come up every so often, so having it as part of the FrequentlyAQ make sense as well. :slightly_smiling_face:

I've expanded the example in the docs a bit to make this more clear:
http://docs.getmoto.org/en/latest/docs/getting_started.html#example-on-usage
The FAQ now also answers the specific question: Why is my test data disappearing?, further explaining how Moto works.


fixes: use use more accurate *.go deps for building binaries.

don't assume all policies use everything under pkg
make sure we rebuild plugins when their main package changes

Small nit, could you add the PR description to commit message as it is missing one.

Small nit, could you add the PR description to commit message as it is missing one.

@jukkar Added same body to commit message as in the PR description.


h2 database no error, no tables

jdbc:h2:/Users/51pwn/MyWork/for_hacker_md/config/dependency-check/odc.mv.db;AUTOCOMMIT=ON;CACHE_SIZE=65536;RETENTION_TIME=1000;MAX_COMPACT_TIME=10000;

$ java -version
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-bre_2021_10_20_23_15-b00)
OpenJDK 64-Bit Server VM (build 25.312-b00, mixed mode)

Hello @hktalent
What H2 database version do you use? And what driver version?
Also, please check your connection settings. "Show system objects" setting must be enabled for INFORMATION SCHEMA content.

@LonwoLonwo

in Mac OS,ni can try:
brew  install dependency-check
dependency-check --updateonly
now ,you can found db file
/usr/local/var/dependencycheck
/usr/local/var/dependencycheck/odc.mv.db

data.connection_string=jdbc:h2:file:%s;AUTOCOMMIT=ON;CACHE_SIZE=65536;RETENTION_TIME=1000;MAX_COMPACT_TIME=10000;
data.user=dcuser
data.password=DC-Pass1337!
data.driver_name=org.h2.Driver

Can you see objects in Information Schema now?

Can you see objects in Information Schema now?

yes @LonwoLonwo but,

We use H2 drivers info to get the tables list. So what can we do if the "TABLES" table in INFIRMATION_SCHEMA does not return any rows to you? Do you have any tables in the PUBLIC schema?


Support for Myst

From previous conversations, I've seen that porting this extension to MyST is on the horizon and once I can figure out how to incorporate .md files into vscode-jupyter (https://github.com/microsoft/vscode-jupyter/issues/1238), we can actually write MyST notebooks and run the code in the interactive window.
Do you have an idea of how much of a priority porting this to MyST markdown is right now?

This would be great!


any way to reduce UserWarning level on loading already loaded model?

I'm calling Stan in a loop and getting this warning every iteration:
/usr/local/lib/python3.9/site-packages/bridgestan/model.py:137: UserWarning: Loading a shared object /Users/bcarpenter/github/bob-carpenter/adaptive-hmc/stan/normal_model.so that has already been loaded.
If the file has changed since the last time it was loaded, this load may not update the library!

This arises from calling this repeatedly in a loop with the same model_path:
   model = bs.StanModel(model_lib=model_path, data=data,
                             capture_stan_prints=False)

In this instance (and many others), I could pull the model creation out of the loop and pass it into the loop as an argument.  I'd rather not have to do that here as it's more natural to have the caller not know anything about these low-level model-creation details.

Yep, Aki, just requested the same https://github.com/roualdes/bridgestan/issues/217.  Brian fixed it https://github.com/roualdes/bridgestan/pull/218.  Should be in the next release.  Or you can pull the latest from GitHub and point your code to the local copy on your machine.

I don't like releasing on Fridays, otherwise I would get it out there for you now (it would be a small release, really just #218, #197, and #213 which would be user-facing)

If you run pip install --upgrade bridgestan now it will have the warn argument


API for Node headers object

I may not be using fetch correctly here, but I would expect that there is some easy way to get a headers object as expected by the node API,
https://nodejs.org/docs/latest-v12.x/api/http.html#http_message_headers
Using their example
{
  'user-agent': 'curl/7.22.0',
  host: '<IP_ADDRESS>:8000',
  accept: '*/*'
}

It seems you do have this internally via exportNodeCompatibleHeaders, but I would have expected this as a function on Headers similar to .raw(), because it is super useful and not every user should build their own. I wrote my own for now, but it feels wrong.

We're trying to follow the fetch spec as closely as possible here. However, hooks that let you intercept the options may be coming in v3.

I get that, but .raw() is not in the spec, so you already have a convenience function and I felt that this usecase to be compatible with the runtime you run on deserves one as well...

v3 might already have something brewing. Just play the waiting game.

Ok, I will have another look when v3 is out then. Thanks for clarifying.


Stats group component

Figma link : https://www.figma.com/file/Lj4CDqxel0Q2a58iV7F6ze/Content---Component-Library?node-id=139%3A167748&mode=dev

This component should be architected similar to the Stats Carousel.
https://kyndryl-design-system.github.io/shidoka-content/?path=/docs/patterns-stats-carousel--docs
There should be a container component that has properties for the title and color palette options.
Then each stat should be a component with properties for the stat, symbol and symbol positions and a slot for the rich text description. The stats and symbols must be text fields and not SVG.
Also, we need to make sure component headings are in semantic order for the component itself and as it would be used in the overall page structure. So the container component title should be an h2, and the stats should not be h1 elements.


Improve the enforcer output

Looks great, and happy to see the test.  Just a nit on the class naming.  👍


verifyRefreshToken receiving wrong parameter

The method verifyRefreshToken in AuthService is expecting an object of type HttpRequest
https://github.com/serhiisol/ngx-auth/blob/ee237f26622ea9aa5612c350c6f7a30ded4be1b7/src/auth.service.ts#L41
However, the interceptor is passing the request url sting
https://github.com/serhiisol/ngx-auth/blob/ee237f26622ea9aa5612c350c6f7a30ded4be1b7/src/auth.interceptor.ts#L169-L180
what ends up in the awful error
"Cannot read property 'endsWith' of undefined"

Hi @alexjavier15, good catch, I'll update library tonight.

Done :)

Thank you very much! I'll check it out right away

No problem, I hope it will help you. Cheers :D


or background: URL ('@/') without prompt

After Mac laptop update vscode 1.79.2 (Universal) version
or background: URL ('@/') without prompt

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.
Happy Coding!


ENH: 3d examples for filters (e.g.  gaussian_filter)

Is your feature request related to a problem? Please describe.
Right now, there are only 2D examples for Multidimensional  filters, e.g. the Gaussian filter:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.gaussian_filter.html
Describe the solution you'd like.
Provide also 3D examples.
Toy examples in 3D will help to make the filter parameters easier to understand.
I had the idea to use 3D voxel for that.
Describe alternatives you've considered.
No response
Additional context (e.g. screenshots, GIFs)
Either as animation:
https://user-images.githubusercontent.com/44469195/141647703-cf3c597c-e404-4fef-b746-495d59146685.mp4
Or as images

This is only a quick code draft for reproduction (not very pretty):
import matplotlib.pyplot as plt
import numpy as np
import matplotlib as mpl
from scipy.ndimage import gaussian_filter
%config InlineBackend.figure_format = 'svg'

size= 10
x, y, z = np.indices((size*2, size*2, size*2))

o1,o2,o3 =(0,0,0)
cube1 = (o1 <= x) & (x < o1+size) & (o2 <= y) & (y < o2+size) &  (o3 <= z) & (z < o3+size)

o1,o2,o3 =(size,0,0)
cube2 = (o1 <= x) & (x < o1+size) & (o2 <= y) & (y < o2+size) &  (o3 <= z) & (z < o3+size)

o1,o2,o3 =(0,size,0)
cube3 = (o1 <= x) & (x < o1+size) & (o2 <= y) & (y < o2+size) &  (o3 <= z) & (z < o3+size)

o1,o2,o3 =(size,size,0)
cube4 = (o1 <= x) & (x < o1+size) & (o2 <= y) & (y < o2+size) &  (o3 <= z) & (z < o3+size)

o1,o2,o3 =(0,0,size)
cube5 = (o1 <= x) & (x < o1+size) & (o2 <= y) & (y < o2+size) &  (o3 <= z) & (z < o3+size)

o1,o2,o3 =(size,0,size)
cube6 = (o1 <= x) & (x < o1+size) & (o2 <= y) & (y < o2+size) &  (o3 <= z) & (z < o3+size)

o1,o2,o3 =(0,size,size)
cube7 = (o1 <= x) & (x < o1+size) & (o2 <= y) & (y < o2+size) &  (o3 <= z) & (z < o3+size)

o1,o2,o3 =(size,size,size)
cube8 = (o1 <= x) & (x < o1+size) & (o2 <= y) & (y < o2+size) &  (o3 <= z) & (z < o3+size)

voxelarray = np.zeros(cube1.shape)

voxelarray[cube1]=1 * 255/8
voxelarray[cube2]=2 * 255/8
voxelarray[cube3]=3 * 255/8
voxelarray[cube4]=4 * 255/8
voxelarray[cube5]=5 * 255/8
voxelarray[cube6]=6 * 255/8
voxelarray[cube7]=7 * 255/8
voxelarray[cube8]=8 * 255/8
voxelarray = np.uint8(voxelarray)

cmap = plt.get_cmap('magma')
cols256=[]
for i in range(cmap.N):
    rgb = cmap(i)[:3]
    cols256.append(mpl.colors.rgb2hex(rgb))

def get_color(x):
    return cols256[x]
get_color = np.vectorize(get_color)

colors = get_color(voxelarray)

def plot_voxels(varray,title):
    colors = get_color(varray)
    global ax
    ax = plt.figure().add_subplot(projection='3d')
    plt.axis('off')
    ax.voxels(varray, facecolors=colors, edgecolor="#000000",linewidth=0.1)
    ax.set_title(title)
plot_voxels(voxelarray,"Original")
voxelarray2=gaussian_filter(voxelarray, sigma=1)
plot_voxels(voxelarray2,"gaussian_filter(voxelarray, sigma=1)")
voxelarray2=gaussian_filter(voxelarray, sigma=3)
plot_voxels(voxelarray2,"gaussian_filter(voxelarray, sigma=3)")

Thé images looks great! Would you make a PR? Maybe things like that would be better in the tutorial section.

That would be possible.
But should  all the code be displayed?
It is about 70 lines in total, but only these 6 lines are actually important to understand the gaussian_filter:
from scipy.ndimage import gaussian_filter
plot_voxels(voxelarray,"Original")
voxelarray2=gaussian_filter(voxelarray, sigma=1)
plot_voxels(voxelarray2,"gaussian_filter(voxelarray, sigma=1)")
voxelarray2=gaussian_filter(voxelarray, sigma=3)
plot_voxels(voxelarray2,"gaussian_filter(voxelarray, sigma=3)")

I suggest to have a look at the stats tutorial. You will see that you can use a file to generate plots and you decide if you want the file's sources to appear or not in the tutorial. This way you can show just these 6 lines and the plot.

I guess you mean like this?
https://github.com/scipy/scipy/blame/master/doc/source/tutorial/stats.rst#L975
Sounds reasonable.
But wouldn't people then be confused because they can not find the plot_voxels function?

What we need is to understand how to construct this voxelarray, what's its shape, etc. And then we apply gaussian_filter and do some plotting. A bit like the 2D example.

Sounds good!
I can refactor the code a bit and then make a pull request.
@tupui : Would you be willing to make some fine-tuning of the formatting and commit them directly to my soon coming pull request branch, so that my example is embedded nicely in the style of the docs?

Sounds good!
I can refactor the code a bit and then make a pull request.
@tupui : Would you be willing to make some fine-tuning of the formatting and commit them directly to my soon coming pull request branch, so that my example is embedded nicely in the style of the docs?

Sure of course! Thanks for making a PR 😃


Upgrade to Ember Power Select 3

This PR upgrades Ember to 3.11 and to Ember Power Select 3.
There are some breaking changes in order to align both addons

onchange is renamed to onChange
oncreate is renamed to onCreate

There were couple of strange behaviours as I explained. I am not sure if this is something that needs to be address in the PowerSelect component or in Ember.JS.

I updated the PR

I'm not promising anything, but I'll try to find time this week, probably on Friday, to help make the tests pass if you don't fix them first

@mupkoo If you are struggling with altering ember-try and TravisCI configuration, have a look here: https://github.com/kaliber5/ember-bootstrap-power-select/pull/86 You might be able to just cherry-pick config/ember-try.js and .travis.yml from that PR.

I will check them a bit later today if I have time.

The tests are passing 🎉

@cibernox I think this is ready to be merged.

@cibernox Anything I could help you with to get this one merged and released?

Nothing really, I missed this. Thanks!!

Published in 0.7.0


in the maven center the last version is 0.20.1

in the maven center the last version is 0.20.1
http://facebook.github.io/react-native/releases/0.26/docs/embedded-app-android.html#content
when Integrating react native to an existing Apk, I can only get the last version react native is 0.20.1.
why???????????

The upgrade instructions are buried somewhere.
Basically, you should update the project's build.gradle to:
allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$projectDir/../../node_modules/react-native/android"
        }
    }
}

and the app's build.gradle to:
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
...
    compile 'com.facebook.react:react-native:+'  // From node_modules
}

Works up until 0.25.1, I cannot ensure anything for later versions.

@simonvaucher is right - the AAR is distributed with npm, not Maven.

Hmm, so if I'm building a native module, where do I get the latest react-native jar file from if not maven?


Check update says version 7.4.68 is now available, fails to download it, release seems half-done

Clicking “Check for update”, I get “TogglDesktop 7.4.68 is now available”. But when I click “Install Update”, I get “Update Error! An error occurred while downloading the update. Please try again later.” See screenshots below.
The download link on https://support.toggl.com/toggl-desktop-for-mac-osx/ resolves to TogglDesktop-7_4_58.dmg, and the changelog at https://toggl.github.io/toggldesktop/ also just shows 7.4.58 as the latest version. On the releases list on Github there is a v7.4.68, released three days ago, but it has no installer links, only source code downloads.

I think the @toggl-buildbot forget to build the macOS .dmg version:
7.4.68:

7.4.58:

case/568518

Added the missing installer to the release


SMPL-X model

Hi chungyi,
I'd like to ask does humannerf support SMPL-X model?

You can check out my adapted version here for SMPL-X. Apparently some config parameters need to be changed to fit the different pose shape from SMPL-X, but I haven't validated the performance.


fix and consistent services and topics in base config

fix names for cob3's and make config files consistent
(split this feature from #346)

LGTM

LGTM


Typos / tweaks

Typos
Remove Program.fs from test projects
Fix test namespace
Remove helpers using Async.AwaitTask

The removal of the Async.AwaitTask-based dependencies is based on the fact that

the helpers are not directly used
there's a relatively well known issue with using Async.AwaitTask that results in egregious wrapping of exceptions in AggregateException, unless countered by the ubiquitous AwaitTaskCorrect helper https://github.com/fsharp/fslang-suggestions/issues/840
I appreciate it's a bit of a stretch to include a change like this in a cleanup PR so please let me know if you want me to remove the commit associated with it

I could repurpose this PR by:

remove the renamespacing commit (I see you have it in your other PR)
add AwaitTaskCorrect (I'll put in the canonical version as per the fssnip, as used in Equinox, Propulsion and FSharp.AWS.DynamoDB)
reinstate the stuff using AwaitTask but using ATC instead

I'd propose to leave the AwaitTaskCorrect as private as egregious use of this nuget to patch stuff is not going to end well for anyone
I have some concerns about Task/Async.map - it's presence rarely does good things for code IME even though I know lots of people want it, and it logically fits in with a certain style - would be happy to move it to the test module...
Regarding AggregateException, if you have time, I have a puzzler I posed in https://discord.com/channels/196693847965696000/196695876054286336/1051212510675607552 - unfortunately I don't understand it well enough / havent worked hard enough to distil the problem down as yet to identify where it's coming from/being introduced (e.g. it could be doubly nested coming from the AWS SDK and two layers of AwaitTaskCorrect Flattening transitions might have been neutralising that)

I have some concerns about Task/Async.map - it's presence rarely does good things for code IME even though I know lots of people want it, and it logically fits in with a certain style - would be happy to move it to the test module...

I see your point. I kinda figured these were nice to have standard functions. Maybe I should remove all the Async/Task/ValueTask helpers (except for ValueTask.CompletedTask, it is needed because NetStandard 2.1 doesn't have it).
But let's take this discussion separate from this PR. Currently there isn't a single lib that has a bunch of these helper functions around, each lib comes with some of their own (fstoolkit, F#+, FusionTasks, AsyncEx), or none. Me adding to that forest of confusion is probably not a good thing.
Maybe I should just collect all the useful helpers and create them as a separate lib, and internalize them here as private.

OK, force pushed shaving off the commits re renamespacing and removal of AwaitTask-dependent stuff, so this is ready for merging and/or review (let me know if you want me to re-add the renamspacing of .Test -> .Tests)

But let's take this discussion separate from this PR. Currently there isn't a single lib that has a bunch of these helper functions around, each lib comes with some of their own (fstoolkit, F#+, FusionTasks, AsyncEx), or none. Me adding to that forest of confusion is probably not a good thing.

Maybe I should just collect all the useful helpers and create them as a separate lib, and internalize them here as private.

I'd dearly love to see an Task.toAsync and/or Async.ofTask (which AFAICT nicely sidesteps the AwaitTaskCorrect naming vs breaking changes to Async.AwaitTask breaking changes problems) that addresses https://github.com/fsharp/fslang-suggestions/issues/840. If that can't be in FSharp.Core (the fact that it would be v 6.0.8 or 6.1.0 would be a bit ugly too, considering my complaining about 6.0.2 requirements!), a new lib would be good (with a pretty strict terms of reference so it does not become a dumping ground for random low value Task/Async helpers). Even if it was in a separate lib, I'd have Equinox, Propulsion and FsKafka take a dependency on it as the current inlining is a really ugly state of affairs as it is. That would pave the way for general guidance and/or FSharpLint to outlaw Async.AwaitTask.
I guess that issue is probably the place to have the full discussion.

Thanks for finding and fixing all my spelling errors, and improving the language!


BorderRadius issue on android

I am using Bar component and passing borderRadius value but it is setting borderRadius only of unfilled View while for filled view it is not setting .It is coming only in Android?

Seeing the same issue.

Yes its still same

I made a pull request that I believe fixes the issue.
https://github.com/oblador/react-native-progress/pull/51

has same issue, any ideas?

same problem, any solution?

@AlanRussoDev look at https://github.com/oblador/react-native-progress/pull/51/files

This was caused by bug in the RN implementation of overflow hidden on android and it is fixed in RN 0.50


reselect-visual broken after (un)commenting that visual selection

I regularly use gv to reselect a previous visual selection, however after using a comment/uncomment on the selection, that doesn't work, it seems to select the first line of the previous selection.
I can imagine the text and thus selection area has changed after (un)commenting, but when I for example do line visual selection/comments, it seems natural to be able to reselect those lines again.
This is something that works with nerdcommenter for example, both for line selection and non-line selection.

Are you saying that gv is not working with the default mappings? Or did you setup some custom keybindings?

Indeed, I had remapped and that mapping was clashing with some other mapping for lsp functionality.
I removed the clashing mapping in my lsp on_attach and now it works as expected.
For future reference if ppl have a similar issue, my nvim.comment setup with packer:
        use { 'numToStr/Comment.nvim',
            config = function() require('Comment').setup({
                toggler = {
                    line = '<leader>c<leader>',
                },
                opleader = {
                    line = '<leader>c',
                },
                mappings = {
                    extended = true
                }
            }) end
        }

I use  as leader, then I can use my right thumb and my left digit to do comments, which feels better to me than gc
and I also had the following mapping in my lsp on_attach function which I copied from the lsp on_attach example:
    buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)

Not sure I understand what goes wrong because of this, but I removed the lsp mapping and it works as expected now, good catch, thank you!


About the save_scores.py

Sorry for bothering you. When I run the demo.sh,  I got the following information:

F0411 09:11:13.857249 25554 net.cpp:774] Cannot copy param 0 weights from layer 'conv1'; shape mismatch.  Source param shape is 96 3 7 7 (14112); target param shape is 96 3 11 11 (34848). To learn this layer's parameters from scratch rather than copying from a saved net, rename the layer.
*** Check failure stack trace: ***
demo.sh: line 7: 25554 Aborted                 (core dumped) python save_scores.py --center_only --gpu --model_def deploy_modelnet40_case1.prototxt --pretrained_model rotationnet_modelnet40_case2_ori4.caffemodel --input_file sample_case1_toilet_000000020.txt --output_file scores_case1_toilet_000000020.npy
Traceback (most recent call last):
File "classify_npyfile_case1.py", line 9, in
scores_ = numpy.load(sys.argv[2])
File "/home/anaconda3/envs/python2.7/lib/python2.7/site-packages/numpy/lib/npyio.py", line 370, in load
fid = open(file, "rb")
IOError: [Errno 2] No such file or directory: 'scores_case1_toilet_000000020.npy'

So I run the save_scores.py, the following information is:

Cannot copy param 0 weights from layer 'conv1'; shape mismatch.  Source param shape is 96 3 7 7 (14112);target param shape is 96 3 11 11 (34848). To learn this layer's parameters from scratch rather than copying from a saved net, rename the layer.

What I should do?

I noticed that I happened to have a bug in save_scores.py when running demo.sh. Please pull the latest version and try it again. Thanks!

Thanks for your reply. I downloaded all code again. It doesn‘t work, the following information is the same.

I guess you downloaded rotationnet_modelnet40_case2_ori4.caffemodel and renamed it as rotationnet_modelnet40_case2.caffemodel, right? Unfortunately, it doesn't work as it is. Please download the correct files:
https://www.dropbox.com/s/93dzh5b0ysoj5we/rotationnet_modelnet40_case1.caffemodel?dl=0
https://www.dropbox.com/s/8je31y5udn2unxa/rotationnet_modelnet40_case2.caffemodel?dl=0
This model rotationnet_modelnet40_case2.caffemodel is different from the one you are using in that:

based on the AlexNet architecture
trained on a subset of ModelNet40
trained under a bit different lighting condition

Plus, rotationnet_modelnet40_case2_ori4.caffemodel was trained with rotated 3D models (i.e., rendered with a different camera system orientation).
Thanks!

Thank you! It works. I forgot to tell you that I downloaded the pre-trained models you said before, sorry for the inconvenience.


Add leverager for ldot token on acala network

Please export LeveragerDot from index.ts

Please export LeveragerDot from index.ts

Please export LeveragerDot from index.ts

Done


Move completly to InnoDB

Let's create everything with innodb instead of myISAM.
Was less than i expected.

No errors detected when trying this pr.

Fresh install also worked. So all fine. Go for merge.


Baker disappear bugfix

Fixes the bug where the bakes would disappear if they found no flour at their destination stockpile pile.
Test build available here:
https://we.tl/t-kymOwObpk0
Zip content:

UnofficialCrusaderPatch.dll (38 286 336 bytes)
UnofficialCrusaderPatchGUI.exe (122 368 bytes)

WeTransfer link update:
https://we.tl/t-HWgGg8OQtP

Works as intended


feature request: bmp format image support

this is a feature request,
would this lovely project support bmp format image manipulation?

Hello, please see #543

Thanks I used jimp to handle bmp format images.

here is the link: https://github.com/oliver-moran/jimp
read a bmp file, then export it as a jpeg buffer, then send it to sharp

I believe https://github.com/shaozilee/bmp-js is the underlying library used by jimp.
It might be possible to remove the jpeg compression round-trip by using it directly with sharp, something like (untested):
const bmpDecoded = bmp.decode(bmpBuffer);

sharp(bmpDecoded.data, { raw: {
  width: bmpDecoded.width,
  height: bmpDecoded.height,
  channels: 4
}})...

Great, thanks!

Unfortunately, decoded channel order of bmpjs is BGR order, which is not compatible with sharp (sharp uses RGB order - RGBA if 4 channels defined.)
So we've forked bmp-js to provide RGBA option, with improved bitmap format compatibility. (tested with 1/2/4/8/16/24/32bit bitmap image)
Forked repo: https://github.com/balmbees/bmp-js
Just follow below steps to load bitmap images:

install @vingle/bmp-js package

$ npm install @vingle/bmp-js --save

Change your code like this:

Old:
import * as sharp from "sharp";

async function transform(input: Buffer): Promise<Buffer> {
  const sharpInstance = sharp(input);

   // do stuff...

  return await sharpInstance.jpeg().toBuffer();
}

New:
import * as bmp from "@vingle/bmp-js";
import * as sharp from "sharp";

const BUF_BMP = Buffer.from([0x42, 0x4d]); // "BM" file signature

function isBitmap(buf: Buffer): boolean {
  return Buffer.compare(BUF_BMP, buf.slice(0, 2)) === 0;
}

async function transform(input: Buffer): Promise<Buffer> {
  const sharpInstance = (() => {
    if (isBitmap(buf)) {
      const bitmap = bmp.decode(buf, true);
      return sharp(bitmap.data, {
        raw: {
          width: bitmap.width,
          height: bitmap.height,
          channels: 4,
        },
      });
    }
    return sharp(buf);
  })();

  // do stuff..

  return await sharpInstance.jpeg().toBuffer();
}

Hope this helps!

I added an adapter to bmp-js for sharp, it's easy to use.
See: https://github.com/ssnangua/sharp-bmp

Install sharp-bmp package

npm install sharp-bmp

Create an instance of sharp from a BMP image

const bmp = require("sharp-bmp");

bmp.sharpFromBmp("input.bmp", {
  // sharp constructor options
}) // returns an instance of sharp
  .toFile("output.png");

Write output image data to a BMP file

const sharp = require("sharp");
const bmp = require("sharp-bmp");

const image = sharp("input.jpg");

bmp.sharpToBmp(image, "output.bmp")
  .then((info) => {
    console.log(info); // { size, width, height }
  })
  .catch((err) => {
    console.error(err);
  });

Hope this helps :-)

I used https://github.com/mooyoul/bmp-js already has the option to convert the BRG to RGBA
npm install @vingle/bmp-js
and use it:
const fs = require('node:fs');
const fsp = fs.promises;
const bmp = require('@vingle/bmp-js');
const sharp = require('sharp');

const buffer = await fsp.readFile('input.bmp');
const bitmap = bmp.decode(buffer, true); // boolean flag to convert to RGBA

const image = sharp(bitmap.data, { raw: {
  width: bitmap.width,
  height: bitmap.height,
  channels: 4
}})

see more in https://github.com/shaozilee/bmp-js/pull/19

shaozilee/bmp-js#19

Hi @mooyoul, thanks for your code snippet! Can you also share another version that accepts stream instead of buffer?
Is it possible that the method accepts a stream, and detects if it's BMP type? If so, then use BMP-js to decode and pipe to another stream. If not then pipe to the other stream directly without using bmp-js?
Thanks for your sharing!

I added an adapter to bmp-js for sharp, it's easy to use.
See: https://github.com/ssnangua/sharp-bmp

Install sharp-bmp package

npm install sharp-bmp

Create an instance of sharp from a BMP image

const bmp = require("sharp-bmp");

bmp.sharpFromBmp("input.bmp", {
  // sharp constructor options
}) // returns an instance of sharp
  .toFile("output.png");

Write output image data to a BMP file

const sharp = require("sharp");
const bmp = require("sharp-bmp");

const image = sharp("input.jpg");

bmp.sharpToBmp(image, "output.bmp")
  .then((info) => {
    console.log(info); // { size, width, height }
  })
  .catch((err) => {
    console.error(err);
  });

Hope this helps :-)

Great work man.


ctr shim exec: fix cli flag

--spec was required but not defined in the CLI.
Note that exec is still broken (https://github.com/containerd/containerd/issues/869)
Signed-off-by: Akihiro Suda<EMAIL_ADDRESS>

Codecov Report

Merging #931 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #931   +/-   ##
=======================================
  Coverage   59.55%   59.55%
=======================================
  Files           5        5
  Lines         759      759
=======================================
  Hits          452      452
  Misses        199      199
  Partials      108      108

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7fc91b0...967a4e0. Read the comment docs.

LGTM


Top bar should be slightly wider that content body box

Stat block should be slightly wider than the content body box.

This issue was moved to grislyeye/temp#3


dynamically add highlights

hey @mir3z ! This is a really great util! I have a question that (I hope) is pretty straight forward. I have an application where I am saving user highlights by serializing. When they come back to the page, I want the (old) highlights to load automatically. I also have a collaborative function that has users working together, and I am able to send the serialized highlights from one browser to the other in real time. What function do I hand (any highlight / range) to in order for the highlight to show up colored on the screen? Many thanks!

You just need to deserialize the serialized json which contains all what the deserializer needs such as the number of highlights, location, and range.
just check the serialization example.

select some text to serialize
click serialize, the highlights will be removed and you will get the serialized output in the console
click deserialize to get the serialized output and highlight the text.

hey @ali-h2010 I fixed this up more than 6 months ago, so I'm ok to close the issue. Thanks!


docs(rxjs): add readme and jsdoc for the "Share" decorator

Great implementation of the Share decorator, stumbled upon it on stackoverflow, however it would be nice to have accompanying docs.
Also, Installation section references another package

Thanks for reporting this. Docs are adjusted


Source field

I can't find any documentation  - according to https://blogs.msdn.microsoft.com/cloud_solution_architect/2015/10/25/using-azure-policy-to-deny-or-audit-management-operations/ there should be an allowed field called "Source"

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

ID: 9762f1b7-0e3a-d58f-fd99-a27ad948907b
Version Independent ID: 89e28332-184e-ba84-df1f-e7698c5e0f7c
Content: Azure Policy definition structure
Content Source: articles/governance/policy/concepts/definition-structure.md
Service: azure-policy
GitHub Login: @DCtheGeek
Microsoft Alias: dacoulte

@anwather Can you provide more specifics in Azure?  Is this with Azure ARM or something else?

In the link provided - an Azure Policy can be created which allows you to specify a field called source. I can't find any documentation to support this although it works as the link suggests. It could be done via ARM, PowerShell or edited in the Portal.
{
  "if":{
    "allOf":[
      {
        "source":"action",
        "equals":"Microsoft.Storage/storageAccounts/write"
      },
      {
        "field":"location",
        "in":[
          "eastus"
        ]
      }
    ]
  },
  "then":{
    "effect":"deny"
  }
}

I'm looking for clarification that this is a supported field.

adding @DCtheGeek to help clarify.

Hello,
'Source' field isn't necessary because Policy always evaluate on /write operation.
The behavior is identical to using 'type' equals 'Microsoft.Storage/storageAccounts'.
Thanks,
Liz

@anwather Thanks for the question and the feedback!  Please let us know if you have other questions or issues with the Policy docs. If you have suggestions or requests for the service, please see the Governance UserVoice.  Thanks!
@MicrosoftDocs/azure-cxp-triage #please-close


Trying to use ts loader in happypack, getting 'loader._compiler.plugin is not a function'

What the title says, basically:
let loaders: webpack.Loader[] = [
  // Compile TypeScript
  { test: /\.ts$/, loader: 'happypack/loader?id=tsx', exclude: [ /\.(spec|e2e)\.ts$/ ] },
]

plugins.push(new HappyPack({
  id: 'tsx',
  threadPool: happyThreadPool,
  loaders: ['ts'],
}));

That's because the loader is trying to directly access webpack's compiler to register a plugin, which isn't supported in HappyPack (since webpack's compiler lives in the main process).
These loaders need to be rewritten in a way to not rely webpack's internals. I'm working on ts-loader support in #33 so you can track the progress there.

Closing as duplicate of #33.


Bump notation-go libraries for alpha-4 release

Looks like https://github.com/notaryproject/notation/pull/357 might resolve this issue...

The Pull request #357 is merged and hence closing this issue.

The Pull request #357 is merged and hence closing this issue.


problems with quickstart guide

First, when asked the location of the tests, if user enters a directory, codeceptjs gt will fail with an obscure message. It's running a pattern match against config.tests and assuming a non-null result.
Second, running codeceptjs run --steps with the suggested first script results in this error:
  1) Foo test something:
     I.amOnPage is not a function

The I object is empty.

So, one missing step in the quickstart is npm install of webdriverio. Perhaps if it's installed the generated config would include the webdriver config? If not, then quickstart also needs directions on adding the webdriver config to codecept.json.
After resolving these two issues, it's working for me.

@acthp Can you post your config for webdriver? I'm running into the same issue.

@schmkr I could never get codecept to work reliably, switched to chimp, and then wdio. The promise / generator design of codecept was impossible for me to debug, and never quite worked.


Translation to Spanish: Verify and update translation of intermediate-bonfires.json

[ ]  Sum All Numbers in a Range
[ ]  Diff Two Arrays
[ ]  Roman Numeral Converter
[ ]  Where art thou
[ ]  Search and Replace
[ ]  Pig Latin
[ ]  DNA Pairing
[ ]  Missing letters
[ ]  Boo who
[ ]  Sorted Union
[ ]  Convert HTML Entities
[ ]  Spinal Tap Case
[ ]  Sum All Odd Fibonacci Numbers
[ ]  Sum All Primes
[ ]  Smallest Common Multiple
[ ]  Finders Keepers
[ ]  Drop it
[ ]  Steamroller
[ ]  Binary Agents
[ ]  Everything Be True
[ ]  Arguments Optional

[X] Sum All Numbers in a Range
[X] Diff Two Arrays
[X] Roman Numeral Converter
[X] Where art thou
[X] Search and Replace
[X] Pig Latin
[X] DNA Pairing
[X] Missing letters
[X] Boo who
[X] Sorted Union
[X] Convert HTML Entities
[X] Spinal Tap Case
[X] Sum All Odd Fibonacci Numbers
[X] Sum All Primes
[X] Smallest Common Multiple
[X] Finders Keepers
[X] Drop it
[X] Steamroller
[X] Binary Agents
[X] Everything Be True
[X] Arguments Optional

Checking this one


feat: support scoped commits

Fixes #31
Currently the prefix can contain both type and scope but it's treated as type only. So I've added a step to parse those out. The scope is used in the line description similar to how they show up in conventional release notes.
I had to include tslib as to target ES2018 and use various syntax (like destructuring), it's needed.
src/commit.ts:75:15 - error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.

75       const { type, scope } = getTypeAndScope(words[1])

Downgrading the target to ES2015 avoids the error. I guess they include helpers automatically in ES2015 and stopped doing that in later versions.
I've also committed changes in the dist folder as that seems to be convention here.
Since the tsbuildinfo is on 3.8.3, I made a separate commit to upgrade to 3.9.9 which allows us to use the latest tslib. I can split this into a separate PR if needed.

@jahed-snyk would you be able to reopen the PR from a branch on this repo rather than a fork?

@Shesekino will do, I assumed I didn't have write-access. Is there a testing process for this? If not, I'll try this out on a test repo before merging just to confirm everything's working.

A test repo sounds fantastic 👌
We were missing permissions on the dev group - I've modified that :) Let me know if you're missing anything please 🙏

There's a good chance I won't have time for this... So closing for now. If anyone else wants to pick it up feel free to.


The Circular Evaluation Strategy && LLM-based Choice Extractors

hi, i am using the MMBench to evaluate  my VLM, but i find  there are some ploblems in  MMBench

I see that in  https://github.com/open-compass/opencompass/blob/main/configs/multimodal/minigpt_4/README.md, the minigpt4  does not achieve  the The Circular Evaluation Strategy and  LLM-based Choice Extractors  by using chatgpt，Are The Circular Evaluation Strategy and  LLM-based Choice Extractors needed to achieve   by ourselves？
the question number of  MMBench-Dev(En) is not 1164 in describtion of https://github.com/open-compass/MMBench

Looking forward to your reply，Thank you！

CircularEval and LLM-based Choice Extractors are implemented in eval_mmbench.py, which is not included in the inference part.
The question number in the MMBench-Dev tsv is more than 1164, since it also includes CircularEval cases with choice shifted.


Add new Humor category and 3 APIs

Add ICNDb API to Humor
Add Bread Puns API to Humor
Add icanhazdadjoke API to Humor

[X] My submission is formatted according to the guidelines in the contributing guide
[X] My addition is ordered alphabetically
[X] My submission has a useful description
[X] The description does not have more than 100 characters
[X] The description does not end with punctuation
[X] Each table column is padded with one space on either side
[X] I have searched the repository for any relevant issues or pull requests
[X] Any category I am creating has the minimum requirement of 3 items
[X] All changes have been squashed into a single commit

I rearranged the order of the APIs in the Humor section. They are now in alphabetical order


compilation warning on macOS X

I recently integrated the encoder into the Moddable SDK. We use IMA ADPCM to reduce the flash storage requirements for audio on embedded products. Switching over to the API was straightforward and the encoder works very nicely. Thank you for the great work.
On macOS X, I ran into the smallest issue - the following warning when compiling:
# tools debug : cc adpcm-lib.c
/Users/hoddie/Projects/moddable/tools/adpcm-lib.c:340:19: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
    if (inbufsize < channels * 4)
        ~~~~~~~~~ ^ ~~~~~~~~~~~~

I added a cast to quiet that. Since channels is always positive, it might make sense instead to declare it as unsigned?

Thanks for the heads-up on this!
Looks like a cool project; let me know if you ever need help on any audio-related stuff.

Excellent. Thank you!
FWIW – It looks like it should be straightforward to integrate your embedded WavPack decoder into the Moddable SDK, but we typically play though small, inexpensive speakers where lossless quality isn't going really help. Still, your cleaner IMA ADPCM encoding does eliminate some of the crunchiness of the basic naive encoder algorithm.

Yeah, lossless probably wouldn't make a lot of sense. But WavPack also has a lossy mode that will give ADPCM-like quality using only about 2.5 bits per sample (instead of 4). If an application came up where a ton of canned audio was required it might be useful, but the simplicity of ADPCM can't be beat for most applications.

Interesting option. Flash space is often limited -- which is what motivated support for IMA ADPCM.
It looks like the WavPack file format is streamable too -- e.g. that the read callback passed to WavpackOpenFileInput only reads forward.

In the standard WavPack library (the one here on GitHub) you can ensure that only forward reads occur by having the can_seek() callback return FALSE.
There's also another version of the decoder specifically targeting embedded systems called the Tiny Decoder which I unfortunately have not put up here yet, although it is in Rockbox. One of the biggest advantages of this version is that it doesn't even require malloc() and doesn't need to hold a whole WavPack block internally to decode it. Maybe this is the one you were already looking at.

Yes, I was looking at the Tiny Decoder (I should have mentioned that!). It seems like that would be the place to start for an embedded target.

Great, I'm glad you found the tiny decoder, and yes, that would be the one to start with.
If you try it let me know if you run into trouble or have any other questions.


Deprecate old TEdgeConfig

Proposed changes

[x] Deprecate old TEdgeConfig::mqtt_config
[x] Remove remaining use of the old TEdgeConfig
[x] Remove all the settings definitions
[x] Remove old TEdgeConfig
[x] Rename new::TEdgeConfig as TEdgeConfig

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue
https://github.com/thin-edge/thin-edge.io/issues/2019
Checklist

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA (in all commits with git commit -s)
[x] I ran cargo fmt as mentioned in CODING_GUIDELINES
[ ] I used cargo clippy as mentioned in CODING_GUIDELINES
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments

@didier-wenzek you'll have to rebase from main to fix the workflow failures (due to the changes introduced in https://github.com/thin-edge/thin-edge.io/pull/2138)


fix (makeen-user): make passport.deserializeUser async

deserializeUser should not try to use
the UserRepository service without waiting for it

That's odd. I was getting this error in my project that's just using the basic makeen.user and this code change fixed it:
TypeError: Cannot read property 'findById' of undefined
    at _passport2.default.deserializeUser (/path/to/packages/core/node_modules/makeen-user/build/libs/passport.js:91:54)

This is weird. Are you using this exact module or a modified version of it?

Just the vanilla module, v1.8.11


Chapter 4: Database (v0.4) - How to convert SQL result into JSON format variable?

Hi Miguel, I copied the Chapter 4 zip file and added some code in /microblog-0.4/app/routes.py file.
https://github.com/miguelgrinberg/microblog/archive/v0.4.zip
How can I convert my SQL result userz99 User.query.all() into a JSON format variable?
routes.py
from flask import render_template, flash, redirect, url_for
from app import app
from app.forms import LoginForm

from app.models import User
import json

@app.route('/')
@app.route('/index')
def index():
    user = {'username': 'Miguel'}

    posts = [
        {
            'author': {'username': 'John'},
            'body': 'Beautiful day in Portland!'
        },
        {
            'author': {'username': 'Susan'},
            'body': 'The Avengers movie was so cool!'
        }
    ]

#...............................................................................

    userz99 = User.query.all()

    print("\n * userz99")
    print(userz99)
    print("")

#...............................................................................

    return render_template('index.html', title='Home', user=user, posts=posts)

This is covered in the API chapter.

Thanks! @miguelgrinberg
Chapter 23: Application Programming Interfaces (APIs)
contained all the examples and answers I was looking for.

Hi @miguelgrinberg I followed along the Chapter 23: APIs tutorial and everything went fine. Now I'm wondering, how can I invoke this API resource URL from a specific page? Which retrieves a JSON list of all users from my database. http://localhost:5000/api/users
After having finished the Chapter 23 tutorial I disabled token authentication and login requirements from the get_users() function in ../appz/api/users.py file. So that I could access the API resource as easily as possible.
What am I doing wrong when trying to invoke this API resource from my specific page?
../appz/calendar/routes.py
from appz import db
from appz.calendar import bp
from appz.models import User

from flask import render_template
from flask import url_for
from flask import redirect

@bp.route('/')
def index():

-----------------------------------------
    # http://localhost:5000/api/users

    jdata = url_for('api.get_users')
    # jdata = url_for('/api/users')
    # jdata = redirect('api.get_users')
-----------------------------------------

    print("\033[1;35;40m\n * jdata \n")
    print(jdata)
    print(f"\n {type(jdata)}")
    print("\033[0;37;48m")

    return render_template('calendar/calendar.html', title=_('Calendar'), jdata=jdata)

@mrbiggleswirth I don't understand what you are showing me. You will be invoking this route from JavaScript, right? So where is your JS code?

Thanks for the pointer @miguelgrinberg I managed to connect all the dots now. 👍
../appz/templates/calendar/calendar.html
{% extends "base.html" %}
{% block app_content %}
<div class="container-fluid"><!-- START container -->

<script>
    // http://localhost:5000/api/users

    const baseEndpoint = 'http://localhost:5000/api';
    const usersEndpoint = `${baseEndpoint}/users`;

    async function listUsers() {
        // 'Promise data'
        const response = await fetch(`${usersEndpoint}`);
        console.log(`\n--- Promise data ---`);
        console.log(response);

        // --- Get the 'Promise data' back into 'JavaScript data'. ---
        const data = await response.json();
        console.log(`\n--- JavaScript data ---`);
        console.log(data);
        console.log(data.items[2]);
    }

    listUsers();
</script>

</div><!-- END container -->
{% endblock %}


Subdirectories not being watched

The following does not consider sub-directories of lib:
watch(%r|^lib/(.*).rb|)      { |m| "spec/#{m[1]}_spec.rb" }
However, the following works as expected when editing a spec that's located in spec/unit directory:
watch(%r|^spec/(.*)_spec.rb|)

related to #23


Fix pre-commit mypy and standardizing environment setup

Description
@zhengp0 mentioned issues with local environment setup (I think conflicting conda envs iirc) and difficulty pointing to the correct mypy executable while developing. I also noticed that mypy would need to be run manually (which is not bad practice, but still) prior to commit in order to catch typing issues early, rather than it automatically.
So,

fixed an incorrect line in .pre-commit-config.yaml to ensure it always runs for all python files in src/ and tests/ (files updated within the commit in question, that is) to enable automatic pre-commit type checking.
More significantly, added a Makefile that provides some environment setup-related targets that may be useful in order to ensure the local dev environment is set up correctly. As a part of this PR I removed my previous conda environment and tested setting up in this manner (i.e. make setup ENV_TYPE=conda, then conda activate onemod) and can confirm that my mypy, pytest, etc. executables all point to the expected locations within the new ("onemod") conda environment so please do let me know if this approach still does not work for you using this branch.

Changes made

One-line regex fix to .pre-commit-config.yaml
Adds Makefile with (optional but maybe useful) environment setup targets
Adds drafts for some getting started dev documentation for the Makefile additions, though have not yet approached the task of rewriting all dev docs for the redesign
Adds a potential CONTRIBUTING.md skeleton for discussion. Would want to discuss contribution guidelines together though before filling in. May not be highest priority atm.

Thanks for setting all of this up!

Does anyone else get this error when running ruff:
warning: The isort option isort.split-on-trailing-comma is incompatible with the formatter format.skip-magic-trailing-comma=true option. To avoid unexpected behavior, we recommend either setting isort.split-on-trailing-comma=false or format.skip-magic-trailing-comma=false.
I can fix this by adding this to pyproject.toml:
[tool.ruff.lint.isort]
split-on-trailing-comma = false
Just wasn't sure if I'm the only one seeing this error.

After running pre-commit, I get a lot of files changed because of the end-of-file-fixer. Should we add those file changes to this PR?

We can definitely remove the make mypy, make pre-commit targets before merging this branch; first just want to ensure that @zhengp0 can get setup successfully.

@kels271828 Added in the
[tool.ruff.lint.isort]
split-on-trailing-comma = false

as you suggested. I was also getting that warning.
Also fixed some of the docs syntax, added .env vars note to the dev docs, and as for the :ref:s, these links look and work fine when building and viewing locally, but not sure if there's a way to get them functioning when viewing in GitHub(?) Would be interested if you know of a way 😅

Also fixed some of the docs syntax, added .env vars note to the dev docs, and as for the :ref:s, these links look and work fine when building and viewing locally, but not sure if there's a way to get them functioning when viewing in GitHub(?) Would be interested if you know of a way 😅

Maybe it's just an issue with viewing on GitHub; I was just viewing it in the browser not actually building the documentation with sphinx


Add rule to prevent mixing observables and constants

We have a plan to use setAttribute when updating props for child components: https://github.com/doug-wade/tybalt/issues/134 . This is super great when you're passing values through between web components
defineComponent({
  render({ value }) {
    return html`<my-custom-component value="${value}"></my-custom-component>`;
  }
});

But somewhat less great when you're composing strings in the template
defineComponent({
  render({ name }) {
    return html`<my-custom-component message="Hello ${name}!"></my-custom-component>`;
  }
});

Because we have to create an extra observable, which uses extra memory.

It would be great if we could introduce this rule before #134 because it will make it much easier to roll out that functionality -- we can introduce the rule first as an error, which allows us to avoid the extra work of detecting the mixed content and adding the extra observable. Then, when we add support to the compiler for supporting mixed content, we can turn it to a warning, since it's about memory management, which is less important for many kinds of applications.


Mac 2.3.2: Stuck at 0% synchronization

What happened: Installed Mac v 2.3.2 and stuck at 0% synchronization. I also went to "Reindex after saving" and tried that as well.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):

What are your environment parameters?

DeFi Wallet Version:  app version 2.3.2 for mac
Operating System (OS):  macos 11.2.3

Anything else we need to know?:  using macbook pro m1

app_log.log
binary_log.log

Hi @saurin13 , you might want to try using the Snapshot download, just a heads up the file is quite large, the team is working on a faster sync process coming in future releases. In the mean time, you can try the following option if you’re more technical:
Reminder: Keep a copy of wallet.dat & passphrase safe before proceeding
Snapshot (sync from 90%+)

1. Download the snapshot

2. In app, Reindex via Settings

3. Wait for 1%, close the app

4. Go to Defi (Mac) / DeFi Blockchain (Windows) folder

Mac — Go to Folder:

/Users/<username>/Library/Application Support/Defi

Windows — C:
C:\Users\<username>\AppData\Roaming\DeFi Blockchain

5. Unzip the downloaded Snapshot, replace the individual files in the Defi (Mac) / DeFi Blockchain (Windows) folder

6. Open your app, and it should start syncing from 90%+
Snapshot download

I did try the setting changes you suggested, and it did not work.  I tried the download on my PC and it works - though I would prefer to use my mac.  I will give the snapshot a try. Where can i download it?

unfortunately now my PC is stuck too, it will not synchronize either

Hi @saurin13 , you've already passed the blockHeight 733594 where users who updated after the Dakota Crescent Upgrade were stuck at, I think you just have to ensure good internet connection and wait for it to reach 100%.
Hi @dell1503 , did you update manually?

Yes did the update as described.
Sync hangs still on  733594 von 749737 as before. Yes, I did a ReIndex with delete blocks and peers already twice.

I have a wired/ethernet gigabit connection. I do not think my internet connection is the issue.
My mac is stuck at 239044 of 749748. (31.88%)

I used the snapshot on my PC and it is also stuck at 738701 out of 749814 (98.52%) - the mac was stuck at the same block when I used the snapshot.
I cannot seem to move on from this.

I have the same that it is stuck at Block 733594 out of 753961 (97.30%) on my Mac. Is there any new solution?

Hi @dell1503 @saurin13 @sash2007 , can you check that you Mac have sufficient storage? There's not other methods apart from

Reindex via Settings (Sync from 0%)
Snapshot download (Sync from 90%)

The snapshot is rather big — approx 27GB. I would suggest staying on the latest version and wait for a fix. Our team is working on an automatic snapshot where you do not have to step 4–5 manually. Thank you for your patience. Kindly refer to the official channels for announcement updates:
DeFiChain Telegram (EN)
DeFiChain Announcements (EN)

I updated now the app to 2.3.3, did a other time re-sync, and it works for me. Re-sync with the Snapshot.

Hi @saurabh391 @sash2007 , if you haven't sync to 100%, there was a node issue on 05/04/2021 that may have cause the network error, everything is back online now, you may try the following:
Option 1 — Reset & Reindex (sync from 0%)

Settings > Reset & Reindex

Option 2 — Snapshot (sync from 90%+)

Ensure you’ve at least 27GB of extra space
Click on i located at bottom-left corner of app screen
Download Snapshot

Let me know your results, thank you for your patience.

Thanks for your help. Its working again.
Regards

Hi @saurin13 , perhaps adding node might help you get unstuck. Reach out to the community on DeFiChain Telegram (EN), there will definately be people to help you! With that I'll be closing this issue.