Should there be a URI type or should URIs be handled as strings?

In pySBOL2, a constructor may take either a full URI or a displayId as the first argument.  The library uses the sbol_compliant_uris Config.option to determine whether the argument should be interpreted as a displayId vs. a complete URI.  We'll have to do this differently in pySBOL3, because all URIs are required to be SBOL compliant, and besides that was a hack way of doing things anyway.
One option would be to make a URI type so that the caller can make their intent explicit:
def __init__(self, identifier, required_argument_0, required_argument_1, rdf_type = foo):
    if type(identifer) is URI:
        do something else and treat the identifer as a URI
    if type(identifier) is str:
        do something and treat the identifier as displayId

The other option is to let the constructor infer whether the argument is a displayId or URI.
def __init__(self, identifier, required_argument_0, required_argument_1, rdf_type = foo):
    if string_has_uri_pattern(identifier):
        do something else and treat the identifer as a URI
    else:
        do something and treat the identifier as displayId

One could argue that this is less explicit, but perhaps simpler for the user (less verbose? the library figures out what the user meant to do?).

All TopLevels take a name as the first argument to the constructor. This name can be a full URI or a display_id. The library detects which it got by trying to parse name as a URL. If that succeeds and has a scheme ("http", "https", etc.), a  netloc (e.g. "example.com") and a path ("/", "/synbiodex/") as required in Section 5.1 of the SBOL 3.0 spec, then name is determined to be a URI and is the identity of the entity, and display_id is derived from that.
If name does not pass the test as a URL, then name is interpreted as a display_id and appended to sbol3.get_homespace() to form the identity.
For example:
>>> import sbol3
RDFLib Version: 5.0.0
>>>
>>> sbol3.get_homespace()
'http://example.com/sbol3/'
>>>
>>> c1 = sbol3.Component('https://github.com/synbiodex/pysbol3/c1', sbol3.SBO_DNA)
>>> c1.identity
'https://github.com/synbiodex/pysbol3/c1'
>>> c1.display_id
'c1'
>>>
>>> c2 = sbol3.Component('c2', sbol3.SBO_DNA)
>>> c2.identity
'http://example.com/sbol3/c2'
>>> c2.display_id
'c2'
>>>

After discussion with @bbartley and @jakebeal we have decided that this issue is essentially complete.


[AAP-24169, AAP-24170, AAP-24171] Removes unused file and lots of TODOS

This addresses AAP-24169, AAP-24170, AAP-24171 which are all TODOS that are in a file called launchHandlers.tsx.  This file is no longer being used and I deleted the file.

As a team we decided to merge this one, since the test failures are not related.


Fixing a typo in instution name

@a7p First stage of verification passed, official domain is fh-swf.de as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@a7p Thank you for your patience while waiting for a review and processing your request. Pull request merged.


1791: Create application verifications automatically for verein360 applications

Short description
Application verifications get source set for verein360 applications
Proposed changes

adjusted database to have column "automaticSource"
refined check for incoming applications

Side effects
None, maybe affecting normal application creation process
Testing
create new application with one or more organizations. Check for correct error messages if isAlreadyVerified differs. Check if one or all are true, the applicationVerifications table column automaticSource is set properly to VEREIN360
Feel free to test the complete feature in this PR: https://github.com/digitalfabrik/entitlementcard/pull/1811
Resolved issues
Fixes: #1791

First of all some general thoughts
I'm just thinking of how we "mark" this application in the overview view table and i'm not sure if we really have to define this "source" attribute on a verification but on an application level once. That would simplify that we don't need to loop through all verifications (Even the verification source values will be equal for a application). Or do you think we will have the case where we have for one application different verification sources? I would prefer to just add a "Source" column to applications to keep it simple because one application comes typically from one source. We could then set "Internal" as default source or sth. similar
Maybe i've overseen sth that makes your implementation needed.

Yes of course I thought about this, too. I decided to do it this way for the following reasons:

The most important reasone for me to do so is single responsibility: It is where it logically belongs to, as the applicaiton-verifications are espeically for this use case. Adding the automaticVerified field to application-verifications ensures that each table and entity has a single, clear purpose. The applications table is responsible for storing general information about an application, while application-verifications focuses on tracking and managing the verification details. By adding automaticVerified to application-verifications, we avoid overloading the applications table with information that doesn't directly pertain to its core responsibility.

It is also on this level in the api-endpoint / the graphQL scheme. We cannot change this anymore, as this is already sent to verein360. I think it would be confusing if we handle this incosistently, and putting it on organization/application-verification level in api, but on application level in the datastructure.

If automaticVerified were placed in the applications table, it would create potential redundancy since the same attribute might need to be derived from or overridden by the values in application-verifications. Keeping the field in application-verifications ensures the data is stored in its relevant context, avoiding the need to synchronize changes between multiple levels of the system. Otherwise we would need to check, if application-verifications are consistent with the "already verified" stamp. So for example what would happen, if the application "aleadyVerified" field is set to true, but the applications-verification mail was sent and clicked "rejected". Sure this should never happen, but we somehow would need to catch this case in the code and I think this is more complex, than checking for all application-verifications of one application.

If we plan in the future to extend this feature, it will be easier if the verification step is linked to the organization, than the whole application. E.g. for the feature: Someone works 5 hours at a pre-verified Sportclub, gets an E-Mail: "please add your second volutarty work". Or if we want to add checks, for which organizations verein360 is allowed to set the "automaticVerified" flag, it would be easier to check and handle, e.g. if they set two organziations, one they are allowed to set the automaticVerified flag and for one they are not, we could easily accept the first organization and send and please-verifiy-this-email for the second organization and handle this gracefully.

Alright thx for the detailed explanation. :)
I will start to review

Seems to be an issue:

create a normal application that requires confirmation from the organization
confirm it using the link from the email
--> check db: applicationverifcation.automaticSource is VEREIN360


ENH: Output TRA files on PV gen

Note this will require that #96 be integrated before this can be fully tested
Closes #93
Of Note: Slicer 2 Autoscoper Transform
https://github.com/NicerNewerCar/SlicerAutoscoperM/blob/8564243035cd3e4c3fdfacc1e693a44341bf60da/AutoscoperM/AutoscoperMLib/IO.py#L294-L298

@NicerNewerCar what was modified from the previously approved pr 2 days ago?

Some logic related to how the Origin2Dicom transform is applied during the AutomaticVRGGen pipeline.


fix: add missing dependency to babel-preset-react-app

This dependency is required by the code but is not listed in the package dependencies list. This makes Yarn PnP not work.

This fix is already in https://github.com/facebook/create-react-app/pull/11751.

Thanks, didn't see that PR.


Fixing unit test

Overview
This PR should fix the unit test by relaxing versions. Conda caching is also added with tests for various python versions.
fixes #50

@John-Ragland this is ready for you to review :smile: Looks like it passes now! Thanks.

Great! looks good. I'll go ahead and merge


Integration stopped working - session is closed error in logs

Hi,
I've noticed the integration stopped working for me a couple days ago.
Looking into the logs, this is what I am seeing for the integration.
Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup     result = await component.async_setup_entry(hass, self)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/config/custom_components/aquarea/__init__.py", line 52, in async_setup_entry     await client.login()   File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 201, in login     response: aiohttp.ClientResponse = await self.request(                                        ^^^^^^^^^^^^^^^^^^^   File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 154, in request     resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request     raise RuntimeError("Session is closed") RuntimeError: Session is closed
Logger: homeassistant.config_entries
Source: custom_components/aquarea/init.py:52
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: July 14, 2023 at 3:14:58 PM (7 occurrences)
Last logged: 11:17:58 AM
The versions I'm running are all up to date.
Home Assistant 2023.7.2
Supervisor 2023.07.1
Operating System 10.3
I have accepted the new terms pushed by Panasonic onto users via the app and the web site, I checking in with the account I am using for the integration - they all can use the phone app and the web view.
Has anyone else seen this?
Thanks.

I have the same issue, form me since july 24th...

Update from me. I turned the integration off for a couple days.
After the recent update of HA - I turned it back on and saw it to be working again. Not sure what changed, but works so far.

I've just installed a CZ-TAW1 and the integration for the first time, and am getting the same error.

No worries, thanks. I tried actively signing out of both devices I'd used with the account. Still didn't work. I also tried creating a second user account and giving it access to the Aquarea device (granting permission from the first account!) but that also didn't work. I couldn't see anything on the Smart Cloud website which was "Sign out user from all devices" or similar. So I've run out of ideas!

Hello,
Unfortunately its still not working for me. Installed newest HA, restarted multiple times, also tried changing my Panasonic password...

For your info the integration started working for me again on sept 13th (withouth any update etc), it was working fine until sept 21st, since then it returns the same error...

Thanks - my wifi connection was dodgy so it has taken me until today to get a network cable out to the heatpump. I removed the failed device from the integration and tried once more, and it worked perfectly first time. I have no idea if it is anything to do with the better connection (unlikely?) but seems OK now. Although I have only had it running in HA for about ten minutes!

Same here:
Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup     result = await component.async_setup_entry(hass, self)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/config/custom_components/aquarea/__init__.py", line 52, in async_setup_entry     await client.login()   File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 201, in login     response: aiohttp.ClientResponse = await self.request(                                        ^^^^^^^^^^^^^^^^^^^   File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 154, in request     resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request     raise RuntimeError("Session is closed") RuntimeError: Session is closed

For your info the integration started working for me again on sept 13th (withouth any update etc), it was working fine until sept 21st, since then it returns the same error...

It also stopped working for me recently with the same error. Unfortunately I haven't figured out why.

I just published 0.4.1 with some changes on entry load. Could you please give it a try to see if it makes any difference on those messages?

I'm going to close this one as completed since the fix on 0.4.1 seems to be removed the "session is closed" issue. That said, the real reason (such connectivity issues to/from adapter to Panasonic Cloud) can now surface.
I'll keep the other issue opened https://github.com/cjaliaga/home-assistant-aquarea/issues/49 for more follow-ups if needed it.


Improve Apple Store Buttons

Need to improve this component on \Store Buttons\src\<apple-store-button.html>
Improvements required :
Make  deign a given in figma
Any reference image?

@itz-deepak Recently updated.

This one is done. So no need of this.


fontFamily prop not working

Howdy! First and foremost, thanks for building + maintaining this project.
I'm trying to use the fontFamily prop on a <Text> component, as per the example in the docs.
https://jxnblk.com/rebass/components/Text
<Text
  textAlign='center'
  fontWeight='bold'
  fontFamily="serif"
  children='Hello'
/>

However, on both my local project + the following Codesandbox, I can't seem to get the fontFamily prop to actually change the style of the <Text/>. It just converts the property into a kebab case HTML attribute. https://codesandbox.io/s/0vryoo593p
What am I doing wrong? Thanks!

Looks like Rebass is installed with the next tag in codesandbox, can you try installing the latest instead and see if the issue persists?

@jxnblk That did the trick. D'oh.
Thank you!


OVS Bridge obr0 fails when running a cluster with PROVIDER=Vagrant

After the update to Fedora-21 and Docker 1.6 in the vagrant set up, I am not able to access any kubernetes service ip addresses from a pod.  This appears to be the result of a problem with the settings for the obr0 bridge created by ovs.
[root@kubernetes-master ~]# ovs-ofctl show obr0
2015-06-16T14:18:38Z|00001|vconn|WARN|unix:/var/run/openvswitch/obr0.mgmt: version negotiation failed (we support version 0x01, peer supports version 0x04)
ovs-ofctl: obr0: failed to connect to socket (Broken pipe)

if it helps, I have a one line patch ready that will fix this.

Need to use 'ovs-vsctl show obr0', or 'ovs-ofctl -O OpenFlow13 dump-flows obr0'
Another error with multi-host networking fixed by #10073

Is this still an issue?  What is the one-line fix?

#10073 Did not fix it in my environment, but I am only using the Vagrant/Fedora/OVS set up for my dev instance, so I I just switched to Vagrant/CoreOS/Weave.
The one line I suggested was:
https://github.com/GoogleCloudPlatform/kubernetes/pull/10025
but there is some disagreement about whether that actually fixes it.

I have no basis on which to evaluate this issue - should I leave it open?
close it?  bother somebody (who?) to do something (what?)
On Wed, Jun 24, 2015 at 6:13 PM, Dave<EMAIL_ADDRESS>wrote:

#10073 https://github.com/GoogleCloudPlatform/kubernetes/pull/10073 Did
not fix it in my environment, but I am only using the Vagrant/Fedora/OVS
set up for my dev instance, so I I just switched to Vagrant/CoreOS/Weave.
The one line I suggested was:
#10025 https://github.com/GoogleCloudPlatform/kubernetes/pull/10025
but there is some disagreement about whether that actually fixes it.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/9861#issuecomment-115060491
.

I tried the setup again today and it works for me. To be sure whether kube2sky can see apiserver properly, I checked that there is active connection maintained inside the container (running on one of the nodes).
[root@kubernetes-minion-1 ~]# docker ps | grep kube2sky
81030a232acd        gcr.io/google_containers/kube2sky:1.9            "/kube2sky -domain=c   3 hours ago         Up 3 hours                              k8s_kube2sky.2f4e64af_kube-dns-v3-kgaoa_default_8e5dedd2-1ad8-11e5-a3e6-0800279dd272_9f8a1959
[root@kubernetes-minion-1 ~]# docker inspect 81030a232acd | grep Pid
        "PidMode": "",
        "Pid": 3710,
[root@kubernetes-minion-1 ~]# docker exec 81030a232acd /bin/sh -c netstat -utan | grep kube
tcp        0      0 kube-dns-v3-kgaoa:34190 <IP_ADDRESS>:https        ESTABLISHED
tcp        0      0 kube-dns-v3-kgaoa:34192 <IP_ADDRESS>:https        ESTABLISHED
udp        0      0 kube-dns-v3-kgaoa:41703 <IP_ADDRESS>:domain         ESTABLISHED

May I suggest @derekwaynecarr try once too (sorry for dragging you here :))? And if there is another instance of time-out error then we need to investigate.
@perljedi Please do not think I am against the one line fix, we just need a good explanation of how it fixes the problem (an OVS bug? Fedora issue? OpenFlow protocol non-compliance?)

I will try the same tomorrow.  I want to get all E2E passing this week.
Sent from my iPhone

On Jun 25, 2015, at 12:47 AM, Rajat Chopra<EMAIL_ADDRESS>wrote:
I tried the setup again today and it works for me. To be sure whether kube2sky can see apiserver properly, I checked that there is active connection maintained inside the container (running on one of the nodes).
[root@kubernetes-minion-1 ~]# docker ps | grep kube2sky
81030a232acd        gcr.io/google_containers/kube2sky:1.9            "/kube2sky -domain=c   3 hours ago         Up 3 hours                              k8s_kube2sky.2f4e64af_kube-dns-v3-kgaoa_default_8e5dedd2-1ad8-11e5-a3e6-0800279dd272_9f8a1959
[root@kubernetes-minion-1 ~]# docker inspect 81030a232acd | grep Pid
"PidMode": "",
"Pid": 3710,
[root@kubernetes-minion-1 ~]# docker exec 81030a232acd /bin/sh -c netstat -utan | grep kube
tcp        0      0 kube-dns-v3-kgaoa:34190 <IP_ADDRESS>:https        ESTABLISHED
tcp        0      0 kube-dns-v3-kgaoa:34192 <IP_ADDRESS>:https        ESTABLISHED
udp        0      0 kube-dns-v3-kgaoa:41703 <IP_ADDRESS>:domain         ESTABLISHED
May I suggest @derekwaynecarr try once too (sorry for dragging you here :))? And if there is another instance of time-out error then we need to investigate.
@perljedi Please do not think I am against the one line fix, we just need a good explanation of how it fixes the problem (an OVS bug? Fedora issue? OpenFlow protocol non-compliance?)
—
Reply to this email directly or view it on GitHub.

@derekwaynecarr Any word on this?  I want to understand if this is actually a critical issue or a misconfig or something.  I'm going to have to close it if I don't hear back soon :)

Two fixes have gone in since:  #10562 and #10568 by @derekwaynecarr which hopefully fix the vagrant issues.

@thockin - per the IRC discussion we had yesterday, this is all part of getting skydns fixed up.  I am hoping to get the core issues closed today.

status here?

This is the last v1-candidate issue in this category.  At this point if it is not fixed, it's probably not in v1.  If it is fixed, please close.  Thanks!


[Feat] ability to take mdHelpers.js file to a folder other than the root node

Thank you for the js support. I was wondering if we can have the option to change the js file location like we have for the vimrc file?
I tried moving the js helper from the root of the vault but the plug-in could not find it

If you specify a path within the vault it should work, e.g. jsfile code/mdHelpers.js

Thanks for helping.
Can you guide me to where I can specify the path?
I didn't see a place to do it in the Vimrc Settings page. Am I able to do it through one of the Vimrc code files specifically?

My mistake, I saw that it is in the actual vimrc file that gives the js file command. Thank you!


tomcat7 file

apt_update 'update' do
action :update
end
package 'tomcat7' do
action :install
end
packages = node['tomcat7']['addpackages']
package packages do
action :install
end
cookbook_file '/etc/default/tomcat7' do
source 'tomcat7'
mode '777'
action :create
end
template '/etc/tomcat7/tomcat-users.xml' do
source 'tomcat-users.xml.erb'
action :create
end

Run Tomcat as this user ID. Not setting this or leaving it blank will use the
default of tomcat7.
TOMCAT7_USER=tomcat7
Run Tomcat as this group ID. Not setting this or leaving it blank will use
the default of tomcat7.
TOMCAT7_GROUP=tomcat7
The home directory of the Java development kit (JDK). You need at least
JDK version 6. If JAVA_HOME is not set, some common directories for
OpenJDK, the Oracle JDK, and various Java SE 6+ versions are tried.
#JAVA_HOME=/usr/lib/jvm/openjdk-6-jdk
You may pass JVM startup parameters to Java here. If unset, the default
options will be: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC

Use "-XX:+UseConcMarkSweepGC" to enable the CMS garbage collector (improved
response time). If you use that option and you run Tomcat on a machine with
exactly one CPU chip that contains one or two cores, you should also add
the "-XX:+CMSIncrementalMode" option.
JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -Xmx512m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC"
To enable remote debugging uncomment the following line.
You will then be able to use a java debugger on port 8000.
#JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
Java compiler to use for translating JavaServer Pages (JSPs). You can use all
compilers that are accepted by Ant's build.compiler property.
#JSP_COMPILER=javac
Use the Java security manager? (yes/no, default: no)
#TOMCAT7_SECURITY=no
Number of days to keep logfiles in /var/log/tomcat7. Default is 14 days.
#LOGFILE_DAYS=14
Whether to compress logfiles older than today's
#LOGFILE_COMPRESS=1
Location of the JVM temporary directory
WARNING: This directory will be destroyed and recreated at every startup !
#JVM_TMP=/tmp/tomcat7-temp
If you run Tomcat on port numbers that are all higher than 1023, then you
do not need authbind.  It is used for binding Tomcat to lower port numbers.
(yes/no, default: no)
AUTHBIND=yes

error /etc/default/tomcat7 not found

did you define variables in attribute file
please send  your cookbook logs


Raspberry Pi imags?

Where are the latest Raspberry Pi images? I don't see them in the releases page (unless I'm missing something?) Only issue that came close to poking around was #1794 but that was a while ago.

Raspberry PI images have been uploaded to https://github.com/rancher/os/releases for all recent versions so can actually close this one?

What happened to the raspberry pi 2 images? :(

They're arm32, and RancherOS is supporting arm64.On Jul 23, 2018 13:58, Nuno Sousa<EMAIL_ADDRESS>wrote:What happened to the raspberry pi 2 images? :(
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.


[ADLA] - Scope convergence for Job APIs (Part 1)

The substantial changes (listed below) are in this file: specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2017-09-01-preview/job.json

Created a new API version, 2017-09-01-preview, for job.json

Updated the readme files to reflect this
Created a new folder for this API version

Added a tags field to the JobInformationBasic object

Created the following objects:

CreateScopeJobParameters
ScopeJobProperties
ScopeJobResource

Added two new APIs: UpdateJob and YieldJob

Added example files for these

Added more properties to the JobStatisticsVertexStage object

A minor bug fix for the files below: adding two missing enum properties "Canceled" and "Undeleting" for the provisioningState field.

specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/account.json
specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/account.json

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[ ] The title of the PR is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[ ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[ ] I have read the contribution guidelines.
[ ] My spec meets the review criteria:

[ ] The spec conforms to the Swagger 2.0 specification.
[ ] The spec follows the guidelines described in the Swagger checklist document.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

@ro-joowan,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

See also https://github.com/Azure/azure-rest-api-specs/pull/1745

This has been merged: https://github.com/Azure/azure-rest-api-specs/pull/1745
So I'm closing this!


Quota association

if I understand Org/Space Quota correctly, they'd have to be handled similar to ASGs.
In special, I define Quotas on Foundation-Level, assign some of them to an ORG and and only one can be assigned (named) to the space.
From the docs: every org has a list of available quota plans, and the account admin assigns a specific quota plan from the list to the org. Everyone in the org shares the quotas described by the plan. There is no limit to the number of defined quota plans an account can have, but only one plan can be assigned at a time.
Currently I only see opts for cf-mgmt-config add-(org|space) specifying each value of a quota
for a space whereas it should be a) a name of a quota and b) only for the org, not the space.
Is this a bug or a feature?

Currently if you enable quota management at the org or space level it will create a unique quote for each of those entities.  A feature has been requested (https://github.com/pivotalservices/cf-mgmt/issues/62) to allow defining them more globally in cf-mgmt and then being able to associate to a space or org by that name.  This will allow defining canned quotas but then also would allow fine grain control if you wanted to override and generate a org or space specific quote using the current approach.


New Control: [contentTypePicker]

Category
[x] Enhancement
[ ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [  latest  ]
Enhancement
tl;dr: very similar in concept to sitePicker, listPicker, folderPicker, etc. but for Content Types.
Occasionally we need users to select a Content Type from a specific scope - Current/Other Site, Gallery, Published, by Group, from Library, etc.
Having a configurable control that will populate itself accordingly would be very helpful.
CC: @milanholemans

Thank you @sparkitect for the suggestion!
Would you be able to submit a PR for this new control?

@AJIXuMuK This was a suggestion for a new control, similar to #1219 and I believe that @milanholemans intends to actually develop it...

I'll try to make a PR of this in the next couple of weeks when I find the time.


Tabula unable to recognize Tesseract fonts?

Scanned documents OCRd with Pdfsandwich / Tesseact produce no output from Tabula. I'm simply guessing here, but perhaps the problem is with Tesseact's fonts as discussed here. Text can be selected / copied / pasted from most readers, but Tabula seems to find nothing.
Here is an example PDF to try: https://www.mediafire.com/?66j8d58466j6blv

And just for comparison, here is an image-based PDF which Tabula handles rather well: https://www.mediafire.com/?xzk22zkqx9wyxmy

Probably an issue with PDFBox, the underlying PDF rendering library we use. I looked into it, and all the characters are reported as having zero height.
First rectangle is TextElement, second is the current clipping path. I don't know if this is intended behavior, but, I think because the TextElement has no area, it doesn't ever get back true from intersects with the currentClippingPath.
[#<TextElement: 40.35,365.63,40.35,378.76 'A'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 40.44,379.08,40.44,392.21 'G'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 40.54,392.54,40.54,405.67 'R'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 40.63,405.99,40.63,419.12 'I'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 40.73,419.45,40.73,432.58 'C'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 40.82,432.9,40.82,446.03 'U'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 40.92,446.36,40.92,459.49 'L'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 41.01,459.81,41.01,472.94 'T'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 41.1,473.27,41.1,486.4 'U'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 41.2,486.72,41.2,499.85 'R'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 41.29,500.18,41.29,513.31 'A'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]
[#<TextElement: 41.39,513.63,41.39,526.76 'L'>, #<Rectangle dims:[x:0, y:0, w:1219, h:579]>]

@jazzido: Are we still tightly coupled to that PDFBox beta or are we using the latest PDFBox?


Add syntax related fixes for Scala3 cross build

I know there are already some people working on cross-building in Scala3. But I'm going to try it too.
The following fixes have been added with this PR.

Specify the return type for "implicit def
Stop calling methods without "()".

We probably have a lot more work to do for the Scala3 cross-build,
I think it's better to get these fixes in first.
It will reduce noise and make it easier to work and review code.

:+1:


Text measurement

I know it's too early for speed optimizations, just wanted to point out some way of doing so for text measurement, because it's what runs frame rate in the app right now (it forces browser layout).
So the more optimized way for main thread might measuring with <canvas>'s 2d context's measureText() API. Which measure itself most likely won't be any faster, it won't be causing any forced layout issues in the DOM.
For the off-thread measurement, OffscreenCanvas probably can be used, once it's implemented and supports 2d context rendering.
Just wanted to file this issue so it could be tracked by others or additional thoughts added.
Great work! 🎉

Another option while waiting for OffscreenCanvas is to use FreeType compiled to wasm like some other web apps do.


feat: translate tscofing infos into portuguese/br

Creating another PR so we can move on with a set of files from #924
Since there are a LOT of files in this PR, having it stalled was keeping a lot of good translations without being published.
@danilofuchs @orta

LGTM


add wildcard+filelist support?

Hi,
It takes me about 15-20 seconds to do a song with this, and about 8-9 seconds of that is loading the model.
Could we have wildcard and filelist support, so that this can be run on a wildcard (*.wav for example), and filelist support, so this can be run on a list of files (an mp3 playlist, for example)?
Then we could load the model once, saving like 40% of our time when running on multiple files.
Thank you :)

Hi,
I'm not sure to understand the issue. Just use a for loop after loading the model? Something like:
import glob

model = ...

for filename in glob.glob("*.wav"):
    segments, info = model.transcribe(filename)
    # do something with segments

The issue is that I'm using whisper-faster.exe

This repo does not provide whisper-faster.exe, so you should open this issue in the correct repo.

This repo does not provide whisper-faster.exe, so you should open this issue in the correct repo.

My bad. I'm dealing with too many different whispers right now.

Is that wildcard script example I showed you not good?  {https://github.com/Purfview/whisper-standalone-win/discussions/29#discussioncomment-6309321)
If you need it so much to work out of the box then I can implement it. It's pretty simple,

I think a lot of people would like it because most lack the know-how to do things with or loops.
But for me personally, going through all the [existing] files in a filelist would be best, because I want to run this on a large playlist of music.  It's still possible to figure out how to do it with command line trickery though, but only with the infinite command line length of TCC. [one playlist i would do it on is about 4Megs long, a significant size for command line]
My dream feature for an automation of that scale would be if each individual call to whisper could be individually prompted by the contents of a txt file transcription, if one already exists. In this case, it would be lyrics downloaded (i have a bunch of these automatically downloaded by minilyrics)
It's easy enough to do this one at a time, but it would save the time of loading the model (8 seconds) thousands of times over, as it would require a different prompt for each file, and there's not a way to do that on the command line.
(i.e. using whisper on song.mp3, but prompting it with song.txt, an existing transcript of lyrics used as a prompt to give it more accurate results, in order to create song.lrc / song.srt, and automating this logic an entire list of files).
I can do this in python but it would be sooo much slower without the faster EXE file.  By some of my estimates, 2 weeks vs 10 to 50 weeks. My electric bill, haha.

That's what I was afraid of, agree to implement one thing then follows the hundred exotic feature requests. 😅
Here I made a draft code to support wildcards and directories, you can test it in IDLE to check if it works as expected:
import sys
import os
import glob

def main():
    batch_recursive = True
    audio_arg = ["D:\Temp\*.aac"]
    audios = []

    # If audio is a directory:
    if os.path.isdir(audio_arg[0]):
        for root, dirs, files in os.walk(audio_arg[0]):
            for filename in files:
                filepath = root + os.sep + filename
                audios.append(filepath)
            if not batch_recursive:
                break   # prevents descending into subfolders
    # If audio is a wildcard:
    elif '*.' in audio_arg[0]:
        root = os.path.dirname(audio_arg[0])
        filename = os.path.basename(audio_arg[0])
        if root == "":
            root = os.getcwd()
        if batch_recursive:
            filepath = root + os.sep + "**" + os.sep + filename
        else:
            filepath = root + os.sep + filename
        files = glob.glob(filepath, recursive=batch_recursive)
        for i in files:
            audios.append(i)
    # If invalid wildcard:
    elif '*' in audio_arg[0]:
        print("Error: Invalid input for audio. Wildcard examples: \"D:\\Dir\\*.*\", \"D:\\Dir\\*.mp4\". or \"*.mp4\"")
        sys.exit()
    # Continue as usual:
    else:
        audios = audio_arg

    print("\nDo work on these files:")
    print(audios)

main()

I don't want to bother with filelists, if you can edit it in here then maybe I'll incorporate it.

Oh I'm Sorry, didn't mean to open a pandora's box! 😅 I can see how that would be anxiety-inducing to suddenly get a bunch of exotic feature requests!
I did not know what IDLE was, but I figured it out and am trying this out. Thanks for the tip!
I'm taking a crack at it right now...

My comments -
I think directory should recurse, otherwise a wildcard could do the same thing. The point in my mind was to allow mass batch scripting across all folders for people who don't want to construct a super long  command line.    Point it to their music collection, transcribe away!
However, that's a moot point with filelist support! Filelist can do anything! :) I feel like commenting out your "if not batch_recursive" if overstepping 😅 I'm new here but not new in general 😅
Also, none of this filters for valid extensions, but I'm assuming that happens downstream somewhere anyway. But I could add filter-by-extension to only the ones whisper supports if you want.

Okay, got it working right I think!
'''
#test results
#".flac"    wildcard working: audio_arg = ["c:\working\asdf\.flac"] == Do work on these files: ['c:\working\asdf\02_Muzzle.flac', 'c:\working\asdf\06_Mother.flac', 'c:\working\asdf\1_Fences.flac', 'c:\working\asdf\2_07_Theme For A Jackal (Reel Platinum 1985).flac']
#"*foo.flac" wildcard working: audio_arg = [r"c:\working\asdf*le.flac"] == Do work on these files: ['c:\working\asdf\02_Muzzle.flac']
directories working: audio_arg = [r"c:\working\asdf"]          == Do work on these files: ['c:\working\asdf\02_Muzzle.flac', 'c:\working\asdf\06_Mother.flac', 'c:\working\asdf\1_Fences.flac', 'c:\working\asdf\1_Fences.txt', 'c:\working\asdf\2_07_Theme For A Jackal (Reel Platinum 1985).flac', 'c:\working\asdf\a', 'c:\working\asdf\clean.bat']
#********************* caveat: this puts ALL the files in the argument. I assume invalid extensions are ignored? If not I can add that
"foo.m3u" filelist working: audio_arg = [r"c:\working\asdf\test.m3u"] == Do work on these files:['c:\working\asdf\1_Fences.flac', 'c:\working\asdf\2_07_Theme For A Jackal (Reel Platinum 1985).flac', 'c:\working\asdf\02_Muzzle.flac', 'c:\working\asdf\06_Mother.flac']
includes: compensating for the fact that a filelist might not have the path listed inside the filelist - this goes through and adds it
'''
Here is the code!
import sys
import os
import glob

def main():
    batch_recursive = True
    audio_arg = [r"c:\working\asdf\test.m3u"]
    audios = []

    # If audio is a directory:
    if os.path.isdir(audio_arg[0]):
        for root, dirs, files in os.walk(audio_arg[0]):
            for filename in files:
                filepath = root + os.sep + filename
                audios.append(filepath)
            if not batch_recursive:
                break   # prevents descending into subfolders
    # If audio is a wildcard:
    elif '*' in audio_arg[0]:
        root = os.path.dirname(audio_arg[0])
        filename = os.path.basename(audio_arg[0])
        if root == "":
            root = os.getcwd()
        if batch_recursive:
            filepath = root + os.sep + "**" + os.sep + filename
        else:
            filepath = root + os.sep + filename
        files = glob.glob(filepath, recursive=batch_recursive)
        for i in files:
            audios.append(i)
    # If invalid wildcard:
    #elif '*' in audio_arg[0]:
    #    print("Error: Invalid input for audio. Wildcard examples: \"D:\\Dir\\*.*\", \"D:\\Dir\\*.mp4\". or \"*.mp4\"")
    #    sys.exit()
    # Continue as usual:
    elif len(audio_arg) == 1:
        file_name = audio_arg[0]
        file_directory = os.path.dirname(file_name)
        file_basename, file_extension = os.path.splitext(file_name)

        if file_extension.lower() in [".txt", ".m3u", ".m3u8", ".lst"]:
            with open(file_name, 'r', encoding="utf-8") as file:
                file_list = file.read().splitlines()
            file_list = [os.path.join(file_directory, tmp_file_name) for tmp_file_name in file_list]            # Add directory path to each file name
            audios = file_list
        else:
            audios = audio_arg
    else:
        audios = audio_arg

    print("\nDo work on these files:")
    print(audios)

main()

Also, my apologies if I misunderstood anything!
This really has helped me flush out my own personal pattern for file processors though. And I appreciate getting to learn about idle. I didn't know python before chatgpt...  thank you!

I think directory should recurse...

It already does that.

Also, none of this filters for valid extensions, but I'm assuming that happens downstream somewhere anyway.

Yeah. Happens when you see error in the middle of operation. :)

But I could add filter-by-extension to only the ones whisper supports if you want.

Be my guest, I think it's down to what ffmpeg supports.

Okay, got it working right I think!

I tried your filelist code on random m3u8 and it didn't work properly, it added "#EXTINF" stuff to audios variable.
I updated my previous post with tweaked version. [your part is cosmetically tweaked too]

Oh shoot i forgot about the comments m3u files have sometimes. But yea, I was thinking, invalid filenames were perhaps caught at a different point in the process and not a concern right then 😅

You should do a check if file exists before adding it to audios list.

Good idea, here's the updated code. It also checks if there are quotes around a filename in a filelist, because i'm sure somewhere out there is doing that unnecessarily 🤣
'''
import sys
import os
import glob
def main():
batch_recursive = True
audio_arg = [r"c:\working\asdf\test.m3u"]
audios = []
audiovideo_extensions = [".mp3", ".wav", ".rm", ".voc", ".au", ".mid", ".stm", ".mod", ".vqf", ".ogg", ".opus", ".mpc", ".ac3", ".wma", ".mp4", ".flac", ".snd", ".aac", ".mkv", ".avi", ".mp4", ".m4a", ".flv", ".mov", ".wmv", ".mpg", ".mpeg", ".vob", ".bdmv", ".ts", ".m2ts", ".rm", ".qt", ".asf", ".asx", ".fli", ".swf", ".m4v", ".webm", ".f4v", ".rm", ".ram", ".3gp"]
filelist_extensions = [".txt", ".m3u", ".m3u8", ".lst"]

# If audio is a directory:
if os.path.isdir(audio_arg[0]):
    for root, dirs, files in os.walk(audio_arg[0]):
        for filename in files:
            filepath = root + os.sep + filename
            audios.append(filepath)
        if not batch_recursive:
            break   # prevents descending into subfolders
# If audio is a wildcard:
elif '*' in audio_arg[0]:
    root = os.path.dirname(audio_arg[0])
    filename = os.path.basename(audio_arg[0])
    if root == "":
        root = os.getcwd()
    if batch_recursive:
        filepath = root + os.sep + "**" + os.sep + filename
    else:
        filepath = root + os.sep + filename
    files = glob.glob(filepath, recursive=batch_recursive)
    for i in files:
        audios.append(i)
# If invalid wildcard:
#elif '*' in audio_arg[0]:
#    print("Error: Invalid input for audio. Wildcard examples: \"D:\\Dir\\*.*\", \"D:\\Dir\\*.mp4\". or \"*.mp4\"")
#    sys.exit()
# Continue as usual:
elif len(audio_arg) == 1:
    file_name = audio_arg[0]
    file_directory = os.path.dirname(file_name)
    file_basename, file_extension = os.path.splitext(file_name)
    if file_extension.lower() in filelist_extensions:
        with open(file_name, 'r', encoding="utf-8") as file:
            file_list = file.read().splitlines()
        stripped_files = [f.strip('"') for f in file_list]
        full_files = [os.path.join(file_directory, f) for f in stripped_files]             # convert filelist's filenames to full paths
        existing_files = [f for f in full_files if os.path.isfile(f)]
        valid_extension_files = [f for f in existing_files if os.path.splitext(f)[1].lower() in audiovideo_extensions]
        audios = valid_extension_files
        #print(f"stripped_files={stripped_files}\n\nfull_files={full_files}\n\nexisting_files={existing_files}\n\nvalid_extension_files={valid_extension_files}")
    else:
        audios = audio_arg
else:
    audios = audio_arg

print("\nDo work on these files:")
print(audios)

main()
'''

Now it works. Added to r134.5 exe. Read help about audio and --batch_recursive arguments.
Added it same same as in https://github.com/guillaumekln/faster-whisper/issues/341#issuecomment-1627285903 post.
If you'll have further issues then open a new issue at the right repository.


review date not working for incremental rem

If I try to change the date for when I will incrementally read something, then it disappears from the incremental reading queue

The same thing happens if you try to add new date for review in the pdf editor for the queue
Even if I go to a specific document and try to add a new date it disappears, so it doesn't appear to be something isolated to the flashcard queue
If others bring this up to you, tell them they can press ctrl + z to bring it back and it will show the new changed date

closed because there was already a post about this.


Alternate access for Azure Active Directory link

Added information what to do if the Azure Active Directory Link is missing

@lafe : Thanks for your contribution! The author, @jeevansd, has been notified to review your proposed change.

Close/reopen for fresh validation post-migration.


cuelang.org: search treats underscores differently from other characters

What page were you looking at?
https://cuelang.org/search/?q=CUE_DEBUG_TOOLS_FLOW
What version of the site were you looking at?
https://github.com/cue-lang/cuelang.org/commit/d77b7dcdfe387dba98ea36c9005a5f33ca09cdba
What did you do?
I searched for a environment variable that contains internal underscores.
What did you expect?
That the search page would return pages referencing that environment variable; or no pages at all.
What did you see instead?
The search tokenisation seems to treat underscores as actual word separators. Or, at the very least, it does something to match against the CUE_ that's present on both the pages it finds.
I suspect we want to teach search to treat underscores as just another character.

This feels like an Algolia configuration issue.


Pluralize and Singularize mistakes for nouns with endings of f or fe.

Pluralize:
iex> Inflex.pluralize("life")
"liives" # should be "lives"
iex> Inflex.pluralize("elf")
"eves" # should be "elves"
iex> Inflex.pluralize("wolf")
"woves" # should be "wolves"
iex> Inflex.pluralize("hoof")
"hoofs" # should be "hooves"
iex> Inflex.pluralize("knife")
"kniives" # should be "knives"

Singularize:
iex> Inflex.singularize("elves")
"elfe" # should be "elf"
iex> Inflex.singularize("wolves")
"wolfe" # should be "wolf"
iex> Inflex.singularize("hooves")
"hoofe" # should be "hoof"

Merged and thanks for the catch!


Add mandatory dependency on Visual Studio Core Editor

Carlos Quintero states in his blogpost http://www.visualstudioextensibility.com/2017/01/10/its-time-to-change-the-vsix-manifest-of-your-extension-to-v3-for-visual-studio-2017-compatibility/ that an extension should depend on Visual Studio Core Editor at the very least.

Yes, I had this issue initially, because the Prerequisites section was missing. I solved by just adding a dependency on .NET 4.6.1 SDK. It may be not a good choice after all and yours may be better. So far, did you have practical problem with the current Manifest?

I was only wondering why there's a dependency on .NET 4.6.1 SDK, but otherwise the extension worked well with the current manifest.

Er... One thing I noticed is that, when double-clicking on the extension in order to install it, it needs a long time to search for something until the dialog with the "install" button for the found VS versions is presented. Not sure though whether this is related to dependeny on the .NET SDK.

According to this[1] document, the Visual Studio Core Editor has components like TextBuffer, TextView, etc. that are facilities used to enable graphical editing of the code. The extension could, at least in theory, run without a graphical editor. Instead, I will pick the dependency on MSBuild, which is the Microsoft build system I am leveraging to set the build macros, dropping at the same the dependency on .NET SDK which could be not installed on the target system. This, I think, should address your concern.
[1] https://msdn.microsoft.com/en-us/library/bb165971.aspx


Remove java8 incompatible code and settings

We have some code and dependencies that are not compatible with Java 8 version. This PR removes/fixes all of them.

Codecov Report
Patch coverage has no change and project coverage change: -58.91 :warning:

Comparison is base (41ce7ef) 72.80% compared to head (02f9c0f) 13.89%.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #2506       +/-   ##
=============================================
- Coverage     72.80%   13.89%   -58.91%
+ Complexity    11158     2367     -8791
=============================================
  Files           790      790
  Lines         63095    63095
  Branches       7710     7710
=============================================
- Hits          45934     8769    -37165
- Misses        14653    53814    +39161
+ Partials       2508      512     -1996

see 629 files with indirect coverage changes

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


BT v<IP_ADDRESS> fixes

Fixes the mod for version v<IP_ADDRESS>.
**Bugs known: **

Autospawn enabled by default until I find how to fix the manual addition of joining players

Potential other issues to be tested further

Adding many features:
Fixed issue -respawn shuttle not appearing.
New command 'mcm shuttle ' to choose shuttle
New command 'mcm shuttles' to list available shuttles
New command 'mcm useshuttle <true/false>' to use the shuttle or not
Changed command 'mcm respawn set <true/false>' to 'mcm respawnmode <true/false>'
Changed command 'mcm maxtransporttime ' to  'mcm respawnmode <0/1/2> - turn respawn mode to (0 - MidRound, 1 - BetweenRounds, 2 - Permadeath. Effective at next round.'

looks good


BSQL Q27 fails at SF10K on the 17-node cluster ("existing" allocator)

Looks like the error comes from here
https://github.com/rapidsai/tpcx-bb/blob/main/tpcx_bb/queries/q27/tpcx_bb_query_27_sql.py#L47
Using default arguments
Connected to tcp://<IP_ADDRESS>:8786
BlazingContext ready
Encountered Exception while running query
Traceback (most recent call last):
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/dask/dataframe/utils.py", line 174, in raise_on_meta_error
    yield
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/dask/dataframe/core.py", line 5144, in _emulate
    return func(*_extract_meta(args, True), **_extract_meta(kwargs, True))
  File "tpcx_bb_query_27_sql.py", line 48, in ner_parser
    nlp = spacy.load("en_core_web_sm")
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/__init__.py", line 30, in load
    return util.load_model(name, **overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 170, in load_model
    return load_model_from_package(name, **overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 191, in load_model_from_package
    return cls.load(**overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/en_core_web_sm/__init__.py", line 12, in load
    return load_model_from_init_py(__file__, **overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 239, in load_model_from_init_py
    return load_model_from_path(data_path, meta, **overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 222, in load_model_from_path
    return nlp.from_disk(model_path, exclude=disable)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/language.py", line 974, in from_disk
    util.from_disk(path, deserializers, exclude)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 690, in from_disk
    reader(path / key)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/language.py", line 950, in deserialize_vocab
    self.vocab.from_disk(path)
  File "vocab.pyx", line 472, in spacy.vocab.Vocab.from_disk
  File "vectors.pyx", line 432, in spacy.vectors.Vectors.from_disk
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 690, in from_disk
    reader(path / key)
  File "vectors.pyx", line 425, in spacy.vectors.Vectors.from_disk.load_vectors
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/cupy/io/npz.py", line 71, in load
    return cupy.array(obj)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/cupy/creation/from_data.py", line 41, in array
    return core.array(obj, dtype, copy, order, subok, ndmin)
  File "cupy/core/core.pyx", line 1785, in cupy.core.core.array
  File "cupy/core/core.pyx", line 1862, in cupy.core.core.array
  File "cupy/core/core.pyx", line 1951, in cupy.core.core._send_object_to_gpu
  File "cupy/cuda/stream.pyx", line 267, in cupy.cuda.stream.Stream.record
  File "cupy/cuda/stream.pyx", line 99, in cupy.cuda.stream.Event.__init__
  File "cupy/cuda/runtime.pyx", line 571, in cupy.cuda.runtime.eventCreateWithFlags
  File "cupy/cuda/runtime.pyx", line 574, in cupy.cuda.runtime.eventCreateWithFlags
  File "cupy/cuda/runtime.pyx", line 197, in cupy.cuda.runtime.check_status
cupy.cuda.runtime.CUDARuntimeError: cudaErrorMemoryAllocation: out of memory

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/xbb_tools/utils.py", line 326, in run_bsql_query
    config=config,
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/xbb_tools/utils.py", line 63, in benchmark
    result = func(*args, **kwargs)
  File "tpcx_bb_query_27_sql.py", line 88, in main
    ner_parsed = sentences.map_partitions(ner_parser, "sentence")
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/dask/dataframe/core.py", line 643, in map_partitions
    return map_partitions(func, self, *args, **kwargs)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/dask/dataframe/core.py", line 5194, in map_partitions
    meta = _emulate(func, *args, udf=True, **kwargs)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/dask/dataframe/core.py", line 5144, in _emulate
    return func(*_extract_meta(args, True), **_extract_meta(kwargs, True))
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/dask/dataframe/utils.py", line 195, in raise_on_meta_error
    raise ValueError(msg) from e
ValueError: Metadata inference failed in `ner_parser`.

You have supplied a custom function and Dask is unable to
determine the type of output that that function returns.

To resolve this please provide a meta= keyword.
The docstring of the Dask function you ran should have more information.

Original error is below:
------------------------
CUDARuntimeError('cudaErrorMemoryAllocation: out of memory')

Traceback:
---------
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/dask/dataframe/utils.py", line 174, in raise_on_meta_error
    yield
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/dask/dataframe/core.py", line 5144, in _emulate
    return func(*_extract_meta(args, True), **_extract_meta(kwargs, True))
  File "tpcx_bb_query_27_sql.py", line 48, in ner_parser
    nlp = spacy.load("en_core_web_sm")
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/__init__.py", line 30, in load
    return util.load_model(name, **overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 170, in load_model
    return load_model_from_package(name, **overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 191, in load_model_from_package
    return cls.load(**overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/en_core_web_sm/__init__.py", line 12, in load
    return load_model_from_init_py(__file__, **overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 239, in load_model_from_init_py
    return load_model_from_path(data_path, meta, **overrides)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 222, in load_model_from_path
    return nlp.from_disk(model_path, exclude=disable)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/language.py", line 974, in from_disk
    util.from_disk(path, deserializers, exclude)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 690, in from_disk
    reader(path / key)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/language.py", line 950, in deserialize_vocab
    self.vocab.from_disk(path)
  File "vocab.pyx", line 472, in spacy.vocab.Vocab.from_disk
  File "vectors.pyx", line 432, in spacy.vectors.Vectors.from_disk
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/spacy/util.py", line 690, in from_disk
    reader(path / key)
  File "vectors.pyx", line 425, in spacy.vectors.Vectors.from_disk.load_vectors
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/cupy/io/npz.py", line 71, in load
    return cupy.array(obj)
  File "/home/christianc/conda/envs/bsql-tpcx/lib/python3.7/site-packages/cupy/creation/from_data.py", line 41, in array
    return core.array(obj, dtype, copy, order, subok, ndmin)
  File "cupy/core/core.pyx", line 1785, in cupy.core.core.array
  File "cupy/core/core.pyx", line 1862, in cupy.core.core.array
  File "cupy/core/core.pyx", line 1951, in cupy.core.core._send_object_to_gpu
  File "cupy/cuda/stream.pyx", line 267, in cupy.cuda.stream.Stream.record
  File "cupy/cuda/stream.pyx", line 99, in cupy.cuda.stream.Event.__init__
  File "cupy/cuda/runtime.pyx", line 571, in cupy.cuda.runtime.eventCreateWithFlags
  File "cupy/cuda/runtime.pyx", line 574, in cupy.cuda.runtime.eventCreateWithFlags
  File "cupy/cuda/runtime.pyx", line 197, in cupy.cuda.runtime.check_status

This has been resolved. Closing.


AstroTurfLoaderError: Cannot use the decorators and decorators-legacy plugin together

I'm looking for css-in-js library for my project, linaria and astroturf are in my preference.
astroturf looks better for me because we already use css modules using .less.
The problem is when I use { legacy: true } for @babel/plugin-proposal-decorators build will crash with error message: AstroTurfLoaderError: Cannot use the decorators and decorators-legacy plugin together.
My babel config is:
{
    presets: [
        ['@babel/preset-env', {
            loose: true,
        }],
        '@babel/preset-react',
    ],
    plugins: [
        '@babel/plugin-syntax-dynamic-import',
        [
            '@babel/plugin-proposal-decorators',
            { legacy: true },
        ],
        '@babel/plugin-proposal-object-rest-spread',
        ['@babel/plugin-proposal-class-properties', { loose: true }],
        [
            '@babel/plugin-transform-runtime',
            {
                corejs: false,
                helpers: true,
                regenerator: true,
                useESModules: false,
            },
        ],
    ],
}

What i do wrong?

Looks like a bug. We add a bunch of default parser options to ensure files are parsed but those are conflicting with your local config

I ran into the same issue here :O

There is conflict with project's babel.config.js. Can be solved with transformSync's option configFile: false in addition to babelrc: false

Adding configFile: false does indeed resolve this error, but this is configuring a stage-2 plugin... with decorator before-export enabled. This conflicts with the tc39's current consensus... this is just enabling the parsing of that syntax, why is it being opinionated? If we use the legacy version for syntax that allows for both, and we'd get by. I could offer a PR if that would be accepted.

It's not intentionally opinionated, the parser requires picking one. Last I tried the two options were not compatible with each other. If that's different now I'm certainly open to it

yeah, swap the
decoratorsBeforeExport:true with legacy:true and you will tolerate both. Since you're just passing the legacy parser doesn't make a difference to you. (other than being permissive)

If you want, I can open a PR in the morning.

certainly open to it, but i'm still a bit skeptical since the new decorators spec had added different syntax like import @decorator from 'foo' that...tho it looks like as of 2 weeks ago that's not the case anymore??? This proposal is wild.

That decorator proposal never made it into babel, as far as I can tell. The decorator plugin only implements the original (legacy) and the revised proposal that only added a runtime. The static decorator proposal you are referring to has died. It's back to "decorators are functions"... very similar to the original (imo). ...and yes, that proposal is wild. Which actually makes me wonder if you should move to make this loader come after babel-loader so that you can avoid having to support unreleased proposals.

yeah having to guess at parsing config is super annoying, we could actually just defer to babel if there is a local config but it's a bit tricky to do, even tho babel exposes the right API's now for doing that.

you should move to make this loader come after babel-loader so that you can avoid having to support unreleased proposals.

That is perfectly reasonable btw, as long as your babel setup isn't compiling tagged template strings, something that is a lot more likely now than a few years ago

you should move to make this loader come after babel-loader so that you can avoid having to support unreleased proposals.

That is perfectly reasonable btw, as long as your babel setup isn't compiling tagged template strings, something that is a lot more likely now than a few years ago

Yeah, that could even be articulated in the setup for people targeting very old runtimes... or I error at startup?

Yeah, that could even be articulated in the setup for people targeting very old runtimes... or error at startup?

Nevermind, this loader doesn't transform the tag template literals... yeah, it's better to just ensure the parser can at least handle tags and let the user's config fill in the rest.


[Performance] Suggestions causing excessive updates

While working on this PR I noticed that there was an error thrown about excessive react updates.
https://github.com/user-attachments/assets/f6546888-bd0f-453c-89ea-1d39fe21308c

closed in favour of https://github.com/Expensify/App/issues/46810


Warning after migrating from M1 Mac back to Intel based Mac

brew config output
HOMEBREW_VERSION: >=2.5.0 (shallow or no git repository)
ORIGIN: (none)
HEAD: (none)
Last commit: never
Core tap ORIGIN: (none)
Core tap HEAD: (none)
Core tap last commit: never
Core tap branch: (none)
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_REPOSITORY: /opt/homebrew
HOMEBREW_CELLAR: /opt/homebrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit kabylake
Clang: 12.0.5 build 1205
Git: N/A
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.6-x86_64
CLT: <IP_ADDRESS>.11
Xcode: 12.5.1

brew doctor output
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Git could not be found in your PATH.
Homebrew uses Git for several internal functions, and some formulae use Git
checkouts instead of stable tarballs. You may want to install Git:
  brew install git

Warning: Your Homebrew's prefix is not /usr/local.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/usr/local).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.

[X] I ran brew update and am still able to reproduce my issue.
[X] I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?
I want to use Homebrew as intended.
What happened (include all command output)?
I have migrated from a M1 MacBook Air back to a MacBook Pro 13
What did you expect to happen?
I want to use Homebrew as intended.
Step-by-step reproduction instructions (by running brew commands)
brew update:
Error: Cannot install on Intel processor in ARM default prefix (/opt/homebrew)!
Error: 'git' must be installed and in your PATH!

Your Homebrew installation, including all formulae installed, will contain arm64 binaries so you can't just copy the installation as nothing will run.
You'll need to reinstall Homebrew and all formulae so it can install x86_64 binaries instead. This lies in a separate prefix /usr/local so /opt/homebrew will stay as it is until you delete it.
Tools like brew bundle dump can help, though you might need to fix your system Git (/usr/bin/git) first so that brew can at least be partially usable.


RDBES code review: RS_VesselType

https://vocab.ices.dk/?ref=1631
(IC_VesselType: https://vocab.ices.dk/?ref=287)
(VESSL:  https://vocab.ices.dk/?ref=57)

Will make it invisible, until better description is provided by RDBES group

RDBES core group: This CodeType is not used any more and can be deleted

Deleted 21/12-2021


Error in net-maui Blazor Hybrid APP

Hi,
I appreciate you work. Great component!
I use the Signature pad (8.1.5) in a blazor server scenario as well as in a BlazorWebView via net Maui (both time via the exact same code via a shared razor-class-library). In the Browser I have zero issues, but in net Maui sometimes I get the following Exception:
On Android it looks like this:
Microsoft.JSInterop.JSException: Cannot read properties of null (reading 'addEventListener')
TypeError: Cannot read properties of null (reading 'addEventListener')
    at Module.setup (https://<IP_ADDRESS>/_content/Blazor.SignaturePad/sigpad.interop.js?ver=8.1.5:9:13)
    at https://<IP_ADDRESS>/_framework/blazor.webview.js:1:3050
    at new Promise (<anonymous>)
    at g.beginInvokeJSFromDotNet (https://<IP_ADDRESS>/_framework/blazor.webview.js:1:3007)
    at External.__callback (https://<IP_ADDRESS>/_framework/blazor.webview.js:1:48020)
    at MessagePort.<anonymous> (<anonymous>:23:21)
   at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__16`1[[Microsoft.JSInterop.Infrastructure.IJSVoidResult, Microsoft.JSInterop, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
   at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference , String , Object[] )
   at SignaturePad.SignaturePad.Setup()
   at SignaturePad.SignaturePad.OnAfterRenderAsync(Boolean firstRender)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState ) | AddWebMobile.RazorPages.Index.BuildRenderTree

on iOS it slooks a bit different:
ERROR  Microsoft.JSInterop.JSException: null is not an object (evaluating 'element.addEventListener')
setup@app://<IP_ADDRESS>/_content/Blazor.SignaturePad/sigpad.interop.js:9:12
@app://<IP_ADDRESS>/_framework/blazor.webview.js:1:3050
Promise@[native code]
beginInvokeJSFromDotNet@app://<IP_ADDRESS>/_framework/blazor.webview.js:1:3018
@app://<IP_ADDRESS>/_framework/blazor.webview.js:1:48025
@user-script:1:4:75
forEach@[native code]
@user-script:1:4:45
   at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__16`1[[Microsoft.JSInterop.Infrastructure.IJSVoidResult, Microsoft.JSInterop, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
   at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference , String , Object[] )
   at SignaturePad.SignaturePad.Setup()
   at SignaturePad.SignaturePad.OnAfterRenderAsync(Boolean firstRender)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState ) | AddWebMobile.RazorPages.Index.BuildRenderTree

I am not able to tell under which circumstances this happens as I myself could not reproduce it so far, but got several error-reports from customers.
Thanks for your support

Hi!
Thanks for reaching out.
I'm not very familiar with MAUI since I avoid anything XAML related from Microsoft.
Are you able to reproduce the same behaviour in during Debug?

Unfortunately not as I still don't know why and under which circumstances this happens. Customers describe it to me as random which normally means that it as something to do with timing (e.g. something is evaluated before initialized).
I think it has nothing to do with maui in particular, just that Maui is the host system, but the BlazorWebView lets you use all the Maui goodness (mutiplatform etc.) just without xaml and you can use the same code for a native as as for the web-app.
I thought you might find a clue in the stacktrace why the "element" could be null when evaluating 'element.addEventListener'
Thank

Hi,
I have put some logs into my APP to find a possible cause. I see that it happens before any user-interaction.
What the APP does:
Navigate to a new Maui-Page which just shows a .razor file via BlazorWebView, where some edit-fields are placed along with your SignaturePad. All in a separate DxFormLayoutItem.
This is working fine only 99% of the time, but sometimes I get the Exception shared above
Maybe I initialize something wrong? This is what I do:
<style>
    .signature {
        border: 2px dotted #CCCCCC;
        border-radius: 15px;
        cursor: crosshair;
        display: block;
    }
</style>

<SignaturePad style="width: 100%"<EMAIL_ADDRESS>ValueChanged="ValueChanged"
Class="signature" Options="_options" />
@code {
    private SignaturePadOptions _options = new SignaturePadOptions
    {
            BackgroundColor = "rgb(255, 255, 255)",
    };

    byte[] _signature { get; set; } = Array.Empty<byte>();
    [Parameter]
    public EventCallback<string> SignatureChanged { get; set; }
    Task ValueChanged(byte[] signature)
    {
        var base64Source = System.Text.Encoding.UTF8.GetString(signature); // has the format "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACt..."
        var split = base64Source.Split(',');
        return SignatureChanged.InvokeAsync(split.Length != 2 ? "" : base64Source.Split(',')[1]);
    }
}

@johannes-steurer what happens when you use @bind-Value instead? Are you able to share this repository with me? I've never built a MAUI app in my life. I stricly stay away from anything that uses XAML.

Unfortunately I am not able to share the repo. It's acually quite big and complex and it would be really hard to find what you are looking for I guess.
What kind of information would you seek?
Why would you expect a difference in using @bind-value? Doesnt that just wire the ValueChanged event? And as I see the Value Parameter is initialized property. I would not see any difference also because the issue is before any user interaction.
Thanks for your support

Hi,
I may have found my Problem (not sure yet as I need customer feedback after a new release). It was caused because the Signature-Pad was shown for a very short time due to a bug. I gues this lead to some transient state which the SignaturePad did no like
I could trace it to this source:
export function setup(id, reference, options, image) {
    dotNetHelper = reference;
    var identifier = "signature-" + id;
    var element = document.getElementById(identifier); // <<<=== I think the Problem is here that the element was not found. Maybe you should return here and make a log if elemet is null

    element.addEventListener("sigpad.finish", function (e) {
        updateImage(id, e.detail)
        reference.invokeMethodAsync('SignatureDataChangedAsync');
    });

    var sigpad = Sigpad.getOrCreateInstance(element, JSON.parse(options));
    sigpad.setImage(image);
}

Does this make sense?


Improve HTTP driver URL validation error message

The error message when the JDBC connection string is not correct is weirdly phrased:
Caused by: java.sql.SQLException: JDBC url is not bad
    at org.neo4j.jdbc.http.HttpDriver.connect(HttpDriver.java:59)
    at java.sql.DriverManager.getConnection(DriverManager.java:664)
    at java.sql.DriverManager.getConnection(DriverManager.java:247)

Best would be to give a few examples of correct connection strings.

I agree in changing that message, however I don't like to put instructions in exceptions' messages.
For this reason I label this as a bug, if we decide to enhance that message I will mark it also as an "enhancement"

@glaggia-larus Actually there is an API design book that advocates adding the information to exception messages that helps users make the exception to go away.
Our drivers team adopted that for our drivers, so if we can do the same I'd be for it.

Perfect, I've added the enhancement label. I don't know if I will be able to look at this today, in case I'll do, I will assigne this to me.

Now the exception returns:
JDBC URL is not correct.
A valid URL format is: 'jdbc:neo4j:http://:'

glaggia-larus，Do you resolve this problem yet?

The issue was closed and the the exception now returns an example, as asked.


change the admin route for another

Can you change the admin route to a custom prestashop type route? Example: mysite.com/admin by mysite.com/admin1322112.
sorry if it's not the right way to ask my question

For now there is no way to achieving this by not changing to the core files.
Please take a look at the following file:
https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Admin/src/Http/routes.php#L4
Surely we will implement this is our future release.


Improve SEO!

Steps to reproduce:

Search in Google: free screen recorder tool
ScreenToGif.com is nowhere to be found...

Google free screen recorder tool gif and you get Rank 1!
As this is not a gereric screen recorder (record a video), but mainly for creating animated gif's (ok, it savess AVI too), it might be hard to score better for the generic search...
Any suggestions what to do?

Well, I edited the description tag to include the words "free screen recorder". Other than that, the only thing I can do is to create a rich card.

I understand it's hard and I'm glad to see all measures are taken to get a higher rank! Would be a shame if people would miss this! Cheers!

Now we just need to wait a bit. :)
The website usually benefit more from referencing (links to the website) than organic search (typing "screen recorder"), at least that's what google analytics tells me.


desktop top menu bar colours

The desktop (windows tested) version of Rstudio does not have a colour applied to the top bar, instead using the default dark rstudio theme.
Probably an oversite as I wrote and tested the theme on the sever version of rstudio only.

Might not be possible to change this one. Other well developed themes also fail to change that element on desktop, closing.


MultiJson::ParseError when running with parallel_tests

Hey, similar to #370 we are seeing a MultiJson::ParseError every once in a while, making our builds flaky.
The output looks like
[…]

Finished in 2 minutes 1.6 seconds (files took 7.21 seconds to load)
610 examples, 0 failures
.
Randomized with seed 5955

.......Coverage report generated for (6/8), (8/8), RSpec to /tmp/repo/coverage. 123 / 234 LOC (42.0%) covered.
Coverage report generated for (2/8), (6/8), (8/8), RSpec to /tmp/repo/coverage. 123 / 234 LOC (42.0%) covered.
Coverage report generated for (2/8), (3/8), (6/8), (8/8), RSpec to /tmp/repo/coverage. 123 / 234 LOC (42.0%) covered.
........Coverage report generated for (2/8), (3/8), (4/8), (6/8), (8/8), RSpec to /tmp/repo/coverage. 123 / 234 LOC (42.0%) covered.
...Coverage report generated for  to /tmp/repo/coverage. 8873 / 9455 LOC (93.84%) covered.
Coverage report generated for (2/8), (3/8), (4/8), (5/8), (6/8), (8/8), RSpec to /tmp/repo/coverage. 123 / 234 LOC (42.0%) covered.
...Coverage report generated for (2/8), (3/8), (4/8), (5/8), (6/8), (7/8), (8/8), RSpec to /tmp/repo/coverage. 123 / 234 LOC (42.0%) covered.
/tmp/gems/bundler/ruby/2.0.0/gems/multi_json-1.11.2/lib/multi_json/adapter.rb:19:in `load'/tmp/gems/bundler/ruby/2.0.0/gems/multi_json-1.11.2/lib/multi_json/adapter.rb:19:in `load': JSON::ParserError (MultiJson::ParseError)
	from /tmp/gems/bundler/ruby/2.0.0/gems/multi_json-1.11.2/lib/multi_json.rb:119:in `load'
	from /tmp/gems/bundler/ruby/2.0.0/gems/simplecov-0.9.0/lib/simplecov/json.rb:8:in `parse'
	from /tmp/gems/bundler/ruby/2.0.0/gems/simplecov-0.9.0/lib/simplecov/last_run.rb:10:in `read'
	from /tmp/gems/bundler/ruby/2.0.0/gems/simplecov-0.9.0/lib/simplecov/defaults.rb:66:in `block in <top (required)>'
: JSON::ParserError (MultiJson::ParseError)
	from /tmp/gems/bundler/ruby/2.0.0/gems/multi_json-1.11.2/lib/multi_json.rb:119:in `load'
	from /tmp/gems/bundler/ruby/2.0.0/gems/simplecov-0.9.0/lib/simplecov/json.rb:8:in `parse'
	from /tmp/gems/bundler/ruby/2.0.0/gems/simplecov-0.9.0/lib/simplecov/last_run.rb:10:in `read'
	from /tmp/gems/bundler/ruby/2.0.0/gems/simplecov-0.9.0/lib/simplecov/defaults.rb:66:in `block in <top (required)>'
..............................................

Finished in 2 minutes 13.2 seconds (files took 7.39 seconds to load)
123 examples, 0 failures

Randomized with seed 29299

Coverage report generated for (1/8), (2/8), (3/8), (4/8), (5/8), (6/8), (7/8), (8/8), RSpec to /tmp/repo/coverage. 123 / 234 LOC (42.0%) covered.
Tests Failed

I've anonymised the input, do ignore irrelevant coverage numbers.
The .last_run.json retrieved after the failure looks like
{
    "result": {
        "covered_percent": 97.28
    }
}

It looks like the coverage is compiled before all parallel runs have finished (do see the final dots after the stack trace), and I am assuming a concurrency issue.
We are running simplecov 0.9.0 together with parallel_tests 1.5.0. I'll upgrade to 0.10.0 and see if the failures are ongoing.

Thanks for the report. Do you have a merge_timeout set? do you set the SimpleCov.pid?  Do you set the command name?  Can you show any parts of your simplecov config (no need for groups or filters)?

We don't set merge_timeout or pid or command_name.
I've red through the README but from the documentation for parallel_tests it is unclear to me whether simplecov is able to correctly guess the instance of the parallel run or whether I have explicitly tell it. From the code it looks like the automagic feature exists.
Our config is as simple as
SimpleCov.start :rails do
  add_filter "/vendor/cache/"
  add_group "Events", "app/events/"
  ... more groups...
end

Upgrading to 0.10.0 does not seem to fix the issue.

We're running into similar problems when running with parallel_tests:
/var/lib/jenkins/.rbenv/versions/2.3.0/lib/ruby/2.3.0/json/common.rb:156:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
	from /var/lib/jenkins/.rbenv/versions/2.3.0/lib/ruby/2.3.0/json/common.rb:156:in `new'
	from /var/lib/jenkins/.rbenv/versions/2.3.0/lib/ruby/2.3.0/json/common.rb:156:in `parse'
	from /var/lib/jenkins/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/simplecov-0.11.2/lib/simplecov/last_run.rb:12:in `read'
	from /var/lib/jenkins/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/simplecov-0.11.2/lib/simplecov/defaults.rb:80:in `block in <top (required)>'

Any ideas?


I find a problem in your library!

When I click a menu item,then immediately left smooth before closed animation performed in the menu.
Then I can't left slide.

Okay, we'll try to reproduce this and fix.

@LittleAunt Can you please explain what do you mean "left slide"

slide from left @kotya341


fix: catch filenotfound exception for rollover

Summary
catch file not found exceptions for rollover
Checklist

[x] Does your PR title have the correct title format?
Does your PR have a breaking change?:  no

Question:
This issue is related to Too many file opens.
If we catch the exception here and do nothing. Will we lost those events?

@yuhao900914 The file not found exception happen when events already being processed and deleted by another thread. So we don't lose events. Not sure why too many file opens the exception seems can't find file by name. I'll clarify with user.

Hi team, just a follow up on this fix, @yuhao900914 , @qingzhuozhen , is there any concerns on this fix?

Rerun the test, still get the failure, @bohan-amplitude , could you pull the latest code from main? I didn't see the test failures on the recent PRs. Thanks!

Open https://github.com/amplitude/Amplitude-Kotlin/pull/103 and close this one.


Runtime error related to tensor size when running "analysis-gene_maps"

Hi @ludvb,
Thank you for inventing the tool for upscaling ST data.
I came across this error after training the model when running analysis "analysis-gene_maps". ERROR : RuntimeError: The size of tensor a (30598626) must match the size of tensor b (23687921) at non-singleton dimension 0
[2023-03-27 17:04:21,118] ℹ : Running analysis "analysis-gene_maps"
[2023-03-27 17:06:43,048] ⚠ WARNING : FutureWarning (/Users/fengyuzhou/myenv/lib/python3.8/site-packages/xfuse/data/dataset.py:114): iteritems is deprecated and will be removed in a future version. Use .items instead.
[2023-03-27 17:08:03,224] ⚠ WARNING : FutureWarning (/Users/fengyuzhou/myenv/lib/python3.8/site-packages/xfuse/data/dataset.py:114): iteritems is deprecated and will be removed in a future version. Use .items instead.
[2023-03-27 17:08:26,770] 🚨 ERROR : RuntimeError: The size of tensor a (30598626) must match the size of tensor b (23687921) at non-singleton dimension 0
Traceback (most recent call last):
  File "/Users/fengyuzhou/myenv/lib/python3.8/site-packages/xfuse/analyze/prediction.py", line 146, in _sample
    yield from _run_model(
  File "/Users/fengyuzhou/myenv/lib/python3.8/site-packages/xfuse/analyze/prediction.py", line 91, in _run_model
    sample = sample / torch.as_tensor(sizes).to(sample).unsqueeze(1)
RuntimeError: The size of tensor a (30598626) must match the size of tensor b (23687921) at non-singleton dimension 0

For the training part, since I am very new to deep learning models, I tried parameters with small values so that the model can be trained fast and I could get a sense of what the result looks like. I am not sure if the parameters used caused the problem. Here is my config file.
[xfuse]
# This section defines modeling options. It can usually be left as-is.
network_depth = 3
network_width = 8
gene_regex = "^(?!RPS|RPL|MT-).*" # Regex matching genes to include in the model. By default, exclude mitochondrial and ribosomal genes.
min_counts = 50 # Exclude all genes with fewer reads than this value.

[settings]
cache_data = true
data_workers = 8 # Number of worker processes for data loading. If set to zero, run data loading in main thread.

[expansion_strategy]
# This section contains configuration options for the metagene expansion strategy.
type = "DropAndSplit" # Available choices: Extra, DropAndSplit
purge_interval = 200 # Metagene purging interval (epochs)

[expansion_strategy.Extra]
num_metagenes = 4
anneal_to = 1
anneal_epochs = 1000

[expansion_strategy.DropAndSplit]
max_metagenes = 20

[optimization]
# This section defines options used during training. It may be necessary to decrease the batch or patch size if running out of memory during training.
batch = 1
batch_size = 4
epochs = 10
learning_rate = 0.0003
patch_size = 1000 # Size of training patches. Set to '-1' to use as large patches as possible.

[analyses]
# This section defines which analyses to run. Each analysis has its own subtable with configuration options. Remove the table to stop the analysis from being run.

[analyses.analysis-gene_maps]
# Constructs a map of imputed expression for each gene in the dataset.
type = "gene_maps"

[analyses.analysis-gene_maps.options]
gene_regex = ".*"
num_samples = 1
genes_per_batch = 10
predict_mean = true
normalize = false
mask_tissue = true
scale = 1.0
writer = "image"

[analyses.analysis-metagenes]
# Creates summary data of the metagenes
type = "metagenes"

[analyses.analysis-metagenes.options]
method = "pca"

[slides]
# This section defines the slides to use in the experiment. Covariates are specified in the "covariates" table. Slide-specific options can be specified in the "options" table.
[slides.section1]
data = "converted/data.h5"
[slides.section1.covariates]
section = 1

Could you please help with the issue? Thank you in advance!
Yuzhou

I am experiencing the same issue. From what I can gather, the parameter normalize_size is coerced to true here:
https://github.com/ludvb/xfuse/blob/c1f7eadac19ce6dcb0d7b148474f6d0c02b212f0/xfuse/analyze/gene_maps.py#L104-L110
Causing this conditional statement to pass, which is where the error occurs:
https://github.com/ludvb/xfuse/blob/c1f7eadac19ce6dcb0d7b148474f6d0c02b212f0/xfuse/analyze/prediction.py#L87-L91
I am also confused, as I also set the normalize parameter to false in my config file. I cannot figure out how to debug this, as I do not know what the variable idxs represents, and hence do not know what sizes represents either. Unfortunately I am working in an environment where I cannot interactively debug (a shared cluster). Please advise, and thank you for this powerful package @ludvb

Thank you for the reports! Is this error happening in all your experiments or only in a particular dataset? Unfortunately, I have not been able to reproduce it on my own data, so debugging this will be a bit tricky.
To provide some context, the sizes variable should capture the number of pixels in each predicted location, and the line where the error occurs is used to normalize out any size differences. When the scale option to the gene_maps analysis is set to 1.0 (the default), each location is the size of one pixel. Therefore, sizes should be a vector of ones, and normalization is essentially a noop in this case. Thus, as a quickfix, it should be safe to simply delete this line without affecting the analysis.
If I recollect correctly, the reason why we force size normalization in the gene maps analysis is that when 1/scale is fractional, the discretized locations may not be of the same size. To produce gene map images that don't have any weird banding-like artifacts, it is then necessary to normalize out those differences.

@AdrianaLecourieux
As @ludvb suggested, deleting the line that caused the error helped with the issue.


Enh #14254:add an option to specify whether validator can run on slav…

Q
A

Is bugfix?
no

New feature?
yes

Breaks BC?
yes

Tests pass?
yes

Fixed issues
#14254

can't we just always do it on the master?

@cebe I don't know, maybe someone want to use slave connections if they have no lag problems.

There are always lag problems. They're unavoidable.

@samdark even with lag, the slave db still can be used for validation, that depends the application's concrete situation.

Sure.

@rossoneri seems tests are broken with the changes in PR. Would you please take a look?

@samdark solved!

Seems to fail tests now: https://travis-ci.org/yiisoft/yii2/jobs/338387216

@samdark tests passed now!

Yes, additional tests that check if master is preferred won't hurt. Any idea on how to test that efficiently, @rob006 ?

@samdark Use invalid config for slave connection and run validation? If it pass, it means that master was used.

Sounds good.

Finished and merged. Thank you for contribution.


Saving a keras.applications-based model takes forever

System information

Have I written custom code (as opposed to using example directory):  yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):  U16.04
TensorFlow backend (yes / no):  yes
TensorFlow version:  1.13
Keras version:  2.2
Python version:  3.6
CUDA/cuDNN version:  10.1
GPU model and memory:  Tesla K80

Describe the current behavior
After loading a VGG16 with ImageNet weights, adding some layers and then training the model a bit, using
model.save('file.h5')

takes approx. 2.5 seconds, no issues, totally works
Now, when loading an InceptionV3 or a NasNet or a ResNet50 or ANYTHING ELSE apart from a VGGxx, with ImageNet weights, then adding some layers and training the model a bit, using
model.save('file.h5')

literally takes hours (if not days).
The file is slowly building, by checking with the linux command line, at around 100kb/minute. It's been 30 minutes now and the files is barely bigger than 2Mb.
Code to reproduce the issue
# VGG16
model_ = keras.applications.vgg16.VGG16(weights='imagenet', include_top=False)
x = GlobalAveragePooling()(model_.output)
x = Dense(16, activation='softmax')(x)
my_model = Model(inputs=my_model_.input, outputs=x)
my_model.fit(some_data)
my_model.save('file.h5') # takes 2.5 seconds on average

# NASNetMobile
model_ = keras.applications.nasnet.NASNetMobile(weights='imagenet', include_top=False)
x = GlobalAveragePooling()(model_.output)
x = Dense(16, activation='softmax')(x)
my_model = Model(inputs=my_model_.input, outputs=x)
my_model.fit(some_data)
my_model.save('file.h5') # takes YEARS

# InceptionV3
model_ = keras.applications.inception_v3.InceptionV3(weights='imagenet', include_top=False)
x = GlobalAveragePooling()(model_.output)
x = Dense(16, activation='softmax')(x)
my_model = Model(inputs=my_model_.input, outputs=x)
my_model.fit(some_data)
my_model.save('file.h5') # takes YEARS

Describe the expected behavior
Using model.save() should not take that long. I don't understand why it works fine with VGG16/VGG19-based models and it takes ages for any other pre-trained model from keras.applications.

Update: when a model is finally saved, from one of the longer options above, then re-loading the model from the hdf5 file also takes ages.
my_model = load_model('file.h5') # takes ages as well

Doing the same for a VGG-xx takes a few seconds at most.

If anyone is interested, I asked a question on StackOverflow about this issue.
https://stackoverflow.com/questions/60581664/saving-and-loading-some-models-takes-a-very-long-time-in-keras

@JivanRoquet We see that you are using old version of tensorflow which is not actively supported now, please verify on 2.x and open a new issue in case you face any errors, hence moving this to closed status.Thanks!


GET User Session ID Token

Is there an API to get a User Session ID for this 24 hour window?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 35798232-ef3d-1a36-5718-9411afa975fa
Version Independent ID: 36e21bd2-c349-640c-52a9-7b4172f3958e
Content: Security enhancements: User session and access management with Dynamics 365 Customer Engagement
Content Source: ce/admin/user-session-management.md
Service: crm-online
GitHub Login: @jimholtz
Microsoft Alias: jimholtz

I have a scenario where I want to call my service from Dynamics 365, but they don’t want the user to authenticate again (the user is in Azure AD and will be a user in both Dynamics and my service). In order for that call to be valid, I would send an identifier (user id/ email/ Azure AD object id) that is static and a token or sessionid that is dynamic but can be validated against.
How would you all approach developing a mechanism like this? Any reference architecture/ best practice to use here as I run into this scenario a lot?


Examples on https://phaser.io vs. http://phaser.io

I don't know if this is the right place to report phaser.io "bugs," but this seemed like a good enough spot.
I recently have been rubber duck coding with phaser to try it out. I love it. I was confused about the 2.3.0 examples on the phaser.io website. It seemed only some of them work, sometimes.
I think what's going on is that whenever I've gone to the plain phaser.io website, I'm getting there over HTTPS, which is fine. But I'm doing it over Chrome, and Chrome seems to be blocking assets which are loaded (apparently?) over HTTP.
Example, the following shows the plain html page, but the embedded example doesn't load:
https://phaser.io/examples/v2/virtualjoystick/buttons
With an error in the console:

Mixed Content: The page at 'https://phaser.io/examples/v2/virtualjoystick/buttons' was loaded over HTTPS, but requested an insecure resource 'http://examples.phaser.io/embed.php?f=virtualjoystick/buttons.js&v=2.3.1.virtual-joystick'. This request has been blocked; the content must be served over HTTPS.

Whereas the following is fine:
http://phaser.io/examples/v2/virtualjoystick/buttons
The fix seems to be:

redirect links to examples back to regular http
move examples.phaser.io to https

Thank you for the great library. I'm having lots of fun with it.

I should have made clear: the examples are great and work just fine. This seems to be merely a browser security thing.

https://twitter.com/TooOldTooCold/status/592681042923880450

That explains the "how" I got the HTTPS sites: I googled my way there. I had forgotten they were now preferring that in the results. Thanks.

Yeah, thanks Google. I'll try my best to fix it this week, but we're snowed under with client work at the moment.

When someone googles "phaser", then goes from https://phaser.io/ to https://phaser.io/examples , the examples currently don't work.
Perhaps you could, as a (potentially quick) temporary measure, redirect the incoming https URLs to the existing and valid http URLs?
(Until the real fix, which might be going https for all URLs).

(Just a small note, perhaps it's helpful:)
Perhaps it would be an option to have a bit of JS which, when the page URL starts with "https", changes the iframe src value to also start with "https".
But when I try to load the iframed example page over https I get this:
https://examples.phaser.io/embed.php?f=virtualjoystick/arcade+joystick.js&v=2.3.1.virtual-joystick
"The certificate is only valid for the following names: www.phaser.io, phaser.io, photonstorm.com, www.photonstorm.com "

This will be fixed shortly when we release the new examples runner.

I wanted to +1 this as well. Googled phaser examples and landed on the https page. I'm sure this is happening to most people. Wouldn't it be super simple to just replace the iframe src from:
http://examples.phaser.io/embed.php?f=tilemaps/csv+map+with+p2.js

to
//examples.phaser.io/embed.php?f=tilemaps/csv+map+with+p2.js

No because the examples domain doesn't have SSL on it.

gotcha. well, hope it's fixed soon. I imagine it could potentially be hurting the popularity of the framework. it's one of the best/easiest ones I've found so far. Thanks and good luck.

Actually it's gone on long enough, so I've just thrown up a quick fix for it until the Examples area is redone properly to not rely on the sub-domain any more. Should work fine now from ssl or not.

:+1: :+1: :+1:


Build and test code snippets

We should organize some testing for code snippets. Webpack has a plugin the allows to run arbitrary shell commands (webpack-shell-plugin), I suggest we'll use it with a C++-aware build system. For maximum convenience for the community I suggest CMake.
So, this is the layout I propose:
/
└── lessons
    ├── CMakeLists.txt
    ├── x.y-TitleXY
    │   ├── CMakeLists.txt
    │   └── code.cpp
    └── a.b-TitleAB
        ├── CMakeLists.txt
        └── code.cpp

That way each lesson's directory encapsulates required test (we should test what the compiled snippet returns/outputs).

Structure looks good to me!

@grisumbras For simplicity sake wouldn't it be fine to have on CMakeLists that uses recursive glob on cpp files?

It would be less files, but not necessarily simpler: different files may require different tests, we may use several source files for some lessons.

I agree with @grisumbras, there will be later lessons where there might be multiple source files.
Oh, @grisumbras, where would you define the actual test? In CMakeLists.txt? How would we specify that we expect a return value of 0 and foo printed to stdout?

There is a test property in CMake that allows matching test output against a regexp. If checking status is necessary, then we'll have to write a wrapping script (possibly in CMake language) that runs the program and checks its output.


Ngram function doesn't working

please give us a elaborated, information steps to work in mariadb on ngram in Innodb .

ngram function splits but doesn't gives an exact result in a sorted order
link :https://qiita.com/ArimaRyunosuke/items/d2b3b94f223cb83c463d#まとめ

above link is ngram function and process ,but i cant understand ..Help me...!
because i want implement these in mariadb galera swarm

Hi viki-v, this is not a place for general MySQL /MariaDb questions, only issues related specifically to the Docker files in this repo.


Using JFoenix in Intellij-idea-ce

I would like to use JFoenix in Intellij-Idea-CE as a library and be able to export it to a JAR. How do I add to Intellij-Idea? I noticed the README.md had information about adding a dependancy using Maven, can it be done with Gradle? Do I need to precompile it before I add it as a dependancy?

The explanation in the README.md, even if the title is Maven, are for
Gradle.
2016-10-18 21:22 GMT+02:00 Muhammad Umar Bari<EMAIL_ADDRESS>
I would like to use JFoenix in Intellij-Idea-CE as a library and be able
to export it to a JAR. How do I add to Intellij-Idea? I noticed the
README.md had information about adding a dependancy using Maven, can it be
done with Gradle? Do I need to precompile it before I add it as a
dependancy?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jfoenixadmin/JFoenix/issues/178, or mute the thread
https://github.com/notifications/unsubscribe-auth/AABvV8LwlPmiTztpPTjfqgZ6IEQP1n4_ks5q1RyCgaJpZM4KaMBZ
.

the README.md contains information about using JFoenix from Maven central in Gradle Project.
Note that JFoenix already using Gradle as a build tool.


Issue #588 Add a constant for prompt parameter values

@lovemaths,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@javiercn what say you?

@lovemaths I guess @javiercn is fine with this. :shipit:

Yeah :shipit:  and thanks!


Feature/add git stash pop and git stash drop

This adds options to run git stash pop and git stash drop to allow stashes to be removed.

Umm, guys, what's happened here?

Bump