Error caused by Static.StaticInt not being an Integer

I get the following error (on Julia v1.7.2):
julia> using Pkg; Pkg.activate(temp=true); Pkg.add("LoopVectorization")
...
  [bdcacae8] + LoopVectorization v0.12.119
...
  [aedffcd0] + Static v0.7.4
...

julia> function foo_plain!(dst, src)
           for i in (firstindex(dst, 2) + 1):(lastindex(dst, 2) - 1)
               dst[1, i] = src[1, i]
           end
           dst
       end
foo_plain! (generic function with 1 method)

julia> src = ones(6, 6); dst = zero(src)
6×6 Matrix{Float64}:
 0.0  0.0  0.0  0.0  0.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0

julia> foo_plain!(dst, src)
6×6 Matrix{Float64}:
 0.0  1.0  1.0  1.0  1.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0
 0.0  0.0  0.0  0.0  0.0  0.0

julia> using LoopVectorization

julia> function foo_turbo!(dst, src)
           @turbo for i in (firstindex(dst, 2) + 1):(lastindex(dst, 2) - 1)
               dst[1, i] = src[1, i]
           end
           dst
       end
foo_turbo! (generic function with 1 method)

julia> foo_turbo!(dst, src)
ERROR: TypeError: in typeassert, expected Integer, got a value of type Static.StaticInt{2}
Stacktrace:
 [1] axes
   @ ./abstractarray.jl:74 [inlined]
 [2] firstindex
   @ ./abstractarray.jl:396 [inlined]
 [3] foo_turbo!(dst::Matrix{Float64}, src::Matrix{Float64})
   @ Main ./REPL[9]:2
 [4] top-level scope
   @ REPL[10]:1

How would you recommend to solve this?

@turbo made integers static, which now seems like a bad choice given StaticInt is no longer an integer.

Two non-mutually exclusive options:

Add a ArrayInterface.firstindex and ArrayInterface.lastindex function that accepts StaticInt and have LoopVectorization import it and substitute calls, like it does for axes.
Use a whitelist in makestatic! https://github.com/JuliaSIMD/LoopVectorization.jl/blob/a7f9e1bf91e14fba2c7f65a7c8fbd7e5eeb6f619/src/modeling/graphs.jl#L930 that only statics in recognized functions. This should maybe keep recursing, e.g. to get the 2 in foo(bar(axes(a,2))), but it probably wouldn't help. The point is to try and pass static information to LoopVectorization itself.

What was the reason for not making StaticInt an Integer anymore? This seems to be the basic root of the problem here.

Invalidations / improve loading time.
https://github.com/SciML/Static.jl/pull/64
It causes a lot of issues, unfortunately.


[3Di]: Add global settings friction type 1D, and remove frict_type from 1D element tables

Friction type for every 1D element is no longer needed. We want to have a global friction type for 2D (already there) and a global friction type for 1D.
For 2D these are the options:

Chezy
Manning

For 1D:

Chezy
Manning
Chezy with conveyance
Manning with conveyance

@daanvaningen Is this still relevant? I don't really understand why we would want this, but if we do, now is the moment. I do see a lot of potential backwards compatibility issues though


Make occupations TWYS / with auto expansion

Early censuses used a number of standard abbreviations for occupations, which were sometimes also used in later censuses.  For discussion: move to twys, with auto-expansion.  E.g. enumerator wrote FS, transcriber types FS, displays as FS [i.e. female servant].

Based on the story number this has to have been generated as a FC1 issue. It is specifically an 1841 issue.
This can only be achieved with the online transcription of censuses. It cannot be achieved on our csv spreadsheet system, even though we have a specific spreadsheet for 1841.
It is possible to embed the expansion into an xls spreadsheet (amongst others) but we do all of our uploading with csv files. The expansion will be lost as soon as the file is converted to a csv file.
Our templates are also csv files so they cannot store the code to achieve this.
So, this cannot be achieved with the spreadsheets as we use them. It has to be part of online transcription.
Geoff

See my comments on story #113.
I suggest that this also be put on ice.
Geoff


subcommand convert can only handle a few fixed prefixes

Executing rdfsx convert -m dctap -x uml -f csv -s book.csv -r svg -o book.svg (from within the examples directory) fails with an error message that the prefix dct is not understood.
Using rdfsx convert --help, I fail to see any way to provide the needed prefix.
I would expect an option --prefix to allow providing a custom prefix.
I would also expect a few more very common prefixes to be included by default.

It is possible to inject a custom set of prefix declarations using the config option that has been added in version 0.1.5.
You can use something like:
rdfsx convert -m dctap -x uml -f csv -s examples/dctap/book.csv -r svg -o target/book.svg --config examples/dctap/book_conv
erter_config.yml

and it will use the prefix declarations that appear in the book_converter_config.yml file:
tap2shex:
  base_iri: "http://example.org/"
  prefixmap:
    dct: "http://purl.org/dc/terms/"
    rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    foaf: "http://xmlns.com/foaf/0.1/"
    xsd: "http://www.w3.org/2001/XMLSchema#"
    sdo: "https://schema.org/"
    ex: "http://example.org/"


run command

when I run the command:
php artisan panel:install
I got this problem:
[PDOException]
SQLSTATE[HY000] [2002] No such file or directory

@davidbuenonnoleto  I would say that you have a problem connecting from PHP to MySQL...
http://stackoverflow.com/questions/2412009/starting-with-zend-tutorial-zend-db-adapter-throws-exception-sqlstatehy000
http://stackoverflow.com/questions/20723803/pdoexception-sqlstatehy000-2002-no-such-file-or-directory


Blast from the Past csharp setup

Language
C#
Challenge
Blast From the Past setup

I can confirm that the tests work, though!

@ericwburden I added the doc you requested 👍


[minor][cdc-connector][mongo] Fix warning during MongoDB tests

Currently, when running MongoDBStreamSplitReaderTest and MongoDBSnapshotSplitReaderTest, tons of warning messages were be printed:
Warning: NumberLong: specifying a number as argument is deprecated and may lead to loss of precision, pass a string instead
... (repeated lines)

The problem lies in chunk_test.js:22, where NumberLong was called with a plain number instead of string, which has been deprecated by MongoDB engine due to precision loss concerns, though here i would never be greater than 20480.
Converting it to string before passing it to NumberLong should fix this problem.

@PatrickRen Could you please take a look when available? Applying this patch could make mongo-cdc logs much clearer.


add coveralls.io coverage

add coveralls-maven-plugin/jacoco-maven-plugin
adapt travis.yml
add badge to readme.md

Further infos on:

https://coveralls.io
https://github.com/trautonen/coveralls-maven-plugin

Danke Tobsch!


Fixed the issue Error message is not readable in light theme.

Description
(Write your answer here.)
Myself sayandip paul participating under jwoc .
I fixed the issue recntly.
kindly check this.
Checklist

[. ] I am making a proper pull request, not spam.
[. ] I've checked the issue list before deciding what to submit.

Related Issues or Pull Requests
(Write your answer here.)
I have changed the main.js file
Add relevant screenshot or video (if any)
(Add here)

#295


how to compute backward optical flow?

Hi,
thanks for this wonderful work! I am wondering how can I compute backward optical flow using denseflow? e.g. optical flow from t+1 to t.

Set step to -1

Thanks for the quick reply! Does that mean: In opencv function, to compute backward optical flow, just simply change prvs to img_t+1, next to img_t?
prvs = img_t+1
next = img_t
flow = cv2.calcOpticalFlowFarneback(prvs,next, None, 0.5, 3, 8, 3, 5, 1.2, 0)

If you are using denseflow,, then simply set the step argument to -1. e.g.,
denseflow test.avi -b=20 -a=tvl1 -s=-1 -v


list_transcripts working locally, but not from server

The following works locally just fine:
from youtube_transcript_api import YouTubeTranscriptApi
YouTubeTranscriptApi.list_transcripts('JdcmfiMS-84')

When I run the same code from the console in PythonAnywhere, I get:
Could not retrieve a transcript for the video https://www.youtube.com/watch?v=JdcmfiMS-84! This is most likely caused by:

Subtitles are disabled for this video

This seems to be happening only for videos in Hebrew. What could be causing this?

Hi @mgoldenbe, when I try to open the video I get the error message "Video unavailable. The uploader has not made this video available in your country" (I am currently in France). It seems likely that the server you are running your code on is not located in the same country as you are and therefore is blocked due to the same reason.
The error message is a bit misleading here, as I hadn't encountered this case yet. I will try to add a more explicit error message for this in the future. I will close this issue now as there's not much we can do here to solve this specifically.

Yes, it would be great if I could determine this somehow. Interestingly, I
am able to get the listing for this video using YouTube List API from the
same server...
On Tue, Mar 19, 2024 at 6:46 PM Jonas Depoix @.***>
wrote:

Hi @mgoldenbe https://github.com/mgoldenbe, when I try to open the
video I get the error message "Video unavailable. The uploader has not made
this video available in your country" (I am currently in France). It seems
likely that the server you are running your code on is not located in the
same country as you are and therefore is blocked due to the same reason.
The error message is a bit misleading here, as I hadn't encountered this
case yet. I will try to add a more explicit error message for this in the
future. I will close this issue now as there's not much we can do here to
solve this specifically.
—
Reply to this email directly, view it on GitHub
https://github.com/jdepoix/youtube-transcript-api/issues/262#issuecomment-2007664671,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF2BZZTVYI2ODJUEPRV6O7DYZBTWPAVCNFSM6AAAAABE4GXQOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXGY3DINRXGE
.
You are receiving this because you were mentioned.Message ID:
@.***>


Add Gignav Logo

Hi,
We are Detroit based tech startup. Please add our banner to Startup Detroit.

The banner should point to www.gignav.com
if you have any questions, please email me at<EMAIL_ADDRESS>Thanks,
Om Soni
Founder - Gignav

Please use this banner instead:


Tidy up creation of SierraTransformable

Follows #2444, spun out of #2432.

Oops, I mixed in some SierraRecord stuff onto this branch. 🙈


require certified Carpentries instructors

The "About" page says:

To maintain the quality of Library Carpentry workshops, it is highly recommended that a Carpentries-certified instructor be present at each workshop.

Now that LC is officially a lesson progra, we should be mandating that at least one Carpentries certified instructor is teaching, correct?

Yes, this is fixed with https://github.com/LibraryCarpentry/librarycarpentry.github.io/commit/a11aad7d98abf4bcc4cf266796735edd7a219d18. Thanks again!


Adding UI problem

Can't add dialog, there is no Gtk tab in New File dialog?
are there any way to add Gtk dialog?

I have same problem.
How do you solve this issue?


PVC & Events methods

cleaned up the history from #63

Coverage increased (+0.2%) to 97.677% when pulling 14577a2d375fbc14aea8a229369422cdfb97cd6e on lholmquist:faust64-feat-pvc into ed57744c7a702fd09dfd649a5d6346b62aa8defe on bucharest-gold:master.


[proxyAddresses] attribute is misspelled.

Line 828: [proxyAddresses] attribute is misspelled.
Changed from [proxyAddress] to [proxyAddresses]

@YuriySamorodov : Thanks for your contribution to the Azure documentation! The author, @andkjell, has been notified to review your proposed change.

#sign-in

#sign-off


Copy paste with control->C doesn't work in results window

SQL Operations Studio Version: sqlops 0.23.6 (8a3011756318a2ded1e6e84332230a2b2bf9c544, 2017-11-06T21:51:43.232Z)
OS Version: Windows_NT x64 10.0.16299

Steps to Reproduce:

Run query
Highlight a row or column
Pretty ctrl->C

Result:
Nothing is copied and you get a warning that shows up something to do with range get selection something or other. This issue is intermittent.

This should be fixed in the upcoming release. You can test the candidate for this at https://github.com/Microsoft/sqlopsstudio/releases/tag/v0.24.1. We are taking a handful of fixes for our final release but it will be pretty close to this version. Thanks for reporting!


Connection unexpectedly closed exception

I am using r2dbc-pool (0.8.8.RELEASE) where I am getting Connection unexpectedly closed exception for every 30 mins from boot time. It is not happening without using pool. I am using mssql protocol. Please suggest, what I am missing here.

Duplicate of #153


Fix typos in comments, tests and function names

Golang code usually used marshal instead of marshall.

@googlebot  I signed it!

Thank you

https://en.wikipedia.org/wiki/Marshalling_(computer_science)
https://en.wikipedia.org/wiki/Marshalling (double L) seems to be a correct spelling of the term, sorry.

@tandr https://github.com/golang/go/wiki/Spelling


k_delayed_work queues and user mode

Is your enhancement proposal related to a problem? Please describe.
At the moment, none of the k_delayed_work APIs work from user mode.
It has been quite some time since I converted the IPC objects to be usable from user mode, and I don't recall the exact reason why I did not convert k_delayed_work APIs, but I'm pretty sure it had something to do with the struct k_delayed_work object and security concerns.
Describe the solution you'd like
A mechanism that meets the current requirements of k_delayed_work, that user mode threads can use.
I would prefer a solution that minimizes adding new syscalls, and just uses existing kernel object syscalls as much as possible.
It would be really good if work could be submitted to these queues from an ISR. Otherwise this wouldn't need to be part of the core kernel and could just be library code/an exercise for the end user.
Describe alternatives you've considered
Some redesign of the APIs could be on the table. Depending on the problems we face, a parallel API set like we did with sys_sem/k_sem and sys_mem_pool/k_mem_pool might be acceptable (the whole thing could be futex-based in that case)

@pabigot is this still relevant after your work queue rework?

We don't have a good solution or clear motivation for userspace work queues (with requirements and stakeholder expectations), but the API or at least implementation that's used in supervisor mode isn't one of them.  That's never going to work in usermode, and there's no clear reason why it should.
So the answer is either "yes" if people want userspace work queues, or "no" if people don't care about them.

I guess no one cares about this for now... reopen if needed.


How do you keep buffer fixed during gradient steps

Hello!
I've noticed your warning
logging.warn(('{} contains buffer {}. The buffer will be treated as '
                        'a constant and assumed not to change during gradient '
                        'steps. If this assumption is violated (e.g., '
                        'BatchNorm*d\'s running_mean/var), the computation will '
                        'be incorrect.').format(m.__class__.__name__, n))

May I ask how do you keep buffer fixed during gradient steps(e.g. running mean and running var in batchnorm)? In this code there is only LeNet and AlexNet, so this won't be a problem. But I wonder have you done experiment on networks with batchnorm?
Thanks a lot!

Hi, the code provided currently does not support batch norm. You can implement batch norm support by either (1) using batch norm always in eval mode (track_running_stats=False) or (2) adding code to track and add autograd graphs for buffers.


How to access a user's file system?

I set up SFTP per your example, and it shows me almost everything. The only things I can't access are the root folder (OK, make sense) and the /home/core folder (core is  a user in CoreOs). It's the /home/core folder that I need access to, any idea how to allow that?

This container is not intended to access all folders on the host system. It only allows access to the volume mounted to the /data volume inside the docker container. So if you want to access hosts /home/core folder you need to mount it to the /data volume:
$ docker run \
    -v /home/core:/data \
    -p 2022:22 \
    -e USER=myuser \
    -e PASS=myverysecretpassword \
    luzifer/sftp-share

If you ran the container that way you will see the same contents in /data as you're seeing on your host in /home/core.

That makes sense. How would I connect it to a data container, would I use the --volumes-from tag somehow?

You could create a container exposing /data directory, storing the data into that directory in your data container an then use --volumes-from option to connect the two containers together.
See more information at https://docs.docker.com/userguide/dockervolumes/#creating-and-mounting-a-data-volume-container

How do credentials work with a data container?

The same. You specify your credentials in the sftp-container. The data-container just is a storage like if you mounted the data directly from the host.

Sorry if this question is naive, but how do you get the credentials connected to the container? I mean, you have to set up a user with the same credentials as the SFTP container, right? Or… can I --link the container and specify any credentials I please and it will work? Sorry if this is really basic, I’m getting used to docker :)

You can specify whatever you want for this container. There is no connection to the system credentials.


Strict Mode Error: Explicit termination method 'close' not called

Wounder if anyone else has seen this strict mode violation, it could be my own code but if it is I can't see how.
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
                                                                      java.lang.Throwable: Explicit termination method 'close' not called
                                                                          at dalvik.system.CloseGuard.open(CloseGuard.java:180)
                                                                          at java.io.FileInputStream.<init>(FileInputStream.java:78)
                                                                          at okio.Okio.source(Okio.java:163)
                                                                          at okhttp3.internal.io.FileSystem$1.source(FileSystem.java:44)
                                                                          at okhttp3.internal.DiskLruCache$Entry.snapshot(DiskLruCache.java:1004)
                                                                          at okhttp3.internal.DiskLruCache.get(DiskLruCache.java:431)
                                                                          at okhttp3.Cache.get(Cache.java:193)
                                                                          at okhttp3.Cache$1.get(Cache.java:143)
                                                                          at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:198)
                                                                          at okhttp3.RealCall.getResponse(RealCall.java:240)
                                                                          at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:198)
                                                                          at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:160)
                                                                          at okhttp3.RealCall.access$100(RealCall.java:30)
                                                                          at okhttp3.RealCall$AsyncCall.execute(RealCall.java:127)
                                                                          at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                          at java.lang.Thread.run(Thread.java:818)

What version? What's your calling code? The trace isn't that useful by
itself.
On Fri, Apr 15, 2016, 7:41 PM Adam Brown<EMAIL_ADDRESS>wrote:

Wounder if anyone else has seen this strict mode violation, it could be my
own code but if it is I can't see how.
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'close' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:180)
at java.io.FileInputStream.(FileInputStream.java:78)
at okio.Okio.source(Okio.java:163)
at okhttp3.internal.io.FileSystem$1.source(FileSystem.java:44)
at okhttp3.internal.DiskLruCache$Entry.snapshot(DiskLruCache.java:1004)
at okhttp3.internal.DiskLruCache.get(DiskLruCache.java:431)
at okhttp3.Cache.get(Cache.java:193)
at okhttp3.Cache$1.get(Cache.java:143)
at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:198)
at okhttp3.RealCall.getResponse(RealCall.java:240)
at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:198)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:160)
at okhttp3.RealCall.access$100(RealCall.java:30)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:127)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/square/okhttp/issues/2487

Ya I noticed!
library version: 3.2.0
I've Been looking through all my networking code, going on the assumption that this is referring to the response body, but everywhere I deal with the response body it's closed in a finally:
	@Override
	public void onResponse( final Call call, final Response response ) throws IOException
	{
		try
		{
			// Response handling
		}
		finally
		{
			response.body().close();
		}
	}

Getting a similar error when calling chain.proceed(chain.request()) in the intercept(Chain chain) method in an Interceptor. We're using version 3.2.0.
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
    java.lang.Throwable: Explicit termination method 'close' not called
        at dalvik.system.CloseGuard.open(CloseGuard.java:180)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:89)
        at okio.Okio.appendingSink(Okio.java:182)
        at okhttp3.internal.io.FileSystem$1.appendingSink(FileSystem.java:59)
        at okhttp3.internal.DiskLruCache.newJournalWriter(DiskLruCache.java:304)
        at okhttp3.internal.DiskLruCache.rebuildJournal(DiskLruCache.java:415)
        at okhttp3.internal.DiskLruCache.initialize(DiskLruCache.java:235)
        at okhttp3.internal.DiskLruCache.get(DiskLruCache.java:424)
        at okhttp3.Cache.get(Cache.java:193)
        at okhttp3.Cache$1.get(Cache.java:143)
        at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:198)
        at okhttp3.RealCall.getResponse(RealCall.java:240)
        at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:198)

@ronocod that actually looks like a slightly different stack trace. Are you releasing your reference to OkHttpClient?

Please paste your interceptor code.
On Thu, Apr 21, 2016, 8:01 AM Dave Roberge<EMAIL_ADDRESS>wrote:

@ronocod https://github.com/ronocod that actually looks like a slightly
different stack trace. Are you releasing your reference to OkHttpClient?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/square/okhttp/issues/2487#issuecomment-212884119

A -
@Override public Response intercept(Chain chain) throws IOException {
    if (checkA()) {
        Response response = chain.proceed(chain.request());
        if (checkB()) {
            return response;
        } else {
            if (response != null) {
                response.body().close();
            }
            throw new IOException(CAUSE_A);
        }
    } else {
        throw new IOException(CAUSE_B);
    }
}

B -
@Override public Response intercept(Chain chain) throws IOException {
    for (int i = 0; i <= MAX_RETRIES; i++) {
        try {
            return chain.proceed(chain.request());
        } catch (IOException e) {
            if (i == MAX_RETRIES) {
                throw e;
            } else {
                backoff();
            }
        }
    }
    throw new IOException(CAUSE);
}

@ronocod Response Body have to be CLEAR in all cases including errors.

Sorry, that probably wasn't clear. To me, the stack trace from @ronocod suggests either the application is leaking a Cache instance without closing it, or there is a file leak in the DiskLruCache, specifically the journal writer.
@ronocod can you confirm you're not leaking an OkHttpClient/Cache instance in your app? Are you holding onto a strong reference to OkHttpClient for the entire lifetime of your app?

@dave-r12 I am holding onto a static instance of OkHttpClient, which it's self is holding onto the cache (I'm just newing it up and passing it to the builder, none of my code directly references the cache).
Are you thinking that could somehow be leaking these cache responses?
My somewhat uninformed guess is this could be in Cache.get()

@Wavesonics no, I was referring to the stack trace that @ronocod pasted. Your stack trace is different. If you believe you are closing the response body in all code paths, can you try to reproduce what you are seeing with a failing test case, or a pared down example?

@Wavesonics no, I was referring to the stack trace that @ronocod pasted. Your stack trace is different. If you believe you are closing the response body in all code paths, can you try to reproduce the issue you are seeing with a failing test case, or pared down example?

I met the stack trace in Strict Mode too，please help to see the code, Should I need to move  "response.body().close(); " in finally{ }?  I test this way may be effective。
  public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {         try {             SystemUtils.checkContextValid(mCtx);             if (response.isSuccessful()) {                 onResponseSuccessful(mCtx, call, response);             } else if (response.isRedirect()) {                 onResponseRedirect(mCtx, call, response);             } else {                 onResponseError(mCtx, call, response);             }         } catch (Exception e) {             e.printStackTrace();         }         response.body().close();     }

That works. A finally clause is even better.

@swankjesse  sorry, still exist though move "response.body().close(); " in finally{ }，seem stack trace to @Wavesonics
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
                                                               java.lang.Throwable: Explicit termination method 'close' not called
                                                                   at dalvik.system.CloseGuard.open(CloseGuard.java:184)
                                                                   at java.io.FileInputStream.<init>(FileInputStream.java:78)
                                                                   at okio.Okio.source(Okio.java:163)
                                                                   at okhttp3.internal.io.FileSystem$1.source(FileSystem.java:44)
                                                                   at okhttp3.internal.DiskLruCache$Entry.snapshot(DiskLruCache.java:1004)
                                                                   at okhttp3.internal.DiskLruCache.get(DiskLruCache.java:431)
                                                                   at okhttp3.Cache.get(Cache.java:193)
                                                                   at okhttp3.Cache$1.get(Cache.java:143)
                                                                   at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:198)
                                                                   at okhttp3.RealCall.getResponse(RealCall.java:240)
                                                                   at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:198)
                                                                   at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:160)
                                                                   at okhttp3.RealCall.access$100(RealCall.java:30)
                                                                   at okhttp3.RealCall$AsyncCall.execute(RealCall.java:127)
                                                                   at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
                                                                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                   at java.lang.Thread.run(Thread.java:818)

Yeah I've checked and checked and all of my response body's are closed on a finally.
Also interesting is it's only cached responses.

I got the same exception with OkHttp 3.3.0. So far, I couldn't reproduce the problem with OkHttp 3.4.1, but that could be because this issue is extremely hard to get (probably a race condition).
We got this exception when running okHttpClient.newCall(request).execute() and canceling the task because the activity gets destroyed. It seems that the DiskLruCache.Snapshot snapshot from Cache.get(Request) is finalized, but the underlying FileInputStream isn't closed.
I'll update my comment as soon as I have any news.

I got the same StrictMode error. It was fixed by adding cache.close()  at the end of onResponse.
Hope it helps.

Please don’t call cache.close() until you’re completely done with your response cache.

@swankjesse I think cache has been finished before onResponse.

I'm with error too, but I'm getting resolve it
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.     java.lang.Throwable: Explicit termination method 'close' not called         at dalvik.system.CloseGuard.open(CloseGuard.java:184)         at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:287)         at com.android.okhttp.Connection.upgradeToTls(Connection.java:201)         at com.android.okhttp.Connection.connect(Connection.java:155)         at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)         at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)         at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)         at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)         at com.android.okhttp.internal.http.HttpURLConnectionImpl.getHeaderField(HttpURLConnectionImpl.java:161)         at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getHeaderField(DelegatingHttpsURLConnection.java:190)         at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getHeaderField(HttpsURLConnectionImpl.java:25)         at org.fdroid.fdroid.net.HttpDownloader.download(HttpDownloader.java:89)         at org.fdroid.fdroid.IndexV1Updater.update(IndexV1Updater.java:102)         at org.fdroid.fdroid.UpdateService.onHandleIntent(UpdateService.java:468)         at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:135)         at android.os.HandlerThread.run(HandlerThread.java:61)

I have similar issue with v 3.11.0, see in logs this error:
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'close' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:180)
at com.android.org.conscrypt.Platform.closeGuardOpen(Platform.java:282)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:316)
at com.android.okhttp.Connection.connectTls(Connection.java:235)
at com.android.okhttp.Connection.connectSocket(Connection.java:199)
at com.android.okhttp.Connection.connect(Connection.java:172)
at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)
at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:405)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:521)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java)
at android.media.MediaHTTPConnection.seekTo(MediaHTTPConnection.java:211)
at android.media.MediaHTTPConnection.readAt(MediaHTTPConnection.java:326)
at android.media.MediaHTTPConnection.native_readAt(Native Method)
at android.media.MediaHTTPConnection.readAt(MediaHTTPConnection.java:315)
at android.media.IMediaHTTPConnection$Stub.onTransact(IMediaHTTPConnection.java:72)
at android.os.Binder.execTransact(Binder.java:565)
I'm not sure, but everything seems to be working.


changes to "THE FEATURES OF THREEFOLD GRID" section

change the MAIN TITLE

current: THE FEATURES OF THREEFOLD GRID
new: FEATURES OF THE THREEFOLD GRID

AN INTERNET FOR EVERYONE text change
current: With merely a source of energy, a network and the 3Node, access to the internet becomes a reality for every human being on the planet.
new: With merely an energy source, a network, and a 3Node needed, the ThreeFold Grid brings the possibility of Internet access to everyone, everywhere.

BY EVERYONE section

current text: The new internet is common good owned by all of us. Everyone is invited to become a farmer and host the hardware that is the backbone of this new peer-to-peer internet.
new text: The new Internet is a common good owned by all of us. Everyone is invited to become a farmer, to deploy and develop, and to use applications on this new peer-to-peer Internet.
Also developer demographic is missing
There are Farmers + Users ... but no ... developers.
current: FARMERS link their 3Nodes.....
current: USERS access decentralized ....
Add: DEVELOPERS own 100% of their workloads via a smart contract for IT

Once we move User part a little bit to the right - we good

done


[Doc Improvement] [Teams toolkit tutorial v4][3044224]

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
98
5
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
98
5
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
98
5
link
:white_check_mark:

msteams-platform/get-started/Teams-app-tutorials-and-code-samples-v4.md
100
0
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
98
5
link
:white_check_mark:

msteams-platform/get-started/Teams-app-tutorials-and-code-samples-v4.md
91
1
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
98
5
link
:white_check_mark:

msteams-platform/get-started/Teams-app-tutorials-and-code-samples-v4.md
91
1
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
98
5
link
:white_check_mark:

msteams-platform/get-started/Teams-app-tutorials-and-code-samples-v4.md
91
1
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Content is added to PR #8606 hence, closing this PR.


Firebreak: Will Snyk help us with managing dependancies and vulnerabilities

Background

As an Operations Engineering Team
we want information about dependancies and vulnerabilities in our code
so that we can keep our code up to date and working effectively, as well as being secure and safe to use.
We have decided as a team that we care about keeping our codebase up to date and secure. These are the two reasons why we care about managing our dependancies. We currently use dependabot to identify and resolve issues.
In this firebreak story we want to experiment with Snyk to see if it can replace dependabot or provide additional coverage.
As a result of this story we will know whether we want to adopt Renovate.
What hypothesis do we want to test?/What do we want to learn?

In this spike we will want to understand the following:

What does this tool offer in addition to dependabot?
Is there anything that dependabot does that this tool doesn't?
How do we embed this tool into our workflow?
How easy is it to implement?
Are the output of the tool easy to follow and contain sufficient information to know what to do with the information?
Will the tool help us maintain our code?
Will the tool help us improve security of our code?
Would we use this tool to replace dependabot or in addition to?
Are there any other useful feature that could be used that would help us manage other problems not covered in the user needs?

Definition of done

[ ] Firebreak finding documented
[ ] Demo of findings for the team
[ ] Decision can be made on whether to progress Firebreak work
[ ] Does next steps require User Research?
[ ] Next step user stories can be created

Aged out


Borderless windows

Adds borderless window support to the Windows build of the engine. Also centers the window by default.

Could you maybe merge the second commit into the first one using git rebase -i HEAD~2? Once a commit is pushed to the main repo this kind of hotfix commits are of course needed, but for a pull request it's best to get it right from the start since you can rebase as much as you want in your fork (else I guess a git bisect landing on 86b2027 would fail for example).

The issues you raised should be resolved now. Still figuring out how to properly use the rebase command, but this should at least be alright now.

We merged a big pull request that removed all trailing spaces in the code, so it introduced merge conflicts with your PR. Could you have a look at rebasing it to solve the merge conflicts?

This one should be resolved now too :)

Sorry, which line was it. I can resubmit it if you want.

Ah, I see them now. Strange, these things didn't show up when I did the rebase.

Okay, whitespace issues are sorted here now.

Thanks! :)

Oops, I assumed that your PR would be working as we have travis CI performing tests on all PRs, but apparently this one was created before we configured travis. It seems to break on all platforms, could you have a look? https://travis-ci.org/godotengine/godot/builds/115544726

Should be fixed with 801221d.


Hyprland fails to initiate: Assertion '_M_has_value' failed.

Already reported ? *

[X] I have searched the existing open and closed issues.

Regression?
Yes
System Info and Version
 System/Version info
Hyprland 0.45.0 built from branch main at commit b1003445953474b967464d4d0878955d37498647  ().
Date: Thu Nov 21 14:31:42 2024
Tag: , commits: 5486
built against aquamarine 0.5.0

flags set:
debug

System Information:
System name: Linux
Node name: griever
Release: 6.11.8-200.fsync.fc40.x86_64
Version: #1 SMP PREEMPT_DYNAMIC TKG Thu Nov 14 21:06:14 UTC 2024

GPU information:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3080] [10de:2206] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX x86_64 Kernel Module  565.57.01  Thu Oct 10 12:29:05 UTC 2024

os-release: NAME="Nobara Linux"
VERSION="40 (GNOME Edition)"
ID=nobara
ID_LIKE="rhel centos fedora"
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Nobara Linux 40 (GNOME Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=nobara-logo-icon
CPE_NAME="cpe:/o:nobaraproject:nobara:40"
DEFAULT_HOSTNAME="nobara"
HOME_URL="https://nobaraproject.org/"
DOCUMENTATION_URL="https://www.nobaraproject.org/"
SUPPORT_URL="https://www.nobaraproject.org/"
BUG_REPORT_URL="https://gitlab.com/gloriouseggroll/nobara-images"
REDHAT_BUGZILLA_PRODUCT="Nobara"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Nobara"
REDHAT_SUPPORT_PRODUCT_VERSION=40
SUPPORT_END=2025-05-13
VARIANT="GNOME Edition"
VARIANT_ID=gnome

plugins:
	unknown: not runtime

Description
First off: thanks a lot for all the works you're doing on Hyprland, I love it!
About two weeks ago I upgraded Hyprland via standard dnf upgrade (I use _copr:copr.fedorainfracloud.org:solopasha:hyprland.repo repository which constantly builds Hyprland from latest git) but after upgrading to v0.45.0 my Hyprland doesn't seem to start correctly anymore. I went through Breaking Changes to check if anything can be the issue, but this time I didn't use features that were moved. So I decided it may be a broken build and I can wait it out. However, even now after upgrading to 0.45.2 my Hyprland doesn't seem to get any better plus checking crash logs seem to suggest a problem with something inside, mainly:
[LOG] Using config: /home/mati/.config/hypr/hyprland.conf
[...]
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 1.96µs. Estimated average calc time: 0.02µs.
/usr/include/c++/14/expected:716: constexpr _Tp&& std::expected<_Tp, _Er>::operator*() && [with _Tp = long int; _Er = std::__cxx11::basic_string<char>]: Assertion '_M_has_value' failed.
Hyprland has crashed :( Consult the crash report at /home/mati/.cache/hyprland/hyprlandCrashReport12556.txt for more information.
[1]    12556 IOT instruction (core dumped)  Hyprland

I also tried to add
debug {
  disable_logs = false
  enable_stdout_logs = true
}

to my hyprland.config, but unfortunately this doesn't seem to produce anymore logs (does it mean Hyprland crashes before loading the config? Using config[...] line seems to suggest it's not the case). However if you need me to do anything specific in order to help with debug, I'll try to do that (I'm no C developer, but I am happy to learn a few things if needed).
Thanks in advance for any help that you guys can provide!
How to reproduce
As mentioned: I use hyprland-git package from _copr:copr.fedorainfracloud.org:solopasha:hyprland.repo and https://github.com/JaKooLit/Hyprland-Dots config with small modifications (additional keybinds, using dark GTK themes, nothing more really). Either starting Hyprland from tty or trying to go from logon screen ends up failing unfortunately.
Crash reports, logs, images, videos
Hyprlans Crash Log:
hyprlandCrashReport10828.txt

Can you try on git? 0.45.0 is also not the latest release either.

Thanks for taking your time on that, @vaxerski !
Please find my gdb.txt, super happy to help more if I can!
It seems that there may be the issue in my config though, because it has those lines:
  28   │ #11 0x00005644359f652f in configHandleGradientSet(char const*, void**) [clone .lto_priv.0] ()
  29   │ #12 0x00007f7a297249f8 in Hyprlang::CConfig::configSetValueSafe(std::__cxx11::basic_string<char, std:
       │ :char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<
       │ char>, std::allocator<char> > const&) () at /lib64/libhyprlang.so.2

...although without any further pointer on what particular line can be wrong I don't think I will be able to check further.

try now

Thanks a lot, @vaxerski , this moved the issue further and allowed me to start Hyprland!
Now the issue is:
Config error in file /home/mati/.config/hypr/hyprland.conf at line 21:Config error in file /home/mati/.config/hypr/UserConfig/UserSettings.conf at line 33: Error parsing gradient rgb(1C1E1F)Col: No colors?
Relevant config is:
general {
[...]
  col.active_border = rgb(0A0000)
  col.inactive_border = rgb(1C1E1F)
}

And col.inactive_border = rgb(1C1E1F) causes trouble even though col.active_border = rgb(0A0000) seems okay. Theoretically it's sourced from wallust but up till now having this one as rgb(...) didn't produce issues (it doesn't seem this have changed according to the docs too). Of course fixing (hardcoding it to e.g. rgb(0A0000)) just this one is not really an issue, but I wonder why did it start to complain in the first place?
Also, mouse cursor seems ultra-choppy (window movement kinda too), but when I run some app it doesn't seem to be affected as much. I checked hyprctl monitors and my monitor's config just in case (in my experience this has caused some issues in the past) but for now it seems okay, so I guess this may be due to more config keys that use rgb(...) as their values (col.inactive_border is not the only one).
And chance I could ask you to have another look?

doesn't seem to cause any problems on my end?

That's actually quite interesting! I started checking and it also doesn't appear on my end on bare 0.45.2 but it appears again every time when running 55ec8bd. Super strange!
My cursor is fine after applying cursor.no_hardware_cursors = true and everything seems to be in order (even though I didn't change anything really in terms of configuration beside cursor prop).
So it works for now but I just wonder if it won't get messed up again after next minor version. Guess I'll have to find out and I probably took way too much of your time from more important matters, man.
Super thankful for all of your work on this issue and Hyprland overall, feel free to close the issue for now, unless you see a point to dig further (then of course I am happy to help with whatever I can)
Have a great weekend!

rgb(101010)Col doesn't look valid at all

Well, my color config is just this (at this moment) as  I use wallust to get the colors.
# /* wallust template - colors-hyprland */

$background = rgb(2A2B2E)
$foreground = rgb(F5ECD8)
$color0 = rgb(4F5053)
$color1 = rgb(212430)
$color2 = rgb(494D60)
$color3 = rgb(5D6278)
$color4 = rgb(B2755A)
$color5 = rgb(629791)
$color6 = rgb(AA966C)
$color7 = rgb(E9DBBF)
$color8 = rgb(A39986)
$color9 = rgb(2C3040)
$color10 = rgb(616780)
$color11 = rgb(7C83A0)
$color12 = rgb(EE9C78)
$color13 = rgb(83C9C1)
$color14 = rgb(E3C890)
$color15 = rgb(E9DBBF)

Used in
general {
   col.active_border = $color12
   col.inactive_border = $backgroundCol
}

so I am not sure what's going on this started happening after a Hyprland update.

I guess this is the offending commit. https://github.com/hyprwm/Hyprland/commit/55ec8bd512605a014cc322d3419a9cfa72178340 @vaxry @fufexan

EDIT: I am just dumb, why didn't I notice the Col

:)


34 port notebooks under modeldocs to quarto

Added the qmd versions of the jupyter notebooks (and their md versions).
Added a couple of makefile entries to make building easier.
Under model/docs. pre-commit will only check *_cache, if needed.

This is ready for review, @dylanhmorris, @natemcintosh, @AFg6K7h4fhy2, or @SamuelBrand1 :)


Enabling port monitoring of provider executable

Signed-off-by: Kevin Hoffman<EMAIL_ADDRESS>

Closes #53


Questions about best weights and resume options

Before Asking

[X] I have read the README carefully. 我已经仔细阅读了README上的操作指引。

[X] I want to train my custom dataset, and I have read the tutorials for finetune on your data carefully and organize my dataset correctly; 我想训练自定义数据集，我已经仔细阅读了训练自定义数据的教程，以及按照正确的目录结构存放数据集。

[X] I have pulled the latest code of main branch to run again and the problem still existed. 我已经拉取了主分支上最新的代码，重新运行之后，问题仍不能解决。

Search before asking

[X] I have searched the DAMO-YOLO issues and found no similar questions.

Question
Hello all,
I have a couple of questions about DAMO-YOLO.
First, related to best weights, I have done training with my data but it does not save me the best weights.
Is this because it's not implemented yet or I need to modify something in the code?
Secondly, is there an option to relaunch a training from a specific epoch (or the last epoch processed in case of an error)?
Thanks in advice,
A greeting,
María.
Additional
No response

Hi,
For the first question, During the training, we didn't save the best weights in this code yet. However, we log the validation mAP in ./workdirs/your_exp_names/train_log.txt, you can find the best weight and pick it up from saved checkpoints.
Secondly, you can resume training by set config.training.resume_path = './workdirs/your_exp_names/epoch_xxx_ckpt.pth' in your configs.py. We update code related to this part, you may need to pull the recent commit to make the resume work.

Hi @XianzheXu I am trying to train with custom dataset. Bu I can't exactly figured out how to resume a training. According to what you wrote, I need to edit the configs.py folder, but there is no such python file. When I searched the other files, I saw that there was an option called 'resume_path': None in damo > configs > base.py folder on line 39 and I edited here, but it didn't help if I edited it, still the training starts from the beginning. Looking forward to your help, thanks.

Hi @XianzheXu I am trying to train with custom dataset. Bu I can't exactly figured out how to resume a training. According to what you wrote, I need to edit the configs.py folder, but there is no such python file. When I searched the other files, I saw that there was an option called 'resume_path': None in damo > configs > base.py folder on line 39 and I edited here, but it didn't help if I edited it, still the training starts from the beginning. Looking forward to your help, thanks.

When I followed the code, in order to resume the training, for example, deleting the self.train.finetune_path path in the damoyolo_tinynasL20_T.py file in the configs folder and giving the resume_path option on line 39 in damo > configs > base.py as mentioned above allowed me to continue the training. I found the solution myself, thank you anyway :D.


Disable startup loader by default and guard with env var

This PR changed the HIP default behavior and disabling the startup loader by default.
Users can turn it on by setting the environment variable as follows:
export HIP_STARTUP_LOADER=1
If the environment variable is not set or is set to other values, including '0', the startup loader will be disabled.

@gargrahul @mangupta as we've discussed on the meeting, could you help merge it to master branch first?


Question :Filer , Sorting ,  Joins , Merge through Waggle Dance

I've question  on  Filer , Sorting ,  Joins , Merge through Waggle Dance
E.g. select * from remotedb.emp where created_date > sysdate - 365 through waggle dance ( emp table exists in remote hive metastore )
Does above statement does filter at remote metastore and then waggle dance get the data or entire table data is pulled before applying
filer condition.
Similar question for sorting or joins of tables across metastore . Where does the actual operation is carried out.
Thanks

Waggle Dance only interacts with hive on the metadata level. So all actual data manipulation is done on the cluster from which you fire you're query.

Great . Thanks on the clarification !

We are doing experimentation across regions with one of the region in our own data center and other in AWS.


Updated gradle distro; Fixed build.gradle as well

Fixes https://github.com/roughike/page-transformer/issues/9

@roughike can you merge ?


Messy error msg displayed when str check failed under zh_CN.UTF-8 env (wrong encoding?)

Downstream report (Debian): https://bugs.debian.org/892875
Using poedit 2.0.6 on Debian unstable.
The following procedures could reproduce the problem:

Enable zh_CN.UTF-8 locale
Install any CJK fonts on system (fonts-noto-cjk for example)
Open a random PO file with poedit under zh_CN.UTF-8 locale
(Wrongly) edit translation so that the check would fail
For example, deliberately translate a %ld to %lu which would
cause a mismatch.
Save the file.

In this way, messy error message would appear in poedit window.
A screenshot is provided. (Pay attention to the red parts)

Please always the current state of master first: 51612c40fa814ef02b9aaad68737a76d463f46cd


Do not restart Elasticsearch on config change when restart_config_change is set to false

This change will fix that Elasticsearch service is not being restarted when restart_config_change is set to false. Without this change Elasticsearch was still restarted on config changes even when restart_config_change was set to false. See also issue #1113

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@fatmcgav can we have this PR merged and released soon? I dont like to fork the module again for such a tiny issue.

I think https://github.com/elastic/puppet-elasticsearch/pull/1111 is what's needed, no need to globally notify entire class

I think #1111 is what's needed, no need to globally notify entire class

If you use that method then Elasticsearch will never restart after a config change, is it?


trim_galore as an alternative adapter trimmer

As discussed with others in the group, we should implement a module with trim_galore (wrapper to fastqc and cutadapt) as an alternative to trimmomatic -- the latter might work better but it requires user's input of adapter sequence file and in many cases analysts dont have the knowledge of what the adapter is (unless they are told of it by those who did the experiments). trim_galore on the other hand guesses what it is.
Here are a couple of examples using trim_galore:
https://github.com/aryeelab/bisulfite-seq-tools/blob/d07254447a81639303cf1d98489a85d6d97ab5da/pipelines/bismark.wdl
https://gitlab.unimelb.edu.au/bshaban/metaGenePipe/-/blob/08851eceff5f4f182a088d367253eede82aa58a9/tasks/trim_galore.wdl
(I tried to find out if there is a way trimmomatic can guess the sequence but I didn't came across anything useful on that end. )

For reference, the way trim_galore guess reference is as followed:
Adapter auto-detection
If no sequence was supplied, Trim Galore will attempt to auto-detect the adapter which has been used. For this it will analyse the first 1 million sequences of the first specified file and attempt to find the first 12 or 13bp of the following standard adapters:

Illumina:   AGATCGGAAGAGC
Small RNA:  TGGAATTCTCGG
Nextera:    CTGTCTCTTATA

If no adapter contamination can be detected within the first 1 million sequences, or in case of a tie between several different adapters, Trim Galore defaults to --illumina, as long as the Illumina adapter sequence was one of the options. If there was a tie between the Nextera and small RNA adapter, the default is --nextera. The auto-detection results are shown on screen and printed to the trimming report for future reference.

the main advantage of trim_galore is to auto-detect adaptors, maybe we could add another tools to do this job then still use trimmomatic?
There are two that were mentioned in https://www.biostars.org/p/364004/
one of them, fastp , seems legit.

The current plan is to use fastp to auto-detect adaptor sequence and generate fasta file then use that for trimmomatic.


Demo page does not work anymore because of jQuery

Maybe use cdnjs instead: https://cdnjs.com/libraries/jquery/1.10.2

What browser are you using? I'm using Chrome and this is what I see. The version I'm using is Version 65.0.3325.181 (Official Build) (64-bit)

As reported it's working just fine. That was probably a connection error. Thanks for reporting.
Closing this.


NAN Return Value

This should not happen!
mode.respy.txt
est.respy.log
est.respy.txt

This is solved, minor modification of code needed

                            sd = ABS(optim_paras%shocks_cholesky(idx, idx))

I needed to add the absolute value as the standard deviation mus be positive, but also a negative cholesky_factor(1, 1) is admissible and yields the same standard deviation.


Match website theme with C3 Handbook and Main page

The localStorage item for starlight docs theme was not matching with home page localStorage item for it's theme

Thank you


ADD feature_request.md

Proposed changes
This PR add templeate of md file for a feature request.
Types of changes
What types of changes does your code introduce to the project: Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Update docker image version of FIWARE GE.
[ ] Update only documentation, not any source code.

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

[X] I have read the CONTRIBUTING doc
[ ] I have signed the CLA
[X] I have updated the change log (CHANGELOG.md)
[X] I send this pull request to the v0.20.0-next branch.
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
N/A

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (582905b) compared to base (b8defb5).
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@              Coverage Diff               @@
##           v0.20.0-next      #246   +/-   ##
==============================================
  Coverage        100.00%   100.00%
==============================================
  Files                 2         2
  Lines              1775      1775
==============================================
  Hits               1775      1775

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Update password complexity description

Replace:
The password must be at least eight characters long, with two of the following three elements: letters, numbers, and symbols.
With:
The password must be at least eight characters long, with all four of the following elements: uppercase letters, lowercase letters, digits, and symbols.

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

ID: 754dcf9b-e64a-922b-6108-bd1152a758f0
Version Independent ID: 58247335-c4e9-705b-297d-97637b872c02
Content: Configure deployment credentials - Azure App Service
Content Source: articles/app-service/deploy-configure-credentials.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@craigbeeremct
Thanks for your feedback! We will investigate and update as appropriate.

@craigbeeremct Thanks again for the feedback! The PR has been created once reviewed by author of the doc will be merged.
We will close this out but if you feel you need more information please just let us know.


Kinematics tests

…t values passed in and check all values output

Add Readme changes and version of the project through this pr as well


user-data secret is created with the key "https://github.com/openshif…

The issue explain the PR, this issue will be closed after fixes in the cluster-api-provider-kubevirt
What this PR does / why we need it: userdata secret is now created with the key userdata instead of value
Which issue(s) this PR fixes #1634
Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.
[x] This change includes docs.
[x] This change includes unit tests.

I see no reason for us to change this. It's indeed part of the contract with providers https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/7e51e45a1f1a150dc63c8f02290760eb05675ec5/azure/scope/machine.go#L626
https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/pkg/cloud/scope/machine.go#L280
Please, let's clarify and discuss in kubevirt.

I see no reason for us to change this. It's indeed part of the contract with providers https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/7e51e45a1f1a150dc63c8f02290760eb05675ec5/azure/scope/machine.go#L626 https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/pkg/cloud/scope/machine.go#L280
Please, let's clarify and discuss in kubevirt.

After inspecting the other providers I agree.
But every provider should be aware of the secret rotation, I do not know about the other providers but the kubevirt provider does not.
I will work on implementing such mechanism.

But every provider should be aware of the secret rotation, I do not know about the other providers but the kubevirt provider does not.
I will work on implementing such mechanism on the cluster-api-provider-kubevirt project.

I'm not sure I follow. Token rotation is driven transparently by hypershift. Userdata secret is consumed by providers via infra template. I wouldn't expect a provider needing to be aware of rotation at all.
Please point me to kubevirt issue/PR so I'd be happy to share feedback there.

But every provider should be aware of the secret rotation, I do not know about the other providers but the kubevirt provider does not.

I will work on implementing such mechanism on the cluster-api-provider-kubevirt project.
@raz-bn I'm not sure I follow. Token rotation is driven transparently by hypershift. Userdata secret is consumed by providers via infra template. I wouldn't expect a provider needing to be aware of rotation at all.
Please point me to kubevirt issue/PR so I'd be happy to share feedback there.

https://github.com/kubernetes-sigs/cluster-api-provider-kubevirt/issues/169
Please share your thoughts 😊

yes, This is an issue with the cluster-api-provider-kubevirt. That controller is mismanaging the user data secret


aiogram 3 compatible version

I made a fork for aiogram 3, it's fully complatible with aiogram 3 and all tests are completely passed
Warding: NOT COMLATIBLE with aiogram 2
Instalation
pip install aiogram3_calendar
Repository is here

package updated for aiogram 3


Suppress NWIS Client value_time warning

Small PR to remove the check for value_time per #117 . Also, added a catch for an empty dataframe warning in one of the tests.
Additions

None

Removals

Check for value_time default.

Changes

Empty dataframe warning in test is caught.

Testing

Notes

Closes #117

Todos

Checklist

[x] PR has an informative and human-readable title
[x] PR is well outlined and documented. See #12 for an example
[x] Changes are limited to a single goal (no scope creep)
[x] Code can be automatically merged (no conflicts)
[x] Code follows project standards (see CONTRIBUTING.md)
[x] Passes all existing automated tests
[x] Any change in functionality is tested
[x] New functions are documented (with a description, list of inputs, and expected output) using numpy docstring formatting
[ ] Placeholder code is flagged / future todos are captured in comments
[ ] Reviewers requested with the Reviewers tool :arrow_right:

Going ahead and deploying 3.2.1 of nwis_client. Ill post a comment with the deployment once it is live

Up now

I noticed a few warning when running the unit tests before uploading to pypi. namely:
===================================================================================================== warnings summary =====================================================================================================
venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:28
  ~/github/hydrotools_fork/python/nwis_client/venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:28: DeprecationWarning: The 'asyncio_mode' is 'legacy', switching to 'auto' for the sake of pytest-aiohttp backward compatibility. Please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
    config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)

tests/test_nwis.py: 62 warnings
  ~/github/hydrotools_fork/python/nwis_client/venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:33: DeprecationWarning: 'loop' fixture is deprecated and scheduled for removal, please use 'event_loop' instead
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

I can address these in a future PR when I fix the slow unit tests that are failing as well.


SqlxCrud::by_id() fails in an asyncronous context.

Hi there,
First off, amazing crate! Thank you for all your hard work.
I don't have my example handy on me (I'll upload ir this evening), but the future send from by_id is not send.
This causws problems in Axum when using your crare to retireve db results inside Axum handler functions. You may simply be able to implement Unpin for the future/Box/Pin, but I'm not entirely sure. It's also hard to test since most of your examples are in
asynchronous runtime. I can make a PR that runs some tests within a tokio_text::block_on(async { ... })
Or is this simply something you don't support?

Thanks for the kind words. I've been dragging my feet on finishing out the
feature set, perhaps this will motivate me to finish it.
I'd be happy to support that sort of use case, especially if it means that
Axum will work. When I wrote this it was with actix-web in mind and in that
case it worked fine.
If you can send some test cases that exhibit the behavior please do. That
might make it clearer what the issue is, although I think I understand.
Trey Dempsey
817-521-8146
@.***
On Sat, Mar 25, 2023 at 4:02 PM Tait Hoyem @.***> wrote:

Hi there,
First off, amazing crate! Thank you for all your hard work.
I don't have my example handy on me (I'll upload ir this evening), but the
future send from by_id is not send.
This causws problems in Axum when using your crare to retireve db results
inside Axum handler functions. You may simply be able to implement Unpin
for the future/Box/Pin, but I'm not entirely sure. It's also hard to test
since most of your examples are in
asynchronous runtime. I can make a PR that runs some tests within a tokio_text::block_on(async
{ ... })
Or is this simply something you don't support?
—
Reply to this email directly, view it on GitHub
https://github.com/treydempsey/sqlx-crud/issues/9, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAX3FHSE7LZNLS3CXKLT2LW55MNXANCNFSM6AAAAAAWHXXWQQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Okay I reproduced the issue, Futures returned by Axum Handlers must
implement Send.
The futures, CrudFut, returned by sqlx-crud for most methods don't
implement Send. Adding a bound on Send
type CrudFut<'e, T> = Pin<Box<dyn Future<Output = Result<T, sqlx::Error>> +
Send + 'e>>;
causes a lifetime issue where the returned future outlives the borrow on
self (T). This is because create the query by binding the values in self
for queries like create or update.
So how can we fix this? Should I make create and update move self instead
of borrow it?
Trey
On Sun, Apr 2, 2023 at 11:31 PM Trey Dempsey @.***> wrote:

Thanks for the kind words. I've been dragging my feet on finishing out the
feature set, perhaps this will motivate me to finish it.
I'd be happy to support that sort of use case, especially if it means that
Axum will work. When I wrote this it was with actix-web in mind and in that
case it worked fine.
If you can send some test cases that exhibit the behavior please do. That
might make it clearer what the issue is, although I think I understand.
Trey Dempsey
817-521-8146
@.***
On Sat, Mar 25, 2023 at 4:02 PM Tait Hoyem @.***>
wrote:

Hi there,
First off, amazing crate! Thank you for all your hard work.
I don't have my example handy on me (I'll upload ir this evening), but
the future send from by_id is not send.
This causws problems in Axum when using your crare to retireve db results
inside Axum handler functions. You may simply be able to implement Unpin
for the future/Box/Pin, but I'm not entirely sure. It's also hard to test
since most of your examples are in
asynchronous runtime. I can make a PR that runs some tests within a tokio_text::block_on(async
{ ... })
Or is this simply something you don't support?
—
Reply to this email directly, view it on GitHub
https://github.com/treydempsey/sqlx-crud/issues/9, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAX3FHSE7LZNLS3CXKLT2LW55MNXANCNFSM6AAAAAAWHXXWQQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I figured out a solution. I used cargo expand to view the code generated
when running query_as!(). It creates a separate owned query object that is
borrowed by the fetch future which is tied to its lifetime. I might be
stuck with copying arguments in to the query object so it owns them instead
of self, but i think i'm okay with that. After all if you were to use
query_as!() instead it would do the same thing. Either way now that fetch
doesn't borrow self, the lifetime issue is solved. I was also able to add
the bound of Send to the future returned by it so it works with Axum.
I just implemented by_id so far and it's a bit rough but it works.
See the axum-support branch for code.
Trey
On Mon, Apr 3, 2023 at 5:20 AM Trey Dempsey @.***> wrote:

Okay I reproduced the issue, Futures returned by Axum Handlers must
implement Send.
The futures, CrudFut, returned by sqlx-crud for most methods don't
implement Send. Adding a bound on Send
type CrudFut<'e, T> = Pin<Box<dyn Future<Output = Result<T,
sqlx::Error>> + Send + 'e>>;
causes a lifetime issue where the returned future outlives the borrow on
self (T). This is because create the query by binding the values in self
for queries like create or update.
So how can we fix this? Should I make create and update move self instead
of borrow it?
Trey
On Sun, Apr 2, 2023 at 11:31 PM Trey Dempsey @.***>
wrote:

Thanks for the kind words. I've been dragging my feet on finishing out
the feature set, perhaps this will motivate me to finish it.
I'd be happy to support that sort of use case, especially if it means
that Axum will work. When I wrote this it was with actix-web in mind and in
that case it worked fine.
If you can send some test cases that exhibit the behavior please do. That
might make it clearer what the issue is, although I think I understand.
Trey Dempsey
817-521-8146
@.***
On Sat, Mar 25, 2023 at 4:02 PM Tait Hoyem @.***>
wrote:

Hi there,
First off, amazing crate! Thank you for all your hard work.
I don't have my example handy on me (I'll upload ir this evening), but
the future send from by_id is not send.
This causws problems in Axum when using your crare to retireve db
results inside Axum handler functions. You may simply be able to implement
Unpin for the future/Box/Pin, but I'm not entirely sure. It's also hard to
test since most of your examples are in
asynchronous runtime. I can make a PR that runs some tests within a tokio_text::block_on(async
{ ... })
Or is this simply something you don't support?
—
Reply to this email directly, view it on GitHub
https://github.com/treydempsey/sqlx-crud/issues/9, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAX3FHSE7LZNLS3CXKLT2LW55MNXANCNFSM6AAAAAAWHXXWQQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Oh I just realixed I never responded to your other comments.
Great that you solved the issue! Would uou like me to finish it for the other functions or would you rather do it yourself?

I believe it's done for all of the functions. Check out the axum-support branch and tell me what you think.

Hello! I agree this is an awesome crate. I ran into a similar issue, but in my case I'm writing a Discord bot with serenity. The axum-support branch fixed by_id, however update and delete don't work. Here is a minimal main.rs:
use serenity::async_trait;
use serenity::prelude::*;
use sqlx::{FromRow, Pool, Sqlite, SqlitePool};
use sqlx_crud::SqlxCrud;

struct Handler {
    db: Pool<Sqlite>,
}

#[derive(FromRow, SqlxCrud)]
struct User {
    id: i64,
    name: String,
}

#[async_trait]
impl EventHandler for Handler {
    async fn message(&self, _ctx: Context, _msg: serenity::model::channel::Message) {
        use sqlx_crud::Crud;

        // works
        let user = User {
            id: 1,
            name: "test".to_owned(),
        }
        .create(&self.db)
        .await
        .unwrap();

        // works
        let user = User::by_id(&self.db, 1).await.unwrap().unwrap();

        // doesn't work
        // let user = user.update(&self.db).await.unwrap();

        // doesn't work
        // let user = user.delete(&self.db).await.unwrap();
    }
}

#[tokio::main]
async fn main() {
    let db = SqlitePool::connect("sqlite:sqlite.db").await.unwrap();

    let _ = Handler { db };
}

And associated Cargo.toml dependencies:
tokio = { version = "1", features = ["macros"]}
serenity = "0.11"
sqlx = { version = "*", features = ["runtime-tokio-rustls", "sqlite"] }
sqlx-crud = { version = "*", features = ["runtime-tokio-rustls"], git = "https://github.com/treydempsey/sqlx-crud", branch = "axum-support" }

Thanks for the help!

Thanks for the feedback and testing. Im not sure why update or delete
aren't working. Its probably an ownership issue where the sqlx "args" is
borrowing self. I thought i fixed that by having it consume self. Ill take
a look and see what I can do. Additional feedback or testing is
appreciated.
On Sat, Apr 15, 2023, 5:16 AM crat0z @.***> wrote:

Hello! I agree this is an awesome crate. I ran into a similar issue, but
in my case I'm writing a Discord bot with serenity. The axum-support branch
fixed by_id, however update and delete don't work. Here is a minimal
main.rs:
use serenity::async_trait;use serenity::prelude::*;use sqlx::{FromRow, Pool, Sqlite, SqlitePool};use sqlx_crud::SqlxCrud;
struct Handler {
db: Pool,}
#[derive(FromRow, SqlxCrud)]struct User {
id: i64,
name: String,}
#[async_trait]impl EventHandler for Handler {
async fn message(&self, _ctx: Context, _msg: serenity::model::channel::Message) {
use sqlx_crud::Crud;
    // works
    let user = User {
        id: 1,
        name: "test".to_owned(),
    }
    .create(&self.db)
    .await
    .unwrap();

    // works
    let user = User::by_id(&self.db, 1).await.unwrap().unwrap();

    // doesn't work
    // let user = user.update(&self.db).await.unwrap();

    // doesn't work
    // let user = user.delete(&self.db).await.unwrap();
}}

#[tokio::main]async fn main() {
let db = SqlitePool::connect("sqlite:sqlite.db").await.unwrap();
let _ = Handler { db };}

And associated Cargo.toml dependencies:
tokio = { version = "1", features = ["macros"]}serenity = "0.11"sqlx = { version = "", features = ["runtime-tokio-rustls", "sqlite"] }sqlx-crud = { version = "", features = ["runtime-tokio-rustls"], git = "https://github.com/treydempsey/sqlx-crud", branch = "axum-support" }
Thanks for the help!
—
Reply to this email directly, view it on GitHub
https://github.com/treydempsey/sqlx-crud/issues/9#issuecomment-1509718232,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAX3FDGVDP2WY3FXJ4PZKLXBJYO5ANCNFSM6AAAAAAWHXXWQQ
.
You are receiving this because you were assigned.Message ID:
@.***>

Okay I believe I see the issue. I didnt change the CrudFut type to include
Send and update is still using the type alias. I expanded the type for
by_id and added Send there. I just need to roll Send into CrudFut. And i
need to double check the proc macro generates an owned sqlx args instance.
Im away from a computer now but ill take a look this evening (US).
Cheers
On Sat, Apr 15, 2023, 10:51 AM Trey Dempsey @.***> wrote:

Thanks for the feedback and testing. Im not sure why update or delete
aren't working. Its probably an ownership issue where the sqlx "args" is
borrowing self. I thought i fixed that by having it consume self. Ill take
a look and see what I can do. Additional feedback or testing is
appreciated.
On Sat, Apr 15, 2023, 5:16 AM crat0z @.***> wrote:

Hello! I agree this is an awesome crate. I ran into a similar issue, but
in my case I'm writing a Discord bot with serenity. The axum-support branch
fixed by_id, however update and delete don't work. Here is a minimal
main.rs:
use serenity::async_trait;use serenity::prelude::*;use sqlx::{FromRow, Pool, Sqlite, SqlitePool};use sqlx_crud::SqlxCrud;
struct Handler {
db: Pool,}
#[derive(FromRow, SqlxCrud)]struct User {
id: i64,
name: String,}
#[async_trait]impl EventHandler for Handler {
async fn message(&self, _ctx: Context, _msg: serenity::model::channel::Message) {
use sqlx_crud::Crud;
    // works
    let user = User {
        id: 1,
        name: "test".to_owned(),
    }
    .create(&self.db)
    .await
    .unwrap();

    // works
    let user = User::by_id(&self.db, 1).await.unwrap().unwrap();

    // doesn't work
    // let user = user.update(&self.db).await.unwrap();

    // doesn't work
    // let user = user.delete(&self.db).await.unwrap();
}}

#[tokio::main]async fn main() {
let db = SqlitePool::connect("sqlite:sqlite.db").await.unwrap();
let _ = Handler { db };}

And associated Cargo.toml dependencies:
tokio = { version = "1", features = ["macros"]}serenity = "0.11"sqlx = { version = "", features = ["runtime-tokio-rustls", "sqlite"] }sqlx-crud = { version = "", features = ["runtime-tokio-rustls"], git = "https://github.com/treydempsey/sqlx-crud", branch = "axum-support" }
Thanks for the help!
—
Reply to this email directly, view it on GitHub
https://github.com/treydempsey/sqlx-crud/issues/9#issuecomment-1509718232,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAX3FDGVDP2WY3FXJ4PZKLXBJYO5ANCNFSM6AAAAAAWHXXWQQ
.
You are receiving this because you were assigned.Message ID:
@.***>

Yep, delete just needed Send. update currently takes  &'e self, however changing it to self gives an error about update_binds I think, and 'e must outlive 'static blah blah. I tried fiddling with the code, but wasn't able to make much progress besides that.

Okay I pushed a branch that fixes update and delete. I also included test code for axum under examples/axum. If this looks good I'll bump the version and merge.

Works wonderfully for me. Thanks a lot!


On startup if plug-in does not finish loading within a time limit galaxy forcefully kills it

On startup if plug-in does not finish loading within a time limit galaxy forcefully kills it.
Noticed it during listing after loading emulators configuration completed for get local updates.

This might possibly be resolved by moving the library searching to another thread. If that works then a refactor of the code should be done to add a add, update and remove feature for each member of the cache to allow for smaller code locks.

It appears that the threading solution works and a demonstration is in dev. The code base really needs to be refactored to be more tread safe before this is resolved.

Worked with DJ to refactor some of this, the low hanging fruit, to teach him more python


fix: overwrite AdaptVQE.supports_aux_operators

Summary
AdaptVQE does indeed support aux operators but did not overwrite the default classmethod of the MinimumEigensolver interface. This PR fixes that.
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 3 (66.67%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.0007%) to 84.568%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/algorithms/minimum_eigensolvers/adapt_vqe.py
2
3
66.67%

Totals

Change from base Build<PHONE_NUMBER>:
-0.0007%

Covered Lines:
62428

Relevant Lines:
73820

💛  - Coveralls

LGTM, could you add a small test to ensure this is covered? 🙂


Tedee Local Network API

Tedee just released preview of local REST API for controlling locks. Do you think the integration should switch to this API when it becomes widely available or should it become a separate integration?
Documentation

That is awesome, after so much time it is finally out!

Already implemented in 2023.11.1b1

Perfect, thanks so much!

@zweckj shouldn't the status updates from manually operating the lock be instant? I'm on 2023.11.0b2 and sometimes status updates can take 5-15secs.

@zweckj shouldn't the status updates from manually operating the lock be instant? I'm on 2023.11.0b2 and sometimes status updates can take 5-15secs.

yes, but beta.

if you open it through the service "unlock", the lock opens but with an error in the log.
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:230
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:29:09 (2 occurrences)
Last logged: 14:31:39

[139639215195328] Failed to unlock the door. Lock xxxxx
[139639148755520] Failed to unlock the door. Lock xxxxx
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/pytedee_async/tedee_client.py", line 325, in _local_api_call
    r = await http_request(
        ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pytedee_async/helpers.py", line 44, in http_request
    return await handle_response(response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pytedee_async/helpers.py", line 64, in handle_response
    raise TedeeClientException(
pytedee_async.exception.TedeeClientException: Error during HTTP request. Status code 406

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/tedee/lock.py", line 144, in async_unlock
    await self.coordinator.tedee_client.unlock(self._lock.lock_id)
  File "/usr/local/lib/python3.11/site-packages/pytedee_async/tedee_client.py", line 220, in unlock
    local_call_success, _ = await self._local_api_call(
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pytedee_async/tedee_client.py", line 348, in _local_api_call
    raise TedeeDataUpdateException(
pytedee_async.exception.TedeeDataUpdateException: Error while calling local API endpoint /lock/xxxxxx/unlock?mode=3.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 230, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 876, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/lock/__init__.py", line 111, in _async_unlock
    await entity.async_unlock(**remove_entity_service_fields(service_call))
  File "/config/custom_components/tedee/lock.py", line 147, in async_unlock
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Failed to unlock the door. Lock xxxxx

I tested the local api a bit and overall it works very smoothly except for the status update. I have the impression that it behaves a bit as if the cloud is being queried after closing open because the status will change after a few seconds from when it actually closed open. Is this a feature or a bug ?

Is this a feature or a bug ?
HA queries the bridge (and if it can't reach that, the cloud - if configured) every couple of seconds, that's when you receive the update.
Push updates appear to be broken. Somebody - either tedee or Home Assistant - changed something and push updates stopped working.

Starting with HomeAssistant 2024.2 a tedee integration which supports the local API will be part of HomeAssistant core, development of the local API here will not be taken further (at least not by me).


Some strings returned as "string" class instead of "char" in recent matlab versions

Arrays of strings are parsed by matlab's eval, and since they use double quotes they end up as string instead of char starting from 2017a.
A simple fix is to convert them back at the end, something like the following in loadjson.m (after parsing):
% The eval in parse_array creates strings, not char arrays, in R2017a+. Convert
% back (in try block, because the method probably doesn't exist in earlier versions)
try
    data = controllib.internal.util.hString2Char(data);
catch
end

hi @jobh, thanks for the comment. can you give me a short example showing this issue? I am also curious if adverse-effect if we leave it as "string"?

Since char and string have different behaviors in Matlab, you could encounter adverse effects in a downstream program which uses the loaded JSON object. A simple example would be a function which checks the input type using ischar - this would return zero if the variable in question is a string.
Since JSON does not permit single quote strings, the only way to resolve string vs. char would be to encode the type with the variable. Note that the neither built-injsonencode nor mps.json.encode support string types.

right now, I don't see a problem storing strings as char array in JSON since there is no difference in JSON's specification. I do see a problem when one tries to store a string array, jsonlab can raise an error, but I think it should be fixed now after this commit by treating string arrays as a cell.
https://github.com/fangq/jsonlab/commit/ed2645e558c510b806c738de8b9dc71096a708ae

fixed. A user now can use ParseStringArray=1 or 0 to choose parsing string array or convert to char array. default is covert to char array (ParseStringArray=0). Try
jdata=loadjson('{"a": ["a1", "a10", 2, "a100"]}')
jdata =

  struct with fields:

    a: {'a1'  'a10'  [2]  'a100'}

and
jdata=loadjson('{"a": ["a1", "a10", 2, "a100"]}','ParseStringArray',1)

jdata =

  struct with fields:

    a: {["a1"]  ["a10"]  [2]  ["a100"]}

an alternative is to disable the fastarrayparser using
jdata=loadjson('{"a": ["a1", "a10", 2, "a100"]}','FastArrayParser',0)


Update sql-database-managed-instance-create-tutorial-portal.md

Changed to 12 -> 16 due to incorrect password length

#sign-off

@CarlRabeler: I'm sorry - only the author of this article, @bonova, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Update -swift-version to default to 6 for swift-tools-version 6

We missed updating this when adding 6.0. The change itself is extremely
simple, with the bulk being updates to our tests so they don't fail on
old compiler versions (where language version "6" is unknown).
Also removes disabling the concurrency and string processing imports
from manifest loading, as this was causing the package global to not
be main actor isolated by default and thus error in Swift 6. They seemed
to have been disabled to avoid erroring in SDKs that didn't have them,
but that is definitely not an issue any longer.

@swift-ci please test

@swift-ci test

We need to update PackageDescription to make it compatible with Swift 6:
/home/build-user/swiftpm/Sources/PackageDescription/SupportedPlatforms.swift:55:23: error: static property 'linux' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state
 53 |
 54 |     /// The Linux platform.
 55 |     public static let linux: Platform = Platform(name: "linux")
    |                       |- error: static property 'linux' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state
    |                       `- note: isolate 'linux' to a global actor, or conform 'Platform' to 'Sendable'
 56 |
 57 |     /// The Windows platform.

@swift-ci please test

@swift-ci test

@swift-ci test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test Windows platform

@swift-ci please test

@swift-ci please test Linux platform


Consolidate API to decrease OS-specific coupling

[x] This contribution adheres to CONTRIBUTING.md.

What does this Pull Request accomplish?

Removes channels that were PharLap specific.
Disables PharLap-specific code on other platforms.
Add support for 802.1AS (dependent on additional NI-Sync driver support).

Why should this Pull Request be merged?

Allows for deployment to some non-PharLap targets.
Adds support for 802.1AS synchronization protocol, which was not previously supported on PXI.

What testing has been done?
Hand testing:

Confirmed 802.1AS on non-PharLap target can act as both a master and slave

Used an NI cRIO-9045 as the other endpoint; the controlling VI is here

Confirmed 1588 between PharLap and non-PharLap controllers works and that both can master

Adding @jashnani to the review to keep him in the loop

My TimeSync property node is broken for Pharlap. What am I missing?

Since we have a known error code for disconnecting terminals, filter it out and let all other errors through.

@csjall

My TimeSync property node is broken for Pharlap. What am I missing?

If you look in the bottom-left corner, you can see that your context is Linux 64. If you click that and change it to Pharlap it should "unbreak".

D.R.Y.

@csjall

My TimeSync property node is broken for Pharlap. What am I missing?

If you look in the bottom-left corner, you can see that your context is Linux 64. If you click that and change it to Pharlap it should "unbreak".

That does not seem to be the issue. @rtzoeller thinks I may be missing the NI TimeSync 18.0.1 driver.

Update README to include 802.1AS support.


Unable to use Match without access to developer portal

Question Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Question Subject

How do I use a p12 file and a provisioning profile that I have been given with Match and my certificates repository?
Question Description

So, I have my certificates repository that for each app I have using different branches. Each branch has their respective certs and profiles folders that altogether contain a cer file, p12 and mobileprovision. In my fastfile I run match as normal to update my local certificates for signing.
In the cases for these apps I have had access to the developer portal to create the appropriate files. However now I have a case that I have been sent a mobileprovision and a p12 file for creating another app. In this case I don't have access to the developer portal. Is it possible to add these certificates to my certificates repository to continue using match as normal?
I have tried uploading them manually with the same folder structure as my other branches, but haven't been able to get it to work. The file format is completely different to my others which look to be in base64, so that may be the problem. But is it also due to the fact that I am missing the cer file?
Any help would be greatly appreciated.

@mlefleur I don't think it's currently possible to add provisioning profile and certs manually to match git repo. You have to have access to developer portal in order to use match.
@joshdholtz Correct me if I am wrong.

It sounds like you needed to be using Cert and Sigh with such a non-tradtional workflow.
Match may be hacked to work, but it would be easier to just switch to more granular tools in fastlane

@johnknapprs thanks for the suggestion - it's something I'm looking into at the moment. I'll post here anything potentially useful :)


I need Python2's print support on Python3

Ironically, what I miss most from Python is Python2's print, which for a language proud of getting rid of parenthesis, that is very contradictory....

Wouldn't this require some sort of adjacency operator that could be overloaded? I'm not 100% sure, but I don't see anything like this documented in Python.

from past import print_statement

I don't think there's a way to do this without preprocessing imported modules (like the from __ past__ import print_statement method).


Netcore build step fix

Fixed codegen build step regression.
Added netcore target as required for the build to pass (appveyor).
Allow osx mono:latest (mono:4.4.0) target to fail (travis ci).

OK great!

@dsyme / @ncave  So how can I build FCS on dotnetcore, are there prereqs other than dotnetcore?

On Windows, nothing else needed, just run "build DotnetCliBuild" or "build DotnetCliTests".
On osx/linux - netcore versions of FAKE/FsLex/FsYacc still WIP (maybe @enricosada can help) so mono codegen still required, but builds fine after that on dotnetcore. Build binaries are already available in the appveyor build and nuget feed (please ignore v1.0.0 as it is old, there is a more recent -alpha- version).

@ncave GREAT WORK!
i added a comment https://github.com/fsharp/FSharp.Compiler.Service/issues/465#issuecomment-226831196 about the dependencies and merge of binaries, but i think is ok.
Fake i dunno atm,
the FsLexYacc need some merge from open source and visualfsharp version, so i cannot do that soon, but are extenal tools, so it's ok to run these with mono i think.

@7sharp9 @enricosada I've added some pending issues with the dotnet core version: #581 and #582


New ecxhange

How can I add new exchange?

https://github.com/vladthelittleone/arbitrage.js
this guy using ccxt cryptocurrency trading library for working with exchanges.


fixed  URLComponents.queryItems crash on linux

Current coverage is 82.41% (diff: 100%)

Merging #13 into master will not change coverage

@@             master        #13   diff @@
==========================================
  Files            26         26
  Lines          2894       2894
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           2385       2385
  Misses          509        509
  Partials          0          0

Powered by Codecov. Last update 40464b0...5e21e2d