How do you add the sketch to the reffrence?

I'm trying to see how you color black and white animations. How do you add the sketch reference?

also having a sketch animation and add 1 color frame onl,y

是啊这怎么做到啊，WEBUI可以做到吗

Does anyone knows how to do this yet?

Does anyone knows how to do this yet?

They still have not released the code to do this, so no idea. They have released the sketch model, which does look like a controlnet, but I have no idea how to use it.

Does anyone knows how to do this yet?

They still have not released the code to do this. They have released the sketch model, which does look like a controlnet, but we have no idea how to use it.

I think I have successfully recreated the Sketch Encoder.
There are some quality issues, but I plan to organize the code and release it soon.
https://github.com/user-attachments/assets/ed296b9d-2cb5-4368-82b0-ffb0b9de5ef2
https://github.com/user-attachments/assets/b88accf9-1b6d-48f6-b032-eea6b8aef29a

I have stored the code reproducing "SketchGuidance" in this repository.
https://github.com/mattyamonaca/ToonCrafter_with_SketchGuidance

I have stored the code reproducing "SketchGuidance" in this repository. https://github.com/mattyamonaca/ToonCrafter_with_SketchGuidance

Thank you! @kijai


How do I convert an asn1_rs::Any to a BerObject?

NOT A CONTRIBUTION
I'm looking to update my code that uses x509-parser (and transitively der-parser). I have code that takes an x509_parser::x509::AlgorithmIdentifier, reads the parameters field, and pretty-prints it. In x509-parser v0.12, the parameters are a DerObject so that works. In v0.15 it's an Any. The pretty-printing provided by der-parser exists on BerObject.
So, my question, how do I convert an asn1_rs::Any to a BerObject? I would have expected BerObject to implement TryFrom<Any> but it doesn't[^1]. Is there any alternative way I'm missing?
[^1]: I see in the source a comment saying this is because of the lack of a max_depth argument, but I would have expected such an implementation to be recursive, and perhaps a method on BerObject for converting from Any with a maximum depth specified.

Note: since Any contains the header and raw data, the ber_read_element_content_as function can be used.
I've used it to implement TryFrom, here's the relevant code:
let (header, data) = (any.header, any.data);
let (_, content) = ber_read_element_content_as(
    data,
    header.tag(),
    header.length(),
    header.constructed(),
    MAX_RECURSION,
)?;
let obj = BerObject::from_header_and_content(header, content);

Of course, this is only useful until TryFrom is merged.

In addition to the above comments, I was wondering why you need a BerObject. Is it only for printing?

In this particular case, yes. I'm updating code that pretty-printed algorithm parameters and now it can't. I stopped doing the upgrade when I hit this issue so I don't know if I'm going to run into Any anywhere else, but I don't expect to need anything beyond pretty-printing and possibly custom parsing of the contents for custom oids.

Actually what I said wasn't true, I also have code that tests if the parameters is an Oid, a Sequence, or Null, though I should be able to adapt that to operate on the Any directly.


feroxbuster: 2.9.5 -> 2.10.0

Changelog: https://github.com/epi052/feroxbuster/releases/tag/v2.10.0
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 230408 run on x86_64-linux 1

1 package built:

feroxbuster


[GitHub] hide specific pull requests

Extension
https://www.raycast.com/raycast/github
Description
I have some pull requests that required months to be merged (ongoing migrations or deprecation removal waiting for a LTS to expire) that I don't want to show
Some are part or repositories I don't control (OSS) so filtering by label etc is not gonna work.
A local blacklist would be enough (if it was on a file easily accessible would be even better, to sync across devices)
Who will benefit from this feature?
No response
Anything else?
No response

On which commands would you want to hide specific PRs? Note that My Pull Requests only include PRs that have been updated in the last two weeks. If there hasn't been any activity on the PRs you mentioned, they shouldn't show up.


EmrEtlRunner: add Snowplow tracking into config.yml

Something like:
:monitoring:
  :tags:                      # Array of tags to describe this job
    - prod
  :logging:
    :level: DEBUG             # You can optionally switch to INFO for production
  :snowplow:
    :method: POST             # Or GET if you prefer
    :collector: ADD HERE      # e.g. d3rkrsqld9gmqf.cloudfront.net
    :app_id: ADD HERE         # e.g. snowplow

This is my suggestion for a configuration file which means tracking is disabled:
:monitoring:
  :tags:                      # Array of tags to describe this job
    - prod
  :logging:
    :level: DEBUG             # You can optionally switch to INFO for production
  :snowplow:                  # nil

Looks good to me


Signature2 hash

hi,
my signature use  hash 2 times .
And web3j ,the Java and Android library for integration with Ethereum clients( https://github.com/web3j/web3j) signature use hash 2 times.
so, I add the "signPersonalMessage2Hash" method  to signature and "personalECRecover2Hash" to verify.
pls, add them.

Hello @wufeiafei
Please consult a standard
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign
Message being signed is first padded from start by a special header, so you never sign an unknown hash when you use a personal signature. The proper general way to sign a Message (some byte string) is to hash it and sign a hash. If you supply a hash as a byte string mentioned above than you effectively hash twice, that is not necessary in general (double SHA256 in some cases is necessary to mitigate padding attack, that is not present for keccak256).
Also please consult a source of Web3j, their test for personal message EC recovery uses the same single hash algorithm as I do and as listed in the standard.
https://github.com/web3j/web3j/blob/51f88364b8899ff8d89fd7bb3671d7b3624afe4d/crypto/src/test/java/org/web3j/crypto/ECRecoverTest.java
So, this pull request can not be accepted.
Sincerely, Alex


feat: choose whether to concatenate URL parameters in the redirect.

Greetings,
This PR adds the option for the user to choose whether they want to keep the parameters in the redirect or not.
The functionality was changed to add the feature for files loaded via CSV and through the dashboard.
One issue that is occurring is that in the admin panel, the option, although functional, is not being saved. I would need some assistance or correction for this.

In this image, I demonstrate that despite being active, if I make it public, it will work. However, after refreshing the page, it remains functional but the active status is not retained.

** The parameter combination was initially starting as true by default. In this PR, I've changed it to false because "from" leads to "to," and if the user wishes "from" to lead to "to" with parameters added, they can enable it.
See how it works (PT-BR):
https://www.loom.com/share/24b287d5634c42178c9a522fc20e5c37

@jonathanwlopes can you check @matheusgr comments?

@jonathanwlopes can you check @matheusgr comments?

@guitavano Yes, I just completed the verification and adaptation.
@matheusgr You're welcome for the suggestions.

@matheusgr @guitavano
can you validate if it's better now?

@matheusgr @guitavano can you validate if it's better now?

great work @jonathanwlopes!
proposal: maybe we could add some tests in another PR dealing with redirect. It will improve how we evaluate and discuss about this feature.


Cant start addon

Hello,
I have this error as soon the addon starts
cont-init: info: /etc/cont-init.d/10-dnsmasq.sh exited 0
cont-init: info: running /etc/cont-init.d/32-nginx_ingress.sh
[19:53:21] INFO: Configuring nginx ingress...
cont-init: info: /etc/cont-init.d/32-nginx_ingress.sh exited 0
cont-init: info: running /etc/cont-init.d/32-nginx_ssl.sh
cont-init: info: /etc/cont-init.d/32-nginx_ssl.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun backend (no readiness notification)
services-up: info: copying legacy longrun dnsmasq (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
[19:53:21] INFO: Starting dnsmasq...
[19:53:21] INFO: Starting nginx...
[19:53:21] INFO: Starting dhcp-clients-webapp-backend...
dnsmasq[167]: started, version 2.90 DNS disabled
dnsmasq[167]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset no-nftset auth no-cryptohash no-DNSSEC loop-detect inotify dumpfile
dnsmasq-dhcp[167]: DHCP, IP range <IP_ADDRESS> -- <IP_ADDRESS>, lease time 12h
dnsmasq-dhcp[167]: DHCP, sockets bound exclusively to interface eno1
Web backend starting
2024/10/14 19:53:21 Reading addon config file '/data/options.json'
2024/10/14 19:53:21 Acquired 1 IP address reservations
2024/10/14 19:53:21 Acquired 1 friendly names
2024/10/14 19:53:21 Web UI logging enabled=false
2024/10/14 19:53:21 Reading DHCP client lease file '/data/dnsmasq.leases'
2024/10/14 19:53:21 Updated DHCP clients internal status with 0 entries
2024/10/14 19:53:21 Starting server to listen on port 8976
2024/10/14 19:53:21 [emerg] 165#165: bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
2024/10/14 19:53:21 [notice] 165#165: try again to bind() after 500ms
nginx: [emerg] bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
s6-rc: info: service legacy-services successfully started
2024/10/14 19:53:21 [emerg] 165#165: bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
2024/10/14 19:53:21 [notice] 165#165: try again to bind() after 500ms
nginx: [emerg] bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
2024/10/14 19:53:21 [emerg] 165#165: bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
2024/10/14 19:53:21 [notice] 165#165: try again to bind() after 500ms
nginx: [emerg] bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
2024/10/14 19:53:21 [emerg] 165#165: bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
2024/10/14 19:53:21 [notice] 165#165: try again to bind() after 500ms
nginx: [emerg] bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
2024/10/14 19:53:21 [emerg] 165#165: bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
nginx: [emerg] bind() to <IP_ADDRESS>:8081 failed (98: Address in use)
2024/10/14 19:53:21 [notice] 165#165: try again to bind() after 500ms
nginx: [emerg] still could not bind()
2024/10/14 19:53:21 [emerg] 165#165: still could not bind()
[17:53:23] WARNING: Halt add-on
s6-rc: info: service legacy-services: stopping
dnsmasq[167]: exiting on receipt of SIGTERM
[17:53:23] INFO: Service restart after closing
[17:53:23] INFO: Service restart after closing
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
I dont Know where is the error.
Thanks.

Dnsmasq-DHCP - Current version: 1.3.0
Core     - 2024.10.2
Supervisor     - 2024.10.2
Operating System     - 13.1
Frontend     - 20241002.3
Thanks!!!

Dnsmasq-DHCP - Current version: 1.3.0 Core - 2024.10.2 Supervisor - 2024.10.2 Operating System - 13.1 Frontend - 20241002.3 Thanks!!!

ok thanks.
Can you try to:

go to your Addon dashboard in HA interface
click the top-right icon "Check for updates"
click the bottom-right icon "addon library"
check that under "Francesco Montorsi add-ons" you can see "Dnsmasq-DHCP BETA"
install the beta addon
start the beta addon
verify your issue is fixed?

Thanks!

hello, not working but with different problem.
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/10-dnsmasq.sh
[08:19:22] INFO: Resolving NTP hostnames eventually provided...
[08:19:22] INFO: NTP servers are 0.europe.pool.ntp.org
1.europe.pool.ntp.org
2.europe.pool.ntp.org
DNS resolved 0.europe.pool.ntp.org -> <IP_ADDRESS>
DNS resolved 1.europe.pool.ntp.org -> <IP_ADDRESS>
DNS resolved 2.europe.pool.ntp.org -> <IP_ADDRESS>
[08:19:22] INFO: Configuring dnsmasq...
[08:19:22] INFO: Full dnsmasq config:
1	# Automatically generated do not edit
2	# See https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
3
4	# To disable dnsmasq's DNS server functionality.
5	port=0
6
7	no-resolv
8	no-hosts
9	keep-in-foreground
10	log-facility=-
11	no-poll
12	user=root
13
14	log-dhcp    # log dhcp related messages
15
16
17	interface=eno1
18
19	# the /data folder for HomeAssistant addons is mounted on the host and is writable, let's save DHCP client list there:
20	dhcp-leasefile=/data/dnsmasq.leases
21
22	# Activate DHCP by enabling a range of IP addresses to be provisioned by DHCP server
23	dhcp-range=<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,12h
24
25	# Set gateway -- i.e. option #3 of DHCP specs
26	dhcp-option=3,<IP_ADDRESS>
27
28
29
30	# Set DNS server(s)) -- i.e. option #6 of DHCP specs
31	dhcp-option=6,<IP_ADDRESS>,<IP_ADDRESS>
32
33
34
35
36
37	# Set NTP server(s)) -- i.e. option #42 of DHCP specs
38	dhcp-option=42,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>
39
40
41
42
43
44
45	# Set static IP address reservations
46	dhcp-host=aa:bb:cc:dd:ee:ff,An-important-host-with-reserved-IP,<IP_ADDRESS>,12h
47
48
49
cont-init: info: /etc/cont-init.d/10-dnsmasq.sh exited 0
cont-init: info: running /etc/cont-init.d/32-nginx_ingress.sh
[08:19:23] INFO: Configuring nginx ingress...
[08:19:23] INFO: ingress_port=8100
[08:19:23] INFO: ingress_interface=<IP_ADDRESS>
[08:19:23] INFO: ingress_entry=/api/hassio_ingress/KlhXhRr89xR0Y-luSmB8r1dX5-RA6aBTPTohxE8EXnc
[08:19:23] INFO: web_ui_port=8976
sed: /etc/nginx/servers/ssl.conf: No such file or directory
cont-init: info: /etc/cont-init.d/32-nginx_ingress.sh exited 1
cont-init: warning: some scripts exited nonzero
s6-rc: warning: unable to start service legacy-cont-init: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Thanks!!!!

@Talixme ,
can you retry once more with the BETA addon?
Before hitting "start", please log via ssh on your Home Assistant box and run:
docker pull ghcr.io/f18m/amd64-addon-dnsmasq-dhcp:beta

This will make sure that you will be running the latest fix I deployed.
After this is successful complete, just go to the "Dnsmasq-DHCP BETA" component in HA user interface and click "start"

Now it works perfectly, just one thing which I know is due to the color theme, but just so you know, it doesn’t display correctly.

And one more request that would be great: the ability to change the names and force the MAC address to an IP from the web service. It would be much more convenient this way.
Thank you very much for your effort, for sharing your project, and for the quick support. Best regards.

hey @Talixme ,
about the color theme: can you open a new ticket and explain there which theme are you using and how to apply that in HA? I didn't even know it was possible in HA :)

And one more request that would be great: the ability to change the names and force the MAC address to an IP from the web service. It would be much more convenient this way.

Yeah I might open a ticket to track this and indeed I agree it would be more convenient. OTOH it's not a trivial development and... typically DHCP configuration is changed a lot in the first stages of a network rollout, but then you stop making changes... so I wonder if the effort is worth it...


Method 4: Remove email messages with attachments using a bulk deletion job - 'Completed' emails?

For the bulk deletion of emails with large attachments - https://docs.microsoft.com/en-us/power-platform/admin/free-storage-space#method-4-remove-email-messages-with-attachments-using-a-bulk-deletion-job, the guidance says to choose emails with a Status Reason of Completed. This doesn't seem right as hardly any emails have this status. Wouldn't Sent and/or Received be better?

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

ID: cb9c9aae-ceaa-2e78-3752-2770327f49a7
Version Independent ID: acd2ddc9-6225-92e8-2636-2a02437c3d82
Content: Free up storage space - Power Platform
Content Source: power-platform/admin/free-storage-space.md
Service: power-platform
Sub-service: admin
GitHub Login: @jimholtz
Microsoft Alias: jimholtz

@ConsoleMAD
Thanks for the suggestion. We'll update the document.


bug when bootstrapping yaq devices

When first starting to look at yaq devices, ends up comparing limits to None because initial value of limits for generic auto_rxn device is none.

closed by #43


Remove tidy as the dependency of build target and add another make tidy-all step to build-test.yml. This is required otherwise make build-all will report an error when the current go.mod file indicates a higher Go version than the current installed version.
The io/ioutil package has been deprecated in Go 1.16 (See https://golang.org/doc/go1.16#ioutil). This PR replaces the existing io/ioutil functions with their new definitions in io and os packages.

Thanks for your contributions as first.
We have set a GSP about our release policy: https://github.com/beyondstorage/go-storage/blob/master/docs/rfcs/15-release-policy.md
So upgrade to 1.17 is not suitable for us.
Upgrade to 1.16 is OK though.
We have a discussion about it at our forum:https://forum.beyondstorage.io/t/topic/244
Do you want to implement it?

BTW, it's OK to me to just add go 1.17 support in this PR. And we can discuss the upgrade to 1.16 in another one.

Yes, we can drop go 1.15 in github action. 😝

Maybe we don't need to change the Makefile if we use go 1.16 in go.mod?


Support use like mvnw?

IMHO, Maven Wrapper should support mvnd, so I think it's more an issue for Maven Wrapper rather than mvnd.


how do u add a custom dialogue box

Describe your problem here.
I wanna make the dialogue box a different image
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

For a specific song or the entire mod?

entire mod

The original image for the dialogue box is called 'speech_bubble.png', just place an image in modpack/images with the same name and you should be good to go


⚠ Bofrost.be has degraded performance

In ce19ce3, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1235 ms

Resolved: Bofrost.be performance has improved in f109ff4.


Firefox shows blank when trying to print SVG chart.

I am using fusion chart to render svg charts and when I am trying to print that chart that comes blank, all texts are coming but the chart is gone.

Is there any solution for the above query...

transform svg to image will solve the problem.I use canvg to do that.


Bug fix in the SESE loop canonicalization.

Fix a bug that results in semantically incorrect code.
Uses of the escaping values within the loop body should not be replaced with the newly added phi argument of the new header.

Resolves SR-7765.

@swift-ci  please test tensorflow

@swift-ci please test tensorflow

Tests passed: https://ci-external.swift.org/job/swift-PR-TensorFlow-Linux/395/


⚠ Bofrost.es has degraded performance

In df91cab, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1552 ms

Resolved: Bofrost.es performance has improved in 8764d0a after 306 days, 8 hours, 43 minutes.


Clarify class lifetime in class conversion example

Edited a bit so it doesn't seem like it's a singleton. If you disagree let's find a better wording next week :-)


[Feature request]会议记录功能

Thank you for wanting to share an idea! But before starting, ensure to check if this feature request respects the following requirements:

[ ] It is written in English (I can translate what you say, but issues written in English are easier to read for the other users).
[√ ] There is not already a similar feature request among the open or closed issues.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
"I'm always frustrated when I have to manually transcribe and summarize meeting notes."
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
The alternative solutions I have considered include incorporating a punctuation model and a speaker recognition model, as well as a lightweight model that can run on mobile devices.
Additional context
Add any other context or screenshots about the feature request here.

Can you describe your feature request in more details?


docs.gptr.dev unavailable

The docs at https://docs.gptr.dev/docs have been unavailable for many days now ("This site can’t be reached"; ERR_CONNECTION_RESET). I don't see another reported issue on this, but maybe I missed it.
Will the docs likely be available any time in the near future?

https://docs.gptr.dev/
The above is working for me currently. There is a custom 'page not found error' at https://docs.gptr.dev/docs but https://docs.gptr.dev/docs/welcome works.

I'm not able to access any of those urls with Chrome or Safari.

Interesting. I'm not associated with this site in any way, so can't answer definitively but this does seem like the site is up and accessible for all:
https://downforeveryoneorjustme.com/docs.gptr.dev?proto=https

@nick-youngblut have you tried different browsers? I've verified and the site is online. Could be a local DNS issue or something?

The docs are loading when I try to access them from the different location, so maybe it is a DNS issue.


Update Linux Guide.md

Fixed CTRL+B+D to CTRL+A+D. Never heard of B being used ever...
Fixed a spelling mistake as well.

not even a comment? that's harsh mirai

Boo hoo

Was all explained and discussed in Discord, @appelemac. ¯\_(ツ)_/¯


Update c-api.h to hotwords

c-api add hotwords to modeling-unit and bpe_vocab

Thank you for your first-time contribution!


feat: add fluentd and fluentbit annotations on resourcesets

Q
A

Bug fix?
no

New feature?
yes

API breaks?
no

Deprecations?
no

Related tickets
#931

License
Apache 2.0

What's in this PR?

Add FluentbitSpec.DaemonSetAnnotations and FluentdSpec.StatefulSetAnnotations annotations fields.
Why?

Because these are not configurable now, and I need them to use reloader on these resources.
Checklist

[x] Code meets the Developer Guide
[x] Related Helm chart(s) updated (if needed)

@ahma @siliconbrain I just rebased and re-generated the files to fix conflicts.


Create a new page "Getting started" to help beginners [website]

A few weeks ago, I started learning json:api and , for a while, it was hard to tell what is going on. I had to read some examples two or three times and go back and forth from the specs to the example in order to have a full understanding of the fields and concepts.
That is the case for me, a person that has some experience reading specs. An unexperienced person would find it even harder to learn json:api.
I believe that a "Getting started" page would help more people understand (and use) json:api.
For the navigation bar, I suggest having "Examples", "Specifications" and the new "Getting started" in a dropdown that says "Learn".

I can concur. I stumbled on JSON:API as a beginning backend dev and it is really overwhelming. I have experience in reading RFC's so I can lean on that experience, but the spec isn't really clear to read from top to bottom as it constantly refers to other chapters and semantics. It makes me consider using something like https://github.com/omniti-labs/jsend instead as every future contributor will have to debark on the same journey as me now to learn the daunting spec and will probably turn people away.
Lowering the initial "wall" with a tutorial or "getting started" would vastly help.

Thanks so much for this feedback @XenoBino and @MartenBE! It's important for those of us immersed in the spec to remember to try to see it with "beginners' eyes".  We will prioritize a "getting started" section as we consider a revamp of the site.

Thank you very much. The project in itself is great by the way, really looking forward to using it!
I also found https://howtojsonapi.com/ , perhaps this could be included in the documentation for beginners?


Handle <bind> correctly inside <foreach>

An attempt at fixing #2754
Related to #206 and #575
When processing DynamicSqlSource, evaluate param values in scripting phase and store them in ParameterMapping.
This does not affect RawSqlSource.
Just to be clear, it still is not possible to invoke a method inside a parameter reference
like #{_parameter.mymethod(_parameter.value)}.
It might be possible to accept OGNL expression in a param reference
(e.g. #{${_parameter.mymethod(_parameter.value)}}), but I'm not sure if that's a good idea.
This should not break backward compatibility for normal usages, however, plugins that manipulate internal stuff might be affected.
@emacarron @mnesarco
If this does not seem like the right approach to you, please let me know!

Coverage increased (+0.002%) to 87.315% when pulling e7f76227fcab374e4e0e5b6fef32430212039b39 on harawata:bind-in-foreach into 35262b023de303a8c893d110306d7045616a87bb on mybatis:master.

Hi @harawata , there has been passed too many years since the last time I used or contributed to mybatis. I am afraid I cannot provide any useful nor updated info about this issue. The two-phase processing of dynamic queries was and is a very confusing topic for most users. I remember that there was a branch that process everything in the first pass caching bindings for the second pass... but it was never merged. I am talking about a very ancient history here.

Thank you for the reply, @mnesarco !
It's a shame that you no longer use MyBatis, but your contributions live on. 🚀
I try not to bother you from now on :)
It sounds like the branch took a similar approach to this PR, but you don't recall the reason why it wasn't merged, do you?
I hope I don't miss some undesirable side effect caused by this.
Happy holidays! 🎄

It was long long time ago and I cannot recall the details, but I think it was not discussed enough and there were possible performance implications. I was trying to solve the same problem with bind tag. The basic idea was to implement bindings as function calls in the first phase that cache the output and assign a generated key to use at second phase, I did a POC but unfortunately I have no access to that code anymore.
I started using JPA because of work requirements some years ago and I ended up implementing an internal tool to support native and jpql dynamic queries similar to Mybatis :D ... JPA has evolved to support also Stored Procedures and very felxible mapping scenarios... But I still miss some mybatis tricks....
BTW, java17's Records are quite sexy but not directly supported by JPA. Does current mybatis supports Record mappings with all the usual magic?
Happy Holidays!

Writing a custom tool for JPA sounds like you 😆
I couldn't think of any scenario that performs worse because of this change.
I actually expect the new <foreach> to perform even better when there are many iterations, but I should probably do some profiling.
Regarding the Records, SELECT should work the same way as classic immutable classes.
But assigning generated keys (i.e. useGeneratedKeys) is not supported. It seems technically difficult as the Records does not allow field value modification even with reflection.
With some DBs, as a workaround, it is possible to obtain new Record instance(s) with generated keys using syntax like INSERT ... RETURNING.

Yeah generated keys are usually problematic. I am using a dedicated service for generated keys in many projects. And I am considering TSID[1] as a general approach. Vlad Mihalcea posted an interesting article about that[2].
[1] https://github.com/f4b6a3/tsid-creator
[2] https://vladmihalcea.com/uuid-database-primary-key/
But this is off topic. :D

I did a quick profiling with JMH.
<insert id="insertMultiRow">
  insert into person (
    id, name1, name2, name3, name4, name5, name6, name7, name8, name9
  ) values
  <foreach item="item" collection="list" separator=",">
    (#{item.id}, #{item.name1}, #{item.name2}, #{item.name3}, #{item.name4},
     #{item.name5}, #{item.name6}, #{item.name7}, #{item.name8}, #{item.name9})
  </foreach>
</insert>

Only 500 items in the list.
// 3.5.11
Benchmark                                             Mode  Cnt         Score       Error   Units
BenchmarkMybatis.insertMultiRow                      thrpt   25        11.968 ±     0.325   ops/s
BenchmarkMybatis.insertMultiRow:·gc.alloc.rate       thrpt   25       258.661 ±     7.381  MB/sec
BenchmarkMybatis.insertMultiRow:·gc.alloc.rate.norm  thrpt   25  22661054.886 ± 81879.956    B/op
BenchmarkMybatis.insertMultiRow:·gc.count            thrpt   25       398.000              counts
BenchmarkMybatis.insertMultiRow:·gc.time             thrpt   25       348.000                  ms

// with this PR
Benchmark                                             Mode  Cnt         Score       Error   Units
BenchmarkMybatis.insertMultiRow                      thrpt   25        12.018 ±     1.310   ops/s
BenchmarkMybatis.insertMultiRow:·gc.alloc.rate       thrpt   25       128.307 ±    13.920  MB/sec
BenchmarkMybatis.insertMultiRow:·gc.alloc.rate.norm  thrpt   25  11196004.604 ± 18771.486    B/op
BenchmarkMybatis.insertMultiRow:·gc.count            thrpt   25       760.000              counts
BenchmarkMybatis.insertMultiRow:·gc.time             thrpt   25       766.000                  ms

Throughput is pretty much the same and allocated memory is reduced significantly.
I plan to merge this soon. 🤞
@kazuki43zoo Please let me know if you noticed anything (even after this PR is merged).

I am going to have to investigate the impact on mybatis-velocity and mybatis-thymeleaf first.

hello @harawata , is there any benchmark about these mybatis velocity, thymeleaf and freemarker template plugins? Can I think that using the default mybatis solution will always be the most performant? sorry if the question is not related to the issue but we are studying mybatis to use in our new projects

Regarding the other language drivers...

mybatis-velocity is not affected by this change
mybatis-thymeleaf and mybatis-freemarker need a little adjustment. I'll open PRs after this PR is merged.

@GeorgeSalu ,
I don't know any benchmark comparing language drivers.
In terms of performance, the built-in XML language driver may have some advantages, but I am not sure if it "always" performs better than the others.
Performance depends on various factors and it's best to profile your application under the conditions close to the actual usage scenario.

As this change affects mybatis-freemarker and mybatis-thymeleaf, the target milestone is set to 3.6.x.
This is not a done deal, so further discussion is welcome.


Corporate Design issues

Hey,
The main font doesn't seam to be the corporate font, which is Inter (https://fonts.google.com/specimen/Inter?query=inter) could you guys change that up? Could we also make the favicon and URL a bit more API3 focused? The URL could be api3tracker.io or something similar and for the favicon I can send you the files if needed.
These changes would help to better convey the corporate image.
Thanks

Thanks for the quick reply, I will speak to Midhav about the URL.


Your work is very interesting, can you provide relevant datasets?

Your work is great, but I can't find the relevant data set, the link is broken, can you provide the original image and annotated label? My email is<EMAIL_ADDRESS>Thank you very much！

Hi, on our end the link to the sample data in the README works.
Navigate here:
https://figshare.com/articles/dataset/cellos_data_zip/21992234
and then there is a download button which has the direct download link which you can wget or such:
https://figshare.com/ndownloader/files/39032216
I did find that I needed to use 7z on linux to unzip it:
https://www.7-zip.org


Hostname in /etc/hostname is incorrect

BurmillaOS Version: (ros os version)
v1.9.1-rc1
Where are you running BurmillaOS? (docker-machine, AWS, GCE, baremetal, etc.)
Nutanix AHV
Which processor architecture you are using?
amd64
Not sure yet it if this is bug on Burmilla or just issue on way how we deploy these servers but I noticed that after a while /etc/hostname value ends up to be "burmilla"
$ hostname && cat /etc/hostname
olli-test.lab.local
burmilla

Have seen this only on latest RC so far. Changed between it and latest release version can be seen on https://github.com/burmilla/os/compare/v1.9.0...v1.9.1-rc1

This is most probably same than https://github.com/rancher/os/issues/2759 so it is old issue.
@h8liu @KebinuChiousu can you investigate this one? It might be that root cause is just too old dhcpd (which comes from os-base). If that is case then we shouldn't be able to reproduce it on v2.0.0 beta versions because there OS base is updated. Unfortunately we cannot update os-base to v1.9.x (or at least to latest version) because on that combination boot failed to "Kernel is too old" error.

How to reproduce this? Is this on an upgrade or a new install?
I have many instances upgraded from rancher os to burmilla 1.9.1, but I do not see these issues.

My ones was all new installation. Reproduce guide looks to be available on https://github.com/rancher/os/issues/2759#issuecomment-501312149


Add a !changelog command

Not sure how far back it would display the changelog for

This issue was moved to belak/seabird-plugins#16


Support fixed string argument with instance_eval

Marking as draft for now, the code works but I'm not that satisfied with how it looks.
Transform instance_eval with a fixed string into a block at compile time, similar to the eval macro handling.

Moved the code to macros.rb and shared as much code with the eval macro as possible. This should be ready now


Eslint complaining about React not imported when using JSX

I updated React to v17.0.0 and React-Scripts to v3.4.4, then I ran the npx react-codemod update-react-imports to remove all import React from react.
I added the
{
  // ...
  "rules": {
    // ...
    "react/jsx-uses-react": "off",
    "react/react-in-jsx-scope": "off"
  }
}

to my eslint configuration, however React is failing to compile due to

Line 102:9:   'React' must be in scope when using JSX  react/react-in-jsx-scope

I've noticed that eslint is complaining about this:
const drawer = (

                <Link to="/dashboard" onClick={handleDrawerToggle}>
                    <Grid container alignItems="center" justify="center">
                        <Grid item>
                            <Logo width={155} height={32} style={{ margin: 20 }} />
                        </Grid>
                    </Grid>
                </Link>

            {userState.referral && (

                    <Button
                        variant="contained"
                        color="secondary"
                        className={referralClasses.button}
                        onClick={handleReferralButton}
                        startIcon={<RedeemIcon />}
                    >

                            <Typography variant="body1">{t('Win $10 discount!')}</Typography>
                            <Typography className={referralClasses.subText}>
                                {t('Invite your friends and earn on their first order')}
                            </Typography>

                    </Button>

            )}
            <List>
                <MenuItem name={t('Activity')} path="/dashboard" src={activity} onClick={handleDrawerToggle} />
                <MenuItem name={t('Send money')} path="/dashboard/sendmoney" src={money} onClick={handleDrawerToggle} />
                <MenuItem name={t('Orders')} path="/dashboard/orders" src={order} onClick={handleDrawerToggle} />
                <MenuItem
                    name={t('Recipients')}
                    path="/dashboard/recipients"
                    src={recipients}
                    onClick={handleDrawerToggle}
                />
                <MenuItem name={t('Coupons')} path="/dashboard/giftcards" src={gift} onClick={handleDrawerToggle} />
                <LanguageMenu />
            </List>

    );

Which then I use the drawer const in the return:
return (
        <DrawerLayout open={dashboardState.open} openDrawer={openDrawer} handleDrawerToggle={handleDrawerToggle}>
            {drawer}
        </DrawerLayout>
    );

If I import React in this file, then it compiles successfully, but I think it should compile anyway

As I know, supporting React 17 with a new JSX transform will come in CRA v4, since removing React from scope requires the new JSX transformation which is not available in v3.
For override eslint config, you probably need to pass EXTEND_ESLINT=true yarn start to make CRA use your provided config. However, I believe we will see a compilation error ReferenceError: React is not defined because lack of the new JSX transform.

Follow the steps mentioned in https://github.com/facebook/create-react-app/issues/9850 to fix the issue

What's happening (I think) is that Eslint is configured by CRA's webpack config to use cached Eslint checks, so even if you change the Eslint rules, it will continue to give you the same error (even with EXTEND_ESLINT set to true) because it's not even checking the file again.
If you go to line 345 of node_modules/react-scripts/config/webpack.config.js in your project, you can change cache: true to cache: false. This should fix it and cause Eslint to run again with your updated configuration, which will eliminate the error.
I think you can also just change your file where it's showing you you have an error. Add or remove anything, and it should relint the file. But I think it's probably easier to just turn Eslint caching off for now, since if you have it on and your files end up in a state that's already been linted, Eslint will go back to using the cache and bring back the errors that would have been there for your configuration when you first linted it.

The new JSX transform that allows you to skip importing React is not available in Create React App v3. It is supported in v4, which is currently available in alpha and will be officially released very soon.


Archive this repository?

As discussed on the call, since upstream PRs have been opened (almost), does it make sense to archive this repo? Any changes to the proposal that deviate from the original proposal E can take place in the PRs

I'd lean towards leaving it open until the PRs are reviewed by OCI and merged, just in case they have a "back to the drawing board" level of change request. Hopefully that doesn't happen, and if we did archive, we could always reopen the repo if needed.


dat.stat on directories doesn't reflect changes of children

Operation System: Ubuntu 16.04
Beaker Version: 338d856
Steps to reproduce:

Create a new directory
create a file inside the new directory a few seconds later

Run dat.stat on the directory.
Expected result:
mtime equals mtime of the new file.
Actual result:
mtime is the creation time of the directory.

Ah, I hadn't considered this case. This may need to wait until some upstream changes to the dat stack.


Crash on startup

log: https://mclo.gs/ehQz5Vb
not sure what exactly is causing this

The log is truncated, please post crash report

crash-2024-05-17_15.49.19-client.txt

It should avoid the crash, but I still don't know what caused it. Can you download the latest release, and post crafttweaker.log here?


Project manager crashes on Add Asset when no Silo created yet

Issue
The Project Manager crashes whenever "Add Asset" is clicked when no silo is currently active (when no created silo is available)

We're working on a fix for this in our own repository: https://github.com/Colorbleed/core/pull/16

Just ran into this issue. Should we see if we can update the core with your fork?

Looking at the files altered in https://github.com/Colorbleed/core/pull/16 it should be a trivial thing.

Think it's better than merging the fork?

If this is the only problem I would keep it contained and I can create a new PR for this from our fork.
I can take a look how much changes our fork might bring just to sure

Opened a PR to start discussing what's changed, maybe we can start merging soon anyway: https://github.com/getavalon/core/pull/321


feat(lsp): add better hint for function

Example hover hint for the starknet deploy syscall:
fn deploy_syscall(class_hash: core::starknet::class_hash::ClassHash, contract_address_salt: core::felt252, calldata: core::array::Span::<core::felt252>, deploy_from_zero: core::bool) -> core::result::Result::<(core::starknet::contract_address::ContractAddress, core::array::Span::<core::felt252>), core::array::Array::<core::felt252>>

This change is

From my tests this does not work at all in VSCode

It does work on helix, but yeah cairo syntax highlighting would be better. I'm not sure how it would act though as there are backticks everywhere

Tried it it's indeed way better @mkaput  thanks !


make status icons unshaded

About the PR

this was my original intent it just was shitty and broke all the time apparently
here's me doing it correctly (wowzers)
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

fix: Job icons now ignore lighting.

wouldn't this make someone with a sechud able to see other people in the dark?

wouldn't this make someone with a sechud able to see other people in the dark?

Sechud wallhacks real

https://github.com/space-wizards/space-station-14/issues/18639 ?

https://github.com/space-wizards/space-station-14/issues/18639 ?

Cring


The Resource Scheduling Menu Item cannot be found

A month or so ago I was able to follow these instructions and tested the functionality.
I cannot find the Resource Scheduling Menu on any of the Project Service Automation apps nor on the Non Profit Accelerator Apps.
Consequently, I cannot run the Setup Wizard.
Where has it gone to?

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

ID: a7ca00a3-01ec-53a9-b475-f5ddc69912c3
Version Independent ID: 00825349-7970-c4c7-f129-623db2f1dc2f
Content: Overview of Universal Resource Scheduling (Dynamics 365)
Content Source: ce/common-scheduler/schedule-anything-with-universal-resource-scheduling.md
Service: dynamics-365-customerservice
Technology: common-scheduler
GitHub Login: @krbjoran
Microsoft Alias: krbjoran

I see that the Universal Resource Schedule solution was updated on Friday.  Lo and behold!  This missing menu option has reappeared!
The issue has been resolved.


Grid search with SSPOC

Hello, as I have seen in example pysensor supports sklearn based parameters optimization. In the example, it is shown how the parameter tuning is performed for SSPOR. However, I would like to perform it for SSPOC, but for now I was unable to do so. At the end of optimization it throws me an error: ValueError: w must be a 1D vector; received a vector of dimension 0  which is implemented in pysensors\utils\_optimizers.py. Furthermore, scores which are calculated during grid search are all nan values.
I am attaching simple code snippet in case anyone could help. I hope I will not have to code grid search manually.
model_clf = LinearDiscriminantAnalysis()
model_cs = SSPOC(classifier=model_clf)

param_grid = {
    "basis": [ps.basis.Identity(), ps.basis.SVD(), ps.basis.RandomProjection()],
    "basis__n_basis_modes": [1,2,3,4,5],
    "n_sensors": [5,2,3]
}

cross_val = RepeatedStratifiedKFold(n_splits=5, n_repeats=3, random_state=1)
search = GridSearchCV(estimator = model_cs,
                        param_grid = param_grid,
                        scoring = "balanced_accuracy",
                        n_jobs = -1,
                        cv = cross_val,
                        refit = True,
                        verbose = 0,
                    )

search.fit(X_train, y_train)

print("---------------------------------------")
print("Best parameters:")
for k, v in search.best_params_.items():
    print(f"{k}:  {v}")
print("")

I'll look into this and get back to you in the next few days.

Perfect, thank you! If you need anything else (data, more code etc.) let me know.

I was able to reproduce the error, but I am not yet sure what the cause is. It might take me some time to get to the bottom of this. If you are blocked in the meantime, I'd recommend using a tool like Tune for hyperparameter optimization.

@janezlapajne, try downloading the latest pysensors release—I just pushed a minor fix—and then replacing
search.fit(X_train, y_train)

with
search.fit(X_train, y_train, refit=False)

I think what's going wrong is the SSPOC model is failing to actually refit the classifier for new parameter combinations, and so it passes measurements of varying dimension to the same fixed classifier (SSPOC typically picks a different number of relevant sensors for each set of hyperparameters).

Hello, thank you for your response. I installed a new version and the score is now available. Grid search seems to accurately find the best set of hyperparameters.
Also, thank you for a recommendation of the ray tune library. I personally use it when the set of hyperparameters is extensive enough. In case of simple tuning tasks and smaller datasets, I usually just directly use sklearn grid search (I find it easier to use). Do you think I should always just use tune? Anyways, if you have any additional recommendations about the tuning, I will really appreciate it! For the time being, I have an article on my bucket list, titled: PySensors: A Python Package for Sparse Sensor Placement, for which I am still waiting for the time to be able to read it.

I think you've got it right—use sklearn grid search when the search space is small enough that grid search is feasible and use ray tune when the search space is larger. I'd recommend taking a look at section 5 of our paper for some practical tips (only a few paragraphs long).


Two actions with same Http attributes result in ambiguity on ubuntu

uname -a
Linux N46JV 4.10.0-37-generic #41-Ubuntu SMP Fri Oct 6 20:20:37 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
dotnet --version
2.0.0
dotnet new webapi
Add 2 actions in a controller with the same attribute (HttpGet for example)
[HttpPost]
public Product Action4([FromForm]Product product)
[HttpPost]
public Product Action5([FromBody]Product product)
build the project, run the project and make http request.
fail: Microsoft.AspNetCore.Mvc.Internal.ActionSelector[1]
Request matched multiple actions resulting in ambiguity
... Microsoft.AspNetCore.Mvc.Internal.AmbiguousActionException: Multiple actions matched.
They say it works on Windows platform correctly.

Moved to https://github.com/aspnet/Home/issues/2241


Declarative serializer

This PR adds a declarative JSONAPISerializer. The goal of this addition to have a more declarative approach to what users want to serialize. This way we can easily see what we want to serialize and how. In the long run this will allow us to have more flexibility.
The JSONAPISerializer has one "public" method, def serialize(self, resources) and a few helper methods to serialize the individual pieces.
For someone to use the new JSONAPISerializer they would need to define a serializer for a specific sqlalchemy model.
Example:
# User defines their model that inherits from sqlalchemy declarative base.
class Person(Base):
    """Simple person model."""

    __tablename__ = 'people'
    id = Column(Integer, primary_key=True)
    first_name = Column(String(50), nullable=False)
    last_name = Column(String(50), nullable=False)
    username = Column(String(50), unique=True, nullable=False)
    password = Column(String(50), nullable=False)

# User defines new serializer describing how they want to serialize a person:
class PersonSerializer(serializer.Serializer):
    fields = ['id','first','last','email']  # Attributes we want serialized.
    model = Person  # The model mapping to the serializer.
    dasherize = True  # Specify model names such as first_name to be serialized as 'first-name'

Someone could use the PersonSerializer as such:
# Some GET view in web framework such as Flask
def get_resource(db_id):
    # Fetch some resource from database.
    some_sqlalchemy_model_resource = db.query(Person).get(db_id)
    person_serializer = PersonSerializer()
    data = person_serializer.serialize(some_sqlalchemy_model_resource)
    return flask.jsonify(data), status_code

This looks good now. Thanks for your work.


feat: include trace id in auctioneer client

Co-authored-by: Nick Rohn<EMAIL_ADDRESS>Thank you for submitting a pull request to the auctioneer repository!
We appreciate the contribution. To help us understand the context for your pull request, please fill out this template to the best of your ability.
Please make sure to complete all of the following steps

Check the Contributing document on how to sign the CLA and run tests.
Submit your PR to this repo.
Submit an accompanying PR Review Request referencing this PR so the Diego Team knows to review your pull request.

Note: this PR will not be reviewed unless you submit the PR Review Request.

Please provide the following information:
What is this change about?

Please describe.

What problem it is trying to solve?

Please describe.

What is the impact if the change is not made?

Please describe.

How should this change be described in diego-release release notes?

Something brief that conveys the change. See previous release notes for examples.

Please provide any contextual information.

Include any links to other PRs, stories, slack discussions, etc.

Tag your pair, your PM, and/or team!

It's helpful to tag someone on your team or your team alias in case we need to follow up later.

Thank you!

Closing this PR in favor of new d-tracing PR


Issue with "Microsoft Teams" in @site/docs/reference/integrations/microsoft-teams.md

Describe the problem
Under the send-notification section.  You can add that you can specify an email for the "team_member" flag of that command.

Page: Microsoft Teams
Source: https://github.com/demisto/content/blob/master//Packs/MicrosoftTeams/Integrations/MicrosoftTeams/README.md

Screenshots

Environment

OS: [e.g. Windows]
Browser: [e.g. chrome, safari, firefox..]
Browser Version:

Suggested fix

@Itay4 for visibility


[Coverity CID :203493]Control flow issues in /soc/arm/st_stm32/stm32h7/soc_m7.c

Static code scan issues seen in File: /soc/arm/st_stm32/stm32h7/soc_m7.c
Category: Control flow issues
Function: stm32h7_m4_wakeup
Component: Other
CID: 203493
Please fix or provide comments to square it off in coverity in the link: https://scan9.coverity.com/reports.htm#v32951/p12996

from 141b6500c9c  #17100


only use asgiref.typing for typing

make asgiref a dev dependency since we only need it for static type checking, and don't need it in the runtime docker image.
had to rewrite the type annotations as strings though.
we'll see how far this goes, since I might need the typing at runtime at some point.

ref: https://vickiboykis.com/2023/12/11/why-if-type_checking/


processed data

Hello,I can't open the processed data URL in paper "High-throughput Pore-C reveals the singleallele topology and cell type-specificity of 3D genome folding" (http://www.tgsbioinformatics.com/HiPore-C)
How can I acquire the processed Pore-C data?（like .matrix file）?
Thanks a lot!!

Due to a cyber-attack last year, our management decided to shut down www.tgsbioinformatics.com as a precaution, with an uncertain timeline for its return. However, we've ensured the availability of our processed data elsewhere: alignment data is accessible on GEO (accession number GSE202539), and we've uploaded contact matrix and methylation data to Zenodo (https://zenodo.org/records/10822184).


[Feature] Update to authlib >= 1.0

Hello, authlib has released new major version with some breaking changes, update this project dependencies please.

why not, 0.1.10 released, enjoy

Thanks!


Trie's handing of word list that contains both པར་(photo) and པར་(particle)

པར་ meaning photo with a noun POS tag and པར་ with a particle POS tag with an affixed particle hold the same value in the trie. When a word list contains instances of both the noun and the particle, the trie only holds the data of the last one entered.
–Change token objects so that all the data goes into a dict containing everything as value pertaining to the first sense and give it an int (0, 1, ...) as key, stating which is the preferred sense. Sense 0 would be preferable to sense 1, and so on.
–Later, add things like probability calculated from context to decide which sense is correct.
–This would be calculated on the basis of the list of tokens. Each token would have all the possible senses of the entry. In this context, a sense means all the information (affixation, pos, freq, etc. pertaining to an entry).

fixed in 067081b4646af354cbf15b5d45731842dec44d08
Instead of giving a score to each alternative meaning, the attributes pos, lemma and freq are copied from the meanings attributes into the Token attributes of the same names. This is how default meaning is chosen.


Show example of local function calling working

you can try this one. It works for me with ollama and llama 3.1
https://github.com/vavjeeva/SKAgentLocalFunctionCalling/

Local function calling also works with the Ollama connector when used with models that support function calling


cross dataset transfer and  domain generalization

where can i find the cross dataset transfer and  domain generalization result.

For now the code doesn't contain the configuration for this ablations. I kindly suggest checking the CoOp repo, which this code is based on: https://github.com/KaiyangZhou/CoOp for this type of experiments. As time allow, I will look into updating this code too at a later point.


Particle sizes are larger on mobile devices

Describe the bug
A clear and concise description of what the bug is.
On this repo:
https://github.com/crutchcorn/gitshark-website/commit/67af916535b42bc235751b139ccf6c9fde2b452e
When loading from desktop, I get the following visuals of the various sizes of particles:

However, when I use Chrome's "Toggle Device Toolbar" (or even use a mobile device [Samsung S10+ using Chrome]) and refresh the page, I get the bubbles to be much much larger with the same config settings:

I would expect these particle sizes to be the same. This is the config I'm passing to the tsParticles:
https://github.com/crutchcorn/gitshark-website/blob/67af916535b42bc235751b139ccf6c9fde2b452e/src/components/shark-background/shark-background.jsx#L102-L175

Posted prematurely. Editing right now

For a temporary fix you can disable the retina detect option. I'll work on this as soon as possible

tsParticles 1.13.6 have this fix, react-particles-js will be updated with this fix too in 3.2.1.


Hide original image url

Hello!
It possible hide (encrypt) original image url.
For example, if i add watermark (or blur filter) for preview, user can extract original image url and downloaded it.
I want instead of such url:
http://localhost:8080/signature/rs:fill/w:500/h:500/g:sm/blur:2.0/el:0/plain/https://www.example.com/large_original_without_watermark.png
something like this
http://localhost:8080/signature/rs:fill/w:500/h:500/g:sm/blur:2.0/el:0/plain/encrypted_original_image_path.png
or this
http://localhost:8080/encrypted_options_and_original_image_path.png
Or what are the suggestions that the user can not see and download the original image?

Hey Artem!
Well, there's no such feature, but here're some things you can do to hide the full source URL:

If you store your images in some kind of storage (S3, GCS, Azure Blob Storage, etc), you can make the storage private and use imgproxy's integration with it.
If the host of your source URLs is always the same, you can use IMGPROXY_BASE_URL to hide the host.
Finally, you can create some endpoint on your side that checks User-Agent and redirects to the source image URL.

Of course, you can also make a PR with this feature ;)

@Yegorov my setup in #714 may help

Encrypted source URLs support was added to imgproxy Pro v3.8.0


MetaGame Strategy Stuff

Just dropping this here until there's a better place for it.

 A grassroots initiave led by and for our players. Together we are creating the future.
Throughout history many of us were suppressed due to intrenched interests, regulation, and barriers to entry. This is no more. DAOs enable anyone anywhere to rally together around original ideas. DAOs are (relatively) cheap to setup, manage, and run globally from day 1. MetaGame is an open source innovation engine that brings together all the tools and expertise you need to launch a DAO for your internet native community, project, and/or business.

Business / Token Models
MetaGame imagines a universe of guilds (DAOs with a purpose) that are aligned with the MetaGame manifesto. Different types of guilds will produce different types of resources and services. For example, a podcast or media guild would be producing media whos value is derived by the amount of attention people are willing to pay towards that media. A dev shop guild would be producing apps and tools who's value is determined by how many projects or people use their things. Each guild would have it's own token which can be redeemed for the services of that guild. Guilds would offer a portion of their tokens to the MetaGame DAO in order to participate in the MetaGame Universe.
The MetaGame DAO would then use those tokens as collateral to back SEEDs, the meta-token of the MetaGame. SEED holders can then redeem their SEEDs for the MetaGame DAO's underlying collateral or use their tokens to vote on how the MetaGame should operate. In the later case, the MetaGame DAO could vote to buy back SEEDs, sell underlying collateral, or mint more SEEDs. These actions would need to be taken in the spirit of realizing the MetaGame manifesto. For example, all MetaGame SEED holders could vote to mint new SEEDs to give to a new dev team building a new feature for the MetaGame (VR octopi game, obviously). Taking this action would dilute existing SEED holders, but if the new feature created more value than it cost, this could end up being a net win for all parties involved, esp the MetaGame.
There are two ways to get SEEDs:

contribute tokens to the MetaGame DAO to provide collateral for all SEED holders.
contribute work to the MetaGame DAO to build the MetaGame infrastructure and community.

Show me the money!
While the cryptoeconomic alignment of SEEDs is cute from a theoretical perspective, one does not simply change the game. It's going to require a lot of work. There's only so much time in the day, so we need a way to support and incentivize early contributors with something more tangible than hopes and dreams. This section explores what that might look like.
Swag

Everyone likes swag
Acts as marketing as well as revenue
Easy to shill
MetaFactory is laying down the foundations for this

Personal Tokens & DAOs

Make it easy for people to create characters (tokens/DAOs) and then attribute reputation, rewards, and badges.

1 Click Guild

Make it easy for people to launch their own Guild to start participating in the MetaGame.
This could be a deployment fee for using a prebaked DAO template and/or premium support from the MetaGame fam (weighted by reputation) to start setting things up
Eventually MetaGame could evolve into a virtual company setup that's low cost, fast, opensource, and global: co-operative, gamification for virtual companies. This would help position DAOs as native internet companies; the next step in better, faster, stronger business setup. This unlocks better business models and value transfer for global consumers and brands, increasing audience and community development. As human interaction across the internet is accelerating you need the right tools for the job. You need MetaGame DAOs.

In Game Economies

Premium subscriptions that allow members to access extra goods and services.
NFTs that grant badges to early contributors as well as a marketplace to create and trade MetaGame NFTs.
Leaderboards for contributors (time and money) to gamify the game
Leasing plots for premium placement for ads and things in the MetaGame (shill! shill!)
 The cost of these to the MetaGame would be X, but they could be sold for 2 or 3 X.
Random rewards! Randomly airdrop SEEDs, NFTs, or other fun prizes to players based on reputation. It would be somewhat randomized, but within a normal distribution so that having more SEEDs/reputation will in general get you more random rewards.

Reputation

achievement minting as a way to verify work and establish reputation
in a game where people hire individuals and guilds to do work, having reputation will allow players to earn a higher reward for their contributions
raid ratings: a rating system and set of analyists who will review raid proposals and determine their potential impact. Then investors could buy SEEDs and pledge them to the raids. In return, investors get a percentage of the loot from raids. This is where the original term "venture captial" came from back in the days of whaling ships and spice runs.
Onboarding: incentivize onboarding with progressive reputation and rewards for engagement. Examples might include player setup completed, basic education completion, first contact, guild activity, etc... This incentivizes people to go through the boring hoops of getting setup (esp navigating the terrifying terminology and UX of crypto). It also means that once players are onboarded they will be able to provide more value than someone who simply signs up. This could be incorporated into a reputation system where as you earn more experience points you'll have a higher value for raids and/or when people want to hire you for things.

Governance
These governance mechanisms require people to buy and use SEEDs more than vanilla voting:

Futarchy campaigns using SEEDs
Conviction voting using SEEDs

Education and Events

Meet-ups are already happening, but need a more formal structure. MetaGame could really help with this to coordinate and deploy talented amazing people to help make events more interesting and engaging.
The MetaGame is going to attract a lot of people with skills. They could offer to teach/mentor others in order to earn SEEDs. This has the advantage of attracting talent to the ecosystem as well as developing talent within the ecosystem (thus raising the value of the MetaGame overall).

Next Steps
The above mentioned ideas are just a shmorgishboard of things that were in the Discord channels that I organized and reframed in the context of a rough outline of what one day might be a plan (for something great!). Not sure if these ideas have already been discussed, and if so which should be removed and what's missing that should be added. Overall, just wanted to make sure all the effort and awesomeness that went into the chats didn't get lost in the shuffle. Also wanted to distill the core ideas of the MetaGame into a doc because I like docs.
As always, what do you guys think? Is this more or less in line with what you're thinking? Is this all just craziness and nonsense? Please let me know!
We can then drop the lame stuff and improve upon on the cool stuff :)

This page has moved!
https://metagame.trydiscourse.com/t/metagame-strategy-stuff/28

https://forum.metagame.wtf/t/metagame-strategy-stuff/28
Close issue?


Pass attemptToFulfill directly to Future

Just a minor change if you want.

Ohhhh... so that's the point!


Exclude common padding files from torrent_files

[X] I have checked the existing issues to avoid duplicates
[X] I have redacted any info hashes and content metadata from any logs or screenshots attached to this issue

Is your feature request related to a problem? Please describe
BEP47 (padding) and BEP52 (V2) support adding padding files to torrents to ensure that files start at piece boundaries and pieces do not contain parts of more than one file. For backwards compatibility, these padding files are included in the torrent but should be ignored by modern clients and treated as full of all zeros.
Describe the solution you'd like
Do not store file information for these padding files.
Describe alternatives you've considered
Ignoring the padding files when viewing a torrent's files in Bitmagnet.
Additional context
Padding files and extended file attributes: http://bittorrent.org/beps/bep_0047.html :

The recommended path is [".pad", "N"] where N is the length of the padding file in base10.

e.g.:
.pad/1
.pad/2
The BitTorrent Protocol Specification v2 http://bittorrent.org/beps/bep_0052.html :

For interoperability with BEP 3 a torrent can be created to contain the necessary data for both formats. To do so the 'pieces' field and 'files' or 'length' in the info dictionary must be generated to describe the same data in the same order. Since the old format did not align files to piece boundaries a multifile torrent must use BEP 47 padding files to achieve identical alignment.

Forgot to mention this from BEP47:

attr
A variable-length string. When present the characters each represent a file attribute. l = symlink, x = executable, h = hidden, p = padding file. Characters appear in no particular order and unknown characters should be ignored.

The padding files should be straightforward to identify with this.


remove overviews

 [GEO BON] 1.x Verbesserungen bei Overviews

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

105 of 125 (84.0%)  changed or added relevant lines in 3 files are covered.
6 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.01%) to 84.109%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

services/src/datasets/external/netcdfcf/mod.rs
5
6
83.33%

services/src/datasets/external/netcdfcf/overviews.rs
39
48
81.25%

services/src/handlers/ebv.rs
61
71
85.92%

Files with Coverage Reduction
New Missed Lines
%

services/src/server.rs
1
66.47%

services/src/handlers/ebv.rs
5
79.33%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
35192

Relevant Lines:
41841

💛  - Coveralls

bors merge


Cannot find module './lib/aws'

I think I've followed all the steps in ember-cli-deploy-s3 and here.
I've successfully provisioned a tier in aws but when it comes to deploy I get this stack trace.
Cannot find module './lib/aws'
Error: Cannot find module './lib/aws'
    at Function.Module._resolveFilename (module.js:327:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:355:17)
    at require (internal/module.js:13:17)
    at Object.<anonymous> (/Users/miguelcamba/code/own/ember-power-select/node_modules/ember-cli-deploy-elastic-beanstalk/node_modules/aws-sdk/index.js:2:18)
    at Module._compile (module.js:399:26)
    at Object.Module._extensions..js (module.js:406:10)
    at Module.load (module.js:345:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:355:17)
    at require (internal/module.js:13:17)
    at Object.<anonymous> (/Users/miguelcamba/code/own/ember-power-select/node_modules/ember-cli-deploy-elastic-beanstalk/lib/elastic-beanstalk-deploy-plugin.js:8:25)
    at Module._compile (module.js:399:26)
    at Object.Module._extensions..js (module.js:406:10)
    at Module.load (module.js:345:32)
    at Function.Module._load (module.js:302:12)

In case it makes a difference, the app I'm trying to deploy is actually the dummy app in an addon, so everything is open source in case it helps.
 I wonder if there was a bad publish of the npm package?

Unsure, I haven't tried since. Either way this is ~18 months old. Let's close it

👍


Add checkbox option ("never show again") to SimpleDialog.

Add checkbox option ("never show again") to SimpleDialog, that is hidden when no text is set.

Hi,
this pull request adds a feature that's too specific.
So I can't merge it.
We intentionally avoid specific use cases (e.g. dialogs with input fields).
The library intents to offer similar basic features as AlertDialog.
A checkbox doesn't meet the criteria.
For specific requirements the library offers setup of custom view.
Or you can create subclasses with adjustments in your app project.


Cloud Storage: Overflow error: Python int too large to convert to C long from blob.py

Thank you for reporting an issue to google-cloud-python!
If you are reporting an issue or requesting a feature, please search the
existing open and closed issues to see if there is already work being done.

https://github.com/GoogleCloudPlatform/google-cloud-python/issues
http://stackoverflow.com/questions/tagged/google-cloud-python

If you can provide us with as much of the following information as possible it
will help us identify the cause of your issue more quickly.

Specify the API at the beginning of the title (for example, "BigQuery: ...")
General, Core, and Other are also allowed as types

OS type and version
Microsoft Windows [Version 6.1.7601]

Python version and virtual environment information python --version
2.7.13

google-cloud-python version pip show google-cloud, pip show google-<service> or pip freeze

google-cloud-storage==1.8.0

Stacktrace if available

Traceback (most recent call last):
  File "C:/Dev/Python/widdler/widdler.py", line 605, in <module>
    sys.exit(main())
  File "C:/Dev/Python/widdler/widdler.py", line 593, in main
    result = args.func(args)
  File "C:/Dev/Python/widdler/widdler.py", line 408, in call_upload
    uploaded_files = b.upload_workflow_input_files(args.wdl, args.json)
  File "C:\Dev\Python\widdler\src\SingleBucket.py", line 189, in upload_workflow_input_files
    self.upload_files(files_to_upload)
  File "C:\Dev\Python\widdler\src\SingleBucket.py", line 107, in upload_files
    self.upload_file(f, f.replace('\\', '/'))
  File "C:\Dev\Python\widdler\src\SingleBucket.py", line 91, in upload_file
    blob.upload_from_filename(source_file_name)
  File "C:\Miniconda3\envs\Widdler\lib\site-packages\google\cloud\storage\blob.py", line 992, in upload_from_filename
    size=total_bytes)
  File "C:\Miniconda3\envs\Widdler\lib\site-packages\google\cloud\storage\blob.py", line 946, in upload_from_file
    client, file_obj, content_type, size, num_retries)
  File "C:\Miniconda3\envs\Widdler\lib\site-packages\google\cloud\storage\blob.py", line 867, in _do_upload
    client, stream, content_type, size, num_retries)
  File "C:\Miniconda3\envs\Widdler\lib\site-packages\google\cloud\storage\blob.py", line 676, in _do_multipart_upload
    data = stream.read(size)
OverflowError: Python int too large to convert to C long

Also, additional output from my debug console window:
Connected to pydev debugger (build 173.4674.37)
Error while evaluating expression: if (size ==<PHONE_NUMBER>)
Traceback (most recent call last):
  File "_pydevd_bundle\pydevd_cython_win32_27_64.pyx", line 172, in _pydevd_bundle.pydevd_cython_win32_27_64.handle_breakpoint_condition
  File "<string>", line 1
    if (size ==<PHONE_NUMBER>)
     ^
SyntaxError: invalid syntax
Error while evaluating expression: if (size ==<PHONE_NUMBER>)
Traceback (most recent call last):
  File "_pydevd_bundle\pydevd_cython_win32_27_64.pyx", line 172, in _pydevd_bundle.pydevd_cython_win32_27_64.handle_breakpoint_condition
  File "<string>", line 1
    if (size ==<PHONE_NUMBER>)
     ^
SyntaxError: invalid syntax
2018-04-09 14:49:38,200 - widdler.SingleBucket.SingleBucket - CRITICAL - Python int too large to convert to C long

Steps to reproduce

Use blob.upload_from_filename(source_file_name) to upload a file that's 3.8GB in size. Guessing anything
larger than 2.1 GB will do as this appears to be an issue of the file size being handled as an int when it should be handled as a long.

Code example

This is my function:
    def upload_file(self, source_file_name, destination_blob_name):
        """
        Upload a file to a bucket. Once they are in the bucket, they are called blobs.
        :param source_file_name: Full path and name of source file.
        :param destination_blob_name: name to give file in bucket.
        :return:
        """
        blob = self.bucket.blob(destination_blob_name)

        try:
            blob.upload_from_filename(source_file_name)
        except Exception as e:
            print_log_exit(str(e))

It is part of a class I made for implementing various cloud storage functionality for a single bucket. When attempting to upload a large file (3.8GB in size), I get the overflow error in the stack trace above. While tracking it down in debugger, the error appears to be caused by line 676 of blob.py in the google cloud storage library:
           data = stream.read(size)

@Osiris1975, hrm, I wonder if this happens in Python 3 as well?

@crwilcox want to take point on fixing this?

@jonparrott and @crwilcox thanks for jumping on this so quickly. Hopefully a quick and easy fix. Once fixed will you be releasing a new version anytime soon?

Hi Crwilcox
I installed the latest version of google cloud storage I think 1.10 and this error still to happen.
Is this already fixed in the code ?
Thanks

@meirelesmj The fix from PR #5187 was released in google-cloud-storage 1.9.0.  If you can reproduce with version 1.10.0, please follow up here with a recipe, and we will investigate / reopen.

HI @tseaver
Thanks for the help
There is a print of the error. Can I give you any additional information that could help ?

@meirelesmj What is the architecture of your Python?  E.g.:
>>> import platform
>>> platform.architecture()
('64bit', 'ELF')

If the first item is 32bit, we may not be able to do anything in google-cloud-storage to fix the issue.

import platform
platform.architecture()
('64bit', 'WindowsPE')

Sorry for the delay. It's running locally for now in my machine, then probably will be running in Google Cloud infrastructure


fix(ElementObserver) support namespaced attributes

Fixes #34

Reverted some changes from my earlier pull requests that went away from ElementObserver in favor of observers for specific property scenarios.
Added a bunch more tests.


Codeunit 11000006 CBG Statement Reconciliation - MatchCBGStatementLine (2) (Dutch Localization)

We would like to perform some additional matching. To make this possible we require the following publisher in function MatchCBGStatementLine.
            IF EntriesCount = 1 THEN BEGIN
              EmployeeLedgerEntry.GET(EntryNo);
              CBGStatementlineRec."Applies-to Doc. Type" := EmployeeLedgerEntry."Document Type";
              CBGStatementlineRec."Applies-to Doc. No." := EmployeeLedgerEntry."Document No.";
              CBGStatementlineRec."Reconciliation Status" := CBGStatementlineRec."Reconciliation Status"::Applied;
              NumberOfLinesApplied := NumberOfLinesApplied + 1;
              IF RecChanged THEN
                NumberOfLinesChanged := NumberOfLinesChanged - 1;
              RecChanged := TRUE;
            END;
          END;
        END;
     END;
  END;

  ///// START
  OnAfterMatchCBGStatementLine(CBGStatementlineRec, NumberOfLinesChanged, RecChanged, EntriesCount, EntryNo);
  ///// END

  IF RecChanged THEN
    CBGStatementlineRec.MODIFY(TRUE);
END;

The signature of the publisher:
[Integration]
LOCAL PROCEDURE OnBeforeFindNAC@11095590(VAR CBGStatementLine@11095587 : Record 11401;VAR NumberOfLinesChanged@11095586 : Integer;VAR RecChanged@11095585 : Boolean);
BEGIN
END;

Many thanks.

We need the same event publisher, but would like some additional parameters. For that we would a signature like below with at least those parameters so that we can customize the matching/filtering:
LOCAL [IntegrationEvent]
OnAfterMatchCBGStatementLine
(
  CBGStatement : Record "CBG Statement";
  VAR CBGStatementline : Record "CBG Statement Line";
  TransactionModeFilter : Text;
  EntriesCount : Integer;
  RecChanged : Boolean;
  VAR NumberOfLinesApplied : Integer;
  VAR NumberOfLinesChanged : Integer
)

Which would be called as follows:
OnAfterMatchCBGStatementLine(CBGStatementRec,CBGStatementlineRec,strFilter,
                                  EntriesCount,RecChanged,NumberOfLinesApplied,NumberOfLinesChanged);

This publisher has been incorrectly implemented. Some VAR indicators are missing. I will raise a new issue.

Please do not add requirements in comments, these are not tracked by us. Close wrong request and create new one instead.


WMTS handling needs to be reworked

A better handling of WMTS by capabilities and manual creation needs to be implemented.
The WMTS by capabilties creation currently also breaks reprojection of layer

Connected eodash_catalog issue as a prerequisite https://github.com/eodash/eodash_catalog/issues/15

Necessary for selecting a different projection for Marine Copernicus data (currently EPSG:3857 is used, which has gaps around pole).


How to display only specific game related suggestions?

Hi! I have some noob questions.
How to display only specific game related suggestions? I only want to see CS:GO and generic source event suggestions, for example.
Also, how do I make the event description show when I hover over it with the mouse, and not when I use the up and down arrow buttons?

Hi!

That's not supported yet, but I will add it to the todo list 👍
Also not supported, unfortunately, same thing

1 has been implemented in cf155858fedb8072b14ac1468e9ebf86006b7ad7.
working on 2.

2 has been implemented in c1d315183729d00228ff14e8674ff1de315ae9ad.


⚠ Tukarcoid has degraded performance

In 4b74b43, Tukarcoid (https://tukar.co.id) experienced degraded performance:

HTTP code: 200
Response time: 2666 ms

Resolved: Tukarcoid performance has improved in 44ba57a after 8 minutes.


Example and Tutorial

Would you mind giving an completed example or tutorial about how to implement / integrate this nadel project with GraphQL Java?

The library is still building out at the moment. We are in a phase where we are building a graphql gateway AND building out the Nadel library at the same time.
As such Nadel is not ready for external consumption since no API stability can be guaranteed. Also we have not yet written the extend documentation that some might want from a graphql-java library
This will come at a future date but as of March 2019 - its not quite ready

That's fair. But is there any chance for rough estimation for release date?
Consider this also: why do we (users of Nadel) should care about API quality? I only want to run server and stitch my GraphQL services. It will be hosted separately from services and will front them. So there is no need for me to change anything inside, thus API stability or usability are not the issues...
Also, I was able to pull together Nadel server in couple of hours, just by looking on tests of this project.

2021 still not yet ready?


Result JS lib file is uglified

Not sure if it's the best approach, since it's hard to debug, and the app that uses these packages should minify it's own code and it's dependencies...
@TimMikeladze what do you think?

I agree. The entire build / publish process could stand to be improved.
Mind sending a PR?

We use ts now.. we do publish the map files don't we?


correcting index_to_string_table_from_tensor doc

Can one of the admins verify this patch?

I signed it!

cc @ysuematsu

Jenkins, test this please.

Oops. Sorry for the delay. @tensorflow-jenkins test this please

Jenkins, test this please.

http_util errors are unrelated.


[Documentation Update]:  create new file Advanced CSS Techniques.md

Is there an existing issue for this?

[X] I have searched the existing issues

Issue Description
This document explores advanced CSS techniques for creating sophisticated web designs. It covers topics such as CSS Grid and Flexbox for complex layouts, advanced selectors for precise styling, and custom properties (CSS variables) for reusable values. Techniques for responsive design and animations are also discussed to enhance user experience and visual appeal.
Suggested Change
Additionally, the document delves into performance optimization tips and best practices for writing maintainable and scalable CSS. These advanced techniques help developers craft modern, high-performance web interfaces with greater control and efficiency.
Rationale
No response
Urgency
High
Acknowledgements

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository
[X] I have read and followed the Contribution Guidelines
[X] I have followed the code style guidelines of this project
[X] I have checked for any existing open issues that my pull request may address
[X] I have ensured that my changes do not break any existing functionality
[X] Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently
[X] I have read the resources for guidance listed below
[X] I have not used AI-generated content (e.g., ChatGPT, other AI tools)
[X] I have not used content from existing sites (e.g., text, images)
[X] I have followed all security rules and only shared trusted resources

I want to work on the issue

Please assign me the issue


Move to Grafana as discussed on Slack

Putting this here just so it does not get forgotten. Grafana (https://grafana.com/) was suggested by @apmorton as an alternative to StatHat (https://stathat.com) which we currently use

Thanks for filing this! Will take a look!

First look: papertrail doesn't seem to support it (supports "HostedGraphite") -- but this is absolutely not a blocker. Right now I use plain-text searches from our log output in papertrail to count statistics and upload them to stathat. That's a terrible way of doing things. We should directly log metrics out :)

I just signed up for a grafana cloud team to play around with - I can add any of you that would like to poke around, just ping me on slack.
It comes included with something called loki (https://grafana.com/oss/loki#about), which seems to be pretty similar to papertrail, except part of the grafana ecosystem. (I will admit despite using grafana on some past teams I have never really setup a grafana system myself).
Maybe we can start by piping our existing logs into a loki instance in addition to papertrail so we have some data to play with?
The server-side metrics would be accomplished by posting data into the prometheus or graphite instances that come as part of grafana.

Looks like we're using Grafana :D https://ce.grafana.com/ yay


Terminates when run in a loop (Linux)

program terminates with this error message when run in a loop:
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Maximum number of clients reached'
Here is the snippet:
while True:
        klembord.init()
        print(klembord.get_text())

Just as the error says, you're making too many connections to X server. There's some basic cleanup, but you're racing it (and winning!).
klembord is designed to be used stand alone independent of any toolkits. There's no event loop, so we can't maintain a single connection to the server. I tried to mitigate this with background threads, but xlib doesn't play very nice with threading, so we can't use single connection from multiple threads.
Basically, try not to use klembord in an infinite loop or add delays.


Same as issues/discussions for a repo but for a user only

📋 Description
Add links of number of issues/discussions just for a user only.
🔗 Data
issues by user: https://github.com/issues?q=author%3Aandry81+sort%3Aupdated-desc+
discussions by user: https://github.com/discussions?q=author%3Aandry81+sort%3Aupdated-desc+
Both links need a login.
🎤 Motivation
Put it as a statistic in the main page readme file: user/user

If someone is interested in working on this, the GraphQL queries for this would be
{
  user(login: "andry81") {
    issues {
      totalCount
    }
  }
}

{
  user(login: "andry81") {
    repositoryDiscussions {
      totalCount
    }
  }
}

you could assign me and i will get to it in a few days or so

I wanted to add this and i first looked for a shield to add it to before creating something new.
While searching i noticed you can already create this shield using the git-hub-issue-custom-search shield:
Example of issues by abdry81:
Using this url: https://img.shields.io/github/issues-search?query=author%3Aandry81&label=issues by andry81
I used the link you provided and counted the issues, and the numbers fit (181 issues opened by andry81 to date)
@andry81 Please let me know if this solves the first issue for displaying user created issues or you still want us to discuss adding a new shield/option?
Regarding discussions across repositories I could not find a way to implement this. I think it would be best to add this in a new shield.
@chris48s I think that instead of creating a specific shield for all discussions by author it will be much better to add a non-repo specific discussion custom search.
I could for example use the search query with discussion as search type for this type of shield similar to issues costume search
query ($query: String!) {
  search(query: $query, type: DISCUSSION) {
    discussionCount
  }
 }

Please provide me with feedback what would better fit the project so i could implement the solution.

Well here is a quick preview

Created the discussion badge you you wanted in my new branch using:
http://localhost:8080/github/discussions-search?query=author%3Aandry81&label=discussions%20by%20andry81

I ended up adding this, i think that its good to have regardless of the original issue.
I could implement a new service from the BaseGithubDiscussionsSearch if you think there is an advantage of making a specific user discussion count more accessible. But using this new service you can create the desired badge and many others.

@jNullj Thanks for the effort! One more thing here is that the issues and discussions is not reachable from a not logged in page. May be add a second icon to indicate that the badge url requires the GitHub login? Or may be add a second line of text like login required?

do you refer to GitHub API token? I just tested and you are right, i could not make requests without one altho the API should have a small rate limit for calls without a token.
Do you have an example of such message or should i get creative?

I've meant the simple url in the readme file: https://github.com/issues?q=author%3Aandry81+sort%3Aupdated-desc+

Not sure what readme file you refer to, i never added those urls in my pull request and I don't see why they should be added.
Also you can access the same information without a login using those links:

for issues: https://github.com/search?q=author%3Aandry81&type=issues&s=created&o=desc
for discussions: https://github.com/search?q=author%3Aandry81&type=discussions&s=created&o=desc

@jNullj Thank you! This is what I was looking for.

It would be useful if add a badge for the commits too: https://github.com/search?q=author%3Aandry81&type=commits&s=author-date&o=desc

I can add this in a seperate PR as a new service for 'commit custom search'. But lets wait to see what the maintainers think about the changes i added so far and those changes as well. I want to avoid making too much changes without knowing they will not get rejected.

It would be useful if add a badge for the commits too: https://github.com/search?q=author%3Aandry81&type=commits&s=author-date&o=desc

I can add this with the an REST api call, the GraphQL does not support commit search (yet?).
Please reopen this issue or make another one so we can track this, just to make sure i understand what you are asking for, you want a badge that will show total commit across all repositories by you?
Take into account the api has some limitations regarding the maximum number of repositories it will search.


exclude non-http uri schemes from BaseParser.links()

Rather than creating piecemeal exclusions for non-standard schemes like mailto: and javascript:, assume that a true link starts with http.
Since mailto: is here, I figure this makes some sense... do people really want tel:1231231337 in their links any more than mailto:? Same logic probably applies for a lot of the wacky non-standard schemes around these days.
Could make this logic conditional with a new property similar to self.skip_anchors. Said new property would default to True, ideally, IMO.
Certainly open to discussion on this!

whoops... went for the wrong method on this one...


Adding an AngularUI popup date controller

Hi,  I am trying to add an AngularUI popup date controller using formlyConfig.setType
formlyConfig.setType([
{
name: 'date',
templateUrl: '/app/templates/date.html'
}
]);
I copied  from the Popup date onwards, and added the relevant scope variables in my controller.    Please help.  PS : I am quite inexperienced in Angular.

It looks like you're creating the type properly. Could you paste your template?

Also, you don't happen to be here at ng-conf right now are you? If so we could meet up and I could help you in person.

No..unfortunately not.  The template is :
Popup

Format:

<hr />
<button type="button" class="btn btn-sm btn-info" ng-click="today()">Today</button>
<button type="button" class="btn btn-sm btn-default" ng-click="dt = '2009-08-24'">2009-08-24</button>
<button type="button" class="btn btn-sm btn-danger" ng-click="clear()">Clear</button>
<button type="button" class="btn btn-sm btn-default" ng-click="toggleMin()" tooltip="After today restriction">Min date</button>

In my controller I set :
$scope.today = function () {
$scope.dt = new Date();
};
$scope.today();
$scope.clear = function () {
    $scope.dt = null;
};

// Disable weekend selection
$scope.disabled = function (date, mode) {
    return (mode === 'day' && (date.getDay() === 0 || date.getDay() === 6));
};

$scope.toggleMin = function () {
    $scope.minDate = $scope.minDate ? null : new Date();
};
$scope.toggleMin();

$scope.open = function ($event) {
    $event.preventDefault();
    $event.stopPropagation();

    $scope.opened = true;
};

$scope.dateOptions = {
    formatYear: 'yy',
    startingDay: 1
};

$scope.formats = ['dd-MMMM-yyyy', 'yyyy/MM/dd', 'dd.MM.yyyy', 'shortDate'];
$scope.format = $scope.formats[0];

So everything is there inside the controller that points to my

So, with angular-formly, the template has access to some specific things. The scope of your template is not the same as the scope in your controller. So, anything you want your template to have access to needs to be in your field configuration under templateOptions. So you'd want to do something like this:
$scope.fields = [
  {
    type: 'date', // <-- the name of the type you created for the date-picker
    key: 'selectedDate', // <-- the property on the model to bind to the value of the date-picker
    templateOptions: {
      dateOptions: {}, // <-- your date options
      formate: '', // <-- your format
      ... // <-- the other things you want to have access to in your template
    }
  }
];

Then you need to reference the options object in your template. Most of your stuff will be on options.templateOptions, but because this is a lot to type, formly gives you a shortcut called to.
<input type="text" class="form-control" datepicker-popup="{{to.format}}" ng-model="model[options.key]" is-open="opened" min-date="to.minDate" max-date="to.maxDate'" datepicker-options="to.dateOptions" date-disabled="to.disabled(date, mode)" close-text="{{to.closeText || 'Close'}}" />

Note: You don't need to specify ng-required because angular formly will add that for you automatically if you specify required as one of your template options.
If you need more help, take a look at this example and this talk

Thanks so much for your quick reply. Will try it..

@kentcdodds  Thanks for your talk very helpful

You're welcome @abodacs :-)

Reference from above:  <input type="text" class="form-control" datepicker-popup="{{to.format}}" ng-model="model[options.key]" is-open="opened" min-date="to.minDate" max-date="to.maxDate'" datepicker-options="to.dateOptions" date-disabled="to.disabled(date, mode)" close-text="{{to.closeText || 'Close'}}" />
date-disabled="to.disabled(date, mode)"  causes the entire datepicker to be disabled.  I changed to
date-disabled="to.datedisabled(date, mode)"
In the controller, example to disable weekends
{                     className: 'col-md-3',                     key: 'startDate',                     type: 'datepicker',                     templateOptions: {                         label: 'Start Date',                         required: true,                         type: 'text',                         datepickerPopup: 'dd-MMMM-yyyy',                         datedisabled: function (date, mode) {                             return (mode === 'day' && (date.getDay() === 0 || date.getDay() === 6));                         }                     }                 }