Web - Assign Task - The padding of the placeholder in different search fields is inconsistent.

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Access the Staging environment and locate the search icon next to the user avatar.
Input a name or number in the corresponding placeholder.
Observe the padding of the input field along with the entered text.
Proceed by clicking the plus sign.
Select the "Assign Task" option.
Enter a title and click on "Next".
Navigate to the "Share somewhere" fields.
Input a name or number in the respective placeholder.
Observe the padding of the fields for Name, email, or phone number.

Expected Result:
The padding of the placeholders should be consistent across all pages.
Actual Result:
The padding of the placeholders is inconsistent.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.35-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/6301fd57-6329-4856-a8f3-48628d7ef244
https://github.com/Expensify/App/assets/93399543/293b1f3c-d2f3-49af-98cd-f5bc2d371dd8
Expensify/Expensify Issue URL:
Issue reported by: @usmantariq96
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688200232292059
View all open jobs on GitHub

I agree that this is a dupe of https://github.com/Expensify/App/issues/22045, which was reported earlier in Slack. Closing this


Rework dependencies

Summary
I found that some dependencies are not being used, some have incorrect types (should be in dependencies section or devDependencies).

Test plan

Codecov Report

Merging #12190 (596e94f) into main (523fa7e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main   #12190   +/-   ##
=======================================
  Coverage   67.71%   67.71%
=======================================
  Files         328      328
  Lines       16993    16993
  Branches     4818     4818
=======================================
  Hits        11507    11507
  Misses       5453     5453
  Partials       33       33

Impacted Files
Coverage Δ

packages/jest-runtime/src/index.ts
56.74% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 523fa7e...596e94f. Read the comment docs.


413 Request Entity Too Large" Shopify blocking requests over 3MB?

Issue summary
Shopify is blocking any requests over 3 MB to my server.
Write a short description of the issue here ↓
Whenever I post mulipart/form-data over 3 MB shopify blocks my request.
It looks like nginx is blocking my request which is weird since I'm not using nginx anywhere in my application. The request is stopped before it reaches my Koa backend.
Here is a photo of the response from the server:
response (2)
Expected behavior
What do you think should happen?
Receive my request on the backend
Actual behavior
What actually happens?
I receive an error:
Error: Request failed with status code 413
Here is the response from the server:
res
Steps to reproduce the problem
Append images over 3 MB to multipart/form-data
Post request to server using axios
Reduced test case
The best way to get your bug fixed is to provide a reduced test case.
Checklist
[ X ] I have described this issue in a way that is actionable (if possible)

Hey @noahbaron91, thanks for your question - as far as I know, Shopify does not limit POSTs to 1MB, but if your app is running on nginx, you may be running into its default limit: http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
Unfortunately there's not much else I can think of that might be causing this, but it doesn't look like this particular issue is happening on Shopify's side. I'll go ahead and close it, but please feel free to reopen / report another issue if you run into any problems on our side of things.

I am not too sure I understand correctly @lamark-Alba .
Couple of questions for me:

What is the shopify end point you are trying to hit ? Or where does the shopify call come from?
On which method of the library do you see this error occurring?
Can you also add the stacktrace?
You're saying you're not receiving the request on your backend, where is your backend located ? locally on your dev machine? Is it deployed on a cloud provider?


support dubbo with tengine's module

Dubbo has its own transport protocol and needs to be done on the tcp protocol if it is to be supported.

APISIX can support dubbo with tengine's module : http://tengine.taobao.org/document_cn/ngx_http_dubbo_module_cn.html

I am doing this


could you please list the papers that explain the loss function

The loss function in the part  Augmented Alternating Least Squares (Augmented-ALS) is quite puzzle to me, would you mind attaching the links of papers that related to this loss function?
more specifically, I wish to know this part:

why can we add the auG to the latent factor vector? As auG is about the user information while xu is to the User-Item matrix
Thanks in advance!

hi,, this is one way of augmenting the latent factor with a projection of the user/item's features. A similar approach was used in
https://arxiv.org/abs/1609.02116
Hope this helps clarify the loss function


CTD on Neutral Clan Tier Up

Native Bug:
When the 'Neutral' clan tiers up (I think its only possible by tournament renown).
This triggers the following rough chain:
OnClanTierChanged event triggers
HeroSpawnCampaignBehavior#OnClanTierIncreased is triggered
Then follwoing the chain down, this attempts to spawn a party at
However neutral clan has no DefaultPartyTemplate (null) leading to NPE and crash.

Not sure what the best approach to fix this is, I was thinking just a Prefix on 'OnClanTierIncreased' and returning false if clan == CampaignData.NeutralFaction.
Since that method already does an early return if its the PlayerClan.


Error "Unable to connect to terminology server"

When trying to run the validator, the request fails with the following response, for any content:

"Unable to connect to terminology server. Use parameter '-tx n/a' to run without using terminology services to validate LOINC, SNOMED, ICD-X etc. Error = Error fetching the server's capability statement: Error reading Http Response: Error parsing JSON source: Unexpected char '<' in json stream at Line 1 (path=[null])"

This results in this visible error message.

Cannot parse entered text as valid JSON/XML.

For reference, I tried FHIR examples along with these very basic contents.

{}

and

{  "resourceType": "Bundle",  "id": "xyz",  "type": "transaction",  "entry": [  ]}

Works again.

Can you please tell me on how to run the 'org.hl7.fhir.validator-wrapper'? I'm currently just running as mentioned in the README i.e ./gradlew build and ./gradlew run . How do I pass the -tx n/a args ?


continuous webjobs logs are not persisted to application logs as per site settings

Hello,
According to the documentation here:
https://github.com/projectkudu/kudu/wiki/Web-jobs#logging
"For continuous WebJobs - Console.Out and Console.Error are routed to the "application logs", they will show up as file, blob or table storage depends on your configuration of the application logs (similar to your Website)."
If I use the command
$ azure site log tail sitename

I am able to see the logs as they are currently running.  However these logs are not written to D:\home\LogFiles\Application
The only logs I am able to retrieve for a continuous webjob is the first 100 lines per execution at
D:\home\data\jobs\continuous\jobname\job_log.txt
Because this file stops logging after 100 lines this is the only log I am able to retrieve for my continuous webjob:
[10/13/2015 19:49:08 > 13a748: WARN] Reached maximum allowed output lines for this run, to see all of the job's logs you can enable website application diagnostics
[10/13/2015 20:09:53 > 13a748: SYS INFO] WebJob is still running
[10/14/2015 07:33:10 > 13a748: SYS ERR ] Job failed due to exit code 1

right before 07:33:10 the application would have emitted a stack trace to the console so that I could see the reason for the crash.  However because this log is truncated I am unable to tell why it crashed from this log.
The main problem I am having is that the logs for this webjob should be available in D:\home\LogFiles\Application as per the documentation.  Note that I do have diagnostic logs turned on in my webapp and they are

Steps to reproduce:
-1) Create a webapp and turn on diagnostic logs as per above image
-2) Add a continuous webjob to D:\home\site\wwwroot\App_Data\jobs\continuous\testjob here is a test script I used:
app.js:
var startDate = new Date();
var workerId = startDate.getTime();
var index = 0;
var pid = process.pid;

console.log('started workerid=', workerId, 'pid=', pid);

function run() {
	index++;
    console.log('log workerid =', workerId, 'pid=', pid, 'index=', index, 'start=', startDate.toISOString(), 'now=', (new Date()).toISOString());
    setTimeout(function(){
        run();
    }, 60000);
}

run();

-3) use the azure cli to see that the output of the continuous job can be streamed:
$ azure site log tail sitename
...
2015-10-15T20:14:32  PID[2868] Information log workerid =<PHONE_NUMBER>697 pid= 3752 index= 1 start= 2015-10-15T20:14:32.697Z now= 2015-10-15T20:14:32.712Z
2015-10-15T20:15:32  PID[2868] Information log workerid =<PHONE_NUMBER>697 pid= 3752 index= 2 start= 2015-10-15T20:14:32.697Z now= 2015-10-15T20:15:32.724Z
2015-10-15T20:16:32  PID[2868] Information log workerid =<PHONE_NUMBER>697 pid= 3752 index= 3 start= 2015-10-15T20:14:32.697Z now= 2015-10-15T20:16:32.724Z

Note that the above output tells me that the logs are being output properly, however they are not being persisted in the application logs D:\home\LogFiles\Application
-4) look in the application logs to try to find the logs by looking at the contents of D:\home\LogFiles\Application>
Expected results:
As per the documentation at https://github.com/projectkudu/kudu/wiki/Web-jobs#logging I would expect to see the non-truncated logs in the application logs.
Actual results:
Only truncated logs are available at D:\home\data\jobs\continuous\jobname\job_log.txt which prevents us from diagnosing long running continuous job crashes because the logs do not extend past 100 lines.
Other notes:
azure-cli seems to be able to tail off the log files from  but I am unsure where these logs are available on the filesystem if at all.
I believe this is a bug however it could be that I just am unsure of the location of where these log files are stored.
Also note:
to test to see if this is just a problem with logging node.js specific jobs I created a bash script which also does not seem to log to the application logs.  Here is the bash script I tested:
run.sh
START=`date +"%Y-%m-%dT%H:%M:%SZ"`
WORKER=`date +%s`
COUNT=0
while true
do
  COUNT=$((COUNT+1))
  echo worker id=$WORKER index=$COUNT start=$START now=`date +"%Y-%m-%dT%H:%M:%SZ"`
  sleep 1m
done

Any help is appreciated as I am having a difficult time solving crashes that occur late at night because I am unable to log exceptions.
Thank you,
-Adam

Below is probably an unrelated issue but I was just doing more testing and I created a web app from scratch and now every time the webjob logs the output looks like this in 'azure site log tail sitename' however it might cause a problem with following reproduction steps so i wanted to make note of it:
2015-10-15T22:13:45
System.FormatException: Off is not a valid value for TraceEventType. ---> System.ArgumentException: Requested value 'Off' was not found.
   at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   --- End of inner exception stack trace ---
   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.AssignToPropertyOrField(Object propertyValue, Object o, String memberName, JavaScriptSerializer serializer, Boolean throwOnError)
   at System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
   at Microsoft.WindowsAzure.WebSites.Diagnostics.BaseTraceListener.ReadConfigFile()

2015-10-15T22:13:46
System.FormatException: Off is not a valid value for TraceEventType. ---> System.ArgumentException: Requested value 'Off' was not found.
   at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   --- End of inner exception stack trace ---
   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.AssignToPropertyOrField(Object propertyValue, Object o, String memberName, JavaScriptSerializer serializer, Boolean throwOnError)
   at System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
   at Microsoft.WindowsAzure.WebSites.Diagnostics.BaseTraceListener.ReadConfigFile()

2015-10-15T22:13:46
System.FormatException: Off is not a valid value for TraceEventType. ---> System.ArgumentException: Requested value 'Off' was not found.
   at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   --- End of inner exception stack trace ---
   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.AssignToPropertyOrField(Object propertyValue, Object o, String memberName, JavaScriptSerializer serializer, Boolean throwOnError)
   at System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
   at Microsoft.WindowsAzure.WebSites.Diagnostics.BaseTraceListener.ReadConfigFile()

The webjob is the same app.js as above
Web job Continuous as per above
deployment method, created an empty webapp added a job directory using the debug console ie) mkdir site\wwwroot\App_Data\jobs\continuous\jobname then uploaded app.js into the directory
run azure site log tail sitename

Expected results: see logs (also see logs in LogFiles\Application as per the OP
Actual results: for log line the above stack traces are emitted (once per minute as per the script)

What's the content of your D:\home\site\diagnostics\settings.json? Use Kudu Console to find it.

{
"AzureDriveEnabled": true,
"AzureDriveTraceLevel": "Information"
}

OHH... in the one that's completely blowing up it is this:
{
"AzureDriveEnabled": true,
"AzureDriveTraceLevel": "Information",
"AzureTableEnabled": false,
"AzureTableTraceLevel": "Off",
"AzureBlobEnabled": false,
"AzureBlobTraceLevel": "Off"
}

That's weird, it should never be set to Off. Seems there is a bug somewhere. Do you remember the precise steps that led to it being in that state?
For now, edit the file and change "Off"  to false.

okay... yeah i can try again.. definitely just typical interaction with the portal UI.
-create a new webapp
-install my testing webjob manually as per above

enabe logging by clicking the button on the portal UI and setting the drop down to information and hitting save

Sorry, not quite: change "Off" to "Error".
But we do really want to know how it got in that state (another case here)

Okay I'll document my steps and see if i I can repro

Are you using https://manage.windowsazure.com/ or https://portal.azure.com/? And are you uploading the webjob via portal zip file or other deployment?

I'm using portal and I am manually creating the file (in this instance) as per instructions above:
mkdir site\wwwroot\App_Data\jobs\continuous\jobname then uploaded app.js into the directory
I'm just trying to get to the bottom of not getting any persistent logs, this exception on setting the diagnostic settings was an unrelated side issue.

I just tried again twice and it didn't repo but one thing to note is that might be a clue:
{
  "AzureDriveEnabled": true,
  "AzureDriveTraceLevel": "Information",
  "AzureTableEnabled": false,
  "AzureTableTraceLevel": "Off",
  "AzureBlobEnabled": false,
  "AzureBlobTraceLevel": "Off"
}

The problem case is prettyfied: has new line characters in it and has an indent
For example now I tried to reproduce it twice and I got this as the result:
{"AzureDriveEnabled":true,"AzureDriveTraceLevel":"Information","AzureTableEnabled":false,"AzureTableTraceLevel":"Error","AzureBlobEnabled":false,"AzureBlobTraceLevel":"Error"}
Notice how it's unformated: no newlines, no indents.
Initially I definitely didn't do anything "weird" to cause the problem case to happen.
I was just setting up a brand new site for testing... followed the exact same steps as I had created the site only a minute before posting the update to my issue.  Sorry I can't really thing of anything specific I did differently.

Note there are 3 sources for updating this file: portal (kudu api), the trace listener (.net) and interceptor (node.js).

I believe the steps I took were beginning the initialization of the node.js webjob then trying to turn on the diagnostic logging,... one additional step I might have taken was connecting first to the log streaming service... 'azure site log tail sitename' before turning on diagnostic logging, after installing the webjob

actually yes! that was the reproduction.. the above steps with one change:

create webapp
connect to log streaming service
add webjob
turn on logging

Ah yes, it does seem related to log streaming, thanks! We are investigating further.

Another weird side effect of causing this bug (it has happened to me twice today now) is that after I caused this bug my .azure directory becomes 'corrupted' some how...
$ azure site log tail adam-log-test
info:    Executing command site log tail
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>401 - Unauthorized: Access is denied due to invalid credentials.</title>

Server Error

<fieldset>

401 - Unauthorized: Access is denied due to invalid credentials.

You do not have permission to view this directory or page using the credentials that you supplied.

 </fieldset>

error:   Error
info:    Error information has been recorded to C:\Users\Adam\.azure\azure.err
error:   site log tail command failed

Note that I've seen mention of these access denied errors on azure forums on msdn but I can't find this second... but also this starts happening:
https://github.com/Azure/azure-xplat-cli/issues/1646
twice today i've had to delete my .azure directory because of this... so I just wanted to make note that these bugs also might be related to what just happenned.
So I think something to do with log streaming possible causes these two additional issues too

@davidebbo no problem... any ideas on my original issue?  I can't get logs passed 100 lines and it's killing me debugging these long running jobs as it dies over night and I am unable to diagnose without logs

@mathewc may know more about that one. But tell you what: we've so taken over this issue with a different topic that I think it would be best to rename this issue, and re-open your original one as a new issue. This will avoid confusion when reading through it.

2015-10-15T22:13:45
System.FormatException: Off is not a valid value for TraceEventType. ---> System.ArgumentException: Requested value 'Off' was not found.
   at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   --- End of inner exception stack trace ---

As for the above issue, we found out the bug.  It is a combination of using log tail (aka. log streaming) feature and new preview portal.   We are working toward fixing that.
Good news is there is a simple work around.

vCurrent portal
browse to your site's configuration tab
turn on (or off) application logging and save.

This should correct it.  Let us know otherwise.


Playground can't build on npm@9

I can't work out why...
$ npm install -g npm@9

$ npm run build

><EMAIL_ADDRESS>build
> react-scripts build

Creating an optimized production build...
Failed to compile.

Module not found: Error: Can't resolve 'prql-js/dist/bundler' in '/Users/maximilian/workspace/prql/playground/src/workbench'

I'll lock the npm version at 8 for the moment in https://github.com/prql/prql/pull/1293, as I'm probably not being that productive attempting to fix it.

Seems to be related to https://github.com/npm/cli/issues/5965. The default value of install-links is set to true in npm@9.
Install the ../prql-js with install-links as false.
npm i ../prql-js --install-links=false
npm run build

Great find @Shuozeli !


Issues with audio renditions

I am running 6.3 locally using ACS Commons 3.17, logged in as the default 'admin' user.
I have also included the workflow process step as outlined here.
When adding an MP3 audio file into the DAM, I receive the following errors:
24.07.2018 15:40:39.803 *ERROR* [JobHandler: /etc/workflow/instances/server0/2018-07-24_1/update_asset_24:/content/dam/audio/TESTAUDIO-3.mp3/jcr:content/renditions/original] com.day.cq.dam.core.impl.AssetIDProvider Session doesn't have appropriate privileges

24.07.2018 15:40:41.332 *ERROR* [JobHandler: /etc/workflow/instances/server0/2018-07-24_1/update_asset_24:/content/dam/audio/TESTAUDIO-3.mp3/jcr:content/renditions/original] com.day.cq.workflow.compatibility.CQWorkflowProcessRunner Process execution resulted in an error: null

24.07.2018 15:40:41.333 *ERROR* [JobHandler: /etc/workflow/instances/server0/2018-07-24_1/update_asset_24:/content/dam/audio/TESTAUDIO-3.mp3/jcr:content/renditions/original] com.adobe.granite.workflow.core.job.JobHandler Error executing workflow step

Any ideas?

@gvilcins If you remove the ACS Commons WF step does the WF pass successfully? Is there any other error.log data?
This WF Process is using the security context provided by the WorkflowSession ..


cmd/compile: evaluate the need for shortcircuit

For Go1.8

What version of Go are you using (go version)?
go version devel +097e2c0 Mon May 2 21:02:54 2016 +0000 linux/amd64

What operating system and processor architecture are you using (go env)?
linux/amd64

What did you do?
./make.bash & check the size of binaries in pkg/tools/linux_amd64

What did you expect to see?

What did you see instead?

Shortcircuit pass increases the size of the binary by approx 0.04%, but this is not consistent.
with shortcircuit
3244469 addr2line
4909014 api
3982946 asm
3988940 cgo
10647306 compile
4914435 cover
3424419 dist
3825731 doc
2916445 fix
4070497 link
3207010 nm
3532598 objdump
1996235 pack
9308102 pprof
8435425 trace
6246651 vet
2879901 yacc
81530124 total
without shortcircuit
3236277 addr2line
4904918 api
3978850 asm
3993036 cgo   // higher
10638988 compile
4906243 cover
3424419 dist
3825731 doc
2916445 fix
4070497 link
3207010 nm
3536694 objdump   // higher
1996235 pack
9304006 pprof
8435425 trace
6242555 vet
2875805 yacc
81493134 total

I originally added shortcircuit to fix some bad generation of && and ||.  If we're able to generate reasonable code for those ops without using shortcircuit, then we should get rid of it.


macOS: Login web view window should be selected / visible automatically when it appears

Reported by @conectado on Slack:
idk if there's something we can do about it but there's a usability issue in macos I've encountered quite a bit:
If I'm using safari to browse and I try to log in to Firezone, the login webview doesn't pop up, instead, just what I'm browsing pops up and then I need to juggle the windows to access the login webview

Weirdly, I've now started experience this bug. The auth window refused to show. My Chrome instance would gain focus, but the new window failed to appear. When I quit Chrome with Cmd+Q, it suddenly showed all of the pending window.

See this comment for a video: https://github.com/firezone/firezone/issues/2647#issuecomment-1883995540


Freeze RSSVE

This mod's (locked) forum thread says:

I. CKAN installation
Installation of RSSVE via CKAN is not currently supported.

CKAN is not currently supported due to various issues with the pre-release installation procedures.

All of its releases are marked as pre-releases, and the one that we do have indexed has been deleted. This looks like an attempt to prevent indexing.
Now it's frozen.

As of 29 days ago they've got a non-pre-release, and another 17 days ago.
https://github.com/KSP-RO/RSSVE/releases

Hi @Theysen, do you happen to remember what led to those CKAN disclaimers being added for RSSVE on the forum? It may be something we can fix, but I'm not sure what "pre-release installation procedures" means there.

Hi,
so I've been wanting to get it up on CKAN again since it literally only needs EVE and acts as a config provider and whatever scatterer is marked compatible with the player's game version above 1.8.
The only two recommendations are DOE and Planetshine and should be ticked as "install" automatically.
I've been looking into it lately and trying to restructure the .meta but work got in my way.

Sounds good, submitted KSP-CKAN/NetKAN#8595 to start doing that, then noticed the version file is very out of date and submitted KSP-RO/RSSVE#18 for that.


Element out of view because of negative left margin

I am working a new project with singularity (1.6.2) as grid framework. In the past (with older versions 1.5.1) it always worked great but now i have a strange issue:
When i span a element starting at column 1 the element gets a negative left margin en so goes out of view:
width: 83.19328%;
float: left;
margin-right: -100%;
margin-left: -4.20168%;
clear: none;

The grid is configured as a 24 column grid with 1/4 gutter and is set to isolation output.
Am i missing something in my configuration? or is for example compass still a dependency?
I load the framework as bower asset via composer. So no ruby etc is used.

Ok, never mind, don' start a span at 0....


Cutting a new release

Would be nice to cut a new release with the rates API. However, it still won't install on 3.5 with bitcoinX.
Do you think it's doable to move bip32 out to its own repository? Another possibility is fixing 3.5 support in bitcoinX, but it seems to depend on electrumSV which also uses f-strings, so seems like quite the thing to chase down.
I tried moving my stuff over to Debian Buster which has Python 3.7, but that was a whole can of worms. Made some headway, but think I want to wait until the next Saltstack release and ideally a minor release or two on 10.

Exploring the 0.7.1 tree, it looks like there was no requirement for bitcoinX but you had bip32? Was that a mistake?
In this case, a release would break Python 3.5 systems but 0.7.1 will install just fine.
By the way, in requirements.txt -e . means refer to setup.py and you can list all the dependencies in there.

It shouldn't take too much for me to get all of this done. Would like to release with updated documentation ideally because a fair bit has changed but I can put in a big effort this week!
I want to get all of these things done asap anyway. Will feel good to have it done. 😁
Let's aim to do a new release by the end of the weekend. I'll keep you posted!

Ok, sounds great! Thank you!!

0.8.0 was just released and is now available on PyPi
Release Notes: https://github.com/AustEcon/bitsv/releases/tag/0.8.0


percentChanges() only emitting the first value 0, and the last 100, no intermediate values

Version info

Angular:
Firebase:
AngularFire:
Other (e.g. Ionic/Cordova, Node, browser, operating system):
How to reproduce these conditions
Failing test unit, Plunkr, or JSFiddle demonstrating the problem

Steps to set up and reproduce

Sample data and security rules
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
Debug output
** Errors in the JavaScript console **
** Output from firebase.database().enableLogging(true); **
** Screenshots **
Expected behavior

Actual behavior

Hi @beautifulboy11! I need a lot more information before providing help. Could you provide a brief sample of code? A repo on stackblitz? How large is your file? Some small files can be uploaded in one shot. However, AngularFire is a wrapper around the JS SDK. File your issue here if it persists and try to include the information listed above. Thanks!


A witness table is dead if it is not used outside the module (private/internal) and it’s not used by any instruction or other witness table in the module.
Also the meta-type of the conforming type must not escape, because it’s possible to test any opaque type if it conforms to a protocol.
This gives about 2.5% code size reduction on stdlib.
Also some benchmarks see code size reductions, but this depends on the benchmark. For most benchmarks (especially our micro-benchmarks, where we don't define any types) there is no improvement. For some larger benchmarks there are significant size reductions. On average it's 2.4%.

@swift-ci Please test

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - a7782567e8a28829dc4b6689d0912809a457d857
Test requested by - @eeckstein

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - a7782567e8a28829dc4b6689d0912809a457d857
Test requested by - @eeckstein

@swift-ci Please test

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - a7782567e8a28829dc4b6689d0912809a457d857
Test requested by - @eeckstein

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - a7782567e8a28829dc4b6689d0912809a457d857
Test requested by - @eeckstein

@swift-ci Please test linux

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 44f35b916089a46042368b535ece4805f063ce64
Test requested by - @eeckstein

"Also the meta-type of the conforming type must not escape"

What if an instance of the type escapes?

Depends. An instance could escape into a concrete context that can handle the value without metadata. Anywhere we need to escape an instance into a context that also needs the type metadata to work with the instance, that should be tracked independently.

It's fuzzy but I can imagine this:
internal class Impl: SomeProto { /* … */ }

public func produce() -> AnyObject { return Impl() }
public func consume(_ value: AnyObject) {
  guard let interestingValue = value as? SomeProto else { return }
  // …
}

I'm pretty sure in this case the witness table is never referenced statically and the metatype does not escape (because we're using AnyObject rather than Any), but we still need the witness table at run-time dynamically.

What if an instance of the type escapes?

@jrose-apple The question is if someone outside the translation unit can dynamically check if a value conforms to a protocol. This is done by looking up the metatype of that value in the protocol_conformances section. So if the metatype does not escape we are good.

@swift-ci Please test linux

Why does it matter whether the lookup happens outside the translation unit?

I'm pretty sure in this case the witness table is never referenced statically and the metatype does not escape (because we're using AnyObject rather than Any), but we still need the witness table at run-time dynamically.

The metatype does escape because it's stored in the Impl() instance header.

Why does it matter whether the lookup happens outside the translation unit?

It doesn't. My mistake

Ah, right. I didn't think about the metatype being either passed as a constructor argument or directly stored in the type.


When match x with [] -> ... compiles, but if x = [] then... does not

For x : T list where T is [<NoEquality>], match x with []... compiles and works nominally, but if x = [] results in a compile error. This is indeed a minor issue if an issue at all, and could be by design, but I am still reporting it because I think it could have been handled with a less surprise.
Repro steps
> type [<NoEquality;NoComparison>] T = T;;
type T = | T

> let f () = [ T ];;
val f : unit -> T list

> f() = [];;

  f() = [];;
  ^^^

stdin(21,1): error FS0001: The type 'T' does not support the 'equality' constraint because it has the 'NoEquality' attribute

> match f() with [] -> true | _ -> false;;
val it : bool = false

> match f() with [ _ ] -> true | _ -> false;;
val it : bool = true

> f().IsEmpty;;
val it : bool = false

>

Expected behavior
A comparison to the empty list constant [] be valid regardless of list element type constraints.
Actual behavior
As shown above. Baffling at first, but understandable. It logically follows from strictly following the constraint rules. But at the same time, it's surprising from the language user experience viewpoint.
Known workarounds
match x with [] works, as, naturally, does List.isEmpty().
Related information
Windows 10, VS developer environment prompt.
>fsi

Microsoft (R) F# Interactive version 10.2.3 for F# 4.5
Copyright (c) Microsoft Corporation. All Rights Reserved.

Same in a Framework project in VS.

I see how this might be surprising, but this is correct behavior. When you are pattern matching, you are not checking to see if a value is equal to another value.
For example:
type [<NoEquality;NoComparison>] T = T of int

let f () = [ T(2) ]

let x = match f () with [ x ] when x = T(2) -> true | _ -> false // fails to compile
let y = match f () with [ T(2) ] -> true | _ -> false // compiles fine
let z = match f () with [ T(n) ] when n = 2 -> true | _ -> false // compiles fine

The one that fails, you are checking if the list has one value and then check equality on that value against another value that is T(2).
The ones that pass, you are checking to see if the list has one value that is type T with a literal 2. (You can almost say that this is equality, but you are manually checking individual pieces of the structure)
I hope that makes sense; but again I understand this might be a bit confusing at first. Perhaps we should make these instructions in our docs.

Closing this as it is by design.

Thanks for the elaborate clarification @TIHan. I of course understand why the current behavior is the way it is, and that e. g. [T] = [T] in my example could not ever compile, as it would involve comparing in fact a T and a T, which its definition has explicitly erased. If you read x=[] as "compare x with the list [], element by element" (as presumably the compiler interprets it), then the behavior is absolutely correct. It's just not how, IMO, a human programmer thinks about this expression; for me, I read it just as "test if the list x is empty". I just thought if the syntactic comparison with the literal constant [] is (or may possibly be) a special case, and the type constraint could be relaxed for that particular special case. Just like, for example, C++ allows syntactically comparing pointers with the literal 0 (whether for better or worse is debatable). So yes, my report was half an expression of a surprise, half a suggestion, a pretty minor, naturally, but possibly useful from the UX perspective.


Introduce Carrier class for transferring arguments across Surrealist's intestines

#26
#25

Coverage increased (+0.1%) to 99.115% when pulling b748fbd0f63223650f8592278bdb95598be2824a on params_sanitizer into d4f664ccc2237f3eca20e4475b3d4b4ae5d02cda on master.

Coverage increased (+0.1%) to 99.115% when pulling b748fbd0f63223650f8592278bdb95598be2824a on params_sanitizer into d4f664ccc2237f3eca20e4475b3d4b4ae5d02cda on master.

Coverage increased (+0.1%) to 99.115% when pulling b748fbd0f63223650f8592278bdb95598be2824a on params_sanitizer into d4f664ccc2237f3eca20e4475b3d4b4ae5d02cda on master.

@AlessandroMinali haven't I missed something here?

Coverage increased (+0.6%) to 99.558% when pulling 8642d301c8ea1231eec9750471311d60385cd757 on params_sanitizer into d4f664ccc2237f3eca20e4475b3d4b4ae5d02cda on master.

Coverage increased (+0.6%) to 99.558% when pulling 8642d301c8ea1231eec9750471311d60385cd757 on params_sanitizer into d4f664ccc2237f3eca20e4475b3d4b4ae5d02cda on master.

Coverage increased (+0.6%) to 99.558% when pulling 8642d301c8ea1231eec9750471311d60385cd757 on params_sanitizer into d4f664ccc2237f3eca20e4475b3d4b4ae5d02cda on master.

Coverage increased (+0.6%) to 99.558% when pulling 8642d301c8ea1231eec9750471311d60385cd757 on params_sanitizer into d4f664ccc2237f3eca20e4475b3d4b4ae5d02cda on master.


[BUG] POST with form data not working

Information

Version: 7.33.1

I have an endpoint with @Consumes('application/x-www-form-urlencoded') that accepts form data.
Everything is fine until additional middlewares are added into config when bootstraping the server.
In that case the endpoint stops receiving form data and starts returning status 400, PARAM_VALIDATION_ERROR.
I'm presuming that already existing middlewares are overwritten by the new array?
Example
Here is the repository to reproduce the issue:
https://github.com/MatejSkrbis/tsed-v6-v7

Hello @MatejSkrbis
I really wasted my time for nothing :(
please remove this line in index.ts. Array field aren't merged between settings in index and @Configuration(). Set middlewares on Configuration or index.ts but not on both levels.
const conf = {
  // As long as middlewares are added here there is a problem with posting formdata
  middlewares: [
    "cors"
  ],
};

See you
Romain

Hello @MatejSkrbis I really wasted my time for nothing :(
please remove this line in index.ts. Array field aren't merged between settings in index and @Configuration(). Set middlewares on Configuration or index.ts but not on both levels.
const conf = {
  // As long as middlewares are added here there is a problem with posting formdata
  middlewares: [
    "cors"
  ],
};

See you Romain

I'm sorry about that. I thought it was meant to be merged per documentation:
https://tsed.io/docs/platform-api.html#inject-service-in-the-server

It says extra settings so I presumed it must be merged. I used this to load extra configuration since v5 together with @Configuration(...) that is in the base module (as a package) for my services. I just never used middlewares property, but used component scan instead.

No worries.
But this props isn't configured to be merged. For me there is no sense because global middleware order is really importante in express.
Because I looked the @Configuration I haven't seens the cors set in index.ts 😅
Resolve this bug isn't planed and can be confusing if the array is merged.
The only prop that is merged is mount.
See you


E1525 Zigbee 3 update

Now IKEA is all Zigbee 3.
As expected it have loosing group binding and reporting wrong battery %. Delete the device in ZHA and waiting one minute and adding it new and reconfigure it then its OK pared and its start reporting OK and also is doing check ins every 55 minute.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at ?%

Totals

Change from base Build<PHONE_NUMBER>:
0%

Covered Lines:

Relevant Lines:
0

💛  - Coveralls

Codecov Report
Base: 83.69% // Head: 83.70% // Increases project coverage by +0.00% :tada:

Coverage data is based on head (444d38f) compared to base (6b8cd2c).
Patch coverage: 100.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #2137   +/-   ##
=======================================
  Coverage   83.69%   83.70%
=======================================
  Files         258      258
  Lines        8225     8228    +3
=======================================
+ Hits         6884     6887    +3
  Misses       1341     1341

Impacted Files
Coverage Δ

zhaquirks/ikea/motionzha.py
100.00% <100.00%> (ø)

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

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

With new firmware and updated quirk:
Device info
TRADFRI motion sensor
by IKEA of Sweden
Connected via [Billy RCP 4.2.0 RK3318]
Firmware: 0x24040005
Zigbee info
IEEE: 90:fd:9f:ff:fe:59:bb:73
Nwk: 0x4544
Device Type: EndDevice
LQI: Unknown
RSSI: Unknown
Last Seen: 2023-01-26T19:30:54
Power Source: Battery or Unknown
Quirk: motionzha.IkeaTradfriMotionE1525
Its reporting LQI but  ZHA is not showing it in the device info for the moment (bug in ZHA ? or need one more restart) but ZHA maps is listing it OK.

Do we maybe also want to rename the quirk/class in line 25 to IkeaTradfriMotionE1745_1 (assuming it's for that model) and line 92 to IkeaTradfriMotionE1745_2? (Other IKEA remote just append V1/V2 but I feel like an underscore is better here, so it doesn't get confused with the model.
And/or maybe update the docstring in quotes to mention the model?

Or maybe just IkeaTradfriMotion, IkeaTradfriMotion_Var02, IkeaTradfriMotion_Var03, ...
That Var states for 'variation'. I prefer it before 'version' which can appear to be new versions of the device.
I would also remove the device code as a generic rule.

Have putting the good from both comment in naming and dock strings.

Thanks J & J !!

Only for documentation the signature for the E1745 updated with Dirigera (no released in TFGW  OTA feed).
    "signature": {
      "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4476, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0850",
          "in_clusters": [
            "0x0000",
            "0x0001",
            "0x0003",
            "0x0020",
            "0x1000",
            "0xfc57",
            "0xfc7c"
          ],
          "out_clusters": [
            "0x0003",
            "0x0004",
            "0x0006",
            "0x0008",
            "0x0019",
            "0x1000"
          ]
        }
      }
    },

and the device card:
Device info
TRADFRI motion sensor
by IKEA of Sweden
Connected via [Billy RCP 4.2.1 RK3228A](http://<IP_ADDRESS>:8123/config/devices/device/e96ce063acfe580c70ca981efa995aab)
Firmware: 0x24040005
Zigbee info
IEEE: cc:cc:cc:ff:fe:c1:3a:8c
Nwk: 0x2f6f
Device Type: EndDevice
LQI: 196
RSSI: -60
Last Seen: 2023-02-16T09:30:39
Power Source: Battery or Unknown

Its very tricky getting pared (resetting the device is nearly impossible) and then is the best is taking the battery out and doing one reconfigure then putting them back for getting it reporting OK.
No quirk is loaded but battery looks being reported OK as Zigbee standard and motion detected if bright or not.
Z2M user is also reporting that the Dirigera is updating the blinds to the new standard but we dont knowing the URL for the update server.


fix issue #929

Oops.. Someone already did PR #884 for this case

But your patch seems to be much complete ;)


splitchunks with multiple entry points is broken in v5.12.0+

Bug report

What is the current behavior?
When using the splitchunks.cacheGroups option with multiple entry points one of the vendor bundle files is not created.
This only occurs in Webpack v5.12.0 and later. Webpack v5.11.1 and earlier works correctly.
If the current behavior is a bug, please provide the steps to reproduce.
This issue is reproducible using my open source Chrome extension project located here:
https://github.com/peardropsoftware/torrent2box
Instructions to reproduce:

Clone repo, npm install
Install a Webpack version that is v5.12.0 or above
Run the npm script "build" which calls Webpack
A build directory is created with the webpacked assets
The 3 entry points should be created each with their corresponding vendor bundles but the content-vendor.js bundle is missing.

background.js
background-vendor.js
content.js
content-vendor.js // THIS FILE IS NOT CREATED - IT IS MISSING
options.js
options-vendor.js

What is the expected behavior?
All files listed above should be created.

Other relevant information:
webpack version:  Works in v5.11.1 - is broken in v5.12.0 - 5.19.0
Node.js version:  v14.15.3
Operating System:  Windows 10
Additional tools: N/A
Here is the relevant splitChunks configuration:
    optimization: {
        minimize: false,
        splitChunks: {
            cacheGroups: {
                backgroundVendor: {
                    test: /[\\/]node_modules[\\/]/,
                    name: "background-vendor",
                    chunks: (chunk) => {
                        return chunk.name === "background";
                    }
                },
                contentVendor: {
                    test: /[\\/]node_modules[\\/]/,
                    name: "content-vendor",
                    chunks: (chunk) => {
                        return chunk.name === "content";
                    }
                },
                optionsVendor: {
                    test: /[\\/]node_modules[\\/]/,
                    name: "options-vendor",
                    chunks: (chunk) => {
                        return chunk.name === "options";
                    }
                }
            }
        }
    },

hm, regression after experiments.layers

hm, regression after experiments.layers

It will only create a vendors-content chunk if the vendors in the content chunk are > 20kb. Is this the case?

It will only create a vendors-content chunk if the vendors in the content chunk are > 20kb. Is this the case?

@sokra hm, before 5.12.0 it created, but now no

@sokra hm, before 5.12.0 it created, but now no

It will only create a vendors-content chunk if the vendors in the content chunk are > 20kb. Is this the case?

Thanks for the suggestion :)
I thought of that too during my testing but size on disk is 32k. I assume this is the size the limit is checking against?

It will only create a vendors-content chunk if the vendors in the content chunk are > 20kb. Is this the case?

Thanks for the suggestion :)
I thought of that too during my testing but size on disk is 32k. I assume this is the size the limit is checking against?

I just set minsize to 5000 and this has fixed my issue. Minsize was indeed the problem.
My apologies, I should have double checked this before posting the issue.
Many thanks for all your hard work :)
optimization: {
        minimize: false,
        splitChunks: {
            minSize: 5000,
... etc

I just set minsize to 5000 and this has fixed my issue. Minsize was indeed the problem.
My apologies, I should have double checked this before posting the issue.
Many thanks for all your hard work :)
optimization: {
        minimize: false,
        splitChunks: {
            minSize: 5000,
... etc

The problem was not that content-vendors would be too small. The problem was that content would be too small when the vendors are splitted into a separate chunk.
If you really want to make sure that a cacheGroup is created add enforce: true. This disables the thresholds.
You can also configure the size that need to remain separately from the minSize via minRemainingSize. By default it uses minSize for both.

The problem was not that content-vendors would be too small. The problem was that content would be too small when the vendors are splitted into a separate chunk.
If you really want to make sure that a cacheGroup is created add enforce: true. This disables the thresholds.
You can also configure the size that need to remain separately from the minSize via minRemainingSize. By default it uses minSize for both.

Understood. Many thanks for the clarification. I will modify my webpack config accordingly.

Understood. Many thanks for the clarification. I will modify my webpack config accordingly.


Intended operation of segmentation_to_rgb

We're trying to convert segmentation masks into "did this object move?" masks. For example, if an object moved between frames, output an image that is black everywhere except for the new position of the moved object. This is what I've cooked up:
def move_seg_processing(processed_ins_seg_frame, last_object_positions_orientations, new_object_positions_orientations, objects, colors_is):
    distance_threshold = 0.1
    out_img = np.empty(processed_ins_seg_frame.shape)

    for idx, obj in enumerate(objects):
        # If this object moved a big enough distance
        if distance(last_object_positions_orientations[idx][0], new_object_positions_orientations[idx][0]) > distance_threshold:
            # Go through each pixel in the instance segmentation mask
            for i in range(processed_ins_seg_frame.shape[0]):
                for j in range(processed_ins_seg_frame.shape[1]):
                    # If the color of this mask pixel matches the color at the same index of the object in question, make the output pixel white
                    if distance(processed_ins_seg_frame[i][j], colors_is[idx] * 255) < 0.1:
                        out_img[i][j] = 255

    return out_img

This does produce images where certain objects are highlighted, like so:

becomes

But it does not always highlight the intended object. Looking into the segmentation_to_rgb function, I am not sure how the function is intended to operate.
Is there a way to map instance segmentation mask colors to object instances, to highlight them for our purposes?
A somewhat unrelated question: sometimes walls or the floor will be the same color as objects on the table, which is a big issue. Is there a supported way to exclude object instances from instance segmentation masks?

There is a way to map instance segmentation to objects. You can use this function on the renderer (accessible by doing simulator.renderer: https://github.com/StanfordVL/iGibson/blob/b1521122c1d39dbf392012b6fc0af99cbc62fcb7/igibson/render/mesh_renderer/mesh_renderer_cpu.py#L1929
It's pretty easy to use, see example use case:
https://github.com/StanfordVL/iGibson/blob/b1521122c1d39dbf392012b6fc0af99cbc62fcb7/igibson/object_states/robot_related_states.py#L134-L138
Since it is vectorized, if you provide it with the full segmentation image, it will produce a segmentation image where each pixel is colored by the corresponding body ID. You can then convert them to iGibson objects using simulator.scene.objects_by_id[body_id]
You shouldn't be getting the same body ID at the end of this for any two distinct objects. If that's still the case for the walls etc. please let us know.
Let us know if that helps.

@cgokmen That was exactly what I needed, thank you so much!


Lazy Load Components

Currently all views are loaded when the storybook is created. This should be changed so that views lazy load only when a user navigates to them.

fixed with https://github.com/aj-bartocci/Storybook-SwiftUI/pull/4


Incorrect source code path in Confluent Hub

The source code and documentation links from the Confluent Hub are incorrect, they point to github.com/scylla/kafka-connect-scylladb, should be github.com/scylladb/kafka-connect-scylladb
Don't know if this is the culprit line, but it's also wrong:
https://github.com/scylladb/kafka-connect-scylladb/blob/aa89618ccbab7aa2d14da67c7b86a305dd1e914d/pom.xml#L10

Good Catch @forsberg  - updated.


Can no longer drop anything

https://phit.link/s/2017-01-13_11-51-45.mp4
as you can see I can drop things with /gpdebug on, but not when it's off
ouput with verbose debug in console http://vpaste.net/6X5vk
full log https://gist.github.com/phit/68056f3a284af574dcf1b53d7f59945c
spongeforge-1.10.2-2202-5.1.0-BETA-2029
griefprevention-1.10.2-<IP_ADDRESS>

fixed by setting claims-mode to something else than 3 in the global.conf


false positiv on com.springsource.javax.validation

Dependency Check identifies com.springsource.javax.validation as spring Framework 1.0.0 (it seems so that this version doesn't exist http://www.cvedetails.com/version-list/9664/17274/2/Springsource-Spring-Framework.html?sha=5c069faa228ea1cf109c75135f2c8428ee28106d&order=1&trc=65 )
The dependency informations:
<fileName>com.springsource.javax.validation-1.0.0.GA.jar</fileName>
<filePath>E:\repository\javax\validation\com.springsource.javax.validation\1.0.0.GA\com.springsource.javax.validation-1.0.0.GA.jar</filePath>

Results in this identifiers:
<identifiers>
    <identifier type="cpe" confidence="LOW">
        <name>(cpe:/a:springsource:spring_framework:1.0.0)</name>
    </identifier>
    <identifier type="cpe" confidence="LOW">
        <name>(cpe:/a:vmware:springsource_spring_framework:1.0.0)</name>
    </identifier>
    <identifier type="maven" confidence="LOW">
        <name>(javax.validation:validation-api:1.0.0.GA)</name>
    </identifier>
</identifiers>

Why is the confidence of the maven identifier LOW? It should be HIGH because that's the right identifier.

The confidence on the maven GAV has been increased to HIGH. My initial guess is that the scan was run on a machine that does not have access to the Internet or the Central Analyzer was disabled and a Nexus server was not specified?  If the sha1 hash is found in Central (or Nexus) then the confidence of the maven identifier should be reported as HIGHEST and a URL to the JAR file should also be provided.
Regarding why the non-existent CPE entries are being reported. Basically, the tool is making a best guess as to the CPE. It first tries to do fuzzy matching based on the product/vendor evidence collected from the JAR and matches it to the product/vendor from the CPE entries. If there is a product/vendor match then a CPE identifier will be recorded. If the version number doesn't exist the tool makes a guess at the CPE entry by using its highest confidence version information. By doing this, the tool still correctly identifies some CVE entries - however, it does also create false positives. The trade off between false positives and false negatives is a balancing act.
Much of what I have discussed above is documented in the following pages and I would recommend reading them if you have not:

Internet Access Required
How does dependency-check work?
How to read the report
Suppressing False Positives

Thanks for the explanation and for increasing maven GAV to HIGH.
Now i tested it with the new version (and with a HIGH maven identifier). The result is the same, because dependency check searches for vulnerabilities for the LOW identifier to.
Now i have two questions.
Is it possible to search for vulnerabilities only with a maven GAV?
Is there a configuration, that allows only searching for HIGH confidence (and LOW confidence only if there is not a HIGH confidence)?

Sorry for the delayed response, I've been on vacation.

It is not possible to reliably search for vulnerabilities only on a Maven GAV.
The way the tool works is it categorizes the evidence into vendor, product, and version buckets and rates the evidence from LOW to HIGHEST confidence. It starts with the highest confidence evidence and works its way down - if a CPE is identified by high confidence evidence then the confidence of the CPE identifier will also be high. Once a CPE has been identified the identification analysis stops (i.e. lower confidence evidence will not be used to identify the library). Make sense?

While I will take a closer look at this and try to adjust things for libraries in the spring family so that these false positives are reduced. That being said, what you can do locally for this is to create a suppression XML file (using the HTML report's suppress buttons) to suppress the specific CPE that is an incorrect match. This is a fairly simply process (see Suppressing False Positives) and should not take long when onboarding the dependency-check plugin into a new app.

I was looking for another thread that is related to this - but I cannot find it right now.  This appears to be an OSGI bundle - this is still one source of false positives. I have some thoughts on how to resolve this.

A patch has been added to remove the bundle vendor from the collected evidence. We will need to monitor this for false negatives as the bundle vendor is accurate in some cases (specifically many Spring libraries); however, in the case of the bundles of other libraries that are maintained by SpringSource the bundle-vendor is not accurate.


Unable to import module 'process_cert_manager_mail': No module named urllib3

i'm probably doing something silly :)
this is my SSLCertificate resource from my serverless.yml (i'm using the Serverless framework):
    SSLCertificate:
      Type: "AWS::CloudFormation::Stack"
      Properties:
        Parameters:
          domain: ${self:custom.domain}
          hostedZoneName: ${self:custom.hostedZoneName}    # your hosted domain
        TemplateURL: "https://s3-eu-west-1.amazonaws.com/is24-infrastructure-public/cloudformation/verified-ssl-certificate/ssl-certificate.template.yaml"

if you want to try out exactly what i'm deploying, see: https://github.com/mvayngrib/ssltest
edit domain and hostedDomainZone in serverless.yml and run serverless deploy

Hi @mvayngrib ,
it looks good. Do you get an error?

@heroldus i'm getting the error in the issue title: Unable to import module 'process_cert_manager_mail': No module named urllib3

When do you get the error? During the cloudformation deployment? In which lambda function?
In need a little bit more context.

@heroldus you're right, and to be honest, I have forgotten myself :) I'll try to give this another try in the next few days, currently i'm way out of context. If you like, you can close this until i do


Codes for Evaluating Generative Benchmarks

Thanks for sharing this awesome repo!
The paper reports results on MMLU, GSM8K, HumanEval and BigBench-Hard. It seems this repo does not contain the codes for evaluating on these benchmark currently. Could you also share these codes? It would be great to follow the exactly same evaluation steps when comparing with other alignment methods.

Thanks for your interest. Alpaca evals are standard instructions following the original repo: https://github.com/tatsu-lab/alpaca_eval
The other non-LLM judged results, you may refer to this repo that downloads the data and has run scripts with different benchmarks: https://github.com/bigcode-project/bigcode-evaluation-harness


fix: remove unused preset env usage

Description:
While upgrading to 0.99.4, we encounter a compile error with the ecma_preset_env feature on swc_core. Seems that the preset_env_base package is not a dependency of swc_core
Repro
Related issue (if exists):

Related PR of Rspack: https://github.com/web-infra-dev/rspack/pull/7292


Add hrstud to universities list emails

I am adding my faculty email domain to the recognized domains of JetBrains to get a Teacher's activation for DataGrip

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


Possible issue in GPIO.C

Hi,  working on a motion detector and I believe there may be a flaw in the logic of GPIO.C
in GPIO.C function gpio_intr_handler, should this line
    if ( (0x1<<i) & gpio_status & gpio_intr_callbacks[i]!= NULL ){

not be
   if ( (0x1<<i) & gpio_status && gpio_intr_callbacks[i]!= NULL ){

i.e. the second and should be a logical and, not a bitwise and. I was having problems getting interrupts to fire, so I added some debug trace, with the original I get this:-
checking GPIO 2, 0x1<<i=4 , gpio_status=4, callback=4024c940
no match

with the revised code I get:-
checking GPIO 2, 0x1<<i=4 , gpio_status=4, callback=4024c940
called interupt handler for GPIO 2

TIA for your thoughts

Good catch.
That bit of code was never tested to the fullest since it was in response to a request to show a button work.
I've pushed code just now.


[GSB] SE-0157: Reprocess delayed requirements when we need a complete PA

Whenever we need a complete, well-formed potential archetype,
reprocess any delayed requirements, so that we pick up additional
requirements on that potential archetype.
This relies on us tracking a generation count for the GSB instance as
a whole, which gets bumped each time we add some new requirement or
create a new potential archetype, and only actually reprocessing
delayed requirements when the generation count exceeds the point at
which we last processed delayed requirements.
This gets the most basic recursive protocol constraint working
end-to-end and doesn't seem to break things.

@swift-ci please smoke test and merge

@swift-ci please smoke test and merge

Reverting here: https://github.com/apple/swift/pull/10950

Bringing this back under the flag in https://github.com/apple/swift/pull/11174, but I won't enable it generally until it's working better and the type-checking performance regression has been eliminated.


Files/Occurrences label on Search Page is inaccurate

Moved from workflowproducts/postage#91

I had 10ish files, and around 100 matches.

Fixed. Will be seen in the next release.
The issue was I was only counting the last files/occurrences.


Pass the filename of the current file into jshint

This MR updates the jshint linter so that the filename of the file being linted is passed in on the command line. Doing this allows file-specific override config to be used, which is helpful on large projects.
(Note that jshint is currently bugged in this area, so there will probably be little visible change to the end user until https://github.com/jshint/jshint/pull/3335 goes in).
I haven't added tests for this function, as there did not seem to be any existing ones in this area to jump off from - I'd be happy to add some with guidance if needed.

Added some basic command callback tests, but happy to add a couple more if there is something obvious

Cheers! :beers:


Changing markdown formatting to rst.

Codecov Report

Merging #366 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #366   +/-   ##
======================================
  Coverage    90.4%   90.4%
======================================
  Files          43      43
  Lines        2845    2845
======================================
  Hits         2572    2572
  Misses        273     273

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c84fd11...c7b2e9a. Read the comment docs.


Play/Pause button not working

In the sample app, open the casting control dialog by clicking the casting icon on the title bar when video is cast. The pause or play button on the dialog doesn't work. No response when clicking the play/pause button.

The Cast dialog is part of the SDK. If you believe you have found a bug, file an issue with complete log: https://code.google.com/p/google-cast-sdk/issues/list


server-wallet: Change main to top level index

Also, export the Outgoing type.

What are the best practices for exporting types versus classes in TypeScript? Maybe it makes sense to only export non-types from src/index.ts but then separately have some src/types.ts which is exporting all types? You can use "types": "lib/src/types.d.ts" in package.json and I think it will achieve the same effect as this PR but may be more cleanly organized?

A couple thoughts:

I think we should point the main key of package.json to the top level index.ts as opposed to an index.ts deeper in the package.
I am not sure if exporting types from index.ts is an antipattern, but I am open to having a dedicated types.ts file if we think including types in index.ts is a bad idea.

A cursory look at documentation suggests that types in index.ts are maybe fine: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html


TCA9517

These are getting killed with fire. Do we still need to upstream these for revC0, or can we let them bitrot in git history?

Let's upstream those still, it shouldn't be a lot of work anyhow.

No one has the bandwidth to upstream footprints.


Prefix phantom package name

Introduced changes
Prefix phantom package name created when compiling test files outside of the package folder to avoid name collision with corelib
Breaking changes
Checklist

[x] Linked relevant issue
[ ] Updated relevant documentation
[x] Added relevant tests
[x] Performed self-review of the code

https://github.com/foundry-rs/starknet-foundry/issues/322


Change of issuer: locked for old properties?

With #257 it is possible to change the issuer or maintainer of a property, however it is currently undefined, if this ability is only granted for managed properties or all properties, including those that were not created via tx 54: New Property with Managed Number of Tokens.
So the question is: should it be restricted to managed properties or available for every property?

Quick note to catch up on this, given that a change of issuer during a crowdsale is deactivated now, there is actually an use case in combination with #282 (Accepting not-yet-issued propeties in a crowdsale).
#282 allows to create a trustless token swap mechanism, where:

crowdsale A offers tokens X for Y
crowdsale B offers tokens Y for X

There is, however, still some risk involved, namely that a crowdsale issuer may manually close a crowdsale.
If changing the issuer during a crowdsale were enabled, it would be possible to willingly give up any control by changing the issuer to an address that (likely) no one controls, which would remove that risk completely.


Different reproduced performance of Square

Dear Authors,
Thank you so much again for providing such a great and helpful repo!!
I have been following this page to reproduce the results of Square (Nut Assembly Task). Here is the generated config file I'm using:
{
    "algo_name": "bc",
    "experiment": {
        "name": "core_bc_rnn_square_ph_image",
        "validate": true,
        "logging": {
            "terminal_output_to_txt": true,
            "log_tb": true,
            "log_wandb": false,
            "wandb_proj_name": "debug"
        },
        "save": {
            "enabled": true,
            "every_n_seconds": null,
            "every_n_epochs": 20,
            "epochs": [],
            "on_best_validation": false,
            "on_best_rollout_return": false,
            "on_best_rollout_success_rate": true
        },
        "epoch_every_n_steps": 500,
        "validation_epoch_every_n_steps": 50,
        "env": null,
        "additional_envs": null,
        "render": false,
        "render_video": true,
        "keep_all_videos": false,
        "video_skip": 5,
        "rollout": {
            "enabled": true,
            "n": 50,
            "horizon": 400,
            "rate": 20,
            "warmstart": 0,
            "terminate_on_success": true
        }
    },
    "train": {
        "data": "../../tests/assets/image.hdf5",
        "output_dir": "../../tests/assets/core/bc_rnn/square/ph/image/trained_models",
        "num_data_workers": 2,
        "hdf5_cache_mode": "low_dim",
        "hdf5_use_swmr": true,
        "hdf5_load_next_obs": false,
        "hdf5_normalize_obs": false,
        "hdf5_filter_key": "train",
        "hdf5_validation_filter_key": "valid",
        "seq_length": 10,
        "pad_seq_length": true,
        "frame_stack": 1,
        "pad_frame_stack": true,
        "dataset_keys": [
            "actions",
            "rewards",
            "dones"
        ],
        "goal_mode": null,
        "cuda": true,
        "batch_size": 16,
        "num_epochs": 600,
        "seed": 1
    },
    "algo": {
        "optim_params": {
            "policy": {
                "optimizer_type": "adam",
                "learning_rate": {
                    "initial": 0.0001,
                    "decay_factor": 0.1,
                    "epoch_schedule": [],
                    "scheduler_type": "multistep"
                },
                "regularization": {
                    "L2": 0.0
                }
            }
        },
        "loss": {
            "l2_weight": 1.0,
            "l1_weight": 0.0,
            "cos_weight": 0.0
        },
        "actor_layer_dims": [],
        "gaussian": {
            "enabled": false,
            "fixed_std": false,
            "init_std": 0.1,
            "min_std": 0.01,
            "std_activation": "softplus",
            "low_noise_eval": true
        },
        "gmm": {
            "enabled": true,
            "num_modes": 5,
            "min_std": 0.0001,
            "std_activation": "softplus",
            "low_noise_eval": true
        },
        "vae": {
            "enabled": false,
            "latent_dim": 14,
            "latent_clip": null,
            "kl_weight": 1.0,
            "decoder": {
                "is_conditioned": true,
                "reconstruction_sum_across_elements": false
            },
            "prior": {
                "learn": false,
                "is_conditioned": false,
                "use_gmm": false,
                "gmm_num_modes": 10,
                "gmm_learn_weights": false,
                "use_categorical": false,
                "categorical_dim": 10,
                "categorical_gumbel_softmax_hard": false,
                "categorical_init_temp": 1.0,
                "categorical_temp_anneal_step": 0.001,
                "categorical_min_temp": 0.3
            },
            "encoder_layer_dims": [
                300,
                400
            ],
            "decoder_layer_dims": [
                300,
                400
            ],
            "prior_layer_dims": [
                300,
                400
            ]
        },
        "rnn": {
            "enabled": true,
            "horizon": 10,
            "hidden_dim": 1000,
            "rnn_type": "LSTM",
            "num_layers": 2,
            "open_loop": false,
            "kwargs": {
                "bidirectional": false
            }
        },
        "transformer": {
            "enabled": false,
            "context_length": 10,
            "embed_dim": 512,
            "num_layers": 6,
            "num_heads": 8,
            "emb_dropout": 0.1,
            "attn_dropout": 0.1,
            "block_output_dropout": 0.1,
            "sinusoidal_embedding": false,
            "activation": "gelu",
            "supervise_all_steps": false,
            "nn_parameter_for_timesteps": true
        }
    },
    "observation": {
        "modalities": {
            "obs": {
                "low_dim": [
                    "robot0_eef_pos",
                    "robot0_eef_quat",
                    "robot0_gripper_qpos"
                ],
                "rgb": [
                    "agentview_image",
                    "robot0_eye_in_hand_image"
                ],
                "depth": [],
                "scan": []
            },
            "goal": {
                "low_dim": [],
                "rgb": [],
                "depth": [],
                "scan": []
            }
        },
        "encoder": {
            "low_dim": {
                "core_class": null,
                "core_kwargs": {},
                "obs_randomizer_class": null,
                "obs_randomizer_kwargs": {}
            },
            "rgb": {
                "core_class": "VisualCore",
                "core_kwargs": {
                    "feature_dimension": 64,
                    "backbone_class": "ResNet18Conv",
                    "backbone_kwargs": {
                        "pretrained": false,
                        "input_coord_conv": false
                    },
                    "pool_class": "SpatialSoftmax",
                    "pool_kwargs": {
                        "num_kp": 32,
                        "learnable_temperature": false,
                        "temperature": 1.0,
                        "noise_std": 0.0
                    }
                },
                "obs_randomizer_class": "CropRandomizer",
                "obs_randomizer_kwargs": {
                    "crop_height": 76,
                    "crop_width": 76,
                    "num_crops": 1,
                    "pos_enc": false
                }
            },
            "depth": {
                "core_class": "VisualCore",
                "core_kwargs": {},
                "obs_randomizer_class": null,
                "obs_randomizer_kwargs": {}
            },
            "scan": {
                "core_class": "ScanCore",
                "core_kwargs": {},
                "obs_randomizer_class": null,
                "obs_randomizer_kwargs": {}
            }
        }
    },
    "meta": {
        "hp_base_config_file": null,
        "hp_keys": [],
        "hp_values": []
    }
}

However, despite multiple evaluations during training and testing, the highest success rates I achieved were between 0.4 and 0.64. I haven't seen a result of 0.82 as reported in the paper. Could you advise on how to achieve this success rate? Did I make a mistake?
Thank you so much for your help and your precious time! Look forward to your reply!
Best regards,
Pengzhi

Your config looks accurate to me. What version of robosuite are you using, and which branch? It might be worth trying the offline_study branch of robosuite, along with v0.2 of robomimic (you would need to re-download the data though, since the image observations will look different). See this note.

Thank you so much for your response!
I'm currently using robosuite v1.4.1 and robomimic v0.3.0, but my data is from robomimic v0.2 as it provides direct links for image data (I faced an issue extracting image data from raw data in v0.3.0, which has been resolved). Could this version mismatch affect performance? I'm wondering what are the differences between the dataset versions that might cause this issue?
Additionally, I found your tutorial on using pretrained models. However, I only located the link for the lift task (http://downloads.cs.stanford.edu/downloads/rt_benchmark/model_zoo/lift/bc_rnn/lift_ph_low_dim_epoch_1000_succ_100.pth). Where may I find pretrained models for other tasks with image inputs?
Thank you again for your assistance and explanation! Look forward to your reply.

Re (1): some textures in the environment have changed between robosuite v1.2 and v1.4 - this would explain why the model performance degraded (since you were training with image observations from v1.2 and evaluating with image observations from v1.4).
Re (2):  The links should be here - but these were trained on robosuite v1.2.

Thank you so much for your help!


provide a goal to watch spring boot containers for local development changes & reload on the fly

"I think we should move now the spring-boot-generator to fabric8-maven-core, too. makes more sense as the core is now prominently coupled to spring-boot anyway. So we can avoid this unnecessary abstraction."
sorry, not my day.
This feature definitely goes absolutly in the right direction for providing an awesome developer experience. And we should have this. But not hardcoded as a goal sticking to a specific technology. This carries all this generator / enricher separation ad absurdum. I wouldn't mind if we open a spring-boot-kubernetes-plugin which is only about spring-boot, but for a general purpose plugin this is far too specific for a goal.
Do we plan to introduce 'fabric8:watch-widlfly-swarm', 'fabric8:watch-tomcat', ... so that each developer needs to remember whether its current microservice project (out of thousand others) is running spring-boot, widlfy-swarm, ... ?
My suggestion is to do this under the umbrella fabric8:watch, with maybe a first hard coded detection. Later then something like 'enricher' and 'generator', like 'watcher' which are then specific to each tech.
Isn't it all about developer experience ? why should a developer need to specify watch-spring-boot when the plugin could detect it itself ?

yeah - it'd be nice to just have a fabric8:watch and it figure out the right thing to do!
for app server like stuff like tomcat/jetty/wildfly/karaf we should be able to just reuse the current fabric8:watch goal really; so I'm not expecting a load of new commands.

all fixed now - see https://maven.fabric8.io/#fabric8:watch-spring-boot


Error importing modules when loading Keras model

I'm trying to save and load a model, according to https://keras.io/getting-started/faq/#how-can-i-save-a-keras-model
However, when loading the model, this error pops up: NameError: name 'MaxPooling1D' is not defined. It seems that loading the model fails to import the necessary modules.
Here's my code snippet:
model.save("keras_model.h5")
del model
model = load_model('keras_model.h5')

The import error points to my custom-pooling function, which finds the element-wise max, min, and avg for all input tensors, then concatenates them.
def max_min_avg_pooling_main(x):
    max_arr = MaxPooling1D(MAX_SEQUENCE_LENGTH-2)(x)
    min_arr = -K.pool2d(-x, pool_size=(MAX_SEQUENCE_LENGTH-2,1), strides=(MAX_SEQUENCE_LENGTH-2,1), border_mode="valid", dim_ordering="th", pool_mode='max')
    avg_arr = AveragePooling1D(MAX_SEQUENCE_LENGTH-2)(x)

    return K.concatenate([max_arr, min_arr, avg_arr], axis=1)

Notes:

I'm using Keras 1.1.1. I don't want to update to the latest version because it might cause problems with Theano, which I really had a hard time installing on Windows.
I have compiled the model before saving it.
Also tried saving the model architecture and weights separately (according to this tutorial: http://machinelearningmastery.com/save-load-keras-deep-learning-models/). Same error.

Can't tell if it's your code or keras without a runnable snippet.
Your custom pooling function does seem weird and could be causing the issue. There is nothing wrong with breaking things up into layers. Try something like this. You may have to add the output_shape parameter as well.
max_arr = MaxPooling1D(MAX_SEQUENCE_LENGTH-2)(h)
min_arr = Lambda(lambda x:-K.pool2d(-x, pool_size=(MAX_SEQUENCE_LENGTH-2,1), strides=(MAX_SEQUENCE_LENGTH-2,1), border_mode="valid", dim_ordering="th", pool_mode='max'))(h)
avg_arr = AveragePooling1D(MAX_SEQUENCE_LENGTH-2)(h)
concat = merge([max_arr, min_arr, avg_arr], mode='concat')

Cheers

My implementation of an elementwise-min is rather strange, because I couldn't find a simple way to do it. Do you have any recommendations to achieve the same in a simpler way (E.g. [1,2,3], [1,1,1], [-1,0,3] results to a minimum vector of [-1, 0, 1]?
I'm not sure if your suggestion will work in my case, because the custom pooling is defined as a function, and used like this when constructing the architecture:
context_sequence_input = Input(shape=(MAX_CONTEXTUAL_WORDS,), dtype='int32')
context_embedding_layer = Embedding(embedding_matrix.shape[0],
                                embedding_matrix.shape[1],
                                weights=[embedding_matrix],
                                input_length=MAX_CONTEXTUAL_WORDS,
                                trainable=False)
aux_embedded_sequences = context_embedding_layer(context_sequence_input)
context_network = Lambda(max_min_avg_pooling_context, output_shape=max_min_avg_output_shape,  name="custom_pooling")(aux_embedded_sequences)
context_network = Flatten()(context_network)

But I'll try it out. Thanks for the suggestion!

On a side note, can you fix the import error if you put from keras.... import MaxPooling... inside your function definition?
You don't need the entire max pooling to be done in a single lambda. Might work better as separate layers. You could also make max pooling as a Model with several layers, then add that model to another model.
If you just want to calculate a minimum over several tensors, use merge([...],mode=concat) to put them into a single tensor then use Lambda(lambda x: K.min(x, axis=...)).
Alternatively, you had a good idea with using the negative. Use a merge then a Lambda(lambda x:-x) and a MaxPooling2D.
Note that min pooling might not work with relus. When relu is 0, it is both the min and has 0 gradient. Might work with other activation functions.

Thanks! I tried placing the import statements inside the custom pooling function, and now the original error is gone. But now I'm encountering this one :
Optimizer weight shape (3, 1, 200, 200) not compatible with provided weight shape (600, 64)
Seems to be similar to this issue: https://github.com/fchollet/keras/issues/5014
Regarding splitting the functionality into separate layers, I guess I could try that. Any specific reason as to why it would work better?
Thanks for the tip regarding min-pooling not working with relus. I'm using tanh, is that alright? I'm not too adept at the theoretical basis for neural nets, so I don't understand why relu won't work with min pooling. I'd appreciate if you could elaborate? Or at least point me to a resource I can read up on?

Good afternoon.
I've encountered what seems to be the same issues as OP'd reported.
I have 2 stateless functions
def slice_channel(inputs, channel):
  return Lambda(
    lambda x: tf.expand_dims(x[:, :, :, channel], 3)
  )(inputs)

def fuse_convolutions(inputs):
  return Lambda(
    lambda x: Concatenate(axis = 3)([
      (slice_channel(x, i) + slice_channel(x, j)) / 2.0
      for i in range(4) for j in range(i + 1, 4)
    ])
  )(inputs)

First one is known to work perfectly fine in save/load pipeline, but 2nd one outputs
NameError: name 'Concatenate' is not defined

whenever I try to load compiled and saved model. I tried both saving it with Model.save, by separating arch and weights, with ModelCheckpoint - same result. When I tried @bstriner suggestion to import concatenation inside the function, using ModelCheckpoint resulted in this after the first epoch of training:
  File "venv\lib\site-packages\keras\engine\topology.py", line 2434, in save
    save_model(self, filepath, overwrite, include_optimizer)
  File "venv\lib\site-packages\keras\models.py", line 103, in save_model
    }, default=get_json_type).encode('utf8')
  File "C:\Program Files\Python35\Lib\json\__init__.py", line 237, in dumps
    **kw).encode(obj)
  File "C:\Program Files\Python35\Lib\json\encoder.py", line 198, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "C:\Program Files\Python35\Lib\json\encoder.py", line 256, in iterencode
    return _iterencode(o, 0)
  File "venv\lib\site-packages\keras\models.py", line 73, in get_json_type
    'config': obj.get_config()}
TypeError: get_config() missing 1 required positional argument: 'self'

Training without callback and saving arch and weights separately worked, but after I tried to load model, it failed:
  File "src\train.py", line 156, in load_model
    loaded_model = model_from_json(loaded_model_json)
  File "venv\lib\site-packages\keras\models.py", line 333, in model_from_json
    return layer_module.deserialize(config, custom_objects=custom_objects)
  File "venv\lib\site-packages\keras\layers\__init__.py", line 46, in deserialize
    printable_module_name='layer')
  File "venv\lib\site-packages\keras\utils\generic_utils.py", line 140, in deserialize_keras_object
    list(custom_objects.items())))
  File "venv\lib\site-packages\keras\engine\topology.py", line 2378, in from_config
    process_layer(layer_data)
  File "venv\lib\site-packages\keras\engine\topology.py", line 2347, in process_layer
    custom_objects=custom_objects)
  File "venv\lib\site-packages\keras\layers\__init__.py", line 46, in deserialize
    printable_module_name='layer')
  File "venv\lib\site-packages\keras\utils\generic_utils.py", line 140, in deserialize_keras_object
    list(custom_objects.items())))
  File "venv\lib\site-packages\keras\layers\core.py", line 706, in from_config
    function = func_load(config['function'], globs=globs)
  File "venv\lib\site-packages\keras\utils\generic_utils.py", line 204, in func_load
    closure=closure)
TypeError: arg 5 (closure) must be None or tuple

Is there any workaround to this?

You're nesting functions and lambdas strangely.
slice_channels is a function that creates and applies a Lambda. Concatenate is a keras layer. You don't need to use keras layers inside Lambda expressions. Inside the Lambda, just manipulate the tensors using keras backend or whatever you want to do.
So one option is to do everything in one layer like you're doing, except use backend functions instead of layers.
def fuse_convolutions(inputs):
  return Lambda(
    lambda x: tf.concatenate([
      (tf.expand_dims(x[:,:,:,i], 3) + tf.expand_dims(x[:,:,:,j],3)) / 2.0
      for i in range(4) for j in range(i + 1, 4)
    ], axis=3)
  )(inputs)

Another option, which may be easier to understand, is to break things out into layers. This way fuse_convolution isn't making one giant Lambda layer. It is creating a structure of Concatenate, Average and slice_channel layers. (I probably missed a lot of parentheses below but you should be able to get it working.)
def slice_channel(inputs, channel):
  return Lambda(
    lambda x: tf.expand_dims(x[:, :, :, channel], 3)
  )(inputs)

def fuse_convolutions(inputs):
  return Concatenate(axis=3)([
    Average()([slice_channel(x, i), slice_channel(x, j)])
   for i in range(4) for j in range(i + 1, 4)])

Cheers


Signing Service

Signing service is a built-it service, implemented in TS which allows to

sign byte data using peer's SK
verifying signatures using signed data and peer's peerID

Limitations of the first iteration:

Supports only ed25519 keys
Only supports single key = peer's keypair
Hard-coded tetraplets

In future:

Add support for multiple key pairs per peer
Key is identified by it's public representation as peer id
Configurable tetraplets (+ API)


[Suggestion] Add Credo as a dependency and CI check

As per my comment on #13, I think that formatter and credo would be nice additions to the workflow.
Since the formatter is standardized, it would be nice and simple for everyone to use.
And credo adds more code uniformity checks that might also be nice

+1 for mix format --check-formatted in CI. As for credo, we'll wait until we learn from the experience that other lang developers have of linters.


Feature/semantic enrichment

Replaces #311

This PR contains the latest development to support semantic enrichment in Kolasu.
Feel free to merge it when you consider it ready, commit changes, etc.

Why is this closed? I thought we had approved it!

Why is this closed? I thought we had approved it!

The approach seems to be incompatible with our current practices in defining ASTs and the planned architecture of large-scale migrations using the Code Insight Studio, LionWeb and the Symbol Resolution Index (SRI).
The previous attempt using generic SymbolDescription instances seems to be enough for EGL. I would suggest using the previous and more usable APIs for projects where no external symbols are needed/handled. This is an example project for the previous APIs: Entity Parser


hyva-themes/magento2-hyva-admin#2 alpine.js loaded locally to avoid CSP

Hi @Vinai and @wigman,
To solve hyva-themes/magento2-hyva-admin#2, I've:

Imported the last version of alpine.js inside the module (2.8.0). Not minified for the moment, but I guess we should do it?
Modified the require_js.phtml file to change the link so that it refers to the local file instead of external

I've tried doing what would be to be supposed the right way: adding it in the head block in the layout file. However, as Vinai already checked, this does not seem possible in Magento 2. Require js is loaded before the web starts breathing...
Please don't hesitate telling me if you think this could be done in a better/different way.

@paugnu Thank you very much!
Since loading alpine is @wigman's domain I would love to get his LGTM before merging.

@paugnu Thank you very much!
Since loading alpine is @wigman's domain I would love to get his LGTM before merging.

This is perfect. As long as we don't have a proper way to fix the requirejs/alpinejs conflict this is the simplest way to do it.
I'm pretty sure fixing it in another way will mean modifying the requirejs library, so let's no go there now :)

This is perfect. As long as we don't have a proper way to fix the requirejs/alpinejs conflict this is the simplest way to do it.
I'm pretty sure fixing it in another way will mean modifying the requirejs library, so let's no go there now :)


Create a task for executing post install scrips

Please describe the nature of this feature request

I'm interested in a new Task for CumulusCI which runs classes that implement InstallHandler. When simulating unmanaged deploys, post-install scripts are not automatically run. As suggested in #129, it is possible to create a task that executes a script, but I think it would be convenient to have a task that automatically finds this class or at least allows for an easy way to define the class as a parameter. Furthermore, this task could be added to existing OOTB unmanaged deploy flows where reasonable like deploy_unamanged.

@Julian88Tex I'm not sure this is possible. Install scripts implement an interface InstallHandler, which has a method onInstall which takes an InstallContext argument. I don't think we have a way to construct one of those outside of an actual installation or unit tests.
Probably the best you can do is put the bulk of the implementation in a separate class which can be called by an anonymous Apex task. There's some precedent for this; for example if I recall correctly, NPSP includes an npsp_default_settings anon Apex task in unmanaged flows which initializes settings using the same code that is run from the install script.

@Julian88Tex I'm not sure this is possible. Install scripts implement an interface InstallHandler, which has a method onInstall which takes an InstallContext argument. I don't think we have a way to construct one of those outside of an actual installation or unit tests.
Probably the best you can do is put the bulk of the implementation in a separate class which can be called by an anonymous Apex task. There's some precedent for this; for example if I recall correctly, NPSP includes an npsp_default_settings anon Apex task in unmanaged flows which initializes settings using the same code that is run from the install script.

We discussed this further in another tool. For reference here are some of the key thoughts as best as I understand them:
From @davidmreed : "It could check for a postinstall script in the CumulusCI YML, then synthesize a small Anonymous Apex script to execute it via the Tooling API."
From @davidmreed: "We’d need to be careful about rollout because many projects have their own automation already to run postinstall scripts, and because some postinstall scripts may not run properly in an unmanaged context."
From @davidmreed: "the Anon Apex script would have to use JSON deserialization to synthesize a mock InstallContext (which, to be fair, I haven’t tried and which might not work)"

We discussed this further in another tool. For reference here are some of the key thoughts as best as I understand them:
From @davidmreed : "It could check for a postinstall script in the CumulusCI YML, then synthesize a small Anonymous Apex script to execute it via the Tooling API."
From @davidmreed: "We’d need to be careful about rollout because many projects have their own automation already to run postinstall scripts, and because some postinstall scripts may not run properly in an unmanaged context."
From @davidmreed: "the Anon Apex script would have to use JSON deserialization to synthesize a mock InstallContext (which, to be fair, I haven’t tried and which might not work)"

My final comment is wrong, as @MatthewBlanski noted - you can actually construct an InstallContext directly.

My final comment is wrong, as @MatthewBlanski noted - you can actually construct an InstallContext directly.

This was also requested in https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000BuQZI


[Enhancement] : Can you push updated csv with label here ?

Hi Savejee,
Great Work! Really Appreciated
Can you auto-push the latest labels CSV on git?
Thanks

Hi,
Here's the Google Spreadsheet that I currently use: https://docs.google.com/spreadsheets/d/1QEQrLne1SDxwQVl5qpGQokEKG4FNZqX6kMuFMmAyeWg/edit?usp=sharing
I go over the comments there about once a month.

Thanks Man , will contribute in it 👍


Load icons from custom directory.

Currently if your icons are located in directory other that blade-fontawesome, Factory will throw an error complaining that "path" for a set does not exist. This happens because BladeUIKit package creates "paths" for sets the first time it create Factory. Since this package hooks up to BladeUIKit when its Factory is already instantiated "paths" key for icon sets is not filled.
Ideally, I'd look to update BladeUIKit Factory itself, but it won't hurt to manually sets paths in this library.
...

[ ] I have read the CONTRIBUTING document.

this would be a really useful feature to have.


samples: echo_server: remove features to make binary fit

Remove net shell and stacks to make the binary fit on some platforms.
Signed-off-by: Anas Nashif<EMAIL_ADDRESS>

Codecov Report

Merging #11058 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #11058   +/-   ##
=======================================
  Coverage   53.22%   53.22%
=======================================
  Files         217      217
  Lines       26733    26733
  Branches     5926     5926
=======================================
  Hits        14228    14228
  Misses      10086    10086
  Partials     2419     2419

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ab6da1...bac36e0. Read the comment docs.

CI build failures caused by increased size of binaries.


change location from trickplay folder to root folder

is there anyway to change the bif file location from the trickplay folders to the root of the media ?
Use case is if you're running emby and Jellyfin it creates additional bif file under the media file and doesnt read the trickplay folder

Would like that, too.