java.lang.ClassNotFoundException: org.tensorframes.impl.DebugRowOps

I build the jar by follow the readme,
and then run it in pycharm
https://www.dropbox.com/s/qmrs72l0p8p4bc2/Screen Shot 2016-07-06 at 11.40.26 PM.png?dl=0
I add the self build jar as content root, I guess that's cause the error,
line 11 is     x = tfs.block(df, "x")
code:
import tensorflow as tf
import tensorframes as tfs
from pyspark.shell import sqlContext
from pyspark.sql import Row

data = [Row(x=float(x)) for x in range(10)]
df = sqlContext.createDataFrame(data)

with tf.Graph().as_default() as g:
    # The TensorFlow placeholder that corresponds to column 'x'.
    # The shape of the placeholder is automatically inferred from the DataFrame.
    x = tfs.block(df, "x")
    # The output that adds 3 to x
    z = tf.add(x, 3, name='z')
    # The resulting dataframe
    df2 = tfs.map_blocks(z, df)

# The transform is lazy as for most DataFrame operations. This will trigger it:
df2.collect()

log
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
16/07/06 23:28:43 INFO SparkContext: Running Spark version 1.6.1
16/07/06 23:28:44 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/07/06 23:28:44 INFO SecurityManager: Changing view acls to: julian_qian
16/07/06 23:28:44 INFO SecurityManager: Changing modify acls to: julian_qian
16/07/06 23:28:44 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(julian_qian); users with modify permissions: Set(julian_qian)
16/07/06 23:28:44 INFO Utils: Successfully started service 'sparkDriver' on port 60597.
16/07/06 23:28:45 INFO Slf4jLogger: Slf4jLogger started
16/07/06 23:28:45 INFO Remoting: Starting remoting
16/07/06 23:28:45 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://sparkDriverActorSystem@<IP_ADDRESS>:60598]
16/07/06 23:28:45 INFO Utils: Successfully started service 'sparkDriverActorSystem' on port 60598.
16/07/06 23:28:45 INFO SparkEnv: Registering MapOutputTracker
16/07/06 23:28:45 INFO SparkEnv: Registering BlockManagerMaster
16/07/06 23:28:45 INFO DiskBlockManager: Created local directory at /private/var/folders/9c/h8czn5n53yd69xz45wjhk0fw0000gn/T/blockmgr-5174cef3-29d9-4d2a-a84e-279a0e3d2f83
16/07/06 23:28:45 INFO MemoryStore: MemoryStore started with capacity 511.1 MB
16/07/06 23:28:45 INFO SparkEnv: Registering OutputCommitCoordinator
16/07/06 23:28:45 WARN Utils: Service 'SparkUI' could not bind on port 4040. Attempting port 4041.
16/07/06 23:28:45 INFO Utils: Successfully started service 'SparkUI' on port 4041.
16/07/06 23:28:45 INFO SparkUI: Started SparkUI at http://<IP_ADDRESS>:4041
16/07/06 23:28:45 INFO Executor: Starting executor ID driver on host localhost
16/07/06 23:28:45 INFO Utils: Successfully started service 'org.apache.spark.network.netty.NettyBlockTransferService' on port 60599.
16/07/06 23:28:45 INFO NettyBlockTransferService: Server created on 60599
16/07/06 23:28:45 INFO BlockManagerMaster: Trying to register BlockManager
16/07/06 23:28:45 INFO BlockManagerMasterEndpoint: Registering block manager localhost:60599 with 511.1 MB RAM, BlockManagerId(driver, localhost, 60599)
16/07/06 23:28:45 INFO BlockManagerMaster: Registered BlockManager
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /__ / .__/\_,_/_/ /_/\_\   version 1.6.1
      /_/

Using Python version 2.7.10 (default, Dec  1 2015 20:00:13)
SparkContext available as sc, HiveContext available as sqlContext.
16/07/06 23:28:46 INFO HiveContext: Initializing execution hive, version 1.2.1
16/07/06 23:28:46 INFO ClientWrapper: Inspected Hadoop version: 2.6.0
16/07/06 23:28:46 INFO ClientWrapper: Loaded org.apache.hadoop.hive.shims.Hadoop23Shims for Hadoop version 2.6.0
16/07/06 23:28:46 INFO HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
16/07/06 23:28:46 INFO ObjectStore: ObjectStore, initialize called
16/07/06 23:28:46 INFO Persistence: Property hive.metastore.integral.jdo.pushdown unknown - will be ignored
16/07/06 23:28:46 INFO Persistence: Property datanucleus.cache.level2 unknown - will be ignored
16/07/06 23:28:46 WARN Connection: BoneCP specified but not present in CLASSPATH (or one of dependencies)
16/07/06 23:28:47 WARN Connection: BoneCP specified but not present in CLASSPATH (or one of dependencies)
16/07/06 23:28:48 INFO ObjectStore: Setting MetaStore object pin classes with hive.metastore.cache.pinobjtypes="Table,StorageDescriptor,SerDeInfo,Partition,Database,Type,FieldSchema,Order"
16/07/06 23:28:48 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MFieldSchema" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:48 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MOrder" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:49 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MFieldSchema" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:49 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MOrder" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:49 INFO MetaStoreDirectSql: Using direct SQL, underlying DB is DERBY
16/07/06 23:28:49 INFO ObjectStore: Initialized ObjectStore
16/07/06 23:28:49 WARN ObjectStore: Version information not found in metastore. hive.metastore.schema.verification is not enabled so recording the schema version 1.2.0
16/07/06 23:28:49 WARN ObjectStore: Failed to get database default, returning NoSuchObjectException
16/07/06 23:28:49 INFO HiveMetaStore: Added admin role in metastore
16/07/06 23:28:49 INFO HiveMetaStore: Added public role in metastore
16/07/06 23:28:49 INFO HiveMetaStore: No user is added in admin role, since config is empty
16/07/06 23:28:49 INFO HiveMetaStore: 0: get_all_databases
16/07/06 23:28:49 INFO audit: ugi=julian_qian   ip=unknown-ip-addr  cmd=get_all_databases
16/07/06 23:28:49 INFO HiveMetaStore: 0: get_functions: db=default pat=*
16/07/06 23:28:49 INFO audit: ugi=julian_qian   ip=unknown-ip-addr  cmd=get_functions: db=default pat=*
16/07/06 23:28:49 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MResourceUri" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:49 INFO SessionState: Created HDFS directory: /tmp/hive/julian_qian
16/07/06 23:28:49 INFO SessionState: Created local directory: /var/folders/9c/h8czn5n53yd69xz45wjhk0fw0000gn/T/julian_qian
16/07/06 23:28:49 INFO SessionState: Created local directory: /var/folders/9c/h8czn5n53yd69xz45wjhk0fw0000gn/T/f9d3c8e6-6b5d-4a0c-b2cf-a50aa101fb62_resources
16/07/06 23:28:49 INFO SessionState: Created HDFS directory: /tmp/hive/julian_qian/f9d3c8e6-6b5d-4a0c-b2cf-a50aa101fb62
16/07/06 23:28:49 INFO SessionState: Created local directory: /var/folders/9c/h8czn5n53yd69xz45wjhk0fw0000gn/T/julian_qian/f9d3c8e6-6b5d-4a0c-b2cf-a50aa101fb62
16/07/06 23:28:49 INFO SessionState: Created HDFS directory: /tmp/hive/julian_qian/f9d3c8e6-6b5d-4a0c-b2cf-a50aa101fb62/_tmp_space.db
16/07/06 23:28:49 INFO HiveContext: default warehouse location is /user/hive/warehouse
16/07/06 23:28:49 INFO HiveContext: Initializing HiveMetastoreConnection version 1.2.1 using Spark classes.
16/07/06 23:28:49 INFO ClientWrapper: Inspected Hadoop version: 2.6.0
16/07/06 23:28:49 INFO ClientWrapper: Loaded org.apache.hadoop.hive.shims.Hadoop23Shims for Hadoop version 2.6.0
16/07/06 23:28:50 INFO HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
16/07/06 23:28:50 INFO ObjectStore: ObjectStore, initialize called
16/07/06 23:28:50 INFO Persistence: Property hive.metastore.integral.jdo.pushdown unknown - will be ignored
16/07/06 23:28:50 INFO Persistence: Property datanucleus.cache.level2 unknown - will be ignored
16/07/06 23:28:50 WARN Connection: BoneCP specified but not present in CLASSPATH (or one of dependencies)
16/07/06 23:28:50 WARN Connection: BoneCP specified but not present in CLASSPATH (or one of dependencies)
16/07/06 23:28:51 INFO ObjectStore: Setting MetaStore object pin classes with hive.metastore.cache.pinobjtypes="Table,StorageDescriptor,SerDeInfo,Partition,Database,Type,FieldSchema,Order"
16/07/06 23:28:51 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MFieldSchema" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:51 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MOrder" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:52 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MFieldSchema" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:52 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MOrder" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:52 INFO MetaStoreDirectSql: Using direct SQL, underlying DB is DERBY
16/07/06 23:28:52 INFO ObjectStore: Initialized ObjectStore
16/07/06 23:28:52 WARN ObjectStore: Version information not found in metastore. hive.metastore.schema.verification is not enabled so recording the schema version 1.2.0
16/07/06 23:28:52 WARN ObjectStore: Failed to get database default, returning NoSuchObjectException
16/07/06 23:28:52 INFO HiveMetaStore: Added admin role in metastore
16/07/06 23:28:52 INFO HiveMetaStore: Added public role in metastore
16/07/06 23:28:52 INFO HiveMetaStore: No user is added in admin role, since config is empty
16/07/06 23:28:52 INFO HiveMetaStore: 0: get_all_databases
16/07/06 23:28:52 INFO audit: ugi=julian_qian   ip=unknown-ip-addr  cmd=get_all_databases
16/07/06 23:28:53 INFO HiveMetaStore: 0: get_functions: db=default pat=*
16/07/06 23:28:53 INFO audit: ugi=julian_qian   ip=unknown-ip-addr  cmd=get_functions: db=default pat=*
16/07/06 23:28:53 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MResourceUri" is tagged as "embedded-only" so does not have its own datastore table.
16/07/06 23:28:53 INFO SessionState: Created local directory: /var/folders/9c/h8czn5n53yd69xz45wjhk0fw0000gn/T/77eb618d-61cc-470e-abb4-18d356833efb_resources
16/07/06 23:28:53 INFO SessionState: Created HDFS directory: /tmp/hive/julian_qian/77eb618d-61cc-470e-abb4-18d356833efb
16/07/06 23:28:53 INFO SessionState: Created local directory: /var/folders/9c/h8czn5n53yd69xz45wjhk0fw0000gn/T/julian_qian/77eb618d-61cc-470e-abb4-18d356833efb
16/07/06 23:28:53 INFO SessionState: Created HDFS directory: /tmp/hive/julian_qian/77eb618d-61cc-470e-abb4-18d356833efb/_tmp_space.db

error log:
Traceback (most recent call last):
  File "/Users/julian_qian/PycharmProjects/tensorflow/tfs.py", line 11, in <module>
    x = tfs.block(df, "x")
  File "/Users/julian_qian/etc/work/python/tensorframes/tensorframes-assembly-0.2.3.jar/tensorframes/core.py", line 315, in block
  File "/Users/julian_qian/etc/work/python/tensorframes/tensorframes-assembly-0.2.3.jar/tensorframes/core.py", line 333, in _auto_placeholder
  File "/Users/julian_qian/etc/work/python/tensorframes/tensorframes-assembly-0.2.3.jar/tensorframes/core.py", line 30, in _java_api
  File "/usr/local/Cellar/apache-spark/1.6.1/libexec/python/lib/py4j-0.9-src.zip/py4j/java_gateway.py", line 813, in __call__
  File "/usr/local/Cellar/apache-spark/1.6.1/libexec/python/lib/pyspark.zip/pyspark/sql/utils.py", line 45, in deco
  File "/usr/local/Cellar/apache-spark/1.6.1/libexec/python/lib/py4j-0.9-src.zip/py4j/protocol.py", line 308, in get_return_value
py4j.protocol.Py4JJavaError: An error occurred while calling o32.loadClass.
: java.lang.ClassNotFoundException: org.tensorframes.impl.DebugRowOps
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:231)
    at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:381)
    at py4j.Gateway.invoke(Gateway.java:259)
    at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133)
    at py4j.commands.CallCommand.execute(CallCommand.java:79)
    at py4j.GatewayConnection.run(GatewayConnection.java:209)
    at java.lang.Thread.run(Thread.java:745)

It looks like the jar file that you built may not be loaded into the Spark java virtual machine.

are you able to run some spark command?
can you access the content of the tensorframes jar?

I do not have much insight into what pyspark is doing, so you may be better off for now using spark directly with ipython or jupyter.

@jq I published a new version of tensorframes so you should not have to build it yourself. Let me know if it helps.

Thanks! will give it a try!

I am having this same problem and I just built tensorframes

@thunterdb I have tried using the pre-built tensorframes on the spark plugin website and I have tried building my own version of tensorframes. Only my built version can get this far before it encounters this error. Have you figured out what is going on? Thanks

This may be a bit tricky since it depends on how pycharm caches jars. If someone else uses pycharm, they should comment as well.

I'm also facing this issue. I built the master (42c7fb2) and got stuck here. Using Jupyter, Python 3.5 and Spark 2.0.0  (2.11).
"PYSPARK_SUBMIT_ARGS": "--master yarn --deploy-mode --jars /opt/tensorframes/tensorframes-assembly-0.2.4.jar --client pyspark-shell"
Py4JJavaError: An error occurred while calling o56.loadClass.
: java.lang.ClassNotFoundException: org.tensorframes.impl.DebugRowOps

@jeroenvlek I finally got some time to build a new release. Can you try to use the published release candidate?

I believe this issue should be addressed now with the new release. I am going to close this issue, but feel free to reopen it if it does not work.

I am also having this same problem and I just built tensorframes

I'm getting the following error as well!
Py4JJavaError                             Traceback (most recent call last)
<ipython-input-36-17e37754773e> in <module>()
     23 # Create transformer and apply it to our input data
     24 transformer = KerasTransformer(inputCol="features", outputCol="predictions", modelFile=model_path)
---> 25 final_df = transformer.transform(input_df)

/Users/ronit_ibm/anaconda3/lib/python3.6/site-packages/pyspark/ml/base.py in transform(self, dataset, params)
    171                 return self.copy(params)._transform(dataset)
    172             else:
--> 173                 return self._transform(dataset)
    174         else:
    175             raise ValueError("Params must be a param map but got %s." % type(params))

/Users/ronit_ibm/Documents/temp_simple_moedel/spark-deep-learning-1.5.0/target/scala-2.11/spark-deep-learning-assembly-1.5.0-spark2.4.jar/sparkdl/transformers/keras_tensor.py in _transform(self, dataset)
     63                                     inputMapping={self.getInputCol(): inputTensorName},
     64                                     outputMapping={outputTensorName: self.getOutputCol()})
---> 65         return transformer.transform(dataset)

/Users/ronit_ibm/anaconda3/lib/python3.6/site-packages/pyspark/ml/base.py in transform(self, dataset, params)
    171                 return self.copy(params)._transform(dataset)
    172             else:
--> 173                 return self._transform(dataset)
    174         else:
    175             raise ValueError("Params must be a param map but got %s." % type(params))

/Users/ronit_ibm/Documents/temp_simple_moedel/spark-deep-learning-1.5.0/target/scala-2.11/spark-deep-learning-assembly-1.5.0-spark2.4.jar/sparkdl/transformers/tf_tensor.py in _transform(self, dataset)
    104         graph = tf.Graph()
    105         with tf.Session(graph=graph):
--> 106             analyzed_df = tfs.analyze(dataset)
    107             out_tnsr_op_names = [tfx.op_name(tnsr_name) for tnsr_name, _ in output_mapping]
    108             # Load graph

/Users/ronit_ibm/Documents/temp_simple_moedel/spark-deep-learning-1.5.0/target/scala-2.11/spark-deep-learning-assembly-1.5.0-spark2.4.jar/tensorframes/core.py in analyze(dframe)
    377     :return: a Spark DataFrame with metadata information embedded.
    378     """
--> 379     return DataFrame(_java_api().analyze(dframe._jdf), _sql)
    380
    381 def append_shape(dframe, col, shape):

/Users/ronit_ibm/Documents/temp_simple_moedel/spark-deep-learning-1.5.0/target/scala-2.11/spark-deep-learning-assembly-1.5.0-spark2.4.jar/tensorframes/core.py in _java_api()
     33     # You cannot simply call the creation of the the class on the _jvm due to classloader issues
     34     # with Py4J.
---> 35     return _jvm.Thread.currentThread().getContextClassLoader().loadClass(javaClassName) \
     36         .newInstance()
     37

/Users/ronit_ibm/anaconda3/lib/python3.6/site-packages/py4j/java_gateway.py in __call__(self, *args)
   1255         answer = self.gateway_client.send_command(command)
   1256         return_value = get_return_value(
-> 1257             answer, self.gateway_client, self.target_id, self.name)
   1258
   1259         for temp_arg in temp_args:

/Users/ronit_ibm/anaconda3/lib/python3.6/site-packages/pyspark/sql/utils.py in deco(*a, **kw)
     61     def deco(*a, **kw):
     62         try:
---> 63             return f(*a, **kw)
     64         except py4j.protocol.Py4JJavaError as e:
     65             s = e.java_exception.toString()

/Users/ronit_ibm/anaconda3/lib/python3.6/site-packages/py4j/protocol.py in get_return_value(answer, gateway_client, target_id, name)
    326                 raise Py4JJavaError(
    327                     "An error occurred while calling {0}{1}{2}.\n".
--> 328                     format(target_id, ".", name), value)
    329             else:
    330                 raise Py4JError(

Py4JJavaError: An error occurred while calling o96.loadClass.
: java.lang.ClassNotFoundException: org.tensorframes.impl.DebugRowOps
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
	at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
	at py4j.Gateway.invoke(Gateway.java:282)
	at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
	at py4j.commands.CallCommand.execute(CallCommand.java:79)
	at py4j.GatewayConnection.run(GatewayConnection.java:238)
	at java.lang.Thread.run(Thread.java:748)

Still having this issue, any help?

I think this was deprecated?


updated things

i have no idea how you got this set up but android studio couldnt even comprehend this, so i couldnt make any actual code changes

ok why is this a thing, i just used git bash to commit and push :(

@TacoTheDank I won't use SDK 28 now, since it's support library isn't released as stable.
I have set up a hash in the Gradle wrapper, you removed it.
My current .gitignore is OK, and your one removes the code style settings and the dependency on Android Studio 3.1.3 or later.
I think you mean the configure on demand bug, just disable it in the settings (search for "demand").
And anyways, the repository requires any commits to be signed using GnuPG. You'll have to setup a key in your home directory, upload its public part to GitHub and use git commit -S instead of git commit.

:/ just seems like way too complex of a setup for a simple flashlight app (i was also going to add back the hash but i forgot)

@TacoTheDank right, but I like complex things. :smile:

lol whatever floats your boat


Adding Chat of any kind not available other than Open AI

[Enter feedback here]
The instruction on this page no longer work and do not help with adding live chat. Is a preview for Open AI that does not work and is not available for my client.

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

ID: a4f4343a-b31a-c518-f515-c9d5bb566d6c
Version Independent ID: 1a581fa6-cf1f-b131-c670-7fd2a33b1230
Content: Add a chatbot to a page - Power Apps
Content Source: powerapps-docs/maker/portals/add-chatbot.md
Service: powerapps
Sub-service: portals
GitHub Login: @neerajnandwana-msft
Microsoft Alias: nenandw

Thanks for your comment, @craig-lund. This issue has been assigned to the doc author for review.


Execute only selected tests

Most likely we would like to run failed test only, or just one selected test to make server log inspection easier.  curl test suite has this feature.

Added -s option to support the partial execution of tests.
Landed in 45cb654244a411396ee56b40613322d6de553537.
If you still have a problem, please reopen this issue and tell me.

Awesome!


Itinerary

No merge conflicts I can see -- this will add code to the itinerary div using jquery to build rows/columns for dates of the trip.

lovin it!


Glass theme

What feature or improvement do you think would benefit Files?
hello
Sorry, Any way to activate the glass theme from the previous version? Thank you!
Requirements
.
Files Version
v2.4
Windows Version
Windows 11 Home 22H2
Comments
.

Merging with #10690

@CarNav09 see this comment for the glass theme https://github.com/files-community/Files/issues/10690#issuecomment-1383390672


Need some advise for a new JSON schema validator

I am the developer of ejsv. I needed a JSON schema validation library that could easily be extended and shared logic where possible, and I read through Jesse and found it very difficult in that regard.  I am not familar with JSON schema, but I like my Erlang work 🤣
So I managed to achieve the requirement by implementing an abstraction between the keyword rules and the assertions themselves, but I failed to think about $ref's 💩
I was thinking I needed a more fine grained API in ejsv_cache, what might you recommend? The code is quite simple to read through (I hope) and I would really appreciate your thoughts otherwise!

I'm sorry but I really don't have the time for this (I'm on parental leave). It is also not a jesse issue, so I'm closing. Best of luck with ejsv, but as you know jesse also has a tracking issue to be more extensible, and support newer drafts https://github.com/for-GET/jesse/issues/61

No worries, congrats!


一次性全市场回测报错问题和portfolio使用方法的咨询

问题反馈
第一个问题
.一次性全市场回测报错问题：
回测时，在backtest_code_list = 里导入全部深市沪市的一千多个股票时必定报错：
03990', '603991', '603993', '603996', '603997', '603998', '603999', '603348', '603596', '603733', '603773', '603876'] ,
start=2013-01-01, end=2018-10-01 call QA_fetch_stock_day return None
Traceback (most recent call last):
File "new_backtest_core_biz.py", line 127, in
backtest_func(AC, backtest_code_list, backtest_start_date, backtest_end_date)
File "new_backtest_core_biz.py", line 19, in backtest_func
DATA = QA.QA_fetch_stock_day_adv(code, start, end).to_qfq()
AttributeError: 'NoneType' object has no attribute 'to_qfq'
PS D:\quant_strategy\QADEMO\QADemo-master\backtest\example>
但只要把同样这些股票分成小部分（每部分几百个股票吧）来回测就完全没问题。请问是我机能有限？还是？QA的这个某个对象空间有限？（后面会贴回测配置信息）
第二个问题：
群里讨论上个问题的时候说到portofolio和portfolioView 两种模式
我要的模式就是最贴近实际小散的实盘模式。回测时也就是一个资金账户，用一个策略backtest_code_list里的所有股票都测试。每一天看哪个股票符合策略要求了就买入（不管有几个），每一天看哪个股票符合策略的退出要求了就退出（不管几个）。最后回测完在看这个账户的情况。和pnl。
我目前的配置应该就是吧？还是说
组合cookie
portfolio_cookie = 'win300'
这里要为none？
以下为 配置信息：
import math
import csv
import QUANTAXIS as QA
import time
from core_biz import *
from QUANTAXIS.QAApplication.QAAnalysis import QA_backtest_analysis_backtest
def backtest_func(AC:QA.QA_Account, code, start:str, end:str):
'''
:param AC: QA_Account
:param code: 股票代码，字符串或列表
:param start: 回测开始时间字符串
:param end: 回测结束时间字符串
'''
# 取数并前复权
DATA = QA.QA_fetch_stock_day_adv(code, start, end).to_qfq()
map_strategy = {}
map_action = {}
map_do_sell = {}
map_do_buy = {}

for code in backtest_code_list:
	map_strategy[code] = Strategy()
	map_action[code] = Action(0)
	map_do_buy[code] = False
	map_do_sell[code] = False

for peroid_item in DATA.panel_gen:
	for stock_item in peroid_item.security_gen:
		code = stock_item.code[0]
		date = stock_item.date[0]
		price_close = stock_item.close[0]
		day_vol = stock_item.volume[0]
		price_open = stock_item.open[0]
		sell_available_amount = AC.sell_available.get(code, 0)

		order = None
		if map_do_sell[code]:
			map_do_sell[code] = False
			if sell_available_amount <= 0:
				print("nothing to sell for:", code)
			else:
				print("-------->>>>>>>>>>>>------", date, "--------<<<<<<<<<<<<<<------")
				print('CODE:', code, "SELL", " amount: ", map_action[code].amount)
				order_data = {}
				order_data['bid_model'] = 1

				order = AC.send_order(
                code=code,
				time=date,
				towards=map_action[code].towards,
                order_model=QA.ORDER_MODEL.MARKET,
				amount_model=QA.AMOUNT_MODEL.BY_AMOUNT,
				amount=map_action[code].amount,
				price=0)

		if map_do_buy[code]:
			map_do_buy[code] = False
			print("-------->>>>>>>>>>>>------", date, "--------<<<<<<<<<<<<<<------")
			print('CODE:', code, "BUY", " amount: ", map_action[code].amount)
			order = {}
			order['bid_model'] = 1

			order = AC.send_order(
			code=code,
			time=date,
			towards=map_action[code].towards,
			order_model=QA.ORDER_MODEL.MARKET,
			amount_model=QA.AMOUNT_MODEL.BY_AMOUNT,
			amount=map_action[code].amount,
			price=price_open)

		if order is not None and order:
			Broker.receive_order(QA.QA_Event(order=order, market_data=stock_item))
			trade_mes = Broker.query_orders(AC.account_cookie, 'filled')
			res = trade_mes.loc[order.account_cookie, order.realorder_id]
			order.trade(res.trade_id, res.trade_price,
			res.trade_amount, res.trade_time)

		(map_action[code], status) = map_strategy[code].updateByToDayClose(price_close, day_vol)
		print(date, code, price_close)
		if map_action[code].towards != 0:
			if map_action[code].towards == -1:
				map_do_sell[code] = True
			elif map_action[code].towards == 1:
				map_do_buy[code] = True

	# 当天结算
	AC.settle()

if name == 'main':
# 策略名称
strategy_name = 'default'
# 用户cookie
user_cookie = 'user1'
# 组合cookie
portfolio_cookie = 'win300'
# 账户cookie
account_cookie = 'bba'
benchmark_code = '000300'
initial_cash = 200000
initial_hold = {}
commission_coeff = 0.00025 # 交易佣金
tax_coeff = 0.0015# 印花税
backtest_code_list = ['600000','600004','600006','600007','600008','600009','600010','600011','600012','600015','600016','600017','600018','600019','600020','600021','600022','600023','600025','600026','600027','600028','600029','600030','600031','600033','600035','600036','600037','600038','600039','600048','600050','600051','600052','600053','600054','600055','600056','600057','600058','600059','600060','600061','600062','600063','600064','600066','600067','600068','600069','600070','600071','600072','600073','600074','600075','600076','600077','600078','600079','600080','600081','600082','600083','600084','600085','600086','600088','600089','600090','600091','600093','600094','600095','600096','600097','600098','600099','600100','600101','600103','600104','600105','600106','600107','600108','600109','600110','600111','600112','600113','600114','600115','600116','600117','600118','600119','600120','600121','600122','600123','600125','600126','600127','600128','600129','600130','600131','600132','600133','600136','600137','600138','600139','600141','600143','600145','600146','600148','600149','600150','600151','600152','600153','600155','600156','600158','600159','600160','600161','600162','600163','600165','600166','600167','600168','600169','600170','600171','600172','600173','600175','600176','600177','600178','600179','600180','600182','600183','600184','600185','600186','600187','600188','600189','600190','600191','600192','600193','600195','600196','600197','600198','600199','600200','600201','600202','600203','600206','600207','600208','600209','600210','600211','600212','600213','600215','600216','600217','600218','600219','600220','600221','600222','600223','600225','600226','600227','600228','600229','600230','600231','600232','600233','600234','600235','600236','600237','600238','600239','600240','600241','600242','600243','600247','600248','600249','600250','600251','600252','600255','600256','600257','600258','600259','600260','600261','600262','600265','600266','600267','600268','600269','600270','600271','600272','600273','600275','600276','600277','600278','600279','600280','600281','600282','600283','600284','600287','600288','600289','600290','600291','600292','600293','600295','600297','600298','600299','600300','600301','600302','600303','600305','600306','600307','600308','600309','600310','600311','600312','600313','600315','600316','600317','600318','600319','600320','600321','600322','600323','600325','600326','600327','600328','600329','600330','600331','600332','600333','600335','600336','600337','600338','600339','600340','600343','600345','600346','600348','600350','600351','600352','600353','600354','600355','600356','600358','600359','600360','600361','600362','600363','600365','600366','600367','600368','600369','600370','600371','600372','600373','600375','600376','600377','600378','600379','600380','600381','600382','600383','600385','600386','600387','600388','600389','600390','600391','600392','600393','600395','600396','600397','600398','600399','600400','600403','600405','600406','600408','600409','600410','600415','600416','600418','600419','600420','600421','600422','600423','600425','600426','600428','600429','600433','600435','600436','600439','600444','600446','600448','600449','600452','600455','600456','600458','600459','600460','600461','600462','600463','600466','600467','600468','600469','600470','600475','600476','600477','600478','600479','600480','600481','600482','600483','600485','600486','600487','600488','600489','600491','600493','600495','600496','600497','600498','600499','600500','600501','600502','600503','600505','600506','600507','600508','600509','600510','600511','600512','600513','600515','600516','600517','600518','600519','600520','600521','600522','600523','600525','600526','600527','600528','600529','600530','600531','600532','600533','600535','600536','600537','600538','600539','600540','600543','600545','600546','600547','600548','600549','600550','600551','600552','600555','600556','600557','600558','600559','600560','600561','600562','600563','600565','600566','600567','600568','600569','600570','600571','600572','600573','600575','600576','600577','600578','600579','600580','600581','600582','600583','600584','600585','600586','600587','600588','600589','600590','600592','600593','600594','600595','600596','600597','600598','600599','600600','600601','600602','600603','600604','600605','600606','600608','600609','600610','600611','600612','600613','600614','600615','600616','600617','600618','600619','600620','600621','600622','600623','600624','600626','600628','600629','600630','600633','600634','600635','600636','600637','600638','600639','600641','600642','600643','600644','600645','600647','600648','600649','600650','600651','600652','600653','600654','600655','600657','600658','600660','600661','600662','600663','600664','600665','600666','600667','600668','600671','600673','600674','600675','600676','600677','600678','600679','600681','600682','600683','600684','600685','600686','600687','600688','600689','600690','600691','600692','600693','600694','600695','600696','600697','600698','600699','600701','600702','600703','600704','600705','600706','600707','600708','600710','600711','600712','600713','600714','600715','600716','600717','600718','600719','600720','600721','600722','600723','600724','600725','600726','600727','600728','600729','600730','600731','600732','600733','600734','600735','600736','600737','600738','600739','600740','600741','600742','600743','600744','600745','600746','600747','600748','600749','600750','600751','600753','600754','600755','600756','600757','600758','600759','600760','600761','600763','600764','600765','600766','600767','600768','600769','600770','600771','600773','600774','600775','600776','600777','600778','600779','600780','600781','600782','600783','600784','600785','600787','600789','600790','600791','600792','600793','600794','600795','600796','600797','600798','600800','600801','600802','600803','600804','600805','600807','600808','600809','600810','600811','600812','600814','600815','600816','600817','600818','600819','600820','600821','600822','600823','600824','600825','600826','600827','600828','600829','600830','600831','600833','600834','600835','600836','600837','600838','600839','600841','600843','600844','600845','600846','600847','600848','600850','600851','600853','600854','600855','600856','600857','600858','600859','600860','600861','600862','600863','600864','600865','600866','600867','600868','600869','600870','600871','600872','600873','600874','600875','600876','600877','600879','600880','600881','600882','600883','600884','600885','600886','600887','600888','600889','600890','600891','600892','600893','600894','600895','600896','600897','600898','600900','600901','600903','600908','600909','600917','600919','600926','600929','600933','600936','600939','600958','600959','600960','600961','600962','600963','600965','600966','600969','600970','600971','600973','600975','600976','600977','600978','600979','600980','600981','600982','600983','600984','600985','600986','600987','600988','600990','600992','600993','600995','600996','600997','600998','600999','601000','601001','601002','601003','601005','601006','601007','601008','601009','601010','601011','601012','601015','601016','601018','601019','601020','601021','601028','601038','601058','601069','601086','601088','601098','601099','601100','601101','601106','601107','601108','601111','601113','601116','601117','601118','601126','601127','601128','601137','601139','601155','601158','601163','601166','601168','601169','601177','601179','601186','601188','601198','601199','601200','601208','601211','601212','601216','601218','601222','601225','601226','601228','601229','601231','601233','601238','601258','601288','601311','601318','601326','601328','601333','601336','601339','601360','601366','601368','601369','601375','601377','601388','601390','601398','601500','601515','601518','601519','601555','601558','601566','601567','601579','601595','601599','601600','601601','601607','601608','601611','601616','601618','601619','601628','601633','601636','601666','601668','601669','601677','601678','601688','601689','601699','601700','601717','601718','601727','601766','601777','601788','601789','601798','601799','601800','601801','601808','601811','601818','601828','601838','601857','601858','601866','601872','601877','601878','601880','601881','601882','601886','601888','601890','601898','601899','601900','601901','601908','601918','601919','601928','601929','601939','601949','601952','601958','601965','601966','601968','601985','601988','601989','601991','601992','601996','601997','601998','601999','603000','603001','603002','603003','603005','603006','603007','603008','603009','603010','603011','603012','603015','603016','603017','603018','603019','603020','603021','603022','603023','603025','603026','603027','603028','603029','603030','603031','603032','603033','603035','603036','603037','603038','603039','603040','603041','603042','603043','603050','603055','603056','603058','603059','603060','603063','603066','603067','603069','603076','603077','603078','603079','603080','603081','603083','603085','603086','603088','603089','603090','603096','603098','603099','603100','603101','603103','603106','603108','603110','603111','603113','603116','603117','603118','603123','603126','603127','603128','603129','603131','603133','603136','603138','603139','603156','603157','603158','603159','603160','603161','603165','603166','603167','603168','603169','603177','603178','603179','603180','603181','603183','603186','603188','603189','603196','603197','603198','603199','603200','603203','603208','603214','603218','603222','603223','603225','603226','603227','603228','603229','603232','603233','603238','603239','603258','603260','603266','603268','603269','603277','603278','603283','603286','603288','603289','603298','603299','603300','603301','603303','603305','603306','603308','603309','603311','603313','603315','603316','603318','603319','603320','603321','603322','603323','603326','603328','603329','603330','603331','603333','603335','603336','603337','603338','603339','603345','603355','603356','603357','603358','603359','603360','603363','603365','603366','603367','603368','603369','603377','603378','603380','603383','603385','603386','603387','603388','603389','603393','603396','603398','603399','603416','603421','603429','603444','603456','603458','603466','603477','603488','603496','603499','603500','603501','603505','603506','603507','603508','603515','603516','603517','603518','603519','603520','603527','603528','603533','603535','603536','603538','603555','603556','603557','603558','603559','603566','603567','603568','603569','603577','603578','603579','603580','603585','603586','603588','603589','603595','603598','603599','603600','603601','603602','603603','603605','603606','603607','603608','603609','603611','603612','603615','603616','603617','603618','603619','603626','603628','603630','603633','603636','603637','603638','603639','603648','603655','603656','603658','603659','603660','603661','603663','603665','603667','603668','603669','603676','603677','603678','603679','603680','603683','603685','603686','603688','603689','603690','603696','603698','603699','603701','603703','603707','603708','603709','603711','603712','603716','603717','603718','603721','603722','603725','603726','603727','603728','603729','603730','603737','603738','603757','603758','603766','603767','603768','603776','603777','603778','603779','603787','603788','603789','603797','603798','603799','603800','603801','603803','603806','603808','603809','603811','603813','603816','603817','603818','603819','603822','603823','603825','603826','603828','603829','603833','603838','603839','603843','603848','603855','603856','603858','603859','603860','603861','603866','603868','603869','603871','603877','603878','603879','603880','603881','603882','603883','603885','603886','603887','603888','603889','603890','603895','603896','603897','603898','603899','603900','603901','603903','603906','603908','603909','603912','603916','603917','603918','603919','603920','603922','603926','603928','603929','603933','603936','603937','603938','603939','603955','603958','603959','603960','603963','603966','603968','603969','603970','603976','603977','603978','603979','603980','603985','603986','603987','603988','603989','603990','603991','603993','603996','603997','603998','603999','603348','603596','603733','603773','603876']
backtest_start_date = '2013-01-01'
backtest_end_date = '2018-10-01'
Broker = QA.QA_BacktestBroker()
AC = QA.QA_Account(
strategy_name=strategy_name,
user_cookie=user_cookie,
portfolio_cookie=portfolio_cookie,
account_cookie=account_cookie,
init_hold=initial_hold,
init_cash=initial_cash,
commission_coeff=commission_coeff,
tax_coeff=tax_coeff,
market_type=QA.MARKET_TYPE.STOCK_CN,
frequence=QA.FREQUENCE.DAY
)
backtest_func(AC, backtest_code_list, backtest_start_date, backtest_end_date)
print('-------------------------done---------------------')
print(AC.message)
print(AC.history_table)

performance=QA.QA_Performance(AC)
print(performance.pnl_fifo)

performance.pnl_fifo.to_csv('./result.csv')
__file_name_2 = 'D:\\quant_strategy\QUANTAXIS_RESULT\pnl-' + strategy_name + str(time.time()) + '.csv'
performance.pnl_fifo.to_csv(__file_name_2)

#评价csv

您使用的QUANTAXIS版本号是什么?

您的系统信息(包括系统版本,系统架构(32/64),内存大小等等)
x64   8g

您的系统环境是什么?
- monodb
- nodejs(V9以下版本)
- python3.5/3.6
- docker(无)

您需要反馈的问题

感谢您的反馈 如有意见和建议,请在此说明:

您的联系方式(QQ/EMAIL)
QQ.87532775

THANKS
by yutiansut
2017.12

@Wier123
我要的模式就是最贴近实际小散的实盘模式。回测时也就是一个资金账户，用一个策略backtest_code_list里的所有股票都测试。每一天看哪个股票符合策略要求了就买入（不管有几个），每一天看哪个股票符合策略的退出要求了就退出（不管几个）。
你这个实现了吗?
我的实盘模式与你这个有点小差别:
1、我每天更新backtest_code_list,每天根据设定的条件往里面加股票和清除股票.
2、每一天看哪个股票符合策略要求了就买入（不管有几个），每一天看哪个股票符合策略的退出要求了就退出（不管几个）。
这个还是要限制买入数量：最多持有几支股。（小散资金有限，不可能无限买）
主要是第一个每天更新backtest_code_list，更新股池。第二个自己打分排序和根据已有持仓实现。
整个过程我已在rqalpha上实现，只用QA还没有实现这样的过程。

@zhangshoug 你的backtest_code_list 更新逻辑是要全市场选的吗
选出来以后  account.send_order就可以了


[Docs] Control the display of the intra-page navigator toolbar

Signed-off-by: Lee Calcote<EMAIL_ADDRESS>Notes for Reviewers
This PR enhances the Meshery Docs and it's ability to control the display of the intra-page navigator or not.
Signed commits

[x] Yes, I signed my commits.

@sandramsc your review is encouraged.

🚀 Preview for commit 56d9e7835e01b88854cc562cbd5ae1e34157fc5e at: https://6514aab0fc4caa12ec9140ef--meshery-docs-preview.netlify.app

@leecalcote , the
MeshMap Screenshot Service / MeshMapScreenshot (pull_request_target)  check is failing perhaps because the format of the environment variable "b0db3617-d44a-4d04-b66f-1af31a9593e2" is not set correctly?

🚀 Preview for commit 8f98a53e28ac07046497e9bf945cd8931f1ea6d9 at: https://65160eda13a91b0a17d463f3--meshery-docs-preview.netlify.app

@leecalcote , the
MeshMap Screenshot Service / MeshMapScreenshot (pull_request_target) check is failing perhaps because the format of the environment variable "b0db3617-d44a-4d04-b66f-1af31a9593e2" is not set correctly?

Thank you much for pointing this out, @sandramsc. It certainly seems that way. I'll have a look...

🚀 Preview for commit adc00adf37574cae67b916853efc166846cbadc3 at: https://6518e0b358a22706f5a471fa--meshery-docs-preview.netlify.app


Build failure with Compose 1.6

I haven't dug into the issue yet, but Compose 1.6 is out and Dependabot created a PR for it in our repo and the verify-roborazzi tasks are failing:

com.android.designcompose.testapp.validation.RenderAllExamples > testRender[TestConfig(fileName=Hello, fileComposable=androidx.compose.runtime.internal.ComposableLambdaImpl@3972a855, fileClass=com.android.designcompose.testapp.validation.examples.HelloWorldDoc)] FAILED
    java.lang.NullPointerException: Cannot invoke "org.robolectric.internal.TestEnvironment.resetState()" because the return value of "org.robolectric.RobolectricTestRunner$RobolectricFrameworkMethod.getTestEnvironment()" is null
        at org.robolectric.RobolectricTestRunner.lambda$finallyAfterTest$0(RobolectricTestRunner.java:370)
        at org.robolectric.util.PerfStatsCollector.measure(PerfStatsCollector.java:86)
        at org.robolectric.RobolectricTestRunner.finallyAfterTest(RobolectricTestRunner.java:368)
        at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$2(SandboxTestRunner.java:298)
        at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:101)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)

https://github.com/google/automotive-design-compose/actions/runs/7648622110/job/20841710381?pr=747
I can dig in if you'd like me to, but we're not planning on jumping on Compose 1.6 so I'm focusing on other priorities at the moment.

👀

Regarding the issue of:
NullPointerException: Cannot invoke "org.robolectric.internal.TestEnvironment.resetState()" because the return value of "org.robolectric.RobolectricTestRunner$RobolectricFrameworkMethod.getTestEnvironment()" is null
We can resolve this by using:
@Before
fun setUp() {
    DesignSettings.addFontFamily("Inter", interFont)
}

instead of:
@JvmStatic
@BeforeClass
fun setUp() {
    DesignSettings.addFontFamily("Inter", interFont)
}

However, after addressing this issue, another problem arises. The resumed root node of Compose was not found by Roborazzi. The root node is managed by ComposeRootRegistry in Compose Test Library. While nodes exist in allRoots, none are present in resumedRoots. This occurs because the StateChangeHandler's onViewAttachedToWindow() method is not called, and therefore the lifecycle callback is not added.
I will investigate why the onViewAttachedToWindow() method is not being called.

@timothyfroehlich
Perhaps the root cause is related to this error. Could you please take a look? The error occurs just before the onViewAttachedToWindow() method is called

hmmmmm yeah, that's our native library (written in rust) that does a number
of things including adjusting the layout. I'll dig in a bit.
On Sat, Jan 27, 2024 at 2:18 AM Takahiro Menju @.***>
wrote:

@timothyfroehlich https://github.com/timothyfroehlich
Perhaps the root cause is related to this error. Could you please take a
look? The error occurs just before the onViewAttachedToWindow() method is
called
image.png (view on web)
https://github.com/takahirom/roborazzi/assets/1386930/cce15f4f-e589-4399-bff9-538834c4c30d
—
Reply to this email directly, view it on GitHub
https://github.com/takahirom/roborazzi/issues/250#issuecomment-1913074146,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABMM2SS6V5JGJ7IU2EDR6O3YQSZ6NAVCNFSM6AAAAABCK2DPB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGA3TIMJUGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Tim Froehlich
Test Engineer for DesignCompose and AAOS
Located in Austin TX, US Central Time
balance/froeht


Remove nearest-child and nearest-parent computeds.

Nearest child and nearest parent are orthogonal to the way Ember works. Unit tests will fail if they are used in components, as the container is not defined. There is likely a better pattern for passing references between components.
They are also not dependencies of ember-pop-over as it stands. I propose they be lifted into their own microlibrary, or scrapped completely and replaced with a pattern that is more inline with Ember overall.
Our current pattern is as follows:
{{#pop-over for="someId" on="click" as |popover|}}
  <button {{action "close" popover}}>Close</button>
{{/pop-over}}

It's not as clean, but it is more inline with Ember norms. I'd definitely welcome a better pattern.

Gone! 😄
I'll add actions to expose close and open for this.


render two views for stereo cam

Sorry if I missed this in the docs or tutorials, but is it possible to pass a flag to physics.render to get stereo output (either mujoco.mjtStereo.mjSTEREO_QUADBUFFERED, or mujoco.mjtStereo.mjSTEREO_SIDEBYSIDE)? I have a camera with ipd="0.068".

This is actually an attribute of mjvScene or (MjvScene in python). So you you would set scene.stereo = mujoco.mjtStereo.mjSTEREO_SIDEBYSIDE. Depending on how you're building your environment, your camera instance may hold the reference to the scene (camera._scene). By the way, you can also toggle stereo mode when using the viewer by pressing F5.


[Doc Issue][Update Teams client to MS 365 host application][2880178]

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/concepts/build-and-test/apps-localization.md
84
24
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/concepts/build-and-test/apps-localization.md
83
25
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/concepts/build-and-test/apps-localization.md
83
25
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/concepts/build-and-test/apps-localization.md
83
25
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/concepts/build-and-test/apps-localization.md
88
12
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/concepts/build-and-test/apps-localization.md
88
12
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.


Migrate type tests to TSTyche

Thanks for using jest-runner-tsd and tsd-lite to test types. I ~am~ was maintaining tsd-lite and helping with the runner too.
Just wanted to let you know that tsd-lite got deprecated. It is replaced with TSTyche, a mighty type testing tool that I was developing for two years.
The problem is that architecture of tsd is very limiting. Without maintaining forked tsd-lite it was not possible to upgrade TypeScript in Jest repo. tsd-lite was temporary solution to get unblocked and to learn more about type testing.
I was contributing type tests to Jest repo for some time. There are around 1200 assertions. At this scale it was a pain debugging types. So I went on researching and building TSTyche. Similar to tsd, it compares types programmatically, but the rest is different.
I just try to explain that TSTyche is build to work at any scale and to last for year. That's why I would like to recommend to use it in your project.
Currently TSTyche is used by Immutable.js, Jest, Redwood and few more smaller project (including my own packages).
Repo: https://github.com/tstyche/tstyche
Documentation: https://tstyche.org

TSTyche has test() and describe() helpers which support run mode flags like .only, .skip or .todo. These are priceless if you have to debug something. By the way, additionally there are expect.fail expect.only or expect.skip.
--only and --skip can be set from the command line: tstyche useful-types --only DeepPartial.
It has expect style assertions which look familiar. An expression or a type can be passed on both sides of an assertion. This means that TSTyche is able to compare two types directly. There is no need to create intermediate values.
Testing on several versions of TypeScript is supported: tstyche --target 4.9,current. This command would use TypeScript 4.9 and the one from node_modules (the current).
By default TSTyche uses typescript from node_modules. There is no need to install patched TypeScript package like @tsd/typescript. The install size of TSTyche is under 200kB. It has no dependencies.
TSTyche is fast. Just give it a spin.
And there is much more.

Curious what you think.
I have to update documentation/testing-exported-typescript-types.md. The rest is ready for review.

Hm.. Not sure what to do with Node.js 14. TSTyche is using AbortSignal.timeout() which is available from Node.js 16.14. If Node.js 14 support is a hard requirement, I can try reimplement AbortSignal.timeout(). The rest should work.

There are only unrelated failures in e2e. The rest works as expected.
This PR is ready for review. Or at least some feed back (;


Add gzip support to headers and uncompress response if gzipped.

Noted that server returns gzipped responses.
Committed minor fix to handle Gzip responses.

We're merging in the OkHttp PR and will make that the default impl, so, if you have no arguments to the contrary, I'll close it by the end of the week.

Yes this PR can be closed if you're merging the OkHttp pull request :+1:


Running Stable Diffusion on M1 Mac locally

Hi, my friends and I have made a small demo that uses DeepCache on top of the MLX Stable Diffusion example, and I thought it might be a good idea to share this here. (https://github.com/Barry0121/mlx_deepcache) This is meant to be a proof-of-concept, so don't expect it to be flawless :).
Thanks to the author for answering all my questions!

Hi @Barry0121,
That sounds like an exciting project! Thanks for your great work on this, and I added it to this section


[angular-apollo-tailwind] Running yarn install on new project outputs error

Bug Info
Running on a M1 mac
➜  ng-apollo-test node --version
v16.14.2

warning Error running install script for optional dependency: "/Users/dustingoodman/development/starter-testing/ng-apollo-test/node_modules/nice-napi: Command failed.
Exit code: 1
Command: node-gyp-build
Arguments:
Directory: /Users/dustingoodman/development/starter-testing/ng-apollo-test/node_modules/nice-napi
Output:
gyp info it worked if it ends with ok
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| darwin | arm64
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if \"python3\" can be used
gyp ERR! find Python - \"python3\" is not in PATH or produced an error
gyp ERR! find Python checking if \"python\" can be used
gyp ERR! find Python - \"python\" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python=\"/path/to/pythonexecutable\"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python \"/path/to/pythonexecutable\"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack     at PythonFinder.fail (/Users/dustingoodman/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
gyp ERR! stack     at PythonFinder.runChecks (/Users/dustingoodman/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
gyp ERR! stack     at PythonFinder.<anonymous> (/Users/dustingoodman/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
gyp ERR! stack     at PythonFinder.execFileCallback (/Users/dustingoodman/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
gyp ERR! stack     at ChildProcess.exithandler (node:child_process:406:5)
gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
gyp ERR! stack     at Socket.<anonymous> (node:internal/child_process:451:11)
gyp ERR! stack     at Socket.emit (node:events:526:28)
gyp ERR! stack     at Pipe.<anonymous> (node:net:687:12)
gyp ERR! System Darwin 21.5.0
gyp ERR! command \"/Users/dustingoodman/.nvm/versions/node/v16.14.2/bin/node\" \"/Users/dustingoodman/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /Users/dustingoodman/development/starter-testing/ng-apollo-test/node_modules/nice-napi
✨  Done in 20.30s.

Cannot reproduce on Windows.
Possible fix: add .npmrc file into the project root with the following content:
for Windows:
python=c:\Python31\python.exe
for Mac:
python=/path/to/python27/python

Issue was that my local installation of python was corrupted. Not an issue with this project.


hello-world: Improve error-handling behavior

As part of #275, we'd like to more closely follow idiomatic Go behavior in the face of errors.
If the hello-world exercise does not have error handling, then this ticket can be closed immediately.
If it does, then follow the below steps:
Ensure err return value is of type error
It's idiomatic for the error return value to be of type error.
Most tests simply check whether err == nil or not. If we don't verify the type of err, it could be any type that has nils.
To lean on the type system, add the following line after assigning err:
var _ error = err

See the hamming tests for an example.
Ignore the normal return value when an error expected
The contract in Go is "if there's an error, assume nothing about the normal return value". Thus, we should only check the non-error return value when there is no error.
In some exercises we found that we were checking the normal return value, even when there was an error.
See the binary tests for an example of the behavior that we want.
Increment the test version
These changes break backwards compatibility. Bump the test version to let reviewers know that the exercise has changed.
This requires changing two constants:

targetTestVersion in the test file (*_test.go)

testVersion in the reference solution (example.go)

If the exercise does not have a test version, then add one, setting the value to 1.
See the version test in leap for an example.

Thanks for reporting. I verified that the hello world exercise does not do error handling, so as you instructed I'm closing this issue immediately. Come again next time.
(This was a test issue just to make sure that the issue filing, exercise name substitution, and label application all worked correctly)


When called consecutively, HasFeatureFlag method gets an error on the second run

I've been trying 2.0.0 BulletTrain Client SDK on a .NetCore 3.1 WebApi project and on a Console application. For Api calls, my initial plan was to run an on-prem version on Docker. But also I tried "https://app.bullet-train.io/" with a free account.

Console Application works properly. But WebApi project fails when a second call is made to the BulletTrain Api.

So here's my sample code for Console App,

            BulletTrainConfiguration configuration = new BulletTrainConfiguration()
            {
                ApiUrl = "http://localhost:8000/api/v1/",
                EnvironmentKey = "my-local-env-key"
            };

            BulletTrainClient bulletClient = new BulletTrainClient(configuration);
            bool featureEnabled = await bulletClient.HasFeatureFlag("is_it_weekend");
                if (featureEnabled) {
                    // Run the code to execute enabled feature
                    Console.WriteLine("Hello World!");
                } else {
                    // Run the code if feature switched off
                    Console.WriteLine("GoodBye World!");
                }

Here is the sample code from the WebApi project, they're almost identical (I used BulletTrain docs for implementation)

            BulletTrainConfiguration configuration = new BulletTrainConfiguration()
            {
                ApiUrl = "http://localhost:8000/api/v1/",
                EnvironmentKey = "my-local-env-key"
            };

            BulletTrainClient bulletClient = new BulletTrainClient(configuration);
            bool featureEnabled = await bulletClient.HasFeatureFlag("is_it_weekend");
            if (featureEnabled) {
                // Run the code to execute enabled feature
                return Ok(myWeekendItem);
            } else {
                // Run the code if feature switched off
                return NotFound();
            }

When I run it for the first time, it works properly. Without even changing anything, when I run on the web api the second time, it throws the below exception:

Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware: Error: An unhandled exception has occurred while executing the request.
System.NullReferenceException: Object reference not set to an instance of an object.
at BulletTrain.BulletTrainClient.GetFeatureFlags(String identity)
at BulletTrain.BulletTrainClient.HasFeatureFlag(String featureId, String identity)
at Glossary.Controllers.GlossaryController.Get(String term) in /Users/sevikarakose/Projects/Glossary/Controllers/GlossaryController.cs:line 52
at lambda_method(Closure , Object )
at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

This also happens when I try it with the "https://app.bullet-train.io/" for api URL's. It looks like it's about dotnet-client.

Hi @sevikarakose - we'll take a look at this.

@sevikarakose Hi, can I just double check, you are only creating configuration and initialising an instance of BulletTrainClient once in your Web API right? When you say run on the web api the 2nd time, you mean you fully terminate your api and re-start it?

Hi there, thanks for the quick reply. I do not terminate my api and restart it. I call my method that goes to the feature and check it while the app is still running.
Actually I was doing a POC with the dotnet client for my company, so I created a sample api and saw it worked with (let's say) feature flag on. Then without restarting it, I went to the BulletTrain front end (running in Docker) changed the flag value and but this time, I got the error that I pasted.
So to double check, I restarted my api, got the flag result from the BulletTrain api the first time again successfully (whatever the result is), but then I did not change the flag's value from BulletTrain front end, yet again the api failed.
So to triple check :), I created a Console App, and after seeing it's working properly, I put my method in a loop for 1000 times to go check the value from the BulletTrain api. While it was working successfully, I went to the BulletTrain frontend and changed the value for a few times. It never failed, always got the proper results.

Ok thanks @sevikarakose thats really useful. Seems as though any testing with a Console App is not going to be useful in this case. I've not been able to replicate the error you're seeing in the Console app. Would it be possible for you to send across the PoC Web API you've been working on?

Hi there! Thanks again for your fast response. You can clone this repository to check it out!
https://github.com/sevikarakose/Glossary
Before running it, you will need to change the env key for BulletTrain api. The feature I check is called, "show_feature"
When it's up and running, just go to one of these url's for two or more times to see the problem
http://localhost:5000/api/glossary
https://localhost:5001/api/glossary

Thanks for that! I replicated the issue straight away. The reason you were seeing an exception is that BulletTrainClient is only supposed to be created and initialised once for the application. I have released v2.0.1 which enforces this and it will now throw a NotSupportedException error. I have also added for static variable instance for much greater convenience. After creating a new BulletTrainClient() during startup of the app you can now use it anywhere by using BulletTrainClient.instance

Hey, that's great news! 🤩 I suggested this might be the problem, but searched in the documentations thoroughly (Nuget.org & BulletTrain front-end code samples & github documentations) and when I didn't find anything about it, I just went with it. Do you plan to change the documentations as well? Cheers and thank you!


Java stdin and stdout1 is added in HackerRank Section

Solution to Java Stdin and Stdout I is added

Thank you for your contribution. Keep Contributing!


Make KeepExpression infer set size if fixed?

A tricky thing here is that, if the expression is not bound, the size (if fixed) is not known until runtime.

One approach would be to implement some sort of initial_state that gets the pools, or at least their sizes, as arguments. This is kind of spooky, but maybe it being only for expressions is not too bad?

Another issue is determining iteration order. We would need to determine if the multiset size is known first, only after which we would know whether the keep expression can go in any order or only the one order. Even then, during the iteration we still need to know which order we actually chose.

Added KeepGenerator.


fix: Only parse response body when a body is expected

Summary
This PR fixes two issues

Allow empty response bodies for successful requests (#184)
When the server returns a 503, the response body is not an HTML page and not a json object. So try parsing response and don't fail (#163)

Checklist

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

Looks good. Thanks @izaaz.
Lint is failing in CI. I have gotten in the habit of running ./gradlew ktlintCheck locally, not sure if there is a way to intergrate this lint style into the IDE(s)

Good to know! Thanks @justin-fiedler


create first draft of branching and release process

I'm good with this pending the existing comments.

Shoot - it occurs to me that we should have vulnerability scans as part of the release process.  It'd be great if a report could be generated for each build, but I don't think we should have it fail if/when it finds things because that could really hold up people's PRs and releases, especially if a last-minute vulnerability came out.

Shoot - it occurs to me that we should have vulnerability scans as part of the release process. It'd be great if a report could be generated for each build, but I don't think we should have it fail if/when it finds things because that could really hold up people's PRs and releases, especially if a last-minute vulnerability came out.

I'm going to leave specifics such as image/artifact building and scanning out of this ADR, both because I'm not familiar with all the project specifics and because I wanted to keep this ADR focused. I'll add it to the open questions section.


godef: init at 20160620-ee532b9

Motivation for this change
godef is pretty useful and used by several editors (like emacs) to be able to jump to declaration. It looks like it was there at some point and has been removed. This re-adds it 👼
🐸
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Signed-off-by: Vincent Demeester<EMAIL_ADDRESS>

@vdemeester You are missing a semicolon at the end of your maintainer definition.

@zraexy ah you're right :sweat_smile: fixed :wink:

Thanks!


[DO NOT MERGE] Import search page

Spike around importing site-search from frontend.
This introduces technical debt as a result of copied functionality
which should be removed in subsequent PR as we look to standardise
site-search with the existing finders through the use of shared components
The primary goal of this PR is to understand what is required to import
site-search without any refactoring.
https://trello.com/c/lxKbO5Xw/348-make-finder-frontend-serve-search-request
Most screens match with just a small offset on the search button

However the search screen with no value entered has different whitespace. @fofr do we want to fix this before merging

Why is the without-id-application.html.erb file needed?
Understand this is a first pass, but worth mentioning the rendering isn't quite right on the search input field:
https://finder-frontend-pr-313.herokuapp.com/search
https://finder-frontend-pr-313.herokuapp.com/search?q=test

@fofr I have fixed the rendering issues with the search checkbox.
While I agree the layout is very similar, I have left it as a separate file for now with the understanding it will be merged in the near future.

@fofr as discussed we will leave the spacing issues with the search pages (when no search term has been entered) until we have componentized this page. Fixing this will be a requirement before switching the routing across to use finder-frontend.

Regression test based off Kibana data will be performed for the following URL:

/government/organisations/hm-revenue-customs/contact
/government/policies
/business-finance-support
/government/policies/criminal-justice-reform
/cma-cases
/drug-device-alerts
/government/policies/equality
/aaib-reports?keywords=&report_type%5B%5D=formal-report&date_of_occurrence%5Bfrom%5D=&date_of_occurrence%5Bto%5D=
/aaib-reports?keywords=&report_type%5B%5D=special-bulletin&date_of_occurrence%5Bfrom%5D=&date_of_occurrence%5Bto%5D=
/aaib-reports?keywords=&report_type%5B%5D=annual-safety-report&date_of_occurrence%5Bfrom%5D=&date_of_occurrence%5Bto%5D=
/government/policies/brexit
/world/organisations
/employment-tribunal-decisions
/government/organisations/hm-revenue-customs/contact.json?keywords=&contact_groups%5B%5D=income-tax
/government/policies/immigration-and-borders
/drug-safety-update
/aaib-reports
/government/policies/building-regulation
/government/policies/greenhouse-gas-emissions
/government/policies/children-s-health

Review of Ruby code. Still requires Frontend review 🚀

Pagination styles are broken, should be fixed during the frontend pass:


Development

Changed name of "Obsidian Ingot" to "Refined Obsidian Ingot" to avoid confusion with obsidian ingots for other mods (for example Tinker's Construct)

Thanks!

@TehStoneMan: uh, please don't use "Development" as the PR title...use an actual title that's detailed, as it's confusing when you just use "Development" as the title.

Sorry. Guess I forgot to change that from default.

@KamranMackey, it's really no issue. He provided a nice detailed explanation inside of the changes he made and why he did so.


Dependency name 'stdlib' found, but expected 'dp-stdlib' instead

@zoziha thanks for lightweight stdlib. I was following the instructions in README.md and ran into issue
fpm build
…
From https://github.com/zoziha/dp-stdlib
 * branch            HEAD       -> FETCH_HEAD
<ERROR>*cmd_build*:model error:Dependency name 'stdlib' found, but expected 'dp-stdlib' instead
STOP 1

I think this will work:

change the library name in fpm.toml, or
change the library dependency name in README.md

Yes, this is dp-stdlib that I put together temporarily yesterday, and it has this problem.
I've just tried to solve the existing problems, and stdlib_random is probably unsafe (incorrect) right now, I'm going to keep an eye on it.


Is it possible to build a port against a different fork/branch/source-tweaks?

I am interested in using a project for which a vcpkg port is available, but it is likely we'll need to add changes to the source.
I would much rather continue to use vcpkg but I don't want to be stuck waiting for them to accept a PR (or maybe we have bespoke changes we never share) - is there a way I can use a different git URL for the same project, or otherwise override with my modified source code, against their pre-exisiting build setup?
Whether cleanly, or as some hack is fine. Even to the extent of copying my source on top...no idea if it's possible to decouple vcpkg downloading and building the sources in this way but our changes are likely just to existing CPP files.
(apologies if I did something wrong, I raised this as a question but it seems uncategorised)

Yes, you can do custom ports using --overlay-ports, example:
Let's imagine you want to modify zlib and ffmpeg.
Copy their port folders to a different location, let's assume D:/custom-vcpkg-ports/zlib and then make your changes to the ports.
Then you can do:
./vcpkg install --overlay-ports=D:/custom-vcpkg-ports zlib ffmpeg

In the near future we plan to implement custom registries, that will allow you to point vcpkg to a Git repository that contains ports.

@vicroms that's great, thankyou.


Limit number of ports in function node

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes
In this pull request, I fixed #3885 in case of entering ports for function node only.
Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Coverage remained the same at 68.328% when pulling 7507a7b459fdebf22287dda7b9dc4ac939402a4a on kazuhitoyokoi:master2 into f060309002e41ce0ab610b7d78f58f0ccdb4042d on node-red:master.

Thank you!


hoursDisabled option not working at minutes view

I am using the option hoursDisabled: [0,1,2,3,4,5,6,6,7,8,20,21,22,23] to prevent selection of time in a particular hour range. However one can still access the disabled hour using the navigation arrow in minutes view of meridian format. See the screenshot.

@rkmourya - Have you tried setminutesdisabled ?

Have used the minutesDisabled option while initialization but not called function setminutesdisabled()

@rkmourya  try this option which is not available in help doc also it solve mine problem may be work with your also :)
formatViewType: 'time',
var d = $(element).datetimepicker({
formatViewType: 'time',
showMeridian: true,
hoursDisabled: [9, 10, 11, 12, 13, 14, 15, 16],
format: "HH:ii P",
maxView:1,
startView: 1,
autoclose: true,
templates: {
leftArrow: '',
rightArrow: ''
}
});


says 404 but works

* Downloading scaleway-cli release 2.2.3...
curl: (22) The requested URL returned error: 404 Not Found
Version    2.2.3
BuildDate  2020-11-19T10:43:16AM
GoVersion  go1.15.5
GitBranch  new-release
GitCommit  92176b83
GoArch     amd64
GoOS       darwin
scaleway-cli 2.2.3 installation was successful!

hi @matti
thxs for reporting this.
yes this is a known comsetic issue because scaleway changed the versions scheme they used in the middle of the history
so we try the 1st option and if 404 it must be the new version scheme ....
not so clean but was the only way i thought about. PRs welcome :-)


Added the image of Main feed page(Post card for asking questions) #4

Related Issuse

Added the images of designs of the profile page.

Closes: #[issue number that will be closed through this PR]
Describe the changes you've made
I have made the designs of the Main feed page in that Postcard for asking the question wherein have designed according to the sample color given, I have added nav bar with a different category such as a question, answer, saved(question), have added user profile picture as a cartoon in navbar as well in connection pannel(if the user doesn't want to put his/her picture, added the symbol in category section, in the center part I have added like and dislike button, share, bookmark, comments(to type answer), date as well as user name with her/his profession
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.

@shairanshrawat please post a screenshot of the same

@shairanshrawat please post a screenshot of the same

@ir2010 is it now?


docker-emu

https://github.com/necrose99/Docker-Gentoo-ARM64
Building in Docker Cloud's infrastructure... Starting to clone Cloning into '.'...
Cloning done Starting Build KernelVersion: 4.4.0-31-generic Os: linux BuildTime: 2016-06-01T22:00:43.211343203+00:00 ApiVersion: 1.23 Version: 1.11.2 GitCommit: b9f10c9 Arch: amd64 GoVersion: go1.5.4 Starting build of index.docker.io/necrose99/gentoo-arm64:latest...
Step 1 : FROM scratch --->
Step 2 : MAINTAINER Necrose99 --->
Running in 0f08422094c8 --->
9a8b9cb491e4 Removing intermediate container 0f08422094c8
(oh no i want to hang on till the end hear... nuts)
Step 3 : ADD http://distfiles.gentoo.org/experimental/arm64/stage3-arm64-20160324.tar.bz2 / ---> 8b69cd908dea Removing intermediate container dcc4601a2242
Step 4 : RUN mkdir {/packages,/usr/portage,/usr/portage/distfiles} && ln -s /packages /usr/portage/packages --->
Running in 47cb1c16de52 Removing intermediate container 47cb1c16de52
Container command '/bin/sh' not found or does not exist.
anyhow I'd welcome some API tags or things to let docker know this is an emulation container , and to do all steps but perhaps i need a builder-sh to do more prep. but was trying to keep it simple.
any tips appreciated,
http://i.imgur.com/2ffs83M.png   works in virtual-box  albeit really damb slow. compiles.
http://pastebin.com/FAzQAJ5T
though any mounts to the chroot die as emu loads. :-(  thus plumping disk usage.. )
anyhow getting enough to spin up the container and let docker-hub build would be a plus.
till i get a new 1TB SDB or # laptop volume replacement i'm puking on disk-space and the means of building further on a local then uploading as a sqaushed container from Sabayon/Gentoo Linux

Thanks for sharing; however, the GitHub issue tracker is for reporting bugs, for general, non bug related discussions, https://forums.docker.com is a more suitable place, so I'll close this issue here

no problem , just for docker containers , it would be nice to specify in docker file
this container wont run till step X , it can run emulator or not run the emu if on native hardware.
A: on native hardware , (no all that many arm64 docker servers/hosts)
or
B) inside of another host container/local host ruining Emulator load step.  ie run this bash script.
unfortunately  i'll Have to zip my tools into another docker container  add it as a dependency .
dockerfiles cant hold the door open for just 30 more seconds of docker-hub base container...  (load the tools) add symlinks etc... or make a sandwich (keep the minimal , but in a transparent to user/s) add on emulator run emu script, for container on top of...
also could specify a core container for  ie use gentoo/else linux-amd-64 , run the loader script for emulator  however host container just supports emu and isnt visible to users.
anyhow some Future state features , with regards to emulated -containers would be a nicety .
ie one could keep basic docker Linux but run scripts to chroot to a volume ...  your Linux /emulated...
or get a host volume hide it from users...
or if native hosts drop tools and scripts...
API future state features that can handle better docker emulated containers better and cleaner I guess is more my point.
if I added the tools to a volume , it would work , just a lot more messy.  if the container was pulled.
if on non native host , add it as a volume... chroot (proot run emulator binformat chroot)  to it...
else native just be a pure container ...
unfortunate one cant spec this currently, or tell docker-hub  requires Linux-x64-bash to run emulator. (from ie native host or another docker)
make native host invisible..... run emu , wala.
anyhow hoping to see better emu API'S down the line.
or things to add to docker file for emu-volume ?
emu-host=amdx64
emu-command= proot $cwd.....
add-emu=url ,url2
add-emu-scripts=url
if on native hardware docker would just ignore those...
theirs got to be a cleaner/better way longer term but so be it I can see about reworking it for now,
anyhow I'll watch to see if better API's for Emulator containers come down the pipeline , as improvements for docker.
or if there were better takes /tips i'll take them for now.


BUG: fixed improper rotations in spatial.transform.rotation.match_vectors

Reference issue

Closes issue #10444
What does this implement/fix?

Corrects improper rotations as done in the Kabsch algorithm.
Additional information

A unit test has been added using the data provided by @sinanus in issue #10444

@pmla
Checked the code and the papers. This change is correct and absolutely necessary. We somehow overlooked  that in the reference [1] he states that U and V must be chosen such that they have determinants of +1.
Great job. Build failures are unrelated, so I suggest that we should merge it.

Thanks @pmla

I am just basing this on @nmayorov's comment but the current implementation checks the determinant of the product not individual determinants. Hence -I for u and v satisfy the code but fail the theoretical condition.
If it is OK just ignore my comment please 😃

@ilayn the Wikipedia article on the Kabsch algorithm does a good job of describing why the determinant of the product is correct: https://en.wikipedia.org/wiki/Kabsch_algorithm


Section header

How can i eliminate the section headers? I just want to show the tableviewcells. Testing with the settingsviewcontroller

WYPopoverController displays your view controller and doesn't touch it, so your question isn't related to the WYPopoverController.

terrible question, this is just a weird quality of the demo, sorry!


Adjust font fallback behavior on macOS

NB: I've been building Alacritty with my own fork of crossfont, and that's fine. I just thought of opening a PR in case my quasi-fix would be of use to other Mac users. (See Alacritty issue 2800 for background.) If the PR isn't welcome, by all means close it.
Apart from comments, two changes have been made to the code. First, my testing has shown that Apple Symbols is already included in the cascade list being requested for Menlo Regular (English). So there's no need to add it back manually, as was done before. I wrote a test that prints the fallback list, which has around forty items (including what appear to be duplicates?). Yes, we lose ".Apple Symbols Fallback," but "Apple Symbols" itself is there.
Second, if it's available, we can add Noto Sans to the fallback list as another high-coverage font. I've verified that this does nothing if the font is not installed. To my knowledge, all of the characters that people have been complaining about (₽, ⸨ and ₙ come to mind) are provided in Noto Sans. With this added to the fallback list on an as-available basis, users who are seeing issues with uncommon characters could be advised to install a font. It could be a decent fix for a while. I have no idea what the path might be to getting macOS font fallback behavior in crossfont/Alacritty to be more like what we see in Terminal.app or iTerm2—where ultimately, afaict, every installed font will be checked for a glyph before giving up.
Thank you for your work on this library.

I'm confused: Apple Symbols wasn't being removed. It's already part of the fallback list. The end result was only to add Noto.


Feature Request : codec by fport

The codec tab under device profile should be modified to include an option for the the payload codec.
The Payload codec should have an option by fport (default all fport)

an option should be added to define a codec by fport
the fport option should be (1 + 223) or (all) for all ports

The objective is to get a different codec by fport for one end-node; like
a) Javascript executed for the uplink data from fport 1
b) Cayenne LPP codec for the uplink data from fport 2****

The fPort is already available to the codec, so you could create different code-paths within the codec to handle the decoding in a different way per fPort.
With regards to mixing JS and LPP codecs, I have never seen a device implementing two different ways of payload encoding in this way. Could you provide an example?


Error while running fraud service

When nodes are started sequentially with peers configured, the fraud service expects the seed nodes to be already started, otherwise will result in the following error.
2023-05-16T19:56:05.315-0500	ERROR	fraudserv	fraudserv/sync.go:74	error while requesting fraud proofs	{"err": "protocols not supported: [/state-fraud/fraud/v0.0.1]", "peer": "12D3KooWJXHwdV5dfhneCJYpkFRcoSZsVBK13Dzz2C1CsC2TyZMh"}

Not relevant anymore.


⚠ Spryr has degraded performance

In d974ca3, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 4698 ms

Resolved: Spryr performance has improved in 55ee6b1 after 19 minutes.


Refactoring of the 'ressources' package in the frontend branch

I'm currently working with the new frontend, so for that I want to remove the old or unnecessary stuff.
So here are the thing I want to remove. If you have anything to add oder that you think we should keep, please raise your voice.
So I would suggest removing the following:

The old header and everything related (CSS)
The impressum
The old home page (we dont need it anymore) and everything related (JS and CSS)
'simple_user_searchbar.html' (I did this and it isn't usable anymore)
Everything related to the matches except add as base for the 'match result form'
Everything related to login and registration as we use KeyCloak

I also would like discussing the following pages as I dont know which is really needed:

Football Icon (we use Fontawesome, so do we really need them, we don't use them anywhere)
There is a '_cookieWarning.js' and a 'cookieWarn.js' and there are in use BOTH. They only differ by one line of code, doesn't look like thats intended, we should only keep one)
Error pages 400 and 404 (they seem usable to me, but I'm not shure if you think so too)
Index.html (is outdated, we can make a new one if it is required)

Seeking for your Feedback!

I think we can basically remove the entire template Folder as we've used Bootstrap. We neither need _cookieWarning.js or cookieWarning.js as Tom mentioned:

So ein Feature wie "Cookie Consent" ist für eine interne Anwendung überflüssig.   Stichwort "Minimal Viable Product" (das könnt ihr mal googeln (Lächeln)).

@ccaylak Thinking of the principle of 'Minimal Viable Product' and its use of an intern application we should get rid of the cookies, index and impressum (yes this is basically the entire template folder)

I believe we can remove everything in the templates folder but match/* and we can remove the static folder completely as it's mostly outdated by now.

affirmative


Update miniredis SHA.

There are some changes regarding time in mock redis repo. PTAL.
This PR needs to merge into master to avoid test failures.
Once my PR got merged in, I will update WORKSPACE to point to original repo (instead of my fork.)

This change is

Jenkins job mixer/presubmit passed

Jenkins job mixer/manager-regression passed

Jenkins job mixer/e2e-smoketest passed


Forward/rel/6.2.1

@ironman-machine how about it?

Hello @LaurenSpiegel
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "SCALITY_S3_BRANCH": "forward/rel/6.2.1", "DEFAULT_BRANCH": "master"}
Please follow http://ci.ironmann.io/gh/scality/Integration/6137 for CI status.

end to end passed: http://ci.ironmann.io/gh/scality/Integration/6137


quantization bug fixes for MOE

i) Prune quantized params correctly
ii) Initialize kernels in serve mode appropriately
iii) Bug fix in constructing abstract parameters

looks goo, can you run LLama2-7B loading bf16 ckpt and saving a int8 ckpt and then running benchmark? Just to make sure this doesn't break existing flow.


It is great. I just want agda syntax highlighting)))

It is so great

I don't want agda syntax highlighting now, but it is still great


TypeError: list indices must be integers or slices, not NoneType

baselines/ppo1/mlp_policy.py:51:        ac1, vpred1 =  self._act(stochastic, ob[None])
looks like a syntax error.
any solution?? thanks!

[None] adds one dimension to np.ndarray if that is what you asking.


Just for fun: How long would training this model take on a Nvidia 1080Ti GPU (12gb)

It says in the paper they used 256 cores of Cloud TPU V3. Is it possible to estimate by any means?
a year?

That's a difficult question to answer because of the number of variables involved (batch size, effect of bsz on convergence, TPU vs GPU, memory size etc.). But, this guide would be a great starting point for such comparisons.


Remove extensions argument from AsdfFile

This PR removes the out-dated extensions argument from the AsdfFile class, for passing in user specified extensions. This interface is being replaced with the context manager asdf.config_context combined with the add_extension interface.

Oops, just noticed the flake8 failure, can you fix that before we merge?


When implementing external endpoint reporters and app/web.config contains "Metrics.HttpListener.HttpUriPrefix", registration is attempted more than once and fails silently.

When I try to register (just an example using Metrics.NET.Prometheus)
            // this should not be necessary either...
            var metricsEndpoint = AppSettings["Metrics.HttpListener.HttpUriPrefix"] ?? "http://localhost:1234/someservice/";

            Metric.Config
                .WithHttpEndpoint(metricsEndpoint,
                    config =>
                        config.WithPrometheusEndpointReport())
                .WithSystemCounters()
                .WithAllCounters();

if the app.config contains Metrics.HttpListener.HttpUriPrefix key it will try to register the endpoint twice. Once for the base implementation and again when it attempts to add the report endpoint. Since the base endpoint is already registered it simply returns without error.

Hi, I changed it in the latest version (v0.4.6-pre): an exception is now thrown upon startup if an http endpoint is configured twice.

Fix released in the latest stable version v0.4.7


label genes on heatmap zoom?

Done: Rows are labelled when the count is less than 50. That number could change, but it doesn't feel like something that needs to CLI parameter.


feat: add typescript summary

Codecov Report

Merging #19 into WIP will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              WIP      #19   +/-   ##
=======================================
  Coverage   87.05%   87.05%
=======================================
  Files          28       28
  Lines         139      139
  Branches        7        7
=======================================
  Hits          121      121
  Misses         18       18

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 6b09ddb...5a6998c. Read the comment docs.


Fix package description for Microsoft.Extensions.Logging.AzureAppServices

Currently it says: Diagnostics logger for Azure WebApps
Except that isn't what it's called! (Ironically, the package name is fine.)
And it should probably also say something about what it actually does.

@pakrym could you take this one as well while doing #508?


Please push new release to NPM

Hi @contra, I think it will be great if we will have the most recent version of this component on NPM.
Thanks a lot! 🎉

Publishing a new minor release now


Custom Eventlog Data

Is there a way to make the add or remove properties from the logEvent,
I would want remove unnecessary properies like AppDomain, and move all the properies of "MessageObject", outside of the warpping
{
"_index": "slog_20171218",
"_type": "LogEvent",
"_id": "v_cNaWABDFhcUDArB-sp",
"_score": 1,
"_source": {
"@timestamp": "2017-12-18T09:55:49.0362522Z",
"LoggerName": "Log4NETTest.Program",
"HostName": "ADIPTOP",
"ThreadName": "1",
"AppDomain": "Log4NETTest.exe",
"Level": "INFO",
"Message": "Log4NETTest.LogObject",
"MessageObject": {
"RawReading": null,
"Severity": null,
"Message": null,
"CorrelationId": null,
"TimeStamp": "0001-01-01T00:00:00",
"BoltName": null,
"InternalTimestamp": "0001-01-01T00:00:00",
"ReadingTimestamp": "0001-01-01T00:00:00",
"AppId": null,
"DeviceId": null,
"ProductId": null,
"Unit": null,
"TypeCode": 0,
"Name": "something new",
"Value": null
},
"log4net:Identity": "",
"log4net:UserName": "ADIPTOP\Adi",
"log4net:HostName": "Adiptop"
}
},

There are two ways you can remove fields:

Using FixedFields configuration parameter
Using Remove Filter

Using FixedFields configuration parameter:
If all you want is to remove all the default fields from log4net you might use the FixedFields configuration, For example to remove all but the message use this:
<FixedFields>Message</FixedFields>

You can also combine two or more fields.
To read more about FixedFields please refer to log4net.Core.FixFlags
Using Remove Filter:
For example to remove the ThreadName just add this to your configuration:
<ElasticFilters>
    <Remove>
        <Key>ThreadName</Key>
    </Remove>
</ElasticFilters>

Take a look at these filters for more information:

Add - add new key and value to the event.
Remove - remove key from the event.
Rename - rename key to another name.

Unfortunately there is no way to move field from inner place to outer, if more folks will desire such behavior I will try to add it.

That sums it up,
Thanks!!!


Re-visit tests for identity_vscode_credential

From review feedback:

azure.identity._credentials.vscode_credential assigns get_credentials based on the current platform, so this import can only get you one of the three implementations. That's fine for "live" tests which actually exercise the platform implementations end to end, making real native calls, but for mock tests it would be more flexible to import directly from the platform-specific modules.

It would be good to also verify the credential tried to use the expected refresh token.

See more details in #10840

Fixed in #10840


feat: add Bitset 3.2.0 release

update Bitset with release 3.2.0

:tada: This PR is included in version 1.137.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Set TargetOSVersion in INF for Windows 11

HLK for Server 2025 fail INF Verification with the error:
The syntax 'DIRID 13 (CopyFiles)' was introduced in OS version 10.0.16299, but DDInstall sections utilizing the syntax will install on earlier OS versions. Those DDInstall sections should be restricted to only install on 10.0.16299 or higher using a TargetOSVersion decoration.
As Windows 10 before build 16299 is EOL and we don't support it. This is ok, to have DIRID 13 in Windows 10 INF without TargetOSVersion decoration.
Resolve: https://issues.redhat.com/browse/RHEL-1214

As Windows 10 before build 16299 is EOL and we don't support it

What about Server 2016 which is in extended support?