text:
Esbuild ouput target does not match projects tsconfig target

I've discovered this issue when using optional chaining in my typescript code which is set to transpile down to ES2015 code in my tsconfig. However esbuild does not use this target so the actual output code is ES2020 or whatever default target esbuild has which includes optional chaining in the js bundle. This causes errors when invoke my lambda because Node 12 does not support optional chaining.
So a potential solution could be to read the projects tsconfig target and pass it into esbuild or allow for a target to be set via some other config.
Here's a repo I created with the issue recreated: https://github.com/SyedRFarhan/sst-esbuild-target-mismatch
Run this with Node 12 and invoke the function to recreate my issue.

@SyedRFarhan Thanks for reporting this. Can you share the step by step commands I need to run after git cloning your repo to reproduce the issue?

Set your environment to Node 12
npm run start
Make a get request to the lambda endpoint
An error should be printed to the terminal regarding the use of optional chaining syntax

Thanks @SyedRFarhan
Can you confirm this is the error you are getting on your side?
{ name: 'SyntaxError',
  message: 'Unexpected token .',
  stack:
   '/Users/frank/Sites/fwang/sst-esbuild-target-mismatch/.build/src/lambda.js:16
     return someObject?.anything ?? "does not exist";
                       ^

   SyntaxError: Unexpected token .
       at Module._compile (internal/modules/cjs/loader.js:723:23)
       at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
       at Module.load (internal/modules/cjs/loader.js:653:32)
       at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
       at Function.Module._load (internal/modules/cjs/loader.js:585:3)
       at Module.require (internal/modules/cjs/loader.js:692:17)
       at require (internal/modules/cjs/helpers.js:25:18)
       at getHandler (/Users/frank/Sites/fwang/sst-esbuild-target-mismatch/node_modules/@serverless-stack/cli/assets/lambda-invoke/bootstrap.js:87:15)
       at start (/Users/frank/Sites/fwang/sst-esbuild-target-mismatch/node_modules/@serverless-stack/cli/assets/lambda-invoke/bootstrap.js:32:15)
       at Object.<anonymous> (/Users/frank/Sites/fwang/sst-esbuild-target-mismatch/node_modules/@serverless-stack/cli/assets/lambda-invoke/bootstrap.js:26:1)'
}

@fwang
Yes, that's the error.

@SyedRFarhan Just had a look at this. This is a bug on our side. We are not explicitly setting the esbuild target right now. That said, I don't think esbuild uses the target set in the tsconfig.json. To ensure compatibility, we'll set the target globally to ES2015 for now.
https://github.com/evanw/esbuild/issues/277

Another quick fix is to use NodeJs 14.x instead of 10 or 12 (if possible) in the function runtime and in the dev environment. With this runtime, the new operators work in the handler at runtime

@ryanmalesic Yeah it does. Just tested this as well.

@SyedRFarhan This is fixed in release v0.9.5

Thanks for looking into this!

authors: SyedRFarhan fwang jayair ryanmalesic

repo: serverless-stack/serverless-stack


text:
chore: Release python base sdk v0.3.10

Related to https://linear.app/serverless/issue/SC-708/urgent-python-sdk-breaking-customers-functions#comment-369500ac

@medikoo ready for review please

source: gharchive/pull-request

repo: serverless/console

license: MIT

license_type: permissive

license_source: github-api


text:
Use of external resource ("functions", "events", etc) analysis of the specification v0.8

The specification has the definition below which is different from the example:

The functions property can be either an in-line function definition array, or an URI reference to a resource containing an array of functions definition. Referenced resource can be used by multiple workflow definitions.

Especification example
{
   "functions": [
      {
         "name":"HelloWorldFunction",
         "operation":"file://myapi.json#helloWorld"
      }
   ]
}

My interpretation about the specification, the sdk-net function definitions resource also use that
[
    {
       "name":"HelloWorldFunction",
       "operation":"file://myapi.json#helloWorld"
    }
 ]

My question which definition is correct? Should we define one of them or use both?

IMHO the second option is a JSON anti-pattern, when unmarshaling we would need to guess which struct to use.
my 2 cents:
{
   "functions": [
      {
         "name":"HelloWorldFunction",
         "operation":"file://myapi.json#helloWorld"
      }
   ]
}

and
{
   "functions": filr:///functions.yaml
}

this way we are compliant with the spec and it is clearer on which struct it is defining.

Issue closed because there are other discussions on the topic:
https://github.com/serverlessworkflow/specification/issues/691
https://github.com/serverlessworkflow/specification/issues/676
https://github.com/serverlessworkflow/specification/pull/701
Due to the discussions and for the purpose of PR: #159 I agree with:
{
    "functions": [
       {
          "name":"HelloWorldFunction",
          "operation":"myapi.json#helloWorld"
       }
    ]
}

source: gharchive/issue

authors: ribeiromiranda spolti

repo: serverlessworkflow/sdk-go


text:
Support Set type in model yaml

Is your feature request related to a problem? Please describe.
This works in a .spy.yaml (where FileType is a Serverpod enum):
  urls: Map<FileType, String>?

However, this does not work:
  uploadedTypes: Set<FileType>?

This gives the error The type "Set" cannot have generic types defined.
Probably Set<K> should be serialized to JSON as Map<K, bool>. I believe support was added to Serverpod recently to handle map keys of types other than String and int, so maybe this is supportable in a generic way now.
Or the set values could be stored as a JSON array, and added back to a Set on deserialization.

Related issue: https://github.com/serverpod/serverpod/issues/1784

Also, trying to call an endpoint with a Set-typed parameter gives the following failure (which is worse, because it is a runtime failure, it is not detected during serverpod generate):
Converting object to an encodable object failed: _Set len:1

Closing as duplicate of: https://github.com/serverpod/serverpod/issues/1784

authors: Isakdl SandPod lukehutch

repo: serverpod/serverpod


text:
🛑 UK SLOW DNS is down

In 016ba27, UK SLOW DNS (http://ukray.serverssh.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: UK SLOW DNS is back up in a6d0658.

repo: serversshnet/server-status


text:
🛑 dex.serverssh.net is down

In f10f353, dex.serverssh.net (dex.serverssh.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: dex.serverssh.net is back up in 1c54392.


text:
🛑 id1vless.ipservers.xyz is down

In 679de95, id1vless.ipservers.xyz (id1vless.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id1vless.ipservers.xyz is back up in f6069c1.

repo: serversshnet/uptime


text:
🛑 us1vless.ipservers.xyz is down

In f023931, us1vless.ipservers.xyz (us1vless.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: us1vless.ipservers.xyz is back up in 03edf58 after 3 days, 11 hours, 31 minutes.


text:
🛑 us2vless.ipservers.xyz is down

In f260c39, us2vless.ipservers.xyz (us2vless.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: us2vless.ipservers.xyz is back up in 40b068c after 2 days, 20 hours, 31 minutes.


text:
🛑 us1-30.ipservers.xyz is down

In b8a7676, us1-30.ipservers.xyz (us1-30.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: us1-30.ipservers.xyz is back up in cb1c7b4 after 38 minutes.


text:
🛑 sg2-ray.ipservers.xyz is down

In c4f8735, sg2-ray.ipservers.xyz (sg2-ray.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg2-ray.ipservers.xyz is back up in 2af707e.


text:
aws installation shows SEVERE error in logfile

[Build] 16.1 fix7 17.02.2017
[Steps to reproduce]

fill out properties files for aws
call ant -f build-db initDB
call ant -f build-glassfish.xml SETUP

[Expected result]
app DB is initialized and domain setup correctly
[Observed result]
app DB is setup ok; domain setup is successful, but the following SEVERE error occurs.
[Details]
The file configuration-attributes.properties looks strange, an extra blank is added in the continuation line:
attributes=server-config.java-config.classpath-suffix=${glassfish.classpath}#server.thread-pools.thread-pool.http-thread-pool.max-thread-pool-size=120#server.network-config.protocols.protocol.http-listener-1.http.xpowered-by=false#server.network-config.protocols.protocol.http-listener-2.http.xpowered-by=false#server.network-config.protocols.protocol.admin-listener.http.xpowered-by=false#configs.config.server-config.system-property.JMS_PROVIDER_PORT.value=${glassfish.app.domain.portbase}76#
server.jms-service.type=LOCAL
Logfile:
[2017-04-03T14:48:13.452+0200] [glassfish 4.1] [WARNING] [rardeployment.exception_on_invoke_setter] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1491223648511] [timeMillis: 1491223693452] [levelValue: 900] [[
RAR7096: Exception For input string: "${glassfish.app.domain.portbase}76" while trying to set the value ${glassfish.app.domain.portbase}76 on property BrokerPort ]]
[2017-04-03T14:48:13.452+0200] [glassfish 4.1] [SEVERE] [rardeployment.start_failed] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1491223648511] [timeMillis: 1491223693452] [levelValue: 1000] [[
RAR6035 : Resource adapter start failed.
com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Wrong parameters for pool creation : For input string: "${glassfish.app.domain.portbase}76"
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.loadRAConfiguration(ActiveOutboundResourceAdapter.java:332)
at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.loadRAConfiguration(ActiveJmsResourceAdapter.java:397)
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.init(ActiveOutboundResourceAdapter.java:115)
at com.sun.enterprise.connectors.inbound.ActiveInboundResourceAdapterImpl.init(ActiveInboundResourceAdapterImpl.java:90)
at com.sun.enterprise.connectors.ActiveRAFactory.instantiateActiveResourceAdapter(ActiveRAFactory.java:141)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:108)
at com.sun.enterprise.connectors.service.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:210)
at com.sun.enterprise.connectors.service.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:346)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:405)
at com.sun.enterprise.connectors.jms.system.JmsProviderLifecycle.initializeBroker(JmsProviderLifecycle.java:127)
at com.sun.enterprise.connectors.jms.system.JmsProviderLifecycle.postConstruct(JmsProviderLifecycle.java:106)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:326)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:374)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:228)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2072)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: For input string: "${glassfish.app.domain.portbase}76"
at com.sun.enterprise.connectors.util.SetMethodAction.handleException(SetMethodAction.java:151)
at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:128)
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.loadRAConfiguration(ActiveOutboundResourceAdapter.java:329)
... 23 more
Caused by: java.lang.NumberFormatException: For input string: "${glassfish.app.domain.portbase}76"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:569)
at java.lang.Integer.valueOf(Integer.java:766)
at com.sun.enterprise.deployment.EnvironmentProperty.getValueObjectUsingAllowedTypes(EnvironmentProperty.java:400)
at com.sun.enterprise.deployment.EnvironmentProperty.getObjectFromString(EnvironmentProperty.java:351)
at com.sun.enterprise.deployment.EnvironmentProperty.getResolvedValueObject(EnvironmentProperty.java:162)
at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:126)
... 24 more
]]
[2017-04-03T14:48:13.640+0200] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=20 _ThreadName=Thread-9] [timeMillis: 1491223693640] [levelValue: 1000] [[
com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Failed to start resource adapter : Wrong parameters for pool creation : For input string: "${glassfish.app.domain.portbase}76"
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.init(ActiveOutboundResourceAdapter.java:141)
at com.sun.enterprise.connectors.inbound.ActiveInboundResourceAdapterImpl.init(ActiveInboundResourceAdapterImpl.java:90)
at com.sun.enterprise.connectors.ActiveRAFactory.instantiateActiveResourceAdapter(ActiveRAFactory.java:141)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:108)
at com.sun.enterprise.connectors.service.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:210)
at com.sun.enterprise.connectors.service.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:346)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:405)
at com.sun.enterprise.connectors.jms.system.JmsProviderLifecycle.initializeBroker(JmsProviderLifecycle.java:127)
at com.sun.enterprise.connectors.jms.system.JmsProviderLifecycle.postConstruct(JmsProviderLifecycle.java:106)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:326)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:374)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:228)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2072)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: For input string: "${glassfish.app.domain.portbase}76"
at com.sun.enterprise.connectors.util.SetMethodAction.handleException(SetMethodAction.java:151)
at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:128)
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.loadRAConfiguration(ActiveOutboundResourceAdapter.java:329)
at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.loadRAConfiguration(ActiveJmsResourceAdapter.java:397)
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.init(ActiveOutboundResourceAdapter.java:115)
... 21 more
Caused by: java.lang.NumberFormatException: For input string: "${glassfish.app.domain.portbase}76"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:569)
at java.lang.Integer.valueOf(Integer.java:766)
at com.sun.enterprise.deployment.EnvironmentProperty.getValueObjectUsingAllowedTypes(EnvironmentProperty.java:400)
at com.sun.enterprise.deployment.EnvironmentProperty.getObjectFromString(EnvironmentProperty.java:351)
at com.sun.enterprise.deployment.EnvironmentProperty.getResolvedValueObject(EnvironmentProperty.java:162)
at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:126)
... 24 more]]

Checked on Glassfish4, Windows Server 2016, jdk1.8.0u121, build glassfish4_EE_UNIT#83 in SAML mode. The severe errors in logs do not occurs.

authors: SylviaDehn kwodzynski

repo: servicecatalog/development


text:
External webservice client is unable to connect to via http protocol

[Version]
OSCM 17.5 2017/10/25
Docker image with TomEE
[How to reproduce]
Use the WS_sampler tool and try to connect with WebServices in OSCM via http protocol (http://server-host-name:8080/webservices/)
[Expected result]
Be able to connect to the WebServices via external tool
[Observed result]
Client receives the follow error message:
Client received SOAP Fault from server: A security error was encountered when verifying the message Please see the server log to find more detail regarding exact cuase of the failure.com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:193)
[Details]
Logs in the server:
26-Oct-2017 14:54:24.563 WARNING [http-nio-8080-exec-2] org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.checkActions Security processing failed (actions mismatch)
26-Oct-2017 14:54:24.563 WARNING [http-nio-8080-exec-2] org.apache.cxf.phase.PhaseInterceptorChain.doDefaultLogging Interceptor for {http://oscm.org/xsd}SubscriptionService has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: A security error was encountered when verifying the message
at org.apache.cxf.ws.security.wss4j.WSS4JUtils.createSoapFault(WSS4JUtils.java:233)
at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:324)
at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:171)
at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:80)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:262)
at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:85)
at org.apache.openejb.server.webservices.WsServlet.service(WsServlet.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.wss4j.common.ext.WSSecurityException: An error was discovered processing the wsse:Security header
at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.checkActions(WSS4JInInterceptor.java:368)
at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:308)

I have added the org.oscm.security.SOAPSecurityHandler to my WSClient based on oscm-soap-mock and it works.

repo: servicecatalog/oscm


text:
Pretrained model of Decoder_text

Can you kindly provide the pre-trained model of Decoder_text?

The link to the pre-trained model is available in readme now.

repo: sesmae/ZOC


text:
New functionality: Mark folder as protected

Hello,
First of all, thank you for your dedication and effort in creating this app. It seems to me an excellent contribution.
The functionality that I indicate is the following. It would be possible to mark a folder as protected, in such a way that in order to access it or to see comics contained in it, a password or pattern is requested?
I indicate a possible use: If I have hentai comics I do not want my son to have access to them, since he uses my tablet also to read children's comics.
I think it would be a useful functionality.

@tomandocubatas Does your device have a fingerprint scanner? I wanted to add a feature that locks  server to fingerprints that are already registered to device.

@sethchhim Yes, my device have fingerprint scanner. I have a Samsung Galaxy Tab S2 y un Samsung Note 8.

Instead of securing folders I want to secure servers, it makes more sense. You will need a fingerprint to access the HOME and BROWSER tabs. I'm not sure how to handle downloaded items, I will figure it out. I can start writing it if you like this idea.

Hi, I like it.
To secure folders, the operation could be similar to the option to mark folder as a favorite. When accessing a folder you could mark that folder as safe, and from that moment you would have to use a pattern or password to access the contents of it or delete the security check.
The problem would then be in the home option, how to make sure you can see a secure comic.

On the ubooquity server you can create a new user with password and assign specific folders to that user. I will write it and if its bad we can change it.

Thanks.
The problem when two people access from the same device. In the application can only be accessed with a profile. Another option is that the application has the possibility of having several profiles controlled by a pattern or password.

This issue was harder than I thought. My latest solution was have a separate build flavor so you could have two apps installed, one "Kuboo" and one "Kuboo (Secure)". The secure one would require fingerprint every time you open or resume the app. I ran into some issues and need to pause this development for now. I need to work on the bugs and crashes first so it will be a long time, sorry.

Close for now. Maybe revisit later.

authors: sethchhim tomandocubatas

repo: sethchhim/Kuboo


text:
🛑 www.seungjin.net is down

In 6c61bfb, www.seungjin.net (https://www.seungjin.net) was down:

HTTP code: 500
Response time: 10983 ms

Resolved: www.seungjin.net is back up in 2030686.

repo: seungjin/uptime


text:
🛑 www.seungjin.net is down

In fc71da9, www.seungjin.net (https://www.seungjin.net) was down:

HTTP code: 424
Response time: 10496 ms

Resolved: www.seungjin.net is back up in 1ce6d01.


text:
Getting a whole chapter

Hi, first of all I want to thank you for making this API available to the public for free!
I notice that there are a few chapters that wont fetch all the verses. For example trying to get all the verses for 3 John 1 it will only get one verse from the chapter. While 1 John 1 gets all the verses

I am sorry about that, but I don't really have a good solution. Since 3 John is a single-chapter book, the chapter number is optional.
So just as 3 John 3 will return the third verse, 3 John 1 will return the first verse.
A bit more info here: https://github.com/seven1m/bible_api/issues/51#issuecomment-799456431

I suspect you found this issue because you are scraping the entire API to fetch all books and chapters, yes?
Might I suggest using the source data here instead: open-bibles

license: mit

license_source: bigquery


text:
能不能在排除语言中增加日语原作功能？

能不能在排除语言中增加日语原作功能？

网站上改不了，不过我试了下强行修改可以，等会儿我加入这个功能。

c4cd9653062e5b38734038c9005995bdb6704ae6


text:
🛑 URL shortener is down

In 1daf16c, URL shortener (https://svrnbrn.es) was down:

HTTP code: 502
Response time: 657 ms

Resolved: URL shortener is back up in c54460b.

repo: severnbronies/status


text:
Automatically select 'cursor' protocol for redshift-prefixed connection strings

A small backwards-compatible patch (no behaviour changes to any existing calls), that allows redshift-prefixed connection strings to select the correct protocol ("cursor") automatically, and proceed as if postgres. All other connections default to "binary", as before.

Hi @alexander-beedie , thanks for the PR! I have merge it and it will be in our next release (0.2.3). I'm also going to make an alpha release now so you can use it earlier. Will let you know once it's done.

@alexander-beedie the alpha version 0.2.3-alpha.2 is ready! Please feel free to try out.

@alexander-beedie the alpha version 0.2.3-alpha.2 is ready! Please feel free to try out.

Thanks - just tested; works like a charm... ;)

authors: alexander-beedie wangxiaoying

repo: sfu-db/connector-x


text:
🛑 Civitas RRHH is down

In a78d923, Civitas RRHH (http://civitas.catamarcaciudad.gob.ar:8080/GRH_CATA/forms/login.jsp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Civitas RRHH is back up in dc54628 after 13 minutes.

repo: sfvc/upptime


text:
🛑 Planos is down

In 6d6614a, Planos (https://correcciondeplanos.catamarcaciudad.gob.ar/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Planos is back up in 3fd137d.


text:
mutable.Map does now work like Map

Consider the following example:
import com.sfxcode.templating.pebble.ScalaPebbleEngine
import scala.collection.mutable

val engine = ScalaPebbleEngine(useStringLoader = true)

val map = Map("one" -> "1", "two" -> "2", "three" -> "3")
val context = Map("map" -> map)

val result = engine.evaluateToString("{{ map.values }}", context)
println(result)

The output is:
Iterable(1, 2, 3)

Now, if we replace val map = Map("one" -> "1", "two" -> "2", "three" -> "3") with val map = mutable.Map("one" -> "1", "two" -> "2", "three" -> "3"), the following exception is thrown:
java.lang.ExceptionInInitializerError
	at Main$.<clinit>(main.scala:16)
	at Main.main(main.scala)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at sbt.Run.invokeMain(Run.scala:143)
	at sbt.Run.execute$1(Run.scala:93)
	at sbt.Run.$anonfun$runWithLoader$5(Run.scala:120)
	at sbt.Run$.executeSuccess(Run.scala:186)
	at sbt.Run.runWithLoader(Run.scala:120)
	at sbt.Run.run(Run.scala:127)
	at com.olegych.scastie.sbtscastie.SbtScastiePlugin$$anon$1.$anonfun$run$1(SbtScastiePlugin.scala:38)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:21)
	at sbt.ScastieTrapExit$App.run(ScastieTrapExit.scala:258)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.NumberFormatException: For input string: "values"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseInt(Integer.java:668)
	at java.base/java.lang.Integer.parseInt(Integer.java:786)
	at scala.collection.StringOps$.toInt$extension(StringOps.scala:908)
	at com.sfxcode.templating.pebble.extension.ScalaResolver.resolve(ScalaResolver.scala:22)
	at io.pebbletemplates.pebble.node.expression.GetAttributeExpression.evaluate(GetAttributeExpression.java:83)
	at io.pebbletemplates.pebble.node.expression.FilterExpression.evaluate(FilterExpression.java:66)
	at io.pebbletemplates.pebble.node.PrintNode.render(PrintNode.java:37)
	at io.pebbletemplates.pebble.node.BodyNode.render(BodyNode.java:44)
	at io.pebbletemplates.pebble.node.RootNode.render(RootNode.java:31)
	at io.pebbletemplates.pebble.template.PebbleTemplateImpl.evaluate(PebbleTemplateImpl.java:157)
        ...

See the example here: https://scastie.scala-lang.org/YkFPnlmjS02TM5tEAMlGqQ

Fixed in Version 1.1.3

authors: arteme sfxcode

repo: sfxcode/pebble-scala


text:
Bump sglang-router to 0.0.5

Motivation

Modifications

Checklist

[ ] Format your code according to the Contributor Guide.
[ ] Add unit tests as outlined in the Contributor Guide.
[ ] Update documentation as needed, including docstrings or example tutorials.

@ByronHsu automatically trigger the release pypi workflow for sglang-router, similar to this? https://github.com/sgl-project/sglang/blob/79216908931c26e7c0f2dbe0429d1e8a94cb6149/.github/workflows/release-pypi.yml#L3-L7?

Sure I can update this after the router is more stable. I am battle testing with @yichuan520030910320 now

authors: ByronHsu merrymercy

repo: sgl-project/sglang


text:
chore: update vllm to 0.5.4

Thank you for your contribution, we really appreciate it. The following instructions will help improve your pull request and make it easier to receive feedback. If there are any items you don't understand, don't worry. Just submit the pull request and ask the maintainers for help.
Motivation
Please explain the motivation behind this PR and the goal you aim to achieve with it.
Modification
Briefly describe the changes made in this PR.
Checklist

Ensure pre-commit pre-commit run --all-files or other linting tools are used to fix potential lint issues.
Confirm that modifications are covered by complete unit tests. If not, please add more unit tests for correctness.
Modify documentation as needed, such as docstrings or example tutorials.

fix
ERROR:    [Errno 99] error while attempting to bind on address ('::1', 8157, 0, 0): cannot assign requested address

The tolerance in test/srt/models/test_causal_models.py has been increased from 2e-2 to 3e-2 in order to pass CI, and currently both eval and benchmark meet expectations.

Currently, all CIs have passed, I'll merge this PR first and expect to release a new tag today. Everyone currently needs to merge the latest code from the main branch into their PRs. Thanks. cc @merrymercy @Ying1123 @hnyls2002 @yichuan520030910320 @xiezhq-hermann


text:
Page qui sommes-nous ?

Pour reconnaissance: https://codepen.io/dudleystorey/pen/FvJDB

Juste avant que je me désabonne des notifications : PS est un acronyme et s'orthographie donc PS et non Ps :wink:
👋

merci !

@elizlp pourquoi tu as fermé cette issue ? La page à changé ?

Des petits détails oui, donc j'ai recréé une issue !

authors: Flightan MattiSG elizlp

repo: sgmap/open-academie-next


text:
Correct parameter type in documentation

To avoid compile error trait ReactComponentClass takes type parameters

Thanks for the PR, looks good to me! Not sure why Travis failed, but re-running it now.

Nailed the Travis failures down to an issue with bundlesize. Working to fix that now and once that's done we should be able to merge this!

authors: mcallisto shadaj

repo: shadaj/slinky


text:
DOCS: Improve navigation (especially mobile) with subnav

I would love to see some sort of subnav added so when you’re viewing something from a directory (like components) within the documentation, you can quickly browse around the other components without having to scroll all the way down in the sidebar
https://github.com/shadcn-ui/ui/assets/5913254/7a2c1e15-9651-4e6b-99ec-35dc8a1d0c7d

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

authors: brandonmcconnell shadcn

repo: shadcn-ui/ui


text:
Support for input attachments in vulkan

Here i am again, thanks again for the help with tangent space. Anyways, this time I'm doing a simple forward renderpass with a Z-Prepass. For now i just want to render the depth in the prepass, then use it as an input in the main renderpass and just do a grayscale of the scene.
Now my depth buffer is used as an input attachment for the main pass, but there is no such concept in Direct X, and thus also not in HLSL. Now would it be possible to make some kind of tag of sorts to directly pass it to glslang, or is there already something that i have overlooked?

If would certainly be possible, and consistent with the design of Slang, to introduce a type InputAttachment or similar that can be used to declare a shader input of the correct type for Vulkan, and which isn’t allowed/valid for D3D targets.
Unfortunately, the current contributors to Slang are unlikely to have time to prioritize adding that type. Most of our current users/customers are writing code that they want to use on both Vulkan and D3D so Vulkan-only features are the highest priority.
That said, pull requests are always welcome and I’d be happy to give guidance to somebody on where to look if they wanted to try adding this feature to the compiler.

Ok thanks for clarifying, maybe i will look into it later.

authors: Dynamitos tfoleyNV

repo: shader-slang/slang


text:
Pointer example on User Guide doesn't work

Problem description
The User Guide shows an example of how the memory pointer could work in Slang syntax.
But the example doesn't actually work, and it causes a SPIR-V Validation error.
Repro steps
The following test code is expected to compile and run, but it doesn't.
//TEST(compute, vulkan):SIMPLE(filecheck=SPV): -stage compute -entry computeMain -target spirv -emit-spirv-directly

//TEST_INPUT:set inputBuffer = ubuffer(data=[1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0], stride=4)
RWByteAddressBuffer inputBuffer;

//TEST_INPUT:ubuffer(data=[0], stride=4):out,name=outputBuffer
RWStructuredBuffer<float> outputBuffer;

struct MyType
{
    float a;
};

float test(MyType* pObj)
{
    MyType* pNext = pObj + 1;
    MyType* pNext2 = &pNext[1];
    return pNext.a + pNext->a + (*pNext2).a + pNext2[0].a;
}

[numthreads(1,1,1)]
void computeMain()
{
    MyType data[2];
    data[0] = inputBuffer.Load<MyType>(0);
    data[1] = inputBuffer.Load<MyType>(4);
    outputBuffer[0] = test(&data[0]);
}

When the issue is reproduced, the following output and error messages are observed,
$ build/Release/bin/slangc.exe -stage compute -entry computeMain -target spirv -emit-spirv-directly tests/gh-new.slang
; SPIR-V
; Version: 1.5
; Generator: Khronos; 40
; Bound: 62
; Schema: 0
               OpCapability VariablePointers
               OpCapability PhysicalStorageBufferAddresses
               OpCapability Int64
               OpCapability Shader
               OpExtension "SPV_KHR_storage_buffer_storage_class"
               OpExtension "SPV_KHR_variable_pointers"
               OpExtension "SPV_KHR_physical_storage_buffer"
               OpMemoryModel PhysicalStorageBuffer64 GLSL450
               OpEntryPoint GLCompute %computeMain "main" %inputBuffer %outputBuffer
               OpExecutionMode %computeMain LocalSize 1 1 1

               ; Debug Information
               OpSource Slang 1
               OpName %MyType "MyType"  ; id %6
               OpMemberName %MyType 0 "a"
               OpName %data "data"  ; id %11
               OpName %data "data"  ; id %11
               OpName %RWStructuredBuffer "RWStructuredBuffer"  ; id %17
               OpName %inputBuffer "inputBuffer"  ; id %20
               OpName %inputBuffer "inputBuffer"  ; id %20
               OpName %RWStructuredBuffer_0 "RWStructuredBuffer"  ; id %33
               OpName %outputBuffer "outputBuffer"  ; id %35
               OpName %outputBuffer "outputBuffer"  ; id %35
               OpName %pObj "pObj"  ; id %41
               OpName %pNext "pNext"  ; id %43
               OpName %pNext2 "pNext2"  ; id %46
               OpName %test "test"  ; id %37
               OpName %computeMain "computeMain"  ; id %2
               OpName %MyType_natural "MyType_natural"  ; id %38
               OpMemberName %MyType_natural 0 "a"

               ; Annotations
               OpMemberDecorate %MyType 0 Offset 0
               OpDecorate %_arr_MyType_int_2 ArrayStride 4
               OpDecorate %_runtimearr_float ArrayStride 4
               OpDecorate %RWStructuredBuffer Block
               OpDecorate %RWStructuredBuffer Block
               OpMemberDecorate %RWStructuredBuffer 0 Offset 0
               OpDecorate %inputBuffer Binding 0
               OpDecorate %inputBuffer DescriptorSet 0
               OpDecorate %RWStructuredBuffer_0 Block
               OpDecorate %RWStructuredBuffer_0 Block
               OpMemberDecorate %RWStructuredBuffer_0 0 Offset 0
               OpDecorate %outputBuffer Binding 1
               OpDecorate %outputBuffer DescriptorSet 0
               OpDecorate %_ptr_PhysicalStorageBuffer_MyType_natural ArrayStride 4
               OpDecorate %pObj Aliased
               OpDecorate %_ptr_PhysicalStorageBuffer_float ArrayStride 4
               OpMemberDecorate %MyType_natural 0 Offset 0

               ; Types, variables and constants
       %void = OpTypeVoid
          %3 = OpTypeFunction %void
      %float = OpTypeFloat 32
     %MyType = OpTypeStruct %float
        %int = OpTypeInt 32 1
      %int_2 = OpConstant %int 2
%_arr_MyType_int_2 = OpTypeArray %MyType %int_2
%_ptr_Function__arr_MyType_int_2 = OpTypePointer Function %_arr_MyType_int_2
%_ptr_Function_MyType = OpTypePointer Function %MyType
      %int_0 = OpConstant %int 0
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%_runtimearr_float = OpTypeRuntimeArray %float
%RWStructuredBuffer = OpTypeStruct %_runtimearr_float
%_ptr_StorageBuffer_RWStructuredBuffer = OpTypePointer StorageBuffer %RWStructuredBuffer
      %int_1 = OpConstant %int 1
       %uint = OpTypeInt 32 0
     %uint_0 = OpConstant %uint 0
%RWStructuredBuffer_0 = OpTypeStruct %_runtimearr_float
%_ptr_StorageBuffer_RWStructuredBuffer_0 = OpTypePointer StorageBuffer %RWStructuredBuffer_0
               OpTypeForwardPointer %_ptr_PhysicalStorageBuffer_MyType_natural PhysicalStorageBuffer
         %40 = OpTypeFunction %float %_ptr_PhysicalStorageBuffer_MyType_natural
       %long = OpTypeInt 64 1
     %long_1 = OpConstant %long 1
%_ptr_PhysicalStorageBuffer_float = OpTypePointer PhysicalStorageBuffer %float
%MyType_natural = OpTypeStruct %float
%_ptr_PhysicalStorageBuffer_MyType_natural = OpTypePointer PhysicalStorageBuffer %MyType_natural
%inputBuffer = OpVariable %_ptr_StorageBuffer_RWStructuredBuffer StorageBuffer
%outputBuffer = OpVariable %_ptr_StorageBuffer_RWStructuredBuffer_0 StorageBuffer

               ; Function computeMain
%computeMain = OpFunction %void None %3
          %4 = OpLabel
       %data = OpVariable %_ptr_Function__arr_MyType_int_2 Function
         %13 = OpAccessChain %_ptr_Function_MyType %data %int_0
         %16 = OpAccessChain %_ptr_StorageBuffer_float %inputBuffer %int_0 %int_0
         %21 = OpLoad %float %16
         %22 = OpCompositeConstruct %MyType %21
               OpStore %13 %22
         %24 = OpAccessChain %_ptr_Function_MyType %data %int_1
         %26 = OpAccessChain %_ptr_StorageBuffer_float %inputBuffer %int_0 %int_1
         %27 = OpLoad %float %26
         %28 = OpCompositeConstruct %MyType %27
               OpStore %24 %28
         %32 = OpAccessChain %_ptr_StorageBuffer_float %outputBuffer %int_0 %uint_0
         %36 = OpFunctionCall %float %test %13
               OpStore %32 %36
               OpReturn
               OpFunctionEnd

               ; Function test
       %test = OpFunction %float None %40
       %pObj = OpFunctionParameter %_ptr_PhysicalStorageBuffer_MyType_natural
         %42 = OpLabel
      %pNext = OpPtrAccessChain %_ptr_PhysicalStorageBuffer_MyType_natural %pObj %long_1
     %pNext2 = OpPtrAccessChain %_ptr_PhysicalStorageBuffer_MyType_natural %pNext %int_1
         %48 = OpAccessChain %_ptr_PhysicalStorageBuffer_float %pNext %int_0
         %49 = OpLoad %float %48 Aligned 4
         %50 = OpLoad %float %48 Aligned 4
         %51 = OpFAdd %float %49 %50
         %52 = OpAccessChain %_ptr_PhysicalStorageBuffer_float %pNext2 %int_0
         %53 = OpLoad %float %52 Aligned 4
         %54 = OpFAdd %float %51 %53
         %55 = OpPtrAccessChain %_ptr_PhysicalStorageBuffer_MyType_natural %pNext2 %int_0
         %56 = OpAccessChain %_ptr_PhysicalStorageBuffer_float %55 %int_0
         %57 = OpLoad %float %56 Aligned 4
         %58 = OpFAdd %float %54 %57
               OpReturnValue %58
               OpFunctionEnd
error: line 88: OpFunctionCall Argument <id> '13[%13]'s type does not match Function <id> '39[%_ptr_PhysicalStorageBuffer_MyType_natural]'s parameter type.
  %36 = OpFunctionCall %float %test %13

(0): internal error 99999: Validation of generated SPIR-V failed.

The error message sounds like there is a problem with how the "storage class" is set for the memory pointer.
"%_ptr_PhysicalStorageBuffer_MyType_natural" uses PhysicalStorageBuffer.
And "%_ptr_Function_MyType" uses Function

Your repro code, we are taking address of a local variable, and this is not allowed.
We can only accept pointers that are defined as shader parameters (e.g. as a constant buffer field), we can produce pointers using the & operator from something that is not in global memory.

In the future, we can extend our legalization passes to properly propagate pointer address space and specialize functions based on the address space of the argument, but this isn't implemented for SPIRV yet.
Our metal backend has logic for propagating and specializing address spaces, and we should generalize that logic to be shared among both spirv and metal backends.
Even when we have the IR pass support, we still want to decide whether or not to expose the ability to take address off a local variable. That usually leads to bad things so my preference is not to allow that.

Your repro code, we are taking address of a local variable, and this is not allowed. We can only accept pointers that are defined as shader parameters (e.g. as a constant buffer field), we can produce pointers using the & operator from something that is not in global memory.

Thank you for the reply.
Based on your comment, I made some adjustment and it started working.
//TEST(compute, vulkan):SIMPLE(filecheck=SPV): -stage compute -entry computeMain -target spirv -emit-spirv-directly

//TEST_INPUT:ubuffer(data=[0], stride=4):out,name=outputBuffer
RWStructuredBuffer<float> outputBuffer;

struct MyType
{
    float a;
};

float test(MyType* pObj)
{
    MyType* pNext = pObj + 1;
    MyType* pNext2 = &pNext[1];
    return pNext.a + pNext->a + (*pNext2).a + pNext2[0].a;
}

cbuffer Constants
{
    MyType *ptr; // <===== pointers defined as shader parameter
};

[numthreads(1,1,1)]
void computeMain()
{
    outputBuffer[0] = test(ptr);
}

It reminded me that Adam put "limitation" to the document, which I forgot to actually read until now.

Slang supports pointers to global memory, but not shared or local memory. For example, it is invalid to define a pointer to a local variable.
Coherent load/stores are unsupported
Custom alignment specification is unsupported.
Slang currently does not support pointers to immutable values, i.e. const T*.

I think we may need to add more to the document to include the information you mentioned.

Slang supports pointers that are defined as shader parameters (e.g. as a constant buffer field)
Slang can produce pointers using the & operator from something that is not in global memory

One thing that is little unclear to me is about the "not in global memory" part.
That sounds conflict to the other statement, "Slang supports pointers to global memory".
I am guessing, the pointer can point "to" global memory, but we cannot "produce" from global memory?
The repro code, which came from the User Guide, has the following line that produces a pointer,
    MyType* pNext2 = &pNext[1];

Isn't the pointer produced from the global memory?
I think pNext[1] without & is on the global memory because ptr from cbuffer was pointing to a global memory.
And an address is produced from pNext[1], which is a global memory, isn't it?

I think you want to say:
Slang can produce pointers using the & operator from things in global memory.

Basically, we have & operator, but the thing after & must be in global memory, and cannot be a local variable.

Closing. The examples are fine. Doc needs to be updated which was done ine #4248

authors: bmillsNV csyonghe jkwak-work


text:
MDL module compilation with Slang

A design document for this task is written by @cheneym2 .
This issue is to track the progress of the task.
In short, we want to compile MDL with Slang and see how much the compile time can be saved with the "module feature" of Slang.
The goal is to see the compile time difference.
We also like to see the runtime difference, but the scope of this task wouldn't extend to improve the performance even when it shows slower runtime.
The proposed approach consists of five subtasks.

Converting complex shaders from HLSL to Slang
Utilize existing slang-module capabilities in compilation
Benchmark compilation times
Write a sample renderer test case that utilize the above complex shader modules in a simple rendering application, which verifies correctness and runtime rendering performance
Add support for the embedded precompiled slang-module feature, measuring both compilation and runtime performance differences to the base slang-module case.

For the step 1, we need to figure out how to generate HLSL from MDL system and asses the complexity of the shader. If the complexity is not as high as we expected, we may need to reevaluate the approach of the task.
During the step 1, we may find a few bugs that Slang needs to iron out.
If the generated HLSL from MDL doesn't directly work with Slang, we will need to create new issues and address them properly rather than adding hacks and workaround.
For the step 4, we may be able to reuse an internal unit testing framework that MDL team might be using.
During the step 4, we will also need to evaluate the possibility of adopting the MDL testing framework in our CI like how we do for Falcor.

I am setting the estimate to 6 weeks (30 days).
Each sub task will roughly get 1 week.
@venkataram-nv should feel free to adjust as needed.
If this is not good for task tracking, we can create new issues for each sub task.
But github doesn't have ways to treat issues as subtasks and it may add confusion.

Venki found that there is an open source version of MDL SDK at github.
I found the followings after building and running the examples

An example, "examples/mdl_sdk/code_gen/Release/code_gen.exe", generates HLSL
An example, "examples/mdl_sdk/dxr/Release/dxr.exe", renders a scene at runtime.

I noticed that there are two examples trying to demonstrate "module".
I am not sure what kind of module it is about but it will be worth checking out.

examples/mdl_sdk/create_module/Release/create_module.exe
examples/mdl_sdk/modules/Release/modules.exe

When I built "RUN_TEST" project from MDL.sln, it runs unit tests.
I see that it runs 56 unit tests when I tried, which took about 1 minute 23 seconds on my machine.
The install instruction was not easy to follow, and I like to leave a few notes about it.

I had to use an exact commit ID for vcpkg repo, "fe1e9f5".
I had to add a line "set(VCPKG_PLATFORM_TOOLSET v143)" to a file, "triplets/x64-windows-static.cmake", in vcpkg repo.
I set an environment variable, set VCPKG_ROOT="C:\path\to\vcpkg, and I also added the same path to Path variable.
I installed boost and openimageio with the following commands,

vcpkg install --triplet=x64-windows-static boost-any
vcpkg install --triplet=x64-windows-static boost-uuid
vcpkg install --triplet=x64-windows-static openimageio[gif,openjpeg,tools,webp]

I install a latest Python 3.12.4 from python.org
I installed LLVM 12.0.1 from llvm.org
I downloaded DXC from its release page

When I got to the point where I can run cmake-gui, I also had to deal with errors.

When I clicked on "Configure", I got an error about CMAKE_TOOLCHAIN_FILE. I had to set it to be "C:\path\to\vcpkg\scripts/buildsystems/vcpkg.cmake" inside of the cmake-gui UI.
When I clicked on "Configure" again, it gave me errors again. I had to uncheck the following check boxes,

MDL_BUILD_DOCUMENTATION
MDL_ENABLE_CUDA_EXAMPLES
MDL_ENABLE_OPENGL_EXAMPLES
MDL_ENABLE_VULKAN_EXAMPLES
MDL_ENABLE_QT_EXAMPLES

I had to set DXC_DIR to where the downloaded DXC files are unzipped at.

I am uploading a screenshot from "examples/mdl_sdk/dxr/Release/dxr.exe" as a quick reference.

Here is a unit test result as another quick reference.
I am not sure why one of the tests is failing,
16:59:35:652	1>------ Build started: Project: RUN_TESTS, Configuration: Release x64 ------
16:59:36:337	1>1>
16:59:36:734	1>Test project D:/sbf/git/mdl/MDL-SDK/build/vs2022
16:59:36:908	1>      Start  1: prod-test-base-test
16:59:36:979	1> 1/56 Test  #1: prod-test-base-test ............................   Passed    0.03 sec
16:59:36:979	1>      Start  2: prod-test-math-test
16:59:37:111	1> 2/56 Test  #2: prod-test-math-test ............................   Passed    0.17 sec
16:59:37:111	1>      Start  3: base-data-attr-test
16:59:37:175	1> 3/56 Test  #3: base-data-attr-test ............................   Passed    0.05 sec
16:59:37:175	1>      Start  4: base-data-dblight-test
16:59:37:490	1> 4/56 Test  #4: base-data-dblight-test .........................   Passed    0.32 sec
16:59:37:552	1>      Start  5: base-data-serial-test
16:59:37:552	1> 5/56 Test  #5: base-data-serial-test ..........................   Passed    0.05 sec
16:59:37:552	1>      Start  6: base-data-thread_pool-test
16:59:49:312	1> 6/56 Test  #6: base-data-thread_pool-test .....................   Passed   11.77 sec
16:59:49:312	1>      Start  7: base-hal-disk-test
16:59:49:411	1> 7/56 Test  #7: base-hal-disk-test .............................   Passed    0.10 sec
16:59:49:470	1>      Start  8: base-hal-hal-test
16:59:49:470	1> 8/56 Test  #8: base-hal-hal-test ..............................   Passed    0.04 sec
16:59:49:470	1>      Start  9: base-hal-thread-test
16:59:49:530	1> 9/56 Test  #9: base-hal-thread-test ...........................   Passed    0.02 sec
16:59:49:530	1>      Start 10: base-hal-time-test
16:59:53:316	1>10/56 Test #10: base-hal-time-test .............................   Passed    3.84 sec
16:59:53:385	1>      Start 11: base-lib-config-test
16:59:53:385	1>11/56 Test #11: base-lib-config-test ...........................   Passed    0.05 sec
16:59:53:386	1>      Start 12: base-lib-cont-test
16:59:53:445	1>12/56 Test #12: base-lib-cont-test .............................   Passed    0.03 sec
16:59:53:445	1>      Start 13: base-lib-mem-test
16:59:53:445	1>13/56 Test #13: base-lib-mem-test ..............................   Passed    0.03 sec
16:59:53:445	1>      Start 14: base-lib-path-test
16:59:53:506	1>14/56 Test #14: base-lib-path-test .............................   Passed    0.03 sec
16:59:53:506	1>      Start 15: base-util-string_utils-test
16:59:53:506	1>15/56 Test #15: base-util-string_utils-test ....................   Passed    0.03 sec
16:59:53:506	1>      Start 16: base-system-main-test
16:59:53:566	1>16/56 Test #16: base-system-main-test ..........................   Passed    0.04 sec
16:59:53:566	1>      Start 17: base-system-main-test_impl1_only
16:59:53:627	1>17/56 Test #17: base-system-main-test_impl1_only ...............   Passed    0.03 sec
16:59:53:627	1>      Start 18: base-system-stlext-test
16:59:53:627	1>18/56 Test #18: base-system-stlext-test ........................   Passed    0.04 sec
16:59:53:627	1>      Start 19: base-system-test-test_self
16:59:53:686	1>19/56 Test #19: base-system-test-test_self .....................   Passed    0.04 sec
16:59:53:686	1>      Start 20: io-image-image-test_access_canvas
16:59:54:362	1>20/56 Test #20: io-image-image-test_access_canvas ..............   Passed    0.70 sec
16:59:54:425	1>      Start 21: io-image-image-test_access_mipmap
16:59:54:813	1>21/56 Test #21: io-image-image-test_access_mipmap ..............   Passed    0.45 sec
16:59:54:878	1>      Start 22: io-image-image-test_dds
16:59:55:684	1>22/56 Test #22: io-image-image-test_dds ........................   Passed    0.87 sec
16:59:55:738	1>      Start 23: io-image-image-test_huge_tiles
17:00:00:406	1>23/56 Test #23: io-image-image-test_huge_tiles .................   Passed    4.72 sec
17:00:00:470	1>      Start 24: io-image-image-test_import_export
17:00:34:163	1>24/56 Test #24: io-image-image-test_import_export ..............   Passed   33.75 sec
17:00:34:227	1>      Start 25: io-image-image-test_mipmap
17:00:34:979	1>25/56 Test #25: io-image-image-test_mipmap .....................   Passed    0.81 sec
17:00:34:979	1>      Start 26: io-image-image-test_module
17:00:35:397	1>26/56 Test #26: io-image-image-test_module .....................Exit code 0xc0000409
17:00:35:397	1>***Exception:   0.41 sec
17:00:35:397	1>      Start 27: io-image-image-test_pixel_conversion
17:00:35:973	1>27/56 Test #27: io-image-image-test_pixel_conversion ...........   Passed    0.58 sec
17:00:36:035	1>      Start 28: io-image-image-test_pixel_conversion_sse
17:00:36:765	1>28/56 Test #28: io-image-image-test_pixel_conversion_sse .......   Passed    0.79 sec
17:00:36:835	1>      Start 29: io-image-image-test_quantization
17:00:36:835	1>29/56 Test #29: io-image-image-test_quantization ...............   Passed    0.04 sec
17:00:36:835	1>      Start 30: io-scene-bsdf_measurements-test
17:00:37:120	1>30/56 Test #30: io-scene-bsdf_measurements-test ................   Passed    0.31 sec
17:00:37:120	1>      Start 31: io-scene-mdl_elements-test_types
17:00:37:407	1>31/56 Test #31: io-scene-mdl_elements-test_types ...............   Passed    0.28 sec
17:00:37:407	1>      Start 32: io-scene-mdl_elements-test_values
17:00:37:701	1>32/56 Test #32: io-scene-mdl_elements-test_values ..............   Passed    0.29 sec
17:00:37:754	1>      Start 33: io-scene-mdl_elements-test_expressions
17:00:37:996	1>33/56 Test #33: io-scene-mdl_elements-test_expressions .........   Passed    0.29 sec
17:00:38:055	1>      Start 34: io-scene-mdl_elements-test_misc
17:00:38:551	1>34/56 Test #34: io-scene-mdl_elements-test_misc ................   Passed    0.55 sec
17:00:38:613	1>      Start 35: io-scene-dbimage-test
17:00:39:869	1>35/56 Test #35: io-scene-dbimage-test ..........................   Passed    1.26 sec
17:00:39:869	1>      Start 36: prod-lib-mdl_sdk-test_class_factory
17:00:40:307	1>36/56 Test #36: prod-lib-mdl_sdk-test_class_factory ............   Passed    0.49 sec
17:00:40:307	1>      Start 37: prod-lib-mdl_sdk-test_db_elements
17:00:40:689	1>37/56 Test #37: prod-lib-mdl_sdk-test_db_elements ..............   Passed    0.38 sec
17:00:40:754	1>      Start 38: prod-lib-mdl_sdk-test_idebug_configuration
17:00:41:099	1>38/56 Test #38: prod-lib-mdl_sdk-test_idebug_configuration .....   Passed    0.36 sec
17:00:41:099	1>      Start 39: prod-lib-mdl_sdk-test_ifactory
17:00:41:464	1>39/56 Test #39: prod-lib-mdl_sdk-test_ifactory .................   Passed    0.41 sec
17:00:41:522	1>      Start 40: prod-lib-mdl_sdk-test_i18n
17:00:42:164	1>40/56 Test #40: prod-lib-mdl_sdk-test_i18n .....................   Passed    0.70 sec
17:00:42:218	1>      Start 41: prod-lib-mdl_sdk-test_iimage
17:00:42:581	1>41/56 Test #41: prod-lib-mdl_sdk-test_iimage ...................   Passed    0.41 sec
17:00:42:581	1>      Start 42: prod-lib-mdl_sdk-test_ilogging_configuration
17:00:43:013	1>42/56 Test #42: prod-lib-mdl_sdk-test_ilogging_configuration ...   Passed    0.39 sec
17:00:43:013	1>      Start 43: prod-lib-mdl_sdk-test_imdl_configuration
17:00:43:278	1>43/56 Test #43: prod-lib-mdl_sdk-test_imdl_configuration .......   Passed    0.30 sec
17:00:43:333	1>      Start 44: prod-lib-mdl_sdk-test_imdl_module
17:00:46:139	1>44/56 Test #44: prod-lib-mdl_sdk-test_imdl_module ..............   Passed    2.86 sec
17:00:46:195	1>      Start 45: prod-lib-mdl_sdk-test_ineuray
17:00:46:580	1>45/56 Test #45: prod-lib-mdl_sdk-test_ineuray ..................   Passed    0.38 sec
17:00:46:580	1>      Start 46: prod-lib-mdl_sdk-test_itransaction
17:00:46:911	1>46/56 Test #46: prod-lib-mdl_sdk-test_itransaction .............   Passed    0.39 sec
17:00:46:978	1>      Start 47: prod-lib-mdl_sdk-test_neuray_factory
17:00:47:624	1>47/56 Test #47: prod-lib-mdl_sdk-test_neuray_factory ...........   Passed    0.71 sec
17:00:47:690	1>      Start 48: prod-lib-mdl_sdk-test_set_get
17:00:48:018	1>48/56 Test #48: prod-lib-mdl_sdk-test_set_get ..................   Passed    0.39 sec
17:00:48:080	1>      Start 49: prod-lib-mdl_sdk-test_target_materials
17:00:48:413	1>49/56 Test #49: prod-lib-mdl_sdk-test_target_materials .........   Passed    0.39 sec
17:00:48:472	1>      Start 50: prod-lib-mdl_sdk-test_types
17:00:48:821	1>50/56 Test #50: prod-lib-mdl_sdk-test_types ....................   Passed    0.41 sec
17:00:48:878	1>      Start 51: prod-lib-mdl_sdk-test_types_array
17:00:49:202	1>51/56 Test #51: prod-lib-mdl_sdk-test_types_array ..............   Passed    0.38 sec
17:00:49:268	1>      Start 52: prod-lib-mdl_sdk-test_types_compound
17:00:49:669	1>52/56 Test #52: prod-lib-mdl_sdk-test_types_compound ...........   Passed    0.40 sec
17:00:49:669	1>      Start 53: prod-lib-mdl_sdk-test_types_map
17:00:50:001	1>53/56 Test #53: prod-lib-mdl_sdk-test_types_map ................   Passed    0.40 sec
17:00:50:001	1>      Start 54: prod-lib-mdl_sdk-test_types_at_api_boundary
17:00:50:336	1>54/56 Test #54: prod-lib-mdl_sdk-test_types_at_api_boundary ....   Passed    0.33 sec
17:00:50:336	1>      Start 55: prod-lib-mdl_sdk-test_unique_IIDs
17:00:51:127	1>55/56 Test #55: prod-lib-mdl_sdk-test_unique_IIDs ..............   Passed    0.79 sec
17:00:51:127	1>      Start 56: prod-bin-mdltlc-test_basics
17:00:58:010	1>56/56 Test #56: prod-bin-mdltlc-test_basics ....................   Passed    6.88 sec
17:00:58:065	1>
17:00:58:065	1>98% tests passed, 1 tests failed out of 56
17:00:58:065	1>
17:00:58:066	1>Label Time Summary:
17:00:58:066	1>unit_test    =  80.98 sec*proc (56 tests)
17:00:58:066	1>
17:00:58:066	1>Total Test time (real) =  81.29 sec
17:00:58:066	1>
17:00:58:066	1>The following tests FAILED:
17:00:58:066	1>	 26 - io-image-image-test_module (Exit code 0xc0000409
17:00:58:066	1>)

I am attaching a generated HLSL from "examples/mdl_sdk/code_gen/Release/code_gen.exe" as another quick reference.
code_gen.hlsl.txt

I found a more formal document about what MDL is.
https://github.com/NVIDIA/MDL-SDK/blob/master/doc/specification/MDL_spec_1.8.2_24May2023.pdf

After taking a closer at the DXR example, it seems that the code_gen output is far from enough to get a compiled final output. In the DXR program they generate a lot of code on the fly which is plugged into the shader source code. Perhaps we have use the DXR program as a base for the rendering test, since we may need to hijack it to use slang code from generation itself to get a full set of compatible slang shaders.

Got a set of shaders to compile with slang with no modification whatsover (e.g. compiling as HLSL rather than slang).

Now I have manged to slangify the initial HLSL code so that it uses slang modules (via import declarations). The files can be seen here. There may be a question of whether this is sufficiently complex, since the compile time seems (at least at a glance) to be quite fast already. We could also generate multiple materials (there are a few files which are common to all) and benchmark separate compilation.

After rearranging and separating the source code a little bit, I have gotten a version of shaders where I can separately compile each into individual modules and then compile them all into a single unit (see the compiled-modules.sh file). I also did some very coarse timings on slangc and there indeed seems to be an improvement in using modules over monolothic sources:
compiling altogether:

modules/types.slang-module
modules/shading.slang-module
modules/runtime.slang-module
modules/mdl.slang-module
modules/material.slang-module
modules/hit.slang-module
modules/environment.slang-module
modules/enumerations.slang-module
modules/common.slang-module
modules/buffers.slang-module

real    0m0.202s
user    0m0.172s
sys     0m0.030s

monolithic compilation:

real    0m0.297s
user    0m0.286s
sys     0m0.010s

The compilation times for each unit are not shown here.

Got some updated compile time timings by adding some modifications to the slangc related functions. Each time slangc is called there is an additional ~0.1 seconds needed to initialize the global state of the compiler. including loading the std lib functions which takes the longest (99%).
An additional modification is that the hit.slang shader is compiled into separate modules for each stage.
The timings for each RTX shader stage are shown in the table below:

Monolithic
Modules
Speed up

Closest hit
0.140s
0.290s
2.07x

Any hit
0.053s
0.201s
3.79x

Shadow hit
0.052s
0.196s
3.76x

The complete output (with all stages and compiles) is as follows:
===========================
file: buffers.slang
===========================
                             create_global_session: 0.119s
                                         spCompile: 0.060s
                                       slangc_main: 0.195s

===========================
file: common.slang
===========================
                             create_global_session: 0.105s
                                         spCompile: 0.032s
                                       slangc_main: 0.152s

===========================
file: enumerations.slang
===========================
                             create_global_session: 0.106s
                                         spCompile: 0.006s
                                       slangc_main: 0.128s

===========================
file: environment.slang
===========================
                             create_global_session: 0.105s
                                         spCompile: 0.045s
                                       slangc_main: 0.165s

===========================
file: hit.slang
===========================

Closest hit shader:
                             create_global_session: 0.120s
                                         spCompile: 0.190s
                                       slangc_main: 0.330s
Any hit shader:
                             create_global_session: 0.113s
                                         spCompile: 0.150s
                                       slangc_main: 0.284s
Shadow hit shader:
                             create_global_session: 0.116s
                                         spCompile: 0.151s
                                       slangc_main: 0.286s

===========================
file: material.slang
===========================
                             create_global_session: 0.112s
                                         spCompile: 0.110s
                                       slangc_main: 0.248s

===========================
file: mdl.slang
===========================
                             create_global_session: 0.111s
                                         spCompile: 0.015s
                                       slangc_main: 0.144s

===========================
file: runtime.slang
===========================
                             create_global_session: 0.112s
                                         spCompile: 0.108s
                                       slangc_main: 0.241s

===========================
file: shading.slang
===========================
                             create_global_session: 0.117s
                                         spCompile: 0.002s
                                       slangc_main: 0.134s

===========================
file: types.slang
===========================
                             create_global_session: 0.111s
                                         spCompile: 0.007s
                                       slangc_main: 0.134s

===========================
compiling altogether:
===========================

modules/types.slang-module
                modules/shading.slang-module
                modules/runtime.slang-module
                modules/mdl.slang-module
                modules/material.slang-module
                modules/closesthit.slang-module
                modules/anyhit.slang-module
                modules/shadow.slang-module
                modules/environment.slang-module
                modules/enumerations.slang-module
                modules/common.slang-module
                modules/buffers.slang-module

Closest hit shader:
                             create_global_session: 0.117s
                                         spCompile: 0.140s
                                       slangc_main: 0.299s
Any hit shader:
                             create_global_session: 0.114s
                                         spCompile: 0.053s
                                       slangc_main: 0.210s
Shadow hit shader:
                             create_global_session: 0.110s
                                         spCompile: 0.052s
                                       slangc_main: 0.213s

===========================
monolithic compilation:
===========================

Closest hit shader:
                             create_global_session: 0.104s
                                         spCompile: 0.290s
                                       slangc_main: 0.415s
Any hit shader:
                             create_global_session: 0.117s
                                         spCompile: 0.201s
                                       slangc_main: 0.338s
Shadow hit shader:
                             create_global_session: 0.117s
                                         spCompile: 0.196s
                                       slangc_main: 0.335s

For verification purposes, here are the storage sizes for each module:
[4.0K]  modules
├── [123K]  anyhit.slang-module
├── [ 33K]  buffers.slang-module
├── [123K]  closesthit.slang-module
├── [ 70K]  common.slang-module
├── [111K]  enumerations.slang-module
├── [ 50K]  environment.slang-module
├── [ 98K]  material.slang-module
├── [ 48K]  mdl.slang-module
├── [461K]  runtime.slang-module
├── [ 11K]  shading.slang-module
├── [123K]  shadow.slang-module
└── [ 46K]  types.slang-module

Considering that the *hit.slang-module sizes are similar, it is likely that hit.slang can be separated into at least another file.

I think the result looks very promising.
If I understood the comment above correctly, a big portion of the compile time is for loading stdlib.
Can you figure out if it is currently possible to load stdlib only once and execute compilations for multiple outputs?
If not, we need to file an issue to make it possible.

I think we can at least make everything in the benchmark app using the same IGlobalSession, to get rid of that global session creation time.

authors: csyonghe jkwak-work venkataram-nv


text:
SP004: implement initialize list translation to ctor

First PR for #5192.
This is the first change to implement part of SP004, what this change does:

We synthesize a member-wise constructor for each struct follow the rules described in SP004.

Add logic to translate the initialize list to constructor invoke

TODO: what needs to be done next

We didn't fill the body of the synthesized constructor

This is relative easy task.

The fall back to legacy initialize list logic is not done

I found out that it's straight forward to put this logic after ResolveInvoke() call, because after ResolveInvoke() we will need to do a final 'coerce()' check to determine whether the candidate is applicable to use. If that fails, we can do the C-Style struct check and fall back to legacy logic.

Should we enable this for stdlib as well?

Our stdlib has some syntax that external users cannot use, so whether this change could break anything is unknown for now. It needs some extra effort to investigate and debugging the potential compile issue.

I rebase this PR to my another PR #5231 which just refactor the logic of synthesizing the body of the default constructor.
This will make my next implementation easier.

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

authors: CLAassistant kaizhangNV


text:
Fix bitwise And & Or for scalar bool

These operations need to be converted to logical And & Or for scalars
TODO: handle the bvec case by converting them to uvec

It looks like AppVeyor somehow didn't pick up on this PR.
I'm going to go ahead and merge it and then deal with the fallout after the fact if anything breaks.

authors: chuckgenome tfoleyNV


text:
Can cetcd add/delete watch dynamically?

In example/multi_watch.c, I see the code that initialize count of watchers before watch. But if the watcher and path are dynamic, how to handle it? Do I must  cetcd_multi_watch_async_stop first,  cetcd_add_watcher and cetcd_multi_watch_async again?
    cetcd_array_init(&watchers, 3);
    cetcd_add_watcher(&watchers, cetcd_watcher_create(&cli, "/test/watch", 0, 1, 1, watch, NULL));
    cetcd_add_watcher(&watchers, cetcd_watcher_create(&cli, "/test/watch", 0, 1, 1, watch, NULL));
    cetcd_add_watcher(&watchers, cetcd_watcher_create(&cli, "/test/watch", 0, 1, 1, watch, NULL));
    wid = cetcd_multi_watch_async(&cli, &watchers);
    while(!quit) {
        usleep(10000);
    }
    cetcd_multi_watch_async_stop(&cli, wid);

You can stop a watcher using cetcd_stop_watcher. A stopped watcher will be reaped by cetcd_reap_watchers.

authors: YuleiXiao shafreeck

repo: shafreeck/cetcd


text:
Preroll fails with VMAP, if autoplay is disabled

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
4.3.0.
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from main?
Yes
Are you using the demo app or your own custom app?
Tried with both
If custom app, can you reproduce the issue using our demo app?
Yes -
What browser and OS are you using?
Windows 10, Chrome
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
What are the manifest and license server URIs?

Doesn't matter; tested with https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd
What configuration are you using?  What is the output of player.getConfiguration()?

What did you do?

In the demo site, it's enough to insert Manifest URL and samle Ad TAG URL. I used IMA sample tag from Google ( https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/tags ).
VMAP - Pre-roll Single Ad, Mid-roll Standard Pod with 3 ads, Post-roll Single Ad
https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/vmap_ad_samples&sz=640x480&cust_params=sample_ar%3Dpremidpostpod&ciu_szs=300x250&gdfp_req=1&ad_rule=1&output=vmap&unviewed_position_start=1&env=vp&impl=s&cmsid=496&vid=short_onecue&correlator=
What did you expect to happen?
Preroll should play first
What actually happened?

If autoplay is allowed, everything works as expected.
If autoplay is not allowed (or is disabled) preroll ads won't play. Post- and midrolls play well.
Ads get showed for few ms, then player pauses (but the state is still play; at least the button on the control bar is "pause" instead of "play").
Easy way to reproduce this is to refresh demo page with video open.
Seems to be related to https://github.com/shaka-project/shaka-player/issues/4179

Nope, still has problems.
When autoplay is not enabled, but video has preroll ads, then ads still try to autoplay and thus fail.
If autoplay is allowed by browser or video is muted, then everyting works.
Quick fix would be to load videos after video has started playing:
eventManager.listenOnce(video, play, () => {           adManager.requestClientSideAds(adsRequest);         });

repo: shaka-project/shaka-player


text:
chore: add ps4 in platform list, always polyfill mediaCapabilities for ps4 (#4315)

This PR adds PS4 to the platform list, fixes an issue where ps4 was identified as an apple device/browser and explicitly sets the condition for installation of the mediaCapabilities polyfill for ps4, as its native implementation does not exist.
Contributes to: #4315

@bcupac Did you test this with new WebMAF 3.0? or are you working with 2.x?

its for version 3.0.1

authors: agajassi bcupac


text:
Client rendering crashes when calling react_component twice in a rails view/partial

Calling react_component twice in a rails view/partial causes the client render to crash with the following error:
Could not find component registered with name XXX. Registered component names include [ YYY ]. Maybe you forgot to register the component?

VM4859 clientStartup.js:132 Uncaught Error: ReactOnRails encountered an error while rendering component: XXX. See above error message.
    at Object.get (ComponentRegistry.js:40:15)
    at Object.getComponent (ReactOnRails.js:211:44)
    at render (VM4859 clientStartup.js:103:53)
    at forEachReactOnRailsComponentRender (VM4859 clientStartup.js:138:9)
    at reactOnRailsPageLoaded (VM4859 clientStartup.js:164:5)
    at renderInit (VM4859 clientStartup.js:205:9)
    at onPageReady (VM4859 clientStartup.js:234:9)
    at HTMLDocument.onReadyStateChange (VM4859 clientStartup.js:238:13)

= react_component("XXX", props: @props)
= yield
= react_component("YYY", props: @props)

Environment

Ruby version: 3.1
Rails version: 7.0.6
Shakapacker version: 6.6.0
React on Rails version: 13.3.5

Expected behavior
Should render both components.
Actual behavior
Crashes on the client with the aforementioned error/stacktrace.

Seem related to either a configuration issue or maybe using the dynamic bundle loading and the bundles are loaded twice. Check out the source of the pages.

I had this issue once and the solution was to change the defer strategy to false
<%= javascript_pack_tag 'app', defer: false%>
With the defer equals to false the script is executed as soon as it's encountered in the document, which might block the HTML parsing until the script is fully loaded and executed

Thanks for the comments @justin808 and @devjoaov.
After digging into this issue with the help of @justin808 and @Judahmeek, we found out that the root cause was a tweak in the webpack's optimization configuration. Setting optimization.runtimeChunk to true or multiple causes webpack to load ReactOnRails one time for each runtime chunk which leads to ReactOnRails global variable being overridden and some registered components going missing - see https://webpack.js.org/configuration/optimization/#optimizationruntimechunk.
So, to overcome this issue, we could use shakapacker's default optimization configuration (pseudo-code):
const { webpackConfig: baseClientWebpackConfig } = require('shakapacker');

// ...

config.optimization = baseClientWebpackConfig.optimization;

As it set the optimization.runtimeChunk to single. See its source:
package/environments/base.js:115
  optimization: {
    splitChunks: { chunks: 'all' },

    runtimeChunk: 'single'
  },

https://github.com/shakacode/shakapacker/blob/cdf32835d3e0949952b8b4b53063807f714f9b24/package/environments/base.js#L115-L119
Or set optimization.runtimeChunk to single directly.

authors: devjoaov justin808 rubenochiavone


text:
🛑 Shakedown Social - Uploads is down

In 2c5f6a3, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 517 ms

Resolved: Shakedown Social - Uploads is back up in dd993ec.

repo: shakedown-social/upptime


text:
🛑 Shakedown Social - Uploads is down

In 792a314, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/c83dff7e175cde04.png) was down:

HTTP code: 404
Response time: 272 ms

Resolved: Shakedown Social - Uploads is back up in c66c9bb after .


text:
Object of class Textpress\Tag could not be converted to string

Hi shameerc,
I extended layout_home.php to get the tags displayed

 $tag) {
		echo ''. $tag .'';
	}
	?>

===
Now I receive following error message:
Details
Type: ErrorException
Code: 4096
Message: Object of class Textpress\Tag could not be converted to string
File: /var/www/nginx/sitename/blog/themes/centum/layout_home.php
Line: 230
Trace
#0 /var/www/nginx/sitename/blog/themes/centum/layout_home.php(230): Slim\Slim::handleErrors(4096, 'Object of class...', '/var/www/nginx/...', 230, Array)
#1 /var/www/nginx/sitename/blog/src/shameerc/Textpress/View.php(107): require('/var/www/nginx/...')
#2 /var/www/nginx/sitename/blog/vendor/slim/slim/Slim/View.php(255): Textpress\View->render('index', NULL)
#3 /var/www/nginx/sitename/blog/src/shameerc/Textpress/View.php(82): Slim\View->fetch('index', NULL)
#4 /var/www/nginx/sitename/blog/vendor/slim/slim/Slim/Slim.php(757): Textpress\View->display('index')
#5 /var/www/nginx/sitename/blog/src/shameerc/Textpress/Textpress.php(645): Slim\Slim->render('index', Array)
#6 /var/www/nginx/sitename/blog/src/shameerc/Textpress/Textpress.php(442): Textpress\Textpress->render('index')
#7 [internal function]: Textpress{closure}()
#8 /var/www/nginx/sitename/blog/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Object(Closure), Array)
#9 /var/www/nginx/sitename/blog/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()
#10 /var/www/nginx/sitename/blog/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#11 /var/www/nginx/sitename/blog/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#12 /var/www/nginx/sitename/blog/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#13 /var/www/nginx/sitename/blog/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#14 /var/www/nginx/sitename/blog/src/shameerc/Textpress/Textpress.php(655): Slim\Slim->run()
#15 /var/www/nginx/sitename/blog/index.php(31): Textpress\Textpress->run()
#16 {main}
The layout_home.php is for tags is similar with the one for categories. How can I correct the error?
Best regards

Each tag is an object of class Tag, with name and count attribute. An example use is echo $tag->name . '  (' . $tag->count .')'; to show the name and count.
Also see how it is used in article.php template file. https://github.com/shameerc/TextPress/blob/master/themes/textpress/article.php#L18

Thanks shameerc,
it did work.
You may consider including the tags into layout.php and layout_home.php. I did adjust a little bit the syntax because in your example I got only the tags specific to the opened article.
<?php
    foreach ($global['tags'] as $slug => $tag) {
        echo '' , $tag->name , "";
    }
?>

Good suggestion. Thanks!
I might also want to add a __toString() for tags

authors: dinResita shameerc

repo: shameerc/TextPress


text:
WIP. Sync with Git Repositories

Short description of what this resolves:
Adding git sync. WIP. Requesting review.

[x] 1. It should ask either backup needs to be saved on Github Gist or simple Git Repository.
[x] 2. Once the User select the Git Repo, it should setup accordingly.
[ ] 3. Provide user option to either use Github or GitLab and create a repository from there by their profile tokens.

[x] Create Repository on Github
[ ] Create Repository on GitLab

[x] 4. By Download means, user can do git pull forcefully.
[x] 5. By Upload means, user can do git push forcefully.
[x] 6. Allow user to setup branches or profiles like master and office and keep the selected profile / branch in Sync Global Settings and download/ upload to that branch.
[x] 7. When user is switched to Gist, it should not upload the Git folder there.
[ ] 8. Support Github and Gitlab Enterprise versions

At the moment creating / pushing to different branches on github works.
Haven't wrote the gitlab service.
Will need to rework regex for enterprise versions probably.
Changes proposed in this pull request:

WIP.

Fixes: #413
How Has This Been Tested?

Screenshots (if appropriate):
Checklist:

[x] I have read the contribution guidelines.
[x] My change requires a change to the documentation and GitHub Wiki.
[ ] I have updated the documentation and Wiki accordingly.

Why do you need to access Github/Gitlab API directly? Wouldn't it be a lot more convenient to use just plain git interface using git clone/pull/push/fetch/etc?
Since you're heavily tying your implementation to limited number of services it won't allow it to use with your private Git repos (self-hosted or just local) and it requires internet access to use synchronisation.
It doesn't solve issue in the way it was meant to be implemented.

I'm really excited about a feature like this, I really don't want my settings on a gist that can be found by anyone as it contains sensitive information.

I'm really excited about a feature like this, I really don't want my settings on a gist that can be found by anyone as it contains sensitive information.

The gists have always been private by default. Also your user's local vscode settings (settings.json) do not contain sensitive information by default.

I'm really excited about a feature like this, I really don't want my settings on a gist that can be found by anyone as it contains sensitive information.

The gists have always been private by default. Also your user's local vscode settings (settings.json) do not contain sensitive information by default.

The gists have always been private by default.,however It can be seen by anyone who get the gist url.It is unsafe.

Will this still require github access or will it also accept ssh urls like git@github.com/user/repo?

Let me know if you want to work on it. I will reopen this PR

authors: gudvinr jifalops jordyvandomselaar knyhle lizhuangs shanalikhan totkeks

repo: shanalikhan/code-settings-sync


text:
V1.1.0

Great package for yarn workspaces, but I had some issues with ES6 import. I ended up cleaning up & updating the codebase a bit.
Let me know if I should make any other changes.

Coverage remained the same at 100.0% when pulling e2c1b64551151cb5ca6ec36d7233e5e757cf4832 on webberwang:v1.1.0 into c0eaf720c0bce9172e6e0bcf8b8f431b9942026a on shannonmoeller:master.

@shannonmoeller can you check it?

authors: coveralls dzienisz webberwang

repo: shannonmoeller/find-config


text:
Button Colors

Might want to consider a different colour scheme for the buttons. Red is an alert/danger color and might send the wrong message to users.
Consider not using separate colours on the buttons to avoid confusion. Users don't need to know what's important. They're coming here to look for what they need, they already know what's important.

bg-danger go brrrrr

jokes aside, i'll get this implemented after i fix #28

❤
On Sun, 2 May 2021, 19:47 Siddharth Singh, @.***> wrote:

jokes aside, i'll get this implemented after i fix #28
https://github.com/shantaram3013/covid19-resource-site/issues/28
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/shantaram3013/covid19-resource-site/issues/31#issuecomment-830816533,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKSKYUF5VPJ55GHD2S37H6TTLVNHVANCNFSM437MLODA
.

also i'm pretty colorblind so it looked more green/maroon to me than red :clown_face:

Dang, didn't know that. Get someone else to deal with the colours xD
On Sun, 2 May 2021, 20:01 Siddharth Singh, @.***> wrote:

also i'm pretty colorblind so it looked more green/maroon to me than red
🤡
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/shantaram3013/covid19-resource-site/issues/31#issuecomment-830818513,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKSKYUCTRCSI7AUOPBZRX5TTLVO4HANCNFSM437MLODA
.

Fixed in 9059ed20a8b084504b7158851695cd8ec6b1737e.


text:
feat: wire up LP opportunities (WIP)

Description

Notice

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #3183   👈

This comment was auto-generated by Graphite.

Opening for early review, still going to add more tests and tighten this logic, but the abstraction itself is ready for review

repo: shapeshift/web


text:
feat: bump hdwallet packages to stable

Description
Does what it says on the box - see https://github.com/shapeshift/hdwallet/commit/c197ede71019e9cc6b12a27a26c13375fce4a24f
Issue (if applicable)

closes N/A
Risk

High Risk PRs Require 2 approvals

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Low to none - should be the exact same package version we already had under the mipd umbrella
Testing

Do a paranoia test of mipd wallets

Engineering

^

Operations

[ ] :checkered_flag: My feature is behind a flag and doesn't require operations testing (yet)

^

Screenshots (if applicable)

https://jam.dev/c/c8a30f59-87d1-47cb-971c-2ad29355e34a

Oddly while testing, after running yarn clean && yarn && yarn build:packages && yarn env dev && yarn dev, app wont boot with the follow error. Develop branch seems ok though:

@woodenfurniture this doesn't look related to this PR, just gave a try to the same command and after some painful repo rug from yarn clean, eventually ran web without any hassle:

Can you perhaps run it on a repo clone?


text:
v0.4 の追加機能案

とりあえず思いついたのを並べています。全部を実装しようとしているわけではありません。希望があればコメントください。
基本機能の強化
v0.3 までに対しファームアップデートのみで利用できる機能。

CO2 高濃度の警報を GPIO からレベルで出力する
Pico2 (RP2350) 対応

オプション機能の追加
簡単な回路追加で新たに利用できるようになる機能。

設定用 UI（次のいずれか、または全部）

タクトスイッチ 2～3 個
フォトトランジスタ ＋ スマホ画面の点滅
UART

トレンドグラフを異なる長さ（例: 1時間、4時間、24時間、1週間）で保持して表示を切り替えられるようにする
温度のオフセット値を変更できるようにする
CO2 濃度警報の閾値を変更できるようにする
設定値をオンボード Flash の空き領域に保存できるようにする

EEPROM 対応
オプション機能の回路に加え、EEPROM を追加することで利用できるようになる機能。
(容量的にはオンボード Flash (W25Q16JV) の空き領域でも事足りそうだが、データシートによると書き換え可能回数は 100K Program-Erase cycles per sector で、足りるだろうか？)

トレンドグラフを EEPROM に記録し、次回起動時に復元できるようにする
トレンドグラフを UART (または PicoW の WiFi 接続) でダンプできるようにする
EEPROM 接続時は設定値も EEPROM に保存する

PicoW 対応

測定値をどっかのサーバに HTTP とか UDP とかで投げつける機能
NTP で時刻取得してトレンドグラフ表示に反映する

memo:

https://twitter.com/pcjpnet/status/1866169241273331984
この辺も配慮してピン決めてくれると嬉しいかも
https://akizukidenshi.com/catalog/g/g117044/
https://akizukidenshi.com/catalog/g/g129619/

repo: shapoco/pico-env-mon


text:
[WIP] max command

Hi @sharkdp
This still a working in progress and I would like your feedback on what I did.
Every method implemented in shell-functools takes a function as one of its argument but that is not the case with max/min methods. Therefore, I had to change a few things to make max compatible with the Command interface. For instance, one thing I had to change was to make identity the default value for the function argument in the arguments parser.
Let me know what you think and if everything is Ok, I will create the min version as well as some tests. Btw, what do you use for testing? nose? pytest?
Regards

@guilhermeleobas Thank you very much for your contribution!
I misunderstood you in #7. I thought you wanted to add a new function max (instead of a new command max). If we had a simple function max :: Int -> Int -> Int, we could use the foldl or foldl1 commands to compute the maximum:
> seq 4 | foldl1 max
4

> echo "1\n3\n7\n4" | foldl1 max
7

What do you think?

That's way simpler than what I did. :)

Ok, it's done!

authors: guilhermeleobas sharkdp

repo: sharkdp/shell-functools


text:
System.EntryPointNotFoundException "Can't find the entry point" MFCreateDXGIDeviceManager" in DLL "Mfplat.dll".'

Version 4.0.1
Try to launch Simple and got exception in:
//Reset device
manager = new DXGIDeviceManager();

Windows 7 x64 Ultimate

MFCreateDXGIDeviceManager is supported starting from Windows 8, take look here:
https://msdn.microsoft.com/en-us/library/windows/desktop/hh162750(v=vs.85).aspx

Thanks

authors: ToxaDev amerkoleci

repo: sharpdx/SharpDX


text:
Add message box output for zoom and content manager

For example, zoom manager currently uses cv2.putText to write error messages on the image
A message box might be a better solution

add popup for invalid file reading as well


text:
Update balances.rs

Call method from another method.
"good first issue"

this is not the correct syntax, and not really a change i think needs to be made

Looked redundant to me, but it's your repo - your call.
Just for my sake: what would be the correct syntax?

you are referencing a function inside the impl of an object.
You need to use capital Self::function_name

my mistake, the syntax was right. I thought it might be Self::set_balance, but this works.
in any case, i am also not sure that this is "better". its another function call, an additional clone, etc...
if you explained more what you are looking to achieve, i could understand more your suggestion here, but this really doesn't seem like it contributes to the tutorial

I was looking for "good first issue"s to contribute and start with a small pr change.
Had a look through the issues, but there were just a few, so I will have to pick one of them.

authors: shawntabrizi yhamacnu

repo: shawntabrizi/rust-state-machine


text:
fix failing tests on windows python (64 bits) 2.7 and 2.6

This PR updates the selectors code to better support python 2.6 and 2.7 (64bit). fixes #1247
in more detail:

Update tox.ini and appveyor.yml to use the python defined by the TOXPY** environment variable (when defined).
Update the util.selectors._fileobj_to_fd to accept a long value.
Various appveyor improvements:

(speedup) No need to install python 2.6.6, appveyor already has the desired version.
(speedup) Cache wheels
(speedup) No need to install urllib on parent python.
Do not run test builds on a branch when it is part of a pool request.

Codecov Report

Merging #1248 into master will decrease coverage by 8.26%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1248      +/-   ##
==========================================
- Coverage     100%   91.73%   -8.27%
==========================================
  Files          21       21
  Lines        1985     1985
==========================================
- Hits         1985     1821     -164
- Misses          0      164     +164

Impacted Files
Coverage Δ

urllib3/util/selectors.py
49.38% <100%> (-50.62%)
:arrow_down:

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 a72275c...42d2525. Read the comment docs.

travis builds are failing, it is probably related to the tox.ini workaround that is needed on appveyor. Will have a look tomorrow.

Huh, that said, I restarted the build and it went away. I guess it is transient!

Can we get a line added to CHANGES.rst please? Also, can you squash the commits down a bit? If we have both of those things that'll be perfect, nice work!

I fixed the builds, will squash the PRs and re-submit

No need to re-submit: if you squash the commits and force push to this branch GitHub will automatically Do The Right Thing.

No need to re-submit: if you squash the commits and force push to this branch GitHub will automatically Do The Right Thing.

Done

Thanks so much for this! :sparkles: :cake:

authors: Lukasa codecov-io itziakos


text:
move python IMA into countland code for consistency with R version of countland

Right now IMA is not installed with countland via pip, due to requirements from Pypi

Hello, thanks for reaching out. As of now IMA is available for python here: https://github.com/shchurch/integer_matrix_approximation
I will clarify that in the documentation. Let me know if any other questions come up, thanks!

repo: shchurch/countland


text:
don't swallow partial match at the end of the sentence

Hi @shdev, I run into a problem with the implementation when the last part of a sentence was a prefix of a given keyword (replace mode). Then the matching part of the sentence is just dropped from the new sentence. This PR fixes the problem.
Let me know if you have questions and thanks for porting to flashtext algo to PHP.
Best,
Pascal

hi @pvonr, thanx for that fix.

👍

authors: pvonr shdev

repo: shdev/phpflashtext


text:
Fix shelljs compatibility with esbuild bundler

Summary
Fixes https://github.com/shelljs/shelljs/issues/1160

Add explicit file extension to dynamic command import.
This call to require() is dynamic and does not add the file extension.
Esbuild resolves files with their explicit file extension (eg './src/cat.js').
Esbuild automatically adds .js extension in imports when not present but can't modify dynamic imports. For dynamic imports, file extension needs to be explicitly specified prior to bundling.

Test
Here is a script to reproduce (to be run in the repository root):
# Prepare
rm -rf test-esbuild && mkdir test-esbuild && cd test-esbuild
npm init --yes
echo "console.log(require('../shell.js').pwd().stdout && '\n OK');" > index.js
npm i -D esbuild

# Run
npx esbuild --platform=node --bundle index.js --outfile=out.js; node out.js

In the current master branch of this repository:
  out.js  230.5kb

⚡ Done in 10ms
/.../shelljs/test-esbuild/out.js:5
  throw new Error("Module not found in bundle: " + path);
  ^

Error: Module not found in bundle: ./src/cat
    at /.../

Node.js v20.3.1

In this branch
  out.js  230.5kb

⚡ Done in 9ms

 OK

The bundle size doesn't change because all deps are already in the bundle, it's a resolution issue, as discussed in https://github.com/shelljs/shelljs/issues/1160

Have you tested this change on other bundlers? I'm not familiar with the current state of bundlers in the community. Is esbuild a popular one?

Have you tested this change on other bundlers?

I've tested:

esbuild (37.5K stars, 31M weekly downloads)
rollup (24.9K stars, 22.3M weekly downloads)
@vercel/ncc (9K stars, 0.4M weekly downloads)

rollup
With rollup it doesn't work, but you can tweak options so that these imports are treated dynamically (dynamicRequireTargets).

 Reproducer
// rollup.config.js
var commonjs = require('@rollup/plugin-commonjs');
var nodeResolve = require('@rollup/plugin-node-resolve').nodeResolve;

module.exports = {
  input: 'index.js',
  output: {
    file: 'out.js',
    format: 'cjs',
  },
  plugins: [commonjs({
    dynamicRequireTargets: [
      'node_modules/shelljs/src/*.js',
    ],
  }), nodeResolve()],
};

// index.js
var shelljs = require('shelljs');

console.log(shelljs.pwd().stdout && '\n OK');

// bash
//$ npx rollup -c rollup.config.js

ncc
With ncc it works out of the box because ncc assumes the require could be called without the .js extension as well

 Reproducer

esbuild
See https://github.com/shelljs/shelljs/issues/1160

Hello @nfischer , is there anything I can do more to help make this change go through?

Would also love to get this in.shelljs is very useful for github actions

I am also highly interested in this, shelljs would be a lot more useful if it could be bundled! @nfischer

I tried the fix proposed here, but it did not work in my setup with esbuild. However, just manually writing the require statements works for me (even though it is not so elegant):
https://github.com/AlexanderLill/shelljs/compare/master...esbuild-fix

I have the same issue. It's very common to use esbuild to bundle VSCode extensions. Is there any plan to merge it? Thanks!

authors: 7PH AlexanderLill jonsherrard nfischer qarlosalberto

repo: shelljs/shelljs