Apple music api gives error.

I'm trying to create apple music api in python on ubuntu 18.04 but when i'm running .py file it gives error like:
"
15
Traceback (most recent call last):
File "AppleMusicApi.py", line 1, in
import applemusicpy
File "/home/pizone/.local/lib/python2.7/site-packages/applemusicpy/init.py", line 1, in
from .client import AppleMusic
File "/home/pizone/.local/lib/python2.7/site-packages/applemusicpy/client.py", line 2, in
import jwt
File "/home/pizone/.local/lib/python2.7/site-packages/jwt/init.py", line 19, in
from .api_jwt import (
File "/home/pizone/.local/lib/python2.7/site-packages/jwt/api_jwt.py", line 11, in
from .api_jws import PyJWS
File "/home/pizone/.local/lib/python2.7/site-packages/jwt/api_jws.py", line 10, in
from .algorithms import (
File "/home/pizone/.local/lib/python2.7/site-packages/jwt/algorithms.py", line 8, in
from .utils import (
File "/home/pizone/.local/lib/python2.7/site-packages/jwt/utils.py", line 1, in
import base64
File "/usr/lib/python2.7/base64.py", line 98, in
urlsafe_encode_translation = string.maketrans(b'+/', b'-')
AttributeError: 'module' object has no attribute 'maketrans'
"

This seems like a python version issue. I wrote and tested this code with Python 3 and it looks like you are using 2.7. There must be an issue in the PyJWT package. In Python 3, string.maketrans() was deprecated in favor of str.maketrans().
Is it possible for you to run using Python 3 and see if the issue resolves?

Hi mpalazzolo,
when using python3  then the error is
"
15
Traceback (most recent call last):
File "AppleMusicApi.py", line 1, in
import applemusicpy
File "/home/pizone/.local/lib/python3.6/site-packages/applemusicpy/init.py", line 1, in
from .client import AppleMusic
File "/home/pizone/.local/lib/python3.6/site-packages/applemusicpy/client.py", line 3, in
import requests
File "/home/pizone/.local/lib/python3.6/site-packages/requests/init.py", line 43, in
import urllib3
File "/home/pizone/.local/lib/python3.6/site-packages/urllib3/init.py", line 7, in
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
File "/home/pizone/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 3, in
import logging
File "/usr/lib/python3.6/logging/init.py", line 28, in
from string import Template
ImportError: cannot import name 'Template'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 21, in
from urllib.request import urlopen
File "/usr/lib/python3.6/urllib/request.py", line 88, in
import http.client
File "/usr/lib/python3.6/http/client.py", line 71, in
import email.parser
File "/usr/lib/python3.6/email/parser.py", line 12, in
from email.feedparser import FeedParser, BytesFeedParser
File "/usr/lib/python3.6/email/feedparser.py", line 27, in
from email._policybase import compat32
File "/usr/lib/python3.6/email/_policybase.py", line 7, in
from email import header
File "/usr/lib/python3.6/email/header.py", line 16, in
import email.quoprimime
File "/usr/lib/python3.6/email/quoprimime.py", line 44, in
from string import ascii_letters, digits, hexdigits
ImportError: cannot import name 'ascii_letters'
Original exception was:
Traceback (most recent call last):
File "AppleMusicApi.py", line 1, in
import applemusicpy
File "/home/pizone/.local/lib/python3.6/site-packages/applemusicpy/init.py", line 1, in
from .client import AppleMusic
File "/home/pizone/.local/lib/python3.6/site-packages/applemusicpy/client.py", line 3, in
import requests
File "/home/pizone/.local/lib/python3.6/site-packages/requests/init.py", line 43, in
import urllib3
File "/home/pizone/.local/lib/python3.6/site-packages/urllib3/init.py", line 7, in
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
File "/home/pizone/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 3, in
import logging
File "/usr/lib/python3.6/logging/init.py", line 28, in
from string import Template
ImportError: cannot import name 'Template'
"
and the pip version is
apple-music-python (1.0.2)

I am not able to reproduce the error, but it seems like there is an issue with the string module. Do you have a file in your current directory named string.py that it is trying to import from instead?
Another suggestion to troubleshoot would be to set up a virtual environment in your project and install the package from there with pip and see if it works. Then we can see if the issue is with the package alone or due to the interaction with the other packages you have installed.

I think the issue might be that you have a file in your directory named string.py that is overriding the default module. Try renaming that and see if it works.

Hi mpalazzolo,
After change string.py file the import "applemusicpy" error solved but now the variable are like
secret key,keyId, teamid gives error .
when use with python2 the error is:
"Traceback (most recent call last):
File "AppleMusicApi.py", line 7, in
am = applemusicpy.AppleMusic(secret_key=secret_key, key_id=key_id, team_id=team_id)
File "/home/pizone/.local/lib/python2.7/site-packages/applemusicpy/client.py", line 33, in init
self.generate_token(session_length)
File "/home/pizone/.local/lib/python2.7/site-packages/applemusicpy/client.py", line 55, in generate_token
'iat': int(datetime.now().timestamp()),  # issued at
AttributeError: 'datetime.datetime' object has no attribute 'timestamp'"
and when using with python3 then error is changed.
"
Traceback (most recent call last):
File "/home/pizone/.local/lib/python3.6/site-packages/jwt/algorithms.py", line 349, in prepare_key
key = load_pem_public_key(key, backend=default_backend())
File "/home/pizone/.local/lib/python3.6/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 20, in load_pem_public_key
return backend.load_pem_public_key(data)
File "/home/pizone/.local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1077, in load_pem_public_key
self._handle_key_loading_error()
File "/home/pizone/.local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1335, in _handle_key_loading_error
raise ValueError("Could not deserialize key data.")
ValueError: Could not deserialize key data.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "AppleMusicApi.py", line 7, in
am = applemusicpy.AppleMusic(secret_key=secret_key, key_id=key_id, team_id=team_id)
File "/home/pizone/.local/lib/python3.6/site-packages/applemusicpy/client.py", line 33, in init
self.generate_token(session_length)
File "/home/pizone/.local/lib/python3.6/site-packages/applemusicpy/client.py", line 58, in generate_token
token = jwt.encode(payload, self._secret_key, algorithm=self._alg, headers=headers)
File "/home/pizone/.local/lib/python3.6/site-packages/jwt/api_jwt.py", line 65, in encode
json_payload, key, algorithm, headers, json_encoder
File "/home/pizone/.local/lib/python3.6/site-packages/jwt/api_jws.py", line 113, in encode
key = alg_obj.prepare_key(key)
File "/home/pizone/.local/lib/python3.6/site-packages/jwt/algorithms.py", line 351, in prepare_key
key = load_pem_private_key(key, password=None, backend=default_backend())
File "/home/pizone/.local/lib/python3.6/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 16, in load_pem_private_key
return backend.load_pem_private_key(data, password)
File "/home/pizone/.local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1051, in load_pem_private_key
password,
File "/home/pizone/.local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1277, in _load_key
self._handle_key_loading_error()
File "/home/pizone/.local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1335, in _handle_key_loading_error
raise ValueError("Could not deserialize key data.")
ValueError: Could not deserialize key data.
"

For the Python 2 error, there is no timestamp() function in the datetime package. That was added in Python 3. I would recommend using this package in Python 3 only.
For the second error, there might be an issue with how you formatted you secret key in your code. I would recommend storing it in a separate file exactly how you got it from Apple (not included in your git repo), and read it in with something like this:
with open(file_location, 'r') as f:
    secret_key = f.read()

Its working now mpalazzolo with python3
but api status 401
here is my code
"
import applemusicpy
with open('/opt/Python/AuthKey_34MTF92235.p8') as f:
secret_key = f.read()
key_id = ''
team_id = ''
am = applemusicpy.AppleMusic(secret_key=secret_key, key_id=key_id, team_id=team_id)
print(am)
results = am.search('travis scott', types=['albums'], limit=5)
for item in results['results']['albums']['data']:
print(item['attributes']['name'])
""
and the result is
"
<applemusicpy.client.AppleMusic object at 0x7fb27f0b4438>
Traceback (most recent call last):
File "AppleMusicApi.py", line 11, in
results = am.search('travis scott', types=['albums'], limit=5)
File "/home/pizone/.local/lib/python3.6/site-packages/applemusicpy/client.py", line 715, in search
return self._get(url, term=term, l=l, limit=limit, offset=offset, types=type_str)
File "/home/pizone/.local/lib/python3.6/site-packages/applemusicpy/client.py", line 107, in _get
return self._call('GET', url, kwargs)
File "/home/pizone/.local/lib/python3.6/site-packages/applemusicpy/client.py", line 92, in _call
r.raise_for_status()  # Check for error
File "/home/pizone/.local/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.music.apple.com/v1/catalog/us/search?term=travis%2Bscott&limit=5&types=albums
""
I want to create an api  that is use in ionic in which user will login with apple credentials and then get genres of that user and all playlist and songs that will stream.

You are setting your key ID and team ID to blank strings. Also this API does not require user credentials to work as it is just gets catalog resources. I suggest read through the API documentation to understand how it works: https://developer.apple.com/documentation/applemusicapi


[Enhance] Adds windows compilation support

fixes #169
Here is the summary of the fixes,

In windows' compiler variables cannot be passed in the size of initialization of the array, so we have to initialize it something like this. int *xx= new int[variable]  - source
The long datatype in windows and linux are different so the following source suggested it to convert everything to long long .source
While defining EPS, its scope had to be changed to __device__, otherwise it was throwing errors about undefined EPS.

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

@divyanshj16 Hi, we really appreciate your contribution, and this PR seems to be very helpful for us. Can you kindly sign the CLA above and then we will start to review your modifications?

@Wuziyi616 I signed the CLA

@ZwwWayne Can you have a look at this PR?

The unit test failed. Seems to because the modified GPU ops can't run successfully on Linux platform?

Almost all of them says operation cancelled. Could it be because of something else?

If one run failed in CI, all other runs will be canceled. I think we need to find out the reason in that failed run. The error traceback is:
Traceback:
/opt/hostedtoolcache/Python/3.6.13/x64/lib/python3.6/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_data/test_datasets/test_dataset_wrappers.py:4: in <module>
    from mmdet3d.datasets.builder import build_dataset
mmdet3d/datasets/__init__.py:3: in <module>
    from .custom_3d import Custom3DDataset
mmdet3d/datasets/custom_3d.py:9: in <module>
    from ..core.bbox import get_box_type
mmdet3d/core/__init__.py:2: in <module>
    from .bbox import *  # noqa: F401, F403
mmdet3d/core/bbox/__init__.py:4: in <module>
    from .iou_calculators import (AxisAlignedBboxOverlaps3D, BboxOverlaps3D,
mmdet3d/core/bbox/iou_calculators/__init__.py:1: in <module>
    from .iou3d_calculator import (AxisAlignedBboxOverlaps3D, BboxOverlaps3D,
mmdet3d/core/bbox/iou_calculators/iou3d_calculator.py:5: in <module>
    from ..structures import get_box_type
mmdet3d/core/bbox/structures/__init__.py:1: in <module>
    from .base_box3d import BaseInstance3DBoxes
mmdet3d/core/bbox/structures/base_box3d.py:5: in <module>
    from mmdet3d.ops.iou3d import iou3d_cuda
mmdet3d/ops/__init__.py:12: in <module>
    from .knn import knn
mmdet3d/ops/knn/__init__.py:1: in <module>
    from .knn import knn
mmdet3d/ops/knn/knn.py:4: in <module>
    from . import knn_ext
E   ImportError: /home/runner/work/mmdetection3d/mmdetection3d/mmdet3d/ops/knn/knn_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZNK2at6Tensor8data_ptrIxEEPT_v

I am not very familiar with CUDA. I will let my teammates look into this problem.

@Wuziyi616 Is there any update on this?

Hi @divyanshj16 ,
Thanks for your kind contribution. Could resolve the conflict first? The CI fails due to a weird reason, I just reran it and am waiting for the outcome.

Looks like the conflicts are addressed in different PR. Do I still have to resolve the conflicts here?

@divyanshj16 No worry! Thank you for pointing us to this solution. Since we have opened a new PR to solve this issue, I will close this PR.

Hi @divyanshj16  ！We are grateful for your efforts in helping improve this open-source project during your personal time.
Welcome to join OpenMMLab Special Interest Group (SIG) , where you can share your experiences, ideas, and build connections with like-minded peers.
To join the SIG channel, simply message moderator— OpenMMLab on Discord or briefly share your open-source contributions in the #introductions channel and we will assist you. Look forward to seeing you there! Join us ：https://discord.gg/UjgXkPWNqA
If you have a WeChat account，welcome to join our community on WeChat. You can add our assistant ：openmmlabwx. Please add "mmsig + Github ID" as a remark when adding friends：）
Thank you again for your contribution❤


make Curl default option to build on Win as a temp workaround

@weshaggard - pipelines are not getting triggered

/check-enforcer override

@vhvb1989 - let me update the ci yml so the pipelines get triggered.


fix: wrong link problem set #1 dragons

@psvnlsaikumar I can't merge this, I don't have write access, can you merge it for me?


[SPARK-43492][SQL] Add 3-args function aliases DATE_ADD and DATE_DIFF

What changes were proposed in this pull request?
In the PR, I propose to extend the rules of primaryExpression in SqlBaseParser.g4, and two more functions DATE_ADD and DATE_DIFF that accept 3-args in the same way as the existing expressions DATEADD and DATEDIFF.
Why are the changes needed?
To do not confuse users and improve user experience with Spark SQL. There are the DATE_ADD and DATE_DIFF aliases for 2-args functions: https://github.com/apache/spark/blob/46332d985e52f76887c139f67d1471b82e85d5ca/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala#L606-L607
but Spark SQL doesn't provide 3-args DATE_ADD and DATE_DIFF. And Spark SQL outputs the confusing error:
spark-sql (default)> select date_add(MONTH, 1, date'2023-05-13');
[UNRESOLVED_COLUMN.WITHOUT_SUGGESTION] A column or function parameter with name `MONTH` cannot be resolved. ; line 1 pos 16;

Does this PR introduce any user-facing change?
No, only if user code depends on the error class. After the changes, Spark SQL outputs an result similar to DATEADD/DATEDIFF:
spark-sql (default)> select date_add(MONTH, 1, date'2023-05-13');
2023-06-13 00:00:00

How was this patch tested?
By running the existing test suites:
$ PYSPARK_PYTHON=python3 build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite"

Merged to master.


Update _config.yml, README.md; add resources.md; update just-the-docs to latest version

Update _config.yml

Generalize site metadata
Move exclude block down
Add footer content (copyright)

Update README.md to tell staff to complete TODO(setup) items
Add resources.md blank page
Update just-the-docs to latest

Yep I was going to do that in a separate PR because I bet there will be some config/dependency issues


Unexpected behavior when constructing vectors from wrong-dtype numpy arrays

In the wiki, it is stated that the vector objects support both construction from iterables and from objects that supports the buffer protocol (such as numpy arrays). It seems that the buffer protocol construction has precedence over the iterable construction. This makes sense, but it has an unfortunate side-effect.
When constructing an integer vector using a numpy array of integers of the wrong size, the resulting vector is not as I would expect:
>>> a = np.array([1,1,1], dtype=np.int64)
>>> glm.ivec3(a)
ivec3( 1, 0, 1 )

On my system, dtype=int64 is the default, so ivec3(np.array([1,1,1])) produces this "bug". This effect only seems to occur for integer and boolean vectors.
If the vector had used the iterable construction method here, the result would be as expected.
This effect makes combining glm and numpy quite a bit more dangerous. This "bug" is subtle and easy to miss. For safety, vectors always have to be constructed using the unpacking operator (ivec3(*np.array([1,1,1]))). Even worse: since arbitrary iterables may also support the buffer protocol, this precaution has to be taken in all functions that accept a generic iterable.
My feature request:
Could PyGLM be changed to only use buffer protocol construction if the types match, and use iterable construction otherwise?

Hi there @avdstaaij ,
you seem to have found a bug.
On my system, the same code runs without issues:
>>> a = np.array([1,1,1], dtype=np.int64)
>>> glm.ivec3(a)
ivec3( 1, 1, 1 )

However, running the code on linux produces the error you've mentioned.
T he bug persists with any given vector size:
>>> a = numpy.array([1,1,1], dtype="int64")
>>> glm.ivec3(a)
ivec3( 1, 0, 1 )
>>> glm.i8vec3(a)
i8vec3( 1, 0, 1 )
>>> glm.i64vec3(a)
i64vec3( 1, 0, 1 )

I haven't been able to look at possible causes in the code yet.
The way PyGLM converts a given object to e.g. a 32-bit int vector is by following a simple checklist:

Is the object a number?
Is the type of the object a PyGLM type?
Does the object support the buffer protocol?
Is the object a tuple or list?

If the object does support the buffer protocol, PyGLM extracts its data and identifies, which PyGLM type it corresponds to. Afterwards, it uses a suitable constructor for the target type.
I.e. in your example, PyGLM would first convert the numpy array to a 64-bit int vector (i64vec3) and continue by converting that to a 32-bit int vector (ivec3). This way you can convert from any bit-width to any other bit-width as you would expect - unless there is a bug, as is the case here.

The reason for this bug is that the data given by numpy is interpreted based on its format string. On the linux platform I've tested on, the C datatype long appears to be 8 bytes wide, unlike on my Windows OS, where it's 4 bytes wide.
Therefore, on the Windows machine, numpy reports the format (np.array((1,1,1), dtype=np.int64).data.format) as "q" (long long) and on Linux it reports as "l" (long). PyGLM always interprets "l" as 4-bit, regardless of the actual size of long, according to this table: https://docs.python.org/3/library/struct.html#format-characters.
This needs to be fixed.

Looks like I was too eager assuming what the issue was :).


 When I do it at the task line, or in Tasks codeblocks the behavior is consistent with the settings in Tasks plugin. But if I do the same in Time Ruler, I notice at two inconsistent behaviors

The future task is not created
The completion field is added even when the Tasks setting has this option turned off.

To Reproduce
Steps to reproduce the behavior:

Create a dummy recurring task in Tasks format
Click the task radio button to mark it complete
See stated behavior

Expected behavior
I want the behavior of Time Ruler to be consistent with other methods.
Screenshots
If applicable, add screenshots to help explain your problem.
Obsidian Version:

[ ] Mobile
[x] Desktop

Additional context
Add any other context about the problem here.

I'll try to fix this issue in the next update.


how to use redis bloom filter in predis?

Hi!
I used predis in my project and install redisbloom for my redis, but i can't use redisbloom command in predis.
I used $redis->command('bf.add',['test_key','test_value']) in my code, but it just echo 'Command 'BF.ADD' is not a registered Redis command.'
I want to know how to use redisbloom in predis?
Thanks!

Any follow up on this?

I have also encountered such a problem. Is there any solution

You can try to write one yourself in setbit.

Hi @y80x86ol,
You should be using the method Predis\Client::executeRaw() in such cases when trying to use a command which is not defined by Predis (which can be a common case with Redis modules). Just to use your own snippet, that would look like this:
$client->executeRaw(['bf.add', 'test_key', 'test_value']);


Remove jQuery autoloader

Mix is AMAZEBALLS! Such a simple, yet powerful api. A massive thanks to you Jeffrey for the resource!
I'm trying to use mix for WordPress dev where jQuery is (almost) always loaded in the frontend.
I'd very much like to remove the autoloader for jQuery which is found in webpack.config.js but I can't quite figure out if this is possible to do in webpack.mix.js.
I realize I can just remove the lines below, but I'd ideally like to avoid that if at all possible.
new webpack.ProvidePlugin(Mix.autoload || {
    jQuery: 'jquery',
    $: 'jquery',
    jquery: 'jquery'
}),

laravel-mix v. 0.8.8
npm v. 4.1.2

Looks like that plugin first looks for mix.autoload before it loads jquery. So would it be possible to just add mix.autoload({}) to your mix.js file to prevent this?
mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css')
   .autoload({});

I haven't tested this, just thought it may work.

Yeah you can do mix.autoload({}), but I think we might still want to remove the jQuery reference entirely.

Many thanks!


Rebuild causes sudo to be required to adjust screen brightness

The last two times that I've done a sudo nix-channel --update and sudo nixos-rebuild-switch, I end up in a state where I get this prompt every time I try to adjust screen brightness in Gnome 3:

Authentication is needed to run `/nix/store/...-gnome-settings-daemon-3.18.2/libexec/gsd-backlight-helper' as the super user

It stays this way until the next time I log in, at which point I can again adjust screen brightness without root, as expected.
Version info:
> uname -a
Linux renzo 4.4.4 #1-NixOS SMP Thu Mar 3 23:10:04 UTC 2016 x86_64 GNU/Linux
> nixos-version
16.09pre78286.0bf8a1a (Emu)
> nix-env --version
nix-env (Nix) 1.11.2
> nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
"16.09pre78848.9549257"

I confirm the problem

I'm seeing this on release-16.09.

Hm, I get this for 17.09 (worked in one of the beta releases) now. I haven't restarted after nixos-rebuild switch though.

I can't confirm whether this still happens to me anymore because, for the last few months, nixos-rebuild switch just causes the display manager to crash.

@chris-martin are you using GDM? If so I think this is finally fixed here: https://github.com/NixOS/nixpkgs/issues/21439#event-1348870891 (at least until we introduce wayland).
This still seems to happen for 17.09 after a rebuild-switch and the workaround seems to be a reboot.

I cannot reproduce this on current unstable. Is this still happening with GNOME 3.26?

I still cannot attempt to reproduce due to https://github.com/NixOS/nixpkgs/issues/14168#issuecomment-334958454

@teh Yes, I'm using GDM. Should I try rebuilding from the unstable channel?

Yes, switch no longer restarts display-manager on unstable.

Hmm, I just came across this issue on 5b53774f89ee4288554d5f45cf58c74787e421fb

Okay, apparently the issue happens whenever gnome-settings-daemon is rebuild. The polkit policy file in system profile will point to the new derivation but GNOME will still use the old gsd-backlight-helper.

Apparently, GNOME Shell is using DBus to call org.gnome.SettingsDaemon.Power.Screen interface. The interface is provided by ${gnome3.gnome-settings-daemon}/libexec/gsd-power but it is just a program ran by XDG autostart, not a systemd service, so it is not restarted when the service is updated. This might fix that: https://bugzilla.gnome.org/show_bug.cgi?id=758413

Was hit by this too.
The most straightforward way to fix that would be:

define a common place where gnome-setting-daemon executable lives (maybe some /run/share/gsd?)
patch https://github.com/GNOME/gnome-settings-daemon/blob/800116f344fdf0ce3ee7f1ab5aa9403366fd58d3/plugins/power/org.gnome.settings-daemon.plugins.power.policy.in.in#L28 to respect that directory (probably only when package is used in NixOS)
symlink gnome-setting-daemon there in an activation script (I hope polkit can resolve symlinks)
amend Autostart files in gnome-settings-daemon to launch stuff from that common place

If we don't want (cannot) restart gsd-power (just like don't want/cannot restart gnome-session), we should add some hacks here...

Hello,
I still have this issue going on but I am not able to confirm it happens after a nixos-rebuild switch.
What I experience is that from time to time, the issue starts and won't stop until reboot.
Not sure if relevant but I use 'redshift'.
My version info:
`

uname -a
Linux cosmo-mu 4.14.85 #1-NixOS SMP Sat Dec 1 08:43:00 UTC 2018 x86_64 GNU/Linux
nixos-version
19.03pre161545.7c73f53d836 (Koi)
nix-env --version
nix-env (Nix) 2.1.3
nix-instantiate --eval '' -A lib.version
"19.03pre161545.7c73f53d836"
`

HI ! For the brightness control - setting hardware.brightnessctl.enable to true and adding my user to the video group helped - no admin prompt anymore.
Is this issue more broad than being about controlling the brightness now ? If so - would it help to change the title/description ? If not - is there anything else that we need to do to close it ? Thanks so much ! :)

@cyplo Ths is specifically about changing brightness in GNOME after rebuild. It will be fixed by #57620

@jtojnar thank you ! :)
If this helps as a data point - it does work for me in gnome3 after sudo nixos-rebuild switch --upgrade and has been every time.

@cyplo The error occurs only when gnome-settings-daemon is changed so it is possible you have not encountered it.

Hi all I get this problem on 20.04, the backlight worked on 19.09 and after nixos-rebuild upgrade it stopped working.
> sudo light -v 3 -A 10
helpers.c:21: Error: could not open '/etc/light/targets/sysfs/backlight/auto/minimum' for reading
helpers.c:21: Error: Verify it exists with the right permissions

OR
> echo "200" | sudo tee /sys/class/backlight/intel_backlight/brightness

But in gnome it does not respond, and as you can see I need root access to change these files. It is strange that I also noticed my username not showing up on gdm, instead I have a username box. I wonder if this might be just a group missing for my user. Any thoughts? Is this related?
> uname -a
Linux fox 5.4.33 #1-NixOS SMP Fri Apr 17 08:50:26 UTC 2020 x86_64 GNU/Linux
> nix-env --version
nix-env (Nix) 2.3.4
> nixos-version
20.03.1418.5272327b81e (Markhor)
> nix-instantiate --eval '<nixpkgs>' -A lib.version
"20.03.1418.5272327b81e"

thanks in advance

I just found some stuff into journactl
Apr 22 14:17:52 fox .gsd-power-wrap[1821]: Error executing backlight helper: Child process stopped by signal 0
Apr 22 14:17:52 fox pkexec[14137]: myusername: The value for the SHELL variable was not found the /etc/shells file [USER=root] [TTY=unknown] [CWD=/home/myusername] [COMMAND=/run/current-system/sw/bin/gnome-settings-daemon/gsd-backlight-helper /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight 713]

Hi all I get this problem on 20.03, the backlight worked on 19.09 and after nixos-rebuild upgrade it stopped working.
> sudo light -v 3 -A 10
helpers.c:21: Error: could not open '/etc/light/targets/sysfs/backlight/auto/minimum' for reading
helpers.c:21: Error: Verify it exists with the right permissions

OR
> echo "200" | sudo tee /sys/class/backlight/intel_backlight/brightness

So you mean when you rebuild-ed on that one occasion adjusting screen brightness wouldn't work, and after a reboot it went away? Was this a rebuild from 19.09 -> 20.03?
What was the nixos-version of the system generation before the rebuild?
Lastly, this was in GNOME (it's not mentioned in your comment) and you mentioned a light command, I'm not sure how that has anything to do with GNOME. Was adjusting the brightness not working in the brightness slider in the shell?

It is strange that I also noticed my username not showing up on gdm, instead I have a username box. I wonder if this might be just a group missing for my user. Any thoughts? Is this related?

There must be some sort of issue with accountsservice and GDM.
Perhaps you could open a separate bug for this?

Apr 22 14:17:52 fox pkexec[14137]: myusername: The value for the SHELL variable was not found the /etc/shells file [USER=root] [TTY=unknown] [CWD=/home/myusername] [COMMAND=/run/current-system/sw/bin/gnome-settings-daemon/gsd-backlight-helper /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight 713]

That looks like you changed your shell maybe, and pkexec is accessing $SHELL, and that path doesn't exist anymore.

Thanks @worldofpeace, the shell was the problem.
I was using zsh but it was not present on /etc/shells, to fix this I added to /etc/configuration.nix:
  users.extraUsers.adisbladis = {
    shell = pkgs.zsh;
  };
  programs.zsh.enable = true;

I also found that  users.mutableUsers = true; so i used chsh but this is probably related to other issues I was having:
sudo chsh myuser --shell `which zsh`

Just to answer your previous question, I did upgrade by changing /etc/configuration.nix and channel, after I issued sudo nix-build upgrade to simply put.


Re-download offers button loading indicator shows waiting even after switching to different squeak

This can probably be fixed using cancel:
https://redux-toolkit.js.org/api/createAsyncThunk#cancellation

Or follow the advice here (don't cancel, ignore):
https://github.com/reduxjs/redux-toolkit/issues/1117#issuecomment-856642365


Add Hackbar

My first pull request on hacktoberfest

hey @ventodeco can you please add the image.
for the details refer the documentation


[Gradle] Added deep-scanning of gradle modules

For performance-reasons, scanning of Gradle modules was disabled for modules deeper than the first level. This does however mean that your module information might be wrong. Performance obviously depends on the number of modules lower than first level, but using the multi-threaded version of the Gradle scanner makes this negligible.
Currently the optimization is just removed, I could however also add a switch (eg with an EnvVar) to (de-)activate it, although personally I think the scan should be complete and not use any (sometimes weird) defaults.
Also, for testing, I could maybe add fineract to the repotests...
Note: this fix builds on #1379!

What is the time penalty for fineract and elasticsearch?

@heubeck @setchy how does this change affect the performance of your pipelines?

We don't have many/any Gradle projects so a non issue for me

@malice00 can we wrap this behind a feature flag? See safe-pip-install for example. There is a utils method available

Custom-diff results for this PR:
elasticdeepdiff.html.json
elasticdeepdiff.json

@aryan-rajoria I assume build-conventions and build-tools:reaper only exist once in the project? I'll take another look at what's going on, maybe I've missed something there...
@prabhu feature flag or not? You decide...

@malice00 build-conventions etc have different group names so probably ok. We can make it the default in 10.10.x, since the trees are looking better. Thank you so much for your help!

my testcases work fine with this change, but there are no deep gradle projects included.
in general, I always prefer completeness over performance, so infinite depth is just enough :P

Thanks for merging, but I'm not quite happy with this yet... Good to have elasticsearch as a test project, it might help fine-tune this just a little more...

@malice00 in non-multithreaded mode, there are too many duplicate components for the elasticsearch repo. Shall we work towards making the multi-threaded mode the default?

@prabhu The current solution has too many duplicates in either mode, but I think I found the issue. Still running tests though... Multi-threaded as default would be awesome, the performance gains are unbelievable!
I might have something finished by tomorrow, I'll open another PR when it's up!

So after some changes and testing, I had a solution which imo was correct, but there still was a difference in the number of modules in elasticsearch. After some manual comparisons I had a hunch what might be going on, so I added some extra output in cdxgen and my suspicions where indeed correct: several modules in elasticsearch have the same group, name and version and therefore resolve to the same purl:
pkg:maven/org.elasticsearch/qa@9.0.0-SNAPSHOT?type=jar: [
  "qa",
  "modules:ingest-geoip:qa"
]
pkg:maven/org.elasticsearch.plugin/qa@9.0.0-SNAPSHOT?type=jar: [
  "x-pack:qa",
  "x-pack:plugin:async-search:qa",
  "x-pack:plugin:autoscaling:qa",
  "x-pack:plugin:ccr:qa",
  "x-pack:plugin:deprecation:qa",
  "x-pack:plugin:downsample:qa",
  "x-pack:plugin:enrich:qa",
  "x-pack:plugin:ent-search:qa",
  "x-pack:plugin:eql:qa",
  "x-pack:plugin:esql:qa",
  "x-pack:plugin:fleet:qa",
  "x-pack:plugin:graph:qa",
  "x-pack:plugin:identity-provider:qa",
  "x-pack:plugin:ilm:qa",
  "x-pack:plugin:inference:qa",
  "x-pack:plugin:ml:qa",
  "x-pack:plugin:repositories-metering-api:qa",
  "x-pack:plugin:searchable-snapshots:qa",
  "x-pack:plugin:security:qa",
  "x-pack:plugin:shutdown:qa",
  "x-pack:plugin:slm:qa",
  "x-pack:plugin:snapshot-based-recoveries:qa",
  "x-pack:plugin:snapshot-repo-test-kit:qa",
  "x-pack:plugin:sql:qa",
  "x-pack:plugin:stack:qa",
  "x-pack:plugin:text-structure:qa",
  "x-pack:plugin:transform:qa",
  "x-pack:plugin:vector-tile:qa",
  "x-pack:plugin:watcher:qa"
]
pkg:maven/org.elasticsearch.plugin/test-fixtures@9.0.0-SNAPSHOT?type=jar: [
  "x-pack:plugin:esql-core:test-fixtures",
  "x-pack:plugin:ql:test-fixtures"
]

In the previous code this was not an issue, since the module-name was used in the purl (which actually would imo generate an invalid purl, since it had a ':' in the name) and there would be no duplicates.
Now, in the above list of modules, I think on all 'qa'-modules, it doesn't make much of a difference (except maybe on the correctness of the tree), since they (or at least those I manually checked) don't actually have any dependencies. The modules 'test-fixtures' however, do have their own dependencies and those would now just get bunched up together as if it was a single module. Might make finding a (vulnerable) dependency a bit harder...
Still working on some fine-tuning, but I would like some input on how to best handle this (output a warning/add a switch to disable deep-scanning/add a switch to use the module name for duplicates/...) before committing and actually 'destroying' newer SBOMs for some projects...
@prabhu @aryan-rajoria @heubeck -- would love to hear your thoughts!

@malice00 This is good observation. Any findings related to multiple third party dependencies appearing in the sbom? For example, multiple commons-compress in non-multithreaded mode

@prabhu I still have those, but they are in both single- and multithreaded mode, so I guess this is actually what Gradle is reporting. There's still differences in both versions, but I already explained my findings on that -- although I'm not going to check that manually again in elastic, it's just too big for that!
Maybe one of the elastic devs can shine a light on the correctness of some of those dependencies?
Here's 2 SBOMs I just generated. Singlethreaded took around 150 minutes, multithreaded only 60 seconds! It can be even faster, but that's a change that isn't stable on my side yet. Anyway, bom.json is singlethreaded, bom2.json is multithreaded and I included the output of cjd as well.
proof.zip


Open, edit and save a zap file outside the Simplicity Studio environment

I'm trying to run ZAP in the mode where you can run a web server with the GUI mess with the the zcl_config.zap files. I'm having issues with it loading an already existing file to make modifications without using Simplicity Studio. I've tried running it with the command:
/tools/zap/zap-cli server \
    --packageMatch fuzzy \
    --zcl /tools/gsdk/app/zcl/zcl-zap.json \
    --generationTemplate /tools/gsdk/protocol/zigbee/app/framework/gen-template/gen-templates.json \
    --appendGenerationSubdirectory \
    --in /tools/gsdk/protocol/zigbee/app/framework/scenarios/z3/Z3Light/config/zcl/zcl_config.zap

and then connected to http://localhost:9070 via a web browser, but it just shows a new file without any endpoints. I even tried using the query parameter filePath (http://localhost:9070/#/?filePath=%2Ftools%2Fgsdk%2Fprotocol%2Fzigbee%2Fapp%2Fframework%2Fscenarios%2Fz3%2FZ3Light%2Fconfig%2Fzcl%2Fzcl_config.zap) in the URL but that didn't work either.
Also I tried both --in pointing to the .zap file and the directory containing it, neither worked.
Is ZAP supposed to open files and edit them? I know that mode is available in Simplicity Studio, but I'm using the scl-cli as a replacement on a headless server.

its more recommended to take a binary from here https://github.com/project-chip/zap/releases/tag/v2024.06.04
when you open the ZAP binary there will be an electron menu which will allow you to open files


missing in "market_data"

I believe that the "High" and "Low" price information is the most important piece of information in daily market data (current-day).
Only "Bid" and "Ask" are available as information "on_tick" at the moment.
We should have a function called "on_tick_daily", is what I propose. Open, High, Low, and Bid
Please point me in the right direction if I'm missing how to access those four bits of data using the on_tick method.
regards

Hi,
Sorry for the late reply.
Open/High/Low/Close is only available using bars, not ticks. Ticks are defined as only bid/ask.
self.dwx.subscribe_symbols_bar_data([['EURUSD', 'D1'], ['GBPUSD', 'D1']])
Then the on_bar_data() function should trigger when there is a new bar.


Overlapping facets

When the page loads and the first facet opens, sometimes the content isn't available yet when the height gets fixed. This causes the facet to open but have a very small panel body defined and it overlays the next facet.

I can't reproduce this issue in Chrome, FF, or Safari on Mac.


Added Google Kickstart Solutions

Issue: #349
I have added solutions for:
Round F
1)Sort the Fabrics
2)Story of Seasons
3)Water container systems
Round G
1)Walktober
2)Curling

Great work @SanyamAgrawal07
This is a great contribution ✨
Please give this repo a star and follow me for follow back if you want to 😊
Thank you

Great work @SanyamAgrawal07
This is a great contribution ✨
Please give this repo a star and follow me for follow back if you want to 😊
Thank you


SteamVR resets tracking positions when updating player position

I have a simple continuous walking code (instead of SteamVR's built in teleporting) that updates the position of the player every Update. However that stops the tracking for hands and resets the heads position to be the center, even though I'm not calling any resets! This results in a weird feeling when walking because when you move your head around it is 'fixed', and also the hands just look wrong as they stop tracking.
player.trackingOriginTransform.position = transform.position;
I'm using Unity 2020.2.3f1 and SteamVR v2.7.2 (sdk 1.14.15).

I was actually doing exactly that, moving the trackingOriginTransform under Valve.VR.InteractionSystem.Player.
Interestingly the issue seems to have been resolved now, without me updating anything in my project.


Svelte not working

Describe the bug
Even if iI add in the configuration:
      extension: ['.js', '.ts', '.svelte'],

the svelte files will not be used to report the coverage
Reproduction
https://github.com/tobiasBora/issue_istanbul_mwe
Steps to reproduce
I would expect:
$ npm i
$ npm run coverage

to output in ./coverage/index.html the coverage of the svelte files but it is not working as no file is detected.
System Info
System:
    OS: Linux 6.1 NixOS 24.05 (Uakari) 24.05 (Uakari)
    CPU: (8) x64 Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz
    Memory: 923.50 MB / 15.45 GB
    Container: Yes
    Shell: 5.9 - /home/leo/.nix-profile/bin/zsh
  Binaries:
    Node: 21.6.2 - /nix/store/va3sggfgfb709lm31bzvpjfyapjdy435-nodejs-21.6.2/bin/node
    npm: 10.2.4 - /nix/store/va3sggfgfb709lm31bzvpjfyapjdy435-nodejs-21.6.2/bin/npm
  Browsers:
    Chromium: 122.0.6261.94
  npmPackages:
    vite: ^5.0.3 => 5.2.13
    vite-plugin-istanbul: ^6.0.2 => 6.0.2

Used Package Manager
npm
Logs
No response
Validations

[X] Read the Contributing Guidelines.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a vite-plugin-istanbul issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] The provided reproduction is a minimal reproducible example of the bug.

Hum, not sure what happens, but I tried on my main project to follow https://haseebmajid.dev/posts/2023-04-15--how-to-get-code-coverage-from-playwright-tests-in-a-sveltekit-app-/ and it works now when I use:
$ VITE_COVERAGE=true npx playwright test
$ npx nyc report --report-dir ./coverage --temp-dir .nyc_output --reporter=text --exclude-after-remap false


Add how to nine circles by doublechindoge7

Song Name
how to nine circles
Artist Name
doublechindoge7
Source
Youtube
Youtube Link
0urmzb_6smc
Direct File Link
No response
Song ID
648034
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 19566964

accept

Hey

reject
invalid YouTube link


Swap factomd and factom-walletd ports to match protocol defaults.

The default ports for factomd and factom-walletd are 8088 and 8089, respectively. See developer documentation:
https://developers.factomprotocol.org/start/factom-api-docs/factomd-api
https://developers.factomprotocol.org/start/factom-api-docs/factom-walletd-api

Hey mate, thanks for catching this. I wasn't using localhost in testing, that's why I couldn't replicate.
Cheers!


Add route get_transactions test for Ethereum and Module

Tests for Multisig are done, we need to cover the remaining branches.

This will be done as part of a bigger refactor for the Safe Client Gateway.


Add module for managing the "exclude" line of a yum repo config

Also use it to set epel.exclude=ansible

@mwoodson review stg PR #2586 and gave 👍


Where's the ASP.Net Identity 2.2.1 source code?

Sorry to put this in the issue tracker, but it's my last resort. I can't seem to find the Microsoft.AspNet.Identity.Core version 2.2.1 (NuGet) source code.
This NuGet package was released on 4/7/2015.
If I look at the releases of this here repo, at that date no specific release was done. If I do download the closest release, that's 1.1.2, not 2.2.1. And I see that UserManager has only one generic parameter, TUser, while at version 2.2.1 I it's TUser, TKey.
So, I'm either not looking in the right places, or I'm not using the correct version numbers. Every time I search, I'm redirected to Core, but that's explicitly not what I'm looking for. I'm at a loss.
Can someone point me in the right direction please?
Or, to put it a bit less specific: What's up with all the version numbers? Is there an overview somewhere? :/
Thank you kindly.

Ah. I've been searching for an hour, but hadn't realized that the Identity 2.0 source code is not on github. It apparently needs to be downloaded as .zip file from https://archive.codeplex.com/?p=aspnetidentity. Download archive did the trick.
My apologies.


Scrollable tabs

Now scrollable tabs in next looks kind a weird. Feels weird also. Especcially on md+ screens. Can we agree on that? 😸
My proposal

do not preserve space for left scroll if it is not visible
render only those <Tab />s that are fully visible within given width.
ability to show next hidden  <Tab> by click on a <ScrollbarButton /> by making very first <Tab> hidden.

In other words: changing visible set of <Tab />'s by clicking left / right.

I might be missing something. How is this suggestion going to improve the UX of the component? I'm not sure I share the same pain than you with the component.

I have found two benchmarks for this desktop scrollable UX:

http://material-components-web.appspot.com/tabs.html
https://www.webcomponents.org/element/PolymerElements/paper-tabs/demo/demo/index.html.

I find the material-components-web version the more appealing, it's exactly the same behavior than what we are doing.


[Code Quality] Remove all the Custom Font Service stuff

It's a lot of unnecessary overhead now that we have the glyph values of all the stuff we care about in the HSL fonts.
Might be worth keeping around though--writing it in the first place was a PITA, and it's not the first time I've needed this...

Done.


echartstest foreign node issue with click routing

type
  clickHandler* = proc():VNode

var view* :clickHandler

proc click*(x : clickHandler): proc() =
  result = proc() = view = x

proc echartSection():VNode =
    buildHtml tdiv(id = "echartSection", style = style((width, kstring"600px"), (height, kstring"400px")))

proc createDom(data: RouterData): VNode =
  let hash = data.hashPart
  if hash == cstring"#/Products": currentView = Products
  else: currentView = Customers

  result = buildHtml(tdiv):
    ul(class = "tabs"):
      for v in low(Views)..high(Views):
        li:
          if v == Products:
              a(href = "#/" & $v, onclick = click echartSection):
                text kstring($v)
          else:
            a(href = "#/" & $v):
              text kstring($v)
    tdiv:
      text "other section"

setRenderer createDom, "ROOT", postRender
setForeignNodeId "echartSection"

got
Uncaught Error: Initialize failed: invalid dom.
    at Object.init (echarts.js:1778)
    at Object.post_render_256045 [as postRenderCallback] (echartstest.js:3454)
    at dodraw_249631 (echartstest.js:2870)
    at HEX3Aanonymous_251001 (echartstest.js:2913)

wouldn't that run into https://github.com/karaxnim/karax/issues/287 ?


Update variables name

We now provide Application instance instead of QualityMatterApplication but we still use qualityMatterApplication as a variable name. This Pr is to fix it.

:+1:

Current coverage is 81.62%

Merging #150 into master will not affect coverage as of 808487d

@@            master    #150   diff @@
======================================
  Files           38      38
  Stmts          555     555
  Branches        47      47
  Methods          0       0
======================================
  Hit            453     453
  Partial         29      29
  Missed          73      73

Review entire Coverage Diff as of 808487d

Powered by Codecov. Updated on successful CI builds.

Hmm codecov is now complaining :/ otherwise :+1:

Thx!


Doesn't switch since recent update

Workflow version
2022.5
Alfred version
5.0
macOS version
12.5
Debugger output
[07:42:13.633] Logging Started...
[07:42:16.061] Low Power Mode[Script Filter] Queuing argument '(null)'
[07:42:16.175] Low Power Mode[Script Filter] Script with argv '(null)' finished
[07:42:16.179] Low Power Mode[Script Filter] {"items":[{"title":"Battery’s Low Power Mode is On","subtitle":"Action to turn it off","arg":["battery","off"],"icon":{"path":"images/icon_battery_on.png"}},{"title":"AC’s Low Power Mode is Off","subtitle":"Action to turn it on","arg":["adapter","on"],"icon":{"path":"images/icon_adapter_off.png"}}]}
[07:42:16.608] Low Power Mode[Script Filter] Processing complete
[07:42:16.608] Low Power Mode[Script Filter] Passing output '(
    battery,
    off
)' to Run Script
[07:42:19.100] ERROR: Low Power Mode[Run Script] /Users/jackson/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/65E2F802-9DB1-4329-914C-497EF72F540D: execution error: Error: Error: osascript is not allowed assistive access. (-1728)
[07:42:19.104] Low Power Mode[Run Script] Processing complete
[07:42:19.105] Low Power Mode[Run Script] Passing output '' to Run Script
[07:42:19.125] Low Power Mode[Run Script] Processing complete
[07:42:19.130] Low Power Mode[Run Script] Passing output '12' to Conditional

### More details

I imagine this is an issue with other workflows? Maybe I don't have some permissions set?

Maybe I don't have some permissions set?

Quite right. As the debugger notes:

Error: osascript is not allowed assistive access.

macOS’ permissions are known to get wonky from time to time, commonly on system updates. Go into System Preferences → Security & Privacy → Privacy → Accessibility and remove and readd Alfred (unticking and reticking the box may be enough). If you’re still having issues after that, regrant all permissions.


Clean up ProjectN parts of the compiler

These files were exclusively used for .NET Native to support the UTC codegen backend.
I left two things that we don't use in CoreRT but might want to use:

Support for SharedLibrary
Windows-specific managed debugger support

I'm not very firm on keeping 2.

Hi guys!
I know this is a horrible place to ask, but since the original thread exploded with comments, I'm asking here.
I realize everything is moving towards .NET 5 and MonoAOT. One of the things that made us a little less concerned with still using CoreRT for our native compilation (which in turn allows us to protect our binaries with 3rd party tools - the main goal for us to do native compilation) was that the CoreRT codebase also served shipping MS products. Now that Project N / .NET Native is transitioning to rely on the shipping .NET Core stack (if I'm reading correctly) - are there any other shipping products left that will rely on the CoreRT codebase, or is this project after these changes now fully on its own? (Besides the shared source with coreclr).
If that is the case, as much as it breaks my heart to ask, we would probably have to start at least consider a migration path to MonoAOT (if that really is the way things are going). Last time I used Mono I wasn't impressed but we also have to plan for the future - I'm not talking about switching any time soon, since everything's working beautifully now, but we would have to at least check it out. I don't have an overview right now of how easy that migration would be, and we definitely would prefer to not have to do it.


Egypt Map

I have created the Egyptian map to be added into my project, which I thought it is helpful for others to use if needed.

Hello @meenanader !
Thanks for this PR. Do you have a working example by any chance? :)

Hi,
Yes I have, but I cuoldn't find a place to put an example in the Repo. Is there one?
Anyway,
Below is the example I have used:
Controller:
GeoLocationsWidgetDemoController.$inject = ['$scope', 'config'];
function GeoLocationsWidgetDemoController ($scope, config) {
var state;
$scope.mapData = {
map:{
name : 'egypt',
defaultArea : {
attrsHover : {
fill : '#242424',
animDuration : 100
},
tooltip: {
content: function(){
return '' + state + '';
}
},
eventHandlers: {
mouseover: function(e, id){
state = id;
}
}
},
defaultPlot:{
size: 17,
attrs : {
fill : config.settings.colors['brand-warning'],
stroke : '#fff',
'stroke-width' : 0,
'stroke-linejoin' : 'round'
},
attrsHover : {
'stroke-width' : 1,
animDuration : 100
}
},
zoom : {
enabled : true,
step : 0.75,
mousewheel: false
}
},
plots:{
'EG-PTS' : {
latitude: 29.951067,
longitude: 32.518158,
size: 10,
tooltip: {content : 'EG-PTS'}
}
}
};
}
HTML:

GEO-LOCATIONS

No, we don't have any example in this repo. I was more thinking about a JSFiddle.

Here is one I just created:
https://jsfiddle.net/meenanader/byw00se8/

The quality is good! However, I notice that the map limits are way bigger than the map actual size.
Did you trim your SVG to map limits before importing it to mapael?
Check the tutorial here: http://www.vincentbroute.fr/mapael/create-map.php

The areas in the new document may not fit with the document dimensions. In this case, go to File > Document Properties > Resize page to content, and click on the “Resize page to drawing or selection”.

I was not able to do that in fact from the SVG (as I used one of the existing SVG online), tried to narrow the height and width, but that does not help, specially the top part.
I may not gave enough time for that point, and properly need to look to it again as on my application it fits for purpose so I didn't think it would be an issue.
I will give it a go one more time to see if all map can fit into the needed rectangle. Or if you have a shortcut I can use that would be helpful.

As said in tutorial, it is fairly easy using Inkscape:

go to File > Document Properties > Resize page to content, and click on the “Resize page to drawing or selection”.
Then, import again your SVG.
Note: you will need to modify the getCoords() function to adapt to the new boundaries.

@meenanader, any update?


Security vulnerability fixes

This contains the following changes:

Necessary module version upgrades as part of a "security vulnerabilities" scan.
Command used: npm audit

Note: There is still a library that is reported as "high" severity vulnerable but that is a dependent module "koa-qs". So, we may raise the PR against that.
Please review and if no further changes then request you to merge this PR.

Thank you for the PR!


Traffic Vault: Process <0.325.0> with 0 neighbours crashed with reason: no match of right hand value {error,closed}

I'm submitting a ...

bug report

Traffic Control components affected ...

CDN in a Box
Traffic Vault
CI tests

Current behavior:

In CDN in a Box, Traffic Vault sometimes crashes when starting up with this message:
[error] <0.325.0> CRASH REPORT Process <0.325.0> with 0 neighbours crashed with reason: no match of right hand value {error,closed} in mochiweb_http:loop/2 line 56

See Anything else for context in the logs.
This affects our CI because the CDN in a Box Readiness check will sometimes fail due to this (after timing out after 12 minutes of attempts to contact a Delivery Service).
Expected behavior:

Traffic Vault should start successfully. The Traffic Vault image should include a health check that attempts to query the ssl buck and fails if it cannot. If we do this, we can

Make Traffic Vault exit when the health check fails
Make Traffic Vault restart when it exits

which would fix this issue with an additional cost of 1-2 minutes of startup time when the issue occurs.
Minimal reproduction of the problem with instructions:

Start CDN-in-a-Box and watch for that error in the Traffic Vault logs

If Traffic Vault gets all the way to
<0.2189.0>@yz_fuse:create:73 Creating fuse for search index sslkeys

but the error is not there (the sslkeys being created does not mean the crash did not occur), docker-compose restart trafficvault and try again

This error is uncommon to reproduce, so don't feel like you need to reproduce it to fix this issue.
Anything else:

The log is in a gist (https://gist.github.com/zrhoffman/58850e41d124b0a49acd3203699661d9) because it's 951 lines

Closing #5182 because the Riak Traffic Vault is deprecated


How identify the output parameters after use inspect_pb.py to use in convertor.py?

Hello,
Thank you for this tool. I appreciate.
My question is about how to identify the parameter that I need to use in convertor.py file?
For example:
output_feature_names = ['mul_16:0'],
These parameters appears at the end of the txt extension file after run the inspect_pb.py file.
OPS counts:
ExpandDims : 1
Tanh : 1
Placeholder : 1
Conv2DBackpropInput : 2
Relu : 10
Conv2D : 14
RealDiv : 16
Sub : 16
Pow : 16
SquaredDifference : 16
StopGradient : 16
Mul : 17
Mean : 32
Add : 38
Identity : 48
Dequantize : 82
Const : 281
The whole txt file is here:
http://www.fraudersity.com/summary1.txt
Regards,
Jorge

I think its generally the last layer you need, import/preds:0 in the txt file maybe

Hello Aseem,
Thank you for your answer.
I have seen the example of style transfer network here:
https://github.com/tf-coreml/tf-coreml/blob/master/examples/style_transfer_example.ipynb
Where I can see to convert to mlmodel (changing some parameters for my own pb extension  file):
import tfcoreml as tf_converter
tf_converter.convert(tf_model_path = 'frozen1.pb',
mlmodel_path = 'Frozen1.mlmodel',
output_feature_names = ['preds:0'],
input_name_shape_dict = {'input:0':[1,256,256,3], 'style_num:0':[16]}
)
But it launch then error:
Traceback (most recent call last):
File "convertor.py", line 5, in
input_name_shape_dict = {'input:0':[1,256,256,3], 'style_num:0':[16]}
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_tf_coreml_converter.py", line 586, in convert
custom_conversion_functions=custom_conversion_functions)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_tf_coreml_converter.py", line 337, in _convert_pb_to_mlmodel
convert_ops_to_layers(context)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_ops_to_layers.py", line 178, in convert_ops_to_layers
translator(op, context)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_layers_common.py", line 77, in effectively_constant_op
add_const(context, out.name, x, out.name)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_layers_common.py", line 26, in add_const
_add_const(context, name, x, output_name, shape)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_shape_sensitive_layers.py", line 44, in _add_const
'Add constant: cannot add a constant in which all the dimensions '
AssertionError: Add constant: cannot add a constant in which all the dimensions (Seq, C, H, W) are of non-unit size
Please, how can it be solved?
REgards,
Jorge

Hmm, it seems the graph needs to add a rank 4 tensor as a constant, however CoreML's load constant layer only supports max rank 3 tensor.
One solution is to use custom layer.
Can you check which constant tensor is this in the TF graph and what op it is feeding into?

Hello Aseem,
Sorry, I don t know how to check the constant tensor in the TF graph. Can you explain how?
I see the parameters in the summarize file I created, the parameters are:
OPS counts:
ExpandDims : 1
Tanh : 1
Placeholder : 1
Conv2DBackpropInput : 2
Relu : 10
Conv2D : 14
RealDiv : 16
Sub : 16
Pow : 16
SquaredDifference : 16
StopGradient : 16
Mul : 17
Mean : 32
Add : 38
Identity : 48
Dequantize : 82
Const : 281
REgards,
Jorge

When you hit the error in _layers_common.py you can put a breakpoint and look up the name of the tensor, the arguments when the function add_const(context, out.name, x, out.name) is called

Hello Aseem,
I have added a Breakpoint just after the line:
_add_const(context, name, x, output_name, shape) in _layers_common.py

Now the error message is:
Traceback (most recent call last):
File "convertor.py", line 5, in
input_name_shape_dict = {'input:0':[1,600,800,3], 'style_num:0':[16]}
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_tf_coreml_converter.py", line 586, in convert
custom_conversion_functions=custom_conversion_functions)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_tf_coreml_converter.py", line 337, in _convert_pb_to_mlmodel
convert_ops_to_layers(context)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_ops_to_layers.py", line 178, in convert_ops_to_layers
translator(op, context)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_layers_common.py", line 77, in effectively_constant_op
add_const(context, out.name, x, out.name)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_layers_common.py", line 26, in add_const
_add_const(context, name, x, output_name, shape)
File "/anaconda/lib/python2.7/site-packages/tfcoreml/_shape_sensitive_layers.py", line 44, in _add_const
'Add constant: cannot add a constant in which all the dimensions '
AssertionError: Add constant: cannot add a constant in which all the dimensions (Seq, C, H, W) are of non-unit size
Can you tell me how to proceed?
Regards,
Jorge

what is the value of variables name and output_name at the breakpoint?

Hi Aseem,
Sorry, I don t know how to check that. Please, how should I proceed?
Regards,
Jorge

Hello Aseem,
Does the following data helps?
Loading the TF graph...
Graph Loaded.
Collecting all the 'Const' ops from the graph, by running it....
Done.
Now finding ops in the TF graph that can be dropped for inference
Now starting translation to CoreML graph.
Automatic shape interpretation succeeded for input blob img_placeholder:0
1/607: Analysing op name: preds/y_max ( type:  Const )
2/607: Analysing op name: preds/y_min ( type:  Const )
3/607: Analysing op name: preds/y_quint8_const ( type:  Const )
4/607: Analysing op name: preds/y ( type:  Dequantize )
5/607: Analysing op name: mul_16/y_max ( type:  Const )
6/607: Analysing op name: mul_16/y_min ( type:  Const )
7/607: Analysing op name: mul_16/y_quint8_const ( type:  Const )
8/607: Analysing op name: mul_16/y ( type:  Dequantize )
9/607: Analysing op name: pow_15/y_max ( type:  Const )
10/607: Analysing op name: pow_15/y_min ( type:  Const )
11/607: Analysing op name: pow_15/y_quint8_const ( type:  Const )
12/607: Analysing op name: pow_15/y ( type:  Dequantize )
13/607: Analysing op name: add_35/y_max ( type:  Const )
14/607: Analysing op name: add_35/y_min ( type:  Const )
15/607: Analysing op name: add_35/y_quint8_const ( type:  Const )
16/607: Analysing op name: add_35/y ( type:  Dequantize )
17/607: Analysing op name: Variable_47_max ( type:  Const )
18/607: Analysing op name: Variable_47_min ( type:  Const )
19/607: Analysing op name: Variable_47_quint8_const ( type:  Const )
20/607: Analysing op name: Variable_47 ( type:  Dequantize )
21/607: Analysing op name: Variable_47/read ( type:  Identity )
22/607: Analysing op name: Variable_46_max ( type:  Const )
23/607: Analysing op name: Variable_46_min ( type:  Const )
24/607: Analysing op name: Variable_46_quint8_const ( type:  Const )
25/607: Analysing op name: Variable_46 ( type:  Dequantize )
26/607: Analysing op name: Variable_46/read ( type:  Identity )
27/607: Analysing op name: moments_15/variance/reduction_indices ( type:  Const )
28/607: Analysing op name: moments_15/mean/reduction_indices ( type:  Const )
29/607: Analysing op name: Variable_45_max ( type:  Const )
30/607: Analysing op name: Variable_45_min ( type:  Const )
31/607: Analysing op name: Variable_45_quint8_const ( type:  Const )
32/607: Analysing op name: Variable_45 ( type:  Dequantize )
Traceback (most recent call last):
File "", line 1, in
File "convertor.py", line 5, in
input_name_shape_dict = {'input:0':[1,600,800,3], 'style_num:0':[32]}
File "tfcoreml/_tf_coreml_converter.py", line 586, in convert
custom_conversion_functions=custom_conversion_functions)
File "tfcoreml/_tf_coreml_converter.py", line 337, in _convert_pb_to_mlmodel
convert_ops_to_layers(context)
File "tfcoreml/_ops_to_layers.py", line 180, in convert_ops_to_layers
translator(op, context)
File "tfcoreml/_layers_common.py", line 83, in effectively_constant_op
x = context.session.run(out, feed_dict=context.input_feed_dict)
File "tfcoreml/_layers_common.py", line 27, in add_const
_add_const(context, name, x, output_name, shape)
File "tfcoreml/_shape_sensitive_layers.py", line 44, in _add_const
'Add constant: cannot add a constant in which all the dimensions '
AssertionError: Add constant: cannot add a constant in which all the dimensions (Seq, C, H, W) are of non-unit size
Regards,
Jorge

Will need to look at the model (.pb) file, please file a bug at https://developer.apple.com/bug-reporting/ and attach the model to it. Thanks!

Dear Aseem,
Thank you. I will send now the .pb file to Apple.
Regards,
Jorge Martin

Dear Aseem,
I send the pb extension file more than a week ago to
https://developer.apple.com/bug-reporting/ and nobody answered.
The ID for the question is 48804807, please can you take a look?
Regards,
Jorge

Please try to convert the model again using PR #289

Please do a fresh clone of the tf-coreml repo, or pull the latest master branch,
then install the converter from source, by following the steps https://github.com/tf-coreml/tf-coreml#install-from-source
Then run the conversion script again.

Hello Aseem,
Thank you. After install again, it works. It converts to the ML model.
Now the issue is that in Xcode the mlmodel file must be an input image and an output image.
For example (please see image attached).

But in the model created the input is img_placeholder (Multiarray type)
And the output is a preds_0 (Multiarray type)

The parameters in convertor.py file I use are:
import tfcoreml as tf_converter
tf_converter.convert(tf_model_path = 'frozen1.pb',
mlmodel_path = 'Frozen1.mlmodel',
output_feature_names = ['preds:0'],
input_name_shape_dict = {'input:0':[1,600,800,3], 'style_num:0':[32]}
)
Please, what must I change?
REgards,
Jorge

Please feel free to reopen this if you have further questions, Thanks!


Add Blockchain Vocabulary v1 2021 context

This adds JSON-LD context for Blockchain Vocabulary (BlockchainSignature2021 Linked Data Signature/Proof Suite):

BlockchainSignature2021 proof type: https://or13.github.io/lds-blockchain2021/#BlockchainSignature2021 (https:/w3id.org/security#BlockchainSignature2021)
BlockchainVerificationMethod2021 verification method type: https://or13.github.io/lds-blockchain2021/#BlockchainVerificationMethod2021 (https://w3id.org/security#BlockchainVerificationMethod2021)

Related: #152

Rebasing and merging.


Optional value for users password

Hello! Values for password looks like should be an optional (with two types - string or null). If you don't, you should to explicitly set a password in your manifest.

Hi! Sorry for the long answer. Thanks for the commit!


Ability to NOT capitalize titleLabel

I'd like to keep the case of the titleLabel consistent with the placeholder text.  Currently, if placeholder is "First Name", title will show as "FIRST NAME".  How can we avoid it changing to capitals?

Found the answer to my question here: https://github.com/Skyscanner/SkyFloatingLabelTextField/issues?utf8=✓&q=is%3Aissue titleFormatter
Doing something like this defaults the text without capitalization:
floatingTextLabel.titleFormatter = { (text:String) -> String in
return text
}


Add reason label to Requested peers to disconnect panel

Motivation
The "Requested peers to disconnect" panel has duplicate "to disconnect" legends

Description

Add {{reason}} label to distinguish them

part of #5198
Steps to test or reproduce

:tada: This PR is included in v1.6.0 :tada:


refactor: make debugger nullable

Description
Often times we do:
isDebug && debug('...')

const start = isDebug ? performance.now() : 0

Where isDebug is process.env.DEBUG, however that doesn't always mean the debug will run if DEBUG="blabla" and we're logging with the vite:time namespace.
To simplify this, the PR refactors as debug?.('...') instead.
Additional context

Might make debug logs slightly more accurate.

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[ ] Documentation update
[x] Other

Not sure why I didn't think of that, that feels simpler too 🤔

Updated. I like this new pattern instead, it makes all debug logs lazy by default now.

+1 for the new pattern 💚


Update go bindings to version merged into nixos/nix

Opening this for discussion, currently it builds but has one test failure related to paths (leading . is stripped).

I looked through this and the code is very clean, great job. Accessing the strings is so much nicer with the new API, too.

@marcusramberg do you think there's anything else worth doing there or you're good with flipping the draft bit on this and merging it in?

@marcusramberg do you think there's anything else worth doing there or you're good with flipping the draft bit on this and merging it in?

I think the only concern I have is the failing test for path. It's unclear to me why it's returning /foo/bar for ./foo/bar input. ( https://github.com/farcaller/gonix/pull/2/files#diff-864944c880a2e4db1b8f93f33a58303d840fb4b6c50147cc2f915c6d48f7bf2cL173)

I think this is blocked by https://github.com/NixOS/nix/issues/10613. If it's "nix_init_path_from_absolute_path_string" indeed, then our test is broken.

I suggest we update the test case to use the absolute paths and merge this. We can revisit the behavior once https://github.com/NixOS/nix/issues/10613 makes progress.

oki. I just tested updating the flake to nix master, and there's a new failure in the primop test:
❯ go test                                                                                devenv-shell-env
--- FAIL: ExampleRegisterGlobalPrimOp (0.00s)
got:
<nil>
want:
6
--- FAIL: ExampleState_NewPrimOp (0.00s)
panic: failed to call: nix error: error:
       … while calling the 'helloworlder' builtin

       error: Error from builtin function: Value already initialized. Variables are immutable [recovered]
        panic: failed to call: nix error: error:
       … while calling the 'helloworlder' builtin

       error: Error from builtin function: Value already initialized. Variables are immutable

I'll try to address that and change the test this weekend, and undraft the PR?

Updated the deps again today, and seems the issue was fixed upstream. All tests pass now.

Seems the fix was NixOS/nix@a942a34 (#10767)

Thank you so much for all the work you've put into this! 🥳


404 Error from OpenAI using gpt-4 modelName

When I set the modelName to gpt-4 in makechain.ts, I'm getting a 404 response from OpenAI. Snippets of the error message include:
response: {
status: 404,
statusText: 'Not Found'
request: <ref *1> ClientRequest {
_header: 'POST /v1/chat/completions HTTP/1.1\r\n'
'Host: api.openai.com\r\n' +
...
isAxiosError: true
When I set the modelName to gpt-3.5-turbo everything works as expected. Doing a little digging, it appears the URL for gpt-4 may have recently changed.

Same issue here.

I should also add that I have a paid account and access to gpt-4 so that is not the issue.

Yes, same here.
I guess the issue is that we are not on the beta list even tho we pay for the subscription:

You need to have GPT-4 access for the API.

I received the email "You're invited to use the OpenAI GPT-4 API!", but also get the 404.

Me too

Me too. Everything works wit GPT 3.5-turbo, but with GPT-4 I get no response. I have a paid subscription and have tried pinecone on both the EU and US side. Anyone?

import os
import openai
openai.api_key = ''
openai.Model.list()
you can run this py script to see what models you have access to

Same issue. I have GPT4 access, but no luck. Everything works with 3.5 Turbo.

Having access to GPT-4 via a plus account is not enough. You need to put yourself on the GOT-4 API waitlist to be able to use the GPT-4 API.

I have the same problem. Got the gpt-4 API access. Confirmed by email. But when I pass 'gpt-4' as model I get a 404 error code. Anybody got a solution ?

I am facing the same problem. I ran next build:  I got the following output in the terminal.
info  - Loaded env from C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main.env
info  - Linting and checking validity of types
info  - Using wasm build of next-swc
warn  - Attempted to load @next/swc-win32-x64-gnu, but it was not installed
warn  - Attempted to load @next/swc-win32-x64-msvc, but it was not installed
info  - Creating an optimized production build
info  - Compiled successfully
info  - Collecting page data
[    ] info  - Generating static pages (0/3)TypeError: Cannot read properties of null (reading 'useContext')
at exports.useContext (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main\node_modules\react\cjs\react.production.min.js:24:118)
at Head (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main.next\server\chunks\109.js:266:34)
at Wc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:68:44)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:70:253)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:89)
at $c (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:78:98)
at bd (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:77:404)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:217)
at $c (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:78:98)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:71:145)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot read properties of null (reading 'useContext')
at exports.useContext (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main\node_modules\react\cjs\react.production.min.js:24:118)
at Head (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main.next\server\chunks\109.js:266:34)
at Wc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:68:44)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:70:253)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:89)
at $c (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:78:98)
at bd (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:77:404)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:217)
at $c (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:78:98)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:71:145)
TypeError: Cannot read properties of null (reading 'useContext')
at exports.useContext (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main\node_modules\react\cjs\react.production.min.js:24:118)
at Head (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main.next\server\chunks\109.js:266:34)
at Wc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:68:44)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:70:253)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:89)
at $c (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:78:98)
at bd (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:77:404)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:217)
at $c (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:78:98)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:71:145)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot read properties of null (reading 'useContext')
at exports.useContext (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main\node_modules\react\cjs\react.production.min.js:24:118)
at Head (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main.next\server\chunks\109.js:266:34)
at Wc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:68:44)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:70:253)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:89)
at $c (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:78:98)
at bd (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:77:404)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:217)
at $c (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:78:98)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:71:145)
[=   ] info  - Generating static pages (2/3)TypeError: Cannot read properties of null (reading 'useState')
at exports.useState (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main\node_modules\react\cjs\react.production.min.js:25:394)
at Home (C:\Users\DrGopakumar\gpt4-pdf-chatbot-langchain-main.next\server\pages\index.js:237:78)
at Wc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:68:44)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:70:253)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:89)
at $c (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:78:98)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:71:145)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:89)
at Zc (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:71:479)
at Z (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\react-dom\cjs\react-dom-server.browser.production.min.js:76:89)
info  - Generating static pages (3/3)

Build error occurred
Error: Export encountered errors on following paths:
/
/_error: /404
/_error: /500
at C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\next\dist\export\index.js:425:19
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Span.traceAsyncFn (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\next\dist\trace\trace.js:79:20)
at async C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\next\dist\build\index.js:1403:21
at async Span.traceAsyncFn (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\next\dist\trace\trace.js:79:20)
at async C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\next\dist\build\index.js:1261:17
at async Span.traceAsyncFn (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\next\dist\trace\trace.js:79:20)
at async Object.build [as default] (C:\Users\DrGopakumar\Documents\gpt4-pdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\node_modules\next\dist\build\index.js:72:29)
Any body gets similar errors ? I have a paid GPT-4 model. Pinecone ingest was successful. Can any body help ?

I have also encountered the same problem, and I have confirmed that I have joined the openai waitlist.
When I call the API https://api.openai.com/v1/chat/completions with the model gpt-4-0314 or gpt-4, I get got a 404.
When I switched to gpt-3.5-turbo  it worked success.

Folks,
Did you find a solution?
I found something that seems to be working.. I paid for GPT Plus access which gives me GPT-4 on ChatGPT via chat.openai.com only. This doesn't mean that I got access to GPT-4 API.
Given the situation, I  followed the suggestion from @cchgray , I did this by putting in my key:
import os
import openai
openai.api_key = 'my-key'
print(openai.Model.list()) # I had to print it otherwise it wouldn't list the model
then I did this:
(appenv) root@ip-172-30-1-95:/sw/chatGPTExcelAnalyzer# python3 checkGPT-4.py | grep '"id"' | grep 'gpt-4'
... and got nothin.... for my key...
Then, I did this:
(appenv) root@ip-172-30-1-95:/sw/chatGPTExcelAnalyzer# python3 checkGPT-4.py | grep '"id"' | grep 'davinci'
"id": "davinci",
"id": "text-davinci-edit-001",
"id": "code-davinci-edit-001",
"id": "text-davinci-001",
"id": "davinci-search-document",
"id": "davinci-instruct-beta",
"id": "text-search-davinci-query-001",
"id": "davinci-search-query",
"id": "text-davinci-003",
"id": "text-search-davinci-doc-001",
"id": "text-similarity-davinci-001",
"id": "text-davinci-002",
"id": "davinci-similarity",
"id": "davinci:2020-05-03",
"id": "if-davinci-v2",
"id": "if-davinci:3.0.0",
"id": "davinci-if:3.0.0",
"id": "davinci-instruct-beta:2.0.0",
"id": "text-davinci:001",
Then, I chose "text-davinci-003" instead of "gpt-3.5-turbo" and the results are already better. I am still waitlisted for my GPT-4 API access. Once granted, I expect the models available will be as follows:
GPT-4 is currently in a limited beta and only accessible to those who have been granted access. Please join the waitlist to get access when capacity is available.
LATEST MODEL	DESCRIPTION	MAX TOKENS	TRAINING DATA
gpt-4	More capable than any GPT-3.5 model, able to do more complex tasks, and optimized for chat. Will be updated with our latest model iteration.	8,192 tokens	Up to Sep 2021
gpt-4-0314	Snapshot of gpt-4 from March 14th 2023. Unlike gpt-4, this model will not receive updates, and will be deprecated 3 months after a new version is released.	8,192 tokens	Up to Sep 2021
gpt-4-32k	Same capabilities as the base gpt-4 mode but with 4x the context length. Will be updated with our latest model iteration.	32,768 tokens	Up to Sep 2021
gpt-4-32k-0314	Snapshot of gpt-4-32 from March 14th 2023. Unlike gpt-4-32k, this model will not receive updates, and will be deprecated 3 months after a new version is released.	32,768 tokens	Up to Sep 2021
For many basic tasks, the difference between GPT-4 and GPT-3.5 models is not significant. However, in more complex reasoning situations, GPT-4 is much more capable than any of our previous models.

facing same issue

Facing same issue, getting 404 error when using model: 'gpt-4' but every thing works fine when using model: 'gpt-3.5-turbo'

d checking validity of types
info - Using wasm build of next-swc
warn - Attempted to load @next/swc-win32-x64-gnu, but it was not installed
warn - Attempted to load @next/swc-win32-x64-msvc, but it was not installed
info - Creating an optimized production build
info - Compiled successfully

did you solve that


Configuring external JSCS and ESLint

Continuing from #31, I don't think that a Vim plugin is the correct path to take.
We can leverage existing code to achieve more results if we aim to use the default behaviors of JSCS and ESLint.
JSCS can be directed to a configuration file through package.json.
So if we use the install npm script of standard to inject a property to direct JSCS to our config file, so that it ends up like the following
{
    "name": "some-package",
    "jscsConfig": "node_modules/standard/rc/.jscsrc"
}

Then JSCS will serve us, not matter if it is run through Vim or any other editor/tool, most likely.
Is this about JSCS correct, @mikesherov, please?
Would it prevent JSCS from processing other .jscsrc files in the tree?
ESLint seems halfway there, because it can be configured via package.json but it doesn't have an include directive.
Adding a property to the package.json seems reasonable to me, since our users will see that change and not miss it. And it will be documented and it is only a small change. We just have to figure out how well this works/will work with JSCS and ESLint.
This approach may even simplify Standard's code a little.

I like the idea of standard being fairly opaque without the actual linters or configuration leaking out. This means that its easy to change to something completely different without impact. For example, standard used to run jshint for several rules, but its been switched over to use eslint now. With the above approach, this may have been a bit more complicated to pull off without impact to users.
It feels like this approach is more about extracting the rules themselves and running them in their respected linters directly instead of having a singular linting tool.
In situations where the command can't be run (or no plugin exists) I could see the benefit of directly extracting those rules and running them in their native linters could be a way of solving the problem.
Perhaps adding --eslint-rules and --jscs-rules commands to output the rulesets could be a compromise here? This would allow a separate module to be built that does exactly whats described above.

@Flet I hear you completely.
Standard should, itself, provide the utility that makes it so that by default my Vim does the right thing in the Standardized project. So I don't like the idea of another module.
If possible future switching of tools is the issue here, then the standard command can, itself (vs the npm install/postinstall script) make sure that the correct directives are in package.json.
Then, when Standard uses a different tool, in the future, it can quickly and easily make sure that that tool is configured correctly via the package.json when it is used externally.

Sorry @mightyiam – this isn't going to happen. Install scripts are janky, error-prone, and an anti-pattern.
For vim support, just install Syntastic which now support standard out-of-the-box.


Other languages

The introduction mentions Java and Python but only Typescript is mentioned in the documentation. I'm more comfortable with Python.

Up to this, the repo is still having only typescript examples while the readme seems to state that is could be used with other languages.
I'd like to give a try to crossplane-cdk8s but we are using golang and I have no idea how I can do the npm install crossplane-cdk8s equivalent in Go.
Is it compatible yet ?


First Character of a new line is always uppercase

How can I modify the code to NOT force the first letter of a new line to be uppercase.
I cannot seem to find anything in the RegEx or code itself that is cause this
The sly gray fox
but I wish to be able to type
the sly gray fox

gee.. your welcome

On Jan 7, 2017, at 8:02 PM, Rudd Fawcett<EMAIL_ADDRESS>wrote:
Closed #6 https://github.com/ruddfawcett/Notepad/issues/6.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/ruddfawcett/Notepad/issues/6#event-915128190, or mute the thread https://github.com/notifications/unsubscribe-auth/AX0lXn-3KNj6-tKdHBJFkXuqEaaEJp2tks5rQF_igaJpZM4LdfRN.


Rebuild

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

There are 1 too many lines.  There should be one empty line at the end of the file.

Check if Windows timeout present in https://github.com/conda-forge/idyntree-feedstock/pull/26 is still present here.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Windows problem tracked in https://github.com/conda-forge/idyntree-feedstock/issues/28 .


[Select] non-option children are selectable if they're the first child of the Select

When I add several ListSubheader components into Select and then click on the first one - Select prints console warnings.
The bug is reproduced here:
https://codesandbox.io/s/select-1st-child-no-option-bl85u

Open the select
Click on Subheader 1
Look into the console

Expected behavior:
Nothing should happen, when I`m clicking on any ListSubheader

It looks close to #25567.

It looks close to #25567.

Problem still persists when the first child is not an option: https://codesandbox.io/s/select-1st-child-no-option-bl85u

Closing in favor of https://github.com/mui-org/material-ui/issues/26790


Add the addition of Miscellaneous files to the Buffer Manager

Addresses: https://github.com/OmniSharp/omnisharp-roslyn/pull/1252#issuecomment-412981768
When the buffer manager adds a transient document, if it is unable to associate the document with any project then the buffer manager will add it as a misc file document.
Doing this will avoid the dependency between the order of execution by the file system watcher listeners, that was introduced when we added the misc files systems.
Known bug: There will be no more code to handle the deletion of these files, hence the diagnostics wont disappear if a misc file is deleted, and in vscode if the user clicks on the diagnostics then we will get the file not found error
. Example:

@DustinCampbell Does this seem fine ?


[Feature Request] Bring back ability to remove notification

There have been a lot of complains recently of the media notification being shown always and never going away. We originally decided to not hide the notification at all, but it seems like this has been pretty controversial.
Looking at other apps, Spotify used to not hide its media notification either, but it seems like it has been updated recently to do so.
Google Podcasts never hides its media notification even if you remove the app from recents.
Beyond that, the device manufacturer can override this and do whatever they want with the notification. For example, on my Nokia all media notifications disappear no matter what the developer intended.
Sadly, in Android it looks like there is no 100% set standard of handling media notifications. I find this pretty annoying, but it's the way android works...
Considering this, we can add a flag for users to choose whether or not they want to hide the notification once the app is removed from recents: stoppingAppRemovesNotification. Note that this will have to override the other flag we have: stoppingAppPausesPlayback, as it's not possible to have persistent audio playing while the media notification is gone.
That is because we set our service as foreground (aka important and hard to kill, except for super bad states like out of memory errors), and for that android requires a notification is always present to notify the user there is an almost unkillable app in the background doing stuff.
We may want to reconsider our flags and combine them into one function. For example: setStoppingAppPausesPlayback(true, alsoRemovesNotification = true)

I think it's a good idea use a flag for different behavior. When use setStoppingAppPausesPlayback(true) the media notification could removed and the service stopped when kill app from recent list, instead when set it to false the service could be played even the app was killed (like Google Podcast).
But the major difference between Google Podcast and this library is that when stop audio from notification after app was killed the notification become dismissable and you able to kill service. I don't know if it is an unexpected behavior from my device but when kill this lib the notification is always there and the only way to dismiss that is to terminate app from setting

when you'll fix this problem, is there an estimated time?

Please track https://github.com/doublesymmetry/react-native-track-player/pull/1730


Ensure all data stored in the RDS bucket is not public accessible

Possible check to target the following resource

[ ] aws_rds_cluster_instance

closing, tracking in spreadsheet

closing, tracking in spreadsheet


The DP-12 blocks Safehouse Progession extract to safehouse

Picked up a DP-12 that had dropped in Supply Raid and tried to extract, but clicking on extract to safehouse option would ask to confirm, but would not extract even if you confirmed.  As soon as I dropped the gun, I could extract.  Tested this by spawning a dp-12 in my safehouse, put it in a backpack slot, left the safehouse and started a new supply raid mission.  Loaded my deployment load out, which included the dp-12, captured one point, and tried to extract, which I was unable to do,  I then dropped the DP-12, after which I could extract normally.

I noticed this separately as well, but then when I tried again in another session it worked fine (and of course, I was able to bring the DP12 back with me in the first place). Probably best to remove this for now just to avoid issues.

FYI the DP12 is back in the newest version, v3.4.0. This is because it wasn't the DP12 blocking extraction, it's just a rare bug with SafehouseProgression (I've had it happen with all vanilla items in my belt, and dropping the items did not help).
The author of that mod made a new version called Safehouse for H3MP and recommends it even for solo players because you can separately save/load your loadout and safehouse to self-debug these things.