Openwrt package?

Can i create a package to include this in openwrt/lede?
I tested it right now and works really good.

Yes. AriaNg is a free and opensource project, so you are free to use, spread and modify it under the license.

@mayswind could you pls include the precompiled code in the github directory too? Have problem with zip file ahahaha

@Ansuel AriaNg uses continuous integration tools to build and publish, and every builds (including snapshot and release version) will be published to https://github.com/mayswind/AriaNg-DailyBuild

owwww didn't notice this!!! ok thx


Reason for throwing away response

Hello, is there a reason ratchet is throwing away the response from send() method? https://github.com/ratchetphp/Ratchet/blob/b5ccecad9390db85d2c8df7cbeb047292fbbf4b8/src/Ratchet/Server/IoConnection.php#L27
Here is returned bool https://github.com/reactphp/stream/blob/master/src/WritableStreamInterface.php#L222

🤔

🤔

Sorry! Work/life been keeping me busy.
Short answer: I don't remember 🤷♀
Best guess: The React documentation also says

If a stream cannot handle writing (or flushing) the data, it SHOULD emit an error event and MAY close() the stream if it can not recover from this error.

I think the expectation was we ignore the respond and handle the error through onError should it arise.
As for returning false on buffer full, I don't think React ever does that as it creates its own memory buffer and adds to it to be written on write


bitcoin:34s1Fdb1mpsTgwB3PnyM4XNW9uf5ukKrm2

34s1Fdb1mpsTgwB3PnyM4XNW9uf5ukKrm2

Gee

Thank you very much

Okay thank you very much! here is the wallet you’re to make payment
34s1Fdb1mpsTgwB3PnyM4XNW9uf5ukKrm2
On Tue, Nov 9, 2021 at 10:33 PM Diederik Loerakker @.***>
wrote:

Closed #6 https://github.com/protolambda/eth2-val-tools/issues/6.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/protolambda/eth2-val-tools/issues/6#event-5590182354,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWMHS6P3VOBRVTCL2MHWBQLULEWMXANCNFSM5HVIBJJQ
.


Investigate using the ISSN-GOLD-OA list for identification of Gold OA journals

Available here: http://doi.org/10.4119/unibi/2913654
The list seeks to provide a more complete overview than provided by DOAJ alone:

ISSN-GOLD-OA 2.0 provides a matching list of ISSN for Gold Open Access (OA) journals. The intention was to compile a matching table that is as complete as possible by using different publicly available sources. The data set offers a basis for various journal-related issues in bibliometric studies on Gold OA. The list is an updated version of ISSN-GOLD-OA . For a detailed description of the method, data sources used and the definition of the table fields, please refer to the original documentation: https://pub.uni-bielefeld.de/data/2906347

Some of their findings re DOAJ coverage:

Each ISSN and journal can be covered in one or more of the OA-sources. Numbers were
calculated after manual data cleaning. Only ~39% of all ISSNs and ~41% of all journals
are covered in DOAJ. If restricted to the ISSNs that appear in Web of Science, DOAJ
covers ~62% (Scopus: ~61%). In terms of journals: 67% in the Web of Science and 65% in
Scopus. Thus, a substantial loss of information is supposed to affect bibliometric studies
which solely rely on DOAJ.

Very interesting! Yeah we'll look into this!

Moved to https://support.unpaywall.org/public/tickets/50c413d868ec735374e0076369b2e53d3d7a1a85324c6f2372b2e5b4e998189d


Associations added and order model created

Assignee Tasks

[ ] added unit tests (or none needed)
[ ] written relevant docs (or none needed)
[ ] referenced any relevant issues (or none exist)

Guidelines
Please add a description of this Pull Request's motivation, scope, outstanding issues or potential alternatives, reasoning behind the current solution, and any other relevant information for posterity.

Your PR Notes Here

Reviewed with Alex - looks all good


How to add loaders into webpack

For example, sass-loader to use in conjunction with vue renderer.
Thanks

Hi @javimosch !
Do you want to use sass within a single-file component .vue?
Sorry for the late rely.
Rom


Chat ID not returned when cached response is returned

Affected components(s)

[ ] Chat Agents
[x] Chat Endpoints
[ ] RAG
[ ] LLM Models
[ ] Vector Stores
[x] Chat History
[ ] Response Caching
[ ] API Key Authentication
[ ] Endpoint Deployment
[ ] Other

Describe the bug
Chat ID not returned when cached response is returned
To Reproduce
Simply send a query to an endpoint "n" number of times, where "n" is the cacheQueryAfterThreshold of the cache store. You will notice that the returned response doesn't have the chatId. Therefore, conversation can't be continued.

fix implemented


ListenKeys - forgive using string instead of array

When you forget to wrap keys in an array, the listener will not update. This is a bit more forgiving.
Example:
const store = useStore($store, {keys: 'notAnArray'})

You should use types for that


feat: Implement initial framework for cost-based optimizations to avoid moving to Comet in some cases

Which issue does this PR close?

Part of https://github.com/apache/datafusion-comet/issues/571
Rationale for this change

This is a first step towards a cost-based optimizer that can avoid moving from Spark to Comet in some cases where the benefit of moving to Comet could be outweighed by the overhead of the surrounding R2C and C2R transitions.
In this case we use a very specific rule to avoid moving to Comet for the final query stage if that query stage is just a SortExec (as we currently see with TPC-H q16).
Note that the actual performance difference of the optimization in this case is negligible because the final query stage is only processing a relatively small number of rows, but the value of this PR is getting the basic mechanism in place for future optimizations.
Before

After

What changes are included in this PR?

How are these changes tested?

Moving to draft until I have unit tests

There is no immediate benefit in merging this so I will close this issue for now. I wrote up my findings in https://github.com/apache/datafusion-comet/issues/833 and may revisit this in the future


Render.com fail building wheel for nmslib

Happens when requirements.txt has any of the following:
rerankers[gpt]
rerankers[rankllm]
rerankers[all]

seemingly since v0.3.0

from nmslib.cc:16:
/usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
typedef struct _frame PyFrameObject;
^~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for nmslib
ERROR: Could not build wheels for nmslib, which is required to install pyproject.toml-based projects
==> Build failed 😞

I have the same issue when my streamlit app requirements.txt has either rerankers[rankllm] or
rerankers[all]

Hey! Thanks guys for flagging. It seems like an old nmslib issue that appeared to have been resolved has returned. I'll try and tweak the requirements to something that works, either a fork of nmslib (as suggested by https://github.com/AnswerDotAI/rerankers/issues/15) or seeing if there's an elegant way to make it install properly again.

Just as a bit of an update on the current situation with nmslib: it's actually fairly hard to find a workaround for the nmslib install issues on mac, as well as conditionally installing the metabrainz fork -- any workaround seems to result in a slightly different, but just as breaking, issue.
nmslib should be supporting higher versions of python soon, and RankLLM is one of the least used rerankers in this library at the moment, so my plan is probably something as basic as taking it out of [all] requirements and displaying a warning message that it couldn't be installed to nmslib and that you should install the fork if you're on recent python versions, which we'd take away once the new nmslib version is out!


Broken background styling on documentation menu

Similar to #6935, another documentation styling regression introduced in 328e7012fccb3a61aefbfe1ede9c9e61ff2b0d91 - on a URL such as https://docs.wagtail.io/en/latest/reference/index.html , menu items below the current expanded section are missing the expected black background and end up showing as light grey on light grey.

This issue will be partly addressed in #7015 – it’ll still happen, but only when the search dropdown is open.

Thanks @thibaudcolas! On the current version I'm not seeing it even with the search active, so happy to call this done.


Fix Hexagonal Architecture blog links

Fixes links to Alistair Cockburn's post on Hexagonal Architecture, which has moved
This also affects the link on https://www.goparamore.io/ in the text

It can be used for implementing Ports and Adapters and CQRS (PDF) architectural styles in .NET.

However I have not been able to find the source for that.

@hwoodiwiss thank you! I've updated the goparamore site too!


About section Improvement

The About section can be improved by making it look alike that of netflix about section page

Please assign this issue to me under gssoc 2024 extended

@NishantK-07 It is not required right now.


Epic: Improve page server logging story

Motivation
Per this discussion started by @lassizci  and @kelvich
Pageserver creates ~7.5M lines of log at INFO level every hour. Size wise talking about 1.45GB/hour
DoD
A concise log story for pageserver providing necessary breadcrumbs for actual issues and less verbose in normal operation
Implementation ideas
https://docs.google.com/document/d/1i4yb102lrZgnKOU7sjKAf4zWXQxdUbU4OrkIDZSHj7M/edit

Observability of remote storage - metrics
Request context - missing  (management operations are ok for adding, might be costly for non user operations)
Many issues arise with string formatting, need to come up with a solution (maybe ETW way)
Move to collect bread crumbs, and only log them in case of an error
Add the ability to change log level, per component dynamically,
Llvm xray, dynamic instrumentation framework, enable/disable  (https://internals.rust-lang.org/t/pre-rfc-xray-instrumentation-support/17473)
support dynamically per Timeline tracing on/off
Go over lassi’s noisy messages grafana and flash out the ones that cause most of the noise
In the future alert for over quota logs /' alerts over exceeding Errors/Warns
Deduplication of trace messages.
Use variables for log messages, and not string formatting

Tasks

[x] https://github.com/neondatabase/neon/issues/3114
[x] https://github.com/neondatabase/neon/pull/3227
[x] #3253
[x] #3314
[x] #3337
[x] #3338
[x] #3339
[x] #3340
[x] #3341
[x] #3342
[x] #3343
[x] #3344
[x] #3346
[x] #3347
[x] #3372

Other related tasks and Epics

Would also super useful to have:

per-module tags on logs and ability to change it enforce log level per module in a runtime, e.g. though http api.
ability to show all logs for specific tenant in runtime

depending on complexity that could be done now or later

the per module logging was moved to epic : #3547


python312Packages.protobuf5: 5.28.0 -> 5.28.1

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This has already been taken care of in staging (https://github.com/NixOS/nixpkgs/commit/afe5a481155c2a4e384315b198d796969f4f46be) and is part of the next staging-next cycle.
Thanks for the initiative nonetheless.

Actually, I should have made those bumps against master directly... This was not optimal.
Anyway, as they should land in master within a few days, I suggest that we simply wait.

It's hard to search... Yes, let's wait, no hurry. :)

It's hard to search...

Yes, especially that this specific change was pushed directly on staging  (by mistake) and has no corresponding PR.


Loss of HomeKit TVs in Third Party Apps

Has anyone else lost the TVs from third party apps?  Using ‘Controller for HomeKit’ and ‘Eve’ apps.  Homebridge is there though other bridges aren’t.  And when using ‘Controller for HomeKit’ app I get a read out of Control Point ‘not supported’ and state 0 not sure if that is a read out of HomeKit official authentication or not or whether it is essentially now saying they can’t control homebridge devices??? Or if it is something else all together.

I would guess that 3rd party apps need an update to support the new TV devices introduced in iOS12.2

I thought the same but the apps have been updated since iOS 12.2 they were there before but have now gone, so I’m guessing it must be something changing with Apple.  But maybe thought it might be a new set up or something?  I have also experience the inability to switch the TVs on since updating to 1.5.5 (like another thread).  Trying to implement 2 instances of homebridge but failing (with systemd, got any links or helpful tips? I’ve tried copying and editing the /etc and /var files to no avail.

Sorry, i have no idea about the 3rd party app issues, but i guess this has nothing to do with plugin.
Could you post your homebridge log when you try to turn on the TV and it fails?

@merdok just wondering did you change the read out on power status?

I did not change anything with power status since a long time...


Not able to visualize the sensor data in web app using iot hub

Able to get the blank chart in the web app using iot hub but device name and data is not displayed in the chart. But it's working for local host using azure iot hub.

@saitejakothamasu  Thanks for reaching out to us , but at this time it does not look like you are referring to a document but to a specific scenario . If that's the case we request you to please post your question on MSDN and other forums , we have our engineers and others who are monitoring them and will be happy to help .
If you have a document which you are following and if you think it needs  an update , please let us know about that here .

Thanks for the ask  . At this time we are reviewing it and we will reply back as soon as we can .

@saitejakothamasu Could you please point us to the document you are referring to? In case if this is not a doc feedback, we request you to please post your question on MSDN/Stackoverflow. We have out engineers and other community members who will be happy to help.

We have assigned the issue to the content author . They will evaluate & update the document as appropriate

We are closing this issue as we have not heard back from you , you can always re-open the issue if you think that appropriate .


Remote explorer showing too many views

Issue Type: Bug
This is an issue that never disappeared for me but, I think, was declared fixed. When I open the remote explorer, I usually get more several views, not just the one that is selected in the dropdown.

Yes. In my case it's usually what you see above: SSH and Codespaces.

@kieferrm do you have to be connected to a remote when you see this?

I have right now remote and local windows open, I see it in both:
Codespaces window:

New local window:

Here is what seems to happen:

Have the Remote-SSH and the Codespace extension enabled
Ensure there are ssh and codespaces workspaces in your "recent" list
Close VS Code, restart with -n
Open Remote Explorer in the new local window -> SSH selected and visible
From recent list open ssh workspace
Open Remote Explorer in the new remote window -> SSH selected and visible
Open new local window
Open Remote Explorer in the new local window -> SSH selected and visible
From recent list select codespace
Open Remote Explorer in the new codespace window -> Codespaces selected, SSH and Codespaces visible
From now on, all new windows no matter whether  local or remote show a remote explorer with Codespaces selected, SSH and Codespaces visible.

Thank you for the detailed steps! I'm still not able to repro this, though it is clearly a problem. Just to confirm though: you have the latest Codespaces extension installed?

@kieferrm is this still happening for you?


Separating dependencies into direct and indirect dependencies

Not all of the dependencies in this repo need to be pegged at a specific version number, so I wanted to get thoughts on what could be a good way of separating the dependencies into direct and indirect dependencies to improve the anaconda-project.yml files.

All Python packages that are imported by a .ipynb or .py file in a project are direct dependencies; they depend directly on the API of the specific version pinned there, and it is necessary to declare which such version they were written for.
There are some other uncommon cases where a Python package is a direct dependency even if it is not imported, e.g. if that package has code using Pandas' support for configurable plotting backends to select a certain such backend, then later uses that backend's API directly via a call like df.plot(option=value).  I don't think we actually have any cases like that yet in this repository; e.g. for this specific case we use import hvplot.pandas rather than the configurable backend support, and so the import is clearly visible already.
There are also cases where a package is a direct dependency not in Python but in some other file type. E.g. when a project includes a catalog.yml for Intake, the specification for that file corresponds to a specific Intake version, and thus Intake is a direct dependency, as is any Intake plugin that is required by that file.
An indirect dependency is any other package.  Usually indirect dependencies aren't even declared in the project; they just get installed when dependencies are installed, as dependencies of our dependencies.  But sometimes there are optional packages that we want to be installed to improve the behavior, such as tdd, which is something Numba checks for and uses if present, but doesn't complain if it is  not.  Such indirect dependencies should normally not have a version specified.
Finally, indirect dependencies with a version specified should be usef for things that we should not have had to specify, but because of dependencies that incorrectly pinned their own dependencies, we have to pin the indirect dependencies here to get things working. Every time that happens it needs a comment, because it's entirely nonobvious and usually the result of a lot of painful experimentation and head scratching.

The overall goal is that we should capture, as much as possible, precisely as much (and no more) as we know.  We know we used a certain version of a direct dependency when we wrote the example, so we should specify that.  Even better is if we work out the minimum version required for the features we need in a direct dependency, but that's a lot of work and very unlikely ever to happen.  And for indirect dependencies we normally haven't messed with them and thus don't particularly have any opinion about their versions; whatever we get when we install our dependencies is fine.  If we experiment and find out that we do care, then we put in that information as an indirect pin; otherwise it's inappropriate to pin an indirect dependency.  Hope that makes sense!

I'm going to assume the direct dependencies of a project are those listed in its anaconda-project.yml file (this is what should be listed there, except in the case where an indirect dependency breaks something and needs to be pinned).
The situation is currently quite mixed on this topic. Some projects pin all their direct dependencies (==), some pin them partially, most but not all pin python.

The overall goal is that we should capture, as much as possible, precisely as much (and no more) as we know. We know we used a certain version of a direct dependency when we wrote the example, so we should specify that

I think I understand the intention to specify somewhere the versions of the direct dependencies. However pinning the direct dependencies (with ==, <= or <) comes with some cost. Indeed when you want to update a project and its dependencies then you will have to:

remove the pins in the anaconda-project.yml file
run anaconda-project update
check whether the projects run fine with the updated dependencies
if not, update the notebooks and/or maybe add/remove/pin some dependencies until it runs fine again. Changing the dependencies means that you have to run anaconda-project update again, maybe multiple times.
find the new versions of the packages, copy them and paste them in the anaconda-project.yml file
run anaconda-project update again as after re-adding the pins in the anaconda-project.yml file the lock file needs to be updated (the hashes no longer match)

This may well be a UX problem with anaconda-project but it seems to me these are way too many steps. Being able to easily update the projects seem important to me: there are currently 2 projects depending on Python 3.6 and 30 projects depending on Python 3.7 whose EOL in June 2023 :(
What I would suggest instead is the following:

examples v2 (after the work I've done this January) actually forces users to commit their project together with a lock file. So from the very beginning a project is locked, and as such you can go back through its git history and inspect its lock file to see what versions it depended on.
I would recommend to try not to pin anything, not even Python itself. Pins like ==, < and <= should be avoided as far as possible, they just make it too difficult to update a package. Pins like !=, > and >= make it a lot easier to update a project. Loose pins like python=3.* also seem fine, even if it seems like in most cases they could be avoided. (if we agree on rules like that we could definitely have a linter that tells people to try not to use some kind of pins).

Making it easier to update a project will make the life of those who do it easier. (It would also make it easier for a potential bot to automatically update the dependencies of a project).


Add Promise

A Promise library for Swift, based partially on Javascript's A+ spec
Project URL
https://github.com/khanlou/Promise
Category
EventBus
Description
A Promise is a way to represent a value that will exist (or will fail with an error) at some point in the future. This is similar to how an Optional represents a value that may or may not be there.
Why it should be included to awesome-ios (optional)
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 4 or later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          1 Warning

:warning:
Found 6 link issues, a project collaborator will take care of these, thanks :)

Link issues by awesome_bot

Line
Status
Link

5
Dupe
https://gitter.im/vsouza/awesome-ios

18
301
https://goo.gl/hNadrZ redirects tohttps://try.instabug.com/awesomeios/?utm_source=awesomeios&utm_medium=spon&utm_content=header

20
301
https://goo.gl/q93Qtd redirects tohttps://try.instabug.com/awesomeios?utm_source=awesomeios&utm_medium=spon&utm_content=learn-more

21
301
https://goo.gl/A74z8Q redirects tohttps://instabug-ga.appspot.com/UA-41982088-6/github/awesomeios?pixel

21
Dupe
https://instabug.com

2705
503
https://boombox.io/

  Generated by :no_entry_sign: Danger


ESLint: Re-enable rule line-between-class-members

SUMMARY
Re-enable ESLint rule line-between-class-members, which was disabled in PR #10839. Code was refactored to fix the errors raised by the rule.
TEST PLAN
Run npm run lint, verify that there are no new Javascript/Typescript errors.
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

Cypress has failed on a test unrelated to the changes with a timeout error. Can we re-run it?

Needs a quick rebase, but looking good!

@rusackas Rebases done (here and on the other PRs)


Hyperctl load command does not get respond

Hyperctl load command works good without -r option while adding "-r aaa" makes it fail.

@Chen8132 thanks for reporting, will check it.
It would be appreciated if you could paste related logs which located in /var/log/hyper/ by default.

I think no log is about this issue. Just stop there when I execute hyperctl load -i /tmp/a.tar -r aaa. I actually do not know what is the use of -n option and -r option and want to figure it out.

OK, will take a look. Thank you

@Chen8132 I checked the code of these two flags, and both designed for OCI Image format
		Name  string   `short:"n" long:"name" value-name:"\"\"" description:"Name to use when loading OCI image layout tar archive"`
		Refs  []string `short:"r" long:"references" value-name:"\"\"" description:"References to use when loading an OCI image layout tar archive"`

I don't think it could work proper with docker images

I find hyperctl exec and attach command do not get respond too.

Did you try using the -t option?

I don't think attach command has -t option.

exec also doesn't work with -t option

Both attach and exec still do not work after I try what you said. I don't think they will make it in my server. My system is centOS 7.

Specific image or no output with any images? And could you get the output with hyperctl logs?

I have tried ubuntu image and centos image. Nothing in logs.

just show leveldb: not found when it starts


rvgl-launcher: Add version <IP_ADDRESS>4a1

Closes #10298

[x] I have read the Contributing Guide.

/verify

Please add this manifest to the games bucket instead of extras bucket

So...what is going on with this??  I cannot find this in any bucket, let alone in 'games' bucket

So...what is going on with this?? I cannot find this in any bucket, let alone in 'games' bucket

This PR is closed. the contributor did not submit it to other buckets and get merged, you can copy the json file locally and install it.
❯ scoop help install
Usage: scoop install <app> [options]

e.g. The usual way to install an app (uses your local 'buckets'):
     scoop install git

To install a different version of the app
(note that this will auto-generate the manifest using current version):
     scoop install<EMAIL_ADDRESS>
To install an app from a manifest at a URL:
     scoop install https://raw.githubusercontent.com/ScoopInstaller/Main/master/bucket/runat.json

To install an app from a manifest on your computer
     scoop install \path\to\app.json

Sorry @anderlli0053, I almost forgot about this, let me fix it.


[Discussion] Code sharing between glab and lab?

I am the maintainer of glab, an opinionated open source GitLab CLI tool.
Though the tool is heavily inspired by gh, we can't deny the fact that some glab commands were adopted from lab.
Most especially, commands related to ci such as ci view and ci trace were heavily inspired by lab, which I initially failed to properly credit lab for. Our readme now mentions lab https://github.com/profclems/glab#what-about-lab.
I created glab because I personally want to use a separate tool that's more opinionated and not wrap git for me. Lab is a great tool and works more like Hub.
I opened this issue to suggest a direct codesharing between lab and glab for commands related to ci so both tools can benefit from a wider set of maintainers.
Aside from that, I'm open to other discussions that will help in driving the future of both tools.

/cc @zaquestion

/cc @zaquestion

This is welcome to remain open, I haven't had a chance to respond but we'll be in touch either way :D

This is welcome to remain open, I haven't had a chance to respond but we'll be in touch either way :D


log missing cur_qbd situation

the following was recently found on elk:
File "/opt/venvs/portal/lib/python3.9/site-packages/portal/models/qb_status.py", line 102, in _sync_timeline
    if cur_index > 0:
TypeError: '>' not supported between instances of 'NoneType' and 'int'

pencil tracing the code, can't think of a logical explanation for the combination of variables that would cause this.  modified code to stop raising exceptions, be more robust and log an error if this happens again with more detail.

Hello @pbugni! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file portal/models/qb_status.py:

Line 99:80: E501 line too long (81 > 79 characters)

In the file portal/trigger_states/empro_messages.py:

Line 117:80: E501 line too long (80 > 79 characters)


[FEAT] Ability to pass order_by column(s)

Right now you return the models ordered by id (or not really ordered didn't get into details of all backends, and without explicit order by the order in db is not guaranteed).
I would like to be able to pass a list of columns that should be used to, note that it should be treated as a default sorting, other functionality or params passed to query can change it later if you decide to support such function.
Given sample:
class Flower(pydantic.BaseModel):
    id: int
    name: str
    color: str
    petals: int
    created_date: datetime.date
    updated_date: datetime.date

I want to be able to by default sort by last updated and then by name:
router = MemoryCRUDRouter(
    schema=User,
    prefix="users",
    exclude_in_list: ["-updated_date", "name"] # to sort descending pass - in front of name
)

This would cause the returned values should be sorted in a proper way.
Optionally this should also support #53 and passing like "flower__garden__name" would order by property name in model Garden related to model Flower.

So for this I think the responsibly of default sorting should lay with the backends implementation of the model. That being said, the next big feature I will be working on are query and sort parameters in for the get_all_route
eg calling /flowers?color=red&sort=name&desc will get only the red flowers and return the sorted by name
In this I will allow you to to set default query parameters which should accomplish what you are asking. Let me know. There is some discussion on this in #37

That is fine to set as query params, easy to change if needed, one remark is that #37 should allow to not only filter but also sort by multiple columns with different direction, especially if models can return nested models you want to order each model by different column, i.e. parent by name asc and related model by sort_order desc or whatever.
But that raises the problem how to pass nested field names to query parameters, dictionary won't go through query params, so you end up with something like django or ormar did and separate them with something (i.e. dunder) and you end up with parent__child__field_name


Replace IllegalStateException with log messages.

When no attributes are returned for the user or
when configured role attribute can not be found,
instead of throwing IllegalStateException, log the
appropriate message and return the (unmodified) profile.
(That's, also, how generateAuthorizationForLdapEntry in
LdapUserGroupsToRolesAuthorizationGenerator handles
similar cases.)
With this change, cas-management shows correctly the
authorizationFailure view instead of throwing

The CAS management webapp is unavailable.

Excellent. Please do the same for master.

Awesome. Thank you for the changes.


Edge: please rebuild for critical musl updates

I've been have some issues with the freshclam command in alpine:edge (older versions run ok). The problems are not reproducible on all hosts. After some trying, I found that an apk upgrade in the container resolves the issue. It updates two packages which could have caused this issues (not sure which):

musl (1.1.20-r0 -> 1.1.20-r2)
~ssl_client (1.28.4-r2 -> 1.29.3-r0)~ (See comment below)

Could you please trigger a rebuild for :edge to include the latest verions? Thanks in advance.
Shell output from inside the container:
[root@venus ~]# docker run -i -t mailu/clamav:master /bin/sh
/ # freshclam
Thu Oct  4 15:47:15 2018 -> ClamAV update process started at Thu Oct  4 15:47:15 2018
Thu Oct  4 15:47:15 2018 -> ^Your ClamAV installation is OUTDATED!
Thu Oct  4 15:47:15 2018 -> ^Local version: 0.100.1 Recommended version: 0.100.2
Thu Oct  4 15:47:15 2018 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Thu Oct  4 15:47:15 2018 -> ^Can't get information about database.clamav.net: System error
Thu Oct  4 15:47:15 2018 -> ^Can't download main.cvd from database.clamav.net
Thu Oct  4 15:47:15 2018 -> Trying again in 5 secs...
Thu Oct  4 15:47:20 2018 -> ClamAV update process started at Thu Oct  4 15:47:20 2018
Thu Oct  4 15:47:20 2018 -> ^Your ClamAV installation is OUTDATED!
Thu Oct  4 15:47:20 2018 -> ^Local version: 0.100.1 Recommended version: 0.100.2
Thu Oct  4 15:47:20 2018 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Thu Oct  4 15:47:20 2018 -> ^Can't get information about database.clamav.net: System error
Thu Oct  4 15:47:20 2018 -> ^Can't download main.cvd from database.clamav.net
Thu Oct  4 15:47:20 2018 -> Trying again in 5 secs...
Thu Oct  4 15:47:25 2018 -> ClamAV update process started at Thu Oct  4 15:47:25 2018
Thu Oct  4 15:47:25 2018 -> ^Your ClamAV installation is OUTDATED!
Thu Oct  4 15:47:25 2018 -> ^Local version: 0.100.1 Recommended version: 0.100.2
Thu Oct  4 15:47:25 2018 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Thu Oct  4 15:47:25 2018 -> !Can't get information about database.clamav.net: System error
Thu Oct  4 15:47:25 2018 -> !Can't download main.cvd from database.clamav.net
Thu Oct  4 15:47:25 2018 -> Giving up on database.clamav.net...
Thu Oct  4 15:47:25 2018 -> Update failed. Your network may be down or none of the mirrors listed in /etc/clamav/freshclam.conf is working. Check https://www.clamav.net/documents/official-mirror-faq for possible reasons.
/ # apk upgrade
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/4) Upgrading musl (1.1.20-r0 -> 1.1.20-r2)
(2/4) Upgrading busybox (1.28.4-r2 -> 1.29.3-r0)
Executing busybox-1.29.3-r0.post-upgrade
(3/4) Upgrading ssl_client (1.28.4-r2 -> 1.29.3-r0)
(4/4) Upgrading musl-utils (1.1.20-r0 -> 1.1.20-r2)
Executing busybox-1.29.3-r0.trigger
OK: 20 MiB in 37 packages
/ # freshclam
Thu Oct  4 15:47:43 2018 -> ClamAV update process started at Thu Oct  4 15:47:43 2018
Thu Oct  4 15:47:43 2018 -> ^Your ClamAV installation is OUTDATED!
Thu Oct  4 15:47:43 2018 -> ^Local version: 0.100.1 Recommended version: 0.100.2
Thu Oct  4 15:47:43 2018 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Thu Oct  4 15:47:52 2018 -> Downloading main.cvd [100%]
Thu Oct  4 15:48:10 2018 -> main.cvd updated (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Thu Oct  4 15:48:14 2018 -> Downloading daily.cvd [100%]
Thu Oct  4 15:48:25 2018 -> daily.cvd updated (version: 25006, sigs: 2109192, f-level: 63, builder: neo)
Thu Oct  4 15:48:30 2018 -> Downloading safebrowsing.cvd [100%]

In our testing suite we've come across more random failures of containers that are based on alpine:edge. Some of them include file locking errors. And clamav most probably had issues with lookups.
Looking at the change-log at alpine master:
* | main/musl: backport fix for getaddrinfo regression | Natanael Copa | 2018-09-20 | 2 | -1/+55
* | main/musl: fix race condition | Kaarle Ritvanen | 2018-09-18 | 4 | -164/+54
* | main/musl: upgrade to 1.1.20 | Natanael Copa | 2018-09-07 | 8 | -567/+3

Given the fact that the latest alpine:edge image on docker hub is 22 days old, it includes the new musl version, but not yet the fixes. Which would perfectly explain the errors we've been seeing.

This was rebuilt just now. Please comment if this didn't resolve the problem.


Implement Basic Flink Support and Write Unit Tests

In addition to Spark I'd like to also be able to use Apache Flink, I have a PR sitting that POCs this possibility. It would work quite similarly to the spark integration (i.e. pass it a FlinkDataSet and a case class/or anything that extends Product with Serializable).

Great! Would love to support Flink. If you send through the PR we'll incorporate it.
We just merged a fairly big change (all the Json serialization parts are now code generated). I don't think it'll change anything in the areas you mention, but mentioning just in case.

Ah great. I'll take a look at the change and try to get a PR to you soon.

Merged.


PyArrow broke the build on ARM platform [Regression]

pip install apache-superset==0.35.1 on Raspbian (Raspberry pi 4, ARM) ends with
ERROR: Could not find a version that satisfies the requirement pyarrow<0.15.0,>=0.14.1 (from apache-superset) (from versions: 0.9.0, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.1)
ERROR: No matching distribution found for pyarrow<0.15.0,>=0.14.1 (from apache-superset)

Version `0.34.1` installed correctly.

Expected results
Apache superset installs correctly.
Actual results
The installation ends with an error.
Screenshots
If applicable, add screenshots to help explain your problem.
How to reproduce the bug

Use system with ARM architecture.
Run pip install apache-superset==0.35.1

Environment
(please complete the following information):

superset version: 0.35.1
python version: 3.7.3
OS: Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux

Checklist
Make sure these boxes are checked before submitting your issue - thank you!

[X] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[X] I have reproduced the issue with at least the latest released version of superset.
[X] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
I tried to installed the latest version of pyarrow (as I saw the recent not released bump to 0.15.1).
This fails with: ERROR: Could not build wheels for pyarrow which use PEP 517 and cannot be installed directly

Thank you for reporting this.
Strange... any idea why it does not consider 0.14.1 has a valid version on RPI?

I guess that you can add tags to the build regarding the supported architecture. Maybe 0.14.1 is missing the proper tag.
However, even other versions fail during the cmake. I have a set of common build tools installed (everything else builds fine) but the 0.15.1 and 0.14.0 fail. So far did not found a solution on PyArrow issue tracker.

This discussion about ARM support for arrow seems to be related:
https://issues.apache.org/jira/browse/ARROW-7042?jql=text ~ "arm"

Have the same error on Wondows. Python 3.6.8, 3.7.5

@igor-tk Windows is not supported by superset since we don't have tests that cover this platform. I've marked #8583 to be included on superset next release. You can keep using 0.34.1. It would be great if you could test #8583 commit tag and report back.

#Anaconda prompt
Step1:Install - "pip install virtualenv"
Step2: Create VM- "py -m venv your_env_name" or "python -m venv your_env_name" or just create environment using conda
Step3:Activate -"your_env_name\Scripts\activate"
Step4:Downlaod- python-geohash wheel with compitable version from the link:https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-geohash
Step5:Install the python-geohash library "pip install python-geohash directory"
step6:anaconda prompt -"pip install superset"
step7:# Create an admin user (you will be prompted to set username, first and last name before setting a password) by typing this "fabmanager create-admin --app superset"
step8: type -

"cd your_env_name/Scripts"
Step8:python superset db upgrade
Step9:python superset load_examples
step10:python superset init
step11:superset run -p 8088 --with-threads --reload --debugger
After installation, you should be able to point your browser to the right hostname:port http://localhost:8088

#Anaconda prompt
Step1:Install - "pip install virtualenv"
Step2: Create VM- "py -m venv your_env_name" or "python -m venv your_env_name" or just create environment using conda
Step3:Activate -"your_env_name\Scripts\activate"
Step4:Downlaod- python-geohash wheel with compitable version from the link:https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-geohash
Step5:Install the python-geohash library "pip install python-geohash directory"
step6:anaconda prompt -"pip install superset"
step7:# Create an admin user (you will be prompted to set username, first and last name before setting a password) by typing this- "fabmanager create-admin --app superset"
step8: type -"cd your_env_name/Scripts"
Step8:python superset db upgrade
Step9:python superset load_examples
step10:python superset init
step11:superset run -p 8088 --with-threads --reload --debugger
After installation, you should be able to point your browser to the right hostname:port http://localhost:8088
Output screenshot

Hello @dpgaspar, thanks for looking into this.
I have tested the #8583 and I get the different error but also related to pyarrow.
Here are the details:

created a fresh virtual environment (Python 3.7.3)
tried to install the merge commit of #8583 - fc12e53ff58e32756bd7fcf5f0013f424b2fc901 by running pip install git+git://github.com/apache/incubator-superset.git@fc12e53ff58e32756bd7fcf5f0013f424b2fc901

It sucessfully downloaded pyarrow==0.15.1. Got error during
Building wheels for collected packages: pyarrow
Building wheel for pyarrow (PEP 517) ... error

Error:
ERROR: Command errored out with exit status 1:
   command: /home/pi/.virtualenvs/superset-arrow/bin/python3 /home/pi/.virtualenvs/superset-arrow/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpz55jr2rb
       cwd: /tmp/pip-install-mfsz8sux/pyarrow
Complete output (428 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.7
  creating build/lib.linux-armv7l-3.7/pyarrow
...
Lots of copy files lines
...
  running build_ext
  creating build/temp.linux-armv7l-3.7
  -- Running cmake for pyarrow
  cmake -DPYTHON_EXECUTABLE=/home/pi/.virtualenvs/superset-arrow/bin/python3  -DPYARROW_BOOST_USE_SHARED=on -DCMAKE_BUILD_TYPE=release /tmp/pip-install-mfsz8sux/pyarrow
  error: command 'cmake' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pyarrow

Seems like pyarrow does not like 32 bit ARM builds.

The PyArrow installation docs "strongly" recommends using a 64-bit system, but it's a bit odd that older versions have worked for you.
Have you tried the --no-binary install option discussed here?
https://discuss.python.org/t/pep-517-and-projects-that-cant-install-via-wheels/791

@robdiciuccio The old version simply worked for me because there was no pyarrow. It was added only in the most recent version. Hence the regression. I am aware of the strong 64 bit recommendation to use 64-bit system.
However, the official rapsbian os for Rapsberry is for now released for 32-bit, with the 64-bit version is under testing.
I have tried the no binary option (pip install pyarrow --no-binary pyarrow) with the same result.

pip install pyarrow also failed to build on Ubuntu Server (19.10, 64-bit) on Raspberry Pi 3b+ with the same error
'cmake' failed with exit status 1
ERROR: Could not build wheels for pyarrow which use PEP 517 and cannot be installed directly

System info:
$ uname -a
Linux ubuntu 5.3.0-1014-raspi2 #16-Ubuntu SMP Tue Nov 26 11:18:23 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux

I got the same error on the beta version of 64-bit Raspbian.
After I installed cmake by sudo apt-get install cmake, I got the same error as mentioned in #8843 ModuleNotFoundError: No module named 'numpy' even though thenumpy is installed.
@jingw222 could you please try to install the cmake and rerun the command to see if the Ubuntu has the same behavior?

@jaksmid thank you for testing #8583, sorry that it did not work.
RPI and ARM are not tested on superset and they are not a "normal" OS to deploy Superset on.
Having said that I found this https://gist.github.com/heavyinfo/04e1326bb9bed9cecb19c2d603c8d521 on ARROW-7042, maybe it works.

@jaksmid Yes exactly. That was not expected since numpy had just been compiled, built and installed in my local env, and I ran it in python without an issue.
  CMake Error at cmake_modules/FindNumPy.cmake:62 (message):
    NumPy import failure:

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

    ModuleNotFoundError: No module named 'numpy'

  Call Stack (most recent call first):
    CMakeLists.txt:189 (find_package)

  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-7728kxma/pyarrow/build/temp.linux-aarch64-3.7/CMakeFiles/CMakeOutput.log".
  See also "/tmp/pip-install-7728kxma/pyarrow/build/temp.linux-aarch64-3.7/CMakeFiles/CMakeError.log".
  error: command 'cmake' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pyarrow
  Running setup.py clean for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow which use PEP 517 and cannot be installed directly

I have the exact same issue on Windows 10 64-bit, Python 3.8 with Arrow 0.16.1 - Requirement already satisfied: pyarrow==0.16.0 in c:\python38\lib\site-packages (0.16.0). When installing apache-superset==0.35.2, it bombs with the exact same error (ModuleNotFoundError: No module named 'numpy'). I understand superset is not supported on Windows so it may be a long shot to expect a solution for this.


Update icon: ProtonMail (darker background color)

URL of the site or app (required): https://protonmail.com
Reason for update (required): They changed their logo color to a darker one
Logo resources for the icon (optional, but recommended):

Current brand color in the icon is still used: https://protonmail.com/media-kit


Upgrade to Angular 13

Upgraded Angular to 13, including outdated dependencies and removed properties.
Untested.

This fucks the build in Angular 13: !icons8/line-awesome/issues/84


Grate Library: is that possible to add label text like color option item  for COLOR ?

Hi @dilippaudyal if you need that feature feel free to send us a design proposal and we will evaluate if that new widget matches with the project structure. Thank you so much!


Too many all day events break the calendar

Hey,
I noticed a Bug that occurs when too many all-day events are added as the following screenshot. As you can see, the all day row just pushes everything out of the calendar without a scrollbar.
I tried fixing it by adding overflow scroll to the all day row, without success.

Same issue +1

@PhilMataz were you able to come up with a solution or provide a PoC for codepen?

Please provide a repro so we can help.
You can reopen if not solved.


Share flow ids between the node process and the setup script

From irc review:

I think it is worth sharing the profile ids between the node process and the bash script somehow https://github.com/phuedx/micro-device-lab/blob/dev/src/profiles.js#L8-L13 so that you don't have to implicitly keep them in sync the ids with the setup script ones.

I think the easiest way would be a script that exports the profiles and ids as environment variables, such script would get called at the beginning of script/setup and in package.json when npm starting:
  "scripts": {
    "start": "./scripts/env && node index.js"
  }

 cd "$(dirname "$0")/.."

+script/env
 script/bootstrap

Not exactly sure about that script/env would set. I know there's bash dictionaries but I'm not sure how those would be read in node with process.env.
Is there an easy way to load a JSON file into a bash script?
Any opinions?

I've found https://github.com/dominictarr/JSON.sh, we could have a json file with the profiles and profile data and read it in bash and do stuff with it.
Another option is converting script/setup to a node script with shebang, and then server and setup script can share a json file for example.

Another option is converting script/setup to a node script with shebang, and then server and setup script can share a json file for example.

That is my preference. Right now, my priority is a functioning UI, with developer happiness (including documentation) and flexibility a close second and third respectively.

Open to PR about this?
On Fri, Jan 22, 2016, 13:10 Sam Smith<EMAIL_ADDRESS>wrote:

Another option is converting script/setup to a node script with shebang,
and then server and setup script can share a json file for example.
That is my preference. Right now, my priority is a functioning UI, with
developer happiness (including documentation) and flexibility a close
second and third respectively.
—
Reply to this email directly or view it on GitHub
https://github.com/phuedx/micro-device-lab/issues/2#issuecomment-173901325
.

Open to PR about this?

Thanks for the offer but I'm hoping to take cues (and take the time to learn) from joakin/stack – React, webpack, and material-ui.

@phuedx Sure! I think I wasn't clear enough, I was asking if you'd be interested in a PR about sharing profiles and IDs in setup and server.

1470435 encodes the network throttling profiles in profiles.json. Converting script/setup to a Node.js script that reads from that file would be neato!

@joakin I didn't know about child_process.execSync Iuntil 24 hours ago.


[Feature Request] Support Gemini API

Support Gemini API  (from Vertex or Makersuite)╰(°▽°)╯

Added in v2.1.0.

Thanks😁👍🏻

@IRedDragonICY please report back any problems you might have, since I couldn't really test it, because I don't have a subscription. Thanks :pray: .

Hello @Blarc,
I have reviewed the new update and noticed that it currently supports only the Vertex format and not the Google AI Studio (Makersuite) format.
There are currently three models:

gemini-1.5-pro
gemini-1.5-flash
gemini-1.0-pro

Here is an example from Google AI Studio: (cURL)
API_KEY="YOUR_API_KEY"

curl \
  -X POST https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro:generateContent?key=${API_KEY} \
  -H 'Content-Type: application/json' \
  -d @<(echo '{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "INSERT_INPUT_HERE"
        }
      ]
    }
  ],
  "generationConfig": {
    "temperature": 1,
    "topK": 64,
    "topP": 0.95,
    "maxOutputTokens": 8192,
    "responseMimeType": "text/plain"
  },
  "safetySettings": [
    {
      "category": "HARM_CATEGORY_HARASSMENT",
      "threshold": "BLOCK_MEDIUM_AND_ABOVE"
    },
    {
      "category": "HARM_CATEGORY_HATE_SPEECH",
      "threshold": "BLOCK_MEDIUM_AND_ABOVE"
    },
    {
      "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
      "threshold": "BLOCK_MEDIUM_AND_ABOVE"
    },
    {
      "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
      "threshold": "BLOCK_MEDIUM_AND_ABOVE"
    }
  ]
}')

For Google AI Studio, we don't require Project ID and Location, only the Model and API key.
Thank you for your attention to this detail.

Hey @IRedDragonICY,
it seems langchain4j does not support this format?

Unfortunately, it seems that Google AI Studio is not supported by langchain4j at this time, with only the Google Vertex format being compatible. As a temporary workaround, you might consider making HTTP requests manually for integration with Google AI Studio.

Unfortunately, it seems that Google AI Studio is not supported by langchain4j at this time, with only the Google Vertex format being compatible. As a temporary workaround, you might consider making HTTP requests manually for integration with Google AI Studio.

I would rather try to open an issue or PR to langchain4j and first add the integration there.

@IRedDragonICY you can use this and stage on vercel on your own, this is what i'm using since the plugin doesn't support yet Gemini.
https://github.com/PublicAffairs/openai-gemini

@IRedDragonICY you can use this and stage on vercel on your own, this is what i'm using since the plugin doesn't support yet Gemini.

@MarJose123, Thanks for the suggestion! I’ve been using a similar solution for now, which is this repository: zhu327/gemini-openai-proxy. It's been working quite well as an interim measure until there's official support in the plugin.

@IRedDragonICY you can use this and stage on vercel on your own, this is what i'm using since the plugin doesn't support yet Gemini.
PublicAffairs/openai-gemini

Thanks a lot for the incredibly easy workaround!
Just wanna add a bit more info for anyone like me who doesn't have much experience with Vercel:

In PublicAffairs/openai-gemini README.md, just click the Deploy button under Deploy with Vercel, and follow all the instructions (login github, clone the repo, deploy the project, etc.). Then you will have a domain like xxxxx.vercel.app
Append v1 to the url and put it in field Host in plugin settings page Edit LLM Client, e.g. Host https://xxxxx.vercel.app/v1, paste your Gemini api key in field Token, and then click Verify and Update


Connection string vs instrumentation key

With instrumentation key being on the deprecation path, should this doc be updated to use connection strings?

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

ID: dff1e826-0fac-07ef-7dc4-af24f045f349
Version Independent ID: eb036a11-6cdb-463f-de2f-2adc4055b737
Content: React plugin for Application Insights JavaScript SDK - Azure Monitor
Content Source: articles/azure-monitor/app/javascript-react-plugin.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @AaronMaxwell
Microsoft Alias: aaronmax

@lmolkova Thank you for your feedback. We will investigate and update the thread further.

@lmolkova, thank you for bringing it to our attention. I am checking this with the content team, and it will be updated as required.

@lmolkova, I have made the required changes in the doc for update with ConnectionString and it should start reflecting after next refresh.
Please let us know if the connection string implementation is not working for you.
Thank you again for bringing it to our attention.


Got redirected back to parachain from libp2p 50% of the time on parachain to libp2p switch

Describe what needs to be done so that I can reproduce this problem myself.

perhaps, this may have something to do with stacks issue

libp2p proxy restart helped

@PaTara43 @vol4tim can we close this issue or you have something to fix?

NO_RESERVATION error is caused by the fact that relay does not have a connection to proxy. Most likely, proxy disconnected from relay for some reason.


Lint suggestion: Prefer use x::y; over use x::prelude::y;

If we don't want to treat "prelude" as a special symbol, then we could generalize it to prefer shorter paths. However, that would be much more complex to solve.

Is there anything particularly wrong with using the import from the prelude? Imo this is more or a style thing that would be better implemented in rustfmt or clippy in general.

@alice-i-cecile I see on Discord that you like this lint. Could you post some motivation?

This is a "stylistic consistency" lint. It's helpful to reduce visual clutter and merge conflicts on imports. I also think that the reverse (prefer prelude) should be included. Clippy has a number of these, see clippy's absolute_paths lint for an analog.

I can definitely see the stylistic reasoning behind this, but I think for now it should be disabled by default.

RA usually auto-imports from the prelude, and I'm not sure if it's possible to disable this. This would make the warnings frequent and annoying.
This should probably be a feature of rustfmt, but I'm cool to implement it here for now.

Yep, fully agree on disabled-by-default: I think that the whole style category should be.


currying the mixin with op

Fixes #743.

You should run make test lint and add dist/ramda.js to your commit.

Update dist/ramda.js with each commit

Checkout https://github.com/ramda/ramda/blob/master/CONTRIBUTING.md

@stoeffel Thanks for your help!

No problem

LGTM

is this good to go?

Yes, I think it is.

@honzabrecka, could you tweak the doctest and resolve the merge conflicts? I'd love to merge this. :)

Done. :)


Silent notifications + parameter for it in config

proposition for this enhancement
I feel like this could be cleaner, but it works! If you want me to rework some part of the code don't hesitate!
This adds the bool parameter silent in the config file (which default to true if not precised).
For registering/unregistering action the notif sound is still always played (as I believe those are more important notifications compared to the "opening link" ones)

Thanks for the link I didn't know it was called like that!
Is it considered boolean blindness even though the parameter name is quite explicit though ("isSilent" in this case) ?
Its maybe not obvious at the first look but just looking at the declaration (a simple mouse hover in most IDE I believe) is enough to not be blind anymore x)


SIG36 while debugging with gdb

Hi,
while debugging with gdb I got this:
Program received signal SIG36, Real-time event 36. [Switching to Thread 0x7ffff18b4700 (LWP 3654)] 0x00007ffff60915b7 in __GI_epoll_pwait (epfd=9, events=0x7ffff18b0970, maxevents=1000, timeout=-1, set=0x7ffff18b4620) at ../sysdeps/unix/sysv/linux/epoll_pwait.c:48 48      ../sysdeps/unix/sysv/linux/epoll_pwait.c: No such file or directory.
It seems like I have a missing source file. Where do I get this file?

In gdb this signal can be suppressed with handle SIG36 noprint nostop, but this isn't the solution to this, is it?

grpc uses a signal internally for some wakeups it needs to do. It's defaulted to SIGRT2 (SIG36 to gdb).
The signal used can be overridden with the grpc_use_signal() API:
/** GRPC Core POSIX library may internally use signals to optimize some work.
   The library uses (SIGRTMIN + 2) signal by default. Use this API to instruct
   the library to use a different signal i.e 'signum' instead.
   Note:
   - To prevent GRPC library from using any signals, pass a 'signum' of -1
   - This API is optional but if called, it MUST be called before grpc_init() */
GRPCAPI void grpc_use_signal(int signum);

Note that disabling it comes with a significant performance penalty.


Proof activation doesn't start.

Environment

Smapp version: 1.3.6
OS: Windows 10 | Ubuntu 20.04

Describe the bug
Proof activation doesn't start.
Steps to reproduce

Just arrive proof activation starting time.
Proof activation doesn't start.
Restart Smapp
Still proof avtivation doesn't start.

Expected behavior
Proof activation starts normally.
Actual behavior
Proof activation doesn't start.

Logs
spacemesh-log-7c8cef2b 2.txt.zip
Extra information
I have previously erased three state-related files and replaced them with a third-party state.sql due to exhaustion of disk space.
Proof activation was not initiated after the replacement either.
And this time it will be the next Proof activation after that.

replace state.sql
leading up to the timing of the first proof activation after the replacement => proof activation was not performed
the next proof activation after that is today.

I have previously erased three state-related files and replaced them with a third-party state.sql due to exhaustion of disk space.
Proof activation was not initiated after the replacement either.
And this time it will be the next Proof activation after that.

replace state.sql
leading up to the timing of the first proof activation after the replacement => proof activation was not performed
the next proof activation after that is today.

Another thing I know is that this problem is occurring on more than one PC.
However, there are some PCs where the state.sql has been replaced, but this time the proof activation is running.
Please pursue the cause from the logs and correct the problem.

To developer team.
Please check and solve?


[Question] Hashes associated with each decoder

Could you post the hashes of the samples you tested each decoder with?  This would be really helpful for the case where:

your decoding logic could be ported to a new language / platform (for instance, made into a ClamAV bytecode signature that decodes the malware at scan time and can allow for signatures to match on the decoded data).  Having the hashes would be useful for testing.
the malware changes slightly in a way that breaks the script.  It's much easier to follow along with a sample that works and look at what's different between the two, as opposed to redoing the analysis.

Thank you!

ya I'll throw some on there this weekend

Fixed by commit 641e73b96f063664a504b571b5beb958f1d1b426 sample_hashes.txt
Just need to add some vidar hashes later


chore(main): release faro-shop 0.42.0

:robot: I have created a release beep boop
0.42.0 (2024-08-22)
Features

Bump app to 0.38.1 (#720) (da66c70)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

faro-shop-0.42.0
:sunflower:


[Cherry-pick] Prepare for the release v0.6.1 (#426)

What this PR does / why we need it:
Cherry-pick docs changes to the release/v0.6 branch.
Release note:
NONE

/assign @kron4eg

/override pull-kubeone-e2e-digitalocean-conformance-1.14.1
/override pull-kubeone-e2e-digitalocean-upgrade-1.13.5-1.14.1


Support for excluding words from generation

Is your feature request related to a problem? Please describe.
I would like to prevent specific words from appearing in the model's generated output (or alternatively, to white list a subset of the vocabulary).
Describe the solution you'd like
HuggingFace's transformer library features a bad_words_id keyword in the model.generate function that accepts a list of words to exclude from its output (some discussion of this feature here).
Describe alternatives you've considered
Could this possibly be achieved with the use of a llama_cpp.LogitsProcessor? I am less familiar with this library and haven't found examples in a similar direction, so am unsure how straightforward this could be to implement using one of those.

You can do this now by streaming the response and excluding words yourself. E.g.:
stream = llm(
    "Don't say any bad words:",
    stream=True,
    echo=True
)
response = ""
for i, token in enumerate(stream):
    choice = token['choices'][0]
    token = choice["text"]
    if token in BAD_WORDS_LIST:
        continue
    response += token

Hi @brandonrobertz thanks for this suggestion!
I've modified my issue to be a bit clearer - basically I'd want to bias or constrain beam search so that the 'bad words' don't appear in subsequences during generation (or alternatively, to only allow specific words during generation), rather than filtering them out from a completed output.

Hi @brandonrobertz thanks for this suggestion!
I've modified my issue to be a bit clearer - basically I'd want to bias or constrain beam search so that the 'bad words' don't appear in subsequences during generation (or alternatively, to only allow specific words during generation), rather than filtering them out from a completed output.

I see. So you want an actual custom token sampler. If that's the case then you'd need to actually add your own in llama.cpp (or modify an existing one). Here's where the top_k sampler is (I suppose you could modify this and use a custom llama.cpp in vendor/llama.cpp):
https://github.com/ggerganov/llama.cpp/blob/948ff137ec37f1ec74c02905917fa0afc9b97514/llama.cpp#L7364-L7387
This library really just wraps llama.cpp and doesn't provide its own samplers and whatnot, AFAICT.

@mgorenstein you can also do this with logit_bias or a custom LogitsProcessor, however this only works on the token level so it's not perfect.

Thanks @abetlen, LogitsProcessor is the approach I ended up taking. Have a partially working solution that I set aside, will report back when it's further along.

bad_word_ids accept ngrams, you could've just tokenized your rejected word list

did you look into using transformers.Constraint?


Rancher DNS should always resolve

In response to #3100 and #2873, can you please consider Rancher DNS always resolving registered services and containers no matter of service and/or container placement? To be clear, if the Rancher DNS service is queried from anywhere, it will always resolve any given service and container FQDN that it has registered records for.
I understand the idea of adding in resolution logic between containers/services that are not linked, however I think that this provides very little benefit vs. the added complexity. This is especially problematic for services external to Rancher.
It would be helpful to understand why this design decision was made. Thanks!

Once we implement https://github.com/rancher/rancher/issues/2817, your requests should be satisfied.
@alena1108 will be adding more details on how it will work in that issue.

that's great, thanks!


Chapter 3.5 Integration Test issues

In chapter 3.5, for the first portion regarding the integration tests, the way the printed book is written the tests don't seem to work. I am seeing the following error from reqwest which seems to indicate the server never booted up.
Failed to execute request: reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: None, path: "/health_check", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })) }
I've looked through this repo at the branches and noticed that there are some large changes to how spawn_app() functions in later sections though seems like this should work based on the book text which states the test should pass and not throw the following error. I saw issue #63  running into a similar issue though doesn't seem like a fix was determined here.
Any guidance on how to get this to work as expected without just moving on? (I'd like to understand where to look even as I am unclear on why there is not a spawned instance available) I've pushed up the code into a branch here.
Thanks in advance for any help provided

Discovered the issue. Was an issue with my host string. Closing this out though leaving a comment here with the resolution


Rhmap 14027

Motivation
Make sure that no collections from similary named environments (dev vs. dev2) are shown in the databrowser.

LGTM. Need to fix the build.

Thanks Wei. Better not use ES6 in fh-db.


It's great! But why not make it autopaly

Why not make the conversation continue, you need to manually click to play the voice. I think I am going to modify the code by myself.

I mean, let GPT reply me directly with voice, ElevenLabs API is very good, but every time I have to click to get the voice, if GPT reply me directly from text to voice, it will have more artificial intelligence feeling, just like the scene in the movie .

I change the onClickCapture to OnLoad in line 273:  <Button variant="subtle" size="sm" compact onLoad={onClick} loading={status === 'init'}> but it didn't  work. How to fix it? I'm not a pro in typescript, sry for that.

This is coming, along with other TTS options.

This is coming, along with other TTS options.

very excited, btw we can remove the input bar, only use voice input, and VAD technology and so on, It is going to be the greatest GPT ever!

This is coming, along with other TTS options.

Thank you for the updated news! Exciting for the next version

Would also love for the speech input to be sent automatically (like siri, alexa etc). Any plans for that? Great job so far!

Please, add this feature, it would be a game-changer! The same with voice recognition - it should automatically send the message after finishing speaking -  the same as in bing chat.

Have anyone made a change and updated this feature yet?

also waiting!

I’m still waiting

This is coming, along with other TTS options.

I'm still waiting

TTS autoplay is now available for self-hosted users and on the new domain.


Wordpiece implementation

Added wordpiece preprocesssor and postprocessor
Added vocabulary.from_t2t_vocabulary for reading t2t-generated vocabularies

(TODOs: See issue #669)

Jo

Arnoste, ackni to :)


Add wait_for_completion to API documentation

Description
Adds wait_for_completion URL parameter to API documentation
Issues Resolved
#1312
Checklist

[x] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Made additional changes that are signed off by the developer


CHAOS-2305: Fixes linux fault inputs formatting

Harness Developer Pull Request
Fixes Linux fault input formatting for network and DNS faults.
What Type of PR is This?

[ ] Issue
[ ] Feature
[x] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


Made some quick changes to different files here and there

This PR changes some quick files here and there as follows:
Change LICENSE.txt to LICENSE.md
Add some more configurable options in the tmft.json
Added. CODEOWNERS file in the .github folder

Closing as we don't take non-scoped, clean-up style PRs.
Please see our contributing guides for suggestions on how to submit a good PR


Is this project still maintained?

Hi,
Is this project still maintained?
Kind regards

Seems not likely, never the less I have incorporated it into my latest website project and it works well.


RKE2 - Unable to upgrade rke2 clusters if click on "Config" button

Rancher version: v2.6-head 878475007 8/5/21
Rancher cluster type: single-node rancher server in docker container
Docker version: 19.03
Downstream cluster type: rke2
Downstream K8s version: v1.21.3-rc2+rke2r2 -> v1.21.3-rc3+rke2r2 upgrade
Note: I had to create my own custom KDM so rc2 was available for testing upgrades. We don't support 1.20 and 1.19 rke2 in Rancher 2.6.0 (at least as of now), so I thought it probably best to use rc2 to start from and rc3 to upgrade to since both work in v2.6-head today. My testing was done with the digital ocean provider.
You can use my KDM link for testing.
Steps:

Provision an RKE2 cluster using the custom KDM. Pick the rc2 older version. This can be a single node cluster.

Once the cluster is ready, from the Cluster Management page, click on the link to navigate to the cluster:

Then, click on the "Config" button at the top right:

Now attempt to click on the "Kubernetes Version" dropdown so you can upgrade from rc2 to rc3. You won't be able to click on this drop down. (This is the bug).

Now, go back to the Cluster Management page, this time instead of navigating to the cluster, click on the function menu (the vertical ...) and click on "Edit Config" from that menu:

This seems to take us to a slightly different version of this edit cluster page.

Now, you can access the "Kubernetes Version" drop down and are able to upgrade to rc3.

Additional information:
I didn't spot anything useful in rancher server logs or in the web browser dev console.
This issue does not affect RKE1 clusters.

This isn't an immediate blocker, just a release blocker IMO for 2.6.0 since there is a workaround as described in the issue.

This is working as intended, the config page is read only.

@deniseschannon why is the Config page read only? That makes no sense to me.

@davidnuzik These are the view pages of a resource where you can click on a cluster (the resource) and you can view the resource by either the Detail, Config or Yaml. You aren't editing it cause you didn't select to edit it, but you are just viewing it.
Like other areas in Rancher, you need to actively choose to start editing resources. We've never allowed anyone to immediately start editing without consciously selecting to edit it.
So this is expected behavior.

@deniseschannon That makes sense but the way it looks in the UI is like a carbon copy of the editing screen. We should change the styling to make it more clear this is read only. Maybe mention at the top to go to cluster manager to edit the config (and link). There is a "No" cursor on some parts of some fields/elements but it doesn't work correctly everywhere making it seem like it's editable. The fields are not "grayed out" or anything at least on dark mode. I'll file a separate ticket to request that. I'd argue that sure this is expected but the way it appears is not as expected.

Also note RKE1 doesn't have this behavior, if you click the Config button for an rke1 cluster it lets you edit it. This is different behavior for the same button...

Closing this issue in favor of https://github.com/rancher/dashboard/issues/3698


Updated the gm.toml file

Description

Update "PATH-TO-HERMES-BINARY" in gm.toml for clarity
In reference to the issue in gm repo (https://github.com/informalsystems/gm/issues/2)

PR author checklist:

[x] Added changelog entry, using unclog.
[ ] Added tests: integration (for Hermes) or unit/mock tests (for modules).
[ ] Linked to GitHub issue.
[ ] Updated code comments and documentation (e.g., docs/).
[x] Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

Thanks Harveen, Sean for the quick turnaround!
There is a way to make gm more resilient, but we can leave that for later. What I had in mind is to change the logic in lib-gm so that command gm hermes keys does not fail silently upon misconfigured binary path, but finding the right place to fix in lib-gm seems tricky, will keep it in mind for a later time.

Ah, I had this long-winded description on we can do this properly and then the GitHub page timed out on me...
In short:

If we change the example config.toml, we should also change the configuration default in the code.
Hermes binary is not checked "early" in the code because it could fail the code when something completely unrelated (like a gm init) is happening. Having a valid hermes binary should not be a requirement to initialize, start, stop, configure networks.
Checking hermes execution each time for errors seems overkill (and not readable). Maybe we should check each "first execution" of a hermes command in the hermes_* functions. That would gives a decent way to get out if there's no hermes binary without killing execution for unrelated commands.


Cannot find the code from Opera

Thanks for your contribution of the SSOD! You have mentioned that the algorithm has been implemented by Opera, but I cannot find the implementation in the Opera. When will you release the code?

Code is ready in the private version of Opera. It will be released after going through the examination of our company.


Add to Calendar Goggle Calendar 400 response

Description
Extension overrides the URL to Google Calendar from Add to Calendar button, which results in google calendar returning a 400. https://www.addevent.com/help/article/139/getting-400-error-when-trying-to-add-to-a-google-calendar
Steps to Reproduce

With this extension installed and active, using either of the browsers, go to https://www.addevent.com/add-to-calendar-button
Scroll down to the Example section, click on the Add to Calendar buttob
Click on Google from the dropdown

Expected behavior:
Taken to Google Calendar with details of the calendar event showing
Actual behavior:
400 response from Google
Versions
DDG 2021.6.2 in Chrome, which is my default browser.

Thanks for the report. I was able to reproduce the issue and traced the cause down to our 3rd party cookie blocking being a little too aggressive. We'll get out a fix for this ASAP.


Update index.js

To replace all the @filePath@ if multiple is exists

Hey, thanks for the PR! I've merged this and published it as 1.0.2.


Is this the best the community and PowerShell team member can do!?

OS

[ ] Windows
[ ] macOS
[ ] Linux
[X] Not specific to an OS

New feature description
https://github.com/Textualize/rich
This is what the PowerShell community wants!
Guessing we won't get it from the PowerShell team.
Hasn't been any real innovation out of the PowerShell team in years.
#sad

PowerShellRun is a terminal based launcher and fuzzy finder, not a module for text formatting. It is out of the scope of this module.
However, I'm a bit curious which feature in the Rich interested you the most.

I'd have pointed you towards https://github.com/ShaunLawrie/PwshSpectreConsole, but it seems like you're already listed as a contributor there, which implies that you know about this already.
Also a bit curious about what exactly you had in mind here, @dfinke


Command CompileSwiftSources failed with a nonzero exit code

Describe the bug
An error upon runtime of "Command CompileSwiftSources failed with a nonzero exit code"
To Reproduce
Steps to reproduce the behavior:

Upgrade from Capacitor 2 to Capacitor 3
uninstall & reinstall the plugin
"npm uninstall @capacitor-community/sqlite && npm install @capacitor-community/sqlite"
Import into the file where used: import { SplashScreen } from "@capacitor/splash-screen";
Run in XCode

Expected behavior
No error upon runtime

@michaelbutler1998 Can you share your package.json file. after the step 2 did you remove the ios folder from your app if not do it and after do
npm run build
npx cap add ios
npx cap sync
npm run build
npx cap copy
npx cap open ios
```
and build your app
look at the [angular-sqlite-app-starter](https://github.com/jepiqueau/angular-sqlite-app-starter) to see all other changes you have to make in your code as since v2.9.16 quite changes and enhancements occur.

@jepiqueau, thanks for taking the time to assist me here.
Just tried the advice, no luck. See below my package.json:
{   "name": "cardTwister",   "version": "0.1.0",   "private": true,   "scripts": {     "serve": "vue-cli-service serve",     "build": "vue-cli-service build",     "lint": "vue-cli-service lint"   },   "dependencies": {     "@capacitor-community/admob": "^1.2.2",     "@capacitor-community/firebase-analytics": "^0.3.3",     "@capacitor-community/sqlite": "^2.9.13",     "@capacitor/android": "^2.5.0",     "@capacitor/cli": "^3.4.1",     "@capacitor/core": "^3.4.1",     "@capacitor/ios": "^3.4.1",     "@ionic-native/core": "^5.23.0",     "@ionic-native/google-analytics": "^4.20.0",     "@ionic-native/in-app-purchase": "^5.24.0",     "@ionic-native/in-app-purchase-2": "^5.36.0",     "@ionic-native/keyboard": "^5.35.0",     "@ionic-native/launch-review": "^5.24.0",     "@ionic-native/onesignal": "^5.23.0",     "@ionic-native/screen-orientation": "^5.19.1",     "@ionic/core": "^4.11.7",     "@ionic/vue": "0.0.9",     "@sentry/browser": "^5.15.5",     "@sentry/integrations": "^5.15.5",     "apollo-boost": "^0.4.9",     "capacitor-keep-screen-on": "^1.0.0-alpha.6",     "cordova-launch-review": "^4.0.0",     "cordova-plugin-device": "^2.0.3",     "cordova-plugin-ionic-keyboard": "^2.2.0",     "cordova-plugin-purchase": "^10.6.1",     "cordova-plugin-screen-orientation": "^3.0.2",     "core-js": "^3.4.4",     "es6-promise-plugin": "^4.2.2",     "graphql": "^15.5.0",     "jetifier": "^1.6.6",     "onesignal-cordova-plugin": "^2.11.1",     "rxjs": "^7.5.4",     "vue": "^2.6.10",     "vue-apollo": "^3.0.7",     "vue-router": "^3.1.3",     "vue2-touch-events": "^3.2.2",     "vuex": "^3.1.2"   },   "devDependencies": {     "@vue/cli-plugin-babel": "^4.1.0",     "@vue/cli-service": "^4.1.0",     "node-sass": "^4.13.1",     "node-sass-magic-importer": "^5.3.2",     "sass-loader": "^8.0.2",     "vue-sqlite-hook": "^2.0.0-alpha.1",     "vue-template-compiler": "^2.6.10"   },   "eslintConfig": {     "root": true,     "env": {       "node": true     },     "extends": [       "plugin:vue/essential",       "eslint:recommended"     ],     "rules": {},     "parserOptions": {       "parser": "babel-eslint"     }   },   "browserslist": [     "> 1%",     "last 2 versions"   ] }

@michaelbutler1998 it seems that you upgrade to capacitor 3 but did not upgrade @capacitor-community/sqlite you must install 3.4.0-1 and vue-sqlite-hook. Now you are still using vue 2 series and a  old @ionic/vue. this is to far away of what i am using so i cannot really help My advice will be to revamp your complete app by using all  the latest releases or keep on using the capacitor 2. There is no way that i can help here. i have some vue app starters using vue 3 on https:/github.com which can help you starting

@michaelbutler1998 any news?

Hey @jepiqueau, apologies for the delayed response, Monday - Friday I have another full-time job and with this project, I have two large changes (one of them being this) that I'm working on simultaneously so have not had a chance to dive back into this one as of yet.
Please leave the thread open, I want to contribute and help others when I solve this issue so would like to be able to return to it and will provide feedback having tested the above suggestion as soon as possible

Thank you @jepiqueau, your demo repos were incredibly useful.
To resolve the error, I did the following:

removed all offending apps (this was not the only only displaying this issue) with npm unintall @...
upgraded capacitor from 2.0 to 3.0 from scratch to check no steps were missed
Reinstalled the apps one at a time, changing the imports from the capacitor 2 method to capacitor 3 method
I.e. import { CapacitorSQLite, SQLiteConnection } from '@capacitor-community/sqlite';

Cleared cache in xCode by pressing CMD+Shift+K
Ran the project and the issue did not reoccur.
Thanks again

@michaelbutler1998 happy that you solve it.


Don’t clean directories symlinked in target/

steps
sbt.version=1.3.0

Any build.sbt.
Steps:
mkdir ~/sbt-test/
echo test > ~/sbt-test/file.txt
cd /some/sbt/project/
mkdir target/
ln -s ~/sbt-test/ target/

sbt clean

problem
If you do the above ↑, then file.txt is gone from the system. Data loss. This is absurd.
expectation
Remove just the target/sbt-test symlink, and not files inside its target.
notes
Imagine if rm -r did that…

The intent of clean task is to remove the contents under target. This is in part because IDEs gets confused when the target/classes directories go away. If you don't want that to happen, then I don't think clean is the right task for your use case. And people use symlink with target as well, but to avoid the directory from being backed up etc.
In the above setup, do you expect sbt to generate *.class files etc under ~/sbt-test/ as well on compile?

Relevant part of the code is likely - https://github.com/sbt/sbt/blob/70111bb6892e333f5427c4146797f39f904ac28d/main/src/main/scala/sbt/internal/Clean.scala#L33-L51

#5855 should fix this

If you do the above ↑, then file.txt is gone from the system. Data loss. This is absurd.

I'm sorry that you experienced data loss. sbt is run by volunteers who are doing their best. When reimplementing clean a while back, I tried to be as careful as possible with clean to ensure that we didn't delete files outside of the target directory. Normally the target directory is reserved for files that are created as output of sbt tasks and I unfortunately didn't think of the use case of a user symlinking a directory. I absolutely agree that if this behavior had been present by design then it would have been absurd but it was just an unfortunate oversight.

@eed3si9n @eatkins great, thanks so much for a quick reaction and a fix! :green_heart:
I’m sorry that my report was too rough, the data has been reconstructed (thankfully not by humans :stuck_out_tongue:), it took several hours.

Water under the bridge. I'm glad that you were able to restore the lost data.


add flag for decompression error,  rather than hard assert failure

Description: Add flag for decompression failure rather than hard assert failure. This is a patch that Pinterest has been running for several months now.
Risk Level: Low
Testing: Unit tests
Docs Changes: None
Release Notes: decompressor: Remove decompressor hard assert failure and replace with an error flag that can be checked.

unrelated problem with Windows CI:
CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

(apologies for the force push, we had a DCO hiccup)

Still seeing unrelated windows failure
CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

@anikamukherji lizan is working on fixing that here: https://github.com/envoyproxy/envoy/pull/9305 it's not just your PR; once it's fixed you can merge master.

feel free to ignore windows CI they aren't required anyway.


R_MIPS_26 relocation bug

R_MIPS_26 relocations are handled incorrectly when addend is not 0. The root cause is an operator precedence issue in  MIPS_ElfRelocationHandler.java:
value = (int) ((addend | ((offset + 4) & (0xfc000000 << shift)) + symbolValue) >> shift);
As "|" has lower precedence than "+", this ends up binary-oring the symbolvalue with addend, leading to interesting but almost never correct results if addend is not 0.
Also it seems to me the or-ing in of the current PC upper 6 bits into the result is undone later on by masking with MIPS_ElfRelocationConstants.MIPS_LOW26 anyway, so it can be removed from the value calculation.
I will submit a pull request fixing the issue.

Does the following simplified logic appear correct?  Not sure why it was so convoluted.
case MIPS_ElfRelocationConstants.R_MIPS_26:
case MIPS_ElfRelocationConstants.R_MIPS16_26:
case MIPS_ElfRelocationConstants.R_MICROMIPS_26_S1:
		int shift = (relocType == MIPS_ElfRelocationConstants.R_MICROMIPS_26_S1) ? 1 : 2;
		if (mipsRelocationContext.extractAddend()) {
			addend = oldValue;
		}
		if (!elfSymbol.isSection()) {
			addend = signExtend((int) addend, 26 + shift);
		}
		// TODO: cross-mode jump detection/handling is unsupported
		value = (int) (addend + symbolValue) >> shift;
		newValue = (oldValue & ~MIPS_ElfRelocationConstants.MIPS_LOW26) |
			(value & MIPS_ElfRelocationConstants.MIPS_LOW26);
		writeNewValue = true;
		break;

I could not find the basis for the local symbol handling as it was, although I did find different treatment of section symbols.

There is a shift for addend missing, otherwise this seems pretty much what binutils/bfd does. With the missing shift, the code becomes
        case MIPS_ElfRelocationConstants.R_MIPS_26:
        case MIPS_ElfRelocationConstants.R_MIPS16_26:
        case MIPS_ElfRelocationConstants.R_MICROMIPS_26_S1:
                int shift = (relocType == MIPS_ElfRelocationConstants.R_MICROMIPS_26_S1) ? 1 : 2;
                if (mipsRelocationContext.extractAddend()) {
                        addend = (oldValue & MIPS_ElfRelocationConstants.MIPS_LOW26) << shift;
                }
                if (!elfSymbol.isSection()) {
                        addend = signExtend((int) addend, 26 + shift);
                }
                // TODO: cross-mode jump detection/handling is unsupported
                value = (int) (addend + symbolValue) >> shift;
                newValue = (oldValue & ~MIPS_ElfRelocationConstants.MIPS_LOW26) |
                        (value & MIPS_ElfRelocationConstants.MIPS_LOW26);
                writeNewValue = true;
                break;

The original code appears to have been lifted from this MIPS ABI document. The calculation is shown there complete with operator precedence error.
That document is probably also the reason for the different treatment for local symbols in the original code, it says the calculation without sign extension applies to "a symbol referenced by the
symbol table index in the relocation entry STB_LOCAL/STT_SECTION".
I found an entry in the binutils Changelog-2016 that says "R_MIPS_26.... treat the addend as signed with local non-section symbols", but binutils only checks if the symbol is a section symbol as far as I can see.

Good catch on the missing addend shift.
With the ABI specified local relocation expression "(((A << 2) |  (P & 0xf0000000) + S) >> 2" it would seem the relocation offset 'P' has no affect on the final 26-bit value produced.  Not sure why 'P' is used in the expression.
To be safe I included check for both local or section based relocation which seems consistent with the ABI spec (

local refers to a symbol referenced by the
symbol table index in the relocation entry STB_LOCAL/STT_SECTION

).  Could you try with your binary and let me know if you think it is OK.  Thanks.
case MIPS_ElfRelocationConstants.R_MIPS_26:
case MIPS_ElfRelocationConstants.R_MIPS16_26:
case MIPS_ElfRelocationConstants.R_MICROMIPS_26_S1:
	int shift = (relocType == MIPS_ElfRelocationConstants.R_MICROMIPS_26_S1) ? 1 : 2;
	if (mipsRelocationContext.extractAddend()) {
		addend = (oldValue & MIPS_ElfRelocationConstants.MIPS_LOW26) << shift;
	}
	if (!elfSymbol.isLocal() && !elfSymbol.isSection()) {
		addend = signExtend((int) addend, 26 + shift);
	}
	// TODO: cross-mode jump detection/handling is unsupported
	value = (int) (addend + symbolValue) >> shift;
	newValue = (oldValue & ~MIPS_ElfRelocationConstants.MIPS_LOW26) |
		(value & MIPS_ElfRelocationConstants.MIPS_LOW26);
	writeNewValue = true;
	break;

I'm thinking the condition should be
    if (!(elfSymbol.isLocal() && elfSymbol.isSection()))

ie do the sign extension thing unless the symbol is both local and a section symbol. That would also fit better with the binutils comment "treat the addend as signed with local non-section symbols"

Otherwise the code works fine. If I find some time I will try to hunt down when exactly gas emits a negative addend for non-section local symbols and see if I can come up with a test case.

A section symbol is a special symbol (one per section) and is distinct from an arbitrary named symbol being local.  Most local symbols are not a section symbol.


Simple GUI Calculator in Python

Tkinter Calculator
A simple GUI calculator in python using the tkinter library
Instructions

Create a new folder for your script and file/folder name should be appropriate.

Create a README.md (using this template) in your folder for program Instructions

add requirements.txt if needed

[x] Python

Please assign me this issue

Please assign the task

@visheshdvivedi can i work on this issue?

@WaniAthar I have already created the code for this project and am ready to create a PR as soon as this issue is assigned to me.
You can view the updated code here.

!assign me

Please assign me this issue

!assign me

Hey @visheshdvivedi it's already added in repo #615


Mobile chrome messed, mobile Firefox is fine

Describe the bug
Dockstore looks fine on Firefox mobile (android) but looks pretty messed up on chrome mobile
Don't expect folks to add workflows on mobile, but do expect them to browse tools and organizations on mobile. i.e. do not worry about pages only accessible by logging in, prioritize fixing pages that are visible publicly

Firefox

We also just got a Google search console alert for two pages with content wider than screen. These may be worth splitting up into a separate ticket, but attaching to this ticket for now.

https://dockstore.org/organizations/HCA
https://docs.dockstore.org/en/stable/advanced-topics/best-practices/cwl-best-practices.html


Make rust gradle android plugin work

Fixed by not using it at all and using cargo-ndk with kbdgen.


function to query page size

PR Description
Exposes a function to get GC page size. Requested here.
Example usage:
julia> @ccall jl_get_pg_size()::UInt64
0x0000000000004000

Checklist
Requirements for merging:

[ ] I have opened an issue or PR upstream on JuliaLang/julia: NIL
[ ] I have removed the port-to-* labels that don't apply.
[ ] I have opened a PR on raicode to test these changes: NIL

Just noted that we should probably upstream this. Will open another PR in JuliaLang.


[Bug]: No  game is showing

Give a brief about the bug ✍
Description whille  visiting website no game is showing on page
please assign this task to me under Gssoc24
take a look

No response
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

@kunjgit can you please assign to me!!

Hello @pandeyji711, Time's up!⏰
Sorry for closing your issue!
But it's more than a week since we haven't received anything from your side 😢 .
Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥
All the best! 🚀
Happy Hacking! 💗

Hey @pandeyji711 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


issues with heightOfString

Using 0.13.0, the heightOfString seems to calculate a much higher value than the string provided.  I'm creating multi-page PDF files which are required to wrap long paragraph's and the heightOfString option just doesn't work.
The longer the text, the longer the extra space provided even when no paragraphs are given in the text block.
I whipped up a piece of code from the API as an example.
`
let p1 = 'So feel been kept be at gate. Be september it extensive oh concluded of certainty. In read most gate at body held it ever no. Talking justice welcome message inquiry in started of am me. Led own hearted highest visited lasting sir through compass his. Guest tiled he quick by so these trees am. It announcing alteration at surrounded comparison.'
let p2 = Improved own provided blessing may peculiar domestic.  No visited raising gravity outward subject my cottage mr be. Hold do at tore in park feet near my case. Invitation at understood occasional sentiments insipidity inhabiting in. Off melancholy alteration principles old. Is do speedily kindness properly oh. Respect article painted cottage he is offices parlors. She literature discovered increasing how diminution understood. Though and highly the enough county for man. Of it up he still court alone widow seems. Suspected he remainder rapturous my sweetness. All vanity regard sudden nor simple can. World mrs and vexed china since after often. Offices parties lasting outward nothing age few resolve. Impression to discretion understood to we interested he excellence. Him remarkably use projection collecting. Going about eat forty world has round miles. Attention affection at my preferred offending shameless me if agreeable. Life lain held calm and true neat she. Much feet each so went no from. Truth began maids linen an mr to after.
let p3 = Improved own provided blessing may peculiar domestic.  No visited raising gravity outward subject my cottage mr be. Hold do at tore in park feet near my case. Invitation at understood occasional sentiments insipidity inhabiting in. Off melancholy alteration principles old. Is do speedily kindness properly oh. Respect article painted cottage he is offices parlors. She literature discovered increasing how diminution understood. Though and highly the enough county for man. Of it up he still court alone widow seems. Suspected he remainder rapturous my sweetness. All vanity regard sudden nor simple can. World mrs and vexed china since after often. Offices parties lasting outward nothing age few resolve. Impression to discretion understood to we interested he excellence. Him remarkably use projection collecting. Going about eat forty world has round miles. Attention affection at my preferred offending shameless me if agreeable. Life lain held calm and true neat she. Much feet each so went no from. Truth began maids linen an mr to after. Improved own provided blessing may peculiar domestic.  No visited raising gravity outward subject my cottage mr be. Hold do at tore in park feet near my case. Invitation at understood occasional sentiments insipidity inhabiting in. Off melancholy alteration principles old. Is do speedily kindness properly oh. Respect article painted cottage he is offices parlors. She literature discovered increasing how diminution understood. Though and highly the enough county for man. Of it up he still court alone widow seems. Suspected he remainder rapturous my sweetness. All vanity regard sudden nor simple can. World mrs and vexed china since after often. Offices parties lasting outward nothing age few resolve. Impression to discretion understood to we interested he excellence. Him remarkably use projection collecting. Going about eat forty world has round miles. Attention affection at my preferred offending shameless me if agreeable. Life lain held calm and true neat she. Much feet each so went no from. Truth began maids linen an mr to after.
let p1h = doc.heightOfString(p1, { width: 500, paragraphGap : 0 })
let p2h = doc.heightOfString(p2, { width: 500, paragraphGap : 0 })
let p3h = doc.heightOfString(p3, { width: 500, paragraphGap : 0 })

doc.addPage({ margin: 15, layout: 'portrait' })
globalX = 20
globalY = 10
doc.fontSize(10).font('Caption').fillColor('blue').text(p1, globalX, globalY, { width: 500, height: p1h })
doc.moveTo(10, globalY).lineTo(10, globalY + p1h).strokeColor('red').lineWidth(1).stroke()
globalY += p1h
doc.fontSize(10).font('Caption').fillColor('blue').text(p2, globalX, globalY, { width: 500, height: p2h })
doc.moveTo(10, globalY).lineTo(10, globalY + p2h).strokeColor('green').lineWidth(1).stroke()
globalY += p2h
doc.fontSize(10).font('Caption').fillColor('black').text(p3, globalX, globalY, { width: 500, height: p3h })
doc.moveTo(10, globalY).lineTo(10, globalY + p3h).strokeColor('orange').lineWidth(1).stroke()

doc.pipe(res)
doc.end()
return res.status(200).writeHead(200, { 'Content-Type': 'application/pdf', 'Content-disposition': 'attachment;filename=export.pdf' })

`
Each text block is drawn with a line next to it showing what heightOfString calculated as the blocks height.  The longer the text block, the more "extra space" the method seems to think it takes.
This is the output - there is no way to use the height of the string returned to properly position relative paragraphs with all of the extra space added.

I think I see it now, the heightOfString has to calculate the height based on font/size which need to be specified prior to calling the method which makes sense.  Setting the height and the preferred font size and setting the lineGap to 0 provides for a more accurate height measurement of the text block.