when step docker run it error ...

I install the requirement on jellyfin without problem , but when i run docker run ghcr.io/akarazniewicz/stremio-jellyfin -p 60421:60421 -e JELLYFIN_USER=plsharevme -e JELLYFIN_PASSWORD=1234567 -e JELLYFIN_SERVER=http://<IP_ADDRESS>:8096
the log files :
          at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1602:16) {
        errno: -111,
        code: 'ECONNREFUSED',
        syscall: 'connect',
        address: '<IP_ADDRESS>',
        port: 80
      }
    },
    allowHalfOpen: false,
    _maxListeners: undefined,
    _eventsCount: 8,
    _sockname: null,
    _pendingData: [
      {
        chunk: 'POST /Users/authenticatebyname HTTP/1.1\r\n' +
          'Accept: application/json, text/plain, */*\r\n' +
          'Content-Type: application/json\r\n' +
          'X-Emby-Authorization: MediaBrowser Client="Jellyfin Stremio Addon", Device="4f21e3b91aed", DeviceId="4f21e3b91aed", Version="<IP_ADDRESS>""\r\n' +
          'User-Agent: axios/1.6.6\r\n' +
          'Content-Length: 39\r\n' +
          'Accept-Encoding: gzip, compress, deflate, br\r\n' +
          'Host: localhost\r\n' +
          'Connection: keep-alive\r\n' +
          '\r\n',
        encoding: 'latin1',
        callback: [Function: nop]

},
{
chunk: [Buffer [Uint8Array]],
encoding: 'buffer',
callback: [Function (anonymous)]

},
allBuffers: false
],
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *2],
[Symbol(async_id_symbol)]: 275,
[Symbol(kHandle)]: null,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: Timeout {
_idleTimeout: -1,
_idlePrev: null,
_idleNext: null,
_idleStart: 395,
_onTimeout: null,
_timerArgs: undefined,
_repeat: null,
_destroyed: true,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 274,
[Symbol(triggerId)]: 0
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, /' ],
'content-type': [ 'Content-Type', 'application/json' ],
'x-emby-authorization': [
'X-Emby-Authorization',
'MediaBrowser Client="Jellyfin Stremio Addon", Device="4f21e3b91aed", DeviceId="4f21e3b91aed", Version="<IP_ADDRESS>""'
],
'user-agent': [ 'User-Agent', 'axios/1.6.6' ],
'content-length': [ 'Content-Length', '39' ],
'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
host: [ 'Host', 'localhost' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
_currentUrl: 'http://localhost/Users/authenticatebyname',
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
cause: Error: connect ECONNREFUSED <IP_ADDRESS>:80
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1602:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '<IP_ADDRESS>',

port: 80
}
}
Node.js v21.6.0
Thanks regard , if have docker-compose more easy.

Can You please reorder arguments?
docker run -p 60421:60421 -e JELLYFIN_USER=plsharevme -e JELLYFIN_PASSWORD=1234567 -e JELLYFIN_SERVER=http://<IP_ADDRESS>:8096/ ghcr.io/akarazniewicz/stremio-jellyfin

ohh....thanks i redo it came :
Connecting to Jellyfin server: http://<IP_ADDRESS>:8096/ with username: plsharevme and password: 123456
(node:1) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use nodejs --trace-deprecation ... to show where the warning was created)
Error caught while Jellyfin authentication, server response: '404' and data: '' (server: 'http://<IP_ADDRESS>:8096/' with username: 'plsharevme' and password: ' 123456')
Exiting. Please check your configuration and Jellyfin connection.

Yeah, now looks like You have wrong password (space at the beginning? ' 123456'). 404 means wrong username/password, but it's connectable.

it weird , i double checked password username is okay,......i even sign out and login back in jellyfin without problem.

No, thats jus warning from nodejs.
Can You put Your password in braces when starting addon? JELLYFIN_PASSWORD="1234567"

This is internal docker address. You need to access IP of Your machine where You're running docker container.

yup ........my docker of ip is http://<IP_ADDRESS>:60421/manifest.json
i open at browser :
{
"id": "community.stremiojellyfin",
"version": "1.0.0",
"catalogs": [
{
"type": "movie",
"id": "all",
"extra": [
{
"name": "skip",
"isRequired": true
},
{
"name": "search",
"isRequired": false
}
]
},
{
"type": "series",
"id": "all",
"extra": [
{
"name": "skip",
"isRequired": true
},
{
"name": "search",
"isRequired": false
}
]
}
],
"resources": [
"catalog",
"stream",
"meta"
],
"types": [
"movie",
"series"
],
"name": "Jellyfin",
"description": "Stremio Jellyfin integration"
but i paste it to stremio addon it say cannot find addon/collection from this URL

I have the same error, the message i got is "failed to fetch" and the server url http://<IP_ADDRESS>:60421/manifest.json is accessible in the browser

Can You install it from browser app? web.stremio.com

failed

Ah interesting. This may be somehow connected to cors. Will need to test it. In my case I have everything proxied with SSL - so this may be it. But unfortunately this is way, way more complicated setup.

Can You install it from browser app? web.stremio.com
it worked for me

You may have different network configuration (not sure if in @ericvlog case his browser and his addon IP are on the same subnet). Worked for me withouth SSL too, but again, I have everything on the same network.

yup ......couse i hear before the addon(http) need access from local stremio "http" stremio , maybe i host own stremio server later for try.....anyway thanks for your help.

hello, i managed to installed by nginx proxy manager (https) and tested run well on Android TV Stremio.
but catalog no appear on android stremio ( only android tv stremio), and i tested on windows stremio also no catalog.
1 more suggestion, can we split the catalog by library jellyfin?
Anyway I do tested play on Android TV Stremio without any problem.! thanks

Just tested with proxing on top level, like this:
<VirtualHost *:20538>
    ServerName subdomain.domain.com

    SSLEngine on

    SSLCertificateFile      xxx
    SSLCertificateKeyFile   yyy

    ProxyPass / http://localhost:60421/
    ProxyPassReverse / http://localhost:60421/
</VirtualHost>

The URL in this case is:
https://subdomain.domain.com:20538/manifest.json
Same result unfortunately. Not sure why it is not working.

Just tested with proxing on top level, like this:
<VirtualHost *:20538>
    ServerName subdomain.domain.com

    SSLEngine on

    SSLCertificateFile      xxx
    SSLCertificateKeyFile   yyy

    ProxyPass / http://localhost:60421/
    ProxyPassReverse / http://localhost:60421/
</VirtualHost>

The URL in this case is: https://subdomain.domain.com:20538/manifest.json
Same result unfortunately. Not sure why it is not working.
Maybe manifest URL must be without port? @akarazniewicz, can you please test it with port and SSL? I cannot test it as I have limitation in ports and 443 port is taken.

I use nginx proxy manager, It very easy to setup,.....my domain of addon https://stremio-jellyfin.mydomain.org .......it working quite well on android tv stremio.

Just tested with proxing on top level, like this:
<VirtualHost *:20538>
    ServerName subdomain.domain.com

    SSLEngine on

    SSLCertificateFile      xxx
    SSLCertificateKeyFile   yyy

    ProxyPass / http://localhost:60421/
    ProxyPassReverse / http://localhost:60421/
</VirtualHost>

The URL in this case is: https://subdomain.domain.com:20538/manifest.json
Same result unfortunately. Not sure why it is not working.
Maybe manifest URL must be without port? @akarazniewicz, can you please test it with port and SSL? I cannot test it as I have limitation in ports and 443 port is taken.

I use nginx proxy manager, It very easy to setup,.....my domain of addon https://stremio-jellyfin.mydomain.org .......it working quite well on android tv stremio.

Yes, but I am limited with ports and my addon is https://subdomain.domain.com:20538/manifest.json, I think that stremio when accessing with SSL is not handling ports very good in general. I had some issues when streaming server URL is with port also, then video player is not working.
@ericvlog can you try to configure your addon with port and test please?

Why do u include port in your SSL ?.......
Local-ip:port forwarding to SSL
Should be https://stremio-jellyfin.domain.org
Without port.

Just tested with proxing on top level, like this:
<VirtualHost *:20538>
    ServerName subdomain.domain.com

    SSLEngine on

    SSLCertificateFile      xxx
    SSLCertificateKeyFile   yyy

    ProxyPass / http://localhost:60421/
    ProxyPassReverse / http://localhost:60421/
</VirtualHost>

The URL in this case is: https://subdomain.domain.com:20538/manifest.json
Same result unfortunately. Not sure why it is not working.
Maybe manifest URL must be without port? @akarazniewicz, can you please test it with port and SSL? I cannot test it as I have limitation in ports and 443 port is taken.

I use nginx proxy manager, It very easy to setup,.....my domain of addon https://stremio-jellyfin.mydomain.org .......it working quite well on android tv stremio.

Yes, but I am limited with ports and my addon is https://subdomain.domain.com:20538/manifest.json, I think that stremio when accessing with SSL is not handling ports very good in general. I had some issues when streaming server URL is with port also, then video player is not working.
@ericvlog can you try to configure your addon with port and test please?

Why do u include port in your SSL ?.......
Local-ip:port forwarding to SSL
Should be https://stremio-jellyfin.domain.org
Without port.

Because I have VPN on entire machine and use remote port forwarding on VPN backend where other subscribers are using ports as well and ports 80 or 443 are reserved. I didn't managed to forward port from tunnel to lan to be able to regularly forward in my router publicly.

I have an update, I managed to get rid of the port. But still same issue.

Last update from my side, I gave up on this plugin it is not working for me. So, I put Jellyfin on SSL public link without port and used it in docker compose file still not working.

Last update from my side, I gave up on this plugin it is not working for me. So, I put Jellyfin on SSL public link without port and used it in docker compose file still not working.

U need SSL on add-ons configuration page no jellyfin.

Bro, tried all possible combinations, it is not working.

U have try on android TV(stremio) ?
No phone & windows stremio

U have try on android TV(stremio) ?
No phone & windows stremio

Yes, I did.

any update on this?
In webversion i get error menioned above:

yes it is http but I do not want to start going down the https route if it isnt going to solve the issue.
looks like its tried above but never solved.
i did install Nginx proxy manager but i do not know how to set it up and as mentioned, above it didnt really help.

It is not working with https or http.

It is not working with https or http.

Now it is working well, sorry no feedback here, but if I can manually add library as catalog it more better...now it mixes all library into movies catalog

It is not working with https or http.

Now it is working well, sorry no feedback here, but if I can manually add library as catalog it more better...now it mixes all library into movies catalog

So what steps you performed to get it working? Beyond where I'm stuck?
And the images show it split by library. TV and movie.

It is not working with https or http.

Now it is working well, sorry no feedback here, but if I can manually add library as catalog it more better...now it mixes all library into movies catalog

@ericvlog
what did you do to get it working? I am stuck on no manifest

It is not working with https or http.

Now it is working well, sorry no feedback here, but if I can manually add library as catalog it more better...now it mixes all library into movies catalog

@ericvlog
what did you do to get it working? I am stuck on no manifest

The most important step is "Https" ssl.....

People it doesn't work. I tried everything.

It is not working with https or http.

Now it is working well, sorry no feedback here, but if I can manually add library as catalog it more better...now it mixes all library into movies catalog

@ericvlog
what did you do to get it working? I am stuck on no manifest

The most important step is "Https" ssl.....

I have https ssl.
The problem is no manifest.json like gets created. When I manually crested one it still doesn't work as I don't know if it is made correctly. The dev has just disappeared.

Yes, just forget it and move on.


Add 'selected' state for radios and checkboxes

Fixes #122.
Add the selected state for radio buttons and checkboxes and add comments for each state.
The bug can be seen here for radio buttons and checkboxes.
Fixed here for checkboxes and radio buttons.

Thanks @gemmaleigh 😀


pythonPackages.libusb1: Fix darwin build

Motivation for this change
This should fix the darwin build.
Please backport to 18.09 (ZHF-18.09 #45961)
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build python27Packages.libusb1 python36Packages.libusb1

Success on x86_64-linux (full log)
Attempted: python27Packages.libusb1, python36Packages.libusb1
Partial log (click to expand)
these paths will be fetched (0.11 MiB download, 0.58 MiB unpacked):
  /nix/store/1bljnk6gwzhkmiin6l54v451f0jxynzv-python3.6-libusb1-1.6.6
  /nix/store/l91306r0mzfcxnsrwrpflsi12y7cr874-python2.7-libusb1-1.6.6
copying path '/nix/store/l91306r0mzfcxnsrwrpflsi12y7cr874-python2.7-libusb1-1.6.6' from 'https://cache.nixos.org'...
copying path '/nix/store/1bljnk6gwzhkmiin6l54v451f0jxynzv-python3.6-libusb1-1.6.6' from 'https://cache.nixos.org'...
/nix/store/l91306r0mzfcxnsrwrpflsi12y7cr874-python2.7-libusb1-1.6.6
/nix/store/1bljnk6gwzhkmiin6l54v451f0jxynzv-python3.6-libusb1-1.6.6

Failure on x86_64-darwin (full log)
Attempted: python27Packages.libusb1, python36Packages.libusb1
Partial log (click to expand)
...../private/tmp/nix-build-python3.6-libusb1-1.6.6.drv-0/libusb1-1.6.6/usb1/__init__.py:2129: DeprecationWarning: Use "with USBContext() as context:" for safer cleanup on interpreter shutdown. See also USBContext.open().
  DeprecationWarning,
....../private/tmp/nix-build-python3.6-libusb1-1.6.6.drv-0/libusb1-1.6.6/usb1/__init__.py:973: DeprecationWarning: USBPollerThread causes long stalls when used with poll (it was intended for epoll), and is generally misleading. Consider calling looping over context.handleEvents() in a thread instead.
  DeprecationWarning,
...
----------------------------------------------------------------------
Ran 14 tests in 0.659s

OK
error: build of '/nix/store/zdh43dgvqbw15adl40nhr0a69z5r8ypy-python2.7-libusb1-1.6.6.drv' failed

Success on aarch64-linux (full log)
Attempted: python27Packages.libusb1, python36Packages.libusb1
Partial log (click to expand)
these paths will be fetched (0.11 MiB download, 0.58 MiB unpacked):
  /nix/store/4yx8nrzd1ajvcyaakfpfpwzppg9ip2fy-python2.7-libusb1-1.6.6
  /nix/store/rgd1b46lvfcirr65qzd7m36z0y33vww8-python3.6-libusb1-1.6.6
copying path '/nix/store/4yx8nrzd1ajvcyaakfpfpwzppg9ip2fy-python2.7-libusb1-1.6.6' from 'https://cache.nixos.org'...
copying path '/nix/store/rgd1b46lvfcirr65qzd7m36z0y33vww8-python3.6-libusb1-1.6.6' from 'https://cache.nixos.org'...
/nix/store/4yx8nrzd1ajvcyaakfpfpwzppg9ip2fy-python2.7-libusb1-1.6.6
/nix/store/rgd1b46lvfcirr65qzd7m36z0y33vww8-python3.6-libusb1-1.6.6

test failure on darwin. did the test pass on your machine with sandboxing enabled?

Log looks like the test failure is on python27 only.

nix-build --sandbox -A python27Packages.libusb1 also works locally, don't know why they would fail on ofborg.

let's try again, maybe it's some non-deterministic error
@GrahamcOfBorg build python27Packages.libusb1 python36Packages.libusb1

Success on x86_64-linux (full log)
Attempted: python27Packages.libusb1, python36Packages.libusb1
Partial log (click to expand)
/nix/store/l91306r0mzfcxnsrwrpflsi12y7cr874-python2.7-libusb1-1.6.6
/nix/store/1bljnk6gwzhkmiin6l54v451f0jxynzv-python3.6-libusb1-1.6.6

Failure on x86_64-darwin (full log)
Attempted: python27Packages.libusb1, python36Packages.libusb1
Partial log (click to expand)
...../private/tmp/nix-build-python3.6-libusb1-1.6.6.drv-0/libusb1-1.6.6/usb1/__init__.py:2129: DeprecationWarning: Use "with USBContext() as context:" for safer cleanup on interpreter shutdown. See also USBContext.open().
  DeprecationWarning,
....../private/tmp/nix-build-python3.6-libusb1-1.6.6.drv-0/libusb1-1.6.6/usb1/__init__.py:973: DeprecationWarning: USBPollerThread causes long stalls when used with poll (it was intended for epoll), and is generally misleading. Consider calling looping over context.handleEvents() in a thread instead.
  DeprecationWarning,
...
----------------------------------------------------------------------
Ran 14 tests in 0.425s

OK
error: build of '/nix/store/zdh43dgvqbw15adl40nhr0a69z5r8ypy-python2.7-libusb1-1.6.6.drv' failed

Success on aarch64-linux (full log)
Attempted: python27Packages.libusb1, python36Packages.libusb1
Partial log (click to expand)
/nix/store/4yx8nrzd1ajvcyaakfpfpwzppg9ip2fy-python2.7-libusb1-1.6.6
/nix/store/rgd1b46lvfcirr65qzd7m36z0y33vww8-python3.6-libusb1-1.6.6

Can you please have a look at the failing test case?

It seems to me this is a flaky test. There is an upstream issue that the thing that is tested has some threading issues https://github.com/vpelletier/python-libusb1/issues/16.
I disabled this specific test.

Success on x86_64-darwin (full log)
Attempted: python27Packages.libusb1, python36Packages.libusb1
Partial log (click to expand)
============================= test session starts ==============================
platform darwin -- Python 2.7.15, pytest-3.7.4, py-1.5.4, pluggy-0.7.1
rootdir: /private/tmp/nix-build-python2.7-libusb1-1.6.6.drv-0/libusb1-1.6.6, inifile:
collected 14 items / 1 deselected

usb1/testUSB1.py .............                                           [100%]

=================== 13 passed, 1 deselected in 0.13 seconds ====================
/nix/store/5y5mhdccdg2vyxqi97kgjqkkbbafh7wa-python2.7-libusb1-1.6.6
/nix/store/57azfzcmii8pjs2m5gnwl8kag0kshfk0-python3.6-libusb1-1.6.6

Success on aarch64-linux (full log)
Attempted: python27Packages.libusb1, python36Packages.libusb1
Partial log (click to expand)
============================= test session starts ==============================
platform linux -- Python 3.6.6, pytest-3.7.4, py-1.5.4, pluggy-0.7.1
rootdir: /build/libusb1-1.6.6, inifile:
collected 14 items / 1 deselected

usb1/testUSB1.py .s...........                                           [100%]

============== 12 passed, 1 skipped, 1 deselected in 0.35 seconds ==============
/nix/store/m092j5cpvhfai41rknpf0471qfsg0ani-python2.7-libusb1-1.6.6
/nix/store/cqa2qd0wpkx93br5kvrfh80jxmxi4ha9-python3.6-libusb1-1.6.6

Success on x86_64-linux (full log)
Attempted: python27Packages.libusb1, python36Packages.libusb1
Partial log (click to expand)
============================= test session starts ==============================
platform linux -- Python 3.6.6, pytest-3.7.4, py-1.5.4, pluggy-0.7.1
rootdir: /build/libusb1-1.6.6, inifile:
collected 14 items / 1 deselected

usb1/testUSB1.py .s...........                                           [100%]

============== 12 passed, 1 skipped, 1 deselected in 0.26 seconds ==============
/nix/store/f0xgy2pfx2ksim5yfvbzyl4194z8331b-python2.7-libusb1-1.6.6
/nix/store/6b170xr457giqfkgzipcgwa2s0s6ai8k-python3.6-libusb1-1.6.6

backported:  b682a408fd3..bbfa5d87dcb


It seems that stop does not work with ollama models.

System Info
pip freeze
attrs==19.3.0
Automat==0.8.0
blinker==1.4
certifi==2019.11.28
chardet==3.0.4
Click==7.0
cloud-init==23.3.1
colorama==0.4.3
command-not-found==0.3
configobj==5.0.6
constantly==15.1.0
cryptography==2.8
dbus-python==1.2.16
diskcache==5.6.3
distro==1.4.0
distro-info==0.23+ubuntu1.1
entrypoints==0.3
httplib2==0.14.0
hyperlink==19.0.0
idna==2.8
importlib-metadata==1.5.0
incremental==16.10.1
Jinja2==2.10.1
jsonpatch==1.22
jsonpointer==2.0
jsonschema==3.2.0
keyring==18.0.1
language-selector==0.1
launchpadlib==1.10.13
lazr.restfulclient==0.14.2
lazr.uri==1.0.3
llama-cpp-python==0.2.11
MarkupSafe==1.1.0
more-itertools==4.2.0
netifaces==0.10.4
numpy==1.24.4
oauthlib==3.1.0
pexpect==4.6.0
pyasn1==0.4.2
pyasn1-modules==0.2.1
PyGObject==3.36.0
PyHamcrest==1.9.0
PyJWT==1.7.1
pymacaroons==0.13.0
PyNaCl==1.3.0
pyOpenSSL==19.0.0
pyrsistent==0.15.5
pyserial==3.4
python-apt==2.0.1+ubuntu<IP_ADDRESS>
python-debian==0.1.36+ubuntu1.1
PyYAML==5.3.1
requests==2.22.0
requests-unixsocket==0.2.0
SecretStorage==2.3.1
service-identity==18.1.0
simplejson==3.16.0
six==1.14.0
sos==4.5.6
ssh-import-id==5.10
systemd-python==234
Twisted==18.9.0
typing-extensions==4.8.0
ubuntu-advantage-tools==8001
ufw==0.36
unattended-upgrades==0.1
urllib3==1.25.8
wadllib==1.3.3
zipp==1.0.0
zope.interface==4.7.1
Who can help?
I'm trying to run an agent based on local ollama mistral:7b-instruct and stop is not working. Is it a bug or I configured wrong? Thanks in advance!
from langchain.agents import Tool, AgentExecutor, LLMSingleActionAgent, AgentOutputParser
from langchain.prompts import StringPromptTemplate
from langchain.llms import OpenAI
from langchain.utilities import SerpAPIWrapper
from langchain.chains import LLMChain
from typing import List, Union
from langchain.schema import AgentAction, AgentFinish, OutputParserException
import re
from langchain.llms import Ollama
from langchain.callbacks.manager import CallbackManager
from langchain.callbacks.streaming_stdout_final_only import FinalStreamingStdOutCallbackHandler

from langchain.agents import tool

@tool
def get_word_length(word: str) -> int:
    """Returns the length of a word."""
    return len(word.strip().split()[0])

tools = [get_word_length]

# Set up the base template
template = """Answer the following questions as best you can. You have access to the following tools:

{tools}

Use the following format:

Question: the input question you must answer
Thought: you should always think about what to do
Action: the action to take, should be one of [{tool_names}]
Action Input: the input to the action
Observation: the result of the action
... (this Thought/Action/Action Input/Observation can repeat N times)
Thought: I now know the final answer
Final Answer: the final answer to the original input question

Begin! If you can use a tool, use it before the final answer. Do not make up an observation before calling an action!

Question: {input}
{agent_scratchpad}"""

# Set up a prompt template
class CustomPromptTemplate(StringPromptTemplate):
    # The template to use
    template: str
    # The list of tools available
    tools: List[Tool]

    def format(self, **kwargs) -> str:
        # Get the intermediate steps (AgentAction, Observation tuples)
        # Format them in a particular way
        intermediate_steps = kwargs.pop("intermediate_steps")
        thoughts = ""
        for action, observation in intermediate_steps:
            thoughts += action.log
            thoughts += f"\nObservation: {observation}\nThought: "
        # Set the agent_scratchpad variable to that value
        kwargs["agent_scratchpad"] = thoughts
        # Create a tools variable from the list of tools provided
        kwargs["tools"] = "\n".join([f"{tool.name}: {tool.description}" for tool in self.tools])
        # Create a list of tool names for the tools provided
        kwargs["tool_names"] = ", ".join([tool.name for tool in self.tools])
        return self.template.format(**kwargs)

prompt = CustomPromptTemplate(
    template=template,
    tools=tools,
    # This omits the `agent_scratchpad`, `tools`, and `tool_names` variables because those are generated dynamically
    # This includes the `intermediate_steps` variable because that is needed
    input_variables=["input", "intermediate_steps"]
)

class CustomOutputParser(AgentOutputParser):

    def parse(self, llm_output: str) -> Union[AgentAction, AgentFinish]:
        # Check if agent should finish
        if "Final Answer:" in llm_output:
            return AgentFinish(
                # Return values is generally always a dictionary with a single `output` key
                # It is not recommended to try anything else at the moment :)
                return_values={"output": llm_output.split("Final Answer:")[-1].strip()},
                log=llm_output,
            )
        # Parse out the action and action input
        regex = r"Action\s*\d*\s*:(.*?)\nAction\s*\d*\s*Input\s*\d*\s*:[\s]*(.*)"
        match = re.search(regex, llm_output, re.DOTALL)
        if not match:
            raise OutputParserException(f"Could not parse LLM output: `{llm_output}`")
        action = match.group(1).strip()
        action_input = match.group(2)
        # Return the action and action input
        return AgentAction(tool=action, tool_input=action_input.strip(" ").strip('"'), log=llm_output)

output_parser = CustomOutputParser()

ollama = Ollama(model="mistral:7b-instruct", callbacks=[FinalStreamingStdOutCallbackHandler()])

# LLM chain consisting of the LLM and a prompt
llm_chain = LLMChain(llm=ollama, prompt=prompt)

tool_names = [tool.name for tool in tools]
agent = LLMSingleActionAgent(
    llm_chain=llm_chain,
    output_parser=output_parser,
    stop=["Observation:"],
    allowed_tools=tool_names
)

agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)
agent_executor.run("How many letters in the word astronomia?")

@hwchase17
@agola11

Information

[ ] The official example notebooks/scripts
[X] My own modified scripts

Related Components

[X] LLMs/Chat Models
[ ] Embedding Models
[X] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[X] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction

Run the code above

Expected behavior
Expected to stop on Observation

@dosu-bot explain how can i change my code to pass stop param?

So far i understand it is a bug and need to be fixed, I used debug tools to get to the http request to ollama.
It sends a request with 2 stop arguments, and the one under options is null.
b'{"prompt": "Answer the following questions as best you can. You have access to the following tools:\n\nget_word_length: get_word_length(word: str) -> int - Returns the length of a word.\n\nUse the following format:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction: the action to take, should be one of [get_word_length]\nAction Input: the input to the action\nObservation: the result of the action\n... (this Thought/Action/Action Input/Observation can repeat N times)\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question \n\nBegin!\n\nQuestion: How many letters in the word astronomia?\n", "model": "mistral:7b-instruct", "options": {"mirostat": null, "mirostat_eta": null, "mirostat_tau": null, "num_ctx": null, "num_gpu": null, "num_thread": null, "repeat_last_n": null, "repeat_penalty": null, "temperature": null, "stop": null, "tfs_z": null, "top_k": null, "top_p": null}, "stop": ["Observation:"]}' (edited)
the next is a simplified example in curl
curl -X POST http://localhost:11434/api/generate -d '{
  "model": "mistral:7b-instruct",
  "prompt":"I want you to output a funny joke then the following text: `Observation:`",
  "stop": ["Observation:"],
  "options": {"stop": null},
  "stream": false
}'

So far i understand it is a bug and need to be fixed, I used debug tools to get to the http request to ollama.
It sends a request with 2 stop arguments, and the one under options is null.
b'{"prompt": "Answer the following questions as best you can. You have access to the following tools:\n\nget_word_length: get_word_length(word: str) -> int - Returns the length of a word.\n\nUse the following format:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction: the action to take, should be one of [get_word_length]\nAction Input: the input to the action\nObservation: the result of the action\n... (this Thought/Action/Action Input/Observation can repeat N times)\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question \n\nBegin!\n\nQuestion: How many letters in the word astronomia?\n", "model": "mistral:7b-instruct", "options": {"mirostat": null, "mirostat_eta": null, "mirostat_tau": null, "num_ctx": null, "num_gpu": null, "num_thread": null, "repeat_last_n": null, "repeat_penalty": null, "temperature": null, "stop": null, "tfs_z": null, "top_k": null, "top_p": null}, "stop": ["Observation:"]}' (edited)
the next is a simplified example in curl
curl -X POST http://localhost:11434/api/generate -d '{
  "model": "mistral:7b-instruct",
  "prompt":"I want you to output a funny joke then the following text: `Observation:`",
  "stop": ["Observation:"],
  "options": {"stop": null},
  "stream": false
}'

it was closed by mistake, could you please reopen it?

now reopened

I created a fix that solved problem in my case. @hwchase17 @agola11, could you have a look and decide if that might be useful to others?

At least for me, the original error bug is still there but at least it doesn't infinitely keep talking to itself anymore. (Thanks @glad4enkonm !)
Previous code/setup outline with Python's Streamlit w/changes today
$ brew install ollama
$ ollama --version
ollama version is 0.1.23

$ pip install langchain --upgrade
$ pip list langchain | grep langchain
langchain                                         0.1.5
langchain-community                               0.0.19
langchain-core                                    0.1.21


Exception Thrown When Umbraco Property is Named "Item"

I have a model that looks like this:
namespace Wiski.App.Mapping.Models.Pages
{
    using Our.Umbraco.Ditto;
    public class Typical
    {
        [UmbracoProperty]
        public string Item { get; set; }
    }
}

When I attempt to map a page using that model, I get an exception relating to reflection. The problem seems to be at this line: https://github.com/leekelleher/umbraco-ditto/blob/81e60f123df69a6c45bba2036a7ea9418bb26c7a/src/Our.Umbraco.Ditto/ComponentModel/Processors/UmbracoPropertyAttribute.cs#L123
It seems that code is attempting to invoke the indexer on PublishedContentBase: https://github.com/umbraco/Umbraco-CMS/blob/75c2b07ad3a093b5b65b6ebd45697687c062f62a/src/Umbraco.Web/Models/PublishedContentBase.cs#L178
That is because the indexer compiles to a method that is something like "get_Item", and when you use reflection to ask for a property named "Item", C# interprets "get_Item" as the getter method for a readonly method called "Item". Or so that's what seems to be happening.
My question is why the UmbracoPropertyAttribute would even be attempting to use reflection on IPublishedContent to get the value of an Umbraco property? My only guess is that this is being done for the built-in properties (e.g., creation date) that may not be accessible by calling IPublishedContent.GetPropertyValue.
If that is the case, I would recommend adding some extra checks in there for edge cases like this that refer to an existing property that has an unexpected signature that causes an exception to be thrown. The easiest option would be to wrap that line in a try/catch block, but maybe you could figure out something more clever.

It is there for built in properties yes, like you say, name, create date,
etc. In theory it will also work with models builder properties too, though
I haven't really tried that.
The only thing I can think of would be to keep a physical black list, but
not sure how good a solution that is.

Given the fact that you could potentially apply this to an instance of any type, I'd say a blacklist wouldn't be all that effective.
If there is a way with reflection to check the signature of a property (i.e., that there is an overload for a property available that does not contain any parameters), I'd say that's probably the most effective solution.
As an alternative, the try/catch I mentioned should suffice.

For this particular case, you could probably use GetIndexParameters and ensure that it returns 0 items: https://msdn.microsoft.com/en-us/library/system.reflection.propertyinfo.getindexparameters(v=vs.110).aspx

@Nicholas-Westby Yeah, that looks viable. We should probably turn that into an extension method along with the other restrictions in order to be consistent since we also loop through properties in PublishedContentExstensions.

Looks like somebody else ran into a similar issue: https://github.com/leekelleher/umbraco-ditto-labs/issues/6
Though, they ran into the issue with a different property, Children. I wonder if this code should be looking for the existence of an Umbraco property first, then falling back to a C# property only if the Umbraco property does not exist.
There are also a number of other possibilities to consider (e.g., provide an option to skip C# properties, or provide an alternate processor that never looks at C# processors), but my first choice would be to check Umbraco properties before C# properties.

Just to note  [DittoIgnore] exists to skip properties just now. Not sure how we'd no any checking otherwise.

@JimBobSquarePants FYI, I wasn't suggesting that mapping properties be skipped. I was suggesting that C# properties on IPublishedContent be skipped (i.e., not on the model being mapped). I can't annotate C# properties on IPublishedContent with DittoIgnore.

With regard to checking for Umbraco properties before checking for C# properties, you could use IPublishedContent.GetProperty. If it returns null, you know that the Umbraco property does not exist and so you can check the C# property with reflection (as you do already).

I'll need to check with Lee (although he is currently on holiday) but not sure what effect it will have swapping the order. The only thing that springs to mind is for uses of things like "Name" if you would want the property to be checked first, or if you would want to check the properties collection?

I just did a quick test swapping the order and using HasProperty and it breaks a whole heap of unit tests. It looks like something is going wrong in HasProperty causing a null value error. Will have to look into it fully when I have some more time free.

In the general case, I'd want the Umbraco properties collection to be checked first, then if no property exists (which, by the way, is not the same as whether or not the property has a value), I'd want the C# property to be checked. This would hold true for "Name" just as it would for any other property name.
Of course, you could run into situations where creating an Umbraco property could then essentially block access to mapping the C# property. If you'd want to support that situation, it might be worth having a parameter that explicitly indicates which source (i.e., C# property or Umbraco property) to inspect first. Alternatively, one might consider that this could be a case of a processor being too smart for its own good, and perhaps this could be split into two different processors.

I guess another reason to want to use properties first is if you were using it with Models Builder, you might want to use the explicit properties rather than the properties collection as those values are already passed through value resolvers and are cached, so you might want to try those first before doing another conversion. Just a thought off the top of my head.

@mattbrailsford I'm not familiar with how Models Builder works. Are you saying that you would use Ditto to map from a class generated by Models Builder to another class?
If so, yes, that would be a good use case for C# properties to be inspected before Umbraco properties.

@Nicholas-Westby that's correct yes. Models Buidler generates a class with declared, strongly typed properties on it. But you can consider this to be similar to a domain model. Ditto is a view models mapper and allows you to convert your domain model (be that the Models Builder model or an IPublishedContent) into one or many different view models. This is the fundamental difference between Models Builder and Ditto, and the reason why you might use Ditto even if you are using Models Builder, because it allows you to convert the Domain Models into more meaningful view models.
Now, all Models Builder models are still IPublishedContent, so in theory you could bypass the declared properties, and just use the standard IPublishedContent properties collection instead. But considering this would potentially re-run any Umbraco Value Converters (i'm not sure what the build in caching strategy on this is), it could add a small overhead, which is why I think it would be best to try and use strongly typed, already converted properties as your preferred option, then fall back to the properties collection if that fails. We obviously just need to make this more reliable than it currently is.

Makes sense. It seems like the solution for "Item" is pretty easy (i.e., can just call GetIndexParameters).
The more tricky one will be cases like "Children" where there is not necessarily a generic way to determine whether or not to skip the C# property. In that case, there will likely need to be some way to explicitly indicate where to get the data from.

I think Children can be left as meaning the Children property on IPublishedContent, we may just have document this fact. "Item" does indeed need addressing though.

@mattbrailsford Not sure what you mean by "Children can be left as meaning the Children property on IPublishedContent". Do you mean to say that it is the expected behavior that it will be impossible to get the value of an Umbraco (or Archetype) property named "Children" due to the fact that IPublishedContent.Children hides that during the mapping process?
Did you see this other issue in which somebody was attempting to map Children and was not getting the expected data? https://github.com/leekelleher/umbraco-ditto-labs/issues/6

yes, similarly you couldn't have a property on your doctype with the alias "name" or "version". Call them "reserved aliases" if you like, but if it's a property name of IPublishedContent, then it's deemed to be reserved.

Best I could suggest here is maybe detect when in debug mode and if you are, look for any reserved aliases in a node, and log a warning saying "Property with alias 'x' is inaccessible as it is masked by the reserved property X of IPublishedContent" or something?

I suspect we can find a better solution than forcing people to avoid naming things with "reserved" aliases. This could force people into some uncomfortable situations (e.g., if they build out all their data first, then attempt to implement the mapping only to find that it doesn't work).
It seems to me this situation of reserved aliases is an unintended byproduct of a performance optimization. Supposing that's the case, I would expect there to be a way of correctly getting the data rather than deferring to the side effect of the performance optimization.

Open to suggestions :)

For the "item" issue, this is all a moot point, as that just needs fixing. For "Children" on the other than, this ultimately can be resolved 2 ways, so you either need to say, you can't use it, or give them an option to choose which (you'll probably need to allow them to choose at point of mapping, because you won't want it to be a global settings), it's just how we give them that option which a) isn't ugly and b) is discoverable.
One option could be to have an additional flag on the UmbracoPropertyAttribute
[UmbracoProperty(SkipPropertyCheck = true)]
public IEnumerable<MyObject> Children { get; setl }

or
[UmbracoProperty(PropertyCheckOrder = PropertyCheckOrder.PropertiesFirst)]
public IEnumerable<MyObject> Children { get; setl }

This could work, but the likelihood is, you'll do it without initially, then get stuck and raise an issue, then we'll tell you about the extra property, and you'll go "ahh".
Maybe we could do something like how dictionary items works and allow property alias prefixing to choose a specific method for retrieving a property
[UmbracoProperty("[Children]")]
public IEnumerable<MyObject> Children { get; setl }

But this is a bit undiscoverable, and a bit too magic.
Like I say, if anyone has any better suggestions, I'm open.

Yes, a solution which doesn't lead developers down a rabbit hole before discovering the solution would indeed be ideal.
Perhaps the default case could be to use the non-optimized implementation that "just works" with properties named "Children" (and so on).
Then, you could provide an optimized version that looks at C# properties first. That could be in a number of forms (e.g., an alternate processor, a processor parameter, a special syntax in the string for the alias, or a setting in the web.config or in a static variable). Here would be an example:
[UmbracoProperty(Optimized = true)]
public IEnumerable<MyObject> Children { get; set; }

That would do what is currently happening (i.e., fetch the child nodes). This version would get the value of the "Children" property:
[UmbracoProperty]
public IEnumerable<MyObject> Children { get; set; }

Of course, I realize that it's also not great to have to opt-in to the performance optimization. On the other hand, I'm not sure how necessary the performance optimization actually is and what real impact it will have on developers. There are also potentially many other opportunities for performance optimization (e.g., output caching, storing mapping models to a cache, and so on).

@JimBobSquarePants I've commited a fix for the "item" issue here 9893605d98490c853da5ff695ef019726cf65f14. I don't know if you want to take a look to see if some method caching should be taking place or not?

I'm going to close this issue now though as the exact issue reported here has now been fixed. I'll raise another issue regarding the other property mappings.

Fix looks good to me for this issue.


Exposing the strobe to ROS

I'm interested in having a camera provide a strobe to the inertial sense.  Ultimately I'm trying get the inertial sense time stamp of the camera images but I'm planning to start with the a navigation message at each image.
I've been looking through the sdk and the ROS code but I'm getting lost.  Could I get some help exposing the strobe in ROS?

I can do this update, but I just need a pointer from @waltjohnson.  When do DID_STROBE_IN_TIME messages get published?  Is it just when the strobe in pin on the uINS goes from low to high?  Also, do I need to do any configuration of the communications to enable the strobe messages?

I looks like this is working. Thanks for your help with this!


cleanInvalidSocketPath on start

start for existing and invalid debugserver sockets and close those
originally done by @chenhaoyang2019 as a side change in fd7d8ee1642b6e29e84667daefd4083c0771af45 at https://gitee.com/openkylin/native-debug.git
Note: this is not verified at all, I mostly wanted to point this change (and fork, which is published as Kylin Native Debug) out and let others review this in more depth.
The parts that are a bit more complex and relevant "upstream" are:

assembly debugging (should be mostly fine)
stdin in debug console, but that seems to be "local linux only" (so may need a bunch of changes)

... and some unrelated changes like editor tab commands to start/stop recording via GDB (which sadly does not work well on most platforms, is very likely gdb-only, and can be enabled/disabled via debug console).

@WebFreak001 Should I rebase and fix the linting issues - or isn't this likely to get merged?

cleaning up at startup sounds like a reasonable idea to me

Not sure what the lint-docs want, when I run prettier on that file, I get the exact same result.

issues in CHANGELOG.md?

looks like my version bump was missing a link when I updated the docs - will fix in master

fixed on master now

Please recheck the changes, if they look good to you now I'll rebase and merge. Thanks!

@WebFreak001 updated and possibly ready to merge (still haven't done any tests other than the passing unit-tests, so inspecting those changes manually seems reasonable).
As I just recognized how much we have in the Changelog already... a new release would be really good.


[Dashboard] Add Kuviz page (IIIa) - QUICK ACTIONS Delete

https://github.com/CartoDB/cartodb/issues/15172

Implementation changes -> Closing for reorganization.


Object mocking issue when return type has streams with parameterised constraint type

Description:
Issue posted as received.
Hi Team,
We were using the following code snippets for some unit testing with ballerina SL beta 1
function testFunctions() {
    ...
    test:prepare(client).when("call").thenReturn(returnMockedDataStream());
    ...
}

function returnMockedDataStream() returns stream<DataRecord, error> {
    stream<DataRecord, error> dataStream = new (new DataRecordStreamImplementor());
    return dataStream;
}

class DataRecordStreamImplementor {
    private int index = 0;
    private DataRecord[] currentEntries = [
        ....
    ];

    isolated function init() {
    }

    public isolated function next() returns record {|DataRecord value;|}|error? {
        if (self.index < self.currentEntries.length()) {
            record {|DataRecord value;|} dataRecord = {value: self.currentEntries[self.index]};
            self.index += 1;
            return dataRecord;
        }
    }
}

This is breaking after migrating to Ballerina SL Beta 2 with the following error
{ballerina}TypeCastError {"message":"incompatible types: 'error' cannot be cast to 'ballerina/test:0.8.0:Error?'"}

    at ballerina.test.0_8_0:thenReturnExt(mock.bal:350)
    ballerina.test.0_8_0.MemberFunctionStub:thenReturn(mock.bal:143)

Appreciate your thoughts on how we can fix this.
Steps to reproduce:
Affected Versions:
SL Beta2
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

The error casting issue is fixed with https://github.com/ballerina-platform/ballerina-lang/pull/32276

The underlying issue happens when the mocked object returns a stream with parameterized type values and is fixed with https://github.com/ballerina-platform/ballerina-lang/pull/32316


No conection to MQTT

Hi @sabatex ,
I use multiple connections for the Mosquitto broker, they work, when I start the netdaemon I don't see in the log of Mosquitto that a connection is established.
I use NetDaemonApps.dll in Daemon to start up, is this correct?
Again the log
NetDaemon.AppModel.Internal.Application: Error loading app InverterAnenji.Anenji4000App
System.InvalidOperationException: Unable to resolve service for type 'NetDaemon.Extensions.MqttEntityManager.IMqttEntityManager' while attempting to activate 'InverterAnenji.Anenji4000App'.
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
at NetDaemon.AppModel.Internal.AppFactories.FuncAppFactory.<>c__DisplayClass13_0.b__0(IServiceProvider provider)
at NetDaemon.AppModel.Internal.AppFactories.FuncAppFactory.Create(IServiceProvider provider)
at NetDaemon.AppModel.Internal.ApplicationContext..ctor(IServiceProvider serviceProvider, IAppFactory appFactory)
at NetDaemon.AppModel.Internal.Application.InstanceApplication()
Thanks in advance for your help

Do you use Visual Studio Code or Visual Studio?

Visual Studio

Start debug this application in visual studio

correct appsetting.json
"HomeAssistant": {
"Host": "homeassistant.local",
"Port": 8123,
"Ssl": false,
"Token": "your token"
},
"Mqtt": {
"Host": "homeassistant.local",
"UserName": "mqtt",
"Password": "your password"
}

homeassistant.local

hi,
i see in your answer that ssl is set to false, when i do that i don't get a connection with home assistant.
ssl is now set to true connects with home assistant but gives the same error see attachment

Solved thanks


Fix modal css

Modals in Status Pages app are using custom styling that overrides standard HeadingText platform styles. This needs to be updated to use New Relic standard styles.

Can you assign this to me!

PR #165 fixes this issue


Remove integrated wait to enable active state capture.

This PR will fix https://github.com/Huddle/PhantomCSS/issues/154 but will probably break many other things. (I'm sure the wait in question was added for a reason.)
Feedback is welcome.

This is an old hack, that is probably redundant now.  It is possible this change will cause behavioural differences in wild test-suites - but now is a good time to do it.  Thanks

Ok, this change is actually more aggressive than first thought, especially when animations are in play.
I've added the following option to allow people to switch off the wait, but it will remain in place by default
phantomcss.init({
    captureWaitEnabled: false
});


Effect of Gun Law Reviews

So I've gone through the notebook severally just trying to wrap my head around everything that's going on. A thought just came to me. We see that for some states, there is an increase in the gun law reviews on a yearly basis to demonstrate the strictness of the legislature in tackling gun violence in these states.
However, is it possible to measure what effect these increase or decrease in reviews as the case may be, affects the gun violence incidents in the coming year? or even in that year (depending on how the count of gun law reviews was obtained for each year).
That is, does the increase in reviews for a particular year see a decrease in the violence of the upcoming year, and vice versa? @heyakshayhere

The numbers are taken from the internet just to get the more insights of the data and so that we can get more clear picture


sourceMaps shouldn't throw an error if outFile is not set

Today, init({sourceMap: {}}) has been deprecated in favor of init({sourceMaps: true})
But this prevent us to generate source-map when using multiple bundles at once
In order to support multiple bundles, the name of the source-map should be generated only if an outFile is mentionned. So it has to support an init object without outFile.

I would hold off going for these changes, as 1.4.1 will deprecate outFile. Please check branch 1.4.1 (there also examples on GitHub) if you and any ideas, let's work on making 1.4.1 better :)

Ok, I worked on master, that's why.
So I'll check the 1.4.1

Yeah, 1.4.1 has many breaking changes. check the preview repository (on the list in fuse-box)


Check thumbnail availability and update if necessary

Currently the thumbnail may "vanish" without us knowing about this, we should have a service which checks the availability of thumbnails and updates the thumbnail (imdb-resolver + API request).
Why is this issue open? The Mulholland Drive thumbnail is now returning a 404

Will be handled by the metadata-updater


Where is the codegen?

I'm asking this in relation to #76, which I was intending to work on.  However, almost immediately I see changes are required in src/React/Basic/DOM/Generated.purs, which is headed
-- | ----------------------------------------
-- | THIS FILE IS GENERATED -- DO NOT EDIT IT
-- | ----------------------------------------

but nonetheless is checked into git as a source file.
So, I will have to work on the code generator, which now seems to be a bit of a showstopper for contributing, as it's not included.  Or am I missing something?  Sorry if I am, BTW.

Ah, I'm so sorry.  I see it was hiding in a directory called codegen.  Oops.  Back soon on the other issue.  Sorry about that.


Verification APIs

For Verification Api We need Access to following

Procure Adhaar, NSDL, Driving License,Ration Card,Voter ID,Passport,etc APIs and/or format : some standards or samples.The image analysis works geometrically i.e. it scans for text only at places defined to have the required datafields. Thus need exact dimensions for them to work.

Right now we need to approach UIDAI and NSDL to purchase the Adhaar & NSDL subscription.Already one stage is procured we have to show the documents and get ourselves verified

Need to work on Aadhaar Esign, get Yes Bank and other partners whom we are in talks with to agree on esigning using UIDAI

As soon as the subscriptions are obtained, lets put the apis to use; by the time work around the application layers to optimize the data fields require to run these APIs.

Verification API needs to incorporated with @anuragmath  ML project also think of in that term, where we can use it inside finocial as an offering also
Developing VERIFICATION API in the gateway is also doable where we can approach this as all the consumer related data should be stored in gateway so that it can act as interoperable service to all

@maektwain Lets go for adhaar tommo itself

ok, Are you going to be here in Delhi which means i have to collect document then ankit can also join

For finocial we can set up a external linking to gateway/platform where even a normal client is created through Create Client Button the verification are routed through the gateway.Lets Keep Anurag's ML project after the verification API, since ML project only needs maximum and authentic inputs. Refer to these Adhaar n all as some sort of inhouse verification where a data is passed  as "authentic" / "unauthentic"...yeah will be in delhi tommo but office closes before 5pm, so is it possible in first half itself??

@mit2u  I am not sure we can always try lets see.


Create example of accelerometer w/ mean and std. dev.

To detect static postures and (relatively) static vibrations.

https://github.com/damellis/sensors/commit/03c0c06298f607aee3fea8bfa7afa397dcce9fb6


[13.x] Rerender

Cleaned-up version of #300 (since I cannot push into that PR), plus a few other clean-ups from main

For some more context: in #300 we found that compiling clang with newer GCC breaks for some reason we didn't fully understand, however, going back to GCC 8 seems to work without issue. I commented:

[...] since clang 13.x is basically completely out of support, it's probably not a good use of our time to dig too deeply what's going on exactly. If things build fine with GCC 8, that's good enough for me for now!


feature(rear-panel):  bring up the usb interface of the rear panel mcu

Compile in the HAL USB driver into the rear panel board
Assign it the VID 0x04D8 and PID 0xEF01 (appropriate confluence page updated)
template out the message handling by implementing an echo back on the USB interface

needs to be tested still

Codecov Report

Merging #561 (475c0e9) into main (25755ef) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #561   +/-   ##
=======================================
  Coverage   84.46%   84.46%
=======================================
  Files          89       89
  Lines        2871     2871
=======================================
  Hits         2425     2425
  Misses        446      446

tested by running the following script over ssh:
import serial
ser = serial.Serial('/dev/ttyACM0',115200)
len = ser.write(b"hello there")
data = ser.read(size=len)
print(data)
ser.close()


Remove deprecated apps section & add GitHub repo links

TigerSearch and TigerTickets were on the free tier of Heroku, which is being removed so the apps won't work anymore.

Also added GitHub links to the rest of our app repos since they're all public.

In this same PR, could you add Github links to any public repos that I haven't already added? e.g. TRT

In this same PR, could you add Github links to any public repos that I haven't already added? e.g. TRT

@shannon-heh done!


Automatic posting to Discord

Add an option (default to OFF) to automatically post your activity to discord.
To avoid being throttled or banned by Discord, this should not be done every time the user does any BGS activity - it should be every 5 minutes or so as a background task.

If even perhaps fully automating the push to discord is not decided for, could maybe set a options check box to one button push to discord by clicking the "Latest BGS Tally" bypassing the discord preview pop up window, acting as if the post to discord button was pressed immediately.   Having the box unchecked would allow a "Latest BGS Tally" activation that brings up the pop up, choosing the options offered, sending.  Then can go ahead and set the one button push option check box so it just sends to discord right from "Latest BGS Tally"..?

Although a 'one click press' is a neat idea, the checkbox to enable / disable that feature would also have to be on the main EDMC window, so that users can access the preview popup window quickly if they need, without digging around in the plugin configuration page. However, over the last few releases I have been trying to make an effort to simplify the main EDMC window and this would be a bit of a backward step.
So, I still favour leaving the UI as it is, and adding auto-posting on a regular interval instead. I'm thinking 5 minutes should be good for this.


layer: clarify that layers are gzipped

Signed-off-by: Jonathan Boulle<EMAIL_ADDRESS>

Yes. I wonder if we worded in such a way that allows that to be optional? The mimetype having the +gzip suffix means it's an option. But will always at least a tar.
Does that make sense?

The mimetype having the +gzip suffix means it's an option.

does it? I sort of also had that intuition but can't seem to find a reference stipulating that.
https://en.wikipedia.org/wiki/Media_type#Suffix
https://tools.ietf.org/html/rfc6839

On Fri, Sep 16, 2016 at 06:39:58AM -0700, Jonathan Boulle wrote:

The mimetype having the +gzip suffix means it's an option.

does it? I sort of also had that intuition but can't seem to find a
reference stipulating that.
https://en.wikipedia.org/wiki/Media_type#Suffix
https://tools.ietf.org/html/rfc6839

I don't think +gzip is defined anywhere, but I think we could define
+gzip and refernce RFC 6839 as the pattern we're following.

does it? I sort of also had that intuition but can't seem to find a reference stipulating that.
https://en.wikipedia.org/wiki/Media_type#Suffix
https://tools.ietf.org/html/rfc6839

You're right. Perhaps we ought to describe a Structured Syntax Suffix
for +gzip, in likeness to rfc6839, but for this use-case

On Tue, Sep 20, 2016 at 06:45:39AM -0700, Vincent Batts wrote:

does it? I sort of also had that intuition but can't seem to find a reference stipulating that.
https://en.wikipedia.org/wiki/Media_type#Suffix
https://tools.ietf.org/html/rfc6839

You're right. Perhaps we ought to describe a Structured Syntax Suffix
for +gzip, in likeness to rfc6839, but for this use-case

Already filed as #332 ;).

LGTM
In general, the suffixes aren't really optional (Apache HTTPD gets this very wrong, on occasion). In practice, it is much better to treat these as string constants. In Docker, we have them as .gzip to prevent this mucking. I changed this spec to use +gzip to keep it consistent with other media types, thinking that we had the discipline to avoid these problems, but #332 proves I was mistaken.

can we land this and move on to #332 et al? needs another LGTM

@jonboulle I'd like to see this in but #332 goes way too far. I hope this PR isn't considered a pre-cursor.

On Mon, Sep 26, 2016 at 11:44:44AM -0700, Stephen Day wrote:

@jonboulle I'd like to see this in but #332 goes way too far. I hope
this PR isn't considered a pre-cursor.

I think requiring application/vnd.oci.image.layer.tar+gzip to be
compressed with gzip makes sense regardless of whether we define
application/vnd.oci.image.layer.tar or a +gzip structured syntax
suffix.  So I'm fine landing d58f4c764 as it stands (although I'd
rather be linking to 1, which is the same doc but in a more
obviously versioned location).  Whether #332 or other optional
gzipping lands later is orthogonal.

LGTM

LGTM


[r] Extend SOMADataFrame to writes to RecordBatch

Issue and/or context:
SOMADataFrame should write RecordBatch as well as Table objects
Changes:
The write method was extended, and test were added.
Notes for Reviewer:
#839
#939
SC 25570
Fixes #839

Codecov Report
Base: 79.30% // Head: 66.64% // Decreases project coverage by -12.66% :warning:

Coverage data is based on head (841acd9) compared to base (fc9182a).
 Consider uploading reports for the commit ce3bd4f to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #963       +/-   ##
===========================================
- Coverage   79.30%   66.64%   -12.66%
===========================================
  Files          72       42       -30
  Lines        3711     1709     -2002
===========================================
- Hits         2943     1139     -1804
+ Misses        768      570      -198

Flag
Coverage Δ

python
?

r
66.64% <ø> (+0.11%)
:arrow_up:

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

Impacted Files
Coverage Δ

apis/python/src/tiledbsoma/__init__.py

apis/python/src/tiledbsoma/_arrow_types.py

apis/python/src/tiledbsoma/_collection.py

apis/python/src/tiledbsoma/_common_nd_array.py

apis/python/src/tiledbsoma/_constants.py

apis/python/src/tiledbsoma/_dataframe.py

apis/python/src/tiledbsoma/_dense_nd_array.py

apis/python/src/tiledbsoma/_exception.py

apis/python/src/tiledbsoma/_experiment.py

apis/python/src/tiledbsoma/_factory.py

... and 22 more

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

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


Proper selection behavior when moving to column without entries in the current row.

This task is automatically imported from the old Task Issue Board and it was originally created by Adam Obuchowicz.
Original issue is here.

Steps to reproduce
Open Component Browser and select the highest entry possible
Move left or right
Expected
Behavior as described in  "Underflow Navigation Patterns" section of the design doc.
Actual
The selection goes to non-existing entry.

No longer valid for new CB design.


feat: add legal disclaimer modal and component

Implemented a new LegalDisclaimer component to display the disclaimer text.
Integrated a modal that prompts users to accept the legal disclaimer on app mount.
Tracked events for acceptance or decline of the disclaimer using Aptabase.
Renamed LEGAL.md to LEGAL_DISCLAIMER.md for clarity.
Updated App component to use hooks for managing the disclaimer modal logic.

This pull request includes significant updates to the legal disclaimer and the introduction of a new legal disclaimer modal in the application. The most important changes include renaming and updating the legal disclaimer file, adding a new modal to display the legal disclaimer on application startup, and integrating usage analytics with Aptabase.
Updates to the legal disclaimer:

LEGAL_DISCLAIMER.md: Renamed from LEGAL.md and updated to include sections on community-submitted mods and the use of Aptabase for anonymous usage analytics. [1] [2]

New legal disclaimer modal:

src/renderer/src/App.tsx: Added logic to display a modal with the legal disclaimer on application startup if the user has not previously accepted it.
src/renderer/src/components/legal-disclaimer.tsx: Created a new component for displaying the legal disclaimer content within the modal.


Region Start Not Working

What is your Quests version / build number (do not say "latest")?
Quests-3.7.8
WorldGuard-7.0.1Beta & 7.0.0
Describe the problem and how to replicate it. Any console errors to post using Pastebin.com?
When setting up a quest to start with a region it won't give the player the quest.
If applicable, can you provide an example quest from quests.yml using Pastebin.com?
https://pastebin.com/a1XYq39K

Use https://ci.codemc.org/job/PikaMug/job/Quests/19/
Warning: The build linked above is experimental. Make sure to back up your Quests folder before attempting to use it. Alternatively, wait until the final release on Spigot.
Sent with GitHawk


Unable to generate anchors

Hi there, I'm getting the following error when trying to run gen_anchors.py
C:\Users\AMGCODE\Anaconda3\envs\tensorflow\pythonw.exe C:/Users/AMGCODE/Desktop/Python/ENEL645/Final_Project_ENEL645_AYK/keras-yolo3-master/gen_anchors.py -c config.json
Traceback (most recent call last):
File "C:/Users/AMGCODE/Desktop/Python/ENEL645/Final_Project_ENEL645_AYK/keras-yolo3-master/gen_anchors.py", line 132, in
main(args)
File "C:/Users/AMGCODE/Desktop/Python/ENEL645/Final_Project_ENEL645_AYK/keras-yolo3-master/gen_anchors.py", line 111, in main
centroids = run_kmeans(annotation_dims, num_anchors)
File "C:/Users/AMGCODE/Desktop/Python/ENEL645/Final_Project_ENEL645_AYK/keras-yolo3-master/gen_anchors.py", line 57, in run_kmeans
indices = [random.randrange(ann_dims.shape[0]) for i in range(anchor_num)]
File "C:/Users/AMGCODE/Desktop/Python/ENEL645/Final_Project_ENEL645_AYK/keras-yolo3-master/gen_anchors.py", line 57, in
indices = [random.randrange(ann_dims.shape[0]) for i in range(anchor_num)]
File "C:\Users\AMGCODE\Anaconda3\envs\tensorflow\lib\random.py", line 195, in randrange
raise ValueError("empty range for randrange()")
ValueError: empty range for randrange()
Process finished with exit code 1

I don't understand what the cause of this could be?  My config.json looks like the following:
{
"model" : {
"min_input_size":       800,
"max_input_size":       800,
"anchors":              [55,69, 75,234, 133,240, 136,129, 142,363, 203,290, 228,184, 285,359, 341,260],
"labels":               ["ship","vehicle","airplane"]
},
"train": {
    "train_image_folder":   "C:/Users/AMGCODE/Desktop/Python/ENEL645/Final_Project_ENEL645_AYK/keras-yolo-3-master/",
    "train_annot_folder":   "C:/Users/AMGCODE/Desktop/Python/ENEL645/Final_Project_ENEL645_AYK/keras-yolo-3-master/",
    "cache_name":           "sva_train.pkl",

    "train_times":          8,
    "batch_size":           16,
    "learning_rate":        1e-4,
    "nb_epochs":            100,
    "warmup_epochs":        3,
    "ignore_thresh":        0.5,
    "gpus":                 "0,1",

    "grid_scales":          [1,1,1],
    "obj_scale":            5,
    "noobj_scale":          1,
    "xywh_scale":           1,
    "class_scale":          1,

    "tensorboard_dir":      "logs",
    "saved_weights_name":   "svaweights.h5",
    "debug":                true
},

"valid": {
    "valid_image_folder":   "",
    "valid_annot_folder":   "",
    "cache_name":           "",

    "valid_times":          1
}

}

The images I'm passing as an input are 800x800

I got the same error please help!

Hello @ameanprogrammer
Everything is Good. Problem is here in voc.py file line number 44.
obj['name'] not in labels always giving true.Your labels name is not matching with obj['name']


hyper1.0

Problem
hyper1.0 is released and changes some things. it no longer has a server abstraction and wants you to manage the server lifecycle, but it manages the connection lifecycle.
Summary of changes

enable backports feature, start using new API

Todo:

HTTP2 support
i. ALPN: h2
ii. Upgrade protocol
reqwest
routerify
aws-smithy

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

Can this be closed in favour of #6386 ?


Calling zoom in .on('ready') callback renders broken waveforms

Wavesurfer.js version(s): 2.1.0
Browser version(s):
Chrome 67
Code needed to reproduce the issue:
zoomVal=500; wavesurfer.on('ready', function() {             wavesurfer.zoom(zoomVal); });
Use behaviour needed to reproduce the issue:
Load an audio file, then call zoom within ready callback, waveforms render like this:

Expecting this:

Work Around
To work around, zoom out and then back in.

Is there any particular reason you need to have it in the .on ready ?
I use it outside. Inside my .js i have the following.
var zoom = document.querySelector('#zoom');
zoom.oninput = function() {
var zoomLevel = Number(zoom.value);
wavesurfer.zoom(zoomLevel);
In the html i have:
 Zoom
and in the           $(document).ready(function() {
$("#zoom").ionRangeSlider({
min: 0,
max: 200,
from: 0,
step : 5,
grid : true
});
});
Here is the waveform as normal.

Here is the same waveform zoomed

This audio is only 1 channel, but it works perfectly on two channels.
I settled on 200x zoom .

No feedback, closing.


Change dashboard variable from Panel

I was wondering if it is possible to change the dashboard variable from a Panel. So lets say I have 3 variables South Africa, USA, Canada. And I want to choose South Africa only, is there a way to do that?

@pederjohnJedi To update dashboard variable we created a special panel: https://volkovlabs.io/plugins/volkovlabs-variable-panel/. It may work better for your use case.
To update variables you can use locationService:
locationService.partial({ from: fromValue });


support array default value

I want to declare default value as an array like below.
optional :numbers, type: Array[Integer], default: [1, 2, 5], values: [1, 2, 3, 5, 8]

But, IncompatibleOptionValues exception raised.
.../gems/grape-0.13.0/lib/grape/validations/params_scope.rb:238:in `check_incompatible_option_values': Grape::Exceptions::IncompatibleOptionValues (Grape::Exceptions::IncompatibleOptionValues)

https://github.com/ruby-grape/grape/blob/master/lib/grape/validations/params_scope.rb#L269
This line seems to be modified to support an array default value.

I think that line's a bit of a red herring. it's checking that the default is a single value contained in the allowed values array, such as the case:
optional :number, type: Integer, default: 1, values: [1, 2, 3]

Grape has some 'hidden' features (see CustomTypeCoercer on head) that could probably be made to do what you're trying to do here, but it seems to me that your declaration is unambiguous enough and ValuesValidator and ParamsScope could probably be made to handle this special case based on the fact that type is a collection.

but it seems to me that your declaration is unambiguous enough

as for me it's ambigious :neutral_face:
I'd prefer to use the consist_of validator (not implemented :) ):
param :collection, type: Array, default: [1, 2], values: [[1, 2], [2, 1]]
param :collection, type: Array, default: [1, 2], consist_of: [1, 2]

In such case  the values validator does the same work as it does for any other type(explicity allows only the value defined in the collection, any value in the collection has the same type as param type)
consist_of works only for a collection type(raises an error for other types) and checks if the validated param is consists of allowed values.

:+1:
Call it members to fit with values?

@dslh good point, I agree with you!

+1 for this feature and consist_of


simple calculator functions in C

using Switch case

Plz add the code in formatted form so that it is more readable

Code not acceptable refer to issues section for more ideas.


added hit detection for symbol edges to canvas renderer with unit tests

Finally figured out how to repair my jumbled commit log of pull request #280 and how to roll the fix into one single commit with some crafty use of git rebase. Sorry for the inconvenience and thanks for the help.

Hm. This looks good, but the "outside symbol interior, inside symbol edge." test fails in Opera. Do you have any idea what could be causing this?

I suspect it might be due to antialiasing issues. I'm testing with a stroke width of 3 pixels, so a location 1 pix away from the interior is actually testing 0.5 pix away from the outer edge of the stroke. Testing 0.5 pix away from an edge may be too hairy for a unit test, since that's well within the zone where antialiasing differences between browsers can cause the test to pass or fail. I think it's safer to change the test to use a slightly larger stroke so there's a larger area between 'interior' and 'outside-interior-but-still-within-stroke'.
I'll test this one in opera and adjust the test a bit if that's indeed the fix.

As I suspected, Opera uses a more aggressive antialiasing, so broadening the stroke width in the edge hit detection test now makes the Canvas tests pass in Opera.


[Insider Build] "Folder Symbolic Links" appear as "Files" and cannot be opened

VSCode Version: Latest Insider Version
OS Version: macOS Mojave 10.14.3

Steps to Reproduce:

Create a folder and open in VScode
Create a symbolic link to another "Folder" inside folder created in step 1.
VS code will display the link as File rather than a folder.

In the insider build you will get the following error -

This appears to have been broken recently. Possibly in the last 2-3 insider builders. Opening the same folder using non insider build will display the symbolic link as folder and you can browse inside it like a normal folder.

Does this issue occur when all extensions are disabled?: Yes

Sounds like a change in the file service, forwarding to @bpasero

To add to this: I am also unable to open my symbolic link project folder as a workspace since updating to the last version of insiders (1.33.0).
It seems every way of loading/using symbolic links is broken.

@jrieken the idea of FileType is that I can have FileType.SymbolicLink | FileType.Directory so that I can signal both types right?

fixed via https://github.com/Microsoft/vscode/commit/480d54b54698d9f7600bcd1176db87063b2a841d

Yeah, FileType is a bitmash

Thanks for the fast fix @bpasero .. Got the latest nightly and it works 👍


Switch default shell on Windows to PowerShell

It's been proposed in #12 that the default shell on Windows should be switched to PowerShell. Since that issue contains another main point, I'm moving the conversation on the matter of changing the default to here.

Implementing this, while trivial, is not something I'm entirely yet convinced to be the correct course of action. I personally use Linux, so if a Windows user could explain to me why this change should be made (@ostev?), that would be fantastic!

Commands like ls don't exist in cmd. It will just error out. This causes some potential incompatibility with scripts designed to work on sh. PowerShell is more compatible with other shells.

But in the context of the new changes which allow the user to specify the default shell on Windows to be PowerShell just by adding this to the top of their file, is a global change needed?
default_shell.targets.windows = ["powershell", "-c", "{COMMAND}"]

Having sensible defaults would be the main reason – cmd is really old at this point. Ultimately, the user could just set it to PowerShell themselves, but the tool could just save you the trouble.
It also makes makes Bonnie on Windows more compatible with Bonnie on Linux and macOS, without any configuration changes.

Okay. I guess my only remaining question then is what is the default on Windows if you open a command prompt? What would you normally use to execute a package installation for example?

That has a surprisingly complicated answer.

PowerShell 7 (pwsh) is heavily encouraged by Microsoft, but is not included by default
Windows PowerShell (powershell) opens when you open the "PowerShell" application
cmd opens when you open the "Command Prompt" application, but is discouraged by Microsoft (with good reason)

I normally use PowerShell 7, but I had to manually install it. I also use the Windows Terminal application, which is also not included with the OS. Windows PowerShell now prompts you to install PowerShell 7 on startup.

Okay, so we'd be changing the default to Windows PowerShell then (thanks for the clarification), which is installed by default and typically used for tasks like package installation etc.?

Yes. I'd hazard a guess that a lot of people use PowerShell 7, but only cmd and Windows PowerShell are guaranteed on Windows 7–10.

Okay. You've convinced me! Windows PowerShell will be the default shell on Windows from Bonnie v0.3.0 and above!

For those looking at this in future wondering how to use cmd, add this to the top of your bonnie.toml:
default_shell.generic = ["sh", "-c", "{COMMAND}"]
default_shell.targets.windows = ["cmd", "/C", "{COMMAND}"]

This sets the generic default shell to sh and to cmd on Windows. You can see more information in the documentation.


I'm failed with helloworld example

hello.m:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Error: the following clang command did not run successfully:
/usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/bin/clang
@/var/folders/m0/b6__78jj2gjcgfxlbjmzmsm80000gn/T/clang_command_.tmp.9452cb.txt
++Contents of '/var/folders/m0/b6__78jj2gjcgfxlbjmzmsm80000gn/T/clang_command_.tmp.9452cb.txt':
"-cc1" "-load"
"/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../../facebook-clang-plugins/libtooling/build/FacebookClangPlugin.dylib"
"-add-plugin" "BiniouASTExporter" "-plugin-arg-BiniouASTExporter" "-"
"-plugin-arg-BiniouASTExporter" "PREPEND_CURRENT_DIR=1"
"-plugin-arg-BiniouASTExporter" "MAX_STRING_SIZE=65535" "-cc1" "-triple"
"x86_64-apple-macosx10.14.0" "-Wdeprecated-objc-isa-usage"
"-Werror=deprecated-objc-isa-usage" "-emit-obj" "-mrelax-all"
"-disable-free" "-disable-llvm-verifier" "-discard-value-names"
"-main-file-name" "hello.m" "-mrelocation-model" "pic" "-pic-level" "2"
"-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose"
"-munwind-tables" "-target-cpu" "penryn" "-dwarf-column-info"
"-debugger-tuning=lldb" "-target-linker-version" "351.8"
"-coverage-notes-file"
"/Users/ziroom/Documents/ziroom/wireless/inferT/hello.gcno"
"-resource-dir"
"/usr/local/Cellar/infer/0.15.0/lib/infer/facebook-clang-plugins/clang/install/lib/clang/7.0.0"
"-include"
"/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/clang_wrappers/global_defines.h"
"-Wno-ignored-optimization-argument" "-Wno-everything"
"-fdebug-compilation-dir"
"/Users/ziroom/Documents/ziroom/wireless/inferT" "-ferror-limit" "19"
"-fmessage-length" "0" "-stack-protector" "1" "-fblocks"
"-fencode-extended-block-signature" "-fobjc-runtime=macosx-10.14.0"
"-fobjc-exceptions" "-fexceptions" "-fmax-type-align=16"
"-fdiagnostics-show-option" "-o" "hello.o" "-x" "objective-c" "hello.m"
"-O0" "-include"
"/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/clang_wrappers/global_defines.h"
"-Wno-everything"

bash-3.2$ clang -v
Apple clang version 11.0.0 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Infer version v0.15.0

@lichanghong This maybe be a duplicate of https://github.com/facebook/infer/issues/1026#issuecomment-548591456, try with export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk ?

@lichanghong This maybe be a duplicate of #1026 (comment), try with export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk ?

thanks for your response. I have read #1026 carefully. but ,this method don't resolve my problem.
I have found a method to resole this problem as below:
infer -- clang -isysroot $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -target x86_64-apple-darwin14 -mios-simulator-version-min=8.2 -x objective-c -c -fblocks hello.m

Note that upgrading to 0.17.0 should solve the issue too.


docs: add homebrew installation note

relates to https://github.com/Homebrew/homebrew-core/pull/106740

Thank you for contribution!


Is it possible to search for a node in the graph with something like searchbox

When user enters a particular node id or label in searchbox,
it should highlight the node label with node in graph.Is it possible to do something like that?

From the brief description that I'm reading, it seems you want to implement a search functionality based on the node info? That's totally fine, you can probably use Graph._setNodeHighlightedValue to programmatically make a node highlight when you search criteria matches. Check the documentation here under the Graph instance members.


ovh-angular-input-number-spinner

Migrate ovh-angular-input-number-spinner component
The goals of the migrations is:

Drop the Bower support
Apply ESLint Airbnb rules
Provide clean and concise README file.

We might consider using the share rollup configuration (cf: component-rollup-config)
Requirements
👀 Does the component is still used?

yes

💅 Does the component must be renamed?

no (must be deprecated)

🚨 Does the component has a dependency to another pending migration?

no

⚓ Related pull request
no

Since the import of the current controls panels as started, the migration of this component isn't a top requirement so that's why I close this ticket in order to turn off the associated project.
Thanks!


Terminal.cc does not compile in cygwin

Is there any way of implementing popen3 without unistd.h? Is there some boost-libraries maybe that does the trick? I think the open and pipe methods are gnu++11 and not std++11, or am I completely wrong?

Hmm, I'll have a look. the pipe-methods are posix I think, and I guess cygwin should implement it to get things to work on Windows. I'll do a quick google on the issue.

What was the error message again (tried to search for it without success)?

Have a look at: http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw/771774#771774
I think also you can use mingw-64 under Cygwin? Posix "should" be supported by both cygwin and mingw-64 if I understand it correctly.

Though it seems Cygwin got better support for POSIX than mingw-64?

See also https://en.wikipedia.org/wiki/Unistd.h.
Might be that the implementation on Cygwin is slightly different, and maybe we can get around that somehow.

Hmm try to change:
pid_t popen3(const char *command, int &stdin, int &stdout, int &stderr) {
  pid_t pid;
  int p_stdin[2], p_stdout[2], p_stderr[2];

to
pid_t popen3(const char *command, size_t &stdin, size_t &stdout, size_t &stderr) {
  pid_t pid;
  size_t p_stdin[2], p_stdout[2], p_stderr[2];

in terminal.cc. You might have to change more int's to size_t in that file.

Or try use __FILE* instead of int.

I will as soon as I get back to my computer.

I tried changeing to size_t and with __FILE* . It didn't work. I will try to disable the terminal, to find new probelms. I will also setup a W8 and W10 install that can be reached with remote desktop for easy testing. I could also do it for debian.

Sounds good!


Angular 2

Anyway I can use it with angular 2?

Yes you can, simply add the script files and then in your component you juste need to import it as below :
import 'card';
declare let Card;
Don't forget to use viewChild to select your card-wrapper :)


No error handling when zoomed in too much in Map

If I zoom in too much on the map, I get my console flooded by error messages, because no images exist over a certain zoom level. Maybe this should be handled, but I am not sure, I am opening this issue to start a conversation about it.

this means that the maxZoom of the layer/source is not set correctly. If you know the zoom limits beforehand, you can pass the value and no tiles will be fetched

I also think this is expected behavior if the min/max zoom are not set. Probably nothing what the map can "guess".


Updated README.md

hmda-tech no longer required - removed.
Added bower install instructions in case user does not have bower installed

👍  merging.


nghttp2: 1.41.0 -> 1.43.0

Motivation for this change
Noticed it was out of date.
https://github.com/nghttp2/nghttp2/releases/tag/v1.42.0
https://github.com/nghttp2/nghttp2/releases/tag/v1.43.0
This will cause a curl rebuild, so we should probably wait for tomorrows curl release, which announced fixes for two security vulnerabilities.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@ofborg eval


(spotify) -- Hash doesn't Match for SpotifyFullSetup.exe

Expected Behavior
After downloading the Full Setup executable, it should install/upgrade without erroring.
Current Behavior
Hashes do not match and the install fails.
Possible Solution
Update the hash in the chocolateyinstall.ps1
Steps to Reproduce (for bugs)

choco upgrade spotify -y

Context
Unable to update the package because I am unsure if the installer has been tampered with.
Your Environment

Package Version used: <IP_ADDRESS>
Operating System and version: Windows 10
Chocolatey version: 0.10.13

Duplicate of #1229


Adding game TwixT

TwixT is a 2-player, deterministic, perfect information game, played on a 24x24 grid. See Wikipedia. This PR adds it to open_spiel. The board size can be adjusted from 5x5 to 24x24

Awesome, thanks! We'll take a look soon.

Thanks for your quick feedback, lanctot! I will apply the guidelines, add tests and do some simplifications.
Will push the changes within the next 2 weeks.

Thanks for your quick feedback, lanctot! I will apply the guidelines, add tests and do some simplifications. Will push the changes within the next 2 weeks.

Great, thanks. I will be away for 10 days as of today so there will be a delay on my end. Please reply to (and resolve) each of the comments when they are done.

Hi @stevens68, I will take a look over the holidays. Thanks!

Hi @stevens68, time got away from me. Could you pull and merge changes from master to resolve the conflicts, and then push the merge commit to your branch?

Hi @stevens68, time got away from me. Could you pull and merge changes from master to resolve the conflicts, and then push the merge commit to your branch?

Hi @lanctot, thanks for looking into it! Merged the changes and resolved  the conflicts.

@stevens68, it's been merged and should be included in the next sync to github (probably Monday) and included in the list of additions in the next release. Sorry for the long delay!
BTW, I was delighted to see the ANSI graphics in the ToString, nicely done! 🥰 👍

...thx for your reviewing efforts and comments. I learned a lot! take care!


Pop-Up "Paste as HTML"

Jodit Version: 4.1.2
Browser: all
OS: Windows
Is React App: true
Reproduced on xdsoft.net: true
Code
Can we Change the Modal Content on add more buttons in this modal ?

Expected behavior:
Actual behavior:

I don't quite understand the question. I'm guessing the problem is it always gives that pop-up when copy-pasting styled text, which is annoying.

Would be nice if there are more shortcuts: CTRL SHIFT V --> Plain paste for example.

CTRL SHIFT V is already taken by paste storage plugin


Issue with skillmap translation

Describe the bug
Unable to use the French translations for skillmap:
at this time, the first activity of Space adventure is translated (https://arcade.makecode.com/--skillmap#space), however it's only partially working: the translated strings are shown as expected on the "map", but not on the tutorial once the user clicks on the first activity.
I took a look at the dev tools in my browser to see how the translations are downloaded, I found the following URL was called when the user clicks on the first activity:
https://pxt.azureedge.net/api/md/arcade/skillmap/space/space1?targetVersion=1.8.22&lang=fr&cdn=20220401
This file contains English strings.
However, if I add a "country" code to the "lang" parameter, the downloaded file contains the translated strings, for example:
https://pxt.azureedge.net/api/md/arcade/skillmap/space/space1?targetVersion=1.8.22&lang=fr-FR&cdn=20220401
To Reproduce
Steps to reproduce the behavior:

Go to https://arcade.makecode.com/
If the UI is not already using the French language, switch to French language.
Click on 'Create a space adventure' in 'Skillmaps'
See that a new window opens and shows the map
See that the text in the column on the right of the screen is shown in French
Double click on the first activity to start the activity
The tutorial is shown in English, while the text in the editor is shown in French

Expected behavior
The skillmap tutorial should use the French translation data when available.
Screenshots
OK:

Not OK:

Desktop (please complete the following information):

OS: Windows 11
Browser: Edge
Version: 99

Additional context
The French language is automatically detected for me probably because of my browser preferences or location.

@shakao  can you take a quick peek? We can take a hotfix if this is indeed an issue.

Well... two days later the translation is working as expected for lang=fr too... it probably was a cache somewhere.


Can only load sigma with --sdvae

Hello,
I tried downloading using the provided download.py and git clone of the folder but I always get the same error when trying to run the interface.py:

Warning: position embed interpolation: 1, base size: 32
kv compress config: {'sampling': None, 'scale_factor': 1, 'kv_compress_layer': []}
2024-04-06 18:00:24,201 - PixArt - WARNING - Missing keys: ['pos_embed']
2024-04-06 18:00:24,202 - PixArt - WARNING - Unexpected keys: []
Traceback (most recent call last):
  File "D:\stable\pixartSigma\venv\lib\site-packages\diffusers\models\modeling_utils.py", line 109, in load_state_dict
    return safetensors.torch.load_file(checkpoint_file, device="cpu")
  File "D:\stable\pixartSigma\venv\lib\site-packages\safetensors\torch.py", line 308, in load_file
    with safe_open(filename, framework="pt", device=device) as f:
safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\stable\pixartSigma\venv\lib\site-packages\diffusers\models\modeling_utils.py", line 120, in load_state_dict
    if f.read().startswith("version"):
  File "C:\Users\fgran\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 27814: character maps to <undefined>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\stable\pixartSigma\PixArt-sigma\scripts\interface.py", line 193, in <module>
    vae = AutoencoderKL.from_pretrained(f"{args.pipeline_load_from}/vae").to(device).to(weight_dtype)
  File "D:\stable\pixartSigma\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 119, in _inner_fn
    return fn(*args, **kwargs)
  File "D:\stable\pixartSigma\venv\lib\site-packages\diffusers\models\modeling_utils.py", line 661, in from_pretrained
    state_dict = load_state_dict(model_file, variant=variant)
  File "D:\stable\pixartSigma\venv\lib\site-packages\diffusers\models\modeling_utils.py", line 132, in load_state_dict
    raise OSError(
OSError: Unable to load weights from checkpoint file for 'output/pretrained_models/pixart_sigma_sdxlvae_T5_diffusers/vae\diffusion_pytorch_model.safetensors' at 'output/pretrained_models/pixart_sigma_sdxlvae_T5_diffusers/vae\diffusion_pytorch_model.safetensors'.

I am able to run if I specify the --sdvae
Could the hugging face repo be corrupted?

Overwriting the content of pixart_sigma_sdxlvae_T5_diffusers\vae with https://huggingface.co/madebyollin/sdxl-vae-fp16-fix
seems to solve the issue

Seems the vae file is crushed. Uploaded.

redownloaded it and it works fine
Thanks!


Update Total Hours in Emissions Evaluation Report

In the Emissions Evaluation Report emails and Submission Feedback Reports, the total hours value is 2208 for all facilities (tested with ORIS 628, 2GTA, ORIS 55419, 500, ORIS 55409, CT1).
Acceptance Criteria: The report should be showing op time for the quarter, not total hours in the quarter.
Emissions Evaluation Report in submission Feedback Report for ORIS 55409, CT3

Emissions Evaluation Report in Evaluation Report email for ORIS 55409, CT3

Issue fixed. The emissions evaluation report for ORIS 55409, CT3 now look like this:

also fixed the same issue in the emissions printout report, the emissions printout report now look like this:

likewise, the Total Hour field in emissions error detail report is replace with Total OP Time, following the same logic.

Need to reject the pull request.


adding nodeConfig support for custom configuration

See #342
GridNode: adding support for custom configuration (Selenium 3 only)
JsonParserWrapper: adding "disableHtmlEscaping" to avoid convering non HTML characters
adding test for custom configuration

@lenny1806 Thank you for this PR. I had a few questions / comments I put in the PR. Please let me know your thoughts.

@smccarthy I removed the extra ;.


remove @angularclass/hmr-loader in prod

prod needs to remove this loader or allow @angularclass/hmr-loader to remove the hmr methods in prod and inline the bootloader

I added a prod feature to hmr-loader


macOS version support

Current (0.5.2) latest release crashes on macOS High Sierra 10.13.6 (17G14042).
Crash Report:

Termination Reason:    DYLD, [0x4] Symbol missing
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Symbol not found: _NSAppearanceNameDarkAqua
Referenced from: /Users/USER//OpenEXR-Viewer.app/Contents/MacOS/../Frameworks/QtCore.framework/Versions/A/QtCore (which was built for Mac OS X 10.14)
Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
in /Users/USER//OpenEXR-Viewer.app/Contents/MacOS/../Frameworks/QtCore.framework/Versions/A/QtCore

Was it compiled on macOS Mojave 10.14?
Could not compiled myself complaining about missing Imath library:

CMake Error at CMakeLists.txt:192 (target_link_libraries):
Target "openexr-viewer" links to:
Imath::Imath
but the target was not found.  Possible reasons include:

There is a typo in the target name.
A find_package call is missing for an IMPORTED target.
An ALIAS target is missing.

CMakeCache.txt reports that Imath_DIR is set to correct directory. Any clue?
Thanks.

Hi,
Thanks for reporting this crash.
I don't have access to a genuine Apple device, I am doing the builds on a VM, with an older macOS release. That may explain the problem with recent macOS revisions.
Regarding the build, from my recollection, there is an old version of the OpenEXR library shipped with the system. Since this needs a fairly recent revision of the library, you need to use brew or a similar tool to get an up-to-date version of the library. Otherwise, that may confuse CMake.
I am not sure if this is the issue, but it looks like it, regarding the error. If you manage to fix it this way, I'd be interested to get your feedback.
Thanks for the report. This encourages me to use CMake ExternalProject feature in future a release to avoid those issues.