text:
use resource from conn if already present

I noticed that the LoadResource assumed that the resource was inside a {:ok, resource} tuple inside the conn. Guardian.Plug.set_current_resource however just puts the resource into the conn without wrapping it in a tuple. This made testing a bit hard. With this fix it's possible to just use a helper like the following in controller tests:
def sign_in(conn, user \\ %User{}) do
  conn
    |> Guardian.Plug.set_claims({:ok, %{}})
    |> Guardian.Plug.set_current_resource(user)
end

Hey, could I get some input on this. I'm currently depending on my form from my projects, but would like to depend on the hex package again. I thought this was a bugfix, but I'm not completely sure :-)

@manukall sorry for the delay. The reason it needs to go into a tuple is because it's completely unknown where it's coming from. Api, memory, db. The tuple provides a way to find out what happened in the case that something when wrong. I think the better option would be to make sure that set_current_resource wraps it in a tuple when it puts it in there..

@hassox thanks for your reply. i'll reset the LoadResource plug and change set_current_resource. Would you want Plug.current_resource to still return just the resource or {:ok, resource} then? (the latter would obviously break the existing api.)

ping @hassox

authors: hassox manukall

repo: ueberauth/guardian


text:
2018 n2c2 data availability

Hi is 2018 n2c2 data publicly available, as I would like to replicate your codes:
https://github.com/uf-hobi-informatics-lab/ClinicalTransformerClassification/blob/580670f02baf9dc2a2112f5776935ec8a89a28f1/src/data_processing/preprocessing.ipynb#L535
Thanks

please contact the n2c2 team to get the data.  You have to sign DUA with them. We cannot share the dataset.
https://n2c2.dbmi.hms.harvard.edu/data-sets

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Add "Flanders Make" for Faculty "Economie en Bedrijfskunde"

Story
Add "Flanders Make" for Faculty "Economie and Bedrijfskunde".
The IDs I got from GISMO:

ROR-id = https://ror.org/02ndjfz59
Internal GISMO UUID = a1b3277c-653b-11ea-a39e-adacc4b2e7a8

The titles:

EN: Flanders Make
NL: Flanders Make

Context
There is a new CVAMO research group. Question we got from a researcher:

"Sinds 1 jan 2022 werd een nieuw Flanders Make labo opgericht aan de Faculteit Economie en Bedrijfskunde. Dit heeft als gevolg dat een aantal professoren nu zullen publiceren met een dubbele affiliatie. Is het mogelijk om dit aan te duiden in biblio? Dit zou voor ons ook heel handig zijn voor het opvolgen van de publicaties van ons lab."

Long term we want to use ROR-id, the ones we get from GISMO.

Is this a new SOC that needs to be added?

Yes, I still need to beef this story, put it in the wrong column 😇

We hebben een code nodig

@mietcls if we want to add it now, we'll have to invent an id like 'FlandersMake'

@nics I thought you meant IDs like ROR-id or the internal GISMO UUID. Is there an extra ID I should search for, or can we just make this?

authors: mietcls netsensei nics

repo: ugent-library/biblio-backoffice


text:
api打包报错

com.github.uhfun
swagger-more-annotations
1.0.2-SNAPSHOT

src/main/java

org.apache.maven.plugins
maven-javadoc-plugin
3.1.1

javadoc

process-classes

com.github.uhfun.swagger.doclet.SwaggerMoreDoclet

com.github.uhfun
swagger-more-javadoc
1.0.2-SNAPSHOT

com.xy
xyPostalWork-api
0.0.1-SNAPSHOT

-classDir ${project.build.outputDirectory}
${project.build.sourceDirectory}
com.xy.service
false

org.springframework.boot
spring-boot-maven-plugin

报错信息：Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc (default) on project xyPostalWork-api: Unable to parse configuration of mojo org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc for parameter additionalOptions: Cannot assign configuration entry 'additionalOptions' with value '-classDir E:\xyDiningWork\xyPostalWork-api\target\classes' of type java.lang.String to property of type java.lang.String[]

com.github.uhfun swagger-more-annotations 1.0.2-SNAPSHOT src/main/java org.apache.maven.plugins maven-javadoc-plugin 3.1.1 javadoc process-classes com.github.uhfun.swagger.doclet.SwaggerMoreDoclet com.github.uhfun swagger-more-javadoc 1.0.2-SNAPSHOT com.xy xyPostalWork-api 0.0.1-SNAPSHOT -classDir ${project.build.outputDirectory} ${project.build.sourceDirectory} com.xy.service false org.springframework.boot spring-boot-maven-plugin 报错信息：Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc (default) on project xyPostalWork-api: Unable to parse configuration of mojo org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc for parameter additionalOptions: Cannot assign configuration entry 'additionalOptions' with value '-classDir E:\xyDiningWork\xyPostalWork-api\target\classes' of type java.lang.String to property of type java.lang.String[]

如果启动遇到问题你可以暂时先不适用"自动使用javadoc 生成注解"这个功能，你可以先直接在接口上添加注解
发一下你api包的pom.xml 我看一下是什么问题

    <dependency>
        <groupId>com.github.uhfun</groupId>
        <artifactId>swagger-more-annotations</artifactId>
        <version>1.0.2-SNAPSHOT</version>
    </dependency>

src/main/java

org.apache.maven.plugins
maven-javadoc-plugin
3.1.1

javadoc

process-classes

com.github.uhfun.swagger.doclet.SwaggerMoreDoclet

com.github.uhfun
swagger-more-javadoc
1.0.2-SNAPSHOT

com.xy
xyPostalWork-api
0.0.1-SNAPSHOT

-classDir ${project.build.outputDirectory}

${project.build.sourceDirectory}
com.xy.service
false

org.springframework.boot
spring-boot-maven-plugin

报错信息指向
-classDir ${project.build.outputDirectory}
这一行

authors: jakkkkead uhfun

repo: uhfun/swagger-more


text:
[Bug] Hashtags in Multi-line literal strings are detected as comments and stripped

version = "0.10.1"
spec = "0.5.0"
import toml

if __name__ == '__main__':
    test = """
value = '''
hello
[#if test]
[/#if]
abc = '#prop#'
'''
    """

    test2 = '''
value = """
hello
[#if test]
[/#if]
abc = '#prop#'
"""
    '''

    print(toml.loads(test))
    print(toml.loads(test2))

result: first one #prop# get stripped
{'value': "hello\n[#if test]\n[/#if]\nabc = '       \n"}
{'value': "hello\n[#if test]\n[/#if]\nabc = '#prop#'\n"}

Seeing slightly different issue (0.10.2) with one # and data being deleted to end of line:
                <wsse:Password
                        Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
                    yyy
                </wsse:Password>

Tried using \# in the .toml file. That returns a parse error many lines later (when trying to load large test XML data).
Converts to:
                <wsse:Password
                        Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0
                    yyy
                </wsse:Password>

The problem seems to only occur when the # is inside a quote (such as ") inside the """ string. When I remove the " in my example above the file parses properly.
I've done a little digging and I think the solution may be as simple as adding a check for multilinestr around line 307:
        if item == '#' and (not openstring and not keygroup and
                            not arrayoftables and not multilinestr):

authors: ltxlouis rgacote

repo: uiri/toml

license: mit

license_source: bigquery


text:
Updated AGP and Dependencies

Updates AGP and a few other dependencies

@ujizin bumping a few versions here

Hey @jumaallan, thanks for contributing to Camposer!

source: gharchive/pull-request

authors: jumaallan ujizin

repo: ujizin/Camposer


text:
eclipse.jdt.ls organize imports extension

Adds ejdtls-organize-imports command to invoke java.edit.organizeImports command of eclipse.jdt.ls.

🚀 How do you find eclipse.jdt.ls in general? I tried to use it once but had not much luck.

Pretty good, I am using it with vim and youcompleteme a year or so.
As for kak, each time I tried to migrate from vim, I had something missing, have to try again and see if something else needs to be implemented or not.
This is my kak-lsp config for eclipse with lombok support, not the latest as I do not have access to it atm. I think offset_encoding utf8 is missing from it, as without it, the server crashed.
[language.java]
filetypes = ["java"]
roots = [".java-project-root"]
command = "java"
args = ["-javaagent:/var/eclipse-lsp/lombok.jar", "-Xbootclasspath/p:/var/eclipse-lsp/lombok.jar", "-Declipse.application=org.eclipse.jdt.ls.core.id1", "-Dosgi.bundles.defaultStartLevel=4", "-Declipse.product=org.eclipse.jdt.ls.core.product", "-Dlog.level=ALL", "-noverify", "-Xmx1G", "-jar", "/var/eclipse-lsp/plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar", "-configuration", "/var/eclipse-lsp/config_linux", "-data", "/var/eclipse-lsp/workspace"]

The equinox launcher jar name changes each version so this needs to be updated.

authors: osiox ul

repo: ul/kak-lsp

license: Unlicense


text:
Gradle issue related with dollar character

Trying to use the library and configuring it I was facing a problem related with dollar character, so when Gradle was executing the expand task of processResources was failing because of this character, so what is need is just to scape it.

Thanks for the contribution!

authors: falcondamian ulisesbocchio

repo: ulisesbocchio/jasypt-spring-boot


text:
Apply a LICENSE to the repo

Code published online should describe in a license what the conditions are for its reuse and modification.
The license may be dictated by any dependencies which you use or package with the application.
If you are not constrained by existing dependencies, GPL and MIT licenses are good FLOSS options.

Thank you, I add a LICENSE from MIT into this project.

authors: JoyDajunSpaceCraft ctgraham

repo: ulsdevteam/ccvgd-backend


text:
The panda emoji (and other emojis) load with a white rectangle outline.

We upgraded to Next13. Next13 replaces the next/image component that we heavily depended on with what was previously next/image/next. Whereas the previous next/image is now next/image/legacy.
The new one has some improvements we'd like to use, but it also suffers from a white outline bug in Safari. Let's wait with the upgrade until it's fixed.
https://github.com/vercel/next.js/issues/40615
I have given the proposed workaround a shot but it doesn't appear to work.

Ran a codemod that keeps us on Next13 but rewrites all next/image use to be next/image/legacy.
Deployed to staging.

Tracking the upgrade to the new image in #251

repo: ultrasoundmoney/frontend


text:
TypeError: e.datasets[n] is undefined

Describe the Bug
Occasionally I am noticing lot more failures with this error in the console: TypeError: e.datasets[n] is undefined
It works when I do a hard refresh on the page, mostly this failure occurs when performing some actions like going to website details page from the overview, or like changing the dates.
I don't have any specific way to repro this consistently, but this is happening a lot more frequently since v2.11.0 upgrade.
Attaching a screenshot if its helps in debugging.

Database
PostgreSQL
Relevant log output
No response
Which Umami version are you using? (if relevant)
2.11.0
Which browser are you using? (if relevant)
Firefox
How are you deploying your application? (if relevant)
Docker

Was debugging this same issue with the Cloudron package. This turns out to be ublock origin issue. It seems ublock blocks some URLs.

It loads fine when ublock origin is disabled .

authors: AkashRajpurohit gramakri

repo: umami-software/umami


text:
[Question] Hard anchor point gone?

Hey
I want to prevent the sliding panel to reach the EXPANDED state and just slide up to the ANCHORED state and not further.
By looking at the history I saw that there were already such requests and that there has been a solution by setting a hard anchor.
But in the current version it seems like this has been removed.
Is this still possible?
Or do i have to set the height of the panel programmatically?

It was never implemented. Dupe of https://github.com/umano/AndroidSlidingUpPanel/issues/125

authors: Siegbaert tokudu

repo: umano/AndroidSlidingUpPanel


text:
LIBSEARCH-104. Updated searcher to Rails 5.2.2.1

Fixes GitHub-identified vulnerabilities
Limited sqlite3 gem to v1.3.6 because of an Rails 5.2 incompatibility
with sqlite3 v1.4.
Added test/dummy/config/secrets.yml to enabled tests to run.
https://issues.umd.edu/browse/LIBSEARCH-104

Closing as this pull request has been superseded by Pull Request #5, implementing LIBSEARCH-174.


text:
CodeMirror improvements for UmpleOnline - Highlighting

Originally reported on Google Code with ID 322

I would like to see the UmpleOnline text editor enhanced to highlight the following:

State definitions and constant values in dark blue.
Event names (state transitions) in dark red and method names in pink;
Destination states of transitions in light blue
The names of classes, in dark green and references to classes in light green.
Attributes names and stateMachines in some other colour that is not too bright and
doesn't conflict with the above,

This would be done by creating an overlay parser or parsers, as shown: http://codemirror.net/demo/mustache.html
Make sure this works with enumerations too, which are degenerate state machines.
You would have to parse declarations of classes finding elements that are, for example,state
machines and states, and then highlight then. Remember: It will be necessary to highlight
substate names that could be nested deeply.
Note I am going to add another issue that deals with syntax assistance too, which could
be done at the same time as this.

Reported by @umple on 2012-08-08 18:46:49

See also #222 which could be done together with this.

Further thoughts on colours
Purple
All Umple Keywords
Blue (all declarations for consistency)
state definition, which is a definition of a value
Green (all types for consistency)
Names of classes used as types:
Dark/bright Pink
destination states after -> (so we know that control is tranferred)
Light blue
event names (they indirectly declare methods)
Strings are red
numbers are dark green

repo: umple/umple


text:
https port not listened in container?

Running reproxy in docker with -p 80:8080 and -p 443:8443. Http port works fine but Connection refused with https. port.
In log, it seems reproxy was listening 8080 without 8443
reproxy v1.0.0-2b92c11-20230528T18:41:09
2023/11/25 20:48:28.005 [INFO]  activate http proxy server on 0.0.0.0:8080
2023/11/25 20:48:28.008 [INFO]  changes in running containers detected: refreshing routes
2023/11/25 20:48:29.013 [INFO]  proxy  docker: xxx.xxx.xxx /(.*) -> http://192.168.112.2:5314/$1
2023/11/25 20:48:29.013 [INFO]  proxy  docker: xxx.xxx.xxx /(.*) -> http://172.17.0.9:80/$1

resolved by add SSL_TYPE=static

repo: umputun/reproxy


text:
Sentinel-1 datatree memory footprint multiplied by 6 (94Go) with xsar==2024.5.15

The problem: in previous verison of xsar loading the datatree of a Sentinel-1 IW SLC product was using maximum 18Go of RAM.
With version xsar==2024.5.15, the RAM footprint jumped to 94Go (x 6).
datatree loaded RAM usage: 94.0 Go

with previous version xsar==2024.2.1 and xarray-safe-s1==2024.1.9 is was only 11Go RAM.
to reproduce:
import xsar
import logging
logging.basicConfig(level=logging.INFO)
def get_memory_usage():
    try:
        import resource
        memory_used_go = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1000. / 1000.
    except:  # on windows resource is not usable
        import psutil
        memory_used_go = psutil.virtual_memory().used / 1000 / 1000 / 1000.
    str_mem = 'RAM usage: %1.1f Go' % memory_used_go
    return str_mem
slc_iw_path = '/home/datawork-cersat-public/project/mpc-sentinel1/data/esa/sentinel-1b/L1/IW/S1B_IW_SLC__1S/2020/319/S1B_IW_SLC__1SDV_20201114T185653_20201114T185720_024265_02E237_F25A.SAFE/measurement/s1b-iw2-slc-vh-20201114t185653-20201114t185718-024265-02e237-002.tiff'
slc_iw_path = '/home/datawork-cersat-public/project/mpc-sentinel1/data/esa/sentinel-1b/L1/IW/S1B_IW_SLC__1S/2020/319/S1B_IW_SLC__1SDV_20201114T185653_20201114T185720_024265_02E237_F25A.SAFE/:IW2'

xsarobj = xsar.Sentinel1Dataset('SENTINEL1_DS:'+slc_iw_path)
dt = xsarobj.datatree
dt.load()  # took 4min to load and 35Go RAM
logging.info('datatree loaded %s', get_memory_usage())

explanation the call
self.add_high_resolution_variables(patch_variable=patch_variable, luts=luts, lazy_loading=lazyloading)

has been extended to SLC products in #204  resulting in 21 variables by default in the datatree['measurement'] (while before it was only 4).

repo: umr-lops/xsar


text:
Change Electric Vehicle Charger Location

The electric vehicle charging location in the Visitor Center is not correct. See image below for the correct location.

Done!

authors: Cobchise umayavuz

repo: umts/ParkingMap


text:
Adding popup warning for early checkout

Per #150 and code review discussion, adds popup warning user that they are about to process an early checkout

Sure, seems simple enough.

authors: cmednieks phantompatrol

repo: umts/probable-engine


text:
Reorganização das pastas do repositório

Descrição
Esta issue foi criada para reorganizar a pasta docs.
tarefas

[x] Procura por documentações de outros grupos
[x] Reusar o sistema de organização de documentação.
[x] Subir para o github

Encerrei a parte de organização, a Giovanna já subiu a relação das sprints para o github


text:
Any example code to make a 3D numbered spiral?

Hello,
I am researching Mathbox now along with Mathics and am interested to know if there is any example code to make a 3D spiral with numbers along the curve.
Additionally, I want to try an overlay some other simple curves on the 3D spiral as well.  Sort of using the 3D spiral as a type of cone axis to overlay other curves.
Do you have anything that might lead me in the right direction or some type of simple template that I can use to get started?
Thanks and have a good day.

Have you tried Math3D? It has a fairly flexible way to render lines, curves, or anything that you may need.
A quick spiral function here:

If you want to build from first principles, you could try the Helix sample ( code ) and add/ customize label logic from here
Hope this helps

authors: divisuals lonnietc

repo: unconed/mathbox


text:
🛑 Procurement notices is down

In 489c550, Procurement notices (https://procurement-notices.undp.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Procurement notices is back up in 2a31dc5 after 13 minutes.

repo: undp/uptime-monitor


text:
Small bug fixes

Includes fix of non-compatible Redis version
Has ult and ust names built into RC code

Pull Request Test Coverage Report for Build 118

32 of 83 (38.55%)  changed or added relevant lines in 8 files are covered.
2 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.4%) to 69.807%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

client_linter_callback.py
0
3
0.0%

callback.py
0
8
0.0%

preprocessors/preprocessors.py
14
24
58.33%

webhook.py
1
12
8.33%

client_converter_callback.py
1
20
5.0%

Files with Coverage Reduction
New Missed Lines
%

client_converter_callback.py
1
15.09%

webhook.py
1
14.8%

Totals

Change from base Build 109:
0.4%

Covered Lines:
2527

Relevant Lines:
3620

💛  - Coveralls


text:
🛑 Unforest is down

In c9856fe, Unforest (https://www.unforest.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Unforest is back up in 9f03857 after 2 hours, 43 minutes.

repo: unforest/uptime


text:
🛑 SearXNG is down

In 724efe9, SearXNG (https://searxng.unforest.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SearXNG is back up in ddf3987 after 37 minutes.


text:
🛑 Rimgo is down

In af6c974, Rimgo (https://rimgo.unforest.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Rimgo is back up in 7ec9699 after 17 minutes.


text:
🛑 Libreddit is down

In 0a05cf0, Libreddit (https://libreddit.unforest.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Libreddit is back up in bba3bd7 after 12 minutes.


text:
Compatibility with GNU FSDG?

This project is a common source of an argument among FOSS developers in relation to the compilance with GNU FSDG (https://www.gnu.org/distros/free-system-distribution-guidelines.en.html) to be kept in the distribution's main repositories, please clarify whether it's compatible ideally in the readme.
Thanks!

The guidelines are to be followed by linux distributions, not software projects. We are a software project, as such looking for compliance with the guidelines doesn't make sense generally.
Patches in this repository are licensed under licences regarded as "Free licences, compatible with the GNU GPL" by the fsf however, I think that (besides the obvious commitments like not distributing malware) is the only point we could and do comply with

I hope your question(-s) has(-ve) been answered, otherwise please let us know.
Closing this issue for now.

authors: Kreyren PF4Public networkException

repo: ungoogled-software/ungoogled-chromium


text:
Document the knowledge_matrix

Document the knowledge_matrix`s csv file fields.

Done.

repo: unibz-core/OntCatOWL-Dataset


text:
unikube app shell only uses default container

Currently when using the shell command on a pod with multiple containers, the default container is chosen. We should support specifying a target container.
Example:

I would like to have a shell in consentservice-admin and not in oauth2-proxy.

@tschale This should be solved by: https://github.com/unikubehq/cli/issues/230
Which CLI version are you using?

@buschNT I'm using 1.0.1. I've upgraded to 1.1.0, works like a charm. Thank you! :)

authors: buschNT tschale

repo: unikubehq/cli


text:
Integrate new feature list

New Feature List:
https://docs.google.com/document/d/1d9lUIqJDOX7CqZSn1e8F_X0V9Frlm9hrdHLeUaU1x2U/edit

@Hannes Hanusch @Michael Schilonka I just made a new feature page, its called "Features NEU" - the old page still exists. The new one is saved as a draft here: https://cms-dot-blueshoe-website-v4.ew.r.appspot.com/cms/pages/100/edit/ Please check it out.
Feedback: Michael Schilonka, Fri 10:55

ohne grafiken wirkt es ziemlich dense, aber ok.
gefällt mir besser als unsere aktuelle feature seite 🙂

Feedback Melanie

es ist sehr viel Text - ja - aber wenn ich deine Vorlage nehme und überall ein Plugin plus Bild rein mache, wird die Seite extrem lang und man verliert dann schnell den Überblick, was die Key-Features eigentlich sind.
Für das Plugin Bild+Text bräuchten wir größere Grafiken als die kleinen Icons, die wir aktuell haben.

Thanks for bringing this up. What is my task here?

@Schille @marty-2015 I published the page now, since it's clearly better than the old one but I think the old one is still in cache. We should still replace the icons for the steps 1 - 3.

authors: Schille Truthans marty-2015

repo: unikubehq/marketing


text:
Expand/Collapse definition

Using the toggle icons the user should be able to expand and close a whole definition and its source.
A keyboard command should be available as well.
This should take into account a zoom/expand level on a global scale that should work in some kind of way with the local level

Punting on source toggle as that might require a backend change. Tracked here instead: https://github.com/unisonweb/codebase-ui/issues/112

repo: unisonweb/codebase-ui


text:
Collection & STAC read/write updates

Fix to add a public accessor for "datasets" via collections,
Fix to some assumptions on the directories
Updated package name to unity-sds-client
updated version number

@mike-gangl Doesn't the package name need to be updated in the [pyproject.toml](https://github.com/unity-sds/unity-py/blob/main/pyproject.toml) file as well from unity_py to unity-sds-client?

I felt that was a pretty major change and wanted to push out this update before getting to that. The package is simply published as unity-client-sds in pypi; but can still be imported as unity-py.

authors: anilnatha mike-gangl

repo: unity-sds/unity-py


text:
Resolving an instance registered as Singleton create new instance

Hi,
I'm facing a trouble about singleton resolution throught  the IDependencyResolver interface with the version 5.11.1 of UnityContaner
Indeed, a call to the resolve method with the concrete type as parameter  returns a new instance, while a call to the interface works as expected.
Here's a sample unit test to reproduce the problem :
public interface IMySingleton
{
	int Value { get; set; }
}

public class MySingleton : IMySingleton
{
	public int Value { get; set; } = 1;
}

[Fact]
public void ResolveSingletonOk()
{
	var container = new UnityContainer();
	container.RegisterSingleton<IMySingleton, MySingleton>();

	var singleton1 = container.Resolve<IMySingleton>();
	singleton1.Value = 5;

	var newSingleton = container.Resolve<IMySingleton>();
	newSingleton.Value.Should().Be(5); // Works fine
}

but
[Fact]
public void ResolveSingletonFail()
{
	var container = new UnityContainer();
	container.RegisterSingleton<IMySingleton, MySingleton>();

	var singleton1 = container.Resolve<MySingleton>(); // resolve concret type
	singleton1.Value = 5;

	var newSingleton = container.Resolve<MySingleton>(); // resolve concret type
	newSingleton.Value.Should().Be(5); // Fail because Value = 1
}

This poses a problem for me because when I implement the IDependencyResolver, the GetService pass the concret type and my software don't works.

You are registering IMySingleton an a singleton and mapping it to unregistered MySingleton.
For this to work as intended, you need to register it like this:
container.RegisterSingleton<MySingleton>()
container.RegisterType<IMySingleton, MySingleton>()

So, you are registering your singleton type and map an interface to the singleton.

Thanks you, it works well !

authors: ENikS aboudoux

repo: unitycontainer/unity


text:
KAHOOT RAND ISSUE

I see that several issues regarding Kahoot rand have been submitted, but I see no solution (yet). Is this due to new Kahoot restrictions/security/changes? If so, are you able to update your codes accordingly?
Everything works fine: bots join Kahoot games just fine, but when it comes to answering the questions, nothing happens, even though the output in the CMD on Windows says otherwise.
This is the only functional Kahoot "hack" available, a lot of people, including myself, enjoy using it. Thank you for all the efforts you have put into this project. I hope you will continue maintaining it.

@r1161177 The bots' responses still register (if you look at their scores), however their responses don't showup for some reason.

Exactly, @Shadowbrony33. The problem is that the bots do not actually answer any questions.

I know that their answers don't show up but they still get a score when I use it. You'll have to ask @unixpickle why that is.

Same here.

No news?

Even when they join during the question, they still don't answer (/ we don't see the answer)

Is it really necessary for the answers to show up during the question? They
still get the scores so they will show up in the leaderboard.
On Nov 21, 2017 11:28 AM, "Eli Saado" notifications@github.com wrote:

Even when they join during the question, they still don't answer (/ we
don't see the answer)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/unixpickle/kahoot-hack/issues/128#issuecomment-345983642,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfiUUqhRh7Vi7f0vPHfuTGsHqHK89lCpks5s4qWzgaJpZM4QKO3k
.

@connerdassen that's one of the fun things about it! (I've heard a ton of stories from friends about the teacher being stunned and stuff)

Exactly, @elisaado! The most funny part of it is to see the answers increasing rapidly, the sound of the speed and the lag. Please bring back this awesome feature, @unixpickle!

This should be fixed by #140

Thank you @unixpickle. Will test

repo: unixpickle/kahoot-hack


text:
12:2 non-standard import

MacBook-Air:~ GrantSmith$ cd /usr/local/go
MacBook-Air:go GrantSmith$ export GOPATH=~/gorilla/
MacBook-Air:go GrantSmith$ cd /usr/local/go/src/github.com/unixpickle/kahoot\ hack/kahoot-rand
MacBook-Air:kahoot-rand GrantSmith$ go run main.go
main.go:17:2: cannot find package "github.com/unixpickle/kahoot-hack/kahoot" in any of:
/usr/local/go/src/vendor/github.com/unixpickle/kahoot-hack/kahoot (vendor tree)
/usr/local/go/src/github.com/unixpickle/kahoot-hack/kahoot (from $GOROOT)
/Users/GrantSmith/gorilla/src/github.com/unixpickle/kahoot-hack/kahoot (from $GOPATH)
MacBook-Air:kahoot-rand GrantSmith$ cd /usr/local/go/src/vendor/github.com/unixpickle/kahoot-hack/kahoot-rand
MacBook-Air:kahoot-rand GrantSmith$ go run main.go
/usr/local/go/src/vendor/github.com/unixpickle/kahoot-hack/kahoot/conn.go:12:2: non-standard import "github.com/gorilla/websocket" in standard package "vendor/github.com/unixpickle/kahoot-hack/kahoot"
MacBook-Air:kahoot-rand GrantSmith$
this is my terminal session and I can't figure out what is going wrong. any help?

if you actually have a GOPATH setup, you should be able to run the following commands:
$ go get github.com/unixpickle/kahoot-hack
$ cd ${GOPATH}/src/github.com/unixpickle/kahoot-hack/kahoot-rand
$ go run main.go
Usage: rand <game pin> <nickname prefix> <count>
       rand <game pin> <name_list.txt>
exit status 1

I wrote my code as
export GOPATH=~/gorilla/
and i dont know where it is so I cant cd it


text:
feat: support experimental auto format

Hi.
Thanks for the great work!
I want to use automatic format selection like cloudinary and imgix.
cloudinary
https://cloudinary.com/documentation/image_transformations#automatic_format_selection_f_auto
imgix
https://docs.imgix.com/apis/rendering/auto/auto#format

This is amazing

authors: Atinux aaharu

repo: unjs/ipx


text:
feat: add array type for pattern and copyFile in stream

👀 The Globby supports string[]，and using streams for copy can support large files

Hi dear @markthree. Support for multiple glob patterns added via https://github.com/unjs/mkdist/pull/41. If you like to, would be happy to accept a new PR to improve copy performance by using streams.

Hi dear @markthree. Support for multiple glob patterns added via #41. If you like to, would be happy to accept a new PR to improve copy performance by using streams.

Good idea. I'll finish it

repo: unjs/mkdist


text:
feat: support graceful shutdown and restart

🔗 Linked issue
Resolves #1224
❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[x] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
Introducing Graceful Shutdown to Nitro Server
This pull request brings the addition of a graceful shutdown feature to the node-cluster, node-server, and nitro-dev presets. This enhancement ensures all ongoing requests are successfully processed before the server terminates, minimizing the risk of sudden connection losses. Furthermore, it allows developers to integrate their cleanup routines such as closing database connections prior to server halt.
We have introduced four new environment variables for customizing this behavior:

NITRO_SHUTDOWN_DISABLED - Disables graceful shutdown feature if set
NITRO_SHUTDOWN_SIGNALS - Allows you to specify which signals should be handled. Each signal should be separated with a space. Defaults to SIGINT SIGTERM.
NITRO_SHUTDOWN_TIMEOUT - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to 30000 milliseconds.
NITRO_SHUTDOWN_NO_FORCE_EXIT - If it's set, the process will simply let the event loop clear without exiting the process instead of process.exit(0) at the end of the shutdown process.

Example of Graceful Shutdown
We've also added an example (examples/graceful-shutdown) demonstrating how to utilize these new features in a Nitro server application. The example shows the server awaiting the completion of the HTTP response before initiating the shutdown process and handling server shutdowns gracefully.
To start the server, use the following command:
NITRO_PRESET=node-cluster pnpm nitro build examples/graceful-shutdown
node examples/graceful-shutdown/.output/server/index.mjs

Then, send an HTTP request with curl localhost:3000. The server will respond after a three-second delay. During this delay, you can send a SIGINT signal to Nitro (using Ctrl+C). The server will then wait for the HTTP response to complete before initiating the shutdown process.
Changes Notice
I have added the http-graceful-shutdown package to our dependencies to manage the shutdown process.
Cnsidering that nitro-prerenderer and node presets do not involve HTTP listening, I have decided not to add the graceful shutdown functionality to them. We believe that the responsibility of managing graceful shutdowns for these presets lies in the capable hands of developers if needed. We've also highlighted this point in the documentation.
Challenges
Regarding nitro-dev, I've identified that the graceful shutdown feature isn't functioning as anticipated. This issue appears to be related to the worker implementation in src/dev/server.ts and src/cli/commands/dev.ts. I would appreciate it if someone could provide some guidance on resolving this issue. (nitro-dev shutdown support is implemented using cluster messaging since signals are not available to Node workers)
While the graceful shutdown feature has successfully passed our initial tests, I have yet to add specific tests for it. I need assist in introducing relevant tests to verify its effectiveness.
I kindly invite @pi0 to review these changes. Your feedback on the nitro-dev issue and test coverage would be greatly appreciated.
📝 Checklist

[x] I have linked an issue or discussion.
[x] I have updated the documentation accordingly.

I'm so excited about this feature, I hope it will be released soon!

Thanks! Followup pr for docs https://github.com/unjs/nitro/issues/1243

authors: pi0 trylovetom zhuoqi-chen

repo: unjs/nitro


text:
Support get repo readme file on default branch

Describe the feature
/repos/{owner}/{name}/readme can only get readme from main branch
If it's posible to add a optional query named branch, without provide a branch get readme file from default branch
// ...
let branch = event.context.query.branch

if (!branch) {
  const { default_branch } = await $fetch(`https://api.github.com/repos/${owner}/${repo}`)
  branch = default_branch || 'main'
}

const markdown = await $fetch(
  `https://raw.githubusercontent.com/${repo}/${branch}/README.md`
);
// ...

I don't know if it's a good way to get default branch......
or add a default branch response field in /repos/{owner}/{name} ?
const repo = <GithubRepo & { defaultBranch: string }>{
  id: rawRepo.id,
  name: rawRepo.name,
  repo: rawRepo.full_name,
  description: rawRepo.description,
  createdAt: rawRepo.created_at,
  updatedAt: rawRepo.updated_at,
  pushedAt: rawRepo.pushed_at,
  stars: rawRepo.stargazers_count,
  watchers: rawRepo.watchers,
  forks: rawRepo.forks,
  defaultBranch: rawRepo.default_branch
};

Additional information

[X] Would you be willing to help implement this feature?

OH! I found ghRepo function in utils, and the response has been cached? Maybe add a response field in /repos/{owner}/{name} and get default branch from this is a better way......

#49

repo: unjs/ungh


text:
bg-opacity- doesn't work with arbitrary values

Hi,
I want to use CSS variables with bg- and found that it doesn't generate the style to adjust the background opacity.
Here's playground link
--un-bg-opacity: 1; style is only generated for static class bg-red and not for bg-$c & bg-[red].

How about in another way implement it? Playground

Great 🎉
We got a workaround 😇
I can use it for now but this is not on the fly style we had to update the config, this is find for a single CSS var. Moreover, still bg-[red] isn't resolved yet.
BTW, is there docs regarding magic strings/characters like : in bg-custom:50.
Thanks.

CSS color values are not resolved from theme or keywords. For the keyword part, you may want to add the list of values to the preset.

--un-bg-opacity: 1; style is only generated for static class bg-red and not for bg-$c & bg-[red].

As I understand, util-$value and util-[value] generally use the intended value as is, so usually there are no processing involved.

Thanks for the information. For CSS vars do I have to add each of them to colors as @chris-zhu mentioned above?

For now, you have to add them separately. The rationale is that --x in var(--x) can contain #f00, red, 255, 0, 0, rgb(255, 0, 0) or even any other string.
Another thing you can do maybe is to add custom shortcut
shortcuts: [
  [/^bg2-(.*?)$/, ([_, c]) => `bg-[rgba(var(--${c}),var(--un-bg-opacity,1))]`],
]

BTW, is there docs regarding magic strings/characters like : in bg-custom:50.

Mostly tailwind syntax works: variant:util, [prop:value] and color-util:opacity

Thanks for the detailed response. I guess util-[value] does get parsed because with bg-[#eee] we do get the opacity variable: Docs
Moreover, magically hsla value is parsed correctly and --un-bg-opacity is assigned proper value: playground
I guess, it is working as intended because we have to handle the case where opacity might be defined in CSS var itself: playground (checkout the last demo)
Closing this.

authors: chris-zhu chu121su12 jd-solanki

repo: unocss/unocss


text:
[@unocss/postcss] [object Object] is not a PostCSS plugin

UnoCSS version
latest
Describe the bug
[postcss] [object Object] is not a PostCSS plugin
Reproduction
https://stackblitz.com/fork/github/unocss/unocss/tree/main/examples/vite-svelte-postcss
System Info
No response
Validations

[X] Read the Contributing Guidelines.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I am pretty sure that  this was caused by the recent migration of UnoCSS to ESM-only. To fix this you will have to rename your config file to postcss.config.mjs and replace module.exports = ... with export const config = ...

I am pretty sure that this was caused by the recent migration of UnoCSS to ESM-only. To fix this you will have to rename your config file to postcss.config.mjs and replace module.exports = ... with export const config = ...

Yeah, it starts successfully but don't generate CSS either

You can fix this by importing modules in your config file:
import unocss from '@unocss/postcss';
import autoprefixer from 'autoprefixer';

export default {
  plugins: [
    unocss(),
    autoprefixer(),
    // ...other plugins
  ],
};

unocss(),

Thank you, it works now. Might update docs later.

authors: Jungzl geodic mevlutbucan


text:
[Bug]: npm run build error  import { toTypedSchema } from "@vee-validate/zod";          ^^^^^^^^^^^^^

Reproduction
https://vite.new
Describe the bug
script to run › build

shadcn-vue@0.11.3 build /Users/shadcn-vue
pnpm --filter www build

www@0.11.3 build /Users/johnny/safeis/shadcn-vue/apps/www
vitepress build

vitepress v1.4.1
⠏ building client + server bundles...
(!) Some chunks are larger than 500 kB after minification. Consider:

Using dynamic import() to code-split the application
Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
Export "Content" of module "../../node_modules/.pnpm/vitepress@1.4.1_@algolia+client-search@4.24.0_@types+node@22.7.7_postcss@8.4.47_search-insigh_godqktsonvfnxxvm7zg6qe46z4/node_modules/vitepress/dist/client/app/components/Content.js" was reexported through module "../../node_modules/.pnpm/vitepress@1.4.1_@algolia+client-search@4.24.0_@types+node@22.7.7_postcss@8.4.47_search-insigh_godqktsonvfnxxvm7zg6qe46z4/node_modules/vitepress/dist/client/index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in ".vitepress/theme/layout/MainLayout.vue?vue&type=script&setup=true&lang.ts" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.
✓ building client + server bundles...
build error:
Named export 'toTypedSchema' not found. The requested module '@vee-validate/zod' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@vee-validate/zod';
const { toTypedSchema } = pkg;
file:///Users/shadcn-vue/apps/www/.vitepress/.temp/app.js:43
import { toTypedSchema } from "@vee-validate/zod";
^^^^^^^^^^^^^
SyntaxError: Named export 'toTypedSchema' not found. The requested module '@vee-validate/zod' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@vee-validate/zod';
const { toTypedSchema } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async build (file:///Users/shadcn-vue/node_modules/.pnpm/vitepress@1.4.1_@algolia+client-search@4.24.0_@types+node@22.7.7_postcss@8.4.47_search-insigh_godqktsonvfnxxvm7zg6qe46z4/node_modules/vitepress/dist/node/serve-4DnZ8_Si.js:48721:24)

/Users/johnny/safeis/shadcn-vue/apps/www:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  www@0.11.3 build: vitepress build
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.
System Info
System:
    OS: macOS 14.6.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 91.69 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.14.0/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v20.14.0/bin/npm
    pnpm: 9.14.4 - ~/.nvm/versions/node/v20.14.0/bin/pnpm
  Browsers:
    Chrome: 131.0.6778.109
    Safari: 17.6

Contributes

[ ] I am willing to submit a PR to fix this issue
[ ] I am willing to submit a PR with failing tests

rm  pnpm-lock.yaml
pnpm install
✅

repo: unovue/shadcn-vue


text:
Broken Unreal Archive EU mirrors

Mirrors since 2022-12-05 on 2022-12-25 for some files are busted. XML error, but only for some. An example.

Thanks for the report, please try again, I think its fixed now.

Yup, seems all good now.

authors: PootisKorn shrimpza

repo: unreal-archive/unreal-archive-data


text:
Fix InlineKeyboardButtonArray

Seems like now it's broken.
With this PR we can create buttons like this:
$markup = new Markup([
    'inline_keyboard' => [
        [
            ['text' => '1', 'callback_data' => 'k=1'],
            ['text' => '2', 'callback_data' => 'k=2'],
        ],
        [
            ['text' => '3', 'callback_data' => 'k=3'],
            ['text' => '4', 'callback_data' => 'k=4'],
        ]
    ]
]);
$sendMessage->reply_markup = $markup;

After reviewing your changes I must say... clever way of creating an inline keyboard, hadn't thought of that!
Thanks, I just released https://github.com/unreal4u/telegram-api/releases/tag/v2.4.1 which implements this change. Thanks!


text:
gofmt

Just ran
gofmt -w .

on the project root. That's all.
https://blog.golang.org/go-fmt-your-code

I made this PR with a project going on over at https://github.com/rotblauer/gofmt-att, and it's definitely a work in progress. So if I got something wrong, or this is annoying at all, please file an issue over there and we'll sort it out.

This project is no longer active.

@unrolled Oh, sorry. Just a heads up -- you can use Github's "archive" mode to make repos read-only.

authors: unrolled whilei

repo: unrolled/tango


text:
Some supplements and small fixes

Supplemented stuff I needed when developing with the library, fixed some minor bugs, please refer to commit messages for details.
Since VSCode automatically formats every time I save, I formatted all the code in one commit, so the diff might look a bit messy.
BTW, I'm new to Rust, so some of the code may not be best practices, please let me know or edit the code directly. Thanks!

It's probably better at least splitting the formatting part into a separate PR.
@uonr What do you think?

@upsuper Most of them are simple formatting of examples, just merge it this time.

Thanks!

It's probably better at least splitting the formatting part into a separate PR.

@upsuper I'll pay attention next time.

authors: SpriteOvO uonr upsuper

repo: uonr/telegram-types


text:
🛑 Paris, France is down

In ec44b0f, Paris, France ($PARIS) was down:

HTTP code: 502
Response time: 101 ms

Resolved: Paris, France is back up in 0aa8378 after 5 minutes.


text:
fix(networkfirewall): fixed import for networkfirewall resources

Description of your changes

fix import for the following networkfirewall resources:
aws_networkfirewall_firewall_policy
aws_networkfirewall_rule_group

2)implement missing ref/selector for ruleGroup in aws_networkfirewall_firewall_policy
3)add more complex example for aws_networkfirewall_firewall_policy and aws_networkfirewall_rule_group

Fixes #658
Fixes #657
I have:

[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested
kubectl apply -f firewallpolicy-complex.yaml
firewallpolicy.networkfirewall.aws.upbound.io/example-default-policy created
rulegroup.networkfirewall.aws.upbound.io/example-forward-all created
rulegroup.networkfirewall.aws.upbound.io/example-allow-domainlist created
rulegroup.networkfirewall.aws.upbound.io/example-deny created

NAME                                                                   READY   SYNCED   EXTERNAL-NAME            AGE
firewallpolicy.networkfirewall.aws.upbound.io/example-default-policy   True    True     example-default-policy   3m17s

NAME                                                                READY   SYNCED   EXTERNAL-NAME              AGE
rulegroup.networkfirewall.aws.upbound.io/example-allow-domainlist   True    True     example-allow-domainlist   3m17s
rulegroup.networkfirewall.aws.upbound.io/example-deny               True    True     example-deny               3m17s
rulegroup.networkfirewall.aws.upbound.io/example-forward-all        True    True     example-forward-all        3m17s

updated deletionPolicy: Orphan
kubectl delete -f firewallpolicy-complex.yaml
firewallpolicy.networkfirewall.aws.upbound.io "example-default-policy" deleted
rulegroup.networkfirewall.aws.upbound.io "example-forward-all" deleted
rulegroup.networkfirewall.aws.upbound.io "example-allow-domainlist" deleted
rulegroup.networkfirewall.aws.upbound.io "example-deny" deleted

kubectl apply -f firewallpolicy-complex.yaml
firewallpolicy.networkfirewall.aws.upbound.io/example-default-policy created
rulegroup.networkfirewall.aws.upbound.io/example-forward-all created
rulegroup.networkfirewall.aws.upbound.io/example-allow-domainlist created
rulegroup.networkfirewall.aws.upbound.io/example-deny created

NAME                                                                   READY   SYNCED   EXTERNAL-NAME            AGE
firewallpolicy.networkfirewall.aws.upbound.io/example-default-policy   True    True     example-default-policy   1m12s

NAME                                                                READY   SYNCED   EXTERNAL-NAME              AGE
rulegroup.networkfirewall.aws.upbound.io/example-allow-domainlist   True    True     example-allow-domainlist   1m12s
rulegroup.networkfirewall.aws.upbound.io/example-deny               True    True     example-deny               1m12s
rulegroup.networkfirewall.aws.upbound.io/example-forward-all        True    True     example-forward-all        1m12s

cannot add breaking change to this PR :/

/test-examples="examples/networkfirewall/firewall.yaml"

/test-examples="examples/networkfirewall/firewallpolicy-complex.yaml"

@ulucinar  any idea for the issue for import ? the only thing which helped was to switch the identifier - great to hear your feedback ;)

@ulucinar  we can remove the breaking-change label then

/test-examples="examples/networkfirewall/firewallpolicy-complex.yaml"

repo: upbound/provider-aws


text:
Moving cdn (1) resource to v1beta1 version

Moving 1 resource to v1beta1 version

[ ] azurerm_cdn_endpoint_custom_domain

targetResourceIdSelector doesn't seem to work.
   message: 'apply failed: creating/updating CNAME Record "testdnscnamerecordnametuetest"
      (DNS Zone "endpointnametesttesttue.azureedge.net" / Resource Group "testrgroupnametuetesttest"):
      dns.RecordSetsClient#CreateOrUpdate: Failure responding to request: StatusCode=400
      -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest"
      Message="The referenced resource ''/subscriptions/038f2b7c-3265-43b8-8624-c9ad5da610a8/resourceGroups/testrgroupnametuetesttest/providers/Microsoft.Network/dnszones/endpointnametesttesttue.azureedge.net''
      was not found": '

  message: 'cannot resolve references: mg.Spec.ForProvider.TargetResourceID: no
      resources matched selector'

endpointcustomdomain.txt

repo: upbound/provider-azure


text:
Add UPBOUND_MARKETPLACE_PUSH_ROBOT_USR to env

Description of your changes
This PR added UPBOUND_MARKETPLACE_PUSH_ROBOT_USR to env
I have:

[x] Run make reviewable test to ensure this PR is ready for review.

Docker login is now not being skipped:

authors: turkenf ulucinar

repo: upbound/uptest


text:
multiple sendTransactions in short time: same nonce -> replacement transaction underpriced

Hi,
when I send a few transactions in a short time, only the first one goes through. In the debug log I see the following error message:
daf:ethr-did:identity-controller [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32000,"message":"replacement transaction underpriced"}}'

To give you a reproducable example I created an minimal example repository where I add two services (one right after the other). The first one works but the second one will fail:
for (let i = 0; i < 2; i++) {
  const result = await identity.identityController.addService({
    type: "TestService", serviceEndpoint: `https://${i}.testservice.example.com`,
  });
}

Based on the debug error message I came to the conclusion that both transactions use the same nonce and thus the second one is rejected.
The cause seems to be in ethjs-provider-signer where the transaction count is retrieved and used as nonce. Somehow the previous transaction didn't increment the count yet (maybe because it's not yet in a block?) so the same nonce will be used again.
Possible fixes (?):

resolve Promise returned by addService() after transaction is validated
make sure transactionCount also counts unvalidated transactions (→ not an issue in this repo)
inject a nonce based on the knowledge that there is some pending transaction (?)

If I understand everything correctly I think this might be a bug of how transactionCount works and should be fixed there? Can anyone confirm this? Then it would not be a bug in this repo but somewhere else. In parallel I will investigate this further to find the root cause.
Maybe something similar: When I run getDidDocument() right after adding a service, the service is not yet there (probably transaction is sent but not yet validated in a block).

Thank you for reporting this.
Kudos on the very detailed bug report!
Indeed, the generic solution is to use eth_getTransactionCount with the pending block param ( the use of latest is because of legacy reasons, it is not meant to be a general solution).
Depending on the security and consistency constraints, some apps may not want to do this by default, though. So there should be some flexibility here.
We plan to switch to ethers.js as the ethereum layer since it has some nice features that would help here, like using a Promise to resolve the nonce.
This will be done first in ethr-did since that is where the logic for this boils to.
This needs to be paired with some more flexibility to override some transaction parameters when calling these methods from DAF.
relates to #224 #205

authors: mirceanis nikolockenvitz

repo: uport-project/daf


text:
InventoryDB rewrite

From @awwad on November 2, 2016 14:35
InventoryDB (uptane/services/inventorydb.py) is a simple module in the reference implementation that stores information about vehicles and ECUs. The only module in the reference implementation that should interact with inventorydb is director (uptane/services/director.py).
What it currently does is to store simple JSON files containing the manifest data. The way it does this feels inappropriate for the reference implementation. Everything in the reference implementation should be clear and modular, easy to understand, easy to replace.
As such, I think that the best way to write inventorydb for the reference implementation is probably to just store things in a single dictionary in memory and have a call to write it to disk when needed. That way, it's very simple and it can be obvious how to replace it with something appropriate for the implementer.
Something like:
{
  'vehicle manifests':
  {
    'vehicle_id_1': [ <full vehicle manifests, in order of receipt> ],
    'vehicle_id_2': [ <full vehicle manifests, in order of receipt> ],
    ...
  },
  'public_keys':
  {
    'vehicle_primaries':
    {
      'vehicle_id_1': {ecu_id: 'primary_ecu_id', public_key: <publickey for primary ecu> },
      'vehicle_id_2': {ecu_id: 'primary_ecu_id', public_key: <publickey for primary ecu> },
      ...
    }
    'all_ecus':
    {
      'ecu_serial_2': <publickey>,
      'ecu_serial_3': <publickey>,
      ...
    }
  }
}

Could also add something like this for convenience, but it's redundant, so I'll leave it out:
'attack_info': {'vehicle_id_1': { 'ecu_serial_2': [] }
Copied from original issue: awwad/uptane#5

I've merged in a rewritten version of the PR provided. Next, I'm going to make some more tweaks to allow the data to be stored persistently again.

repo: uptane/uptane


text:
Add support for gps rebase --continue

We need to support the --continue switch for the gps rebase command.

This has been integrated into mainline. Therefore I am closing this issue.

repo: uptech/git-ps-rs


text:
[agent] Kubernetes integration

Emit node events (e.g. button press) to k8s
Control hardware features based on annotations

Turns out this is quite difficult with talos Linux due to security hardening and lack of /dev/mem support. It'd be wise to move the WS2812 LED logic to a kernel module instead and ship it as extension

repo: uptime-industries/compute-blade-agent


text:
update: *DB and Tx implement tha same interface "QueryExecuter"

@max107
Hello! I just wanted to make one suggestion, and I'm a PR.
*DB and Tx to implement a common interface "QueryExecuter". Otherwise, if we want to handle transactions in the usecase layer in clean architecture, etc., the usecase must directly hold *bun.
*DB and bun.Tx to implement a common interface, it would be easier to use transaction processing in the usecase layer by using context.
For a concrete example, look at the following sample code(For the sake of simplification, usecase and repository are not interfaces but structs.)
repository layer
type (
  DBExecuter interface {
      GetDB(context.Context) bun.QueryExecuter
  }
  dbExecuterChild struct {
      db *bun.DB
  }
)
var txKey struct{}

func DoInTx[T any](ctx context.Context, db *bun.DB, f func(context.Context)(T,error)){
  var result T
  tx, err := db.BeginTx(ctx)
  if err != nil {
    return T, err
  }
  ctx = context.WithValue(ctx, txKey, tx)
  result, err = f(ctx)
  if err != nil {
    if err := tx.RollBack(); err != nil {
      return result, err
    }
    return result, err
  }
  if err := tx.Commit(); err != nil {
    return result, err
  }
  return result, nil
}

func NewDBExecuter(db *bun.DB) DBExecuter {
    return &dbExecuterChild{db: db}
}

func(de *dbExecuterChild) GetDB(ctx context.Context) bun.QueryExecuter {
  tx, ok := ctx.Value(txKey).(bun.Tx)
  if ok {
       return tx
  }
  return de.db
}

type (
  RepositoryA struct {
      db DBExecuter
  }
  SampleData struct {
    ID int64 `bun:"id"`
    Name string `bun:"name"`
  }
)
func (r *RepositoryA) GetDB() bun.QueryExecuter {
  return r.db
}
func (r *RepositoryA) GetData(ctx context.Context, model SampleData) (SampleData, error){
    if err := r.db.GetDB(ctx).NewSelect().Model(&model).Scan(ctx); err != nil {
        return nil, err
    }
    return model, nil
}
func (r *RepositoryA) InsertData(ctx context.Context, model SampleData)  error {
    return r.db.GetDB(ctx).NewInsert().Model(&model).Exec(ctx)
}

usecase layer
type (
  UseCase struct {
      repository repository.RepositoryA
  }
)

func(u *UseCase) GetData(ctx context.Context)( repositry.SampleData, error){
  result, err := u.repository.GetData(ctx, repositry.SampleData{})
  ...
}
func(u *UseCase) InsertData(ctx context.Context) error {
  return repository.DoInTx(ctx, u.repository.GetDB(), f func(ctx context.Context)(repositry.SampleData ,error)){
    result, err := u.repositoryA.InsertData(ctx, repositry.SampleData{ID: 1, Name: "sample"})
    ...
    return nil
  }
}

If you have any questions about something you are not sure about, please ask!

@toyohashi6140 did you see the IDB interface? It seems to do the same already
// IDB is a common interface for *bun.DB, bun.Conn, and bun.Tx.
type IDB interface {
	IConn
	Dialect() schema.Dialect

	NewValues(model interface{}) *ValuesQuery
	NewSelect() *SelectQuery
	NewInsert() *InsertQuery
	NewUpdate() *UpdateQuery
	NewDelete() *DeleteQuery
	NewRaw(query string, args ...interface{}) *RawQuery
	NewCreateTable() *CreateTableQuery
	NewDropTable() *DropTableQuery
	NewCreateIndex() *CreateIndexQuery
	NewDropIndex() *DropIndexQuery
	NewTruncateTable() *TruncateTableQuery
	NewAddColumn() *AddColumnQuery
	NewDropColumn() *DropColumnQuery

	BeginTx(ctx context.Context, opts *sql.TxOptions) (Tx, error)
	RunInTx(ctx context.Context, opts *sql.TxOptions, f func(ctx context.Context, tx Tx) error) error
}

@vmihailenco I missed it, thank you.

repo: uptrace/bun


text:
The gRPC port is not accessible

The http port is defined in the statefulset, but the gRPC port is not. Similarly, the http port is exposed in the service, but the gRPC is not. I can open a PR for this change.
Also, I think the two service ports should also be part of the statefulset template and of the uptrace config, so that the same port is used end to end and a user can copy-paste the UPTRACE_DSN he sees in Uptrace.
For example, my uptrace is accessible at https://uptrace.xxx.yyy (on port 443) and users see:

Users need to replace localhost with the actual address which is not ideal, but easy to figure out, compared to realizing that they need to use port 443 (or 80) instead of 14318. I also would also liked Uptrace more if it showed 443 in the text instead of 14318 which seems hardcoded.
My service:
    ports:
    - name: http
      nodePort: 31386
      port: 443
      protocol: TCP
      targetPort: http
    - name: grpc
      nodePort: 31524
      port: 14317
      protocol: TCP
      targetPort: grpc

statefulset:
        ports:
        - containerPort: 443
          name: http
          protocol: TCP
        - containerPort: 14317
          name: grpc
          protocol: TCP

and the pods:
tcp        0      0 :::14317                :::*                    LISTEN      13/uptrace
tcp        0      0 :::443                  :::*                    LISTEN      13/uptrace

The http port is defined in the statefulset, but the gRPC port is not. Similarly, the http port is exposed in the service, but the gRPC is not. I can open a PR for this change.

Yes. please open a PR. Perhaps @aramperes knows the reason why the gRPC port is not there...

I also would also liked Uptrace more if it showed 443 in the text instead of 14318 which seems hardcoded.

I believe this is already possible, but was poorly documented - see Changing ports
Fill the details, restart Uptrace, and it should display the correct help message.

443 is the port I've put in the Uptrace config and 14318 seems hardcoded in the page.

Thanks for reporting, should be fixed by https://github.com/uptrace/uptrace/commit/30034b5220117aa91117e57d525ee941daf02ac8

authors: alexandrujieanu vmihailenco

repo: uptrace/helm-charts


text:
Minimum requirements

django-letsencrypt forces django to update when installing. Can you set a minimum requirement?

@khamaileon can you offer me a little more insight into your problem? As far as I can tell the library should already be offering a minimum requirement.
In the project's setup.py I am targeting Django>=1.8.16 which should cover the minimum requirement already.
You can see it here: https://github.com/urda/django-letsencrypt/blob/master/setup.py#L37
This is also reflected on pypi:

@khamaileon I have a feeling that you have another package that's kicking your Django version up. It should not be django-letsencrypt though.
I was unable to reproduce your issue as follows:
Python 3
$ mkvirtualenv gh-31 -p $(which python3)
Running virtualenv with interpreter /usr/local/bin/python3
Using base prefix '/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6'
New python executable in /path/to/.virtualenvs/gh-31/bin/python3.6
Also creating executable in /path/to/.virtualenvs/gh-31/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31/bin/predeactivate
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31/bin/postdeactivate
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31/bin/preactivate
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31/bin/postactivate
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31/bin/get_env_details
Requirement already up-to-date: pip in /path/to/.virtualenvs/gh-31/lib/python3.6/site-packages
Requirement already up-to-date: wheel in /path/to/.virtualenvs/gh-31/lib/python3.6/site-packages

$ pip install Django==1.8.16
Collecting Django==1.8.16
  Using cached Django-1.8.16-py2.py3-none-any.whl
Installing collected packages: Django
Successfully installed Django-1.8.16

$ pip freeze
Django==1.8.16

$ pip install django-letsencrypt
Collecting django-letsencrypt
  Using cached django_letsencrypt-1.1.0-py2.py3-none-any.whl
Requirement already satisfied: Django>=1.8.16 in /path/to/.virtualenvs/gh-31/lib/python3.6/site-packages (from django-letsencrypt)
Collecting pytz>=2016.10 (from django-letsencrypt)
  Using cached pytz-2016.10-py2.py3-none-any.whl
Installing collected packages: pytz, django-letsencrypt
Successfully installed django-letsencrypt-1.1.0 pytz-2016.10

$ pip freeze
Django==1.8.16
django-letsencrypt==1.1.0
pytz==2016.10

Python 2
$ mkvirtualenv gh-31-py2 -p $(which python2)
Running virtualenv with interpreter /usr/local/bin/python2
New python executable in /path/to/.virtualenvs/gh-31-py2/bin/python2.7
Also creating executable in /path/to/.virtualenvs/gh-31-py2/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31-py2/bin/predeactivate
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31-py2/bin/postdeactivate
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31-py2/bin/preactivate
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31-py2/bin/postactivate
virtualenvwrapper.user_scripts creating /path/to/.virtualenvs/gh-31-py2/bin/get_env_details
Requirement already up-to-date: pip in /path/to/.virtualenvs/gh-31-py2/lib/python2.7/site-packages
Requirement already up-to-date: wheel in /path/to/.virtualenvs/gh-31-py2/lib/python2.7/site-packages

$ pip install Django==1.8.16
Collecting Django==1.8.16
  Using cached Django-1.8.16-py2.py3-none-any.whl
Installing collected packages: Django
Successfully installed Django-1.8.16

$ pip freeze
Django==1.8.16

$ pip install django-letsencrypt
Collecting django-letsencrypt
  Using cached django_letsencrypt-1.1.0-py2.py3-none-any.whl
Collecting pytz>=2016.10 (from django-letsencrypt)
  Using cached pytz-2016.10-py2.py3-none-any.whl
Requirement already satisfied: Django>=1.8.16 in /path/to/.virtualenvs/gh-31-py2/lib/python2.7/site-packages (from django-letsencrypt)
Installing collected packages: pytz, django-letsencrypt
Successfully installed django-letsencrypt-1.1.0 pytz-2016.10

$ pip freeze
Django==1.8.16
django-letsencrypt==1.1.0
pytz==2016.10

If you have any further questions or input, please feel free to add them to this issue.

Sorry for the late answer. App was on Django 1.7.8 and I wasn't aware how Pypy works.
Thanks for the help :+1:

Sounds good! Just a heads up, this django app, like many other django app does it's best to follow the "Supported Versions" of Django available. Just so you know 1.7.8 support ended well over a year ago and you should consider upgrading @khamaileon .
You can read more about them here.

authors: khamaileon urda

repo: urda/django-letsencrypt


text:
add(wip): multicam example + documentation

I would like Multicam support, this doesn't add it
But it does document it

Also, can we get a new crates.io release for this? There is a warning that is in the development branch but not released that has had me confused for a while now ... :)

damn that was fast thanks

repo: urholaukkarinen/transform-gizmo


text:
Remove the kypher api lock

There is, potentially, no more need of a kypher api lock while querying the database. Removing this lock will allow for parallel database queries

If I create multiple Kypher API objects and start querying the cache simultaneously, the app freezes and there is no response.
I then have to kill the processes manually.
Need another approach

Fixed by creating a class for the backend kypher api


text:
Allow users to remove wikified qnodes

Right now there is no way to remove wikification from a particular cell, we should probably allow users to remove wikifications.

@devowit could you take a look at this remove_qnode endpoint I just added? It takes in the same parameters as the set_qnode function but should work in reverse, removing relevant lines from the user-input-wikification.csv.
You can find this remove_qnode function here (feature/remove-wikification branch):
https://github.com/usc-isi-i2/t2wml/blob/feature/remove-wikification/backend/application.py#L623

pushed in branch version/2.8.0


text:
Merge release to develop for release 4.5.0

PR Details
Description
Merge PR to formalize release of master into develop as part of CARMA release process for 4.5.0.
PR created automatically via CARMA release tool and Github CLI
Motivation and Context
This PR brings the tested and reviewed contents of the master release/candidate into develop for final release preparation
How Has This Been Tested?
This release branch (minus final version number changes) has been tested through the CARMA verification test plan.
Checklist:

[X] I have added any new packages to the sonar-scanner.properties file
[X] My change requires a change to the documentation.
[X] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
CARMA Contributing Guide
[X] I have added tests to cover my changes.
[X] All new and existing tests passed.

The base is incorrect. Let's make PR from carma-master


text:
reduce concurrency of dorado jobs

Set dorado mem the same as alphafold mem so that not too many jobs will run at once

they are running out of GPU memory
nvidia-smi
Mon Oct  7 10:06:33 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.90.07              Driver Version: 550.90.07      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA A100-PCIE-40GB          Off |   00000000:00:08.0 Off |                    0 |
| N/A   58C    P0            251W /  250W |   27095MiB /  40960MiB |    100%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      8243      C   dorado                                       4964MiB |
|    0   N/A  N/A      8246      C   dorado                                       4794MiB |
|    0   N/A  N/A      8248      C   dorado                                       4794MiB |
|    0   N/A  N/A      8330      C   dorado                                       4794MiB |
|    0   N/A  N/A      8332      C   dorado                                       4794MiB |
|    0   N/A  N/A      8822      C   dorado                                       2918MiB |
+-----------------------------------------------------------------------------------------+

repo: usegalaxy-au/infrastructure


text:
extend keycloak to allow search/filter on a group attribute

Currently, when looking up information about groups via graphql, all the groups from keycloak are loaded into the api and then filtered. This is a costly query to run often. We should extend Keycloak to allow for searching for groups which have a specific attribute.

This need is superseded with current planning.

authors: tobybellwood twardnw

repo: uselagoon/lagoon


text:
Special characters in build logs are not properly displayed

Describe the bug
Any special characters printed in the build logs of a deployment are not properly displayed in the Lagoon API or UI.
To Reproduce
Steps to reproduce the behavior:

Create a post rollout tasks that outputs umlauts https://github.com/amazeeio-demos/drupal-example-8/blob/main/.lagoon.yml#L13-L16
Run a deployment
Look at build logs, the special characters are broken: https://dashboard.amazeeio.cloud/projects/drupal-example-8/drupal-example-8-main/deployments/lagoon-build-pk3kyr

*** Task STDOUT ***
 C$C6C<

Expected behavior
Umlauts are correctly shown, like when looking at the build logs directly via kubectl logs
*** Task STDOUT ***
 äöü

Additional context
This doesn't seem to be a problem specifically to the post rollout tasks but anything that outputs special characters in the build logs, it's just that usually the other logs don't really have any umlauts, etc.

Oh this is a fun one! It looks like somewhere between the terminal output and the web page the output stream is being converted to 7-bit ASCII (most likely?), which is zeroing the high bit.
$ ruby -e "p 'äöü'.unpack('C*').map{|c| c & 0b01111111}.pack('C*')"
"C$C6C<"

authors: Schnitzel smlx


text:
markdown语法支持的不是太好

好多markdown语法都不支持，比如引用，标题，好多都无法实现，希望大佬支持，还有能有个别的颜色的背景和主题

不会完全支持 markdown，目前支持了部分常用的语法：加粗、斜体、列表、代码块、链接等。
毕竟 memos 不是来写文章的，所以不会去支持标题的语法，不过可以加一个引用。

Related issue: #151

repo: usememos/memos


text:
Add the function of exporting universal backups and importing backups

Describe the solution you'd like
Memos now support export all the memos that have been created by users , however, ordinary users cannot use these markdown files for Memos migration, especially when two Memos use different Databases (For example: SQLite and MySQL)
So I hope that Memos could add the functions of exporting universal backups and importing backups
Type of feature
User Experience (UX)
Additional context
The previous issue #3741 has been automatically closed by bot

Is it possible to add such similar function in future versions? I thought the function is really important for some users who has the habit of backing up

I created scripts to migrate between 2 different databases. You can try them.
https://github.com/tigerzioo/memos_sqlite2mysql

Duplicated with https://github.com/usememos/memos/issues/3802

authors: boojack sysfox tigerzioo


text:
logging "Could not load Userflow.js" on failure of script loading

When the remove script of useflow fails to load, an error is logged using console.error in addition to the fact that the promise is rejected. This results in multiple errors being reported in different ways, which clutters the error reporting. Can you please demote the severity of the logging to console.warn? The promise rejection already ends up in console as an error, and can be caught by the caller of userflow.load and handled appropriately.

We've made the necessary adjustments to demote the severity of the logging to console.warn in our new version Userflow@2.12.1.
Thank you for your feedback!

authors: mesfahanisimscale vigbeamer


text:
Can you even Emulate with UTM SE?

Describe the issue
Trying to Emulate Debian 12 on Iphone Xs but OS Freezes during Loading. I tried to load anything from Windows 11 to 7 and many other OS none do work when Emulating. As stated on the website, emulation is slower, but it doesn't say impossible to run. The IOS documentation on the website is a very lacking. Default Disk-Space is also below 3 Gb on this Debian 12 Configuration.
Configuration

UTM Version: 4.5.4
OS Version:  17.6.1
Device Model: Iphone Xs
Jailbroken: No (Emulation)
How did you istall UTM: Appstore

Debug log
debug.log
Used VM
(https://mac.getutm.app/gallery/debian-12)
Tried:
Windows 11 (Converted)
Tiny 11 (Converted)
Windows 10 (Converted)
Windows 7 (UTM Recommendet Version)
Debian 12 (UTM Recommendet)

For some reason AppStore UTM SE is unable to run things that are working fine on Mac version with same settings. Is there any particular reason why UTM SE compatibility is worse?

UTM SE (slow edition) is a lot slower because the appstore doesnt allow the use of JIT. I would recommend using a lighter weight guest OS for virtualization. https://github.com/utmapp/UTM?tab=readme-ov-file#utm-se

UTM SE (slow edition) is a lot slower because the appstore doesnt allow the use of JIT. I would recommend using a lighter weight guest OS for virtualization. https://github.com/utmapp/UTM?tab=readme-ov-file#utm-se

Can you recommend a specific one?

@Zack13358 It's not only slower but compatibility is worse for some reason too. I tried running Windows NT 4 on UTM SE on iPad and installation crashed but with exactly same settings it worked fine on Mac version.

@Zack13358 It's not only slower but compatibility is worse for some reason too. I tried running Windows NT 4 on UTM SE on iPad and installation crashed but with exactly same settings it worked fine on Mac version.

Yeah NT 4.0 is EXTREMELY picky on what it runs on, and win 9x doesn’t really like hypervisors / virtualization. I haven’t tested it yet but win 2k and / or win XP might be a little too heavy to run on UTM SE so really the best you’ll be able to do is win 3x -_-

repo: utmapp/UTM


text:
Warning message in Godot console [resource_format_text.cpp]

A yellow warning is displayed in the console. Fmod works so far.
The warning always appears when you restart Godot, so it is permanently displayed.
How do I get rid of the warning text?
Godot Engine v4.2.2.stable.mono.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started ---
--- GDScript language server started on port 6005 ---
  scene/resources/resource_format_text.cpp:448 - res://addons/fmod/tool/property_editors/FmodGuidAndPathPropertyEditorUi.tscn:4 - ext_resource, invalid UID: uid://dca7c6jnnpl0f - using text path instead: res://addons/fmod/icons/event_icon.svg
Autoload hinzufügen

Screenshot

It seems there is a mismatch between the UID declared in the scene:
https://github.com/utopia-rise/fmod-gdextension/blob/b878f5cfa385322bd2270272d31c0bc3520397dd/demo/addons/fmod/tool/property_editors/FmodGuidAndPathPropertyEditorUi.tscn#L4
and the actual resource UID:
https://github.com/utopia-rise/fmod-gdextension/blob/b878f5cfa385322bd2270272d31c0bc3520397dd/demo/addons/fmod/icons/event_icon.svg.import#L5.
It should be an easy fix.
On your side, you can simply open addons/fmod/tool/property_editors/FmodGuidAndPathPropertyEditorUi.tscn and save it again. It should automatically update the UID

authors: CedNaru DevMimas

repo: utopia-rise/fmod-gdextension


text:
Feature/game of life benchmark

GameOfLife benchmark is ready.
Build, open the godot project, inspect the main node and change the language you want to use.
Launch the game and enjoy how quick Koturtle can be.

Running on I5 4690K,16 GB, Windows 10:
Kotlin: 458 seconds
GdScript: 13 seconds
Time it takes for 1000 cycles, lower is better.

repo: utopia-rise/godot-kotlin


text:
Index Error: uninformative error

When the number of attributes differ from number of values, an uinformative error such as the following is given:
net = ml.read(main_path+"/data/"+dataset_name+"/"+dataset_name+"_graph.txt") IndexError: vector::_M_range_check: __n (which is 76) >= this->size() (which is 76)
This error does not indicate for which attribute a value is not provided.

rice_graph.txt

Added a meaningful error message - for the provided example, it prints:
Format error: [line 18] actor1 name, actor2 name and layer name expected
(Development branch)

authors: NorAlnaami magnanim


text:
wc: Use fadvise() before read()-ing

Using strace, we can see that GNU wc does this. See: http://man7.org/linux/man-pages/man2/posix_fadvise.2.html
strace /usr/bin/wc -c -l:
openat(AT_FDCWD, "README.md", O_RDONLY) = 3
fadvise64(3, 0, 0, POSIX_FADV_SEQUENTIAL) = 0
read(3, "uutils coreutils\n==============="..., 16384) = 10675
read(3, "", 16384)                      = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}) = 0
write(1, "  358 10675 README.md\n", 22  358 10675 README.md
) = 22
close(3)                                = 0

I imagine this could apply to more than just wc.

Specifically we should probably use posix_fadvise(), and on macOS we can sometimes use fcntl() it seems.

authors: Arcterus ArniDagur

repo: uutils/coreutils


text:
Move help strings to markdown files

After https://github.com/uutils/coreutils/issues/2816 and https://github.com/uutils/coreutils/pull/3180.
Below is a list of utils that need to be converted. Let's see if GitHub's task lists are useful here. All of them should be considered good-first-issues.
If you want to pick one up:

Click on convert  to issue (in web Github it's the circle that appears to the right when you hover the item).
Copy the text to the markdown file, following the structure in numfmt.md.
Reference the file using the help_section and help_usage macros
Fix the formatting. Try to check both the --help text and the text generated by uudoc.
Post a PR referencing the issue.

Note that some utils (like who) have platform-specific help texts. We should probably leave those until we have a good solution for that.

[ ] arch
[x] base32 (https://github.com/uutils/coreutils/pull/3180)
[x] base64 (https://github.com/uutils/coreutils/pull/3180)
[ ] basename
[ ] basenc
[ ] cat
[ ] chcon
[ ] chgrp
[ ] chmod
[ ] chown
[ ] chroot
[ ] cksum
[ ] comm
[ ] cp
[ ] csplit
[ ] cut
[ ] date
[x] dd (https://github.com/uutils/coreutils/pull/3938)
[ ] df
[ ] dir
[ ] dircolors
[ ] dirname
[ ] du
[ ] echo
[ ] env
[ ] expand
[x] expr (https://github.com/uutils/coreutils/pull/4158)
[ ] factor
[ ] false
[ ] fmt
[ ] fold
[ ] groups
[ ] hashsum
[ ] head
[ ] hostid
[ ] hostname
[ ] id
[ ] install
[ ] join
[ ] kill
[ ] link
[ ] ln
[ ] logname
[ ] ls
[ ] mkdir
[ ] mkfifo
[ ] mknod
[ ] mktemp
[ ] more
[ ] mv
[ ] nice
[ ] nl
[ ] nohup
[ ] nproc
[x] numfmt (https://github.com/uutils/coreutils/pull/3180)
[ ] od
[ ] paste
[ ] pathchk
[ ] pinky
[ ] pr
[ ] printenv
[ ] printf
[ ] ptx
[ ] pwd
[ ] readlink
[ ] realpath
[ ] relpath
[ ] rm
[ ] rmdir
[ ] runcon
[ ] seq
[ ] shred
[ ] shuf
[ ] sleep
[ ] sort
[ ] split
[x] stat (https://github.com/uutils/coreutils/pull/4367)
[ ] stdbuf
[ ] stty
[ ] sum
[ ] sync
[ ] tac
[ ] tail
[ ] tee
[ ] test
[ ] timeout
[ ] touch
[ ] tr
[ ] true
[ ] truncate
[ ] tsort
[ ] tty
[ ] uname
[ ] unexpand
[ ] uniq
[ ] unlink
[ ] uptime
[ ] users
[ ] utils.txt
[ ] vdir
[ ] wc
[ ] who
[ ] whoami
[ ] yes

It doesn't appear to be possible to Convert to Issue with my permissions, I checked on multiple browsers and proved that it was working on a project where I have sufficient perms.

Oh I hoped that would be possible. That's too bad. I'll figure out some other way to track this. In the meantime you can just create a PR and I'll update the list manually.

We could just accept PRs that mention the utils they update and then we manually update, but that's not a great solution. Also, with a project like this, we get situations like this quite often, so I'd like to find a better solution. @sylvestre any ideas?

What should be the order of the sections inside the markdown files? Currently half of the files use
Usage
About
...

and the other half:
About
Usage
...

Hmm good question. Both will work, but I think I prefer usage first, because that's also how it shows up in clap and in the online docs. Maybe we should even change the macro for the usage to parse the code block directly below the title, so you can write:
# numfmt
```
numfmt [OPTION]... [NUMBER]...
```

## About

Convert numbers from/to human-readable strings

Do you have a preference one way or the other?

Ah I see, that would require a separate macro for the about text I suppose. I like that it enforces a strict format. Do you want to implement that?

Yes.

Looks like we are good ?! :)
cc @tertsdiepraam

Wow, that's great! Thanks everyone!

yeah, bravo :)

authors: cakebaker sylvestre tertsdiepraam zleyyij


text:
cp: Usage of --recursive multiple times

It seems GNU coreutils doesn't mind if the user uses the recursive argument multiple times, this leads to incompatibility with our implementation since we reject it:
error: the argument '--recursive' cannot be used multiple times

I found this issue while using this script which calls cp like this:
cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${_pkgname}" -R

I'm not sure why it's being used like that but it works with GNU coreutils.
This issue might be more widespread as I expect other GNU utils to follow the same lenient behavior regarding arguments which set a flag.

Turns out it was just a mistake (and not some obscure feature):

dcelasun commented on 2023-07-03 11:55 (IST)
@TheDcoder it's just a mistake, I'll fix it in the next release. Keep in mind that coreutils (the GNU one) is mandatory for AUR packages. Third party reimplementations are unsupported. It's on them to be compatible with GNU, bug for bug.

I agree with the last statement, we should silently ignore errors like this to maintain compatibility.

Yeah basically all flags in coreutils do this. In clap, we generally fix this by allowing them to override themselves, which should be turned on already. So I'm not sure what's going on there. Good catch!

authors: TheDcoder tertsdiepraam


text:
echo: Failing test case for leading hyphen and reworking of the new options

Unfortunately https://docs.rs/clap/2.33.3/clap/struct.Arg.html#method.allow_hyphen_values does not fix this. I played around a little bit, but with no success. I reworked #1884 a little bit.
I added a failing test case for leading hyphens in echo.
With C implementation echo -foo works fine.

Seems that we have a fix here:
https://github.com/uutils/coreutils/pull/1887
@alstolten is that ok with you?

@sylvestre, i think we can merge both PRs in, this looks like a refactor of #1884.

@alstolten
could you please rebase your patch?

@sylvestre
Will do.

@sylvestre
Not sure if this has the correct format now. If not please give me a hint.

the test was interesting too, no?

the test was interesting too, no?

@ycd has already done a test in https://github.com/uutils/coreutils/pull/1887

@sylvestre
Thanks for the help, I did a rustfmt run.

authors: alstolten sylvestre ycd


text:
update GNU coreutils version in GnuTests workflow

Updates it to the next and latest release. This is necessary to pull the fixed invalid-j test that will, once all the outstanding join PRs get merged, allow join to pass all its GNU tests (#2634). Seems to make some other tests fail, so those might require more investigation, but presumably aren't because of bugs introduced in the GNU repo.

Ouch:
Warning: Congrats! The gnu test tests/ls/removed-directory is now passing!
Error: GNU test failed: tests/cp/attr-existing. tests/cp/attr-existing is passing on 'main'. Maybe you have to rebase?
Error: GNU test failed: tests/ls/classify. tests/ls/classify is passing on 'main'. Maybe you have to rebase?
Error: GNU test failed: tests/ls/selinux-segfault. tests/ls/selinux-segfault is passing on 'main'. Maybe you have to rebase?
Error: GNU test failed: tests/ls/sort-width-option. tests/ls/sort-width-option is passing on 'main'. Maybe you have to rebase?
Error: GNU test failed: tests/ls/zero-option. tests/ls/zero-option is passing on 'main'. Maybe you have to rebase?
Error: GNU test failed: tests/misc/cksum. tests/misc/cksum is passing on 'main'. Maybe you have to rebase?
Error: GNU test failed: tests/misc/cksum-a. tests/misc/cksum-a is passing on 'main'. Maybe you have to rebase?
Error: GNU test failed: tests/misc/cksum-c. tests/misc/cksum-c is passing on 'main'. Maybe you have to rebase?
Error: GNU test failed: tests/misc/sm3sum. tests/misc/sm3sum is passing on 'main'. Maybe you have to rebase?

did you look at what is regressing?

I had not, but did so now:

tests/cp/attr-existing:  now tests that cp does not remove files when --attributes-only is passed (specifically, files that would be overwritten were the flag not present)
tests/ls/classify: new test for new optional flag argument (--classify can now take always/auto/never)
tests/ls/selinux-segfault: adds check for "segfault when printing the security context of broken symlink targets"
tests/ls/zero-option: new test for new flag, --zero, that uses null for line endings instead of newline
tests/misc/cksum, tests/misc/cksum-a, tests/misc/cksum-c, tests/misc/sm3sum: a bunch of brand new tests, someone will have to dig into what all they're testing

So basically, no singular issue, just various updates to the tests. Some of these seem like new functionality that will have to be added, but at least the first one seems like an actual bug being caught.

Sounds good, could you please create issues to keep track of the regressions?
thanks

I've updated my above comment with links to the respective issues.

amazing, thanks :)

let's regress then :)

I documented the regression here:
https://github.com/uutils/coreutils-tracking/commit/a10f9b0387c78f0c21b91e42085c3d8903ce3cd5

authors: jtracey sylvestre


text:
Implement expr.

Implemented as follows:

Usage: expr EXPRESSION
  or:  expr OPTION

      --help     display this help and exit
      --version  output version information and exit

Print the value of EXPRESSION to standard output.  A blank line below
separates increasing precedence groups.  EXPRESSION may be:

  ARG1 | ARG2       ARG1 if it is neither null nor 0, otherwise ARG2

  ARG1 & ARG2       ARG1 if neither argument is null or 0, otherwise 0

  ARG1 < ARG2       ARG1 is less than ARG2
  ARG1 <= ARG2      ARG1 is less than or equal to ARG2
  ARG1 = ARG2       ARG1 is equal to ARG2
  ARG1 != ARG2      ARG1 is unequal to ARG2
  ARG1 >= ARG2      ARG1 is greater than or equal to ARG2
  ARG1 > ARG2       ARG1 is greater than ARG2

  ARG1 + ARG2       arithmetic sum of ARG1 and ARG2
  ARG1 - ARG2       arithmetic difference of ARG1 and ARG2

  ARG1 * ARG2       arithmetic product of ARG1 and ARG2
  ARG1 / ARG2       arithmetic quotient of ARG1 divided by ARG2
  ARG1 % ARG2       arithmetic remainder of ARG1 divided by ARG2

  STRING : REGEXP   [NOT IMPLEMENTED] anchored pattern match of REGEXP in STRING

  match STRING REGEXP        [NOT IMPLEMENTED] same as STRING : REGEXP
  substr STRING POS LENGTH   [NOT IMPLEMENTED] substring of STRING, POS counted from 1
  index STRING CHARS         [NOT IMPLEMENTED] index in STRING where any CHARS is found, or 0
  length STRING              [NOT IMPLEMENTED] length of STRING
  + TOKEN                    interpret TOKEN as a string, even if it is a
                               keyword like 'match' or an operator like '/'

  ( EXPRESSION )             value of EXPRESSION

Beware that many operators need to be escaped or quoted for shells.
Comparisons are arithmetic if both ARGs are numbers, else lexicographical.
Pattern matches return the string matched between \( and \) or null; if
\( and \) are not used, they return the number of characters matched or 0.

Exit status is 0 if EXPRESSION is neither null nor 0, 1 if EXPRESSION is null
or 0, 2 if EXPRESSION is syntactically invalid, and 3 if an error occurred.

Environment variables:
	* EXPR_DEBUG_TOKENS=1   dump expression's tokens
	* EXPR_DEBUG_RPN=1      dump expression represented in reverse polish notation
	* EXPR_DEBUG_SYA_STEP=1 dump each parser step
	* EXPR_DEBUG_AST=1      dump expression represented abstract syntax tree

The operations marked as not implemented ( match/2, substr/3, index/2, length/1 ) are correctly parsed as prefix-operations with specified arity.
They are just missing implementation of their actions: string operations.

Thanks

authors: Heather RGafiyatullin


text:
Version v0.2.0-beta.3 - seeing garage door serialization errors

Logger: homeassistant.components.recorder
Source: components/recorder/__init__.py:910
Integration: Recorder (documentation, issues)
First occurred: 2:21:07 PM (3 occurrences)
Last logged: 3:14:45 PM

State is not JSON serializable: <state cover.overhead_door=closed; mac_address=, raw_state_text=None, mismatched_states=False, desired_state=DeviceState.CLOSED, device_class=garage, friendly_name=Overhead Door, supported_features=3 @ 2022-01-24T14:21:06.833809-06:00>
State is not JSON serializable: <state cover.overhead_door=closed; mac_address=, raw_state_text=None, mismatched_states=False, desired_state=DeviceState.CLOSED, device_class=garage, friendly_name=Overhead Door, supported_features=3 @ 2022-01-24T14:27:17.520001-06:00>
State is not JSON serializable: <state cover.overhead_door=closed; mac_address=, raw_state_text=None, mismatched_states=False, desired_state=DeviceState.CLOSED, device_class=garage, friendly_name=Overhead Door, supported_features=3 @ 2022-01-24T15:14:45.461177-06:00>

Logger: homeassistant.components.websocket_api.messages
Source: components/websocket_api/messages.py:82
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 2:21:06 PM (11 occurrences)
Last logged: 3:18:28 PM

Unable to serialize to JSON. Bad data found at $.event(Event: state_changed).data.new_state(State: cover.overhead_door).attributes.desired_state=DeviceState.CLOSED(<enum 'DeviceState'>
Unable to serialize to JSON. Bad data found at $.result[135](State: cover.overhead_door).attributes.desired_state=DeviceState.CLOSED(<enum 'DeviceState'>
Unable to serialize to JSON. Bad data found at $.event(Event: state_changed).data.old_state(State: cover.overhead_door).attributes.desired_state=DeviceState.CLOSED(<enum 'DeviceState'>

Are you able to enable debugging for the integration to generate more detailed logs?
Add the below to configuration.yaml:
logger:
  default: warn
  logs:
    custom_components.alarmdotcom: debug
    pyalarmdotcomajax: debug

Also, is this related to #73?

I haven't worked with the configuration.yaml of HA yet as I'm fairly new to HA, but I will see what I can do.
This is indeed also related to Issue #73.

authors: AdventureAhead elahd

repo: uvjustin/alarmdotcom


text:
Code/test changes to enable modulo operator.

Not sure whether I did the right thing at https://github.com/uwescience/raco/compare/mod_op#diff-e9797c7b402b3bc30b2713606bcf6097R160. I thought the Python syntax for the intdiv operator was also part of MyriaL syntax, so the visitor should be using the Python intdiv syntax, not the general div symbol.
I have been unable to get nosetests working on my dev machine despite everything seeming to check out (the version of nose that nosetests expects is installed, I can import it in a python shell and check the version, etc.). I'll need some help to fix this, at least until I get my new laptop.

Coverage decreased (-0.07%) to 89.43% when pulling 2a4a9e3d071054386189e20c884f843ce4cb9dbc on mod_op into b17a75f416b6bb57f90666001d590d7413ada5d3 on master.

Coverage decreased (-0.07%) to 89.43% when pulling 2a4a9e3d071054386189e20c884f843ce4cb9dbc on mod_op into b17a75f416b6bb57f90666001d590d7413ada5d3 on master.

Looks reasonable, but yeah we need a test or two. I'm happy to help get your environment set up.
Are you around? I dropped by the DB lab but did not see you. I am in the Data Science Studio for the rest of today.

@bmyerz see the change to CompileExpressionVisitor that Tobin refers to in the issue description. Do you know what the right behavior is? If you use this to generate C code them I'm not sure you'll get the right thing -- surely // is not valid C syntax (it's a comment ;).

@senderista reminder that all this PR is missing is a test or three

@dhalperi @senderista The change looks fine. I'll add a change below to make sure Clang doesn't break

Coverage decreased (-0.03%) to 89.47% when pulling 6b9ec706b2550461e5484886e39653980ff09100 on mod_op into b17a75f416b6bb57f90666001d590d7413ada5d3 on master.

Coverage decreased (-0.02%) to 89.48% when pulling 6b9ec706b2550461e5484886e39653980ff09100 on mod_op into b17a75f416b6bb57f90666001d590d7413ada5d3 on master.

Coverage decreased (-0.02%) to 89.48% when pulling 6b9ec706b2550461e5484886e39653980ff09100 on mod_op into b17a75f416b6bb57f90666001d590d7413ada5d3 on master.

Coverage increased (+0.03%) to 89.54% when pulling 9a49f5cc630a8bc83ad0ae69cc547e6f3c296a38 on mod_op into b17a75f416b6bb57f90666001d590d7413ada5d3 on master.

authors: bmyerz coveralls dhalperi senderista

repo: uwescience/raco


text:
Regression: changeDate event is broken for manual date input since 1.7.1

Expected behaviour
When typing in the date input field and thus entering a date manually or changing the date, the changeDate event should be triggered
Actual behaviour
This is a regression since version 1.6.1. At least in 1.7.1 and 1.8.0, the changeDate event is broken when manually entering/changing the date in the input field
Datepicker version used
1.8.0
I have a #2367 ready to fix the issue. Unfortunately, I did not get feedback on it, so I assume I have to open a ticket.

Could anyone please have a look at this?

Is there any fix for this yet? With 1.8.0 with Chrome, this is an issue. There's numerous bug reports for this issue...
https://github.com/uxsolutions/bootstrap-datepicker/pull/2367
https://github.com/uxsolutions/bootstrap-datepicker/issues/1957
https://github.com/uxsolutions/bootstrap-datepicker/issues/2325

Hello guys, this issue is still active in 1.9.0 with chrome last version.
its a really bad bug, im surprise it was not solved in two years.
Is this library still active ?

Agreed - I was surprised that 1.9 was released without this having been addressed. Would be nice to get a fix for this.

as a workaround guys you can listen to the input change event, it will work on both case (select date on the date picker or write directly)
var lObj = $('#' + id);
lObj.datepicker();
lObj.on('change', function (event, items) {
                                var lDate = lObj.datepicker('getUTCDate');
                                //do what you want with the date
                            });

But im still not sure if i want in my app a library with this kind of bug...

authors: Ben-CA McNetic julienGrd

repo: uxsolutions/bootstrap-datepicker


text:
Adjust c3p0 connection timeout

What does this PR change?
This should be the final tuning for 3p0 connection timeout.
Manager 4.3 and uyuni is fixed to work with this setting.
The workaround apparently did not work because of the default in sls file. Anyway, it is no longer needed.
The default timeout is set to 3 hours, because processing of RES7 repos on 4.2 takes up to 2 hours.

fixed in https://github.com/uyuni-project/sumaform/pull/1334

repo: uyuni-project/sumaform


text:
A question about LSTM

Hello author, what does N represent here, is it batch_size?

yes

repo: uzh-rpg/RVT


text:
🛑 cryptraffic.de is down

In 1851680, cryptraffic.de (https://cryptraffic.de/) was down:

HTTP code: 503
Response time: 1345 ms

Resolved: cryptraffic.de is back up in f4096ba.


text:
Small typo

Should be "Default"

Thanks for the help, fixed.


text:
性能测试 校验问题

https://steemit.com/cn/@v2ray/3cjiux

很有趣的一点是 None 居然比 GCM 慢。不加密反而比加密慢，有一点违反常识。原因是这样的：VMess 不管加不加密，都会进行数据校验，None 中使用的校验算法是 FNV，而 GCM 是一个 AEAD 算法，自带校验。于是带 CPU 加成的校验比软件实现的校验快了不小。这一点也超出了开发人员的预期，之后会考虑提升校验的性能。

请问这个问题解决了吗，目前 tls 参与的配置，似乎并不需要 GCM 加密，如果 none 的话，应该会提升性能，前提是校验的性能， 请问，现在 none 的问题解决了吗

解决了。

authors: VictoriaRaymond yinliangc


text:
Set sidenoderHome to userData, instead of user's home

Hello,
Currently sidenoder stores it's data in the user's home, this make it cluttered and may clash with other applications.
A cleaner approach would be to use Electron's app.getPath('userData') that uses each supported OSes specific per-application data directory
Relevant code:
https://github.com/vKolerts/quest-sidenoder/blob/2d84b1339ada40b48117ed55d58fa75714ac0860/main.js#L22
To not break sidenoder for current users, it could first check if the sidenoder directory exists in user's home, and use that if it is the case. Something along the lines of:
global.sidenoderHome = path.join(global.homedir, 'sidenoder').replace(/\\/g, '/');
if (!fs.existsSync(global.sidenoderHome))
	global.sidenoderHome = app.getPath('userData')

To Reproduce
Steps to reproduce the behavior:

Open sidenoder
sidenoder data directory is created at user home

Expected behavior
Sidenoder creates it's data directory in each supported OSes specific per-application data directory
Desktop:

OS: Tested on Windows and Linux (ArchLinux)
Binary: .exe and .appimage
Version: 0.7.3

Thanks, I will think about this. Maybe will make it optional for customize path of home dir

authors: HeavenVolkoff vKolerts

repo: vKolerts/quest-sidenoder