Installation using Docker file- Getting Internal server error

HI,
Using attached docker file to build image and used below command to run
docker run --restart=always -p 6413:5432 -p 8000:8080 -d --name maldives4 devnominatimdb2:v1.1 bash /app/start.sh
Getting internal server error. PLease help
docker logs 546af7deab3ebce8f1b0d15036dce88234ecd78dfc870fa605ade96e             68f4365a

Starting PostgreSQL 11 database server
...done.
Starting Apache httpd web server apache2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using <IP_ADDRESS>. Set the 'ServerName' directive globally to suppress this message

2020-12-08 14:10:09.975 UTC [21] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
2020-12-08 14:10:09.975 UTC [21] LOG:  listening on IPv6 address "::", port 5432
2020-12-08 14:10:09.980 UTC [21] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-12-08 14:10:09.995 UTC [22] LOG:  database system was shut down at 2020-12-04 16:55:18 UTC
2020-12-08 14:10:10.005 UTC [21] LOG:  database system is ready to accept connections
2020-12-08 14:10:10.559 UTC [29] [unknown]@[unknown] LOG:  incomplete startup packet
Dockerfile.txt

Thanks in advance!!

CAn you please help with this issue?

I'll try to take a look today. Is there any specific reason you are using 3.4 and not 3.5? Have you changed something in the Dockerfile from the repo?

How did you run the init.sh command to initialise the database? Should be something like docker run -t -v /home/me/nominatimdata:/data nominatim  sh /app/init.sh /data/<your_country>.osm.pbf postgresdata 4
In the original init.sh we create the www-data user
https://github.com/mediagis/nominatim-docker/blob/a2cd99637d718485bab376592f624af2355849ce/3.4/init.sh#L14
your error message suggest that the user does not exist. Do you have any debug output from the init step?

Hi Philip,
In my docker file attached in the ticket, using below command RUN sh /app/init.sh to initialize database, so as part of the image this database will be initialized.
RUN cp -r ./code/3.4/start.sh /app/start.sh
&&  cp -r ./code/3.4/startapache.sh /app/startapache.sh
&&  cp -r ./code/3.4/startpostgres.sh /app/startpostgres.sh
&&  cp -r ./code/3.4/init.sh /app/init.sh \
*&&  sh /app/init.sh /data/maldives-latest.osm.pbf postgresdata *
&&  cp -r /data/postgresdata /var/lib/postgresql/11/main
Hope this can be done?

The run command just copies the files into the docker image. Before starting the image with
docker run --restart=always -p 6413:5432 -p 8000:8080 -d --name maldives4 devnominatimdb2:v1.1 bash /app/start.sh
did you also do trigger the command to setup your database, users etc. with:
docker run -t -v /home/me/nominatimdata:/data nominatim sh /app/init.sh /data/<your_country>.osm.pbf postgresdata 4
?

Hi Philip,
I have taken docker file from 3.5 and added steps to initialize database to the docker file, can you please validate this docker file as well?
Getting below error with 3.5 and postgres 12:
Success. You can now start the database server using:
/usr/lib/postgresql/12/bin/pg_ctl -D /data/postgresdata -l logfile start

initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
waiting for server to start....2020-12-17 13:21:46.158 UTC [28] LOG:  starting PostgreSQL 12.5 (Ubuntu 12.5-0ubuntu<IP_ADDRESS>) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit
2020-12-17 13:21:46.159 UTC [28] LOG:  liste
Dockerfile.txt
ning on IPv4 address "<IP_ADDRESS>", port 5432
2020-12-17 13:21:46.159 UTC [28] LOG:  could not bind IPv6 address "::1": Cannot assign requested address
2020-12-17 13:21:46.159 UTC [28] HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2020-12-17 13:21:46.161 UTC [28] FATAL:  could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": Permission denied
2020-12-17 13:21:46.162 UTC [28] LOG:  database system is shut down
pg_ctl: could not start server
Examine the log output.
stopped waiting
createuser: error: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
createuser: error: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
The command '/bin/sh -c sh /app/init.sh  /data/maldives-latest.osm.pbf postgresdata 4' returned a non-zero code: 1

Can you also post the specific docker commands you have used to build / init the data / run the container?

step1 :-using below command to build the image
1)docker build -t "devnominatimdb5:v1.1" .
Step2:Then run below command to run the container
2)docker run --restart=always -p 6413:5432 -p 8000:8080 -d --name maldives devnominatimdb5:v1.1 bash /app/start.sh

As stated in the Readme and In my comments you need to

build the image with docker build
initialise the users, data and most importantly import the data into the db with docker run .... /app/init.sh ...
AFTER that you can start the command with docker ... /app/start.sh

Your error shows that you skipped step 2, you need to do that separately, since this commands checks if a DB exists, deletes it and then imports the data. Importing the data can take up days, so doing it on every start would defeat the purpose.

ok Thanks Philip, will try now and update you.

docker run -t -v /home/me/nominatimdata:/data nominatim sh /app/init.sh /data/<your_country>.osm.pbf postgresdata 4
in the above command how to refer image, that iam building, ideally database setup  and adding users should be done in image right?

/home/me/nominatimdata:/data **nominatim** sh
bold marked "nominatim" is the image name. You can refer your own image there. Database setup probably, import should not be done in the image but in a mounted volume (as described in the readme)

I have a similar issue during initialization. I tried to switch to Nominatim 3.5 and initialization (docker run -t -v /home/osm/OSM_data/nominatim-data:/data nominatim  sh /app/init.sh /data/ukraine-latest.osm.pbf postgresdata 8) returns error:

2020-12-30 21:14:57.261 UTC [29] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
2020-12-30 21:14:57.261 UTC [29] LOG:  could not bind IPv6 address "::1": Cannot assign requested address
2020-12-30 21:14:57.261 UTC [29] HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2020-12-30 21:14:57.261 UTC [29] FATAL:  could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": Permission denied
2020-12-30 21:14:57.261 UTC [29] LOG:  database system is shut down
stopped waiting
pg_ctl: could not start server

After I switched back to Nominatim 3.4 initialization has been succeeded.
Maybe it is worth mentioning that I have this problem on CentOS-8 (4.18.0-193.19.1.el8_2.x86_64). On Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-91-generic x86_64) I had no problem and launched Nominatim 3.5 successfully.

@VShkaberda That doesn't look similar. It's better to open a separate github issue.


GEODE-7887: Remove reference to nonexistent API from docs

setClientNotificationEnabled is a protected method on an internal class, not part of the public API

@mreddington @vfordpivotal @dihardman @davebarnes97 @karensmolermiller

+1 LGTM
Corresponding mentions in the User Guides (C++ and .NET), which were limited to the upgrade page, have been removed on the develop (aka 1.13) branch of the repo.


openssl 1.1.1a Compile failed in Suse 11.

System OS:
Suse 11
GCC version:
CTU1000012808 [rdAgent]:~/Agent/build # gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)
Compile config:
config no-shared no-threads no-asm no-static-engine enable-ssl2 --prefix=$OPENSSL_INSTALL_PATH --openssldir=${OPENSSL_INSTALL_PATH}/ssl -Wl,--default-symver
Error:
rm -f apps/openssl
${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -O3 -fPIC -L.
-o apps/openssl apps/asn1pars.o apps/ca.o apps/ciphers.o apps/cms.o apps/crl.o apps/crl2p7.o apps/dgst.o apps/dhparam.o apps/dsa.o apps/dsaparam.o apps/ec.o apps/ecparam.o apps/enc.o apps/engine.o apps/errstr.o apps/gendsa.o apps/genpkey.o apps/genrsa.o apps/nseq.o apps/ocsp.o apps/openssl.o apps/passwd.o apps/pkcs12.o apps/pkcs7.o apps/pkcs8.o apps/pkey.o apps/pkeyparam.o apps/pkeyutl.o apps/prime.o apps/rand.o apps/rehash.o apps/req.o apps/rsa.o apps/rsautl.o apps/s_client.o apps/s_server.o apps/s_time.o apps/sess_id.o apps/smime.o apps/speed.o apps/spkac.o apps/srp.o apps/storeutl.o apps/ts.o apps/verify.o apps/version.o apps/x509.o
apps/libapps.a -lssl -lcrypto -ldl -pthread
./libcrypto.so: undefined reference to engine_load_padlock_int' collect2: ld returned 1 exit status make[1]: *** [apps/openssl] Error 1 make[1]: Leaving directory /home/rdAgent/Agent/open_src/openssl'
make: *** [all] Error 2
someone can help me check why?
thank very much~~~

I tried to reproduce, but get no build failure.  Would you be willing to share a full build log, not just the last command?

Assuming that this was fixed, closing.

first install dependence yum install libtool perl-core zlib-devel -y then make clean able to solve the above problem 我安装的是openssl 1.1.1a。顺利通过编译。

it`s useful , thankyou ! and my verson is  openssl  3.0.5

first install dependence yum install libtool perl-core zlib-devel -y then make clean able to solve the above problem 我安装的是openssl 1.1.1a。顺利通过编译。

it's useful,thank you! and my version is openssl 1.1.1s

execute make install
error:
/usr/local/openssl_install: file not recognized: Is a directory
collect2: error: ld returned 1 exit status
make[1]: *** [libcrypto.so] Error 1
make[1]: Leaving directory `/usr/local/openssl1.1.1/openssl-1.1.1w'
make: *** [all] 错误 2


chore: correct default value in legacyMode docs comment

Description
Corrects the comment documenting the react-query legacyMode option to reflect the actual behaviour:

Corrects the default from true to false (the option actually defaults to false)
Tweak wording of comment to better reflect the effect of changing the value from its default

Related #390

Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as
expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can
reproduce. Please also list any relevant details for your test configuration

[x] Checked the code to see how the config value is imported (it's false by default)
[x] Ran codegen locally with value unset, explicitly false, and explicitly true (unset matched explicit false)

Test Environment:

OS: MacOS
<EMAIL_ADDRESS>NodeJS: 18.16.0

Checklist:

[x] I have followed the
CONTRIBUTING doc and the
style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation - this is the only documentation I can find
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works - N/A, docs fix
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

changeset-bot says:

If these changes should not result in a new version, you're good to go

It only changes a comment, so I would have thought it wouldn't need a new release?

if we want these changes to show up in the IDE then it would need a chagneset so we publish it. So good idea to just create a patch


Added support for steps click event

Custom Gesture Detector - to detect click/tap events
Custom steps click areas method - setup the exact click areas for each step
Utility methods for adding/removing/clearing listeners for click events - multiple listeners are supported
JavDoc for added methods, fields and classes - for better understanding the functionality

Good for me, just a small question, why use a GestureDetector instead of just storing the coordinates of event in onTouch then just override onClick method in the view?
Ps: We could test if listener list is empty in the gesture before testing each areas, no need to do it if we don't have a listener anyway :)

I chose to use GestureDetector as it is easier to correctly detect click events, and we don't need the onClick even set for the view. You can use that for an general click event for the entire view in the future if you want.
I agree with the optimization for the listener verification, it is better to do before  :)

Good for me then

I've made the changes for the optimizations regarding the click events listeners.

Seems I committed them after you merged, I will make a new pull request for it.
Thank you for the suggestion :D

Thanks!
I renamed some fields, personally I'm not a fan of the "m" prefix before fields name, so I changed that :laughing:


Mark test module as test sources; change sbt module root

This PR tries to fix issues described in #201

@lihaoyi ready for review

Looks good to me. Once you flesh out the PR description feel free to squash and merge


Record sites that use this template

For ordinary users, we want to know which sites use this excellent website template, we can add friend chain, learn from each other

You can find a showcase of websites currently using this template in the "Showcase" section of the README. Additionally, users are encouraged to submit more showcases through pull requests.


Issue #581 : Fixed blank principalPrefix in findByUri

The principalPrefix sent to searchPrincipals was set to a literal blank
string and would never return a valid result unless no prefix was used.
https://github.com/fruux/sabre-dav/issues/581

Great patch!

Thanks for the quick response!

:+1:


Adding NID_hmac_sha1 and _md5 to builtin_pbe[]

The OID for {1 3 6 1 5 5 8 1 2} HMAC-SHA1 (NID_hmac_sha1) is explicitly
referenced by RFC 2510, RFC 3370, and RFC 4210. This is essential for the
common implementations of CMP (Certificate Managing Protocol, RFC4210).
HMAC-MD5's OID {1 3 6 1 5 5 8 1 1} (NID_hmac_md5) is in the same branch and
it seems to generally exist (-> Internet search), but it is unclear where it is
actually defined as it appears not to be referenced by RFCs and practically
rather unused.
Those OIDs are both duplicates to OIDs from an RSA OID branch, which are already
included in builtin_pbe[]:
HMAC-SHA1 also has another OID defined in PKCS#5/RFC2898 (NID_hmacWithSHA1).
It is also unclear where the other OID for HMAC-MD5 (NID_hmacWithMD5) from the
RSA branch is officially specified, as only HMAC-SHA1 from PKCS#5 was found to be
defined. Anyway, HMAC-MD5 likely only plays a neglectable role in the future.

Checklist

Re-submission of https://github.com/openssl/openssl/pull/3713 - fixed and rebased.
The order of builtin_pbe[] in the earlier commit didn't work.

I don't see how the build failures are related.  Needs another @openssl review.

I'll merge.

Merged and closed.
Thanks.


Gluttony procs on Slime boss splits

when you have gluttony going each time slime boss splits you get the +2 max hp

This feels like a known issue but i didn't see it on the any of the open threads

Duplicate of #86

Duplicate of #86


custom reference genome?

Hi,
There used to be a script named genome_setup.py that allowed you to use custom genomes with the bcbio-nextgen pipeline. I cannot find this script now, is it possible still somehow to do this? We'd like to do somatic calling on a microbial genome.
//Pär

Hi Pär,
It is still there, it is called bcbio_setup_genome.py

Alright, super!


device connect : status: 133 newState: 0

I have some error about device connect process

[onConnectionStateChange] status: 133 newState: 0

any have solved this problem?

after multiple connection
D/BluetoothManager(28862): getConnectionState()
D/BluetoothManager(28862): getConnectedDevices
D/BluetoothManager(28862): getConnectionState()
D/BluetoothManager(28862): getConnectedDevices

after multiple connection
D/BluetoothManager(28862): getConnectionState()
D/BluetoothManager(28862): getConnectedDevices
D/BluetoothManager(28862): getConnectionState()
D/BluetoothManager(28862): getConnectedDevices

Hi @JAICHANGPARK - the 133 error is very common on Android devices, and it seems like this is related to the underlying bluetooth stack on each device and you can't really fix it from your own code; so usually the best way to deal with it is to just accept this error a few times, and try to reconnect anyway without letting this bubble up all the way until the user will recognize it. If it fails say 3 times in a row to connect in your connection loop trying to get a successfull connect out of 3-4 attempts, you can inform the user that he should try to delete the bluetooth cache by for example turning bluetooth off for a short period and on again. Most of the times this will help. On very old Androids they might even have to turn the phone off and on again, which will help it to work for some time. This was the only measure to kind of resolve the issue for me. On IOS this seems to be handled (if it happens at all) by the bluetooth stack, so usually on IOS only one connection attempt is needed and it is successfull most of the times.

Hi @ollex 👋 awesome!
Thank you for comment


Cilium: Secret "hubble-relay-client-certs" prevents proper Helm chart upgrades

Existing Issues

[X] I have searched the existing issues

What Happened
While upgrading the Cilium Helm chart from 1.15.4 to 1.15.5 with standard flags, the upgrade fails:
UPGRADE FAILED: Unable to continue with update: Secret "hubble-relay-client-certs" in namespace "kube-system" exists and cannot be imported into the current release.

Deleting the secret prior does not fixes the issue, it is instantly re-created. Using a flag like --reuse-values fixes the issue but, this introduces possible future chart upgrade issues, for example newly introduced properties not present into existing values.yaml file.
Kernel Version
Linux apollo 6.8.0-1005-raspi #5-Ubuntu SMP PREEMPT_DYNAMIC Wed May 22 15:01:35 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Kubernetes Version
Client Version: v1.29.4+k3s1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.4+k3s1

Relevant Logs
No response
Anything Else
No response
Code of Conduct

[X] I agree to follow project's Code of Conduct

Related to https://github.com/cilium/cilium/issues/32941.


allow special characters at the beginning of pattern

it stops work when you delete all characters from the input for pattern such as '(111) 111-1111',
but still works for pattern '111) 111-1111'

Can you provide details on how to reproduce this?
A failing addition to the 'Leading static characters' test case would be ideal.

@agapas currently plugin expect that you provide mask characters if you insert at begin of input

@AuthorProxy Thanks for the clarification. I have the same issue with this pattern. Following your example, in order to work with<PHONE_NUMBER> pattern, I'd need to do mask.paste('(1234567890'), since I want it to be masked for me, and not actually provide masked input.
If I read the code correctly, the intented behaviour of mask.paste() is to accept both masked and unmasked values (as mentioned here). Hovewer,
  // If there are static characters at the start of the pattern and the cursor
  // or selection is within them, the static characters must match for a valid
  // paste.

the code that checks the first character does not account for unmasked value as the first charater, and has to match exactly the static charater (that is missing, since it's unmasked). Hence, mask.paste('1234567890') will fail because of the first character, but mask.paste('(1234567890') will succeed because the rest of the paste (after the first character) supports unmasked value.
This is not a dealbreaker, the workaround is to loop through the string and do mask.input(char) instead, I just thought I'd clarify the issue we had working with this pattern.

not working mask.paste with +7(111)-111-11-11

Thank you i understand it. Sorry my bad english. Solution is mask.paste("+7(" + rest number).


SEA-298 Extend protocol to update sw (with grisp_updater)

Check https://github.com/grisp/grisp_connect/pull/40


Add config option to optionally disable namespacing

Adds a config option that allows users to disable the namespacing feature of component-css, both in the component class names and the processed css.

@samselikoff So is what you're after just a way to import all the stylessheets from the pods into a single file that can then be imported? Just curious as to why you don't want to have all or some of the css rules auto scoped for you.

Yep exactly, I'd like to be able to put styles.scss files arbitrarily in my project and have them imported, but not have any of the namespacing logic applied since it caused issues for us. We've been using an old fork of mine to do this for a while and I finally got around to getting a proper PR together.
There are some old issues where I explain why we did this (#77 and #88, though it looks like #88 may no longer be an issue). Basically, with the namespacing I wasn't able to write my stylesheets all in one block like this
.My-component {
  // parent styles

  &__some-child {
    // styles for child, targeted using concatenation
  }
}

Also, we always had trouble targeting components that used ember-wormhole. So we really just want the option to turn off the namespacing feature - but can't live without local styles.scss files!

@webark comments addressed

Thanks! This is where I wish that the full test suite was actually running!! :) And @samselikoff do you mind updating the documentation with a small blurb about the config option, and how to set it?

Indeed, tests... I did try this out locally though.
Yep, will update

and hmm.. I get what your getting at, and think it's fine that we add in a setting, but I do with that your original concerns could be met!! Do you think that you could add a comment to #140 about your desires..? I was working on removing the plain wrapping of the files in that one, and would want to capture you usecase and see if it fits into that PR, or if not, then I'd like to find a way to get it in.

Docs added.
I looked at #140 but don't fully understand what it's doing. But I think it's valuable to separate the opinions around namespacing from the raw functionality of being able to include arbitrary styles files throughout the /app tree.

OK coo.  I added some comments on the documentation for clarification. And I'll look into creating an issue, reopening your issue, or start a PR so that your use case can be addressed without needing to not use the predefined namespace.

was just basing which methods where 'no-op'ed from this. https://github.com/emberjs/ember.js/blob/master/packages/ember-metal/lib/debug.js I left out the debug seal cause There was no documentation on that as is.

I'll update the wording for them though so that it's a little better then a :scissors: :pencil2: (didn't have a brush)

Updated, and removed that last blurb. Didn't think it was necessary.


Update hooks-faq.md

Note to Hacktoberfest 🎃 participants:
While we appreciate the enthusiasm, we are experiencing a high volume of drive-by pull requests (one-line changes, README tweaks, etc.). Please remember that hundreds of people are subscribed to this repo and will receive notifications for these PRs. Spam submissions will be closed and won't count towards your Hacktoberfest goals.
Please search for issues tagged good first issue or hacktoberfest to find things to work on.
You can also search all of GitHub.

In this section: https://reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback
We used useState hook
const [text, updateText] = useState('');

But shonldn't that be setText? Why updateText

I believe setText is more standard


Supporting out-of-order writing

The current backend log-based storage is suited to in-order time-series writes. Do we need to support out-of-order time-series writes?

For complex values like tweets we have the requirement to be able to redact them, which is a limited kind of out of order (over-)write, but might be implemented some other way.
At the moment I could implement the drivers I am doing without writing out of order.
Although I guess it would happen if someone changed the window of data being cached from an external source (e.g. twitter) to make it further in the past. Although again a work-around might be to drop all the data associated with that datasource and rebuild it (could be done by driver if there is an API method for that)

Uploading google take out data would require the user to upload the files in the correct order if we do not support out-of-order writing
Also for drivers that import large amounts of data (e.g email driver) may wish to do this in reverse chronological order which requires out-of-order write support.


Unset "Pragma" headers to avoid wrong caching behaviour

Some HTTP layers like Incapsula will prevent caching
based on the presence of "Pragma", rather than checking for "no-cache".

@mateusz This is a conclusion Brett and me reached by load testing Incapsula through siege and watching how many requests it passes through rather than serving from its own cache. Given that you've done some analysis on this beforehand, do you have any more insight on this behaviour?


New App Submission: Swapzone

App Logo (Required)

App Details (Required)
Type: Dapp
Name: Swapzone
Homepage Url: https://swapzone.io/
Chains supported: Bitcoin, Ethereum, Binance Chain, TRON, OMNI, ONT, NEO, etc.
App Url (Required - at least one)
Browser Url: https://swapzone.io/
iOS Url:
Android Url:
Mac Url:
Windows Url:
Linux Url:
Mobile Linking (Optional)
Deep Link:
Universal Link:
Desktop Linking (Optional)
Deep Link:
Universal Link:
Metadata (Optional)
Short Name: Swapzone
Primary Colors: F10286 + 25B7EB
Secondary Color:

Adding screenshots of our exchange page just in case to demonstrate how it looks:


Atom does not move files in project pane when it moves them in the file system

[Enter steps to reproduce:]

Open Atom to a project
Drag a file from one folder to another
An uncaught error exception can be thrown by attempting to drag the file to another location without collapsing the folder the file was previously in.
Error provided by atom: Uncaught Error: ENOENT: no such file or directory, lstat '~/ThisLifeDev/sfml/src/triggers/trigger...

Atom: 1.34.0 x64
Electron: 2.0.16
OS: Linux Mint
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, lstat '/home/null/ThisLifeDev/sfml/src/triggers/triggerable.h'
At fs.js:1661

Error: ENOENT: no such file or directory, lstat '/home/null/ThisLifeDev/sfml/src/triggers/triggerable.h'
    at Proxy.realpathSync (fs.js:1661:15)
    at Proxy.fs.realpathSync (ELECTRON_ASAR.js:336:29)
    at TreeView.t.exports.TreeView.moveEntry (/snap/atom/214/usr/share/atom/resources/app/static/<embedded>:14:916798)
    at TreeView.t.exports.TreeView.onDrop (/snap/atom/214/usr/share/atom/resources/app/static/<embedded>:14:922552)
    at HTMLDivElement.<anonymous> (/snap/atom/214/usr/share/atom/resources/app/static/<embedded>:14:897392)

Commands
     -3:15.5.0 tree-view:add-file (span.name.icon.icon-file-directory)
     -3:12.4.0 core:backspace (input.hidden-input)
     -3:11.5.0 core:confirm (input.hidden-input)
     -3:08.6.0 core:save (input.hidden-input)
  4x -3:06.1.0 core:backspace (input.hidden-input)
     -2:58.9.0 core:save (input.hidden-input)
     -1:23.6.0 core:copy (input.hidden-input)
     -1:21 core:paste (input.hidden-input)
     -1:20.3.0 core:save (input.hidden-input)
     -0:56.6.0 core:backspace (input.hidden-input)
     -0:56.2.0 core:save (input.hidden-input)
     -0:47.2.0 tree-view:add-file (span.name.icon.icon-file-directory)
  4x -0:43.8.0 core:backspace (input.hidden-input)
     -0:42.2.0 core:cancel (input.hidden-input)
     -0:39.7.0 core:backspace (input.hidden-input)
     -0:39.2.0 core:save (input.hidden-input)

Non-Core Packages
build-cmake 0.12.0
language-cmake 1.1.0

Thanks for contributing!
We noticed that this looks like a duplicate of https://github.com/atom/tree-view/issues/1282 so you can subscribe there for updates if you'd like.

An uncaught error exception can be thrown by attempting to drag the file to another location without collapsing the folder the file was previously in.

Can you share a GIF of what you're describing here?

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.

Thanks for contributing!
We noticed that this looks like a duplicate of https://github.com/atom/tree-view/issues/1282 so you can subscribe there for updates if you'd like.

An uncaught error exception can be thrown by attempting to drag the file to another location without collapsing the folder the file was previously in.

Can you share a GIF of what you're describing here?

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


CartJS.cart.items delayed

So when I log or run anything against CartJS.cart.items, it always seems to be a step behind CartJS.cart, and I'm not sure how that's possible.
For eg,
After adding an item to the cart, I want to update the cart in the header. To do this, I call a function refreshSidecart(); inside the success function of the CartJS.addItem request.
In refreshSidecart, I am able to log CartJS.cart, which shows the items correctly, however when I log CartJS.cart.items, I get an empty array logged.
If I press the add to cart button again, in the CartJS.cart items, it shows the correct details, with a quantity of 2, however in the CartJS.cart.items log, it only shows 1.
I added the following delay
setTimeout(function() {
    console.log('2', CartJS.cart.items);
  }, 3000);

And this seems to log the correct values.
I'm not sure what to do about this, as I would have thought that CartJS.cart.items would just be accessing the value of items inside CartJS.cart but any help would be greatly appreciated.

Hi there, same problem here. I use the "success" callback to update my cart totals and it is always a step behind. It looks like there is a delay for update the CartJS.cart JSON?

Hi @dhruveonmars and @KevinSupertramp, apologies for the delayed response on this. I have very limited time for Cart.js these days.
If this is still an issue, can you please point me to a publicly-accessible Shopify site that reproduces the issue, ideally as a minimal test case (ie without lots of other third party libraries that may be causing the issue)?
Sounds like there may be some caching issues going on, but I really need a good example case to be able to nut this one out.

Hey @gavinballard sure. Will try and get a development site up soon that's publicly accessible and doesn't have the timeouts

Hey @gavinballard, Sorry for the delay.
I have a development version of the site I was building setup, and is publicly accessible. https://black-lines-development.myshopify.com/products/test-product.
I need to remove the third-party libraries and the timeouts that were added

Thanks @dhruveonmars! Is the JS code you're using for the sidebar rendering easily accessible?

Hi @gavinballard I've added a console.log when you press the 'add to cart' button, so you'll be able to find the code. It looks like Shopify is reformatting the code on the theme publishing, so let me know if it's not quite so readable and easy to follow in the web inspector, and I can upload a copy of the theme.js file which has the 'add to cart' functionality.
I have left the timeouts that were needed on the live store. Please have a look, and let me know if I should remove them

Hey @dhruveonmars, currently looks like some CSS/JS issues on that development site.

Hey @gavinballard, sorry about that. Fixed that so you can have a look now

@dhruveonmars can you please try updating to v1.0.2 of Cart.js (just released) to see if the new cache-busting code addresses this problem?

hey @gavinballard , I've been testing and it still seems to have a delay. 1.0.2 also seems to require rivets, but I didn't think it was required before

Hi everyone, I'm using the latest version (1.1.0) and I can confirm this is still happening.

I was able to quickly fix this - not the cleanest - but you'll get the "why" it's happening.

With the update function: I'm using the "success" Ajax callback which is called before the cart update function (= cart.items not updated yet) so I've changed "push" by "unshift" so the cart update is always called first in the Queue.add function:

request.success.push(CartJS.cart.update);

by
request.success.unshift(CartJS.cart.update);

For addItem, addItems functions, I've passed my "success" callback to the "getCart" function instead of the Queue.add:

var cart_options = {};
if (options.success) {
    cart_options.success = options.success;
    options.success = [];
}

CartJS.Queue.add('/cart/add.js', data, options);
return CartJS.Core.getCart(cart_options);

Simply because the loca cart.items is updated with the getCart function.
I hope it makes sense!


Exception in neuroevolution example

https://github.com/giuse/machine_learning_workbench/blob/fb2f72914aa414e71537c02c8c783c62a9c2ef8f/examples/neuroevolution.rb#L39
As written, I get an exception:
NoMethodError: undefined method `first' for "Numo::DFloat#shape=[1,1]\n[[0.314217]]":Numo::DFloat

Seems to work correctly if I do output = NET.activate(input).to_f instead. I'm just starting to look at this project so I may be missing something obvious.

I forgot to update the example after switching to Numo. Thanks for catching it, I'll fix it right away.


User research: push

[ ] there is user research conducted on Instagram Stories on Thursday, 2/15.
[ ] there is language and Typeform poll link shared with Carol before Thursday's newsletter.
[ ] there is language and Typeform poll link scheduled to FB for 2/15.

We're working on some exciting new videos at The Lily. We want to hear from you. Take our poll. It should only take about 2 minutes of your time. Thank you from all of us here at The Lily.


RecursionError: maximum recursion depth exceeded

When I init the module with the Search() class, I get the following error below:
Traceback (most recent call last):
  File "c:\Users\ghub4\Projects_Website\ProjectsWebsite\__init__.py", line 14, in <module>
    from ProjectsWebsite.admin import admin
  File ".\ProjectsWebsite\__init__.py", line 14, in <module>
    from ProjectsWebsite.admin import admin
  File ".\ProjectsWebsite\admin.py", line 8, in <module>
    from ProjectsWebsite.database.models import User, Article, user_datastore
  File ".\ProjectsWebsite\database\models\__init__.py", line 5, in <module>
    from ProjectsWebsite.database.models._models import *
  File ".\ProjectsWebsite\database\models\_models.py", line 143, in <module>
    search.create_index(Article)
  File "C:\Users\ghub4\Projects_Website\ProjectEnv\lib\site-packages\flask_msearch\__init__.py", line 46, in __getattr__
    return getattr(self._backend, name)
  File "C:\Users\ghub4\Projects_Website\ProjectEnv\lib\site-packages\flask_msearch\__init__.py", line 46, in __getattr__
    return getattr(self._backend, name)
  File "C:\Users\ghub4\Projects_Website\ProjectEnv\lib\site-packages\flask_msearch\__init__.py", line 46, in __getattr__
    return getattr(self._backend, name)
  [Previous line repeated 964 more times]
RecursionError: maximum recursion depth exceeded

It seems the __getattr__ somehow exceeded the Recursion limit.
Below is my config if it is something in my config that is causing this to happen
app.config["MSEARCH_INDEX_NAME"] = mkdtemp()
app.config["MSEARCH_PRIMARY_KEY"] = 'id'
app.config["MSEARCH_BACKEND"] = 'whoosh'
app.config["MSEARCH_LOGGER"] = logging.DEBUG

I forgot to mention that the Recursion error originates in the __getattr__ function in the Search class.

You should init app by Search(app) or search.init_app(app) before using Post.query.msearch

I done that which still get's the error

You should init app by Search(app) or search.init_app(app) before using Post.query.msearch

I've done the initialization part for this class which still gets the recursion error and I have not used Post.query.msearch yet.


upstream v5.53.0

Moving ./upstream to v5.53.0
Update patches
./scripts/tidy-all.sh
Fix tags_all Computed for PF resources
Add module mapping for AWS Payment Cryptography
Regenerate schema
Regenerate sdk

Fixes #4044
Fixes #4017 (The underlying issue of this patch was fixed as part of v5.53.0 https://github.com/hashicorp/terraform-provider-aws/issues/37812)

/release minor

@flostadler FYI: You can just add the needs-release/minor label manually and it works the same way.


fix: update/pin dependencies to get ONNX runtime working again (#107)

backport for https://issues.redhat.com/browse/RHOAIENG-12722
Original commit:
Internal regression tests are failing when using the ONNX Runtime with
an error indicating a dependency issue with ONNX Runtime and cuDNN:
Shard 0: 2024-07-31 19:38:04.423164988 [E:onnxruntime:Default, provider_bridge_ort.cc:1745 TryGetProviderInfo_CUDA] /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1426 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcudnn.so.9: cannot open shared object file: No such file or directory

I found that ORT 1.18.1 started to build against cudnn 9 (included in
the release
notes).
However, PyTorch does not use cudnn 9 until 2.4.0, so I pinned in to
1.18.0. In updating poetry.lock, I let other deps update as well, but
found other compatibility issue and had to pin transformers and optimum
as well to get internal tests passing.

pin the onnxruntime version to 1.18.0
pin transformers to 4.40.2 (and remove separate pip install for it)
pin optimum to 1.20
run poetry update to update poetry.lock

DEPLOYMENT_FRAMEWORK=hf_optimum_ort will start working again and
internal tests will be passing.

Signed-off-by: Travis Johnson<EMAIL_ADDRESS>

/hold

Moved to the rhoai-2.12 branch of https://github.com/opendatahub-io/text-generation-inference


Extension description incorrectly reflects pre-release/stable state

Install VS Code 1.80
Install Copilot Chat pre-release
Get this error message

Install Copilot Chat stable
Try to switch to pre-release
:bug: extension description view optimistically switches to pre-release view, but I am still on stable

/duplicate
https://github.com/microsoft/vscode-copilot-release/issues/315

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!

We decided to install latest release version in this case and still able to update to pre-release in future if there is one available.


Head: Paper vs Code

Hello !
In the paper, the heads are fairly clearly defined with the picture.
In your code, I see that and I don't exactly understand what this is for :

Hi @theevann ! Thank you for your interest!
In https://github.com/TAMU-VITA/FasterSeg/blob/master/search/model_search.py:
Line 338 ~ 344: progressive feature aggregation (orange dashed rectangular in paper).
Line 346 ~ 350: final projection layer for pixel-wise classification.


freerdp.pc (pkg-config file) missing

freerdp does not install freerdp.pc (pkg-config file). Other packages (e.g. remmina) do not even try to build with freerdp.

freerdp.pc is installed again, but I'm not sure if it'll build with remmina due to api changes.
Close?

No, it will not build... But that has to solved by the remmina people.
Thanks for the commit.


Testing

👷 Deploy Preview for helpinghandslab processing.
🔨 Explore the source changes: 6d6f9f824a1152d71ee9b8090f667b6de0baf716
🔍 Inspect the deploy log: https://app.netlify.com/sites/helpinghandslab/deploys/6227ec7217cb480007b45c16


README: Use lowercase image name

on Docker 18.09.7 using an uppercase name for images fails with "docker: invalid reference format: repository name must be lowercase."

Whoops yes. I had to fix this in the deploy as well. Thanks!


functions for controlling the namespaces

bump

I am getting ready to review your code again. I think I'd like to see that camel casing implemented into the the current as well.

I would like to see swick / cb6d5c4d63cfa987dc201785a6ba745c52ba51cf make it into the current. It seems to be stable, and I like that it provides additional reflection. The inspector example, which hasn't yet been applied from my new pull request, could be improved with the version reflection of that older commit. https://github.com/swick/node-gir/commit/cb6d5c4d63cfa987dc201785a6ba745c52ba51cf


Use AS:N in a threadsafe manner

This PR sets up the AS:N subscription once during app init and then uses thread local variables to track the durations. Subscribing and unsubscribing on each request is not the right way to handle this.  I'd love to write some tests for this as well but for now this will have to do.
I also threw in the view time a la Rails where they take the total time and subtract out the db time to get the view time.

nice :+1:

@johnthethird thanks for contributing - merged with #16


Add to_seconds support for tiflash

Signed-off-by: yibin<EMAIL_ADDRESS>What problem does this PR solve?
Issue Number: close #4679
Problem Summary:
What is changed and how it works?
Check List
Tests

[ x ] Unit test
[ x ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-all-tests

/merge

/merge


Subtle "help on github" ribbon

Is your feature request related to a problem? Please describe.
People can't easily find this github
Describe the solution you'd like
Would like a "Help on Github" ribbon. Either on all pages or on the first+final page. We'll have to think how this can be done. Thinking bottom right of screen.
Describe alternatives you've considered
Just add a link, or don't put any link.
Additional context
None

https://storingbitcoin.info/#/opsec
added info on final page


VS Code is crashing on mac

2017-03-03 12:11:14.609 Electron[62006:5046591] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Critical error: required built-in appearance SystemAppearance not found'
*** First throw call stack:
(
0   CoreFoundation                      0x00007fff94702ae2 __exceptionPreprocess + 178
1   libobjc.A.dylib                     0x00007fff91ffbf7e objc_exception_throw + 48
2   CoreFoundation                      0x00007fff9470298d +[NSException raise:format:] + 205
3   libdispatch.dylib                   0x00007fff8689a33f _dispatch_client_callout + 8
4   libdispatch.dylib                   0x00007fff8689a237 dispatch_once_f + 67
5   AppKit                              0x00007fff911f2219 +[NSAppearance _defaultAppearance] + 22
6   AppKit                              0x00007fff91220b85 +[NSAppearance appearanceNamed:] + 24
7   AppKit                              0x00007fff91202e36 +[NSWindow initialize] + 166
8   libobjc.A.dylib                     0x00007fff91ff23c8 _class_initialize + 711
9   libobjc.A.dylib                     0x00007fff91ff1d08 lookUpImpOrForward + 179
10  libobjc.A.dylib                     0x00007fff91fec591 objc_msgSend + 209
11  AppKit                              0x00007fff911e883d +[NSApplication initialize] + 719
12  libobjc.A.dylib                     0x00007fff91ff23c8 _class_initialize + 711
13  libobjc.A.dylib                     0x00007fff91ff2156 _class_initialize + 85
14  libobjc.A.dylib                     0x00007fff91ff1d08 lookUpImpOrForward + 179
15  libobjc.A.dylib                     0x00007fff91fec591 objc_msgSend + 209
16  Electron Framework                  0x000000010e873fb1 _ZN4atom20AtomBrowserMainParts23PreMainMessageLoopStartEv + 33
17  Electron Framework                  0x000000010f126333 _ZN4base8internal14NarrowingRangeIilE3minEv + 8118883
18  Electron Framework                  0x000000010f12b767 _ZN4base8internal14NarrowingRangeIilE3minEv + 8140439
19  Electron Framework                  0x000000010f1259b5 _ZN4base8internal14NarrowingRangeIilE3minEv + 8116453
20  Electron Framework                  0x000000010f08e7c0 _ZN4base8internal14NarrowingRangeIilE3minEv + 7497456
21  Electron Framework                  0x000000010f08d9a6 _ZN4base8internal14NarrowingRangeIilE3minEv + 7493846
22  Electron Framework                  0x000000010e7d4347 AtomMain + 71
23  Electron                            0x000000010e7c7f26 main + 38
24  libdyld.dylib                       0x00007fff839cd5ad start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

@vgtummala when does this happen? which Code version?

When I opened VS code on mac I am getting an error window has crashed error. Looked into other issues. My keyboard setup is already US_en.  I did start it from command line and posted exception in this issue.

@vgtummala do you happen to define an environment variable called NEXT_ROOT? Can you try to start from the command line with a no additional environment variable overridden?

NEXT_ROOT environment variable is causing the crash. It worked fine after unsetting this environment variable.

No, but it looks like this is causing something weird.


disk quota exceeded in nanopolish

Dear Jared,
I have downloaded a public dRNA-seq data consisting of fast5 (ftp://ftp.sra.ebi.ac.uk/vol1/run/ERR470/ERR4706254/HEK293T-Mettl3-KO-rep1.tar.gz) and basecalled fastq files (ftp://ftp.sra.ebi.ac.uk/vol1/run/ERR470/ERR4706158/HEK293T-Mettl3-KO-rep1.fastq.gz). Then, I ran a job using nanopolish with the below script.
The output is also given below for your kind consideration. I will seek your opinion is it a normal output since I see a lot of bad fast5 file.
...
[readdb] indexing /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/fast5_dir/ko-rep1/20181121_1017_21112018_Sho_METTI3_10/fast5/221
[readdb] num reads: 1490210, num reads with path to fast5: 1113644
fast5 files could not be located for 376566 reads
[post-run summary] total reads: 981058, unparseable: 0, qc fail: 40158, could not calibrate: 1979, no alignment: 719, bad fast5: 337754
The script of the job is given below:
#!/bin/bash
#PBS -A UQ-QBI
#PBS -l select=1:ncpus=10:mem=50GB
#PBS -e /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanopol/ko-rep1
#PBS -o /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanopol/ko-rep1
#PBS -l walltime=72:00:00
#PBS -N nanopol_ko-rep1
cd $PBS_O_WORKDIR
module load nanopolish/0.14.0
nanopolish index -d /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/fast5_dir/20181121_1017_21112018_Sho_METTI3_10/fast5 /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/fastq_dir/ko-rep1/HEK293T-Mettl3-KO-rep1.fastq.gz
nanopolish eventalign --reads /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/fastq_dir/ko-rep1/HEK293T-Mettl3-KO-rep1.fastq.gz
--bam /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/align/ko-rep1/aligned.sort.bam
--genome /scratch/project_mnt/S0077/xPore/Homo_sapiens.GRCh38.cdna.all.fa
--signal-index
--scale-events
--summary /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanopol/ko-rep1/summary.txt
--threads 32 > /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanopol/ko-rep1/eventalign.txt
I do highly appreciate your time, help and cooperation.
Kind regards
Reza

Hi @rezarahman12,
Unfortunately I can't help with the quota issue, you'll have to ask your local IT for more storage. Regarding the "bad fast5" issue, you'll have to ask whether this is expected over at the xPore repository since they prepared and uploaded that data set.
Jared

Thanks, Jared for the prompt reply.


Merge alternate OpenType Advanced Typographic Table (ATT) support.

Please ignore.

Is this some work in progress?

Sorry, created PR against wrong branch. It was intended for non-apache fork only, skynav/pdfbox.

Hmm, it's a pity. Looks interesting. Is there chance to merge it into pdfbox sometime in the future?

Yes, it is possible. There is some overlap with the limited ATT support that has already been added to fontbox, i.e., GlyphSubsitutionTable, so that would have to be worked out. My implementation is already being used in https://github.com/apache/xmlgraphics-fop/tree/trunk/fop-core/src/main/java/org/apache/fop/complexscripts and in https://github.com/skynav/ttt/tree/master/ttt-ttpe.

Cool, good to know. I put this on my TODO list


Support deployment on non-root web server paths

Clear and concise description of the problem
As a developer using Histoire I want to deploy it as a static web application on GitLab Pages and other targets which use non-root web server paths for deployment.
When deploying with Gitlab Pages, the Histoire build artifacts are available under a path which looks like the following:
https://foo.gitlab.some-company.com/bar/
As Histoire references assets like this:
<script type="module" src="/assets/bundle-main.62587cd2.js"></script>

The leading / in src attribute means that these assets have to be deployed on the webserver root. In our case this is not possible.
Suggested solution
Storybook.js for example references assets without a leading slash and thus it works with relative paths.
However, I added a build step where leading slashes are removed from index.html and __sandbox.html, but that was
not enough, as the story navigation is also using links which assume that the application is running on the web server root.
There might be even other obstacles with paths I didn't discover yet.
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

Could you try setting the base through the vite option in Histoire config?
import { defineConfig } from 'histoire'

export default defineConfig({
  vite: {
    base: '/some-repo/',
  }
})

@Akryum yes that configuration has worked, as I only want to specify a different base for the CI pipeline and not for local development, I used an environment variable
import { defineConfig } from 'histoire';

export default defineConfig({
  vite: {
    base: process.env.HISTOIRE_BASE || '/',
  },
});

Thank you very much

@Akryum yes that configuration has worked, as I only want to specify a different base for the CI pipeline and not for local development, I used an environment variable
import { defineConfig } from 'histoire';

export default defineConfig({
  vite: {
    base: process.env.HISTOIRE_BASE || '/',
  },
});

Thank you very much

Does this work @anoack93 ? I also need to set a different path in my CI build and the / base when locally.
How does histoire actually read the process.env.HISTOIRE_BASE? Can I just define a .env file or do I have to do some additional vite-config?

@waldemarennsaed yes it worked. I didn't test it with the latest histoire version though.
Environment variables are a concept which exists on the operating system level, usually you are setting them in the terminal (eg. bash/shell) when working locally.
In node.js process.env contains all environment variables which have been set when starting the node application.
NPM packages like dotenv can import env variables from a file.
However, in GitLab CI for example (and probably also in other CI/CD tools) you can set them with the "variables" option
pages:
  stage: deploy
  extends: .node-frontend-job
  variables:
    HISTOIRE_BASE: /$CI_PROJECT_NAME/
  script:
    - npm run build:histoire
    # nuxt also has a public directory, we need to remove it first
    - rm -r ./public
    - mv .histoire/dist ./public
  artifacts:
    paths:
      - public

@anoack93 unfortunately that doesn't work for me (using GitLab) - either I give it / (since GitLab automatically prefixes the path like my-org.gitlab.io/path/to/repo/) - then it just references to https://my-org.gitlab.io/assets/styles.css - or I give it the project-path (or even including the domain) and it duplicates the address for me, like https://my-org.gitlab.io/path/to/repo/path/to/repo/styles.css or https://my-org.gitlab.io/path/to/repo/https://my-org.gitlab.io/path/to/repo/styles.css
I have not figured out a solution yet.


start_answer.py:140: Удалить или задокументировать...

The puzzle 802-c024dc00 from #802 has to be resolved:
https://github.com/blablatdinov/quranbot-aiogram/blob/cb5970a40e369b71d110ac1ab82263068c79e9df/src/services/start/start_answer.py#L140-L140
The puzzle was created by Ilaletdinov Almaz on 21-Apr-24.
role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 802-c024dc00 has disappeared from the source code, that's why I closed this issue.


Need to support "image--fixed" class from Carbon website

If you go here and look at the image under Structure https://carbondesignsystem.com/components/accordion/style#structure you can see images with the image--fixed class. This class is used across the Carbon website to prevent images from scaling up larger than they should.
Need to either support this class with custom styles inside the Platform, or ensure remote images display correctly.

Styles from Carbon website
.image--fixed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: $layer-01;
}

.image--fixed span.gatsby-resp-image-wrapper {
  background: $layer-01;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 0 !important;
  width: 70% !important;
  max-width: 100% !important;
}

.image--fixed img.gatsby-resp-image-image {
  max-width: 736px;
  width: 736px !important;
  height: auto !important;
  position: relative !important;
}

Hey team! Please add your planning poker estimate with ZenHub @alisonjoseph @francinelucca @jdharvey-ibm

@carbon-design-system/carbon-platform-devs  looking for feedback on best approach 😄

Add .image--fixed styles to global stylesheet
Create specific component only for ImageFixed
<ImageFixed> ![](/image.png) </ImageFixed>
Create flexible component, with fixed prop, allows for future image variants?
<ImageType fixed> ![](/image.png) </ImageType>
<ImageWrapper type="fixed"> ![](/image.png) </ImageWrapper>


Can’t load any model (cuda out of memory ) COLAB PRO

Hey the lastBen, thanks for the new SD however I don’t know what’s happening but this week I’ve been flooded with issues, the latest one is that I can’t load any model, I’ve set the runtime on High and it comes “torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.00 MiB (GPU 0; 14.75 GiB total capacity; 12.60 GiB already allocated; 832.00 KiB free; 13.42 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF”

Update: I used this code to clear the cache .
Import torch
torch.cuda.empty_cache()

i tried to run the above torch.cuda.empty_cache() after loading everything else,  in the cell above the start stable diffusion, unfortunately, I have not successfully loaded the sdxl model after a variety of attempts without running out of VRAM. I am running a clean install on High RAM instance of Colab.:
ile "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1143, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 MiB (GPU 0; 14.75 GiB total capacity; 12.77 GiB already allocated; 12.81 MiB free; 13.41 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

i tried to run the above torch.cuda.empty_cache() after loading everything else, in the cell above the start stable diffusion, unfortunately, I have not successfully loaded the sdxl model after a variety of attempts without running out of VRAM. I am running a clean install on High RAM instance of Colab.:
ile "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 MiB (GPU 0; 14.75 GiB total capacity; 12.77 GiB already allocated; 12.81 MiB free; 13.41 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

I’m still running 1.5, I’ll give the new SD some time to set things off properly before using it.

i tried to run the above torch.cuda.empty_cache() after loading everything else, in the cell above the start stable diffusion, unfortunately, I have not successfully loaded the sdxl model after a variety of attempts without running out of VRAM. I am running a clean install on High RAM instance of Colab.:
ile "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 MiB (GPU 0; 14.75 GiB total capacity; 12.77 GiB already allocated; 12.81 MiB free; 13.41 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

use this before the last cell
import torch
a = torch.zeros(300000000, dtype=torch.int8)
a = a.cuda()
del a
torch.cuda.empty_cache()

Also check your anchor_scales in the RPN, if you have many it increases the complexity of your model, try to decrease the number of anchor_scales let say if you have [2,4,8,16,32] try to make it [8]. or [2,2], or [2,4,8] etc


FIA_X509_EXT.1.4 OCSP stapling

FIA_X509_EXT.1.4 Application Note says, "OCSP stapling or OCSP multi-stapling...may be claimed if FIA_X509_EXT.2 indicates support TLS or DTLS." This is not accurate since the TOE could be a TLS server using X.509 certificates to perform TLS client authentication. A TLS client cannot staple status.

Updated the note to state that this applies specifically to server certificates. Believe no other change needed.


[Bug]: Add answers for FAQ

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
FAQs answers are not there
Plz assign me this issue under GSSOC24 and Hactoberfest @Trisha-tech
Expected behavior
Answers must be there for FAQs
Add ScreenShots

On which device are you experiencing this bug?
Windows
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

#637 @shwetzz14 assigned to someone in that issue, but if you complete it before, this issue will move forward


Remove void return type

It could be mixed be only from php 8.0.

@npotier this PR can be close?
The fix append on
https://github.com/acseo/TypesenseBundle/commit/8af1546971b88d07caa78f3ee52b842654b0eb13


[Baremetal] CCM countermeasures - shuffling and masking

This PR introduces shuffling and masking to CCM.

@shelib01 - ready for review.

This feature adds 542 bytes of code size.


BigQuery transport exceptions table

Implemented exception handling and an exceptions table for the BigQuery transport provider
Misc. refactoring

Closing this for now. Changes will be incorporated in the next PR.


Slow startup on MacOS

Insomnia Version: 5.14.9 (<IP_ADDRESS>5)
Operating System: macOS High Sierra (10.13.3)

Details
Since latest version (5.14.9) the app takes around 15-20 seconds to load, instead of usual 3-4 seconds. I haven't changed much around my system, didn't install anything new.
If you need more info please let me know.

I'm a Mac user with latest macOS 10.13.3 and Insomnia 5.14.9 (<IP_ADDRESS>5) with several Workspaces and dozens of Directories and the app starts normally within 5 seconds.
Maybe it's not Insomnia related issues?

Maybe, but I am not aware of anything that could cause it. Is there a profiler for Electron?

@ribice you can see the Chrome profiler in View > Toggle Devtools. Although I'm not sure if it's possible to start a profiler right when the app launches.

The only things I can think of that would slow down start time are having a lot of data in the app or possibly opening the app to a response that is large.
What time are you measuring, specifically? The time until the window shows or the time until the app is rendered within the window?

The window shows in ~5 secs. Then it takes another ~20 secs to render the app.
I have just few requests in Insomnia (2 workspaces with ~10 requests each).
Approximately 20+ days ago it would start in less than 5 secs.

That's really strange because nothing much has changed in a while. Do you see Insomnia using a lot of CPU on start?

Just checked, Insomnia Helper used around 60% of CPU during start time, then dropped to %1 once it started. Is that normal?

Checked mine and it got to 69% and took ~2 seconds to start on a low-end 13" 2016 Macbook Pro

I'm using exactly the same Macbook. Perhaps I could try reinstalling it?
I assume I need to export my workspaces prior to that?

Reinstalling won't delete your data. You could try doing that too though. Yes, you'll need to export your Workspaces first.
App data is stored in ~/Library/Application Support/Insomnia

FYI: It's still slow, haven't 'reinstalled' it.


warn, dont error if a profile fails to load

ping @ewindisch
I think we should at least do a warn first for 1.8.0
just super worried about old distros like wheezy if people have apparmor enabled. We never errored out before.
ping @calavera @tiborvass @icecrime

I agree with this PR

Agreed. LGTM

ping @NathanMcCauley @diogomonica

The 1.7 behavior was to provide a cryptic error on running a container. It didn't "just work" silently, it also erred in a less obvious way for the user.
This also provides compatibility for systems where profiles are sideloaded, rather than loaded by Docker. This may be the case for CoreOS and RancherOS users.


Bump micromamba version

Using the old version caused a warning in PR #179:
https://github.com/elsasserlab/minute/actions/runs/8019232476/job/21906704535?pr=179#step:3:11
The test failure is from MultiQC, that needs to be fixed later.

I have also seen this issue with MultiQC right now, they introduced a lot of changes in recent 1.20 version, and now the html generated is named Minute-report_multiqc_report.html making the output rule fail. I will merge this one as it is unrelated to the failure.


feat: Add token access repository scoping

It would be nice to scope the resulting token to certain repositories. I've created a PR to add an optional input allowing for this.
References:

https://octokit.github.io/rest.js/v19#apps-create-installation-access-token
https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app

This is just what I was looking for also! Great job, now hoping @tibdex find time and energy to look at it.

Have you tested this? AFAIK Github Actions doesn't support list inputs to if you want something like this you need to write an inline list (or rather a string) like foo,bar,baz, and then split it by , in the javascript code.
I noticed that VSCode started complaining and then I started digging into it.


Rename to agate-charts

Should match convention of other extensions.

Code changes done. Need to rename repo, register on PyPI, etc.

Done!


[type:feat]Alert module adapts to namespace transformation

Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

https://github.com/apache/shenyu/issues/5623

pls modify these changes, and check the alert module for shenyu-bootstrap

pls add my wechat: yijia1949


I can`t open the settings after update to 1.0.0-RC1

Android Studio 3.5.3
Build #AI-191.8<IP_ADDRESS>10548, built on November 15, 2019
JRE: 1.8.0_202-release-1483-b49-5587405 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6

Same here for
Android Studio 3.5.3
Build #AI-191.8<IP_ADDRESS>10548, built on November 15, 2019
JRE: 1.8.0_202-release-1483-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Thanks for the reports.
Should be related to #56 and fixed in master.
If you can, please build the master version and try it. I will upload a new test release in the next days.

Please try out https://github.com/detekt/detekt-intellij-plugin/releases/tag/1.0.0-RC2-beta1 and report if it works now for you.

Thanks for the beta release. I tried to build the plugin on my own. However, due to some strange Gradle error this was not successful (may be a Windows only file-lock issue).
I can confirm that the Plugin works now in
Android Studio 3.6.1
Build #AI-192.7<IP_ADDRESS>41897, built on February 27, 2020
Runtime version: 1.8.0_212-release-1586-b04 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: detekt, com.developerphil.adbidea, com.google.services.firebase

Thanks a lot for the fast fix!!!

yes, everything works fine now, thanks!!

Thank you for testing the beta! I will then upload RC2 to the plugin store. JetBrains approval takes like 2 more days.


Fireworks integration

Description - Integrates Fireworks within Langchain LLMs to allow users to use Fireworks models with Langchain, mainly for summarization.
Issue - Not applicable
Dependencies - None
Tag maintainer - @rlancemartin

The PR is updated - we didn't enable streaming in this initial version and were planning on integrating that as well in a follow-up PR!

The PR is updated - we didn't enable streaming in this initial version and were planning on integrating that as well in a follow-up PR!

Please run "make format" to resolve Lint errors.


Feature: Commit linking to the issue (Issue creation fro commit)

Hi All,
Got a feature request where you can add Issue to the commit,
e.g. if you found a bug or UI fixes for this commit.

Is there is any way you can do that?

Why can you just copy-paste the link to issue content?
There is no standard way of reporting issue from a commit.

@yeleleo Better than creating some issue, I would suggest to create a pull-request, makes this less noise for the repository-maintainers. What is your use-case for this feature?

@FibreFoX report bugs from QA team and comments from product team

Thats very interesting, makes me wonder about the whole process you have. QA team must have two ways to report bugs: 1. directly to some developer, 2. the issue-system from gogs.
What would be the leading system to track all the bugs? And why would these two ways need to being unified? And another question would arise: what about multiple commits being part of the same bug/issue?
Do you want to have these issues being part of some milestone or something like that to "generate a changelog"? (I'm asking, because I can't see some real benefit from it)


Only first title in sidebar

Describe the bug
context
When I add .. toctree:: in index.rst like this:
Welcome to test's documentation!
================================

.. toctree::
   :maxdepth: 2
   :caption: Contents:

   tmp.md

The content of tmp.md is:
# head1

# head2

## head2.1

expectation
After build the docs, I expected the sidebar (or so-called navbar) to have every first-level head of .md file, which is head1 and head2.
bug
But instead, I got only the first title in sidebar like this:

Reproduce the bug
All files are compressed into test.zip:
test.zip
The main files of this zip are as follows:
index.rst:
.. test documentation master file, created by
   sphinx-quickstart on Tue Sep 20 11:08:35 2022.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Welcome to test's documentation!
================================

.. toctree::
   :maxdepth: 2
   :caption: Contents:

   tmp.md

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

tmp.md
# head1

# head2

## head2.1

conf.py
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'test'
copyright = '2022, mei'
author = 'mei'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
    # 'myst_parser',
    'recommonmark',
    'sphinx.ext.viewcode',
    'sphinx.ext.autodoc',
    'sphinx.ext.napoleon',
    'sphinx.ext.intersphinx',
    'sphinx.ext.autosectionlabel',
]

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_book_theme'
html_static_path = ['_static']

List your environment
No response

I don’t see any captions in the sidebar currently, what happened?

I think this is intentional, but I'm finding myself wanting to be able to do the same, where there are multiple H1 headings, and having those show up on the primary sidebar.

I run into this and am out of ideas how to work around. The only option that works reasonably OK is to use the caption of toctree, but it looks rather silly in the main page that practically the same thing as the heading and then as the caption.
So, if it's not possible to include level1 heading in the sidebar, then either of these workaround would be great to achieve something similar (minus a link to the heading anchor, but I can live with that):

having an option to show captions only in the sidebar, but hide them in the main toctree
have a toctree but hide it from the sidebar.

https://github.com/Caltech-IPAC/irsa-tutorials/pull/27
https://github.com/nasa-fornax/fornax-demo-notebooks/issues/295


Introduce custom ESLint rules to apply and enforce new themed component selector convention

References
Add references/links to any related issues or PRs. These may include:

Fixes #2845

Description
This PR introduces custom ESLint plugins as a means of automatically migrating to the new themed component selector convention proposed in #2845, as well as enforcing this convention moving forward.
Furthermore, these plugins can be leveraged in future PRs to create more rules for DSpace Angular in particular.
TODO

[x] Address the remaining test failures (unit & e2e)
[x] Clean up ESLint plugin code (typing, documentation)
[x] Enable lint for the lint so we can lint while we lint
[x] Open for review
[ ] Write a wiki page?

Instructions for Reviewers

The first commit of this PR includes the bulk of the new rules, enough to cover the majority of cases

It feels right to bundle these plugins in the project itself, since they are tightly coupled to DSpace Angular.

Do you agree? Any comments on the structure?

The new plugins do not add more than a few seconds to the total linting time.

You can re-confirm this by running TIMING=1 yarn run eslint . --quiet
The dspace-angular-ts/themed-component-usages rule is the most impactful -- it may be useful to optimize it further, but it won't have as much as an effect as #2864

Please observe the lint output in the GitHub build logs, or locally if you check out this commit.
Are the messages sufficiently clear?

The "auto-migrate" commit includes only the results of yarn lint --fix. The manual interventions can be found in the subsequent commits

These commits can serve as an example of what downstream forks will have to do to migrate to the new convention (but likely a lot less than was necessary in this PR)
Is this reasonable? Do we need more detailed instructions?

The app should remain functionally the same

Run locally to confirm
Check a few themeable components to confirm that

The new convention is correctly reflected in the DOM
Everything still renders exactly as before

Switch between the dspace and custom themes

If you're using Windows, I'd greatly appreciate if you check whether all new yarn scripts work there as well (they have already been tested on MacOS and Linux).

Future work
I've already worked on similar ESLint rules in a separate project; if we decide to merge this PR it may be useful to port them to the "internal" lint plugin:

Enforce correct theme declarations in entry component decorators such as @listableObjectComponent
Enforce globally unique entry component decorators (to avoid silent overrides)
Enforce import aliases (e.g. of as observableOf)

And moving forward there are many other DSpace-isms that we could write rules for

Ensure that the inputs and outputs of ThemedComponent wrappers match the base component exactly
Ensure that component overrides in themes do not introduce new inputs or outputs
...

Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!

[x] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
[ ] My PR passes ESLint validation using yarn lint
[x] My PR doesn't introduce circular dependencies (verified via yarn check-circ-deps)
[ ] My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
[ ] My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
[x] If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
[x] If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
[x] If my PR fixes an issue ticket, I've linked them together.

Still some e2e failures, but I'm pretty sure that those tests were already flaky

Note: mby far most of the conflicts will be due to the automatic lint fixes, so I'll address them in one go when the PR is approved.
Probably best to drop https://github.com/DSpace/dspace-angular/pull/2865/commits/3753b29a7313c676d4c9c720a3a7b5be0bfa087d, https://github.com/DSpace/dspace-angular/pull/2865/commits/d15327cd1301c04ee9f22868506ead34baed2574, https://github.com/DSpace/dspace-angular/pull/2865/commits/db7a371d332155f641ef04f02b8d80398484c7bc and re-do everything at the end of the branch for clarity.

Hi @ybnd : This has conflicts because we just merged the Angular 16 upgrade in #2871 .  If you have time to resolve the conflicts, both @atarix83 and I were planning on trying this out next week during testathon.  We likely won't be able to review this prior to testathon though, unfortunately.

@tdonohue @atarix83 done.
There were only very minor conflicts; I'll keep an eye out in case there's more in the next few days

Fixed e2e test failure and tacked on a workaround for #2946

@atarix83 I'm using IntelliJ IDEA, so ESLint support is probably the same in WebStorm.
To use these plugins you'll need to run yarn build:lint first.
I already included it in the yarn lint step, but it should really be documented more clearly...

@ybnd : Per @atarix83 's note above, I looked into the Docker build issues in this PR.  It appears this PR is currently throwing a build error when it attempts to build dspace-angular-dist.  Here's the error:
#11 71.98 $ yarn build:lint
#11 72.14 yarn run v1.22.19
#11 72.17 $ rimraf 'lint/dist/**/*.js' 'lint/dist/**/*.js.map' && tsc -b lint/tsconfig.json
#11 72.41 error TS5083: Cannot read file '/app/lint/tsconfig.json'.
#11 72.42 error Command failed with exit code 1.
#11 72.42 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

The Docker build uses [src]/Dockerfile.dist as shown here: https://github.com/DSpace/dspace-angular/blob/main/.github/workflows/docker.yml#L41-L52
It's unclear to me if that Dockerfile.dist requires updates, or if this indicates an unexpected bug/behavior in the build process with this PR.

@tdonohue @atarix83 I'm not super familiar with the Docker setup, but it seems like it involves a yarn install with only package.json & yarn.json, so it's failing during the new postinstall script.
Added a condition to check whether the lint plugin sources are present before trying to build, let's see if that's enough 🤞

@tdonohue I've addressed the issues with the new yarn scripts on Windows, so this should be ready to review again once https://github.com/DSpace/dspace-angular/issues/2977 is resolved

@ybnd : This has minor conflicts caused by the fix to the custom theme: #2984   Once those conflicts are resolved, I should be able to test this again (hopefully on/around Monday)

@tdonohue couldn't make Monday, hopefully today is still ok timing-wise.


add json dialect conversor

Hi hi, I made this simple upgrade to convert values into JSON objects.
I have some JSON fields in my project because I saved the JSON content into one field like NVARCHAR.
With this small upgrade now I can read and save Dicts in one TextField in Hana.
Works for me ...

 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.Valder Gallo seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

These private functions don't see to be standard SQLAlchemy, therefore we won't support them right now


Fixed deprecated functions warnings.

There are some warnings for deprecated functions that we should stop using:
WARNING:tensorflow:From ./train.py:129 in <module>.: all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2016-03-02.
Instructions for updating:
Please use tf.global_variables instead.
WARNING:tensorflow:From ./train.py:135 in <module>.: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use `tf.global_variables_initializer` instead.

Thanks, looks good.


Add a list off all programms needed to build this

Iit would be nice to have a list off all needed programs like eog, vfb2ufo.exe, etc.

So we do have pretty thorough build dependency information in the readme, while eog and vfb2ufo are used for other tasks -- test rendering and altering sources. Did you find any other miscellaneous dependencies? And do you have specific suggestions as to where we might list them (I guess another section in the readme would be fine)? Note that the vfb2ufo dependency is already documented in a separate readme in src/v2.

No, didn't find any other, but I although haven't looked deeper into the sources.
Yes, a small section in the readme would be fine.

I decided to just add eog to the post-production section of the main readme, and leave the readme in src/v2 as-is. It's a bit messy but I think it makes sense in terms of visibility to people who are interested in different parts of the toolchain (code vs. source fonts).
I think this does cover everything. But of course please let us know if you find any more dependencies.


Runtime error for overlapping span

When I use TargetMatcher to try to overwrite a span, I get
Traceback (most recent call last):
  File "/home/jmugan/anaconda3/lib/python3.8/site-packages/medspacy/target_matcher/target_matcher.py", line 163, in __call__
    doc.ents += (span,)
  File "spacy/tokens/doc.pyx", line 762, in spacy.tokens.doc.Doc.ents.__set__
  File "spacy/tokens/doc.pyx", line 799, in spacy.tokens.doc.Doc.set_ents
ValueError: [E1010] Unable to set entity information for token 4 which is included in more than one span in entities, blocked, missing or outside.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/jmugan/Dropbox/consulting/Billenote/billenote_exp/umls/medspacy_rules.py", line 84, in <module>
    doc = nlp(text)
  File "/home/jmugan/anaconda3/lib/python3.8/site-packages/spacy/language.py", line 1031, in __call__
    error_handler(name, proc, [doc], e)
  File "/home/jmugan/anaconda3/lib/python3.8/site-packages/spacy/util.py", line 1670, in raise_error
    raise e
  File "/home/jmugan/anaconda3/lib/python3.8/site-packages/spacy/language.py", line 1026, in __call__
    doc = proc(doc, **component_cfg.get(name, {}))  # type: ignore[call-arg]
  File "/home/jmugan/anaconda3/lib/python3.8/site-packages/medspacy/target_matcher/target_matcher.py", line 167, in __call__
    raise RuntimeWarning(
RuntimeWarning: The result ""reviewed"" conflicts with a pre-existing entity in doc.ents. This result has been skipped.

The code says that just the RuntimeWarning should be raised. But that's not what appears to be happening. Version 0.2.0 just had pass https://github.com/medspacy/medspacy/blob/<IP_ADDRESS>/medspacy/target_matcher/target_matcher.py.
Is this just my machine?

I think the problem is we are not there to catch the warning. Maybe it should be something like warnings.warn("can't overwrite entity")?

If I comment out lines 167 through 170 of target_matcher.py and replace them with pass things works as before.

Came here to write exactly about this issue. I guess the author intended to just issue a warning, but it actually does stop the code from running. So it does not behave as a warning.

+1

Here's the trace after the RuntimeWarning:
The result ""does"" conflicts with a pre-existing entity in doc.ents. This result has been skipped.
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/medspacy/target_matcher/target_matcher.py", line 163, in __call__
    doc.ents += (span,)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/spacy/tokens/doc.pyx", line 750, in spacy.tokens.doc.Doc.ents.__set__
    self.set_ents(ent_spans, default=SetEntsDefault.outside)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/spacy/tokens/doc.pyx", line 787, in spacy.tokens.doc.Doc.set_ents
    raise ValueError(Errors.E1010.format(i=i))

During handling of the above exception, another exception occurred:

  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/spacy/tokens/doc.pyx", line 787, in spacy.tokens.doc.Doc.set_ents
    raise ValueError(Errors.E1010.format(i=i))
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/spacy/tokens/doc.pyx", line 750, in spacy.tokens.doc.Doc.ents.__set__
    self.set_ents(ent_spans, default=SetEntsDefault.outside)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/medspacy/target_matcher/target_matcher.py", line 163, in __call__
    doc.ents += (span,)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/medspacy/target_matcher/target_matcher.py", line 167, in __call__
    raise RuntimeWarning(
  File "/var/folders/lx/qnr2781n3qx9v5d__86cjt0r0000gs/T/ipykernel_45073/1402888536.py", line 38, in extract
    matches = self.matcher(doc)
  File "/var/folders/lx/qnr2781n3qx9v5d__86cjt0r0000gs/T/ipykernel_45073/805921840.py", line 2, in <module> (Current frame)
    matches = sample_extractor.extract(doc)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3433, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3373, in run_ast_nodes
    if await self.run_code(code, result, async_=asy):
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3194, in run_cell_async
    has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/IPython/core/async_helpers.py", line 129, in _pseudo_sync_runner
    coro.send(None)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2995, in _run_cell
    return runner(coro)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2940, in run_cell
    result = self._run_cell(
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/ipykernel/zmqshell.py", line 528, in run_cell
    return super().run_cell(*args, **kwargs)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 383, in do_execute
    res = shell.run_cell(
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 730, in execute_request
    reply_content = await reply_content
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 406, in dispatch_shell
    await result
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 499, in process_one
    await dispatch(*args)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 510, in dispatch_queue
    await self.process_one()
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/asyncio/events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/asyncio/base_events.py", line 1859, in _run_once
    handle._run()
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/asyncio/base_events.py", line 570, in run_forever
    self._run_once()
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/tornado/platform/asyncio.py", line 215, in start
    self.asyncio_loop.run_forever()
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/ipykernel/kernelapp.py", line 712, in start
    self.io_loop.start()
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/traitlets/config/application.py", line 846, in launch_instance
    app.start()
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/site-packages/ipykernel_launcher.py", line 17, in <module>
    app.launch_new_instance()
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/michael.capizzi/opt/anaconda3/envs/medspacy1_0_0/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,

It looks like this was fixed just over a year ago.  Please re-open if I am wrong, but this commit was May 5, 2023 and has been merged into master long ago:
https://github.com/medspacy/medspacy/commit/ce17e94ed7cb6aa12319307f7b67c3d5ce95fa34


Enhancement: Consider htmx

Is your feature request related to a problem? Please describe.
Nowadays there is an abuse of JS in pages, making maintenance more costly. htmx is a very simple and creative way to make web stuff simple and fun again: https://htmx.org/ . It would be neat if starlet-admin could be customized in simpler ways using htmx.
Describe the solution you'd like
Having htmx pre-included would allow starlet-admin to be more easily customized without JS expertise. Having the framework itself use it to simplify things would encourage users.
Describe alternatives you've considered
Doing the include by hand myself, in the templates.
Additional context
This is more of a suggestion to facilitate development to core starlet-admin devs and also for people who use it.

I am not sure if I understand your request correctly. Are you suggesting "dump js and use htmx isntead for the entire project" or "add a paramater like include_htmx to the admin class and if it's True, include htmx in any page?"

Before taking a look at starlette-admin and how it works, I was considering building my own admin panel generator with htmx and pythonic html components (like FastAPI Amis Admin or Reflex). But it requires a lot of work. The way datatables handles tables is really neat, the way htmx handles http requests is really neat but I'm developing JSON APIs most of the time and not playing with frontend. In the end I started using Starlette-Admin.
In addition, creating widgets with Tabler is much easier as I can tell. But I'm not sure if HTMX helps us to build or customize Widgets. I can't see a reason to switching to HTMX completely and I can't see a reason not to use HTMX in the CustomViews.

I was thinking of building extra screens for my context, one in particular to upload a file and handle it. Then I saw the file upload in html and thought how neat/simple it is.

Starlette Admin already has a great file upload utility, if that's the deal.

I was playing with HTMX, it's only 14 KB and today I created #373 issue. I believe something like htmx_row_action could be easily added here. HTMX is getting mode popular every day, at least we can write a documentation about "htmx integration". Starlette Admin already renders most of the components in the server side.


Introducing Bring Your Own Key(BYOk) in your systems

Article checklist
Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes issue #3840

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

@ROYFORDWANYOIKE2001
There are some significant readability challenges in your article that raises concerns over how much review/editing will be required from our peer review team. We don't provide editing services and recommend that students leverage online editing services (there are both free and paid services that you can explore), or try engaging with the community or other peers in your network to have them review prior to submitting a revised proposal.
Thank you.


Can't add new packages with --local flag

stacktrace:
  File "/home/omar/codescalers/js-sdk/jumpscale/servers/threebot/threebot.py", line 544, in add
    self.install(package)
    │    │       └ <jumpscale.servers.threebot.threebot.Package object at 0x7fa61af9ffd0>
    │    └ <function PackageManager.install at 0x7fa62054fca0>
    └ PackageManager(
        instance_name='default',
        parent=ThreebotServer(instance_name_='default'),
        packages={'auth': {'path': '/...

  File "/home/omar/codescalers/js-sdk/jumpscale/servers/threebot/threebot.py", line 663, in install
    package.start()
    │       └ <function Package.start at 0x7fa62054f550>
    └ <jumpscale.servers.threebot.threebot.Package object at 0x7fa61af9ffd0>

  File "/home/omar/codescalers/js-sdk/jumpscale/servers/threebot/threebot.py", line 370, in start
    self.module.start(**self.kwargs)
    │    │              │    └ {}
    │    │              └ <jumpscale.servers.threebot.threebot.Package object at 0x7fa61af9ffd0>
    │    └ <property object at 0x7fa62053d360>
    └ <jumpscale.servers.threebot.threebot.Package object at 0x7fa61af9ffd0>

  File "/home/omar/codescalers/js-sdk/jumpscale/packages/threebot_deployer/package.py", line 39, in start
    location_actors_443 = j.sals.nginx.main.websites.default_443.locations.get(name="threebot_deployer_actors")
                          │ └ <property object at 0x7fa624baac20>
                          └ <jumpscale.loader.J object at 0x7fa624b9ec70>

AttributeError: 'Factory' object has no attribute 'default_443'

It looks like the 443 should be 8443

Yes, the code should be hardened to handle current used port, defined in jumpscale/sals/nginx/nginx.py
https://github.com/threefoldtech/js-sdk/blob/f70d74b1e2eaa5cff9ca3a538864861c9abb7f74/jumpscale/sals/nginx/nginx.py#L49-L51