text:
loaders: getContract returns non-nullable ContractResult

Made ContractResult non-nullable (and renamed to be similar to AutoloadResult).
This way we can do more ergonomic
const { abi, name, ok } = await loader.getContract(address);
if (!ok) throw "failed"; // If we care, or skip this altogether if we don't
...

Rather than
const result = await loader.getContract(address);
if (result === null) throw "failed"; // Need this check either way, because it's nullable
const { abi, name } = result;
...

@SonOfMosiah what do you think?

Looks great! I was thinking of a status or success variable and I ok does the trick.

I figure ok is a little closer to the Result-type that some other languages have. 🤷

authors: SonOfMosiah shazow

repo: shazow/whatsabi


text:
Add nil and t

These are important lisp values to font lock.

Hmm, I see that these are getting highlighted in the middle of words, clearly I didn't quite understand what it means to do this.

source: gharchive/pull-request

repo: sheepduke/emacs-settings

license: Unlicense

license_type: permissive

license_source: github-api


text:
Welcome Page

Create Welcome Page - The user can either log in or visit the application as a guest.

The team decided on an alternative user story, and keeping this as a revisit for future if time allows and suits the application

source: gharchive/issue

repo: shenoy-anurag/forum

license: MIT


text:
Added new option to prevent autofocus on input search

Due to issues on mobile devices, and using the code from #1467 I added a new option on the Vue component

Please remove all build files as they will be generated while creating package. No need to add them.

Opened new PR to fix merge conflicts - https://github.com/shentao/vue-multiselect/pull/1579

authors: JoseVte akki-jat

repo: shentao/vue-multiselect


text:
sxd-xpath seem to require string() where other libraries don't

First let me say that I by no means an expert on XPath. Therefore I do not really know what does the spec say. Having said that, I was trying to achieve something similar to what is showing here. The expression //*[text()[contains(.,'ABC')]] was working perfectly in xpath tester sites such as this but not with sxd-xpath. In order to make it work, I had to change it to: //*[text()[contains(string(),'ABC')]]  Is this a bug or the the other libraries are too permisive?

Hmm, that's a very good question!
The spec has this to say for contains:

Function: boolean contains(string, string)
The contains function returns true if the first argument string contains the second argument string, and otherwise returns false.

The reason I chose the current behavior is because other functions, like string, explicitly say to convert the types.
That being said, libxml2 and Xalan C++ and Java all implicitly convert these to strings.
I think this library might be 10-15 years too late to try and forge a new path, so I'll probably need to bend to the majority will here... 😅

authors: hgrecco shepmaster

repo: shepmaster/sxd-xpath


text:
P0497R0 Fixes to shared_ptr support for arrays

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0497r0.html
__cpp_lib_shared_ptr_arrays : 201611L

完了

repo: shibainuudon/HamonCore


text:
雪球组合不是实盘，代码问题多多

雪球组合是比例调仓，按仓位管理，实时成交，基本跟price和amount无关。也就是说接口暴露出weight足矣，price和amount都没用，代码里面weight 是计算来的，还round四舍五入，太容易导致仓位不足，出错，建议考虑修改一下。

可以考虑在buy sell方法里面加一个weight参数就可搞定问题。。  当初这样做是为了能和实盘无缝切换。。 只不过最终没有做到。。。

雪球实盘和组合比较难无缝切换吧，毕竟两种不同的业务逻辑。可否独立出来，分为两部分？

authors: haogefeifei xdbaqiao

repo: shidenggui/easytrader


text:
46 creation dun venement dans le calendrier api

About this PR

Technical highlight/advice

How to test my changes

Checklist

[x] I didn't over-scope my PR
[x] My PR title matches the commit convention
[x] I did not include breaking changes
[x] I made my own code-review before requesting one

I included unit tests that cover my changes

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

I added/updated the documentation about my changes

[ ] 📜 README.md
[x] 📕 docs/*.md
[ ] 📓 other
[ ] 🙅 no documentation needed

Migration
Nous n'avons pas modifié la table existante, "users". Celle-ci utilise "username" comme primary key. Ce point est à discuter.
Nous avons créé un script 202405161110-addevent.sql qui est exécuté automatiquement au démarrage de gradle.
Comment tester ?
Démarrer gradle : .\gradlew run
Sur thunder client ou Postman
Requete POST sur http://localhost:8080/events
avec le body :
{
  "event_date":"2024-05-03",
  "creator":"shiipou",
  "pastries": ["croissant", "pain aux raisins"]
}

Assurez vous que le username existe dans la table users, ainsi que les noms des viennoiseries dans la table pastry!


text:
Face detection issue on Raspberry Pi

Summary of your issue
Hello,
I use OpenCVSharp from an ASP.NET Core Web API to do face detection.
On Windows or Ubuntu x64, it works perfectly with the code below (using the Windows or Ubuntu OpenCVSharp runtimes I installed as nuget packages).
On Raspberry Pi 3 (ARM 32-bit) I deployed the libOpenCvSharpExtern.so for ARM 32bit version that was compiled on version 4.5.3 and posted in one of the issues here (I do not remember exactly which one).
The issue is: the face detection never works (there is no exception but no face is detected).
The same code and same picture (array of byte) is used on all environments for my tests, but fails only on Raspberry Pi.
I tried with many different pictures with no luck.
Environment
Raspberry Pi 3 ARM 32bit.
.NET 6
What did you do when you faced the problem?
N/A
Example code:

string faceDataFileName = @"Assets/haarcascade_frontalface_default.xml";
CascadeClassifier face_cascade = new(faceDataFileName);

//Get image byte[] from the Web API Request object
byte[] imageData = new byte[Request.ContentLength.Value];
await Request.Body.ReadAsync(imageData);
//OpenCVSharp: identitify number of faces on the image
using Mat image = Mat.FromImageData(imageData);
Rect[] faces = face_cascade.DetectMultiScale(image);

return faces.Length;

Any ideas why face detection never detect any face on ARM 32bit, whereas it works perfectly on other platforms?

I rebuilt opencv 4.5.5 on the Raspberry Pi based on this article: https://linuxize.com/post/how-to-install-opencv-on-raspberry-pi/#installing-opencv-from-the-raspbian-repositories, then recompiled opencvSharp to get a fresh ARM 32bit version.
But the face detection still return no face (and no error).
Any idea?

Ok, the error was on my side, the image was received truncated by my Web API. Once this is fixed, OpenCVSharp detects faces without problem!

repo: shimat/opencvsharp

license_source: bigquery


text:
🛑 Adguard DNS D - Personal is down

In 44cfeff, Adguard DNS D - Personal ($DNS_D) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard DNS D - Personal is back up in 3b24eb6.

repo: shimuldn/upptime-personal


text:
Drop support for EOL Python 2.6 and 3.3

Python 2.6 and 3.3 are EOL and no longer receiving security updates (or any updates) from the core Python team.

Version
Release date
Supported until

2.6
2008-10-01
2013-10-29

3.3
2012-09-29
2017-09-29

They're also relatively little used. Here are the downloads from PyPI for docker-pycreds for last month:

category
percent
downloads

2.7
66.44%
1,480,078

3.6
22.85%
509,075

3.5
7.16%
159,472

3.7
1.69%
37,606

3.4
1.30%
28,911

null
0.43%
9,538

2.6
0.12%
2,683

3.8
0.01%
118

3.3
0.00%
65

3.2
0.00%
2

Total

2,227,548

Thank you!

authors: hugovk shin-

repo: shin-/dockerpy-creds


text:
September 7th, 2020 Community Meeting

Please add a topic in this thread and add a link to the Github issue associated with the topic.
Please make sure you give folks enough time to review/discuss the topic offline on Github before coming into the meeting
(optional) Paste the image of an animal :smile:

Note that 2020-09-07 is a US holiday.

Hello folks, I´m not gonna attend the meeting, currently OOTO, but I leave here some of my items:

Send the vendor folder to .gitignore . This is only me asking for this. I just do not see a value on having a complete vendor directory on our repo, specially when we have the whole functionality of go modules. I do recall we have this because of hermetic envs in openshift, but now with a new org this should not be longer the case.
I was not able to finish my integration tests PR, due to other work. Hopefully this week, very close.
I wrote a message in our slack channel around a proposal for a more robust CI by using concourse, I didnt hear any feedback, if anyone have an opinion on this please let me know. Happy to pitch my idea.

Release Note for v0.1: https://github.com/shipwright-io/build/issues/357#issuecomment-681865950
Timeout urgent bug: https://github.com/shipwright-io/build/pull/379

Discussed the operator-sdk version with @otaviof , we will try the v0.17.0 version to see if we can generate crds with the correct v1 version
Talked about the first release note, will also review later.

For other issues, we will move to the next meeting.
Thanks!

authors: adambkaplan qu1queee zhangtbj

repo: shipwright-io/build


text:
Fail to create task after delete credentials

Hi, I am trying to create a Build CR with output credentials (do-secret) to a private registry. The buildRun is working fine.
After that, I removed the credentials (do-secret) from my build CR, the buildRun still working. (somewhere my credential was cached).
If I deleted my credentials (do-secret), the buildRun is failed (I didn't mention the credential in the Build CR already). Below is the error:
  conditions:
  - lastTransitionTime: "2021-12-23T14:43:53Z"
    message: 'failed to create task run pod "buildpack-go-buildrun-qbgq7-tr6sp": translating
      TaskSpec to Pod: secrets "do-secret" not found. Maybe invalid TaskSpec'
    reason: CouldntGetTask
    status: "False"
    type: Succeeded
  latestTaskRunRef: buildpack-go-buildrun-qbgq7-tr6sp

All my buildRun failed after I delete the secret.

/kind question

/assign @SaschaSchwarze0

Hi @lizzzcai, thank you for trying Shipwright. You hit one of our known weak points. :-)
What happens is that when you create a BuildRun, the referenced container registry secret (mainly .spec.output.image.credentials.name) gets still passed to the build strategy code through Tekton's creds-init machinery. This requires us to add the secret to a ServiceAccount that we set on the Tekton TaskRun. But, we never remove a Secret from a ServiceAccount. Therefore, deleting a secret is a problem. What you can do is to remove the secret manually:
$ kubectl -n <MY_NAMESPACE> edit serviceaccount <SERVICEACCOUNT_NAME>

The service account name should be default assuming you never specified something related to service accounts in your BuildRun. From the list of secrets, you can remove those that you deleted.
To prevent this problem from happening, you can specify BuildRuns in the following way:
apiVersion: shipwright.io/v1alpha1
kind: BuildRun
metadata:
  name: <BUILDRUN_NAME>
spec:
  buildRef:
    name: <BUILD_NAME>
  serviceAccount:
    generate: true

Then, Shipwright will create a dedicated ServiceAccount for your BuildRun and delete it when it completes.
In case you use the shp CLI, then --sa-generate is the command line flag that you need to specify when submitting the BuildRun.
Mid-term this whole problem will be gone as we will move towards getting rid of the creds-init usage. This is captured in As a shipwright developer, I want to stop relying on service accounts for mounting my secrets at the pod level #679.

Thanks @SaschaSchwarze0 , I have tested it and it is working. I will close the issue.

authors: SaschaSchwarze0 adambkaplan lizzzcai


text:
Update imap@7.0

Build imap@7.0

:beers: @BrewTestBot has triggered a merge.

repo: shivammathur/homebrew-extensions


text:
Update php@8.3-debug

Build php@8.3-debug

:beers: @BrewTestBot has triggered a merge.

repo: shivammathur/homebrew-php


text:
leetcode answers

I would like to contribute to the hacktoberfest2020 by adding a few leetcode problems along with the solution(My approach) in your repository.
preferred language: java, and let me know if should add it in java folder or to create a new folder.
Thank you

Yes, prefer proper documentation and give a brief while pulling.


text:
大佬，我这样理解对不对？

这个项目，rust负责用http请求爬虫，vue,js等前端代码负责调用rust提供的数据展示数据，对不对？如果我用axios，完全可以代替rust代码，对吗？

对于请求接口来说是的，但是因为是调用别人的接口，前端直接请求会跨域，所以需要添加请求头来进行跨域，这个只能放到“后端”来进行处理。数据库可以替换。

repo: shiyutim/tickets


text:
Text orientation(position)

I ran into the problem that if the width of the button is large, the text is not centered on the button, but centered if you count from the end of the logo to the end of the button. Is there any way to fix this? I hope, you understood me
P.S.
I want the text to be centered, like the facebook button

@blaze6950 Thanks for requesting this feature.
Observation:
This seems to be the fundamental difference b/w the default Facebook and Google buttons.

If you see the default Google button as well, the text is centred from the point where the Google logo boundary ends till the end of the button as shown below (If the length of that part is 500 dp, then see around the 250 dp mark, the 'Google' text is centred).

Facebook's default button seem to centring the text within the whole button. (See around 290 dp mark for the Facebook button, the 'Facebook' text is centred within the whole button and not just the part after the logo)

Potential Solution:
Adhering to the padding guidelines mentioned on the official Google SignIn button branding guidelines, we can try to decrease the padding on left equal to the width of the Google logo. This would make it appear centred but we'll have to make sure the min padding b/w the logo and the text.

I will create a feature request and will try to take out time to work on it. Feel free to open a pull request with a fix. :)

repo: shobhitpuri/custom-google-signin-button


text:
Refactor tree algorithms to be serializable

Problem
The current implementation of tree algorithms are based on a class CTreeMachineNode, which is templated, with a templated field T data to carry tree node data for the various algorithms The template argument is then set to custom data structures, like CARTreeNodeData for the CARTree algorithm.
While this is reasonable design, unfortunately, Shogun template classes only can be set to basic types, such as float64_t, int32_t, .... If this (unwritten) rule is violated, then something fundamental stops working:
Creating an empty object via class_list.cpp (this is decribed in #3481 ) will be impossible. The class list only supports basic template types (those defined by EPrimitiveType) and not custom data structures. Even worse, creating empty objects is needed for both cloning and serializing objects. This arises from the current design of Shogun at a very low level.
Workaround
A simple way to fix the problem, which requires only a bit of refactoring (unfortunately, all tree algorithms will need to be touched):
Instead of templating the tree nodes, we can rather use OOP and subclasses/virtual methods to represent nodes that behave the same but carry different data. Instead of a template member field T data, we can  introduce a field/class CTreeNodeData* data. This class should inherit from CSGObject, register parameters as usual. All the tree node data structs then would be converted into subclasses (with public member field). This makes the algorithm refactoring straight-forward.
This is big patch, however, conceptually quite simple. It is actually a cool exercise for GSoC students to learn a lot about some of the internals of shogun.

Actually this is quite high priority, so we will try to get this fixed asap

@karlnapf @vigsterkr  is this still an issue with the new serialisation framework?

it's done

authors: gf712 karlnapf vigsterkr

repo: shogun-toolbox/shogun


text:
Update of "enqueue/dbal" and other dependencies?

Description
Please also update your dependencies from time to time to the next minor versions or remove the restriction to an exact version.
In my case I would update enqueue/dbal to update a package it depends on but it is fixed to 0.10.0

This should be updated

authors: AndreasA shyim

repo: shopware/platform


text:
NEXT-29496

1. Why is this change necessary?
When showing a dynamic product group in a PLP, filters based on the same properties as where the dynamic product group is based on, are empty.
2. What does this change do, exactly?
This change will result in proper filters shown on listing pages based on dynamic product groups.
3. Describe each step to reproduce the issue or behaviour.

Create products with different properties.
Create a dynamic product group based on properties.
Create a product listing page based on that dynamic product group.
See if you can filter on the same properties of those where the dynamic product group is based on.

4. Please link to the relevant issues (if any).
https://issues.shopware.com/issues/NEXT-29496
5. Checklist

[x] I have rebased my changes to remove merge conflicts
[ ] I have written tests and verified that they fail without my change
[x] I have created a changelog file with all necessary information about my changes
[x] I have written or adjusted the documentation according to my changes
[x] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

copilot:summary
copilot:walkthrough

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I could use some help on writing tests if necessary?

authors: CLAassistant bforbird


text:
OrderStateTransactionStateHandler can't handle reminded

PHP Version
7.4
Shopware Version
6.4.5.1
Expected behaviour
The order is marked as paid without error
Actual behaviour
$this->orderTransactionStateHandler->paid($transactionId, $context);

This is throwing an error, when the current transaction state is reminded because it want pay and not paid
I also didn't find a constant for pay. Just for paid. Maybe its a spelling mistake?
How to reproduce

Set the order to reminded
Try to use the orderTransactionStateHandler paid method
SYSTEM__ILLEGAL_STATE_TRANSITION Error

Possible transitions:

authorize
cancel
do_pay
pay
pay_partially
process_unconfirmed
reopen

Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know.
Thank you again for your valuable feedback.

authors: MarcelSchmaeing PheysX

repo: shopware/shopware


text:
Add position-field to valid options-array

Add position-field to valid options-array for plugin configuration elements.
If accepted, http://wiki.shopware.com/Shopware-4-Plugin-Konfiguration_detail_978.html needs to be updated.

Dear Contributor,
Thank you for your contribution to Shopware. We value your engagement.
Unfortunately we have to close all existing Pull Requests.
This is due to the new Shopware 5 Major Release and a restructuring of the branch names.
If your contribution is still relevant for Shopware 5, a new pull request is highly appreciated.
We are very sorry for this inconvenience.
Greetings from the Shopware Team.

authors: mreiss shopwareBot


text:
NEXT-32283 - Update form label formatting in all inconsistent cms-element-form

1. Why is this change necessary?
In order to standardize the display of the required inputs of a form with the star next to the label so that there is no whitespace anywhere between the translated label of the input and the star behind it.
2. What does this change do, exactly?
Added twig whitespace-control to all labels of CMS form elements which were neglected during standardization.
3. Describe each step to reproduce the issue or behaviour.
To easily see the insonsistency, open the contact formular in the footer. Salutation, comment and the privacy notice have the inconsistent whitespace between label and star mark:

4. Please link to the relevant issues (if any).
-/-
5. Checklist

[x] I have rebased my changes to remove merge conflicts
[ ] I have written tests and verified that they fail without my change
[x] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

🤖[deprecated] Generated by Copilot at 9943762
This pull request adds twig whitespace-control tags to the labels of various form fields in the CMS form element. This improves the appearance and readability of the labels in the storefront.

🤖[deprecated] Generated by Copilot at 9943762

Add whitespace-control tags to CMS form element labels to remove extra whitespace (link, link, link)
Create a changelog entry to document the changes (link)

If the standard is exactly the other way around, i.e. that there should be a whitespace between the label and the star, please let me know, then I will remove this from the one CMS form element that already has this twig whitespace control integrated. Either way, the current situation doesn't look consistent and readable to me; that's why I think an adjustment is necessary.

Hi @AEYCEN, your changes have been merged to trunk: https://github.com/shopware/shopware/commit/12a6c1bc64673d8b301a7e1a8b5ac099cfcce79d
Thanks again for your contribution. 👍

authors: AEYCEN tobiasberge


text:
Deprecated Smarty modfier rewrite

And removed all occurrences from the theme, since this modifer does not do anything

Description
Please describe your pull request:

Why is it necessary? Cleanup old stuff
What does it improve? Get rid of old stuff
Does it have side effects? No

Questions
Answers

BC breaks?
no

Tests pass?
yes

Related tickets?
--

How to test?
Apply patch, nothing should change

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-17549.
Please use this issue to track the state of your pull request.


text:
Add files via upload

Node ID:  4ab86817b5259bf2
Baker ID: 481
Account Address: 33G2TsnyKjDqWZCGTZCJaKQfVVsJJJtm1E8toXvy1ocxoBLgMH

Node ID: 4ab86817b5259bf2
Account adress: 33G2TsnyKjDqWZCGTZCJaKQfVVsJJJtm1E8toXvy1ocxoBLgMH
HUAWEİ Y6 2019 ANDROİD 9

Document type: Driver's License (bus card)
Nationality: Turkey
Xiaomi Redmi Note 9s
I introduced my bus card as a driver's license. He did not accept.
Node ID: 4ab86817b5259bf2

repo: shortingbanks/Demo


text:
should 6.0 used to work with amd but 8.3 does not?

I have code which uses requirejs and should.  Since updating from 6 to 8.3 it seems the amd aware loader has been removed.  How does one use should + requirejs?

Hi, sorry, it was removed not intentionally. I will take a look when it has been disappear.

Great.  Here is a workaround for the time being:
define(["require", "exports", "../../../globals", "should"], function (require, exports, globals) {
    "use strict";
    var should = window.should;

Can you please try 8.3.1. I fixed bundle.

I am closing this issue, @ca0v. Feel free to reopen if it is not fixed for you.

license: mit


text:
problem about demo

first question:
when i run the code by own interface，and i click the step2 it shows error
second question:
when i run the code by own interface，i use the video in your demo, the result is different from mine

txt.npz and vid.npz is the answer? do i change them?they are download in the project,i don't touch them but i can't get the correct result as your truely interface.

repo: showlab/UniVTG


text:
Incremental build

The last version of rollup introduced incremental build. You can pass previous bundle as cache option. This will let to improve performance of testing a lot. Also you can track imported files via watcher which could simplify test driven development.
Here's an example https://github.com/rollup/rollup-watch/blob/master/src/index.js

/cc @klaascuvelier
Also would be great if you will write some tests for this project. Because
import helper from './helper';

describe('Helper', () => {
    it('should be defined', () => {
        expect(helper).toBeDefined();
    });
});

doesn't seem trusty.

Seems like a better plugin is located here: https://www.npmjs.com/package/rollup-plugin-karma

authors: TrySound jonnyOwnTheWorld

repo: showpad/karma-rollup-preprocessor


text:
Sprint key objectives ranks

Sprint1 Key Objectives
During the sprint you need to complete all of these key objectives and find and complete supporting hacks that show level of command you are declaring.
Rank to Ratio, rank is an integer
0 = .00 work, but faking understanding/accomplishment
1 = .55 incomplete assignment, big gaps
2 = .75 meeting some objectives, multiple little gaps
3 = .85 meeting most objectives, one little gap
4 = .90 meeting all objectives
4+Mastered-Y = .95 exceeding all objectives, requires links and  office hours verification

Skill
Mastered (Y/N)
Rank (1-4)
Ratio
Notes

Laptop Verification or Cloud Workspace
[Y ]
4
.9
verification by Linux commands notebook

VSCode
[Y ]
4
0.9
live change code, commit, make, run localhost, test, debug

Show VSCode GitLens
[Y ]
4
0.9
verify commits, show change, comments, reset to commit, run on old commit

GitHub student_2025 repo
[Y ]
4
0.9
template create, push changes, verify id, review analytics

GitHub Pages Actions
[Y ]
4
0.9
review runs and verify runtime, receive demo

Hacks Tools & Equipment Play
[Y ]
4
0.9
Hacks, https://shriya1401.github.io/shriyap_2025/

Hacks GitHub Pages Playground
[Y ]
3
0.85
Hacks         , https://shriya1401.github.io/shriyap_2025/

Hacks SASS Basics
[ Y]
2
0.75
Hacks    , https://shriya1401.github.io/shriyap_2025/

Hacks Frontend
[Y ]
3
0.85
Hacks     , https://shriya1401.github.io/shriyap_2025/

Pair Programming
[ N]
4
0.9
tangibles that show coop work

Total

8.2

Average

8.7

Hi Shriya,
One thing I liked was how your pair programming was nicely in line with your partners.
One thing to improve on would be making your SASS like nicer so that it is easier to understand the page by the reader.

Hi Shriya, I liked how your pair programming was and you have pictures for a lot of your vscode actions, repositories and everything. One think you could do better is present your hacks as you have them rated as 2s and 3s and you didn't really go over them overall great job!


text:
NNAPIFlags for Specifying CPU or GPU Inference Do Not Take Effect

ONNX Runtime version: 1.17.0
Android version: 10
Kotlin version: 1.9.22
JAVA version: 2.1
SDK Build-Tools: 33.0.1
AGP: 8.1.3
GPU: ARM Mali GPU | G310
CPU: ARMv8 Processor rev 4 (v8l)

Steps to Reproduce:
I'm trying to configure the ONNX Runtime session within the DepthAnything Class to use NNAPI with specific flags (e.g. USE_FP16 and CPU_DISABLED). Here's the code snippet for setting up the session options:
    private val ortEnvironment = OrtEnvironment.getEnvironment()
    private val ortSession : OrtSession
    private val inputName: String
    init
    {
            // Create session options
            val options = OrtSession.SessionOptions().apply
            {
                 addNnapi(EnumSet.of(NNAPIFlags.USE_FP16, NNAPIFlags.CPU_DISABLED))
            }
            val modelByteArray = context.assets.open("depth_anything_small_fp16.onnx").readBytes()
            ortSession = ortEnvironment.createSession(modelByteArray, options)
            inputName = ortSession.inputNames.iterator().next()
    }

Expected Behavior:
I expected the model inference to run using NNAPI with FP16 precision and without using the CPU.
Actual Behavior:
The inference seems to run as if these options were not applied at all. The performance and behavior do not change regardless of the flags set.

@BeIanChang I have not explored the USE_FP16 and CPU_DISABLED options in onnxruntime. I'll study them and check how we can apply these options effectively to the Depth-Anything ONNX model used in this project.

In Android Studio Logcat I got following information during loading model:
2024-02-28 17:49:49.464 17037-17037 onnxruntime             com.ml.shubham0204.depthanything     W   [W:onnxruntime:, graph.cc:108 MergeShapeInfo] Error merging shape info for output. 'post-postop-output' source:{-1,-1,-1,1} target:{1,518,518,3}. Falling back to lenient merge.
2024-02-28 17:49:49.481 17037-17037 Manager                 com.ml.shubham0204.depthanything     I  DeviceManager::DeviceManager
2024-02-28 17:49:49.482 17037-17037 Manager                 com.ml.shubham0204.depthanything     I  findAvailableDevices
2024-02-28 17:49:52.742 17037-17037 onnxruntime             com.ml.shubham0204.depthanything     W   [W:onnxruntime:ort-java, nnapi_execution_provider.cc:225 GetCapability] NnapiExecutionProvider::GetCapability, number of partitions supported by NNAPI: 3 number of nodes in the graph: 724 number of nodes supported by NNAPI: 11
2024-02-28 17:49:52.808 17037-17037 onnxruntime             com.ml.shubham0204.depthanything     W   [W:onnxruntime:ort-java, nnapi_execution_provider.cc:225 GetCapability] NnapiExecutionProvider::GetCapability, number of partitions supported by NNAPI: 3 number of nodes in the graph: 725 number of nodes supported by NNAPI: 11
2024-02-28 17:49:52.869 17037-17037 TypeManager             com.ml.shubham0204.depthanything     I  Failed to read /vendor/etc/nnapi_extensions_app_allowlist ; No app allowlisted for vendor extensions use.
2024-02-28 17:49:55.624 17037-17037 onnxruntime             com.ml.shubham0204.depthanything     W   [W:onnxruntime:, session_state.cc:1166 VerifyEachNodeIsAssignedToAnEp] Some nodes were not assigned to the preferred execution providers which may or may not have an negative impact on performance. e.g. ORT explicitly assigns shape related ops to CPU to improve perf.
2024-02-28 17:49:55.624 17037-17037 onnxruntime             com.ml.shubham0204.depthanything     W   [W:onnxruntime:, session_state.cc:1168 VerifyEachNodeIsAssignedToAnEp] Rerunning with verbose output on a non-minimal build will show node assignments.

So I guess that most of the model is simply not suppported by NNAPI.


text:
questions about running

there is nothing showed on cmd or created in folders  while i was running download.py and player.py .I have created downloading folder and ready.txt in it.So.what should be happened after running  download.py and player.py.
thank you.

I got this result after running it. I checked the tiles folder and found that the file with the error could not be found in tiles. Is it because the dataset is missing some data?

Please unzip tile data(https://github.com/shuqn/pointcloud_video/releases/tag/00) to /data/longdress/tiles

authors: kevin-sol shuqn


text:
Can't create comment - 400 error

Hi,
I'm attempting to use createComment, but getting a 400 back from the server.
let ig:InstagramEngine = InstagramEngine.sharedEngine()
ig.accessToken = media.account.token
ig.createComment(commentText as! String,
        onMedia:media.remote_id,
        withSuccess:{ () in

            println("comment submitted")
        },
        failure: { (e:NSError!) in
            println("comment FAILED to submit")
        }
)

Maybe I'm doing something wrong, but what's odd is that everything else is working fine. For example, the following call to likeMedia, which is pretty similar, works great:
let ig:InstagramEngine = InstagramEngine.sharedEngine()
ig.accessToken = media.account.token
ig..likeMedia(media.remote_id,
	withSuccess: { () in

},
	failure: {(e:NSError!)  in

})

Here's the output of the error:
Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)" UserInfo=0x7a198780 {com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x79f19520> { URL: https://api.instagram.com/v1/media/943564514537334419_1398062648/comments } { status code: 400, headers {
    "Cache-Control" = "private, no-cache, no-store, must-revalidate";
    "Content-Language" = en;
    "Content-Length" = 272;
    "Content-Type" = "application/json; charset=utf-8";
    Date = "Wed, 25 Mar 2015 03:05:43 GMT";
    Expires = "Sat, 01 Jan 2000 00:00:00 GMT";
    Pragma = "no-cache";
    Server = nginx;
    "Set-Cookie" = "csrftoken=b6f9881727abfba2f5e72435bf28ec24; expires=Wed, 23-Mar-2016 03:05:43 GMT; Max-Age=31449600; Path=/";
    Vary = "Cookie, Accept-Language";
    "x-instagram-ssl-wifi" = False;
    "x-ratelimit-limit" = 5000;
    "x-ratelimit-remaining" = 4989;
} }, NSErrorFailingURLKey=https://api.instagram.com/v1/media/943564514537334419_1398062648/comments, NSLocalizedDescription=Request failed: bad request (400),

Any ideas? Not sure what I'm missing....
Note: I'm using a version of InstagramKit from earlier this year, so API calls might slightly different, but concepts are the same.

This turned out not to be an issue with InstagramKit at all. For your app to post or delete comments, you must apply to Instagram. See here
They need to approve your app before comments will work.
Perhaps this will help someone in the future....

repo: shyambhat/InstagramKit


text:
[Docs]: Update Documentation References from PNPM to NPM Migration

what's wrong in the documentation?
We recently migrated our project from PNPM to NPM as the package manager. As a result, various references to PNPM need to be updated across our documentation files, including the README and CONTRIBUTING files.
Add screenshots
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi @shyamtawli, I will update this file. Can you assign this task to me?

authors: sahilatahar shyamtawli

repo: shyamtawli/devFind


text:
Tabs - Format could not fix - Unexpected indentation

We are currently using tabs for indentation, but we would like to go with standard Kotlin code style convention. That means we have many files across many projects, in which we need to convert tabs to spaces. I would expect format to be able to cope with the task, but unfortunately it yields errors as follows:
Format could not fix > src\main\kotlin\some\package\SomeClass.kt:45:1: Unexpected indentation (1) (it should be 4)

Could KtLint just convert each tab character to 4 spaces (or whatever is configured)?
KtLint version: 0.23.1

Hi.
This is not (yet) supported, unfortunately. In the meantime, expand should do the job:
find src/ -name '*.kt' | xargs -L1 -I{} sh -c 'expand -i -t4 {} > {}~; mv -f {}~ {}'

Thanks @shyiko for going the extra mile and proposing alternative.
Should I leave the issue open or should I close it?

Let's keep it open (just in case I forget to fix this as part of https://github.com/shyiko/ktlint/issues/141)

Added in 0.25.0.

authors: klesniewski shyiko

repo: shyiko/ktlint


text:
readonly checker support

FetchResponse has a new property:
"recordReadOnly" : {
  "records" : [ [ 1, 1, 0 ], [ 0 ], [ 1, 1, 0 ], [ 1 ], [ 1, 1, 0 ] ]
}

1 = editable
0 = readonly
The elements are in the same order as the columnNames.
If the number of elements is smaller than the number of columns -> repeat last number:
[0, 2, 0, 1, 1, 1] => [0, 2, 0, 1]
[0, 0, 0, 0] => [0]
[1, 1, 1, 1] => [1]

A test screen is available: ReadOnly Checker -> features user.

bc74046

authors: ToniHeiss rjahn


text:
Only call SidekiqScheduler::Utils.calc_cron_run_time when it seems really necessary.

As I described #482,  SidekiqScheduler::Utils.calc_cron_run_time only works with a job running periodically.
Also, SidekiqScheduler::Utils.calc_cron_run_time is only required jobs are execute frequently I think. So this PR changes to call it when it really needed.
Also, I added the test for #load_schedule_job when the cron is not periodically to prevent regression.

Thanks @y-yagi! I am good with 60 too

@y-yagi @marcelolx Does this mean only jobs running every 60 seconds will have the time corrected? The original fix for this came about because of daily / weekly jobs that would run multiple times under load.
I'm wondering if maybe removing the rough_frequency rounding stuff and going back to my original algorithm would fix these cases. 🤔

@afrase I didn't realize it was for jobs running daily / weekly (so yeah, this would only correct time for jobs running every 60 seconds)
Yeah, maybe we just revert that piece of the rough time and keep your first original version without it (that would fix this issue here without limiting it to every 60 seconds I think)

@afrase

I'm wondering if maybe removing the rough_frequency rounding stuff and going back to my original algorithm would fix these cases

Do you mean to code the following?
diff --git a/lib/sidekiq-scheduler/utils.rb b/lib/sidekiq-scheduler/utils.rb
index cccb01c..aca12e5 100644
--- a/lib/sidekiq-scheduler/utils.rb
+++ b/lib/sidekiq-scheduler/utils.rb
@@ -164,15 +164,13 @@ module SidekiqScheduler
       previous_diff = time - previous_t

       if next_diff == previous_diff
-        # In the event `time` is exactly between `previous_t` and `next_t` the diff will not be equal to
-        # `cron.rough_frequency`. In that case we round down.
-        cron.rough_frequency == next_diff ? time : previous_t
+        time
       elsif next_diff > previous_diff
         # We are closer to the previous run time so return that.
-        previous_t
+        time - previous_diff
       else
         # We are closer to the next run time so return that.
-        next_t
+        time + next_diff
       end
     end
   end

If so, no. This code still has the issue that I encountered.

I was looking into this matter and noticed a difference in the behavior of the previous_time returned by rufus-scheduler.
scheduler = Rufus::Scheduler.new
scheduler.schedule_cron '1-3 * * * * *' do |job|
  puts "now: #{Time.now.inspect}"
  puts "previous_time1: #{job.previous_time}"
  puts "previous_time2: #{job.cron_line.previous_time}"
  puts "---"
end

output
now: 2024-07-23 13:15:01.294697632 +0900
previous_time1: 2024-07-23 13:15:01 +0900 <= ★
previous_time2: 2024-07-23 13:14:03 +0900 <= ★
---
now: 2024-07-23 13:15:02.196055795 +0900
previous_time1: 2024-07-23 13:15:02 +0900
previous_time2: 2024-07-23 13:15:01 +0900
---
now: 2024-07-23 13:15:03.097378346 +0900
previous_time1: 2024-07-23 13:15:03 +0900
previous_time2: 2024-07-23 13:15:02 +0900
---

job.previous_time returns the last execution time, whereas job.cron_line.previous_time returns the one previous execution time.
So, how about modifying it as follows?
if job.is_a?(Rufus::Scheduler::CronJob)
  if job.cron_line.rough_frequency <= 60
    idempotent_job_enqueue(name, SidekiqScheduler::Utils.calc_cron_run_time(job.cron_line, time.utc), conf)
  else
    # No exact calculation is performed. Just discard seconds.
    idempotent_job_enqueue(name, SidekiqScheduler::Utils.discard_seconds(job.previous_time), conf)
  end
else
  idempotent_job_enqueue(name, time, conf)
end

@muk-ai
In your example, rough_frequency is under 60. So SidekiqScheduler::Utils.discard_seconds will not call, just call SidekiqScheduler::Utils.calc_cron_run_time as same as the current release's gem I assume.
cron = Fugit.parse_cron('1-3 * * * * *')
cron.rough_frequency #=> 1

@muk-ai In your example, rough_frequency is under 60. So SidekiqScheduler::Utils.discard_seconds will not call, just call SidekiqScheduler::Utils.calc_cron_run_time as same as the current release's gem I assume.
cron = Fugit.parse_cron('1-3 * * * * *')
cron.rough_frequency #=> 1

That example is just for checking behaviour.
The use case I am thinking of for the job would be a daily or weekly job.
When the server is under high load, the problem is that the timing of job execution is delayed by a few seconds. Then the “time” used for the key does not match and the job is executed on multiple hosts.

@y-yagi @muk-ai So I just discovered the Fugit::Cron#match? method.
From my quick testing it looks like if we just add a guard clause it fixes this.
def self.calc_cron_run_time(cron, time)
  time = time.round # remove sub seconds to prevent rounding errors.
  return time if cron.match?(time) # Exact match, return the time.

  next_t = cron.next_time(time).utc
  previous_t = cron.previous_time(time).utc
  # The `time` var is some point between `previous_t` and `next_t`.
  # Figure out how far off we are from each side in seconds.
  next_diff = next_t - time
  previous_diff = time - previous_t

  if next_diff == previous_diff
    # In the event `time` is exactly between `previous_t` and `next_t` the diff will not be equal to
    # `cron.rough_frequency`. In that case we round down.
    cron.rough_frequency == next_diff ? time : previous_t
  elsif next_diff > previous_diff
    # We are closer to the previous run time so return that.
    previous_t
  else
    # We are closer to the next run time so return that.
    next_t
  end
end

@afrase
It's elegant.
It may be better to use floor rather than round.

@afrase It's elegant. It may be better to use floor rather than round.

Yeah floor would probably be better since it truncates.

@afrase
I can't guarantee it, but using a future time sounds a little dangerous to me.
Isn't it enough to just use previous_time when time isn't matched?
def self.calc_cron_run_time(cron, time)
  cron.match?(time) ? time : cron.previous_time(time)
end

@y-yagi
The reason next_time is used is to try to cover all hypothetical scenarios.
It may actually be impossible for Rufus to call a job before it was scheduled to run but I wanted to cover that case. The next_time is only ever used as a last resort for that reason.
I'm working on a PR to incorporate the aperiodic time's fix. I'm also looking more closely at the use of time zones and how those could impact the result after you pointed out the use of #utc. The reason the for #utc is to convert EtOrbi::EoTime to Time for use with Time#-. I'm kind of leaning to just always using UTC to simplify things but I'm not sure yet.

authors: afrase marcelolx muk-ai y-yagi

repo: sidekiq-scheduler/sidekiq-scheduler


text:
Add OCR feature using tesseract.

A requested feature. A likely situation where copy is prohibited. the portion can be screen snipped and ocrd

tess4j provides a JNI wrapper around Tesseract Engine which is in C++

repo: sidetrackd/AutoTyper


text:
iot2050-firmware-update: Update from tarball

V3 update:

Rename UpdateControl to ManagedFirmwareUpdate and make it inherit from FirmwareUpdate
Change target_board to a list so that it can match mulitple boards within a single firmware node.
Change version to min_version to match the minimal version number.

==================================================
V2 updates:

The tarball will contain several firmware binaries and a update config file
Remove sha256 checksumming, user could do it by themselves.
The original FirmwareUpdate will serve the force update, i.e. update the received binary directly w/o checking anything.
Added a new updater UpdateControl, which will check both the board information and the update config information then decide to update which firmware. It will call the underlying updater FirmwareUpdate eventually.
For the update conf json file, there are firmware and target_os nodes. Please see the header comments of the script to get the details.

==================================================
Update the firmware using a tarball, which includes the firmware
image, its sha256 checksum and a update control file that indicates
which OS version the update package should be operated upon.
Signed-off-by: Su Bao Cheng baocheng.su@siemens.com

LGTM (except for the last patch split-up)

authors: BaochengSu jan-kiszka


text:
Should Vect have a EuclideanRing instance?

It seems like this instance would be lawful, from what I understand
instance (Compare len Common.NegOne GT, Reflectable len Int, EuclideanRing a) => EuclideanRing (Vect len a) where
  div = lift2 div
  mod = lift2 mod
  degree = const 1

The thing I'm most uncertain about is the degree implementation, I don't really understand what degree is and why it's part of EuclideanRing, but here's what the docs for EuclideanRing say:

For any EuclideanRing which is also a Field, one valid choice for degree is simply const 1. In fact, unless there's a specific reason not to, Field types should normally use this definition of degree.

that looks good to me on a first glance

Feel free to create a PR

authors: artemisSystem pete-murphy sigma-andex

repo: sigma-andex/purescript-fast-vect


text:
Capture call stacks in allocation samples

Add a lock around usage of the SamplingHelper name cache(s).  Clear the volatile cache when capturing an allocation sample call stack.  Share out the code for parsing call stacks in C# to read this new data.  The FrameCallback (that can only take one parameter) now takes a new type to distinguish that we want to use the global name cache but an AllocationTick-local buffer to write data into, while the original CPU sampler wants something slightly different.  This (separating name cache from buffer management) will be refactored in a followup PR rather than polluting the locking changes further in this one.

@johnbley, code looks good, but there is some compilation issues on Linux.

authors: Kielek johnbley

repo: signalfx/signalfx-dotnet-tracing


text:
my Vaillant Recovair Unit VAR 260/4 - Boost

Before requesting a new feature / a new sensor

[x] The feature I'm requesting exists in the myVAILLANT app, and I attached a screenshot
[x] I tested the latest release, and it's missing there
[ ] I've attached exported data of my system

Describe the feature you want
In my Vaillant im able to set the Speed (1-6) of my Recovair Unit VAR 260/4  and also enbale the boot mode of the devices.
When I try to do the boosst mode in Home Assistant using the addon I only get "Not supported on VRC700 controllers for the function "ventilation boost".
I would expect to at least enable the boost function, but better would be to also be able to set the speed level in home assistant.

Since I don't have a recovair unit, I would need a lot more information to help with this.
For each state (speed levels, boost) I would need test data and a screenshot of the app that shows how it's displayed.

Hey,
no problem :)
I added some testfiles in the attachment.
Seems the settings are in:
      ventilations:         - index: 0           maximumDayFanStage: 2           maximumNightFanStage: 5           operationModeVentilation: AUTO
whereby maximumDayFanStage means the ventilation setting for day, maximumNightFanStage means the ventilation setting at night.
operationModeVentilation -> AUTO for automatic change between day and night, DAY for forced day mode, SET_BACK for night (don't know why it's named like that?)
Besides this we have another block for boost mode:
`      ventilations:
- index: 0
yaml.zip
      currentSpecialFunction: VENTILATION_BOOST`

whereby the currentSpecialFunction of ventilation is changed.

Besides this i noticed that i can get the cycles and also working time in myvaillant app, which is also indicated in the output above
  rts:     statistics:       - deviceId: xxx         operationTime: 2366         onOffCycles: 48       - deviceId: xxx         operationTime: 72         onOffCycles: 1
but missing in HomeAssistant - so seems like this information is not getting through home assistant? I only see the cycles and working time of the hydraulic station and this information seems to be somehow reseted by the device in case of power outtage, whereby the outdoor unit counts correctly.

Same for  mpc:     devices:       - deviceId: xxx         currentPower: 409       - deviceId: xxx         currentPower: 3
which isn't getting trough to home assistant.

authors: Hexcodes signalkraft

repo: signalkraft/mypyllant-component


text:
🛑 signalwerk – ci is down

In 6b2d3d3, signalwerk – ci (https://ci.signalwerk.ch/) was down:

HTTP code: 502
Response time: 483 ms

Resolved: signalwerk – ci is back up in 9de456f.

repo: signalwerk/uptime


text:
How to access gpt-4-1106-preview

New OpenAI model gpt-4-1106-preview

You can specify:
model: openai:gpt-4-1106-preview
clients:
  - type: openai
    api_key: YOURKEY
    connect_timeout: 10

works for me.

really? for me I get
 ~/Desktop/ aichat --version
aichat 0.9.0
 ~/Desktop/ aichat --info
Error: Unknown model 'openai:gpt-4-1106-preview'

Please try aichat --model gpt-4-1106-preview let me know if it works

For users who want to immediately experience access to GPT-4-1106-preview in aichat v0.9.0, you can follow these steps.

add the following snippet to the config.yaml file

clients:
  - type: openai
    api_key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

  - type: localai
    name: openai2
    api_base: https://api.openai.com/v1
    api_key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    models:
      - name: gpt-4-1106-preview
        max_tokens: 128000

use the model

aichat --model openai2:gpt-4-1106-preview

.model openai2:gpt-4-1106-preview

Thanks it worked!

#219 #233 both solved this issue.

authors: johnnywiller madnight sigoden

repo: sigoden/aichat


text:
Serialize NodeId with 0x prefix

So in my og pr divagant-martian asked me if I wanted to use a 0x prefix or not and at the time I said that it didn't matter to me. I just had a meeting today and my team said they want a prefix since it ensures consistence with hex values, and it makes it easier to identify it as hex. It thought that was fair. So I am here today to try and get a 0x prefix :shipit:

@divagant-martian @AgeManning ping for review

@divagant-martian Hey! Any eta for when the next release of this library will be cut?

Start of next week we can cut a release. Not this one though, sorry

That's great, thanks a lot!

authors: KolbyML divagant-martian njgheorghita

repo: sigp/enr


text:
Bump go-containerregistry, pick up new features

pick up google.Keychain log spam improvements when Google auth is not configured
add github.Keychain which uses $GITHUB_TOKEN to auth to ghcr.io, if set

Signed-off-by: Jason Hall jasonhall@redhat.com
Release Note
If GITHUB_TOKEN env var is set, it will be used to auth to ghcr.io, if no other auth mechanism is configured.

DependaJason >> DependaBot

authors: dlorenc imjasonh

repo: sigstore/cosign


text:
Set max request size to 4MiB

Summary
Fixes the the max request body size to 4MiB (Just a guess at a size.... may it could be smaller?) so that it isn't unbound. Implemented using a new api.WithMaxBytes middleware. There is a small refactor of how we wire up stuff for the API server here as well to make it a little easier to understand. As adding the body limiting middleware was part of that wire up it seemed a good thing to clean up with this work.
Ticket Link
Fixes #335
Release Note
* Set max request size to 4MiB so that request size isn't unbound

The diff algorithm made this one a little odd to read. Sorry ya'll 😅

Thanks!

repo: sigstore/fulcio


text:
Add default securityContext.runAsUser value for fulcio

Signed-off-by: Shuanglei Tao tsl0922@gmail.com

Description of the change
Add default securityContext.runAsUser value for fulcio, separated from #147
Existing or Associated Issue(s)

Additional Information

Checklist

[x] Chart version bumped in Chart.yaml according to semver. Where applicable, update and bump the versions in any associated umbrella chart
[ ] Variables are documented in the values.yaml and added to the README.md. THe helm-docs utility can be used to generate the necessary content. Use helm-doc --dry-run to preview the content
[ ] JSON Schema generated
[ ] List tests pass for Chart using the Chart Testing tool and the ct lint command

This should be merged after #146 (which already bumps chart version to 0.3.1) @k4leung4

repo: sigstore/helm-charts


text:
workflows: add rust-release

Follows #83: this adds a release workflow for the Rust package.
Needs administrative action: I can create a crates.io token for this, but I'll need a repo owner to add it as a secret.

Token created, blocking on being added.

repo: sigstore/protobuf-specs


text:
Failed to get current conditions

Now and then I get an error "failed to get current conditions ..." including a stack trace.
Maybe it is a suggestion to remove the stack trace from the logfile or move the stack trace to the debug log level.
2022-03-18 11:34:44 WARNING (MainThread) [custom_components.weatherlink] failed to get current conditions, error 1 / 3
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 986, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1056, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1041, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 955, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 502, in sock_connect
return await fut
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 537, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.xxx.xxx', 80)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/weatherlink/__init__.py", line 97, in __fetch_data
conditions = await self.session.current_conditions()
File "/config/custom_components/weatherlink/api/rest.py", line 73, in current_conditions
return await self._request(CurrentConditions, EP_CURRENT_CONDITIONS)
File "/config/custom_components/weatherlink/api/rest.py", line 68, in _request
async with self.session.get(self.base_url + path, params=params) as resp:
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in __aenter__
self._resp = await self._coro
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 535, in _request
conn = await self._connector.connect(
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1206, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 192.168.xxx.xxx:80 ssl:default [Connect call failed ('192.168.xxx.xxx', 80)]

This really isn't meant to happen which is why the stack trace is included in the first place, but I think the weatherlink device is just too weak to handle all requests.
I'm fine with dropping the log level for these intermediary errors down a notch.

Reduced the clutter in v0.5.3.


text:
setState() on a State object for a widget that no longer appears in the widget tree

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: setState() called after dispose(): _OverflowTextAnimatedState#9c500(lifecycle state: defunct, not mounted)
This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error can occur when code calls setState() from a timer or an animation callback.
The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback. Another solution is to check the "mounted" property of this object before calling setState() to ensure the object is still in the tree.
This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().
#0      State.setState. (package:flutter/src/widgets/framework.dart:1167:9)
#1      State.setState (package:flutter/src/widgets/framework.dart:1202:6)
#2      _OverflowTextAnimatedState._autoScroll (package:overflow_text_animated/overflow_text_animated.dart:132:5)
#3      _OverflowTextAnimatedState._handlerInfiniteLoop. (package:overflow_text_animated/overflow_text_animated.dart:126:7)
#4      _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#5      _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: setState() called after dispose(): _OverflowTextAnimatedState#36315(lifecycle state: defunct, not mounted)

Thanks for report. I will check it

Thanks for report. I will check it

I am also facing the same exception. Is there any solution?

authors: ShoaibIrfan Viktor-Hermann sil-main-coo


text:
Wrapping setjmp in greatest_save_context may be unsafe?

While integrating the upstream longjmp-based assert implementation, I've just realised something:
Isn't making greatest_save_context a regular function and calling setjmp inside it invalid? (undefined behaviour) It's my understanding that you can't safely setjmp(), destroy the stack frame it was called from, and then longjmp back into it? So greatest_save_context really ought to be a macro, or possibly a forced-inline function.
The code as it stands seems to actually work in the cases I've thrown at it so far, probably because the return pointer in the test function's stack frame is in the same place as in greatest_save_context() in my case, and the return value (rax) is used as the same variable in either case.
        greatest_test_res res = greatest_save_context();
        if (res == GREATEST_TEST_RES_PASS) {
            res = TEST(); // <- return pointer actually causes greatest_save_context() to return here after longjmp?
        }

I haven't verified this theory at the assembly/register level, but I'm fairly sure the current use of setjmp/longjmp isn't actually legal, despite it appearing to work OK on my system. (OSX/x86-64)
I'll put together a suggested fix.

You're right. I put that inside a function to make it easier to conditionally compile out, but I'm not sure that is portable as-is. It should probably be a macro instead (which will also make it more strongly internal-use-only than just a comment indicating such). Good catch.

OK, here's my suggested fix: 7b11a78

That looks good to me. Cherry-picked to develop (as c5316b5).

authors: pmj silentbicycle

repo: silentbicycle/greatest

license: isc


text:
Pages not right-aligned in Webonary even though right-aligned in FLEx

Dictionaries that include both RTL and LTR text might be right-aligned or left-aligned.  In FLEx, it is possible to set the overall text flow for the page and the alignment in the Normal style.
In my sample project, both right-alignment and left-alignment work correctly in FW 9.1.5.461 (7/23 build).  But when I upload to Webonary, the one that is right-aligned in FLEx comes out left-aligned in Webonary.
Sample files are in this folder:
https://drive.google.com/drive/folders/1VYis3SvS1f9WJEt8yci0PbrIscNuA2W2?usp=sharing

Attaching pictures of what it looks like in FLEx.  First is RTL and second is LTR.  Both are working correctly.

Attaching pictures of what it looks like in Webonary, uploading the same two views.
First is LTR and it works:  The elements flow left-to-right and it is left-aligned.
Second is RTL and it flows right-to-left (good) but it is left-aligned (wrong).

Is this just as simple as ticking the box for "display right-to-left" in the Browse Views tab of the Dashboard?  Is the overall page flow set there, instead of in the CSS?  Is there any interaction between the two?

Verna: We can close this issue.

authors: bbryson stevendyk

repo: sillsdev/webonary


text:
Update 2016-01-12-Homan-Wayne-post.md

Fixed the yaml title to be accurate

Nice linking between issues and PR. It doesn't look like the renaming of the file showed up on this branch though.  Also, the title still needs " quotes around it.
Never fear, both of htese can be fixed from this pull request!  Click the files tab, then the pencil icon:

Title your commit and then it should show up here.

I'm closing this PR because I think you've made the required fixes in another (but feel free to reopen or open a new one if that's wrong.


text:
Annotation & night record

I have just installed the latest version and I have a couple of questions:

the text on the videos just has a question mark even with RPi Cam %Y.%M.%D_%h:%m:%s as the setting
is there a way to automatically have night fps and day fps to keep the night preview settings when recording, as they are crystal clear. However they change back to standard fps when recording.

Haven't seen that annotation problem before unless string got longer than 60 chars. Have you pressed Default to make sure it is clean?

You can put any combination of commands in the scheduler Period Start settings. So px allows you to change resolutions / fps at different times. E.g. px 1296 976 2 2 2592 1944 would set a 2fps for recording 1296x976 video. Likewise you can restore it back to 25fps with similar command.

Hi

I set it as default and it didn't work. Then I did reset settings and no text at all came up. Then did a default and still no more text is on.  The log on the webpage showed me what I had done and no errors.  Is there another log I can check?

brilliant will do that.

Thanks

The scheduler log (which you can view from schedule screen) includes the output from raspimjpeg when it changes settings. So when you change it you should see something like
Change: annotation = Rob Cam %Y.%M.%D_%h:%m:%s
These changes from defaults also get saved in /var/www/uconfig which you can open with text editor (nano). If that file has got something wacky in it then that might cause a problem. You can just delete it (or Reset Settings from Web) to revert to default settings.


text:
SEMVER tags?

please

please

Or just, a stable tag. :)

Closed with https://github.com/silverstripe-labs/silverstripe-controllerpolicy/releases/tag/1.0.0

authors: camfindlay michalkleiner tractorcow


text:
3.3: Compass missing

When running a dev/build, debug.scss isn't able to import compass/css3 (files are missing).
I am using the 3.3 branch.
UPDATE: I use IntelliJ IDEA which compiles every scss files in my project

You need to install the compass ruby gem for it to work. http://compass-style.org/install/, and make sure your ide is using compass for scss compilation.
I'm not sure why you have it hooked into dev/build, since that doesn't actually do compilation.
Note that compass is being removed from 4.0.

authors: martinduparc tractorcow

repo: silverstripe/silverstripe-framework


text:
Fix Member Authentication Edgecase

There exists a scenario in which:

You've successfully authenticated to the CMS
You haven't accessed the CMS for more than 3 days
You don't have a Default Admin user configured in your environment

In this scenario, trying to re-authenticate via the provided CMS dialog will result in a Fatal Error as of the tip of the SilverStripe 3 branch. This PR shifts the Default Admin authentication attempt inside a conditional to avoid comparing a null email address to a null default admin username.
This was discussed in #6361.
Test coverage included. 👍

I believe the issue has be fixed by #7012
However, this has tests, and I like tests. so I'll update this PR just to have the test in it :)

authors: Cheddam dhensby


text:
WIP Vendor modules proof of concept

Parent issue: https://github.com/silverstripe/silverstripe-framework/issues/7360
This demonstrates a working proof of concept for supporting silverstripe modules in /vendor dir.
The major changes include an updated module manifest, as well as additional URLGenerator which supports "remapping" of files from vendor to a top level 'resources' folder.
The idea is that, although not explicitly supported yet, this should allow us to move to a public folder later on down the track when we dis-associate the BASE_PATH with the web root folder.
Remapping can be configured to one or more of the following methods:

symlink to vendor
copy assets from vendor
url rewriting only

By default the first two options are configured, meaning that a failed symlink will fail over to a file copy. This does require that the 'resources' folder has write access, similar to 'assets'.
Modules in vendor are not automatically exposed; It's necessary for such a module to declare which folders are public.
{
    "name": "tractorcow/anothermodule",
    "description": "a test module",
    "type": "silverstripe-vendormodule",
    "extra": {
        "expose": [
            "client"
        ]
    },
    "require": {
        "silverstripe/framework": "^4.0"
    }
}

This will trigger a symlink at the location resources/tractorcow/anothermodule/client linking to the vendor dir vendor/tractorcow/anothermodule/client.
Remapping is performed JIT if a url to a resource isn't available, and additionally on flush. I had considered doing this on dev/build, but it was necessary to build this into error-handling, such that ErrorControlChain will allow the remapping to occur if a critical resource is unavailable (e.g. css on the login page).

Note: No changes to composer/installers necessary; As long as it doesn't match silverstripe-module it'll be installed normally.

@sminnee I agree; We are now thinking of moving this code out of framework, and putting it into a plugin.
Further discussion at https://github.com/silverstripe/silverstripe-framework/issues/7360#issuecomment-331322934

Ok, a big update; All file-mapping has been shifted out of framework, and put into a new silverstripe/vendor-plugin. Any silverstripe-vendormodule which requires this plugin will automatically have their exposed folders automatically mapped.
Additionally, to support --no-plugins installations you can now use the new silverstripe/vendor-helper CLI tool to link these dirs after the fact (internally they use the same code, but the CLI has slightly heavier dependencies).
See:

https://github.com/open-sausages/vendor-helper
https://github.com/open-sausages/vendor-plugin

@chillu would you like to review to check my approach works and fits with platform?

Holy crap, awesome work! I've looked through the two new modules on open-sausages, and they look solid.
I've had a look at how laravel packages handle this again, and they also publish config files and other stuff that's not intended for website use. So you might copy vendor/silverstripe/fluent/_config/default.yml to mysite/_config/fluent.yml. Which means the mapped path depends on the file, and wouldn't be set globally to resources/. I guess there's a bit of conceptual overlap with the recipe-plugin and its extra.project-files composer config. I know this isn't part of the AC, and I can't think of a good use case outside recipes. Just thought it's worth a mention.
Also, since the process doesn't actually boot a SilverStripe app, there's no way to conditionally load a module. We don't do that at the moment, but I could see us getting there long term. For example, conditional on a feature flag in that particular environment. So the composer package would always be installed, but the module isn't determined as "active" during boot - hence no files should be copied either. That's the tradeoff keeping the script separate (and compatible with composer --no-scripts --no-plugins).

A few minor bugs. I don't think any of them is blocking the merge here, but they're worth pointing out in the docs as gotchas:

If you switch from symlink to copy methods, it'll silently fail to add new files: https://github.com/open-sausages/vendor-plugin/blob/master/src/Methods/CopyMethod.php#L28
If you use copy, it won't delete files that have disappeared from the original vendor module.
If you use either copy or symlink, removing the module won't remove the files (there's a pre-package-uninstall event)

I've had a look at how laravel packages handle this again, and they also publish config files and other stuff that's not intended for website use.

The way that modules work, these files will work fine regardless of whether they are in the root or not; Vendor .yml config should be picked up, but I will double check to make sure the non-module manifests are working properly. :)

Task for today is to build a vendor-module and test it out to ensure it works properly.

If you switch from symlink to copy methods, it'll silently fail to add new files: https://github.com/open-sausages/vendor-plugin/blob/master/src/Methods/CopyMethod.php#L28

Ok, I'll remove the symlink in this case.

You can check this out, and then install https://github.com/tractorcow/test-vendor-module
composer require tractorcow/test-vendor-module ^1.0 and it will bootstrap a test page with a bunch of tests. :)

If you switch from symlink to copy methods, it'll silently fail to add new files: https://github.com/open-sausages/vendor-plugin/blob/master/src/Methods/CopyMethod.php#L28
If you use copy, it won't delete files that have disappeared from the original vendor module.
If you use either copy or symlink, removing the module won't remove the files (there's a pre-package-uninstall event)

@chillu all of this feedback has been addressed. :)

Updated with tests and documentation on themes.

Our modules have the following structure (e.g. silverstripe/campaign-admin)
client/
  dist/
  lang/
    src/
  src/

So we'd expose client/dist and client/lang separately here, mapping to resources/silverstripe-campaign-admin/dist and resources/silverstripe-campaign-admin/lang? Technically that would also copy the client/lang/src folder, but that's probably due to bad folder design in the module rather than shortcomings of the vendor approach itself. An exclusion regex list would be useful at some point, but doesn't seem to be block merge.

resources/silverstripe-campaign-admin/client/dist rather than resources/silverstripe-campaign-admin/dist

I just realised ALL of the 'vendor' test fixtures got lost due to .gitignore. Fixed now. :D

@chillu it's green :)

Rebased.

authors: chillu tractorcow


text:
Backport 4.0 implementation of numeric/assoc key merging for summary…

Resolves https://github.com/silverstripe/silverstripe-cms/issues/2006

The tabbing was still off (you're using spaces not tabs ;) ) but I merged this by hand and fixed it up :)

authors: dhensby unclecheese


text:
Include custom bootstrap.php file if one exists.

For background on why I created this read #8366 and #8077
I noticed that there is no way to set constants in SilverStripe before the constants.php file is loaded by autoload.php reliably. Altering index.php is not a good idea, since there are more entry points to SilverStripe (like sake)
The simples solution with no backward compatibility issues that I could see is to load a custom file before loading autoload.php if it exists (bootstrap.php seemed like a good name to me).
This needs to be changed in two places. In this repo (which this PR does) and the in the index.php file of SilverStripe - Recipe Core.
If you think this is useful, I will create a PR in SilverStripe - Recipe Core.
Also, documentation should be updated, but I am not sure where it should go.

I do not know what was going on in my head, this PR does exactly what I said should not be done, altering index.php.


text:
how to use simde to compile sse avx instruction into aarch64

following code:  compile and test test_simde_mm256_set_epi8() successfully.
but failed to compile __m256i x = _mm256_set_epi8(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32);
do anyone have use sse avx instruction to compile into aarch64.
static int
test_simde_mm256_set_epi8() {
  for (size_t i = 0 ; i < 32 ; i++) {
    int8_t a[32];
    simde__m256i r;

    r = simde_mm256_set_epi8(a[31], a[30], a[29], a[28], a[27], a[26], a[25], a[24],
                             a[23], a[22], a[21], a[20], a[19], a[18], a[17], a[16],
                             a[15], a[14], a[13], a[12], a[11], a[10], a[ 9], a[ 8],
                             a[ 7], a[ 6], a[ 5], a[ 4], a[ 3], a[ 2], a[ 1], a[ 0]);

  }

  return 0;
}

int main(char argc, char **argv) {
//test_simde_mm256_set_epi8();
__m256i x = _mm256_set_epi8(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32);
}

So simde_mm256_set_epi8 works, but _mm256_set_epi8 doesn't?  It sounds like you're not defining SIMDE_ENABLE_NATIVE_ALIASES prior to including SIMDe.  Either pass -DSIMDE_ENABLE_NATIVE_ALIASES to your compiler, or #define SIMDE_ENABLE_NATIVE_ALIASES before you #include any SIMDe headers.
If that's not the problem, can you provide a bit more detail (maybe an example we can try to compile locally, including all your includes and the command you're using)?

Closing, but please re-open if that didn't answer your question.

authors: luozero nemequ

repo: simd-everywhere/simde


text:
Fix error with upload_to_gist

I was getting the following error:
julia> gist = ArtifactUtils.upload_to_gist(artifact_id)
- Creating gist...
✓ Created gist
Cloning into '.'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

with the stack trace:
Stacktrace:
  [1] pipeline_error
    @ ./process.jl:565 [inlined]
  [2] run(::Cmd; wait::Bool)
    @ Base ./process.jl:480
  [3] run
    @ ./process.jl:477 [inlined]
  [4] git
    @ ~/.julia/packages/ArtifactUtils/LygoX/src/gistutils.jl:44 [inlined]
  [5] (::ArtifactUtils.var"#15#17"{ArtifactUtils.var"#11#12"{String}, String})(git_dir::String)
    @ ArtifactUtils ~/.julia/packages/ArtifactUtils/LygoX/src/gistutils.jl:45
  [6] mktempdir(fn::ArtifactUtils.var"#15#17"{ArtifactUtils.var"#11#12"{String}, String}, parent::String; prefix::String)
    @ Base.Filesystem ./file.jl:764
  [7] mktempdir (repeats 2 times)
    @ ./file.jl:760 [inlined]
  [8] macro expansion
    @ ~/.julia/packages/ArtifactUtils/LygoX/src/gistutils.jl:43 [inlined]
  [9] macro expansion
    @ ./task.jl:454 [inlined]
 [10] with_new_gist(f::ArtifactUtils.var"#11#12"{String}; private::Bool)
    @ ArtifactUtils ~/.julia/packages/ArtifactUtils/LygoX/src/gistutils.jl:39
 [11] gist_from_file(filepath::String; private::Bool)
    @ ArtifactUtils ~/.julia/packages/ArtifactUtils/LygoX/src/gistutils.jl:10
 [12] upload_to_gist(artifact_id::Base.SHA1, tarball::String; private::Bool, archive_options::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ ArtifactUtils ~/.julia/packages/ArtifactUtils/LygoX/src/ArtifactUtils.jl:172
 [13] upload_to_gist
    @ ~/.julia/packages/ArtifactUtils/LygoX/src/ArtifactUtils.jl:163 [inlined]
 [14] #32
    @ ~/.julia/packages/ArtifactUtils/LygoX/src/ArtifactUtils.jl:205 [inlined]
 [15] mktempdir(fn::ArtifactUtils.var"#32#33"{Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, Base.SHA1, String}, parent::String; prefix::String)
    @ Base.Filesystem ./file.jl:764
 [16] mktempdir (repeats 2 times)
    @ ./file.jl:760 [inlined]
 [17] #upload_to_gist#31
    @ ~/.julia/packages/ArtifactUtils/LygoX/src/ArtifactUtils.jl:204 [inlined]
 [18] upload_to_gist(artifact_id::Base.SHA1)
    @ ArtifactUtils ~/.julia/packages/ArtifactUtils/LygoX/src/ArtifactUtils.jl:183
 [19] top-level scope
    @ REPL[3]:1

When checking the repo URL that ArtifactUtils was using, I realised that it also did not work on the terminal. One needs to remove the username and .git in the end to actually get the gist repo url. This PR attempts to fix that. I'm actually not sure how ArtifactUtils was working before?
Related: https://discourse.julialang.org/t/permissions-error-in-artifactutils-upload-to-gist/96469

Codecov Report

Merging #20 (d54c604) into main (810f735) will decrease coverage by 4.67%.
The diff coverage is 0.00%.

: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
@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
- Coverage   49.17%   44.50%   -4.67%
==========================================
  Files           3        3
  Lines         181      182       +1
==========================================
- Hits           89       81       -8
- Misses         92      101       +9

Impacted Files
Coverage Δ

src/gistutils.jl
22.80% <0.00%> (ø)

... and 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

I was having some issue with ArtifactUtils, since I was not being able to upload to GitHub Gist. This PR fixes it.

Bump, @simeonschaub, if you're around...

Thanks @cossio!

authors: StefanKarpinski codecov-commenter cossio marcobonici simeonschaub


text:
SQLCipher compile flags consistency

Hello!
I was looking into using the linux library for an existing Android/iOS app that uses sqlcipher_flutter_libs.
I've found that the flags used on Linux and Windows have some differences between iOS and Android that can break an existing app implementation.
Here are the flags used on the dependencies maintained by the SQLCipher team (Android, iOS and macOS)
https://github.com/sqlcipher/sqlcipher/blob/master/SQLCipher.podspec.json
"compiler_flags": [
        "-DNDEBUG",
        "-DSQLITE_HAS_CODEC",
        "-DSQLITE_TEMP_STORE=2",
        "-DSQLITE_SOUNDEX",
        "-DSQLITE_THREADSAFE",
        "-DSQLITE_ENABLE_RTREE",
        "-DSQLITE_ENABLE_STAT3",
        "-DSQLITE_ENABLE_STAT4",
        "-DSQLITE_ENABLE_COLUMN_METADATA",
        "-DSQLITE_ENABLE_MEMORY_MANAGEMENT",
        "-DSQLITE_ENABLE_LOAD_EXTENSION",
        "-DSQLITE_ENABLE_FTS4",
        "-DSQLITE_ENABLE_FTS4_UNICODE61",
        "-DSQLITE_ENABLE_FTS3_PARENTHESIS",
        "-DSQLITE_ENABLE_UNLOCK_NOTIFY",
        "-DSQLITE_ENABLE_JSON1",
        "-DSQLITE_ENABLE_FTS5",
        "-DSQLCIPHER_CRYPTO_CC",
        "-DHAVE_USLEEP=1",
        "-DSQLITE_MAX_VARIABLE_NUMBER=99999"
],

Differences found

THREADSAFE is 2 instead of 1 like on sqlite3_flutter_libs and like on the team maintained flags. Related https://github.com/simolus3/drift/issues/2032#issuecomment-1247186128
sqlite3_flutter_libs and sqlcipher_flutter_libs (linux and windows) use the flag DQS=0 which disables the usage of double quotes as string literal. The SQLCipher maintained libs don't set that flag, so existing apps that have used the Android and iOS dependency may use double quotes in many different queries. Using the Linux or Windows dependency now breaks those queries.

1 is an easy fix, like it was done for `sqlite3_flutter_libs'  v0.5.10
For 2 I can see two solutions.

Remove the DQS flag on Windows and Linux to match the Android, iOS and macOS flags from the SQLCipher team.

Compile SQLCipher for Android, iOS and macOS with the same set of flags from sqlite3_flutter_libs so that drift with all platforms and engines have the same behavior.
Android SQLCipher appears to be agnostic to the flags used. https://github.com/sqlcipher/android-database-sqlcipher#building
I'm not sure about distribution on gradle though.
As for iOS and macOS they use the following podfile https://github.com/sqlcipher/sqlcipher/blob/master/SQLCipher.podspec.json
But I'm not sure if it's possible to override the complete set of flags to use the ones we want.
This solution would be breaking, but at least we could have same behavior across the board.

1 is an easy fix, like it was done for sqlite3_flutter_libs v0.5.10

I agree we should use the default of 1 instead of 2 for SQLCipher builds as well, done.
As you've mentioned, issue 2 is a bit more troublesome. We can't add compile-time options to a podspec from another podspec (it can be done from the root Podfile, but we have no control over that). I also prefer to use these existing libraries where available to reduce the maintenance work (especially since we have to be really careful not to link both sqlite3 and SQLCipher on iOS).
The compatibility argument between Linux/Windows vs. Android/macOS/iOS is compelling, but I think there should also be compatibility between sqlite3_flutter_libs and sqlcipher_flutter_libs.

With the native assets feature currently being developed for the Dart and Flutter SDK, we will likely have a cross-platform solution in the future that works for both Dart and Flutter and allows us to write compile scripts independent of the native build system used in the end. Since that puts the responsibility of linking the right library on iOS and macOS away from us, I think that would be a good opportunity to migrate away from all native build scripts once it is stable. The current situation is not ideal, but I wonder if we should just document it and leave it as is until we have full control over the build.

@simolus3 Thanks for the information!
2 is not really a problem for me right now, but it definitely caught me off guard when I saw many queries randomly failing with a Syntax error I wasn't aware about, so I think it was worth mentioning. I understand how DQS=0 can be useful when starting from scratch and avoid using legacy syntax. I always thought SQLite treated double quotes and single quotes the same way, so my project mostly uses double quotes as is what I'm used to in my keyboard.
Is this the feature you are referring to? https://github.com/dart-lang/sdk/issues/50565

Is this the feature you are referring to? https://github.com/dart-lang/sdk/issues/50565

Exactly.
It seems this like this will also support user-defines, so we will likely be able to let application developers decide whether they need DQS or not.

@simolus3 A simple reminder just in case :smile:
It looks like version 0.5.7 of sqlcipher_flutter_libs with the THREADSAFE fix hasn't been uploaded to pub yet.

Thanks for the reminder, I've just published 0.5.7.


text:
New demo script for a simple task run

The demo is less interesting than the existing kaniko build since
the task run does not create an image, but I think it's useful to be
able to exercise it in a script to demonstrate how we think it
works.
Also it's useful for troubleshooting and hacking, e.g. we can switch
the format to in-toto easily, or enable rekor and run the same
script to test things.
Also:

Add some extra handling of the signature field in check-taskrun.sh
to help debug and troubleshoot the in-toto format.
Add a script to make it easier to read chains controller logs

Replaced by https://github.com/hacbs-contract/infra-deployments/pull/3 .

repo: simonbaird/infra-deployments


text:
rework fill_default_parameters

This could be much cleaner now, without column regexes, since we store parameter values in a separate dataframe.

also implement prettyparams=True

Fixed in 069486a

repo: simonbowly/grblogtools


text:
Switch to PackageCompiler.create_library()

Fixes #5, #11
Depends on https://github.com/JuliaLang/PackageCompiler.jl/issues/490
This does make things slightly more complicated Edit: on Windows (it's harder to find the library at run time), ~so if you want to keep this repo  simple, then it may be better not to merge~.
Either way, would love feedback.

Thanks @kmsquire! This looks very handy.

Thanks @kmsquire! This looks very handy.

Status update: this is working well (compiles and tests pass) on OSX and Linux.  However, I haven't been able to get the Windows binary to run. (See here--this only has Julia 1.6, but the same thing happens in 1.5.)
As can be seen in the link above, PackageCompiler is able to produce the library, and the main executable is compiled and linked fine.  Running dir on the bin directory shows main.exe and all of the dlls.  But when it's run, it always gives
ERROR: could not load library "D:\a\libcg\libcg\target"
The specified module could not be found.

Nothing in the debug logs during make jumps out at me.  I don't have a Windows machine to test on locally, so I've been dependent on CI, and I'm out of ideas.  Does anyone have any ideas?
(I turned off building for OSX and Linux CI while testing Windows.)

Status update: this is working well (compiles and tests pass) on OSX and Linux.  However, I haven't been able to get the Windows binary to run. (See here--this only has Julia 1.6, but the same thing happens in 1.5.)
As can be seen in the link above, PackageCompiler is able to produce the library, and the main executable is compiled and linked fine.  Running dir on the bin directory shows main.exe and all of the dlls.  But when it's run, it always gives
ERROR: could not load library "D:\a\libcg\libcg\target"
The specified module could not be found.

Nothing in the debug logs during make jumps out at me.  I don't have a Windows machine to test on locally, so I've been dependent on CI, and I'm out of ideas.  Does anyone have any ideas?
(I turned off building for OSX and Linux CI while testing Windows.)

@staticfloat: any ideas?

@staticfloat: any ideas?

Is it trying to load a library called target?  No .dll, no nothing?

Is it trying to load a library called target?  No .dll, no nothing?

Is it trying to load a library called target? No .dll, no nothing?

That's what the message seems to indicate.
The library (cg.dll is created here, and main.exe is linked to the library right below that, with
gcc -o D:/a/libcg/libcg/target/bin/main.exe main.o -lm -LD:/a/libcg/libcg/target/bin -ljulia  -lcg

I believe I've tried changing all of the forward slashes to backslashes, although I'm pretty sure it shouldn't matter (main.exe gets created fine, at least).
AFAICT, there isn't anything equivalent to ldd or otool for Windows installed.  I might try to get DependencyWalker installed and look at that.
Is there an easy way to get up and running with Julia on Azure or some other remote Windows service where I could work through things manually?
(TBH, I've completed the work needed to get things working nicely with PackageCompiler under OSX and Linux, which are all I need for my own use cases.  But it would be nice to be complete, and I believe PackageCompiler itself works under Windows, so I don't see why this shouldn't.)

Is it trying to load a library called target? No .dll, no nothing?

That's what the message seems to indicate.
The library (cg.dll is created here, and main.exe is linked to the library right below that, with
gcc -o D:/a/libcg/libcg/target/bin/main.exe main.o -lm -LD:/a/libcg/libcg/target/bin -ljulia  -lcg

I believe I've tried changing all of the forward slashes to backslashes, although I'm pretty sure it shouldn't matter (main.exe gets created fine, at least).
AFAICT, there isn't anything equivalent to ldd or otool for Windows installed.  I might try to get DependencyWalker installed and look at that.
Is there an easy way to get up and running with Julia on Azure or some other remote Windows service where I could work through things manually?
(TBH, I've completed the work needed to get things working nicely with PackageCompiler under OSX and Linux, which are all I need for my own use cases.  But it would be nice to be complete, and I believe PackageCompiler itself works under Windows, so I don't see why this shouldn't.)

AFAICT, there isn't anything equivalent to ldd or otool for Windows installed.

It would be interesting to see what ObjectFile.jl says about it.  You can print out the dependencies via something like:
using ObjectFile
readmeta(path_to_dll) do oh
	@show path.(DynamicLinks(oh))
end

AFAICT, there isn't anything equivalent to ldd or otool for Windows installed.

It would be interesting to see what ObjectFile.jl says about it.  You can print out the dependencies via something like:
using ObjectFile
readmeta(path_to_dll) do oh
	@show path.(DynamicLinks(oh))
end

@simonbyrne thanks for the link to reverse-rdp-windows-github-actions--that looks like it should do the trick.  I'd like to try to use it, but it would be useful to get collaborator access to this repo so I can cancel CI jobs.  Would you mind giving me access?

@simonbyrne thanks for the link to reverse-rdp-windows-github-actions--that looks like it should do the trick.  I'd like to try to use it, but it would be useful to get collaborator access to this repo so I can cancel CI jobs.  Would you mind giving me access?

Done!

Done!

I also need to set up a secret (NGROK_AUTH_TOKEN).  Can I send that to you (maybe via Slack?) and ask you to set that for me under Settings -> Secrets -> Repository Secrets?
(Not sure if there's a more secure method.  I used to use send.firefox.com, but that's been discontinued.)

I also need to set up a secret (NGROK_AUTH_TOKEN).  Can I send that to you (maybe via Slack?) and ask you to set that for me under Settings -> Secrets -> Repository Secrets?
(Not sure if there's a more secure method.  I used to use send.firefox.com, but that's been discontinued.)

Minor status update: I originally thought that I had a runtime linking error, but it looks like we're calling init_julia() in libcg.dll fine.  It's the call to get_sysimg_path (or something below that), which seems to be failing.  JULIAC_PROGRAM_LIBNAME should be set to cg.dll (at least, that's what appears in the PackageCompiler logs when compiling this package).
I'll debug more later this week.

I also need to set up a secret (NGROK_AUTH_TOKEN). Can I send that to you (maybe via Slack?) and ask you to set that for me under Settings -> Secrets -> Repository Secrets?
Sure, that's fine.

@kmsquire is this working now?
https://github.com/simonbyrne/libcg/pull/18/checks?check_run_id=1964123892#step:7:5

Yes!  It turned out to be an issue with dirname.  On Windows, it modifies its input, which was the full path to the sysimage library, and which I was trying to reuse afterward.
I've already squashed it down there, but here's the PackageCompiler fix (on my branch).

The library size check is failing on Windows because I (mistakenly) thought that Windows libraries couldn't/shouldn't have lib as a prefix, but after looking into it, it seems like that's okay.  I'm going to remove that part of the PackageCompiler PR.

Nice!
Should we add a check to see if it is relocateable?

Sure!
FWIW, I've been able to use this successfully for work (on Mac and Linux)--I can build on one machine, package up the library and everything else required by Julia, install it under /usr/local/lib, and use it.  So relocatability shouldn't be a problem on those platforms.
For Windows, I think it's supposed to work similarly as long as the library location is in PATH, but I haven't been able to test that.
I'm going to spend some time rebasing and cleaning up the PackageCompiler PR first, then I can add a relocatability test here.  I might not get to that today.

For Windows, I think it's supposed to work similarly as long as the library location is in PATH, but I haven't been able to test that.

On Windows I believe that the binary directory is also in the search path: this is why many windows apps put the library in the bin directory, so then you don't need to modify PATH

@kmsquire I may be overstepping here, but do you think create_library will allow to add the dll as a reference in a Visual Studio project ? I know you could not do full tests on windows, but that would be a very interesting development for me.
The current create_sysimage exports functions decorated with the Base.@ccallable macro, these are visible using dumpbin <nameofdll> /exports on windows. However, if I want to link to this dll as a reference in Visual Studio, this fails.

Don't you need to create an import libraries .lib file in Windows in order to be able to link the .dll ?
You need to created this small static library in order to tell Windows the .dll size and stuff, perhaps that's why it is failing on Windows.

@BambOoxX, @el-oso, thank you for your comments, and sorry not to respond to them earlier.  I'll respond to each separately.

Okay, I just realized that @el-oso was responding to @BambOoxX--thank you!
FWIW, we actually did get Windows working, at least in C.  We recently added a rust example, but that only works on linux and OSX currently.

authors: BambOoxX el-oso kmsquire simonbyrne staticfloat

repo: simonbyrne/libcg


text:
Relock Analysis Showing Large df p2p values while readout noise looks normal

HI all, a few days ago (with no clear origin), one of our wafers started showing a very low number for "good tracking channels", shown in the relock analysis plots (very large df p2p, see plots below). Despite this, readout noise looks quite reasonable. Possible that flux ramp drive parameters are off? Some help interpreting this would be great-- IV curves and bias steps for this UFM look great (it is Mv12 on srv SO4 (Mv12 is the photo with 411 good channels).
Although the other UFMs show a higher percentage in the green "good" range, several others show similar columns extending into high df p2p values.
@msilvafe @jlashner Max asked me to send this to you both :)
Kyohei Yamada first found this issue and can comment more on how it started.

Hi Sam, I believe we've generally increased the df_ptp allowed range in our device cfgs from 50 to 100 (here: https://github.com/simonsobs/sodetlib/blob/26b1e7ab02b21b797d8a618bf68217baed5fda42/sodetlib/det_config.py#L76), but in these plots it looks like the cutoff is 50 kHz (the old value).
We've changed this in the defaults, so new device cfgs should use that larger range. Any chance the device cfgs you're using are copied from an older version? If so I think you should just be able to update them such that df_ptp_range=[0, 100].

Thanks Jack, I actually just checked the det_config files and it looks like the range is already set to [0,100]. How do we change the plotting to reflect this?

oh I see, I was confused, sorry I was looking at the sodetlib/sodetlib/det_config.py file. I'll change those device configs now.
Thanks!

Ah ya I can see how that's confusing. Hope that works!

I'm closing this, but if the problem isn't fixed feel free to re-open.

authors: jlashner samdayweiss

repo: simonsobs/sodetlib


text:
Advanced CSV export for arbitrary queries

There's no link to download the CSV file - the table page has that as an advanced export option, but this is missing from the query page.

https://latest.datasette.io/fixtures/sortable#export has advanced export options, but https://latest.datasette.io/fixtures?sql=select+pk1%2C+pk2%2C+content%2C+sortable%2C+sortable_with_nulls%2C+sortable_with_nulls_2%2C+text+from+sortable+order+by+pk1%2C+pk2+limit+101 does not.

Related: #856 - if it's possible to paginate correctly configured canned query then the CSV option to "stream all rows" could work for queries as well as tables.

repo: simonw/datasette


text:
Failure importing potholes.json

% git clone https://github.com/patricktrainer/open-potholes
% cd open-potholes
% git-history file potholes.db potholes.json --id service_request
  [#############-----------------------]  19/50   38%  00:00:04Traceback (most recent call last):
  File "/Users/simon/.local/bin/git-history", line 8, in <module>
    sys.exit(cli())
  File "/Users/simon/.local/pipx/venvs/git-history/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/simon/.local/pipx/venvs/git-history/lib/python3.10/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/simon/.local/pipx/venvs/git-history/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/simon/.local/pipx/venvs/git-history/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/simon/.local/pipx/venvs/git-history/lib/python3.10/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/simon/.local/pipx/venvs/git-history/lib/python3.10/site-packages/git_history/cli.py", line 261, in file
    db["items"].insert_all(
  File "/Users/simon/.local/pipx/venvs/git-history/lib/python3.10/site-packages/sqlite_utils/db.py", line 2596, in insert_all
    self.insert_chunk(
  File "/Users/simon/.local/pipx/venvs/git-history/lib/python3.10/site-packages/sqlite_utils/db.py", line 2424, in insert_chunk
    row = list(self.rows_where("rowid = ?", [self.last_rowid]))[0]
IndexError: list index out of range

From https://github.com/patricktrainer/open-potholes

Running that command multiple times eventually processes the whole file, presumably missing some data.

It's because that JSON has a rowid column:
    "rowid": "841311"

Adding rowid as a reserved column may fix this.

repo: simonw/git-history


text:
Null Space of curl curl operation

When frequency is small, there is a null space that can cause issues. It can be corrected by enforcing conditions on the divergence of the field and or flux at play (not that if solving the 2D cyl mesh problem for h or e, this isn't an issue)

This issue was moved to simpeg/simpeg#149

repo: simpeg/simpegem