failing to upgrade, even after uninstall and reinstall of nodejs

I attempted to use npm-windows-upgrade and received the following error:

C:\Program Files\nodejs\npm-windows-upgrade -> C:\Program Files\nodejs\node_modules\npm-windows-upgrade\bin\npm-windows-
upgrade.js
<EMAIL_ADDRESS>C:\Program Files\nodejs\node_modules\npm-windows-upgrade
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>.7<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>PS C:\WINDOWS\system32> npm-windows-upgradenpm install --global --production npm-windows-upgrade
npm-windows-upgradenpm : The term 'npm-windows-upgradenpm' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1

npm-windows-upgradenpm install --global --production npm-windows-upgr ...

  + CategoryInfo          : ObjectNotFound: (npm-windows-upgradenpm:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException

I have completely uninstalled and reinstalled nodejs, even rebooted before attempting to reinstall and update, and I still get this error.

The error is right there:
npm-windows-upgradenpm install --global --production npm-windows-upgrade
npm-windows-upgradenpm : The term 'npm-windows-upgradenpm' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct

You misspelled things - npm-windows-upgradenpm install --global --production npm-windows-upgrade isn't a thing, you probably want npm install --global --production npm-windows-upgrade followed by npm-windows-upgrade

Seeing as that I didn't actually execute that line of code, I am assuming it is checked into the code base this way, and attempting to run. Wouldn't this be a bug, since I didn't write the command that way?

 Which version do you want to install? (Use arrow keys)
> 4.6.1
  4.6.0
  4.5.0
  4.4.4
  4.4.3
  4.4.2
  4.4.1
(Move up and down to reveal more choices)
PS C:\WINDOWS\system32> node -v
v6.10.3
PS C:\WINDOWS\system32> npm-windows-upgrade
npm-windows-upgrade v4.0.1
? Which version do you want to install? 4.6.1
Checked system for npm installation:
According to PowerShell:
According to npm:        C:\Program Files\nodejs
Decided that npm is installed in C:\Program Files\nodejs
Upgrading npm... |

Upgrading npm (fallback method)... |

You wanted to install npm 4.6.1, but the installed version is 1.4.9.

A common reason is an attempted "npm install npm" or "npm upgrade npm".As of today, the only solution is to completely u
ninstall and then reinstall Node.js.For a small tutorial, please see http://aka.ms/fix-npm-upgrade.
Please consider reporting your trouble to http://aka.ms/npm-issues.

Debug Information:

http_parser: 2.7.0node: 6.10.3v8: 5.1.281.101uv: 1.9.1zlib: 1.2.11ares: 1.10.1-DEVicu: 58.2modules: 48openssl: 1.0.2kos:
 win32 x64OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.15063 N/A Build 15063

also, I am getting this exception popup when I attempt to run npm-windows-upgrade


Feature/async incompatible

Use getters to early exit webdav when using  async_incompatible backends.
Using the type system or fixing all async compatibility issue is big and structural work.
To avoid runtime crash for our users I suggest using this getter as a temporary fix.
tracking issue: https://github.com/rustic-rs/rustic/issues/1181 (see for more details)

As far as I could tell, webdav feature was the only one spawning a runtime in rustic and using it.

Before merging this one:

[ ] rustic_core (core and backend) must be updated to a release that includes rustic-rs/rustic_core#355.

for now clippy fails because we are waiting for rustic_core PR to be merged


Is termui still actively maintained?

Seeing a lot of valuable PRs and issues created over the past few months that haven't seen any interaction from the maintainer/s of this project, which begs the question, is this project still maintained?

I've started taking in some of the more high-priority issues in my fork: https://github.com/dcorbe/termui-dpc
Admittedly, I'm a rank amateur.  But I'd love to do what I can to restore some semblance of maintenance for this project.  I'd appreciate questions/comments/concerns as well as any help the community can offer in curating fixes.  It'd be a shame to let this project die.

I've started taking in some of the more high-priority issues in my fork: https://github.com/dcorbe/termui-dpc
Admittedly, I'm a rank amateur. But I'd love to do what I can to restore some semblance of maintenance for this project. I'd appreciate questions/comments/concerns as well as any help the community can offer in curating fixes. It'd be a shame to let this project die.

Thanks! I really like this project too. I'll give what help I can. I already sent you a pull request for the problem I had with the gauges. :)

@go-hacks Thanks!  I'll take a look at your PR as soon as possible.  I'm aware that I need to get my fork out of @gizak's namespace.  I'll be working over the weekend to get that done and get an initial release out.

@go-hacks Thanks! I'll take a look at your PR as soon as possible. I'm aware that I need to get my fork out of @gizak's namespace. I'll be working over the weekend to get that done and get an initial release out.

Awesome! I look forward to it :)

I know this comes up on occasion and everyone systematically abandons their forks, but I too have forked termui because I use it all the time but it's definitely fallen behind.
However I took the approach of starting a ground up rewrite on tcell which supports 24 bit colors, is actively maintained, etc. I meant to just fork and start fixing things and bring it up to date but I just kept digging deeper until I was replacing entire concepts.
I've replaced a lot of the underlying functionality, and it's a dramatically breaking change thus my fork turned into a rewrite
You can find tooey here I'd love the help. (Original fork found here )

I'm not sure. I made a few things with it a while ago but it seemed like issues weren't being fixed so probably not. I did find a workaround for a couple issues at least. It's been a long time since I messed with this though. The last thing I had started was a sort of commander style file manager but I haven't had the time to work on any side projects for a while. Your tooey seems interesting. Do you have any specific projects in mind for it or are you just trying to build a different framework?
Sent from Proton Mail mobile
-------- Original Message --------
On Sep 1, 2023, 9:25 PM, Charles C. wrote:

I know this comes up on occasion and everyone systematically abandons their forks, but I too have forked termui because I use it all the time but it's definitely fallen behind.
However I took the approach of starting a ground up rewrite on tcell which supports 24 bit colors, is actively maintained, etc. I meant to just fork and start fixing things and bring it up to date but I just kept digging deeper until I was replacing entire concepts.
I've replaced a lot of the underlying functionality, and it's a dramatically breaking change thus my fork turned into a rewrite
You can find tooey here I'd love the help. (Original fork found here )
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@go-hacks I most recently used it to write a CLI tool for displaying a near-realtime feed of data from the tmobile trashcan modem with 5G/LTE signal strength and other stuff that I was using to align my antenna etc.
I just really enjoy the look/feel of termui and use it off and on for various tools. There aren't a lot of frameworks out there that were set up for actual data display and dashboarding and I just enjoy that stuff.
I too was starting to run into issues and noticed that Gizak seems to have disappeared entirely, although he hasn't done much active work in a much longer while. No fault to him, it's the nature of OSS. I just wanted to keep the library alive but also took the approach of making dramatic sweeping changes. I know there's a few frameworks out there right now, several written in tcell even, but what I think set termui apart was the graphical stuff (charts, graphs, etc). I am hoping to re implement those once I've finished sussing out the new layout engine and "get to it".
I'm probably being a little overly optimistic but I honestly didn't think I'd go as deep as I already have. I just meant to start merging PRs and update the underlying engine lol

Impressive. I use tmobile as well but just as a hotspot on my phone. I've played with LTE raspi modules before though. This gomo is very interesting :) Thanks for making this. Frankly I didn't even know you could make something like this for the transceiver.
Sent from Proton Mail mobile
-------- Original Message --------
On Sep 1, 2023, 10:13 PM, Charles C. wrote:

@.***(https://github.com/go-hacks) I most recently used it to write a CLI tool for displaying a near-realtime feed of data from the tmobile trashcan modem with 5G/LTE signal strength and other stuff that I was using to align my antenna etc.
I just really enjoy the look/feel of termui and use it off and on for various tools. There aren't a lot of frameworks out there that were set up for actual data display and dashboarding and I just enjoy that stuff.
I too was starting to run into issues and noticed that Gizak seems to have disappeared entirely, although he hasn't done much active work in a much longer while. No fault to him, it's the nature of OSS. I just wanted to keep the library alive but also took the approach of making dramatic sweeping changes. I know there's a few frameworks out there right now, several written in tcell even, but what I think set termui apart was the graphical stuff (charts, graphs, etc). I am hoping to re implement those once I've finished sussing out the new layout engine and "get to it".
I'm probably being a little overly optimistic but I honestly didn't think I'd go as deep as I already have. I just meant to start merging PRs and update the underlying engine lol
image
—
Reply to this email directly, view it on GitHub, or unsubscribe.
 I did more work in getting the data and making sense of it (I squash RSQ/RSSI/SNR into the same scale of 0-1 based on their respective "good" ranges for presentability) than I did in throwing together the gomo TUI hahaha. I do use it still tho, I keep one running in a tmux on a server in my basement and it exports prometheus metrics I scrape for a grafana dashboard as well. But the termui dashboard was specifically designed for aligning antenna and looking for radio changes / tower hops etc causing issues.

right on... after reviewing some of this code again, I believe the main thing I fixed was the percentage bar not loading right after the bar hit the numbers. I don't know what else I had issues with off hand. I believe my fix was merged into dcorbe's termui-dpc though. If you end up using a percentage bar, you'll probably want that fork vs the original.
Sent from Proton Mail mobile
-------- Original Message --------
On Sep 1, 2023, 10:37 PM, Charles C. wrote:

@.***(https://github.com/go-hacks) the trashcan has an API you can access, but it's ugly as sin. I did more work in getting the data and making sense of it (I squash RSQ/RSSI/SNR into the same scale of 0-1 based on their respective "good" ranges for presentability) than I did in throwing together the gomo TUI hahaha. I do use it still tho, I keep one running in a tmux on a server in my basement and it exports prometheus metrics I scrape for a grafana dashboard as well. But the termui dashboard was specifically designed for aligning antenna and looking for radio changes / tower hops etc causing issues.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

The author seems to be back. Check out the readme update.


Logout?

First of all - thanks for this great example, helps a lot!
My question is - how make complete logout, with ability to change google user?
because right now even after presing "Sign out" button i can not change google account

Please try signing out from the google on the browser you are logged in. This will resolve the issue

It will, but it is not a solution for most site customers. Maybe something else?

It will, but it is not a solution for most site customers. Maybe something else?


Frequent timeout error

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connection.py", line 326, in connect
    ssl_context=context)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/util/ssl_.py", line 329, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.5/ssl.py", line 377, in wrap_socket
    _context=self)
  File "/usr/lib/python3.5/ssl.py", line 752, in __init__
    self.do_handshake()
  File "/usr/lib/python3.5/ssl.py", line 988, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.5/ssl.py", line 633, in do_handshake
    self._sslobj.do_handshake()
socket.timeout: _ssl.c:629: The handshake operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/util/retry.py", line 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 349, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 309, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='wx.qq.com', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.5/site-packages/itchat/components/login.py", line 237, in maintain_loop
    msgList, contactList = self.get_msg()
  File "/home/ubuntu/.local/lib/python3.5/site-packages/itchat/components/login.py", line 302, in get_msg
    r = self.s.post(url, data=json.dumps(data), headers=headers)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/sessions.py", line 555, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/wxpy/utils/misc.py", line 351, in customized_request
    return requests.Session.request(session, method, url, **kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/adapters.py", line 521, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='wx.qq.com', port=443): Read timed out. (read timeout=10)

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
    response.begin()
  File "/usr/lib/python3.5/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.5/socket.py", line 575, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.5/ssl.py", line 929, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.5/ssl.py", line 791, in read
    return self._sslobj.read(len, buffer)
  File "/usr/lib/python3.5/ssl.py", line 575, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/util/retry.py", line 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 389, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 309, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='wx.qq.com', port=443): Read timed out. (read timeout=20)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.5/site-packages/itchat/components/login.py", line 237, in maintain_loop
    msgList, contactList = self.get_msg()
  File "/home/ubuntu/.local/lib/python3.5/site-packages/itchat/components/login.py", line 302, in get_msg
    r = self.s.post(url, data=json.dumps(data), headers=headers)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/sessions.py", line 555, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/wxpy/utils/misc.py", line 351, in customized_request
    return requests.Session.request(session, method, url, **kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/adapters.py", line 521, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='wx.qq.com', port=443): Read timed out. (read timeout=20)

LOG OUT!

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
    response.begin()
  File "/usr/lib/python3.5/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.5/http/client.py", line 266, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/util/retry.py", line 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/packages/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/home/ubuntu/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
    response.begin()
  File "/usr/lib/python3.5/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.5/http/client.py", line 266, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.5/site-packages/itchat/components/login.py", line 237, in maintain_loop
    msgList, contactList = self.get_msg()
  File "/home/ubuntu/.local/lib/python3.5/site-packages/itchat/components/login.py", line 302, in get_msg
    r = self.s.post(url, data=json.dumps(data), headers=headers)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/sessions.py", line 555, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/wxpy/utils/misc.py", line 351, in customized_request
    return requests.Session.request(session, method, url, **kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/.local/lib/python3.5/site-packages/requests/adapters.py", line 490, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

BTW 第一个报错是原有的报错，第二个是根据其他issue经验使用旧版本的requests产生的报错。
基本上没有运行超过一天


Add Custom Model Support and Configurable API URL

Why

Enable users to use newer or custom OpenAI or compatibility models that are not pre-defined in the plugin
Allow users to configure custom API endpoints for compatibility with OpenAI-compatible APIs
Skip token counting for custom models since their context limits may vary

What
Added Features

New "customize" option in model selection dropdown

When selected, shows an additional input field for custom model name
Users can input any valid model identifier (e.g., gpt-4-1106-vision-preview)

Made OpenAI API URL configurable

Moved hardcoded URL to a configurable setting
Maintains the default OpenAI endpoint as fallback
Allows users to use alternative API endpoints

Technical Changes

Added CUSTOMIZE option to CHAT_MODELS
Added customModelName field to settings
Modified token counting logic to skip for custom models
Updated settings UI to dynamically show/hide custom model input
Enhanced type safety and error handling
Maintained backward compatibility with existing configurations

Testing

[x] Custom model name input appears when "customize" is selected
[x] Token counting is skipped for custom models
[x] Default OpenAI URL is preserved when no custom URL is set
[x] All TypeScript type checks pass
[x] Worked for next models / endpoints

[x] grok-beta(https://api.x.ai/v1/chat/completions)
[x] gemini-flash-1.5(https://generativelanguage.googleapis.com/v1beta/openai/chat/completions)

@rpggio
Hi friend.
I really like this plugin and hope to use more models available.
Please review it when you have time, THX.


cmd: vendor x/tools to 3b9d20c52192 [freeze exception]

https://github.com/orgs/golang/teams/release, may we have a freeze exception to land CL 452615. This fixed https://go.dev/issue/16520. It is going to miss the freeze by about an hour. This lands CL 452155 which was reviewed and made it to x/tools before the freeze. We are trying to prevent 452155 from being vendored with x/tools later in the middle of the freeze cycle.

Doesn't need an exception, or really doesn't need to be done at all: we're going to vendor in dependencies soon as part of #36905 anyway. But since you've already got the CL ready feel free to submit it.

Thank you.


GEM vehicle setting?

Hi team Apollo,
I have noticed that there is a canbus config for GEM vehicle.
Are there controller (lateral and longitudinal motion) for GEM vehicle too?
What are the necessary changes to test Apollo in the GEM vehicle?
Thank you.

@wckorealsh motion planning is the same for all vehicles. GEM has it's own dedicated controller though.

Thank you @jinghaomiao ,
So, to run GEM,

Change 'canbus_conf_file=modules/canbus/conf/canbus_conf.pb.txt' to canbus_conf_gem.pb.txt
in module/canbus/confcanbus.conf
Change '--control_conf_file=modules/control/conf/lincoln.pb.txt' in `modules/control/conf' to something else?

Does step 2 necessary?

Closed due to inactivity. If the problem persists, pls feel free to reopen it or create a new one and refer to it.


ctrld v1.1 does not handle TCP DNS queries

I am running ctrld 1.1 as a service on Linux/aarch64.
I noticed that DNS queries that are sent to ctrld over TCP port 53 are not answered. It appears that ctrld immediately sends a Reset in response to the TCP SYN message. This causes issues with some IoT devices on my network that attempt to use DNS over TCP at times, and could really affect any device that needs to send a DNS request over TCP; for example if the DNS response is large and is sent with the truncate bit set. The behavior can be replicated via dig commands.
Example using dig:
% dig verify.controld.com +tcp
;; Connection to <IP_ADDRESS>#53(<IP_ADDRESS>) for verify.controld.com failed: connection refused.
Corresponding traffic capture via tcpdump on the system running ctrld:
11:38:41.063216 IP <IP_ADDRESS>.64853 > <IP_ADDRESS>.53: Flags [S], seq<PHONE_NUMBER>, win 65535, options [mss 1460,nop,wscale 6,nop,nop,TS val<PHONE_NUMBER> ecr 0,sackOK,eol], length 0
11:38:41.063405 IP <IP_ADDRESS>.53 > <IP_ADDRESS>.64853: Flags [R.], seq 0, ack<PHONE_NUMBER>, win 0, length 0

ctrld itself does not log any entry for this request in the log, when set to debug level.
My listener setup is simple:
[listener]
  [listener.0]
    ip = '<IP_ADDRESS>'
    port = 53

Thanks, we'll get this addressed.

This is slated to be resolved in v1.2 (next major release).

Great news, thanks Yegor. If you need any help testing I am happy to help there since apparently I have some devices that love DNS over TCP.

@chr-lei We released v1.1.2 which now includes a TCP listener.

@yegors - loaded up v1.1.2 tonight and it's working perfectly, you guys rock!

Awesome opossum!


Use a single system for events

Instead of registering multiple systems, we can use a single system by using custom functions (similar to what we do for components).
This will make the public API simpler and more efficient.
Bevy did a similar optimization recently: https://github.com/bevyengine/bevy/pull/12936 and we can benefit from the provided EventRegistry.

I will try to take this. And will try to fix the 1 channel per event as well. This is really a foot gun for us and also limits the amount of events the app can have.

I will try to take this.

Great, I will be happy to review it. Let me know if you have any questions about the implementation.

And will try to fix the 1 channel per event as well.

We need control over reliability guarantee. So maybe 3 channels for each event type.


New Morphology methods and improvements

Aims of this PR:

Deprecate dilateVoxels and erodeVoxels in favour of dilateActiveLeafValues and erodeActiveLeafValues
Introduce erodeActiveValues to match dialteActiveValues to handle tile policies for erosion
Introduce multithreaded erosion of edge and vertex neighbours
Significantly improve the performance of large dilations
Remove unused code and significantly clean-up Morphology.h such that namespaced classes can be used by clients for more granular control

NOTE:

Incorporates PR #751
erodeVoxels calls pruneLevelSet, the new methods do not and leave such decisions either to the tile policy or client code.

As of this PR dilateVoxels simply called dilateActiveLeafValues (unthreaded) and erodeVoxels calls erodeActiveLeafValues, but follows with a call to pruneLevelSet. The behaviour of these old functions thus remains exactly the same.
Results for discussion:
https://docs.google.com/spreadsheets/d/13-6yTmmPdj_gLLDj-3hgaCUaDy_-hgs-aY1BoMQr6PQ/edit?usp=sharing
Signed-off-by: Nick Avramoussis<EMAIL_ADDRESS>

I have a single commit way back when that wasn't signed off which is extremely annoying. As we can't use the DCO signoff button, I'll have to remake this PR, but I will do that once it's been approve by 1 more person

@danrbailey

Should there also be a unit test for the new activation header?

Yes? But I'm not going to add it in this PR. I didn't touch this code, it's simply been moved out of Morphology.h.

You presented some nice benchmark graphs of the results of this PR - are these included in the unit tests now?

No, you can see on the spreadsheets that the VDBs in use were Houdini test assets.

Many of the parallel_for methods you're using do very simple operations that I imagine is only a handful of instructions, did you consider using a larger grain size than 1?

No, I can do another pass.

I would expect the non-threaded mode to call a lambda directly rather than to call into tbb::parallel_for() with a very large grain size.

As would I, I will change these.

@danrbailey

Should there also be a unit test for the new activation header?

Yes? But I'm not going to add it in this PR. I didn't touch this code, it's simply been moved out of Morphology.h.

Ok, that's fine. Perhaps I can add this when I look at switching out the implementation of the VDB Activate SOP.

You presented some nice benchmark graphs of the results of this PR - are these included in the unit tests now?

No, you can see on the spreadsheets that the VDBs in use were Houdini test assets.

If you happen to have it still, would be nice to email around the hip file with these tests in it. If not, no worries.

Many of the parallel_for methods you're using do very simple operations that I imagine is only a handful of instructions, did you consider using a larger grain size than 1?

No, I can do another pass.

I would expect the non-threaded mode to call a lambda directly rather than to call into tbb::parallel_for() with a very large grain size.

As would I, I will change these.

Great, thanks for the other changes.

If you happen to have it still, would be nice to email around the hip file with these tests in it. If not, no worries.

I have the scene and will e-mail it around soon.
I think I've addressed all feedback. A reminder that once this is approved I'll have to close and re-create these changes on a new PR because of a single commit missing dco signoff and being told not to use the nice dco button :|

I think we should bump the next release to 8.1 once this PR gets merged as well as there are some API changes included in this PR.

Awesome. thanks all. I've remade the PR here: https://github.com/AcademySoftwareFoundation/openvdb/pull/973
Closing this due to DCO issues. PR https://github.com/AcademySoftwareFoundation/openvdb/pull/973 is completely identical but without the history.


Make directory syncing work on Windows

Build is failing because nightly cargo is busted.
So on Windows we require write access, but on Unix we only need read access. Could this be a problem if there's already an open handle somewhere else? Or is this only called when the file is first created?

I've never used tantivy, but it doesn't look like it's keeping open handles for the directory. The function is called whenever files are created or deleted.
About Unix, it's strange. I tried not requesting for read access and it failed with EINVAL, and I tried requesting write access and it filed with EISDIR:
       EISDIR pathname refers to a directory and the access requested involved writing (that is, O_WRONLY or O_RDWR is set).

On the other hand, the fsync() manpage says:
       On some UNIX systems (but not Linux), fd must be a writable file descriptor.

although, of course, a directory handle is arguably not a file descriptor. I have no idea what Mac OS does.

Closing in favour of the branch.


Build script failure hidden by dependency build failure

# a/Cargo.toml
[package]

name = "a"
version = "0.0.1"
authors = []
build = "build.rs"

[dependencies.b]
path = "../b"

// a/build.rs
fn main() { std::os::set_exit_status(1) }

# b/Cargo.toml
[package]

name = "b"
version = "0.0.1"
authors = []

// b/src/lib.rs
invalid

Then in a:
cargo clean && cargo build
   Compiling a v0.0.1 (file:///home/huon/projects/test-rust/tmp/a)
   Compiling b v0.0.1 (file:///home/huon/projects/test-rust/tmp/a)
/home/huon/projects/test-rust/tmp/b/src/lib.rs:1:1: 1:8 error: expected item, found `invalid`
/home/huon/projects/test-rust/tmp/b/src/lib.rs:1 invalid
                                                 ^~~~~~~
Build failed, waiting for other jobs to finish...
Could not compile `b`.

The user is probably certainly more interested in the build script failing to build/run than the dependency. @alexcrichton's suggested resolution of https://github.com/rust-lang/cargo/issues/832 would possibly resolve this automatically too.

@alexcrichton is It still open? I would like to contribute

@marti1125 I think this may have actually been fixed in the meantime, but if you'd like to add a test for this that'd be most welcome!

@alexcrichton could you tell me more about the test please =D

Sure yeah, all of Cargo's tests live in tests/*.rs in this repository, and you'd probably just extend tests/build.rs for this. You can copy/paste from previous examples but the general idea is that a Cargo project is created and then you run cargo build, placing assertions on the output of Cargo and the exit status of the process.

hello @alexcrichton what is you nick at irc who can help me with this please

I think this may have actually been fixed in the meantime

I think it hasn't, sadly.
It's also slightly bit-rot: I changed a/build.rs to the following instead:
fn main() { panic!("boom!"); }

The new output is fundamentally the same:
$ cargo clean && cargo build
   Compiling b v0.0.1 (file:///s/t-build-script-failure/b)
   Compiling a v0.0.1 (file:///s/t-build-script-failure/a)
error: expected one of `!` or `::`, found `<eof>`
 --> /s/t-build-script-failure/b/src/lib.rs:1:1
  |
1 | invalid
  | ^^^^^^^ expected one of `!` or `::` here

error: aborting due to previous error

error: Could not compile `b`.
warning: build failed, waiting for other jobs to finish...
error: build failed

How should the other failures be reported? With handle_error?

@dwijnand in your reproduction are you sure that the build script executed? It may be that the build script was only executed, not run, in that example

Given build.rs:
fn main() {
    use std::fs::File;
    use std::io::prelude::*;

    let mut file = File::create("marker.txt").unwrap();
    file.write_all(b"Hi Alex!").unwrap();

    panic!("boom!");
}

Looks like it doesn't even run the build script!
17:40:35 $ cargo clean && cargo build
   Compiling a v0.0.1 (file:///s/t-build-script-failure/a)
   Compiling b v0.0.1 (file:///s/t-build-script-failure/b)
error: expected one of `!` or `::`, found `<eof>`
 --> /s/t-build-script-failure/b/src/lib.rs:1:1
  |
1 | invalid
  | ^^^^^^^ expected one of `!` or `::` here

error: aborting due to previous error

error: Could not compile `b`.
warning: build failed, waiting for other jobs to finish...
error: build failed

17:40:54 ! cat marker.txt
cat: marker.txt: No such file or directory

in that example

Am I not accurately reproducing the reported issue? Maybe I've misunderstood some part of it.

@dwijnand oh if you execute cargo build -v you can see:
   Compiling b v0.1.0 (file:///home/alex/code/cargo-vendor/a/b)
   Compiling a v0.1.0 (file:///home/alex/code/cargo-vendor/a)
     Running `rustc --crate-name b b/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=159cd516bfae43d6 -C extra-filename=-159cd516bfae43d6 --out-dir /home/alex/code/cargo-vendor/a/target/debug/deps -C incremental=/home/alex/code/cargo-vendor/a/target/debug/incremental -L dependency=/home/alex/code/cargo-vendor/a/target/debug/deps`
     Running `rustc --crate-name build_script_build build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=9c9757b7d885b49f -C extra-filename=-9c9757b7d885b49f --out-dir /home/alex/code/cargo-vendor/a/target/debug/build/a-9c9757b7d885b49f -C incremental=/home/alex/code/cargo-vendor/a/target/debug/incremental -L dependency=/home/alex/code/cargo-vendor/a/target/debug/deps`
error: expected one of `!` or `::`, found `<eof>`
 --> b/src/lib.rs:1:1
  |
1 | ix
  | ^^ expected one of `!` or `::` here

error: aborting due to previous error

error: Could not compile `b`.

Caused by:
  process didn't exit successfully: `rustc --crate-name b b/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=159cd516bfae43d6 -C extra-filename=-159cd516bfae43d6 --out-dir /home/alex/code/cargo-vendor/a/target/debug/deps -C incremental=/home/alex/code/cargo-vendor/a/target/debug/incremental -L dependency=/home/alex/code/cargo-vendor/a/target/debug/deps` (exit code: 101)
warning: build failed, waiting for other jobs to finish...
error: build failed

where the build script wasn't even executed here, it was just compiled

@dwijnand oh I think this has since been basically fixed, although it may not be easily testable. Cargo will stop running commands as soon as one fails, which is why you're not seeing the build script output

Oh I see!
Then I'll leave this one as is. (and suggest dropping E-easy)

Im trying to build cargo but got an error
Need help! Thanks in advance
achala@laptop:~/GIT/mir2wasm$ cargo build
Compiling mir2wasm v0.1.0 (file:///home/achala/GIT/mir2wasm)
error: failed to run custom build command for mir2wasm v0.1.0 (file:///home/achala/GIT/mir2wasm)
process didn't exit successfully: /home/achala/GIT/mir2wasm/target/debug/build/mir2wasm-4f880614b2dd408e/build-script-build (exit code: 101)
--- stdout
running: "cmake" "/home/achala/GIT/mir2wasm/binaryen" "-DBUILD_STATIC_LIB=ON" "-DCMAKE_INSTALL_PREFIX=/home/achala/GIT/mir2wasm/target/debug/build/mir2wasm-cadbd25f2f277410/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC-m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Debug"
-- Building with -std=c++11
-- Building with -msse2
-- Building with -mfpmath=sse
-- Building with -Wall
-- Building with -Werror
-- Building with -Wextra
-- Building with -Wno-unused-parameter
-- Building with -fno-omit-frame-pointer
-- Building with -fPIC
-- Building with -O0
-- Building with -g3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/achala/GIT/mir2wasm/target/debug/build/mir2wasm-cadbd25f2f277410/out/build
running: "cmake" "--build" "." "--target" "install" "--config" "Debug" "--"
[ 7%] Building CXX object src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/optimizer-shared.cpp.o
[ 7%] Building CXX object src/asmjs/CMakeFiles/asmjs.dir/shared-constants.cpp.o
[ 14%] Built target wasm
[ 14%] Built target ast
[ 15%] Building CXX object src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/parser.cpp.o
[ 56%] Built target passes
[ 57%] Building CXX object src/support/CMakeFiles/support.dir/threads.cpp.o
src/asmjs/CMakeFiles/asmjs.dir/build.make:86: recipe for target 'src/asmjs/CMakeFiles/asmjs.dir/shared-constants.cpp.o' failed
CMakeFiles/Makefile2:430: recipe for target 'src/asmjs/CMakeFiles/asmjs.dir/all' failed
src/support/CMakeFiles/support.dir/build.make:206: recipe for target 'src/support/CMakeFiles/support.dir/threads.cpp.o' failed
CMakeFiles/Makefile2:595: recipe for target 'src/support/CMakeFiles/support.dir/all' failed
src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/build.make:86: recipe for target 'src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/parser.cpp.o' failed
src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/build.make:62: recipe for target 'src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/optimizer-shared.cpp.o' failed
CMakeFiles/Makefile2:485: recipe for target 'src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/all' failed
Makefile:129: recipe for target 'all' failed
--- stderr
In file included from /home/achala/GIT/mir2wasm/binaryen/src/emscripten-optimizer/istring.h:32:0,
from /home/achala/GIT/mir2wasm/binaryen/src/asmjs/shared-constants.h:20,
from /home/achala/GIT/mir2wasm/binaryen/src/asmjs/shared-constants.cpp:17:
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:51:8: error: ‘function’ in namespace ‘std’ does not name a template type
std::function<ThreadWorkState ()> doWork = nullptr;
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:59:18: error: ‘std::function’ has not been declared
void work(std::function<ThreadWorkState ()> doWork);
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:59:26: error: expected ‘,’ or ‘...’ before ‘<’ token
void work(std::function<ThreadWorkState ()> doWork);
^
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: error: ‘function’ is not a member of ‘std’
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: note: suggested alternative: ‘is_function’
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~~~~~~~
is_function
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: error: ‘function’ is not a member of ‘std’
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: note: suggested alternative: ‘is_function’
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~~~~~~~
is_function
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:56: error: template argument 1 is invalid
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:56: error: template argument 2 is invalid
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:57: error: expected ‘,’ or ‘...’ before ‘>’ token
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~
In file included from /home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:23:0:
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:51:8: error: ‘function’ in namespace ‘std’ does not name a template type
std::function<ThreadWorkState ()> doWork = nullptr;
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:59:18: error: ‘std::function’ has not been declared
void work(std::function<ThreadWorkState ()> doWork);
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:59:26: error: expected ‘,’ or ‘...’ before ‘<’ token
void work(std::function<ThreadWorkState ()> doWork);
^
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: error: ‘function’ is not a member of ‘std’
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: note: suggested alternative: ‘is_function’
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~~~~~~~
is_function
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: error: ‘function’ is not a member of ‘std’
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: note: suggested alternative: ‘is_function’
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~~~~~~~
is_function
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:56: error: template argument 1 is invalid
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:56: error: template argument 2 is invalid
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:57: error: expected ‘,’ or ‘...’ before ‘>’ token
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:65:24: error: variable or field ‘work’ declared void
void Thread::work(std::function<ThreadWorkState ()> doWork_) {
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:65:24: error: ‘function’ is not a member of ‘std’
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:65:24: note: suggested alternative: ‘is_function’
void Thread::work(std::function<ThreadWorkState ()> doWork_) {
^~~~~~~~
is_function
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:65:53: error: ‘doWork_’ was not declared in this scope
void Thread::work(std::function<ThreadWorkState ()> doWork_) {
^~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp: In static member function ‘static void wasm::Thread::mainLoop(void*)’:
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:83:17: error: ‘class wasm::Thread’ has no member named ‘doWork’; did you mean ‘work’?
if (self->doWork) {
^~~~~~
work
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:86:22: error: ‘class wasm::Thread’ has no member named ‘doWork’; did you mean ‘work’?
while (self->doWork() == ThreadWorkState::More) {}
^~~~~~
work
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:87:15: error: ‘class wasm::Thread’ has no member named ‘doWork’; did you mean ‘work’?
self->doWork = nullptr;
^~~~~~
work
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:96:33: error: ‘class wasm::Thread’ has no member named ‘doWork’; did you mean ‘work’?
if (!self->done && !self->doWork) {
^~~~~~
work
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp: At global scope:
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:137:40: error: ‘function’ is not a member of ‘std’
void ThreadPool::work(std::vector<std::function<ThreadWorkState ()>>& doWorkers) {
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:137:40: note: suggested alternative: ‘is_function’
void ThreadPool::work(std::vector<std::function<ThreadWorkState ()>>& doWorkers) {
^~~~~~~~
is_function
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:137:40: error: ‘function’ is not a member of ‘std’
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:137:40: note: suggested alternative: ‘is_function’
void ThreadPool::work(std::vector<std::function<ThreadWorkState ()>>& doWorkers) {
^~~~~~~~
is_function
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:137:66: error: template argument 1 is invalid
void ThreadPool::work(std::vector<std::function<ThreadWorkState ()>>& doWorkers) {
^
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:137:66: error: template argument 2 is invalid
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:137:28: error: variable or field ‘work’ declared void
void ThreadPool::work(std::vector<std::function<ThreadWorkState ()>>& doWorkers) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.cpp:137:71: error: ‘doWorkers’ was not declared in this scope
void ThreadPool::work(std::vector<std::function<ThreadWorkState ()>>& doWorkers) {
^~~~~~~~~
make[2]: *** [src/asmjs/CMakeFiles/asmjs.dir/shared-constants.cpp.o] Error 1
make[1]: *** [src/asmjs/CMakeFiles/asmjs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/achala/GIT/mir2wasm/binaryen/src/emscripten-optimizer/istring.h:32:0,
from /home/achala/GIT/mir2wasm/binaryen/src/emscripten-optimizer/parser.h:31,
from /home/achala/GIT/mir2wasm/binaryen/src/emscripten-optimizer/parser.cpp:17:
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:51:8: error: ‘function’ in namespace ‘std’ does not name a template type
std::function<ThreadWorkState ()> doWork = nullptr;
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:59:18: error: ‘std::function’ has not been declared
void work(std::function<ThreadWorkState ()> doWork);
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:59:26: error: expected ‘,’ or ‘...’ before ‘<’ token
void work(std::function<ThreadWorkState ()> doWork);
^
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: error: ‘function’ is not a member of ‘std’
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~~~~~~~
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: note: suggested alternative: ‘is_function’
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~~~~~~~
is_function
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: error: ‘function’ is not a member of ‘std’
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:30: note: suggested alternative: ‘is_function’
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~~~~~~~
is_function
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:56: error: template argument 1 is invalid
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:56: error: template argument 2 is invalid
/home/achala/GIT/mir2wasm/binaryen/src/support/threads.h:93:57: error: expected ‘,’ or ‘...’ before ‘>’ token
void work(std::vector<std::function<ThreadWorkState ()>>& doWorkers);
^~
make[2]: *** [src/support/CMakeFiles/support.dir/threads.cpp.o] Error 1
make[1]: *** [src/support/CMakeFiles/support.dir/all] Error 2
make[2]: *** [src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/parser.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/achala/GIT/mir2wasm/binaryen/src/emscripten-optimizer/optimizer-shared.cpp: In function ‘AsmSign detectSign(cashew::Ref, cashew::IString)’:
/home/achala/GIT/mir2wasm/binaryen/src/emscripten-optimizer/optimizer-shared.cpp:157:9: error: this statement may fall through [-Werror=implicit-fallthrough=]
if (op == TRSHIFT) return ASM_UNSIGNED;
^~
/home/achala/GIT/mir2wasm/binaryen/src/emscripten-optimizer/optimizer-shared.cpp:160:7: note: here
case '|': case '&': case '^': case '<': case '=': case '!': return ASM_SIGNED;
^~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/optimizer-shared.cpp.o] Error 1
make[1]: *** [src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/all] Error 2
make: *** [all] Error 2
thread '' panicked at '
command did not execute successfully, got: exit code: 2
build script failed, must exit now', /home/achala/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.33/src/lib.rs:773:5
note: Run with RUST_BACKTRACE=1 for a backtrace.
thread 'main' panicked at 'called Result::unwrap() on an Err value: Any', libcore/result.rs:945:5

I'm going to close this, I don't think there is anything to do here.  What happens depends on what is being built, and in both cases I think Cargo does the right thing.  I don't think a test would be helpful here.
The dependency graph looks like:
build-a
  │
  ├──> build-b
  │
  └──> run script-a ──> build script-a

In a clean state, build-b and build-script-a will run at the same time. If it fails fast enough, then the build script never gets a chance to run.  If the build script is already built (or build-b takes a long time to fail), then build-b and run script-a run at the same time, and you get both errors displayed.


compaction failed, err="reload blocks: head truncate failed: create checkpoint: read segments: corruption in segment data/wal/00003343 at 13025513: unexpected checksum 8cab5432, expected afc8abd0"

This error occurs from 18th of this month, now the data only until to 18th, and the last few hours.
Before that, due to out of disk space, it failed when  “write to WAL”. Is this cause the this error? But after that, the compaction was still suceessed once, then continued failed, until now.
Looking forward to your reply！

I checked the wal directory, there are datas from the 18th to today, how can I slove this error, and compact these datas.

Please fill in the template so we can determine if it is a known bug:
https://github.com/prometheus/prometheus/blob/master/.github/ISSUE_TEMPLATE/bug_report.md

We looked at this in the bugscrub and without the information requested above we can't proceed further, so are closing this pending that information.


⚠ Jerry Savelle Ministries International Australia has degraded performance

In 472412a, Jerry Savelle Ministries International Australia (https://jsmiaustralia.org) experienced degraded performance:

HTTP code: 200
Response time: 6196 ms

Resolved: Jerry Savelle Ministries International Australia performance has improved in 55d7f2e after .


Initial comments on JOSS submission

Hi @ben-cassese et al!
I'm one of the reviewers for the JOSS submission; I have a few initial comments (mostly on the "Documentation" and "Software paper" sections of the checklist) that I figured might be easier to share now, while I finish taking a look at the rest of the submission.
Functionality:

Installation: I use a Linux machine, and following the installation instructions I tried all three options; options 1 and 3 worked well out-of-the-box, but trying option 2 I got the following error: ERROR: Invalid requirement: 'squishyplanet@git:https://github.com/ben-cassese/squishyplanet' Hint: It looks like a path. File 'squishyplanet@git:https://github.com/ben-cassese/squishyplanet' does not exist. . Not sure if the command line showed on option 2 is also intended to be an out-of-the-box line to be run or if previous steps are implied for the source installation, but flagging this as some clarification would be useful.

Documentation:

Example usage: Most of the core methods are amply used in the documentation examples, except for OblateSystem.loglike(). I believe it would be useful to show an example using this method on real or simulated data, since it would also help satisfy the checklist requirement of "including examples of how to use the software (ideally to solve real-world analysis problems)".
Functionality documentation: I think it would be helpful to define the conventions used for some of the orbital elements (e.g., is an "edge-on" orbit i=0° or i=90°, in which direction does big Omega increase, etc). Either in the API docs or in the geometry visualization section would be helpful.

Software paper:

State of the field: In the second paragraph of the Statement of Need section, it would be helpful to have a few words on how squishyplanet differs from ellc (the code from Maxted 2016) since, from what I understand in the text, Maxted 2016 can also model non-spherical transits.

I will continue to look at the code and text in the upcoming days, and feel free to reach out for any clarification on the comments above.
Thanks!
Review issue

Hi! I'm the second reviewer for this JOSS submission. I'm currently creating a separate GitHub issue with my comments but I just wanted to +1 on all @rferrerc's comments and add that I also have an issue with only the second installation method on my MacBook M1:
python -m pip install squishyplanet@git:https://github.com/ben-cassese/squishyplanet
Collecting squishyplanet@ git:///https://github.com/ben-cassese/squishyplanet
ERROR: Could not install packages due to an OSError: No connection adapters were found for 'git:///https://github.com/ben-cassese/squishyplanet'

Hi both!
Thanks for the initial comments! I've started working on these fixes and will let you know when they're ready for another look. In the meantime, just wanted to acknowledge that I'm digging into them this week 🙂

Hi @rferrerc! I've tried to address these comments, let me know what you think and if there's more to improve on these. Here's a summary of the changes:

Installation: I use a Linux machine, and following the installation instructions I tried all three options; options 1 and 3 worked well out-of-the-box, but trying option 2 I got the following error: ERROR: Invalid requirement: 'squishyplanet@git:https://github.com/ben-cassese/squishyplanet' Hint: It looks like a path. File 'squishyplanet@git:https://github.com/ben-cassese/squishyplanet' does not exist. . Not sure if the command line showed on option 2 is also intended to be an out-of-the-box line to be run or if previous steps are implied for the source installation, but flagging this as some clarification would be useful.

Thanks to you (and @catrionamurray!) for catching this- I just copied the wrong commands there, but the instructions should be fixed now. Let me know if you still have trouble.

Example usage: Most of the core methods are amply used in the documentation examples, except for OblateSystem.loglike(). I believe it would be useful to show an example using this method on real or simulated data, since it would also help satisfy the checklist requirement of "including examples of how to use the software (ideally to solve real-world analysis problems)".

I've added a new tutorial to the online documentation, Fit a transit of an oblate planet. This walks a user through an end-to-end mock analysis project, and along the way touches on most of the squishyplanet's capabilities. It shows how to a) simulate an accurate transit using a high-order polynomial fit to a limb darkening profile generated from a stellar model grid (I also added a convenience function to OblateSystem to help with this), b) how to use OblateSystem.loglike to obtain a best-fit solution, then c) how to use squishyplanet within a nested sampling framework.

Functionality documentation: I think it would be helpful to define the conventions used for some of the orbital elements (e.g., is an "edge-on" orbit i=0° or i=90°, in which direction does big Omega increase, etc). Either in the API docs or in the geometry visualization section would be helpful.

I've added another section to the illustrations notebook that goes over our angle conventions.

State of the field: In the second paragraph of the Statement of Need section, it would be helpful to have a few words on how squishyplanet differs from ellc (the code from Maxted 2016) since, from what I understand in the text, Maxted 2016 can also model non-spherical transits.

I've included a footnote in the paper explicitly comparing the two codes. They do share a similar overarching goal, but each has some capabilities the other lacks, and they implement different algorithms in different languages under the hood.
Let me know if these changes address your concerns, or if you have more! Thanks again for volunteering to review.

Hi @ben-cassese , thanks for addressing the comments! The fixes look great, the second installation works as intended now and the new tutorial is excellent! I have checked the corresponding items in the checklist. I'm currently putting together some small comments on the functionality section, but might create a separate issue to keep things focused. I think this issue can be closed now.
Thanks!


FullGroupJoin test improvements

Fixes #325

@atifaziz thanks for the review. I've changed the PR accordingly.

Do you prefer spelling out (k, f, s) => (k, f, s) over just using the ValueTuple.Create as method group?

Not really. Changed
I also changed to unpack the tuple in the loop.

@fsateler What do you make of 9fa49f6e386320e16bd129a0f8c68e4b60701333? Happy to revert but just went easier on my aging & sore eyes. 😄 Usually I don't do statically import enums but here it's really scoped to a specific case, one test file and makes for easier reading.

@atifaziz Looks good to me. I had never done that, but I agree that for
this very local use it looks good.
On Thu, Jul 6, 2017 at 12:04 PM, Atif Aziz<EMAIL_ADDRESS>wrote:

@fsateler https://github.com/fsateler What do you make of 9fa49f6
https://github.com/morelinq/MoreLINQ/commit/9fa49f6e386320e16bd129a0f8c68e4b60701333?
Happy to revert but just went easier on my aging & sore eyes. 😄 Usually
I don't do statically import enums but here it's really scoped to a
specific case, one test file and makes for easier reading.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/morelinq/MoreLINQ/pull/330#issuecomment-313441634,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQsHeXA71nU_ZJR5XAyt3C1U7i7_kB2ks5sLQWZgaJpZM4ONtw7
.

--
Saludos,
Felipe Sateler


Provide default argument value

Problem
Can't just provide a metric name to the metric call
Solution
Fixes https://github.com/BBC-News/alephant-logger-cloudwatch/issues/4

@revett @darnould :cake: ?

:cake:


unsupported broadcast issue in Greater op

Description

unsupported broadcast issue in Greater op

Reproduce
git checkout kkannan/greator_and_not_equal_mlir_op_issue
git submodule update --recursive
cmake --build build -- install_ttforge
pytest forge/test/mlir/test_ops.py::test_greater[shape_x0-1] -svv

Observed Behaviour
E       RuntimeError: TT_THROW @ /proj_sw/user_dev/kkannan/forge_oct21/tt-forge-fe/third_party/tt-mlir/third_party/tt-metal/src/tt-metal/ttnn/cpp/ttnn/operations/eltwise/binary/device/binary_device_operation.cpp:46: tt::exception
E       info:
E       ttnn::operations::binary::BinaryDeviceOperation: unsupported broadcast

Logs

greater_op_issue.log

@kamalrajkannan78 can you add TTIR for this issue as well? That way, it's much easier for MLIR folks to reproduce these issues without the need of running Forge-Fe as well :))

TTIR graphs are present in attached log files @nvukobratTT


"ERROR! 'ansible_hostname' is undefined"

Following this guide to get ceph-ansible playbooks running:
http://docs.ceph.com/ceph-ansible/master/
Running the basic playbook:
ansible-playbook --diff -vvv -e gather_facts=True -e gathering=smart -e ansible_python_interpreter=/usr/bin/python -i hosts/ceph ceph_install.yml
I get this failure:
TASK [ceph.ceph-common : set_fact] ********************************************* task path: /opt/ceph/roles/ceph-common/tasks/facts.yml:27 fatal: [<IP_ADDRESS>]: FAILED! => {"failed": true, "msg": "ERROR! 'ansible_hostname' is undefined"} fatal: [<IP_ADDRESS>]: FAILED! => {"failed": true, "msg": "ERROR! 'ansible_hostname' is undefined"} fatal: [<IP_ADDRESS>]: FAILED! => {"failed": true, "msg": "ERROR! 'ansible_hostname' is undefined"}
However, I set gather_facts=true everywhere possible - still no result.
I get this error for ansible versions <IP_ADDRESS>, <IP_ADDRESS>,<IP_ADDRESS>
What's going on here? Additional info:

Inventory file:

`
[main]
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
[osds]
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
[mdss]
<IP_ADDRESS>
<IP_ADDRESS>
[mons]
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
[rgws]
<IP_ADDRESS>
[clients:children]
osds
[rbd-docker-nodes:children]
osds
[workstations]
<IP_ADDRESS>
`

@archmangler how does the hostname configuration on your nodes look like ?

no activity since a while, feel free to re-open


typescript port of the pagination example

This is a direct port of the pagination example to typescript.  It demonstrates how to extend the default types to reflect the plugins used by useTable.   See ./src/types/react-table-local.d.ts.  In this case, the usePagination plugin is used, and so those related types are merged with the defaults.
Note that there are some settings in this project that should change as soon as the final types are available, but they might be a hint to anyone using these types in ths short term.

This package uses patch-package to removenode_modules/react-table/index.d.ts, since tsc was finding it despite my best efforts.
The desired types have been copied into src/types/react-table.d.ts

Sadly I couldn't work out how to directly reference the index.d.ts that's in root from the example, tsc, really doesn't want to access files outside it's src root.
There are two bug fixes to the index.d.ts file - if people prefer I can submit them in a separate PR, and then update this to match later.

There have been changes to the API around useTableState. Please see the latest commits and release to get up to date.

note that this needs updating to support the new api changes.

I rebased my branch against master, hence the force-push, but it was cleaner than a big merge.
This PR has been cleaned up to support 7.0.0-beta.12, and is working correctly locally now.

@tannerlinsley nice, been trying to figure out what the problem was with the missing export of useTableState but I guess it's intentional

@ggascoigne I can't seem to get this working with the controlled pagination example. It seems to throw this error
I seem to be hitting this error: Object literal may only specify known properties, and 'manualPagination' does not exist in type 'TableOptions<object>'

@tannerlinsley is there any way to re-run these tests, I didn't see anything in the logs to suggest that they failed because of anything in the changeset.

Make a commit to this PR with a comment or line-break. Should trigger the build again.

ah, I'd assumed that prettier would remove such a change.

I just rebased on the latest master to see how that helps.
That said, I did notice that the ci:tests fail for me on master (latest).  I get several errors like this:
 FAIL   unit  src/plugin-hooks/tests/useSortBy.test.js
  ● Test suite failed to run

    /Users/ggp/dev/tw-git/react-table/configs/tests/setup.common.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import '@testing-library/jest-dom/extend-expect';
                                                                                ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:537:17)
      at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:579:25)
          at Array.forEach (<anonymous>)

 FAIL   unit  src/hooks/tests/useTable.test.js
  ● Test suite failed to run

    /Users/ggp/dev/tw-git/react-table/configs/tests/setup.common.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import '@testing-library/jest-dom/extend-expect';
                                                                                ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:537:17)
      at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:579:25)
          at Array.forEach (<anonymous>)

cleaned up the history and rebased on the latest version of the library.

Hi when trying to import from react-table in typescript I'm getting "Attempted import error: 'useFilters' is not exported from 'react-table'."
Just wondering if you want me to fix this?

I'm currently planning a restructure of the API that will be easier to add types for hopefully. Also, types are being moved out of this repo and into Definitely Typed.
Closing this for now. Can reopen if needed.

I'll admit that I'm really curious about any api restructuring that might make adding types easier.

It's mostly going to be centered around an effort to allow any relevant types to be tied to the plugins themselves, instead of having to be extended manually for every table component you build. Also, part of what I'm realizing here is that types are never going to be plug-and-play perfect around React Table unless it's fully written in Typescript. Even then, it would take a massive amount of restructuring to satisfy the types while also providing such a flexible API that allows for the things we're doing.
All I'm saying is, I'm investigating it.

BTW given the current (very desirable) feature set, I'm not sure that writing it in typescript would actually help with the issue either.  The extensible nature of the api, pretty much inherently leads to self referential definitions.

So I have felt some burnout on trying to keep up with the definitions with lots of rework being thrown in and no chance to get the types updated before the release. Essentially by having them in the repo, it should be part of the release process to update the types before a release is cut.
I second @ggascoigne, and think that without some major API changes, that converting to typescript/coming up with a good external typescript definition, will be very difficult.
Personally, I think the easiest solution would be to rewrite it with typescript. This would allow us to see pain points as they come up and rework the API to allow nice typings.

Let's continue talking here #1591


how to customize pxt to program Lua

I want to customize pxt to program Lua without TARGET, but I don't know how to start.

We don't have support for Lua.


Merge remote-tracking branch 'origin/main' into issue-114

This just merges origin/main into the issue-114 to make future conflict resolution a little bit easier.

Great work, thanks! This should resolve the current merge conflict in #115,  correct? Happy to merge this into #115 if you say it's ready.

@makeworld-the-better-one Yes! This PR's only goal is to resolve the merge conflict in #115. As such, it is ready to be merged.


Not working on WHMCS 8.4/8.5

I've so far only tested it on WHMCS 8.4 and 8.5.
But when you transfer all files to the directory nothing happens.
The module doesn't show up, and WHMCS acts like nothing has changed at all.
I did do the steps from Readme,
Nothing of errors are happening or being logged.
Just after upload nothing happens.

Did you transfer the files to the correct directory? Could you please elaborate on the steps you're taking?

Hey Wouter,
Thanks for your reply. I've seem to have solved the issue.
We've restarted our webserver and now it all works fine.
I suppose I'll never know why it didn't work straight away but at least it is solved.
Thank you for your time.


Custom layout

Hi @jerrywu001 !
Thanks for this great plugin.
I want to use a custom layout for Sandpack. In my case, I want to display the editor above the results, instead of the default side-by-side. Is this possible with vitepress-plugin-sandpack?

Hi, you can add some CSS:

docs/.vitepress/theme/sandpack.css

.sp-layout > .sp-stack {
    min-width: 100%;
}

docs/.vitepress/theme/index.ts

import DefaultTheme from 'vitepress/theme';
+import { Sandbox } from 'vitepress-plugin-sandpack';
import './sandpack.css';

export default {
  ...DefaultTheme,
  enhanceApp(ctx) {
    DefaultTheme.enhanceApp(ctx);
+    ctx.app.component('Sandbox', Sandbox);
  },
}

Thanks!
On Tue, Feb 21, 2023 at 3:05 AM wuchao @.***> wrote:

Hi, you can add some CSS:

docs/.vitepress/theme/sandpack.css

.sp-layout > .sp-stack {
min-width: 100%;
}

docs/.vitepress/theme/index.ts

import DefaultTheme from 'vitepress/theme';+import { Sandbox } from 'vitepress-plugin-sandpack';import './sandpack.css';
export default {
...DefaultTheme,
enhanceApp(ctx) {
DefaultTheme.enhanceApp(ctx);+    ctx.app.component('Sandbox', Sandbox);
},}
—
Reply to this email directly, view it on GitHub
https://github.com/jerrywu001/vitepress-plugin-sandpack/issues/1#issuecomment-1437761712,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC2BWIEP6JJEM4PSAFD3G3WYQPGXANCNFSM6AAAAAAVBZ3ZWE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi @jerrywu001 !
Your solution worked for changing the order, but now I'm running into a different case (showing multiple preview panes).
In Sandpack, this is possible with a custom layout: https://sandpack.codesandbox.io/docs/advanced-usage/components#layout
Do you know if this is also possible with your plugin?
Thanks,

Hi @jerrywu001 !
Your solution worked for changing the order, but now I'm running into a different case (showing multiple preview panes).
In Sandpack, this is possible with a custom layout: https://sandpack.codesandbox.io/docs/advanced-usage/components#layout
Do you know if this is also possible with your plugin?
Thanks,

Sorry, not yet, just the default sandpack. Maybe you can custom your own with sandpack-vue3 , the API is same as sandpack-react @YousefED

there is a custom demo with sandpack-vue3
https://github.com/starbeamjs/docs/blob/main/src/tutorial/-components/Code/sandpack.ts
@YousefED


Version 1.3.7 makes happo fail

I maintain a project called happo. We have a dependency on chunky png that looks like this in our gemspec file:
  s.add_runtime_dependency 'chunky_png', '~>1.3.1'

After 1.3.7 was released, we started seeing this in our builds:
      RuntimeError:
        /home/travis/build/Galooshi/happo/vendor/bundle/ruby/2.0.0/gems/chunky_png-1.3.7/lib/chunky_png/canvas/png_decoding.rb:120:in `decode_png_image_pass': wrong number of arguments (7 for 6) (ArgumentError)
        	from /home/travis/build/Galooshi/happo/vendor/bundle/ruby/2.0.0/gems/chunky_png-1.3.7/lib/chunky_png/canvas/png_decoding.rb:120:in `decode_png_without_interlacing'
        	from /home/travis/build/Galooshi/happo/vendor/bundle/ruby/2.0.0/gems/chunky_png-1.3.7/lib/chunky_png/canvas/png_decoding.rb:99:in `decode_png_pixelstream'
        	from /home/travis/build/Galooshi/happo/vendor/bundle/ruby/2.0.0/gems/chunky_png-1.3.7/lib/chunky_png/canvas/png_decoding.rb:81:in `from_datastream'
        	from /home/travis/build/Galooshi/happo/vendor/bundle/ruby/2.0.0/gems/chunky_png-1.3.7/lib/chunky_png/image.rb:74:in `from_datastream'
        	from /home/travis/build/Galooshi/happo/vendor/bundle/ruby/2.0.0/gems/chunky_png-1.3.7/lib/chunky_png/canvas/png_decoding.rb:36:in `from_blob'
        	from /home/travis/build/Galooshi/happo/lib/happo/runner.rb:124:in `block (2 levels) in <top (required)>'
        	from /home/travis/build/Galooshi/happo/lib/happo/runner.rb:83:in `each'
        	from /home/travis/build/Galooshi/happo/lib/happo/runner.rb:83:in `block in <top (required)>'
        	from /home/travis/build/Galooshi/happo/lib/happo/runner.rb:74:in `each'
        	from /home/travis/build/Galooshi/happo/lib/happo/runner.rb:74:in `<top (required)>'
        	from /home/travis/build/Galooshi/happo/bin/happo:22:in `require'
        	from /home/travis/build/Galooshi/happo/bin/happo:22:in `block in <main>'
      # ./spec/happo_spec.rb:55:in `block in run_happo'
      # ./spec/happo_spec.rb:49:in `chdir'
      # ./spec/happo_spec.rb:49:in `run_happo'
      # ./spec/happo_spec.rb:679:in `block (3 levels) in <top (required)>'

https://github.com/Galooshi/happo

Weird. decode_png_image_pass  definitely requires 7 arguments now. This was previously 6.
However, the 2 locations where this method is called are both updated to have the 7th argument.

https://github.com/wvanbergen/chunky_png/blob/master/lib/chunky_png/canvas/png_decoding.rb#L120 (which triggers this exception for you)
-https://github.com/wvanbergen/chunky_png/blob/master/lib/chunky_png/canvas/png_decoding.rb#L137

Are you overriding decode_png_image_pass somewhere in your code?

Are your builds failing locally as well?
Can you obtain the content of /home/travis/build/Galooshi/happo/vendor/bundle/ruby/2.0.0/gems/chunky_png-1.3.7/lib/chunky_png/canvas/png_decoding.rb ?

eyes_selenium was also broken by this API change.

https://github.com/applitools/Eyes.Selenium.Ruby/issues/42

I don't think we are overriding anything from chunky png. If it is helpful, this is the line that seems to cause this problem: https://github.com/Galooshi/happo/blob/ce49454700aecfede3950298bf85d25ac7b34658/lib/happo/runner.rb#L124
screenshot = ChunkyPNG::Image.from_blob(driver.screenshot_as(:png))

We are using oily png, which does redefine this method. I think that probably needs to be updated at the same time.

https://github.com/wvanbergen/oily_png/blob/8c2a490c71728f1fb770fc9d617021e467cc7cb1/ext/oily_png/png_decoding.h#L25
https://github.com/wvanbergen/oily_png/blob/8c2a490c71728f1fb770fc9d617021e467cc7cb1/ext/oily_png/oily_png_ext.c#L14

This should be fixed by using oily_pong version 1.2.1


Downgrade skaffold to v2.9.0

How to categorize this PR?

/area dev-productivity
/kind regression
What this PR does / why we need it:
After https://github.com/gardener/gardener/pull/9237 and the upgrade of skaffold to v2.10.1 the local kind setup is not working as expected when changes are made to the codebase. This PR reverts the skaffold version.
To reproduce:
make kind-up
make gardener-up

Do a change to some code used in gardenlet (for example). Run make gardener-up again. I expect that the gardenlet image is rebuilt and deployed, but the output says
europe-docker.pkg.dev/gardener-project/releases/gardener/gardenlet: Found. Tagging

Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
cc @ialidzhikov
Release note:

The skaffold version is downgraded from v2.10.1 to v2.9.0 to fix an issue with skaffold not detecting code changes on `make gardener-up`.

A fix seems to be merged already https://github.com/GoogleContainerTools/skaffold/pull/9313, but there is no patch release which includes the fix yet.

A fix seems to be merged already GoogleContainerTools/skaffold#9313, but there is no patch release which includes the fix yet.

Ah, thanks. I was about to open a new issue and I spent the last hour preparing a dummy project and to reproduce the issue there...

https://github.com/gardener/gardener/pull/9327#issuecomment-1980977472: as the skaffold version is used by several extensions (such as registry-cache, shoot-rsyslog-relp, and others).


Feature Request: Table Pagination

Title really says it all, pagination in the table component I feel like would be a simple addition that would make it significantly more powerful. I was going to write it myself and PR but then I saw the policy for writing an issue first, if no one is working on this and it seems acceptable please let me know so I can begin working on it!

Have you seen the Pagination component?
Table and Pagination are not tied together but and as such it was built as a decoupled individual component. But you should be able to use it with a table. LMK

cool I didn't see that before, is there a good way to integrate that with the table component so that sorting will sort the whole dataset and not just that page?

Looking into this more it seems that the pagination component only really handles the ui aspect and doesnt actually perform any pagination on the data itself unless I'm misunderstanding, of course adding the functionality itself is trivial, but what I'm looking for is the ability to sort through the data using the sorting controls on the table, and it doesn't seem that it's currently possible the way both of these controls are set up.
@roblevintennis

Hrm have a look at the usePagination hook. You supply the data there. There's no intent to handle fetching data etc., but if you supply it the data it should paginate.
Which framework(s) are using this for? I'd like to better understand what's not working for you.

Ohh you want sort and pagination. I have some simple sorting on the table examples but you'd likely need to wire up something similar to sort the data and then feed that into the pagination. Pagination itself doesn't handle sorting

Sorry if I'm not being clear let me try this again, I want to hook up pagination to the table such that, when I use the sorting buttons on the table it sorts the entire dataset not just whats displayed on the current page, I have no problem writing the sorting functions myself and supplying them to the table, as I know that's possible, but as I see it right now there does not appear to be a way to hide entries from a data set in the table, making hard to paginate effectively

Thanks for the feedback and clarification. I need to find some time to dig into the code and think about how this functionality might be offered while not creating too much complexity in the core library. It will never be a full blown data table but I certainly agree with you that there should be a more convenient way to click the sort and have the pagination data sorted and easily fed back into the pagination.
I'm also wondering if asynchronous is a related problem here too.
You had mentioned you'd be willing to submit a PR but saw guidelines to create an issue first. Thanks 🙏🏽 would you be interested in maybe working on an initial spike proof of concept to start moving the discussion to code? I'm keen on your idea if there's a relatively simple way to pull it off cleanly and keep SRP cohesion intact.

Awesome 👍🏽
I would mention I'm totally fine with first doing it successfully in Svelte. We can do other frameworks over a series of PRs if you find success. I'm a believer in iteration and The library is still early enough to be ok having some interim states where stuff is still not propagated across all frameworks.
Especially if we have tickets to track that 🙂 Also results in smaller PRs

Really cool to see this get into the Svelte package! Big win 🏆

I'm only really used to svelte but I can take a crack at implementing it in the other libraries as my current plan is pretty straight forward

I've added https://github.com/AgnosticUI/agnosticui/issues/167 to track getting it ported to the other frameworks. I'm happy to take some of that on but let me know if you want to give it a stab. Your code is straight forward enough I think it'll be easy. For the reactive equivalents to :$ dispatch you can use a ref in Vue e.g. something like:
visibleItems = ref(sortableItems.slice(
    offset ? offset : 0,
    limit ? offset + limit : undefined
  ))

Then you need to dereference it with .value inside any <script> code, but in the template it's "unpacked" so you can just do something like v-for="item in visibleItems and there's already contextual code in Table.vue which you could simply swap as you did in Table.svelte.
For React, I think it's a bit different as you'd likely need to make [offset, limit] depedencies to a useEffect and then update visibleItems inside there. React does a blunt rerender anytime those change so that would take care of reactivity.
Angular I'm starting to punt and create community tasks as it's my least comfortable/enjoyable 😋
So lmk if you're keen to tackle one of those (no pressure I'm happy to do it but just wanted to give you first dips in case you'd like to!)
🙏

Cool cool, I'll open a PR for the on:sort event like we talked about and then I'll see about implementing this in other frameworks, I'll probably start with vue as it seems the most straightforward

@Croug just seeing -- I actually DID have to publish agnostic-svelte version as there was a critical CSS reset regression that affected all the frameworks causing box-sizing to work improperly. Obviously a huge bug! I don't see why it'd affect you but published agnostic-svelte is 1.1.19
Btw, I think I'm in transition with the other playgrounds but I'm moving towards having all versions of agnosticui point to `"latest" so playgrounds/TableWithPagination/package.json can do that too if you're already in there (if not lmk and I'll update that).
For example:
    "agnostic-react": "latest",
    "agnostic-svelte": "latest",
    "agnostic-vue": "latest",

@roblevintennis I can do that I'm about to open a PR for the on:sort event so I can place it in there, otherwise it'd probably be easier if you made the changes.

No worries. I'll just do it as a big batch -- there are several others that need to be updated and I've made myself a ticket for it.

@Croug I'm trying to do some internal housekeeping. Is this particular feature done or still ongoing?


P2652R2: Disallow User Specialization of allocator_traits

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2652r2.html
__cpp_lib_allocate_at_least : 202302L

完了


Set required fields and error handling

Set the TMDB API key and Radarr URL and API key fields as required.
If the Radarr calls fail for Root Folders and Quality Profiles, display error message about the Radarr URL and API key and disable the Root Folders and Quality Profiles drop downs.
Also hide/disable actor search field and button if they fail.

Don't run JavaScript fetch functions when Radarr URL and API key fields aren't valid.


Create SafeCare animated longitudinal map

That will be linked from the textbook.

This animated graphic didn't make it into the book.


QuickInfo colors are incorrect for UnionCase and Interface.

As mentioned in #4644 the colors we used to use for UnionCase and Interface aren't among the standard colors of PredefinedClassificationTypeNames, but there may be some additional pre-defined color names that we can use here; it's just a string.

Previously we used Roslyn's Enum tag
https://github.com/Microsoft/visualfsharp/blob/0d569e4f4aaafc6f9fd19f6b48a8090fb1aee14f/vsintegration/src/FSharp.Editor/Common/RoslynHelpers.fs#L50-L55
for those.
Tracing it through Roslyn code:
        public const string EnumName = "enum name";
this string probably should work with the new API.


[installation] Update requirements to python 3.10-11

What type of PR is this? (check all applicable)

[X] Optimization
[X] Documentation Update

Have you discussed this change with the InvokeAI team?

[X] Yes

Description
This PR drops python 3.9 support and updates relevant documentation. 3.10-specific features, such as the match statement, can now be used.

Similarly, looks good to me!
I'm a little nervous about the friction this could cause for users currently using Invoke with Python 3.9. We don't really have any good way of communicating with users unless they're reading release notes or the Discord (which if they're just updating from option 9, they're probably not)
Thinking about it, I'd like to hold off on merging this until 3.3 if possible - we can a announce the deprecation of python 3.9 in the release notes and follow versioning best practice by only releasing a breaking change with a new version

Woohoo! I'm not sure how to test this - I guess build the installer and run it? - but the changes look straightforward enough.

I tested it by trying to do an install from scratch in an environment running Python 3.9. It refused to move forward, as expected.


Curvilinear: depth field from CF formula attributes

Reported by steven c hankin on 17 Dec 2013 17:44 UTC
This trac ticket is to document a detail task that I am postponing in order to work on the more general framework of automated curvilinear grid support.  In that code I will be supporting an explicit 'depth' field and an association with that field by means of a 'coordinates' attribute that points from dependent variables like 'temp' to 'depth'.
Under CF there is an alternative means of association.  Namely, 'temp' may have a Z axis that is identified as a "layer" axis, which in turn contains a formula_terms attribute that guides how to create a depth variable from other variables in the file.   This trac ticket is a place-holder on the task of automatically synthesizing the depth field based upon formula_terms attribute.
There are 100 approaches to this.  The one I would be tempted to consider first is that at the time the dataset is initialized, the code internally generates a LET/D definition to create a depth variable and associate it with the sigma axis through an attribute.  This approach seems desirable because 1) all of the other logic of automated curvilinear gridding will mesh naturally:  2) having the depth field visible and accessible offers a lot of clarity and flexibility for users.  Some preliminary thoughts on implementation:
o a collection of new functions could be created that correspond to the formula_terms we want to support (ocean-only initially?).  e.g. SIGMA_FROM_XXX(args)
o it will be a good idea to name the auto-generated depth variable something unlikely to hit naming conflicts.  Say the internally generated LET command is equivalent to
LET/D _formula_terms_depth = SIGMA_FROM_XXX(args)

o The association of the sigma axis with the _formula_terms variable can be easily achieved by synthesizing a new attribute on the sigma axis (say "sigma: formula_terms_variable='_formula_terms_depth'").  Users would have the flexibility to manually modify this attribute and point to a depth variable of their own choosing.
o The association from 'temp' to _formula_terms_depth can now be inferred through the sigma axis and its new attribute.  Thus there is no need to synthesize 'coordinates' attributes on the dependent variables such as 'temp'.  In fact, if there is a 'coordinates' attribute on 'temp' that points to a depth variable, it should take precedence over the _formula_terms_depth
o since the user will have flexibility to modify the depth variable that is used for regridding, the routines like "FULL_VAR_TITLE" should generate strings that name what depth variable has been used.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2119

Modified by steven.c.hankin on 17 Dec 2013 18:02 UTC


Fix apiserver manifest template

There was an extra indention on the --v flag
when enable_netword_policy is set and version < v1.8

duplicate of #1887


what i am wrong in installation?

ReflectionException
Class lajax\translatemanager\Module does not exist
i have some problem with composer, i can not install, so i downloaded the extension from this reposity, imported sql tables and insert the folder in: vendor/lajax/yii2-translatemanager
Then i followed the steps in $config
the page is: url/translatemanager/language/scan
What i wrong?
thanks

Hi!
Without composer you can add a package to your app with the following method:
Advanced App:
index.php
$loader = require(__DIR__ . '/../../vendor/autoload.php');
$loader->addPsr4('lajax\\translatemanager\\', __DIR__ . '/../../vendor/lajax/yii2-translate-manager/');

Basic App:
index.php
$loader = require(__DIR__ . '/../vendor/autoload.php');
$loader->addPsr4('lajax\\translatemanager\\', __DIR__ . '/../vendor/lajax/yii2-translate-manager/');

Best Regards,


Localization

Hi Brothers,
Is there any plan for localization feature?
Now, all string is german, but we would like to use it an other language too.
I would recomment i18n solution for this.
Thank you!

Yes, if you need it then you get it. ;-)

Hi @MDylan,
sorry for the delay.
Version 1.10.1 is now available with English translation.
Greetings
Mario


replace std::map::at with std::map::find

The 'at' method of std::map is a C++11 feature not supported by Visual Studio 2008.

Thanks Matt. The old compiler I use for testing legacy systems clearly isn't quite old enough.


0.12 testing

verify can build, deploy, and load all template functions (area, ocean clip, clip to bbox).  Document steps.
Testing a preprocessing function
...
Testing a geoprocessing function

Load the client bundle URL in browser with service parameter - https://d2e039y0vjyxkw.cloudfront.net/?service=https://z21r8l14e8.execute-api.us-west-1.amazonaws.com/prod/
Call postMessage with the sketch geometry URL (that makes sense for the function and the geographic area it is designed for), sketch parameters, and the correct function name

window.postMessage({
    "type": "SeaSketchReportingMessageEventType",
    "client": "RasterStats",
    "geometryUri": "https://www.seasketch.org/geojson/607f3953a967192577003534",
    "sketchProperties": {
        "id": "607f3953a967192577003534",
        "name": "Test Example Project",
        "createdAt": "2021-04-20T20:28:03.607Z",
        "updatedAt": "2021-04-20T20:28:03.607Z",
        "sketchClassId": "5edfa3a8a1a9956b48ece131",
        "isCollection": false,
        "userAttributes": [],
        "visibleLayers": []
    }
})

Area client.  Uses area function.  Test with any sketch.
RasterStats client uses rasterSum function.

0.11-alpha.22 node 12 runtime, all templates
https://pa8mlzxuch.execute-api.us-west-1.amazonaws.com/prod/

[x] Area - loads.
[x] RasterStats - loads with NaN

0.11-alpha.23 node 14 runtime, all templates
https://z21r8l14e8.execute-api.us-west-1.amazonaws.com/prod/

[x] Area - loads.
[x] RasterStats - loads with NaN

For testing outside of Seasketch, geometryURI can be a base64 encoded data-uri.  Also you can pass geometry as a Sketch instead -- https://github.com/seasketch/geoprocessing/blob/dev/packages/geoprocessing/src/geometry.ts


Your Access Token is invalid.

Hi @Finnb8r
Many thanks for sharing this, I'd like to use it to get the number of downloads for by apps.
I have followed the instructions and have generated a token by running this command:
java -jar Reporter.jar p=Reporter.properties Sales.generateToken
Which seems to give me a valid access token, but I keep on getting the Your Access Token is invalid. message whenever I run the example.php.
I have entered correctly the token and Vendor ID, but always get that message.
I appreciate that the message is quite explanatory, but any idea where I might be going wrong?
Thank you.

Sorry, I'm not very clever, I only entered it in one of the places instead of both :-( Sorry!


NVS sector size above 65535 not supported

I'm running the NVS sample with an SPI NOR flash (Cypress S25FL512S), and the flash device returns 65536 as page size. The NVS api requires the sector size to be a multiple of page size, but the NVS sector size is stored in uint16_t. I could get it to work by changing the nvs_fs struct, so that the sector_size member is uint32_t.
Without the change, NVS sector size would overflow, and eventually lead to a sector size of 0.
The modified part of nvs.h:
struct nvs_fs {
	off_t offset;		/* filesystem offset in flash */
	uint32_t ate_wra;		/* next alloc table entry write address */
	uint32_t data_wra;		/* next data write address */
	uint32_t sector_size;	/* filesystem is divided into sectors,
				 * sector size should be multiple of pagesize
				 */
	uint16_t sector_count;	/* amount of sectors in the filesystem */
	bool ready;		/* is the filesystem initialized ? */

	struct k_mutex nvs_lock;
	const struct device *flash_device;
	const struct flash_parameters *flash_parameters;
};

Hi @lord-potato, thank you for reporting this. A sector size of 2^16 is indeed not supported by nvs, increasing the sector-size to a uint32_t is however not a good idea.
On flash the adres of a data item is limited to a uint16_t, supporting a uint32_t would increase the storage requirements. Your case is exactly on the border that could be supported, but it would require a different approach: instead of a sector_size we could use a max sector_index (this would fit in uint16_t). Then we could replace the sector_size where it is used by sector_index + 1 (after casting to a uint32_t).
With so big a flash device probably a real fs (like little_fs) might be more appropiate. NVS is really meant for small devices.

instead of a sector_size we could use a max sector_index (this would fit in uint16_t). Then we could replace the sector_size where it is used by sector_index + 1 (after casting to a uint32_t).
That would indeed solve this exact problem, but I think you might be right saying this big of a flash deserves a proper file system.

I have potentially found another problem, since according to the datasheet, the flash should have an erase sector size of 256KB, but flash info shows 64KB sectors.

@lord-potato, there seems to be different versions, some of them have a erase sector of 64kB. But there seems to be some inconsistency in the datasheet (talking about FL-S with 128Mb/256Mb).
If you really intent to use nvs a quick fix would be to make sector-size uint32_t and then to limit it in init() to 2^16.

Yeah, the datasheet is a bit confusing. I think I'm going to go forth using a proper file system, and leave NVS alone until I'm working with a much smaller flash.
Thanks for your time!


Ignore/skip containers/services

Currently Registrator registers a service entry, with a backend, for every combination of docker-container + port that it discovers on the host. This can be far from desired behavior. There are very good reasons why we may want to skip certain containers, or certain ports for certain containers.
I think it would be super-helpful to have a -skip option that would take container name. Registrator would skip those. Ports can be indicated as: containername:port but that is much less critical requirement, IMHO.
Thanks

I think you can tell registrator to ignore your container entirely by setting -e SERVICE_IGNORE=anything as in service docs. I'm not sure if you're able to skip a port, however.

Chris,
thank you soooo much! I'd combed entire documentation but was unable to find this before your response. Adding SERVICE_IGNORE=always env variable to the launch script of the docker service that I needed to be hidden worked perfectly. Really appreciate your response.


Check if the connection is closed before opening a new stream.

fixes ipfs/go-ipfs#4129

"Dead programs don't leak."


Vickel: Watch flatsandapartments.in

Vickel requests the watch of the watch_keyword flatsandapartments\.in. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

flatsandapartments\.in has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ