Fix index bug

Hey relffok,
thank you for creating (and publishing) a ROS2 version of this node!
While integrating I had a few problems with alternating data on a very slow scan topics (~2Hz). I always got one cloud per topic not a combined one for two topics. After trying some different parameters it only worked with some unexpectedly high time margins. While trying to understand why these are needed i found that the CloudPile at index 0 was never used. After checking for >= 0 i got it to work within the expected parameter values.
Maybe this can help you or others when using this node. If the check was intentionally just delete this request.
Greetings,
p0rys

Can you explain in detailed ???
Thank you so much !!!

Sure! In Line 270 we request the index (or better: count) of clouds in the pile (within time constrains) matching the incoming topic (e.g. /scan_1). Then we check if the count is greater 1 which would lead to adding the new cloud to the pile otherwise we would create a new pile.
The problem is that the function "get_matching_pile" will return 0 if it has 1 cloud. That means the "adding to pile" part is only used when the pile has 2 or more (index 1 or higher) clouds (if ( pile_index > 0)) within the "max_merge_time_diff_sec"-parameter.
Because my scan topics are really slow (~2hz) and i have set the max_merge_time to 1sec it would never reach more then 2 clouds in one pile and there are never merged. I fixed the problem with checking for greater EQUAL 0 so that the function would also add the second cloud to the pile with the first one.

thanks you so much. It worked for me in my project !!!

@relffok I have the same question as @HusamZain here. I went through the code, there is a particular parameter called laser_scan_topics that has been declared, but parameter type is std::string, that means only 1 topic name can be declared. Shouldn't that parameter be of the type std::vectorstd::string ?
Any comments are welcome.

@HusamZain @akshay-30 This thread is meant to discuss and possibly adjust the pull request and not for configuration help. Please make sure to post your questions as an issue or on answers.ros.org next time.
For now: To merge multiple topics you can do it as in the launch file "laserscan_multi_merger.launch" by just passing the topics as one large string seperated by spaces. The lines 174 to 177 within the laserscan_multi_merger.cpp will parse them accordingly (so no need for a std::vector<std::string>-parameter). Also make sure to set the "destination_frame" and "scan_destination_topic" params to your needs.
https://github.com/relffok/ira_laser_tools/blob/a6bfd0e1114746b70e7314366e808e709b61bb93/src/ira_laser_tools/src/laserscan_multi_merger.cpp#L174-L177
If your laser scanner are publishing correctly this should work. If not, please check if there is maybe a time difference between the scan messages that should be merged. Alternatively you could try to adjust the parameter that validate if two scans could be merged ("best_effort", "allow_scan_delay", "max_delay_scan_time", "max_merge_time_diff").

@p0rys noted, thanks for addressing my query.

Hi there. I'm really sorry for my delayed answer @p0rys. I seemed to  have missed the notification when you opened this PR. Seems logically fine to me looking at it now, though I haven't worked on this repo in quite a while and I will have to have a second look to double check. Thanks for the input!
As of the other discussion/questions that came up here: I am a little surprised, as many people seemed to have found this repo. I started it as a port from ira_laser_tools but ended up using very different methods from the original version. Once I have more time on my hands, I'd move it to a separate repo with hopefully some cleaner code & docs.


Division by zero in barycentricCoordinates.js

https://github.com/CesiumGS/cesium/blob/ec320dd43f56219036625c8d7a4d7fded9b1dc5a/Source/Core/barycentricCoordinates.js#L101
https://github.com/CesiumGS/cesium/blob/ec320dd43f56219036625c8d7a4d7fded9b1dc5a/Source/Core/barycentricCoordinates.js#L104

There's a PR open to fix this: https://github.com/CesiumGS/cesium/pull/9175

https://github.com/CesiumGS/cesium/pull/9175 has been merged


Remove reliance on camel case

Builds on top of https://github.com/idom-team/flake8-idom-hooks/pull/9 with minor improvements

Using regex to get that idom.component.component case seems a bit overkill imo. I'm okay with it though.
👎 to force pushing a remote branch though 🥺

did i do that again? this is a new PR

Yep

Ohhh I see it is a new PR. Didn't pay attention to that while reading on mobile.


WatchOS support

Why is WatchOS not supported? Are there any limitations on WatchOS that prevent us from using web sockets on the Apple Watch?

AFAIK, WatchOS can't be supported because the watch does not allow for persistent network connections.
It seems that custom socket connections are not allowed on the device. I ran across this discussion months ago, which applies to Watch OS 2
https://forums.developer.apple.com/thread/19399
SwiftWebSocket uses NSStream to establish a connection. Using NSStream is prohibited on the device but not in the simulator.
As I understand it the only way to communicate messages between the Watch and iPhone is with WSSession, and without the phone there is no guaranteed way for the Watch to have a persistent connection to a network.
I currently suspect the problem is specifically in the CFStreamCreatePairWithSocketToHost() call, which is not documented as being NOT supported on WatchOS.
https://forums.developer.apple.com/thread/5939
http://stackoverflow.com/questions/33367222/socket-connection-from-watchos-2-and-cfstream
From the first link above, an Apple rep says:
"You have a couple of options here:

reformulate your networking in terms of NSURLSession
if that’s not possible (say, you’re talking to a server that requires a custom TCP-based protocol), do that work on the iPhone"

The NSURLSession is not an option with WebSockets, and doing work on the iPhone defeats the purpose of having a standalone Watch app with persistent connection.
WebSockets are only HTTP for the initial handshake, after that they go into a raw byte stream mode. I'm suspect that Apple only allows HTTP through NSURL related calls (which cannot be used for WebSockets), and that these calls are simple wrappers around and underlying Wi-Fi or Bluetooth connection. But it's left as a blackbox to the developer.
I hope this information is helpful and I'd love to be wrong about this. If you know a solution please advise.


Version control discussion is out of date

... and it is broken for use in the cloud.
Need to fix paths and make the examples generic. None of the examples will work well in the nbgitpuller environment

This needs more thought if used in the nbgitpuller context so I have pulled out what is not needed in the most recent PR #10


Refine snow on top of slabs

Currently make a full stack sticking out weirdly, should probably be half a stack
Also has rendering issues with groundcover next to it

Fixed invisible sides. Still renders too dark, and could use other tweaks.

Yeah my idea was to make it only able to grow half the size or 1 taller and let the rest of the snow count it correctly from is visual size (slab+ snow layers)


Moving from HTTP to HTTPS works, yet there are no assets being returned.

Moving from HTTP to HTTPS works with the API, yet there are no assets being returned. The API and admin seem to work just fine.
The full APP_URL = https://shop.xxx.xxx
No styles, JS or images are loaded from the default demo store. They work just fine on HTTP.

Also, when the API gives us the product images supplied by Shopware.

Let me know if this is the proper place for such a question, or if I should raise it directly with Shopware support.
Thanks for all your help!

./bin/console theme:compile

But shouldn't this just be done with the container?
The product images don't have much to do with the theme. Also, this doesn't explain why it works perfectly with http and not https. Nothing else is changed. Very strange.

Really, this was my bad all of the way. I am just not used to this number of volumes for a container. Generally, I would expect a single one. Hopefully `Shopify will have cloud integration for basic stuff like blob storage.
Thanks for the help.
I mounted all of the volumes and everything is fine.
Both problems were 1) the theme getting "compiled" and 2) uploads were being saved into the container.
It might be nice to have in the list of volumes if they are optional or not. Some don't appear needed.

I built this image very modular. In Kubernetes or Docker self you can use the same volume multiple times.
As an example for Kubernetes:
/config/jwt => Kubernetes Secret mounted as file
/state, /custom/plugins => A volume
Anything else can be configured by Shopware to write into a Storage like S3
https://docs.shopware.com/en/shopware-platform-dev-en/how-to/use-s3-datastorage


Docs:  of HandBook>Eveyday Types is outside the parent element's area

Page URL:
https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#interfaces
Issue:
It is occurs when the browser is less than approximately 1390px.
The table does not scroll to the x-axis, and the user cannot see the overflow area.
Recommended Fix:
I think we can fix it by adding the css code below.
.markdown table.full-width-table {
  ...
  table-layout: fixed;
}

Please refer to the additional captured image.
Now

If you add the above code

P.S. There may be awkwardness in expression because I am not good at English. Please excuse me, thanks..!

Ah... Do I chose the wrong type of issue?..😳

No, this is a great issue report - I think you might be right with the CSS change, want to make a PR with it?

@orta  Thank you for saying that and answering. I opened the PR. Please consider it. :)

Hello, it is still not fixed

@nerdchanii  Hello, it is still not fixed

@prathu9 I solved this in #2410. It was approved but seems to have to wait for the test.

Hello there!
There is a problem with this whole .full-width-table class. Because of display: table; rule in .full-width-table class, <table> rules are not applied, and it turns off horizontal scrolling for tables on mobile devices and zoomed pages.  Right now, it is completely impossible to reach the content of the table.
Screenshot:

It seems like this PR doesn't completely solve the problem. It won't look good on mobiles from the UI perspective:

A possible solution is to remove the .full-width-table class completely. For desktops, display: table; makes it full width, which improve visible quality of the content insignificantly.
Screenshot with .full-width-table class:

Screenshot without .full-width-table class:

It seems like styles for <table> element are more than enough.
It should be fixed as soon as possible, because users can't see the content of table(s) on small screens.
Best, Sergei.


List ssl 3.11

Renovations for SSL Expirations code needed because existing code does not handle multiple certs per PEM file.  This knowledge was gained from https://access.redhat.com/solutions/3930291 and I tried to make minimal changes for best results.

how to use my code changes for our Openshift 3.11 fleet:
https://github.com/raxtes/openshift-ansible/blob/list-ssl-3.11/howto.txt


Maximum frequency character in String

Definition of done:

Clear code should be written.
Comments will be really appreciable.
Add minimum 2 test cases to test the code.
Add you code under Python/Data Structure and Algorithms/<ProgramName.py>
Make sure to add the Screenshot of Program Testing in the comment while merging the PR

Is it possible to work on this ?Thanks

sure. Assigning it to you

Merged


Add deployment scripts for Gitea, Jenkins, Jitsi, and Nostr

Description
Describe the changes introduced by this PR and what does it affect
https://github.com/threefoldtech/tfgrid-sdk-ts/issues/3330
adding scripts for

[x] Gitea
[x] Jenkins
[x] Jitsi
[x] Nostr

Changes
List of changes this PR includes
Related Issues
List of related issues
Tested Scenarios
A list of scenarios tried to match the deliverables
Documentation PR
For UI changes, Please provide the Documetation PR on info_grid
To consider
Preliminary Checks:

Does it completely address the issue linked?
What about edge cases?
Does it meet the specified acceptance criteria?
Are there any unintended side effects?
Does the PR adhere to the team's coding conventions, style guides, and best practices?
Does it integrate well with existing features?
Does it impact the overall performance of the application?
Are there any bottlenecks or slowdowns?
Has it been optimized for efficiency?
Has it been adequately tested with unit, integration, and end-to-end tests?
Are there any known defects or issues?
Is the code well-documented?
Are changes to documentation reflected in the code?

UI Checks:

If a UI design is provided/ does it follow it?
Does every button work?
Is the data displayed logical? Is it what you expected?
Does every validation work?
Does this interface feel intuitive?
What about slow network? Offline?
What if the gridproxy/graphql/chain is failing?
What would a first time user have a hard time navigating here?

Code Quality Checks:

Code formatted/linted? Are there unused imports? .. etc
Is there redundant/repeated code?
Are there conditionals that are always true or always false?
Can we write this more concisely?
Can we reuse this code? If yes, where?
Will the changes be easy to maintain and update in the future?
Can this code become too complex to understand for other devs?
Can this code cause future integration problems?

Checklist

[ ] Tests included
[ ] Build pass
[ ] Documentation
[ ] Code format and docstrings
[ ] Screenshots/Video attached (needed for UI changes)

as @khaledyoussef24  request will convert it to draft

Work in progress

made the deployment of gitea to work on public ip
tried and debugged every proccess to make it run using mycelium but didnot work
test jenkins working fine
jitsi is configured right and checked it
nostor also works fine

will split PRs because facing an issue with nostr always giving bad gate way even when the port is opened
https://github.com/threefoldtech/tf-images/issues/313


Submit a Cloud Definition

Fill out the JSON below with the following.

word [REQUIRED]: The word you are defining. Check this URL for all words we currently have.
content [REQUIRED]: The definition. No more than 3 sentences.
learn more URL [REQUIRED]: Page where people can visit to learn more about the word.
tag [REQUIRED, select one]: Tech category the word fits in. Options: compute, security, service, general, analytics, developer tools, web, networking, database, storage, devops, ai/ml, identiy, iot, monitoring.
abbreviation [OPTIONAL]: If the word is commonly abbreviated, please provide it. For example, command line interface is often abbreviated as CLI.
author name [REQUIRED]: Your name.
author link [REQUIRED]: The URL you want your name to link to.

{
"word": Amazon VPC "",
"content":  Amazon VPC lets you use a virtual network on AWS to launch resources. This virtual network is like a traditional network, but with the added advantage of being able to use the flexible resources of AWS."",
"learn_more_URL": https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html"",
"tag": networking"",
"abbreviation": VPC "",
"author_name": Rafael Martinez"",
"author_link": https://rafaelmartinez.cloud/""
}

and please feel free to open another issue when you find a word you'd like to define that isn't on the list, thank you :D


Please Help: cannot view the 3D point cloud when playing demo

Hello. I want to ask how I can view the 3D point cloud data when playing demo? Running cyber_visualizer returns nothing. Thanks!

I found there is perception data in the record, but when I enable the modules i cannot see the corresponding data in cyber_visualizer.

I noticed the previous issues that mentioned there is no sensor data contained in demo 3.5. I have downloaded demo 2.5 and demo 1.5 for testing. Closing this issue now.


[Question] Can 'useGA4React' hook be used for sub-domains as well ?

While going through GA documentation, they do support multiple sub domains for which events can be recorded.
We have multiple domains (one for each customer, a.example.com, b.example.com, etc. ), and we want to roll up the data collected. This is in addition to per customer data collection.
I tried the same using the below example
const Example = () => {
  const ga4React1 = useGA4React('GA_CODE_I', {}, []); // GA CODE, optional, if empty try to get from globals
  console.log(ga4React1);
  . . .
  const ga4React2 = useGA4React('GA_CODE_II', {}, []); // GA CODE, optional, if empty try to get from globals
  console.log(ga4React2);
  . . .
  return <>{JSON.stringify(ga4React)}</>;
};

But the second object always found to be null. Is there anything missed out in above configuration ?

I have not particularly tested this use, so if you find any problems, report them to me that I correct it, but I suggest you try this:
const ga = useGA4React("G-1JXXXXX,G-2JXXXXX");
or
const ga = useGA4React(["G-1JXXXXX","G-2JXXXXX"]);
and then to do that. you have to use the function directly gtag


collection.reset() unexpected parameter passed

I'm experiencing this very, very strange bug:
I have a object returned from a HTTP request with a structure like this (just an example):
{
  "a": [1, 2, 3, 4],
  "b": true
}

When from the collection, I run:
this.reset(results.a)

The model associated with the collection also gets initialised with the value of b

Can you create a small JSFiddle demonstrating the problem? reset just calls add under the hood so I'm not clear how this would be happening.

@akre54 Sorry, isolating the collection resolves the issue. Should have tried before opening the issue.
Something elsewhere in my code is interfering.


saml: make default signature check mandatory

This improves upon #9219, to make the signature checks mandatory by default but allows for users to relax the setting if they really must.
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] Enhancement (improves an existing feature and functionality)
[x] Cleanup (Code refactoring and cleanup, that may add test cases)
[ ] build/CI
[ ] test (unit or integration test code)

Smoketests/Github actions may be enough + packaging tests
@blueorangutan package

@rohityadavcloud a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.


SAK-40339 Fixed missing channel error

Also, fixed bullhorn alert around missing site tool
Also, moved some components.xml stuff into annotations
Also, set the checkbox for announcements

This commit basically adds a gradebook if there's never been one in the target import site, creates an announcement channel if needed, and checks the add announcment checkbox in the created assignment.


Feature request: Console instead of html output

It would be nice to have another option for the console that would make it full height where the html output normally would be.  In short: no html output, only javascript console.
Like this: http://jsbin.com/?html,console
Maybe even automatically if there's a .js file but no .html file in the files array?

I think that's a really good idea, but as pygy says, shouldn't be toggled automatically. Perhaps toggling it with console: 'primary' in the state object?
I'll try to think about how to toggle it in the interface as well.

I mostly use flems on mobile where A) this feature would be extremely useful B) the existing UI controls (halt, refresh, results link) are slightly confusing because they look like part of the console panel as opposed to the output. In this context the 'full screen' icon looks like it's referring to the console. I think new icons for standalone results / collapsed results should involve direction (switching axis based on orientation) to indicate one panel over the other…

@barneycarroll Do you mean the (halt, refresh, fullscreen) links are confusing now, or that they would be if the console took up the iframe space?
Assuming you mean if the console took up the iframe space, I very much agree, but then again, aren't they just as relevant when tied to the console? I'm thinking a layout button could replace the fullscreen icon and contain something like the following.

For portrait (mobile) it could be something like this?

Looks good, porsager.

I believe the non-mobile versions should also have a vert/horiz stacking toggle.

...and the API just follows naturally 😄


Add github.com/julienschmidt/httprouter instrumentation

This new module instruments the github.com/julienschmidt/httprouter module.

[x] Comply with OpenTelemetry HTTP semantic conventions
[x] Package documentation
[x] Exported objects are documented
[x] Tests and linting are passing
[x] Includes dependabot config
[x] Library added to README.md
[x] CHANGELOG.md updated

Codecov Report

Merging #273 (2cf67e0) into main (f051a59) will decrease coverage by 0.20%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #273      +/-   ##
==========================================
- Coverage   77.12%   76.91%   -0.21%
==========================================
  Files          43       44       +1
  Lines        2037     2062      +25
==========================================
+ Hits         1571     1586      +15
- Misses        425      433       +8
- Partials       41       43       +2

Flag
Coverage Δ

Linux
76.91% <100.00%> (+0.28%)
:arrow_up:

Windows
?

macOS
74.92% <100.00%> (+0.30%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...nschmidt/httprouter/splunkhttprouter/httprouter.go
100.00% <100.00%> (ø)

...n/github.com/lib/pq/splunkpq/internal/connector.go
51.75% <0.00%> (-5.03%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f051a59...2cf67e0. Read the comment docs.


DAX Studio not connecting to Power BI Desktop

Dax Studio is not connecting to the Power BI model I have open.  I'm using the new aggregate/composite model.  Is this no longer working with DAX Studio?
Version =  v<IP_ADDRESS>

Checking Operating System
OSCaption       = Microsoft Windows 10 Pro
OSVersion       = 10.0.14393
OSArchitecture  = 64-bit
VisibleMemoryGB = 15.68
FreeMemoryGB    = 8.91

Culture Name              = en-US
Culture DisplayName       = English (United States)
Culture EnglishName       = English (United States)
Culture 2-Letter ISO Name = en
Culture DecimalSeparator  = .
Culture GroupSeparator    = ,
Culture CurrencySymbol    = $
Culture ShortDatePattern  = M/d/yyyy

Checking .Net Framework
v2.0.50727 -> 2.0.50727.4927
v3.0 -> 3.0.30729.4926
v3.0\Setup -> 3.0.30729.4926
v3.0\Setup\1033 -> 3.0.30729.4926
v3.0\Setup\Windows Communication Foundation -> 3.0.4506.4926
v3.0\Setup\Windows Presentation Foundation -> 3.0.6920.4902
v3.5 -> 3.5.30729.4926
v3.5\1033 -> 3.5.30729.4926
v4\Client -> 4.6.01586
v4\Client\1033 -> 4.6.01586
v4\Full -> 4.6.01586
v4\Full\1033 -> 4.6.01586
v4.0\Client -> <IP_ADDRESS>

Checking AMO
PASS > Microsoft.AnalysisServices, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=89845dcd8080cc91
PASS > Microsoft.AnalysisServices, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=89845dcd8080cc91
WARN > Could not load file or assembly 'Microsoft.AnalysisServices, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Checking ADOMD.NET
PASS > Microsoft.AnalysisServices.AdomdClient, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=89845dcd8080cc91
PASS > Microsoft.AnalysisServices.AdomdClient, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=89845dcd8080cc91
WARN > Could not load file or assembly 'Microsoft.AnalysisServices.AdomdClient, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Dax Studio Configuration
Path: "C:\Program Files\DAX Studio\DaxStudio.exe"
Processing DaxStudio.exe.config file...
Path: 'C:\Program Files\DAX Studio\DaxStudio.exe.config'
Bindings Found: 9
AMO : <IP_ADDRESS>
ADOMD : <IP_ADDRESS>

Checking Excel Add-in
Detected Excel Version: 15 - Excel_2016
Excel Path: C:\PROGRA~2\MICROS~1\Office15\EXCEL.EXE
Excel Architecture: x86

DAX Studio Excel Add-in Registry keys
   Description: Dax Studio Excel Add-In
   FriendlyName: Dax Studio Excel Add-In
   Manifest: file:///C:/Program Files/DAX Studio/DaxStudio.vsto|vstolocal
   LoadBehavior: 3

Checking for Excel 2010 Disabled Add-ins
  PASS > No Disabled items found.
Checking for Excel 2013 Disabled Add-ins
  N/A  >  - c:\users\wcsmith\appdata\local\microsoft\windows\inetcache\ie\cr4ifn8j\mwdwhm894j82d88ldjhchhhgmg42gwvvdcld9498.xl
  N/A  >  - c:\program files (x86)\sashome\x86\sasaddinformicrosoftoffice\7.1\sas.exceladdin.vsto|vstolocal

I suggest you post this on the DAX Studio GitHub site instead :-)


How to generate subsets like fontsource ?

Hi, guys~ I liked fontsource and I want to upload some good CJK fonts to font-files.
I read https://github.com/fontsource/font-files/blob/main/CONTRIBUTING.md and uploaded Fusion Kai fonts. But I recently found that this kind of CJK fonts are divided into many on subsets.
I referenced this tutorial to generate Latin subset.  But I don't know the scope of other subsets on fontsource. And I found that there are some automatically generated subset.css files in the font folder. I know that fontsource used Google's APIs to generate numbered subsets from this issue.
So 🤔, How do you generate subsets ?
Thanks for read :)

Hi, sorry. We don't support that yet for the custom packager 😔
It does require #39 to be addressed with our own subsetter before #730 can be implemented. Please track those issues.

OK! It also solved my problem.


Remove web from the plugin's name

nvim-web-devicons -> nvim-devicons
Not exactly necessary in any way but it is cleaner and makes more sense as this plugin isn't really web oriented.

I agree. See: https://github.com/ryanoasis/vim-devicons/issues/64

It definitely makes sense to rename; question is whether it's worth breaking users' configs?

Doesn't necessarily have to, a dummy file and with a deprecation warning for a while should make the transition fairly smooth

Any progress or decisions for this?

PR welcome, would need a shim to avoid breaking everyones config.

What about copying this repo to nvim-tree/nvim-devicons, then add the rename info to README and achieve this repo, then we can simply global remove every -web in nvim-tree/nvim-devicons.

RE plugin name/location, github does some redirection for us. After moving nvim-tree, https://github.com/kyazdani42/nvim-tree.lua redirects to the new location.
Care must still be taken with the plugin itself to ensure that we don't have any assumptions.


select2_from_ajax is not working on Edge

Bug report
What I did
I set up a select2_from_ajax field.
What I expected to happen
Ajax select to work.
What happened
In Microsoft Edge, it says syntax error.
What I've already tried to fix it
I found the syntax error, please take a look:

Also, I can see the same issue in these files:
vendor\backpack\crud\src\resources\views\crud\fields\select2_from_ajax_multiple.blade.php:
95:         var $selectedOptions = JSON.parse(element.attr('data-selected-options') ?? '[]');
vendor\backpack\crud\src\resources\views\crud\fields\select2_from_ajax.blade.php:
111:         var $selectedOptions = JSON.parse(element.attr('data-selected-options') ?? null); // not working
vendor\backpack\crud\src\resources\views\crud\fields\relationship\fetch_or_create.blade.php:
458:                 var $selectedOptions = JSON.parse(element.attr('data-selected-options') ?? null);
vendor\backpack\crud\src\resources\views\crud\fields\relationship\fetch.blade.php:
193:         var $selectedOptions = JSON.parse(element.attr('data-selected-options') ?? null);
vendor\backpack\crud\src\resources\views\crud\fields\relationship\relationship_select.blade.php:
139:         var $selectedOptions = JSON.parse(element.attr('data-selected-options') ?? null);
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:
PHP VERSION:
PHP 7.4.0 (cli) (built: Nov 27 2019 10:14:18) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
LARAVEL VERSION:
v7.10.1@d92e25358e85a962f1f868376f14935eb8ac53d6
BACKPACK VERSION:
4.1.x-dev@585cbabef25506ccd8570f4bab0828435a204aea

I made a PR here https://github.com/Laravel-Backpack/CRUD/pull/2779

This is the same issue as #2957
I'v submited the PR: #3024 to fix it.
Let's keep the discussion in that thread.
Thanks for taking time to submit the issue report and a PR for it. We really appreciate the effort.
Wish you the best,
Pedro


Ubuntu-latest workflows will use Ubuntu-22.04

Breaking changes
Ubuntu 22.04 is ready to be the default version for the "ubuntu-latest" label in GitHub Actions and Azure DevOps.
Target date
This change will be rolled out over a period of several weeks beginning in October, 3. We plan to complete the migration by December, 1.
The motivation for the changes
GitHub Actions and Azure DevOps have supported Ubuntu 22.04 in preview mode since May 2022, and starting from August 2022 Ubuntu 22.04 is generally available for all customers. We have monitored customer feedback to improve the Ubuntu 22.04 image stability and now we are ready to set it as the latest.
Possible impact
The Ubuntu 20.04 image has a different set of software than Ubuntu 22.04. The most significant changes are listed in the table below:

Tool name
Ubuntu 20.04
Ubuntu 22.04
Notes

Ruby toolcache
2.5.9 2.6.10 2.7.6 3.0.4 3.1.2
3.* (latest)
Only latest available version will be cached on start.

Ruby
2.7.0
3.* (latest)
The latest available version for each operating system provided in the APT repository is installed.

Clang Clang-format Clang-tidy
10.0.0 11.0.0 12.0.0
12.* 13.* 14.*
Three latest available versions for each operating system provided in the APT repository are installed.

GCC GFortran
9.4.0 10.3.0-
9.* 10.* 11.*
Three latest available versions for each operating system provided in the APT repository are installed.

Python
3.8.10
3.10.6
Fresh updates for Python and tools available for Ubuntu 22 in APT repository.

PHP
7.4.32 8.0.24 8.1.11
8.* (latest)
Only one latest officially supported PHP version will be supported. See more here.

.NET Core SDK
3.1.120 3.1.202 3.1.302 3.1.423 5.0.104 5.0.214 5.0.303 5.0.408 6.0.401
6.0.401
Only the latest available version will be installed on start.

Node.js
12.22.12 14.20.1 16.17.1
- 14.20.1 16.17.1
EOL version had been deprecated. If your use-case requires using any of these versions, consider using tasks to install Node.js on-flight: - actions/setup-node (GitHub Actions) - Node.js Tool Installer (Azure DevOps)

PyPy
2.7.18 [PyPy 7.3.9] 3.6.12 [PyPy 7.3.3] 3.7.13 [PyPy 7.3.9] 3.8.13 [PyPy 7.3.9] 3.9.12 [PyPy 7.3.9]
3.7.13 [PyPy 7.3.9] 3.8.13 [PyPy 7.3.9] 3.9.12 [PyPy 7.3.9]
Deprecated all the versions besides the most recent ones.

Python toolcache
2.7.18 3.6.15 3.7.14 3.8.14 3.9.14 3.10.7
3.7.14 3.8.14 3.9.14 3.10.7
On GitHub Actions, actions/setup-python can install any version on-flight so this change doesn't impact users.

Platforms affected

[X] Azure DevOps
[X] GitHub Actions

Runner images affected

[ ] Ubuntu 18.04
[x] Ubuntu 20.04
[x] Ubuntu 22.04
[ ] macOS 10.15
[ ] macOS 11
[ ] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Mitigation ways
If you see any issues with your workflows during this transition period:

File an issue in this repository
Switch back to Ubuntu 20 by specifying the “Ubuntu-20.04" label. We will continue to support Ubuntu 20.

For more information you can take a look at the previous announcement here.

@Kichura yes, it was a mischeck. thank you!

Does the ubuntu-22.04 install Firefox as a snap package, or directly, or not at all?  I'm seeing test failures with that image, and worry that I'll need to either add a Firefox install to my workflow or maybe pin to ubuntu-20.04 for a while.

20.04 LTS has actually shipped firefox as a snapd feature in it's desktop variant whereas the server variant does not have it at all - but can be looked into.

We're using ubuntu-latest images for Firefox testing today.  I tried ubuntu-22.04 in a PR to see what would happen, and our workflow fails to detect Firefox at all.  So it looks like we'll have to either pin to ubuntu-20.04 or install Firefox explicitly to avoid issues.

In one of our repos, Ubuntu 22.04 based tests are failing. I am yet to figure out the issue. But the same tests working with 20.04.
https://github.com/kadalu-tech/pkgs/pull/2
The following packages have unmet dependencies:
 libunwind-14-dev : Breaks: libunwind-dev but 1.3.2-2build2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Error: Process completed with exit code 100.

Hello, @aravindavk!
Here is an explanation why this is happening with your build. I added a comment explaining how to fix the situation.

Thanks @erik-bershel

@ddobranic it seems that Ubuntu Mozilla Team still provides official non-snap ESR packages of Firefox via PPA:
https://launchpad.net/~mozillateam/+archive/ubuntu/ppa?field.series_filter=jammy
Maybe you could coordinate with them, not having any Firefox at all in CI images is quite... limiting.

Is there any updates on Firefox not being included in ubuntu-22.04?

@Josh-Osmanski yes, we are planning to add Firefox. thank you!

@ddobranic The original post mentioned a migration happening automatically between October, 3 & December, 1. We're in the middle of this period. If it's indeed happening, auto-migrated repositories doing Firefox testing may start seeing breakages since Firefox has not been added to the image yet. What's the plan around that?

@ddobranic
Could you update the Node.js entry in the table ^^?
The Node.js Active LTS version 18.12.0 is now cached in both ubuntu-20.04 and ubuntu-22.04. The 16.x version has also been updated.
I think it should look like this:

Tool name
Ubuntu20.04
Ubuntu22.04

Node.js
12.22.1<IP_ADDRESS>.018.12.0
-<IP_ADDRESS>.018.12.0

@MikeMcC399 thank you! updated.

Hello, @aravindavk! Here is an explanation why this is happening with your build. I added a comment explaining how to fix the situation.

I was having the same problem, but in my case, on top of what you have suggested, I had to remove both libunwind-14-dev and libunwind-14, and then proceed as usual with the package installing. Just to mention, the dependency that was requiring libunwind-14 was libgstreamer1.0-dev.
Thanks!

The table in https://github.com/actions/runner-images/blob/main/README.md still shows ubuntu-latest as ubuntu-20.04. This is confusing and should probably be fixed, thanks!

@thiell the migration happens gradually, not all current ubuntu-latest resources are using ubuntu-22.04 yet. Once it is done the docs will be updated.

Hey @ddobranic
It seems that ubuntu-22.04 does not have MongoDB installed, Is there any plan to add it as a default package?

@ddobranic Is there any update on adding Firefox as a browser to Ubuntu 22.04?

@chuma9615 there is still no official ubuntu 22.04 release as far as I can see, only preview

This updated image broke my CI WASM tests which make use of Firefox. I know this is incoming, but it's been a while since it weas stated that this is planned but things are still breaking. Is there any update on this?

@Bluefinger ub22.04 with firefox will be released this week, it is already in main

Awesome! Good to know and thanks for the update

@ddobranic
Are you still planning to complete the migration of Ubuntu-latest to use Ubuntu-22.04 by Dec 1, 2022? The repos which I am involved in are still using 20.04 when they run with runs-on: ubuntu-latest specified in the GitHub workflow.

@MikeMcC399 indeed, updated :)

@mikhailkoliada
I see that you changed the completion date for the migration to March 1 (2023 assumed). That is quite a significant change of 3 months from the previous Dec 1, 2022. Thank you for the update!

I just had a workflow that uses ubuntu-latest end up using ubuntu-22.04 today. In my time zone, December 1 is tomorrow, but whatver. I'm just confused when this is rolling out given that the issue is still open and the previous comment about postponed migration.

@2bndy5 it is not postponed, but rather stretched, i.e. it is in progress and ubuntu-latest will get updates to ubuntu-22.04

After I posted, I realized the deadline was a end-of-migration date, not a hard overnight change. For now, I'm using ubuntu-22.04 to keep the workflow consistent during migration. Thanks for responding!

@ddobranic
The GitHub Changelog from Dec 1, 2022 says:
"Larger runner workflows using the ubuntu-latest runner label will soon run on Ubuntu-22.04.
Ubuntu-22.04 is now the default version for the ubuntu-latest label for GitHub Actions standard runners workflows. Larger runners will now use the Ubuntu-22.04 as the -latest version starting 15 December 2022."
How is it possible to determine if a runner belongs to the category "larger runners"? What is the metric for this evaluation?

@MikeMcC399 large runners are paid ones.

@ddobranic

large runners are paid ones.

Thank you so much for the explanation!
Can I suggest that the link to large runners be added to the GitHub Changelog from Dec 1, 2022? I didn't realise that the term "larger runners" in the blog had a special meaning.

The inclusion of only .NET 6 and 7 on 22.04 contradicts the statement in the top-level README

2 latest LTS versions and 1 latest version. For each feature version only latest patch is installed

According to that, 3.1 should also be included, being the second most recent LTS version

@kynan python 3.6.x has been EOL since December '21, so there is no plans to add it to 22.04

FYI Our C++ CI tests started failing on Linux in Azure DevOps from 1 Dec. when ubuntu-latest switched from 20.04 to 22.04. This failure happened whenever the test executables were started:
symbol lookup error: /home/vsts/work/1/s/bin/os/linux_x64/test/working/../../../../../build/os/linux_x64/packages/intelmkl.devel.linux-x64.2019.5.281/lib/native/linux-x64/libmkl_intel_thread.so: undefined symbol: omp_get_num_procs
A colleague fixed this by adding this to the pipeline yml:
sudo apt install --no-upgrade libomp-dev
Will we have to do this from now on? Or will you be adding libomp-dev to the ubuntu-latest (22.04) image?

FYI, the error message showing up in AzDO builds is misspelled (unless the underlying name is changing to ubntu):
##[warning]ubuntu-latest pipelines will use ubntu-22.04 soon. For more details, see https://github.com/actions/runner-images/issues/6399

@mechie it depends on a pipeline type, azdo still supports ubuntu-22.04, say, in vmImage

@mechie it depends on a pipeline type, azdo still supports ubuntu-22.04, say, in vmImage

What? He is telling you there is a typo in the warning and you are saying yes, there is a pipeline type that will accept the typo?

##[warning]ubuntu-latest pipelines will use ubntu-22.04 soon. For more details, see https://github.com/actions/runner-images/issues/6399

I really wish Azure DevOps did not warn on this sort of stuff, it should be info: the ubuntu-latest tag is for running the latest version of Ubuntu, why are you warning me that I am getting the latest version of Ubuntu? That's what ubuntu-latest means, that's why I use it.

Weirdly it gets it right sometimes so hopefully that is a new agent image being rolled out...

The Original Post says:

Target date
This change will be rolled out over a period of several weeks beginning in October, 3. We plan to complete the migration by March, 1st, 2023.

This seems more like a several MONTH rollout. Will we endure several months of warnings that ubuntu-latest workflows will use ubuntu-22.04 soon.? (That's not "soon".)
I apologize for being grumpy, but unnecessary warnings make me unhappy.

Update: Why am I unhappy? I have 40 occurrences of ...-latest in my small project. I'm not aware of a facility in GHA that would allow me to specify a variable that contains ubuntu-20.04 (or ubuntu-22.04) and use it globally.

It would be much less annoying if Azure Pipelines group all the issues with the same error.

"Only the latest available version will be installed on start.". so version 7 only?

@mikeblakeuk it is already more than one: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#net-core-sdk

.NET Core SDK : "Only the latest available version will be installed on start.". so version 7 only?

It states that NET 6 will be supported, 6.0.401 in particular, which makes sense given that 7 is not a long-term release.

One of my actions fails on 22.04 because a C header cannot be found (#include <omp.h>). However, it still works with 20.04, no code changed.
What's the best way to investigate?

Google it? omp.h not found ubuntu yields this as the second result.

This is now also the case on Ubuntu 22.04 (which using clang-14). More generic install is
sudo apt install libomp-dev

Not mentioned in the table above, but Ubuntu 22.04 ships with OpenSSL 3 by default.  I thought that pinning to 20.04 should solve it.
-runs-on: ubuntu-latest
+runs-on: ubuntu-20.04

But that wasn't a drop-in replacement, I immediately hit a build failure due to glibc: error: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found`
I did not dig into this any further, and instead I will just be upgrading my systems to use OpenSSL 3.

Running docker-compose runs into a permission issue.
[2326] Failed to execute script docker-compose
Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 81, in main
  File "compose/cli/main.py", line 203, in perform_command
  File "compose/metrics/decorator.py", line 18, in wrapper
  File "compose/cli/main.py", line 970, in run
  File "compose/cli/main.py", line 1460, in run_one_off_container
  File "compose/cli/main.py", line 1586, in call_docker
  File "subprocess.py", line 339, in call
  File "subprocess.py", line 800, in __init__
  File "subprocess.py", line 1551, in _execute_child
PermissionError: [Errno 13] Permission denied: '/opt/hostedtoolcache/docker-stable/17.9.0-ce/x64/docker'

ubuntu-latest has finally been switched to ubuntu 22.04 for both GitHub Actions and Azure DevOps!

Is there any update on the version of PowerShell? Just double checking whether 7.2.7 is still the version as indicated here.

payments_due_2022-12-17T21_44_22.814Z.csv

What about gnome?


drivers: pinctrl: Expand Gecko pinctrl to include tmo_dev_edge

Add efm32pg_stk3402a, efr32mg_sltb004a and tmo_dev_edge to pinctrl. Each has a pinctrl.dtsi file defining their pins to their boards. Each device tree is unique to what devices they have supported. Each adds CONFIG_PINCTRL=y to their defconfig files. The drivers are then updated to support this.

Replaced


TypeError: locale.localize.months is not a function

Subject of the issue
I am trying to add enGB locale.
I simply installed the date-fns lib, and the datepicker crashes with the above error
[BUG] Bug Reproduce Steps
Tell us how to reproduce this issue.
I just added "date-fns": "2.0.0-alpha.25",
[BUG] Expected behaviour
It should not crash
Environment
Package Version: "^1.0.0-beta"
React version: 16.5.2
Node version: 10
Browser: Chrome

Same problem here...
Tried to use pt-BR locale and the exact same error ocurred.

For anyone still wondering, try downgraded date-fns version to 2.0.0-alpha.7. It works for me.

@laminh711
version 2.0.0-alpha.7 does not have my locale
I need faIR locale

This issue is resolved in the latest release (1.1.0). Now, date-fns is loaded as a peer dependency and you can use versions between 2.0.0 and the latest. I'm closing this.


Image: add hugo

:gift: This change add a new image for the Hugo package, including a -dev variant.
/kind feature
Pre-review Checklist

[x] IMPORTANT: 'image-request' tag has been applied if this PR is adding any images, including new versions or variants

For new image PRs only
If you have an apko.yaml file in this PR you need to follow this checklist, otherwise feel free to remove.

[x] Include tests, sufficient enough that you would trust this image running in production.
[x] The version included is the latest GA version of the software
[x] The latest tag points to the newest stable version
[x] There is a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base')
[x] The image runs as nonroot and GID/UID are set to 65532
[x] ENTRYPOINT

[x] For applications/servers/utilities call main program with no arguments e.g. [redis-server]

[ ] CMD:

[ ] For server applications give arguments to start in daemon mode (may be empty)
[ ] For utilities/tooling bring up help e.g. –help
[ ] For base images with a shell, call it e.g. [/bin/sh]

[ ] Consider where and how the image deviates from popular alternatives. Is there a good reason and is it documented?
[ ] Add annotations e.g:

annotations:
  "org.opencontainers.image.authors": "Chainguard Team https://www.chainguard.dev/"
  "org.opencontainers.image.url": https://edu.chainguard.dev/chainguard/chainguard-images/reference/busybox/ # use the academy site here
  "org.opencontainers.image.source": https://github.com/chainguard-images/images/tree/main/images/bazel # use github here

[x] Check if environment variables are needed e.g. to set data locations
[x] Ensure the image responds to SIGTERM

[x] docker kill $(docker run -d --rm cgr.dev/chainguard/nginx)

[ ] Documentation. Let's make this excellent. Include usage example.
[ ] Error logs write to stderr and normal logs to stdout. DO NOT write to file.

Looks like you need monopod readme, but otherwise looks fine.

I'm going to play with another test that runs the Hugo quickstart, so something more meaningful is tested

It also looks like I'm missing archs

Ok, this is RFAL.  As an added bonus I found a bug with git submodule in our Wolfi image 😞


Some kind of command in chat to change the map

Just a command to initiate global map votes for if rounds go on too long, probably need like 75% of the users playing to agree that it needs to happen or something, saying !rtv or !mapvote maybe

chat commands are shit

true, would be better off doing this in the scoreboard somewhere


Refactor selinux::module

I thought I'd actually implement part of what's being discussed in #178
This doesn't yet support building the things without selinux-devel,
but it does work, and handles failures gracefully.
It doesn't look like module building needs its own provider, but behaviour on RHEL5/6 should be tested.

tests will be failing and there are lots of hardcoded paths for now. Still wondering what the best way to select the build dir would be. A custom fact as discussed in #146 ?

I implemented simple module building using just checkmodule with a helper script. Also added the custom fact. works for me, but there's still some work to do.
I noticed that the module installs the wrong packages by default. On some distros, it only installs policycoreutils, and on others it only installs selinux-policy-devel
If we really want to support modules without selinux-policy-devel etc, that needs to be refactored too.

I cleaned this up a bit and fixed the tests.
Acceptance goes through with CentOS6, CentOS7 and Fedora 25

RHEL7 default package was selinux-policy-devel too. Changed it to policycoreutils-python which is where semanage resides

rebased once more to clean things up. I'm pretty happy with this as it is. Any comments?


Update README

Go through the README and update changes for release of v1.

https://github.com/Transia-RnD/XRPLSwift/pull/19


Successfully use Filecoin Shipyard's Filscan Block Explorer with CLI

Looking into this project more, I don't believe this is worth the effort. Since you can use #694 to see the blocks, and more so use Ganache UI, I don't think using Filscan with Ganache is an applicable use case. Closing for now

Looking into this project more, I don't believe this is worth the effort. Since you can use #694 to see the blocks, and more so use Ganache UI, I don't think using Filscan with Ganache is an applicable use case. Closing for now


feat: user multi-stage builds and remove apt and pip caches

Recreated for Hacktoberfest ;)

Remove apt cache after running apt-get
Pass --no-cache-dir to the pip command
Use multi-stage builds to remove the test layers from the final image.

Motivation and Context

[x] I have raised an issue to propose this change (required)
[ ] My issue has received approval from the maintainers or lead with the design/approved label

Resolves #57
Relates to #55
How Has This Been Tested?

$ faas-cli new echo0 --lang python3-flask
$ faas-cli new echo1 --lang python3-http

$ faas-cli build -f echo0.yml --no-cache
# truncated
Image: echo0:latest built.
[0] < Building echo0 done in 37.65s.
[0] Worker done.

Total build time: 37.65s

$ faas-cli build -f echo1.yml --no-cache
# truncated
Image: echo1:latest built.
[0] < Building echo1 done in 32.50s.
[0] Worker done.

Total build time: 32.50s

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I've read the CONTRIBUTION guide
[x] I have signed-off my commits with git commit -s
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

I'll get this merged, thank you so much. Could you send similar to the Python templates in openfaas/templates?


Zwave: Remove old_entity_id and new_entity_id attributes

Home Assistant release (hass --version):
0.63
Python release (python3 --version):
3.5
Component/platform:
zwave
Description of problem:
With the addition of the entity registry, the old_entity_id and new_entity_id attributes are not necessarily accurate and should be removed from zwave entities.

They should be removed regardless of the entity registry. They were only there to help users with a breaking change in Z-Wave a number of releases ago.


Implement lookahead optimiser

See paper:
https://arxiv.org/abs/1907.08610
For details

Postponing this as it is not a top priority at the moment.


[pytorch] add list and tuple support to ivalue

Change-Id: Ie3008c23f80f332c187eee7b2c710dfe897934ed
Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report

Merging #1200 (a3eef67) into master (3198f65) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #1200      +/-   ##
============================================
- Coverage     70.57%   70.50%   -0.08%
+ Complexity     5006     5005       -1
============================================
  Files           476      476
  Lines         21941    21960      +19
  Branches       2315     2320       +5
============================================
- Hits          15484    15482       -2
- Misses         5257     5277      +20
- Partials       1200     1201       +1

Impacted Files
Coverage Δ

...ngine/src/main/java/ai/djl/pytorch/jni/IValue.java
75.51% <0.00%> (-18.17%)
:arrow_down:

api/src/main/java/ai/djl/repository/Artifact.java
87.80% <0.00%> (-1.63%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3198f65...a3eef67. Read the comment docs.


Better Async response handling

Returning entire QueryAsyncJobResult object
Redefining "jobresult" property with class if appropriate
Better value checking on "jobresult" for simple responses

@bogdanioan-gabor please have a look at this when you can, will change how we handle async responses but I believe it to be for the better.


Change the logic for displaying sci review notices

Until now, the pending-sci-review notice was included or not during the language import and this decision was based on the configuration in _config.yml. I have decided to make this a bit more flexible, always include the notice include in the markdown files and make the notice smarter and read the configuration and decide whether it should render the snippet or nothing. This will allow us to turn this on and off without having to rerun the language import from lokalise which I think is a better approach.

In order to speed things up I have bundled this with a flag-flip that enables pending-sci-notices for all languages by default. This should take effect next time translations are synced with head.


change vite.server.port not work

Environment
Nuxt project info:                                                                                18:48:43

Operating System: Darwin
Node Version:     v16.17.0
Nuxt Version:     3.0.0-rc.9
Nitro Version:    0.5.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      alias, ssr, vite
Runtime Modules:  -
Build Modules:    -

Reproduction

git clone https://github.com/4tst/nuxt3-starter.git
change nuxt.config.ts, set vite.server.port=3001
npm run dev

Describe the bug
always use port 3000 & _nuxt (hmr.path)
Additional context
No response
Logs
No response

Vite doesn't listen on a server at all with Nuxt. Instead it is Nuxt's server/port that matter. These are configurable in a number of ways including devServer.port and devServer.host (in config) and CLI arguments...
You can configure Vite's HMR details as you've done in your reproduction.


I want to avoid sorting Cartesian Gradients in QM/MM for communication with external MD.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
For smoother communication in QMMM, please stop sorting by largest |Gradient|, or write Cartesian Gradients right next to CARTESIAN COORDINATES.
Describe the solution you'd like
A clear and concise description of what you want to happen.
For smoother communication in QMMM, please stop sorting by largest |Gradient|
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Or write Cartesian Gradients right next to CARTESIAN COORDINATES.
Additional context
Add any other context or screenshots about the feature request here.

Sorry for the inconvenience. I will use the keyword AUX output. http://openmopac.net/manual/QMMM.html

No problem. The original MOPAC output file was designed for human readability, not machine readability. The AUX output file format was added much later to accommodate machine readability of MOPAC outputs. If there is any important information that the AUX file is not providing, then I will consider feature requests to add new information to the AUX file.


Add VW/Skoda ID Charger (EVBox) support

I think it would be great if the wallboxes of the VW Group (ID Charger, https://charging-energy.elli.eco/) from the manufacturer ELLI (hardware supplier is the company EVBox) would also work with EVCC. These are very inexpensive for the range of functions offered. It is certainly not entirely unrealistic to believe that these will represent a decent share of the market in the near future. Starting with the "Connect" wallbox (starting at 600€), these are also controllable. The devices are connected like WLAN or LAN. The control interface is OCPP 2.0-J (JSON API) or later EEBus 4. Sounds good, doesn't it?

Hi,
As of right now this is sadly not possible (I own such a box myself):

OCCP: This interface is used for their mobile app and there is no option available (Web UI, API, ...) to change the server to be used to a different one
EEBUS: Support for EEBUS for the devices is currently only announced, previously for 2020, now for somewhen in 2021. Also there is no open source EEBUS support available anywhere yet, and that protocol is not an easy task. But this might be the only option to be viable for supporting these chargers. Maybe this is something we can achieve, but it will also take quite some time.
There is no other way to control these boxes, the web interface doesn’t provide any options to change the amperage nor is there any other means of API to do so.

So obviously these devices are on the future wish list, but as of now it is impossible to say when EVCC will be able to support them.

https://github.com/andig/evcc/issues/591#issuecomment-760892209

I understand that there might not be any influence of you @andig - still we could keep that open for tracking any progress.
I talked today with the official support which lead me to this document: https://uploads-ssl.webflow.com/5f2271e9820e0bb93e6f3499/5f6a7e1113e3e52cf745fda1_OverloadProtection_Guideline.pdf

The Overload Protection feature of the Elli Charger is aiming to allow customers to use as much of their facility’s power capacity as possible.

...

With the Overload Protection, the Elli Charger offers a comfort feature to enable customers to always charge their vehicles at the fastest speed possible. By installing additional current sensors (Current Transformer coils = “CT coils”) in the house’s electric installation and configuring the Elli Charger according to the local restrictions, the Elli Charger will charge the vehicle with as much power as possible while at the same time ensuring to stay within these local restrictions.

That's not related to EVCC anyhow. Still this functionality might allow configuring the Wallbox to offer some kind of flexible loading based on PV availability.

What we'd need is a) an open programming interface and b) vendor support. None of both is unfortunately provided in the pdf. As long as that's the case the only sensible solution is to chose a wallbox according to personal need and if need is PV-steering and vehicle integration then not to chose Elli.

Hi @andig,
recently in the software release logs of the ID.Charger software, I noticed that the EEbus protocol was implemented.
EEBus communication interface implemented (allows you to connect your wallbox to EEBus-enabled devices. For more information on EEBus please see the FAQs in our shop or visit the official EEBus website which you can find at [eebus.org](https://www.eebus.org/))
Also at the charger product page now reports:
Communication protocols : OCPP 2.0 & EEBUS


needs scan_by_url

Is it really necessary? I kind of can, but...... Okaaaaaaaay, I'll do it by the end of the week.

Is it really necessary? I kind of can, but...... Okaaaaaaaay, I'll do it by the end of the week.

yes, really. Many online images need to recognize.

@ILG2021 sorry, I've been a bit delayed(dealing with uni issues). I added. It's kinda working. I released a version on pypi so just do the upgrade

Thank you very much.

@ILG2021 sorry, I've been a bit delayed(dealing with uni issues). I added. It's kinda working. I released a version on pypi so just do the upgrade

Thank you very much.

Can you check everything you need (I did but I'm crooked) for me to close ISSUE?

can not install logging package, it is a build in package.

Error downloading or processing image from URL: Error processing image from buffer: Failed to convert expires 'Thu, 17-Apr-2025 23:52:11 GMT' to timestamp: Invalid date value or format

fixed by:
cookies_manager.py
@staticmethod
def ensure_timestamp(expires):
"""Ensures that the expires value is a Unix timestamp."""
if isinstance(expires, (int, float)):
	return expires
if isinstance(expires, str):
	try:
		return float(expires)
	except ValueError:
		print(f"Failed to convert expires '{expires}' to timestamp: Invalid date value or format")
		try:
			dt = datetime.strptime(expires, '%a, %d-%b-%Y %H:%M:%S GMT')
			timestamp = dt.timestamp()
			return float(timestamp)
		except Exception as e:
			print(e)
return expires

I'll fix it by evening.


a script that helps with testing checks in VS Code

While working on the #350 I developed a script that makes developing the tests in VS Code that little bit easier, at least for me. So far I kept it out of the project but perhaps that is something that could be included?
The version I use right now does the following after hitting F5

if the open file is an  *.Assertions.ps1 file and the cursor is outside of tests it will run all the unit tests in the matching *.Assertions.Tests.ps1 file
if the open file is an *.Assertions.ps1 file and the cursor is in one of the Assert- functions all unit tests using that method will be executed
if the open file is an *.Assertions.Tests.ps1 then depending where the cursor is either specific Describe block is executed or the whole file
if it is one of the check files the behaviour is similar, but with an option to either run unit tests for that check or file, or execute the check or all of the checks from the file.

Obviously all of that doesn't make any sense until we have the changes I'm working on, so I have a simpler version in this pull request which simply runs a check from under the cursor. Something to start the discussion.
To use it I have the following configuration in my launch.json
       {
            "type": "PowerShell",
            "request": "launch",
            "name": "Test workinprogress",
            "script": "${workspaceFolder}/internal/scripts/workinprogress.ps1",
            "args": [ "${workspaceFolder}", "${file}", "${fileBasename}", "${lineNumber}" ]
        }

I'd say having artifacts specific to a product is not favored and more suited to be a blog post, that is how VS Code artifacts are treated for dbatools at least.

This is great - but I think not to go into the module.
You could add it to the wiki and a gist??

agreed. for now I have created a gist and my first after 6 years blog post on a brand new blog too ;)
https://gist.github.com/michalporeba/5103a2fae1b1dfa3c1f09b9f4d225420 if anybody is interested.
I'll have version specific to dbachecks too and then include it in the wiki page with the rest of new information


Extract csvcubed-devtools project

[ ] Project Structuring

[ ] Project should only contain relevant packages, source code and tests (i.e. unit and feature tests).
[ ] Project should contain an individualised dev container and the corresponding docker file.
[ ] The API docs (i.e. sphinx docs) needs to be removed.
[ ] Project should contain the below project structure. The structure is described in here.

- <project-name>
    - .devcontainer
      - devcontainer.json
    - Dockerfile
    - .gitignore
    - src
      - <package-name>
        - __init__.py
        - <rest of the source code>
    - tests
      - test-cases
      - unit
      - features
    - poetry.lock
    - pyproject.toml
    - tox.ini
    - Jenkinsfile
    - README.md
    - LICENSE Apache V2

[ ] Deploy Project to Git

[ ] The project restructured above need to be deploy to separate git repos. To this end, follow the Deploying to Git approach below.
[ ] The repo should contain only the relevant history. To this end, follow the Keeping Only Relevant History in Git approach below.

Deploying to Git

Create a mirrored clone of the repo - git clone --mirror old-repo-url new-repo
Delete the original remote in the new repo - git remote remove origin
Add the remote reference for the new repo - git remote add origin new-repo-url
Then run push the commit and tags - git push --all and git push --tags
Delete the new-repo folder.
Clone the new-repo from the new-repo-url.
More info can be found in here.

Keeping Only Relevant History

Install the git-filter-repo CLI tool (see here for Mac and here for other operating systems).
Navigate inside the new-repo folder.
Run git filter-repo --path csvcubed-devtools/ --to-subdirectory-filter src
Now the repo is ready to be published with the relevant history to a new repo. I've published using the git extension in VSCode. And example showing the csvcubed-models repo with relevant history is available at https://github.com/GDonRanasinghe/csvcubed-models-test-6
More info can be found in here.

[ ] Project Jenkins Pipeline Changes

[ ] Project will contain a Jenkins file and it will contain steps relevant for that project only. This means, we need to remove all the irrelevant content from the existing Jenkins file for the particular project, and thus individualise the Jenkins file to the individual project.

Closing tasks

[ ] Manually release this package
[ ] Amend the pyproject.toml to accommodate the changes to the package structure (mainly targeting relative references), you'll do this twice because @robons gets his structure wrong but hey ho. Up to you. Make sure the dependencies track.
[ ] Make sure to delete the moved repo from the main csvcubed repo

Important parts of approach I took:

This is the git filter-repo command I recommend you use (obviously modify it on a per-project basis):

git filter-repo  \
   --path csvcubed-devtools/ \
   --path Dockerfile \
   --path Jenkinsfile \
   --path .gitignore \
   --path .devcontainer \
   --path .github/workflows/increment-versions.yaml

Make sure to update the .github/workflows/increment-versions.yaml file so that it knows there's only one project to set the version for now.
Update the Dockerfile so that the container builds off our existing python version testing container & make sure that it installs the poetry dependencies on a container-wide basis.
Make sure to update the Jenkinsfile to remove knowledge of the other projects.
Moved files around using git mv so that git knows to keep track of the files once their location changes.

See this comparison of the changes I made to the repository after applying the git-filter.


Doesn't work on Node.js 12 due to optional chaining

Readme and package.json indicates works on Node,js 12 +, however it doesn't.
 "engines": {
    "node": ">= 12"
  },

As it stands it can only work on Node.js 14+ due to the usage of optional chaining within some code.
e.g. https://github.com/drone/ff-nodejs-server-sdk/blob/5f057fe666d33a4a4b8cdb12fe37b1c0bd903871/src/evaluator.ts#L47

Apologies. I've got it to work. Had a issue elsewhere that threw me.


Update DynamicPPL

This PR updates Turing to DynamicPPL 0.9.
Should be straightforward, though I'm wondering if we should export @addlogprob!?

Should be straightforward, though I'm wondering if we should export @addlogprob!?

Let's keep these internal unless users start to complain about it.


GraphQL: Batch requests

Why do we need the batch requests? Please come to read https://simonmar.github.io/bib/papers/haxl-icfp14.pdf
https://github.com/graphql-dotnet/graphql-dotnet/issues/3
https://github.com/dlukez/dataloader-dotnet
https://github.com/dlukez/graphql-dotnet-dataloader
https://github.com/facebook/Haxl/blob/master/example/sql/readme.md <= N + 1 problems
https://ocharles.org.uk/blog/posts/2014-03-24-queries-in-loops-without-a-care-in-the-world.html
We can consider making this batch with Rx.NET at https://stackoverflow.com/questions/7947580/processing-a-batch-of-request-with-reactive-extension, not sure need to try.

GraphQL has already had it, reference to

https://github.com/graphql-dotnet/graphql-dotnet/blob/575bdf98a73b1737bb71455144d28aeed8bb6e24/src/GraphQL.DataLoader.Tests/Types/QueryType.cs
https://github.com/graphql-dotnet/graphql-dotnet/blob/575bdf98a73b1737bb71455144d28aeed8bb6e24/src/GraphQL/DataLoader/DataLoaderContextAccessor.cs
https://github.com/graphql-dotnet/graphql-dotnet/blob/575bdf98a73b1737bb71455144d28aeed8bb6e24/src/GraphQL.DataLoader.Tests/Types/OrderType.cs

Discussion about it at https://github.com/graphql-dotnet/graphql-dotnet/issues/264
Another excellent reference is http://sangria-graphql.org/learn


Fix AttributeError exception when comparing semantic versions.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Thanks for your fix @sk-havok!
@leecow @richlander is there any pre-merge verification you would like to do for script changes in this repo?

FWIW, someone reported this on some slack/mattermost/irc channel to me some time ago and I came up with this exact same fix too. The current code is broken and the patch makes sense to me.

Looks good to me and I'm not aware of any formal verification for this script. cc @johnbeisner who maintains dotnet-install.sh and may have review insights.


Soundness and Logical Relations

@Ailrun Let's split work in this issue. List and pick stuff that you want to work on so we don't overlap.

[ ] subtyping
[ ] realizability
[ ] typing rules

I will first fix #135.

I will look into realizability. subtyping is gonna be interesting. @Ailrun do you want to handle it? or do you want to swap.

By subtyping, you mean subtyping cases? I didn't get it when you said subtyping logrel for soundness, as I expected something like
https://gitlab.com/JasonHuZS/practice/-/blob/master/MLTT/Soundness/Terms.agda#L22-26
(that using syntactic judgement) or similar.

there should be lemmas for subtyping in the logical relations too. it should quantify what happens to the logical relation when there is a subtyping in the domain.

You mean something like
Lemma glu_univ_elem_typ_subtyping : forall {i a a' P P' El El' Γ A},
    {{ Sub a <: a' at i }} ->
    {{ DG a ∈ glu_univ_elem i ↘ P ↘ El }} ->
    {{ DG a' ∈ glu_univ_elem i ↘ P' ↘ El' }} ->
    P Γ A ->
    exists A', {{ Γ ⊢ A ⊆ A' }} /\ P' Γ A'.

It should be universal over A', but otherwise I think this should be the theorem. Not sure if there's more.

How it can be universal in A'? I mean, A' should be a specific type that corresponds to a', not any supertype of A.

put P' Γ A' in the implication too. you just prove A is a subtype of A'.

Then what would that provide? For subtyping cases we need if El G M A m then El' G M A' m for some supertype A'

this one will also prove the previous lemma as part of it. proving this one should also work.

It seems like the subtyping lemmas require realizability. In the following lemma,
Lemma glu_univ_elem_typ_per_univ_escape : forall {i a a' P P' El El' Γ A A'},
    {{ Dom a ≈ a' ∈ per_univ i }} ->
    {{ DG a ∈ glu_univ_elem i ↘ P ↘ El }} ->
    {{ DG a' ∈ glu_univ_elem i ↘ P' ↘ El' }} ->
    {{ Γ ⊢ A ® P }} ->
    {{ Γ ⊢ A' ® P' }} ->
    {{ Γ ⊢ A ≈ A' : Type@i }}.

we need {{{ Γ, IT ⊢ # 0 : IT[Wk] ® ⇑! A 0 ∈ IEl }}} in pi case, which probably is derivable after realizability.


Added strikethrough to the finished buttons

Issue:

Great thank you!
@all-contributors please add @Archis19 for content


i18n(zh-cn): Update markdown-content.mdx

Description (required)
Update markdown-content.mdx
Related issues & labels (optional)

#8728
Suggested label: i18n

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

zh-cn
guides/markdown-content.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Thanks @Nin3lee, seems like there are a few other changes that haven't been applied here yet, could you take a look?


Update authors field in Cargo.tomls to "rust-analyzer developers"

This closes #777

bors r+
Thanks!

s/deverlopers/developers/
Also, I don't know if we are Rust Analyzer or rust-analyzer, but I'm not sure we're rust analyzer - I.e maybe Rust Analyzer is better


fix(super_editor.dart): foudation to avoid web exception

Bug fixed related to https://github.com/superlistapp/super_editor/issues/372 issue

I would like to suggest a different approach here if I may:
I believe it's better to use defaultTargetPlatform so that the appropriate gesture mode is used for mobile devices even in web. defaultTargetPlatform is also from the foundation library and works for all platforms (i.e. it handles both dart:io and dart:html).
Here's what the code would like if it was used.
DocumentGestureMode get _gestureMode {
  if (widget.gestureMode != null) {
    return widget.gestureMode!;
  }

  switch (defaultTargetPlatform) {
    case TargetPlatform.android:
      return DocumentGestureMode.android;
    case TargetPlatform.iOS:
      return DocumentGestureMode.iOS;
    case TargetPlatform.macOS:
    case TargetPlatform.linux:
    case TargetPlatform.windows:
    case TargetPlatform.fuchsia:
      return DocumentGestureMode.mouse;
  }
}

@osaxma I think it really is a better idea, so I'll make the change.

Can you look into why the tests are failing?

It looks like the tests are failing due to the following reason outlined in foundation/platform.dart:
/// In a test environment, the platform returned is [TargetPlatform.android]
/// regardless of the host platform. (Android was chosen because the tests were
/// originally written assuming Android-like behavior, and we added platform
/// adaptations for iOS later). Tests can check iOS behavior by using the
/// platform override APIs (such as [ThemeData.platform] in the material
/// library) or by setting [debugDefaultTargetPlatformOverride].

The failing tests are:

editor_entry_smoke_test.dart
unselectable_component_test.dart

There are two options to workaround this:
1- Overriding the debugDefaultTargetPlatformOverride based on the testing platform.
2- Explicitly passing gestureMode: DocumentGestureMode.mouse to the SuperEditor instances created in those tests (i.e. here, here and here).
I believe the second option is fine for those tests because both of them are sending keyboard events so they're specific to desktop anyway.

*  The errors that were making the tests fail were all coming from document_gestures_touch_android.dart.

I think @osaxma's recommended change makes sense. @Josehdez96 can you update with @osaxma's changes and also try updating the tests to pass? Then I can take another look.

@matthew-carroll Done.


RCV and masked data error

Hi, guys, a debugged some and I think, that somewhere is logic error.
I see dat normal http message processing like raw
message:
"HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: ZsqtHP56BomqoBGI7fsS/AO2fNU=\r\n\r\n"
logic:
(RSVMask & baseAddress[0]) > 0
always will be true, cause the first byte is ascii 'H' = 0x48
i.e. 0x48 & 0x70 always will be > 0, and
if (isMasked > 0 || (RSVMask & baseAddress[0]) > 0) always will be true, even if isMasked = false
please, check dat code, I think the issue with masked data is not fixed

I.e. I think you need create and error that indicates "Raw HTTP in websocket connection"

I'm not really sure what you are seeing or what you mean. The initial HTTP upgrade and switching protocols stuff doesn't fall into the WebSocket packet parsing. It first falls into:
https://github.com/daltoniam/Starscream/blob/master/Source/WebSocket.swift#L488
Where it handles switching from HTTP to WebSockets. Can you provide anymore details?

I have a bug when firstly send a raw data, then backend send innormously a raw http (i.e. it is a backend error), but it can be indicated.

The raw HTTP in a WebSocket connection is basically the same as getting a malformed WebSocket packet. There isn't an simple way to detect what "kind" of malformed packet and the error reporting on what it knows. I don't think a change is necessary as it is properly falling into an error state even if the message is less than ideal due to the variable nature of a malformed packet.


Implement a performant overlay on Waveform renderer.

Redrawing a waveform whenever any parameter changes seems to be not efficient enough. Adding an overlay canvas for the extra information would be better.

With 322dc1a663e69d7074a22db26897c397f8da4dc0, the off-screen rendering is working. Now the overall rendering is quite faster.


Alpine with proj executable not found. Please set the PROJ_DIR variable

Dockerfile
FROM python3.7-alpine

RUN apk add proj proj-dev
RUN pip install pyproj

get error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp_8k0qhw3
       cwd: /tmp/pip-install-zzif953y/pyproj
  Complete output (1 lines):
  proj executable not found. Please set the PROJ_DIR variable.For more information see: https://pyproj4.github.io/pyproj/stable/installation.html
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp_8k0qhw3 Check the logs for full command output.

apk add proj installed PROJ sucessful, but I can‘t get PROJ_DIR

What happens when you run which proj?

which proj

can't get  proj location
/code # which proj
/code #

Hmmm, seems like you will need to manually find where PROJ was installed then.
What about echo $PROJ_LIB?

@snowman2
can’t get $PROJ_LIB
/code # echo $PROJ_LIB

only find proj in there paths:
/usr/share # find / -mtime -5 | grep proj
/usr/lib/libproj.so.15
/usr/lib/libproj.so
/usr/share/proj
/usr/include/proj

This may not work without the proj executable, but you can try: PROJ_DIR=/usr/ pip install pyproj

Fail to find proj executable file in /usr/bin/
    File "/tmp/pip-build-env-pjq69dmf/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 143, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 243, in <module>
      ext_modules=get_extension_modules(),
    File "setup.py", line 147, in get_extension_modules
      proj_dir = get_proj_dir()
    File "setup.py", line 60, in get_proj_dir
      check_proj_version(proj_dir)
    File "setup.py", line 20, in check_proj_version
      proj_ver_bytes = subprocess.check_output(proj, stderr=subprocess.STDOUT)
    File "/usr/local/lib/python3.7/subprocess.py", line 411, in check_output
      **kwargs).stdout
    File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
      with Popen(*popenargs, **kwargs) as process:
    File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
      restore_signals, start_new_session)
    File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename)
  FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/proj': '/usr/bin/proj'
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp1fb53as2 Check the logs for full command output.

apk install proj successful, but did not generate the executable file

is there a proj-bin package?

@snowman2, found the solution by install proj-utl, Thanks
apk add proj-util

/code # which proj
/usr/bin/proj

@maynewong I am going to assume that you were able to successfully install pyproj. If you are still having issues, feet free to reopen and post comments.

@snowman2, found the solution by install proj-util, Thanks
apk add proj-util

/code # which proj
/usr/bin/proj

I was not able to follow the solution suggested in this post. How to set the directory /usr/local/bin/proj in Dockerfile? Could you hep me solve the following error? It is the same problem I think!
#################### Dockerfile ###################
FROM alpine:latest
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV PROJ_DIR=/usr/local
RUN addgroup -S appuser ; adduser -S appuser -G appuser -h /app ;
chown appuser:appuser /app
WORKDIR /app
COPY --chown=appuser:appuser / /app
RUN apk add --update --no-cache python3 libpq uwsgi-python3;
apk add --no-cache python3-dev py3-pip alpine-sdk postgresql-dev postgresql;
apk add proj proj-dev;
apk add proj-util;
/usr/bin/proj;
pip3 install --upgrade pip ;
pip3 install --upgrade setuptools;
pip3 install --no-cache-dir -r requirements.txt
EXPOSE 5432
CMD ["python3", "/app/subscriber_db.py"]
CMD ["python3", "/app/resolver.py"]
####################### Requirements.txt ################
numpy==1.19.0
pandas==1.0.5
sqlalchemy==1.3.16
paho-mqtt==1.5.0
psycopg2==2.8.5
six==1.14.0
requests==2.24.0
cython
pyproj
scipy==1.5.0
statistics==<IP_ADDRESS>
matplotlib
###################### Error #####################
`Collecting pyproj
Downloading pyproj-2.6.1.post1.tar.gz (545 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp406to7y8
cwd: /tmp/pip-install-v2uzfrtq/pyproj
Complete output (34 lines):
PROJ_DIR is set, using existing proj4 installation..
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 280, in
main()
File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 114, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-_7zppa_r/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel
return self._get_build_requires(
File "/tmp/pip-build-env-_7zppa_r/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-_7zppa_r/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 248, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-_7zppa_r/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 243, in
ext_modules=get_extension_modules(),
File "setup.py", line 147, in get_extension_modules
proj_dir = get_proj_dir()
File "setup.py", line 60, in get_proj_dir
check_proj_version(proj_dir)
File "setup.py", line 20, in check_proj_version
proj_ver_bytes = subprocess.check_output(proj, stderr=subprocess.STDOUT)
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
`
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/proj'
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.8/site-packages/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp406to7y8 Check the logs for full command output.


Fix parent reference in distribution module

thanks @hannes-ucsc! I was just struggling with this earlier today, it's like you knew!

Thanks @hannes-ucsc! Just merged; @ryan-williams can you rebase your PRs on this?

sure @fnothaft


ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. deepseek-vl 1.0.0 requires timm>=0.9.16, but you have timm 0.6.13 which is incompatible.

please help me fix this

This should be because one of the requirements.txt files you're using requires timm==0.6.13 to be set instead of timm>=0.6.13, and I've updated the relevant file.

thanks!