Add diag-oft network args

This PR passes the "constrain" and "rescaled" parameters to diag-oft module.
Just a note, "use_scalar", "train_norm", and "rescaled" are assigned string type if specified in network_args. It works fine though since they're False (bool) if not specified.

Yeah I have notice some type fault of them
Will fix it.

@v0xie The string "False" problem have been resolved on latest commit


Set colour for selected and normal text for when view instantiate

I think I may have had the same issue as you. I used IB for layout of the view, then code for customizing the BetterSegmentedControl view. Is that what you're doing?
Anyway, i put the .options, and .segment into layoutSubviews function of my View

I cannot understand what the issue is about.
Can someone clarify?

@gmarm what I'm trying to ask is if there is any methods for us to customise the normal text color for different screens?

If you're using different instances of the control, then you can surely configure the controls with different colors.
If you're using the same instance and want different colors per segment you can also do that by creating segments individually (not using the factory method).

do you have any example codes to show?

Inconsistencies between IB and runtime were fixed as part of https://github.com/gmarm/BetterSegmentedControl/pull/142


Merge pull request #1 from sitrunlab/develop

Develop

what change ? really to develop branch ?

My mistake. I wanted to merge current develop branch with my fork.

Ok


[Task]: Test cases for JsonView annotations

Is there an existing issue for this?

[X] I have searched the existing issues

SubTasks
No response

@nayan-rafiq  - Is this issue still valid, do we need to work on it?


Add ability to see through camera on the SmartDashboard

See documentation for CameraServer

The magical steps to add the upper port camera to SmartDashboard:

Add an mjpeg stream viewer
Give it this address: http://<IP_ADDRESS>:1181/stream.mjpg

Done in 9f32c4cc6045a6b1840b5d5015cf19ab87bad474


Predict outcome matrix for new data

Accounts for when we encounter random effect grouping IDs that we didn't see when fitting the model.

@zhengp0 this makes predictions with correct sorting order


JavaScript examples for pagination docs

This PR includes some of the JavaScript examples that are missing from the docs.

Paging an Object
Paginate a global or local data file
Aliasing to a different variable
Paging a Collection

This is my first pull request, so apologies in advance if anything is confusing or wrong. I'm including all the examples for the pagination page in this PR, if it's a better to split them up, I'm happy to correct that.

Hi @w0whitaker,
first of all thanks for your effort and trying to bring your skills to this project.
It seems to me like you reformatted many files in this project without actually changing them with your own formatting opinions. This way this PR is not reviewable (it changes nearly 300 files and adds 8.3k lines and removes 5.7k lines).
This project has the npm run format script to do formatting. Please use that for formatting and in a normal PR only commit the formatting changes in the parts you're actually touching. That way the PR stays small and is easy to review and merge.
Because of the size of this PR, I'd right now recommend that you pull the current master and apply only your changes you actually want to do on there and open a new PR. That way we can avoid having those massive changes in the commit history.

Oh! So sorry. Thanks for the feedback, and I will close this one, fix the formatting, and open a new one.


boats for sale list

There has been a request for a way to create a list of boats for sale on the website.

We already have this but people aren't understanding that all they need to do is go to the boat register and select the for-sale option.
So we'll create a link which pre-sets the switches to the for-sale options and link to it separately.

Sounds good
On Sat, 25 Jul 2020 at 09:27, Julian Cable<EMAIL_ADDRESS>wrote:

We already have this but people aren't understanding that all they need to
do is go to the boat register and select the for-sale option.
So we'll create a link which pre-sets the switches to the for-sale options
and link to it separately.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oldgaffers/boats/issues/40#issuecomment-663828085,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APTZ5FH7NDOBY3QJN36J5E3R5KJQXANCNFSM4OQO3TZQ
.


Update events queue

Add swampUP conference and link video from DevOpsDays Seattle
Urgency

[ ] Blocker
[ ] High
[X] Medium

Requirements

Test all commands and procedures.
Build content locally and test for formatting/links.
Add redirects to dcos-website/redirect-files.
Change all affected versions (e.g. 1.7, 1.8, and 1.9).
See the contribution guidelines.

Napa.jpg is a photo I took, so licensing is fine on it.


Running circuit with classical condition can cause KeyError

Benny and I found this by running a randomly generated circuit through the compiler.
When preparing classical registers to pass to append_tk_command_to_qiskit, there's a check here that excludes scratch registers that are used to store results of reg_eq(creg_0, 3).
However, under certain conditions, this leads to a KeyError because regname is tk_SCRATCH_BIT.
Recreate with:
main_circ = Circuit(2, 2, "main_circ")

creg_0 = main_circ.add_c_register("creg_0",2)
# Applying gates

main_circ.add_gate(OpType.CH,[0, 1], condition = reg_eq(creg_0, 3))

main_circ.measure_all()

backend = AerBackend()
no_pass_circ = backend.get_compiled_circuit(main_circ, optimisation_level=0)
counts = backend.run_circuit(no_pass_circ).get_counts()

Results in:
KeyError: 'tk_SCRATCH_BIT'

Running the circuit above or with OpType.CH replaced by OpType.CV results in the same error.

Another code snippet that leads to the same error:
U3_op = Op.create(OpType.U3, [-0.09, -0.39, -0.17])
Ry_op = Op.create(OpType.Ry, [0.1])
op_map = {(0,):U3_op, (1,):Ry_op}
multiplexor = MultiplexorBox(op_map)

main_circ = Circuit(0, 2, "main_circ")

qreg_0 = main_circ.add_q_register("qreg_0",3)
creg_3 = main_circ.add_c_register("creg_3",1)

main_circ.add_gate(multiplexor,[qreg_0[1], qreg_0[2]], condition = reg_eq(creg_3, 3))

backend = AerBackend()
no_pass_circ = backend.get_compiled_circuit(main_circ, optimisation_level=2)
counts = backend.run_circuit(no_pass_circ).get_counts()

I think this is a question of giving an appropriate error message when the circuit contains classical ops which are not supported by the AerBackend.
It may also be possible to run the circuits if we can convert the reg_eq check to an equivalent qiskit operation

I think this is a question of giving an appropriate error message when the circuit contains classical ops which are not supported by the AerBackend.
It may also be possible to run the circuits if we can convert the reg_eq check to an equivalent qiskit operation

I think this is a real bug. We should really be able to convert this circuit and run it. But it is failing in tk_to_qiskit() for obscure reasons. I think there is a bug in the book-keeping of the set of active RangePredicates there.

Minimal example:
from pytket.circuit import Bit, Circuit, OpType, Qubit
from pytket.unit_id import _TEMP_BIT_NAME
from pytket.extensions.qiskit import tk_to_qiskit

c = Circuit(1, 1)
treg = c.add_c_register(_TEMP_BIT_NAME, 1)
c.add_c_range_predicate(1, 1, [Bit(0)], treg[0])
c.add_gate(OpType.X, [Qubit(0)], condition_bits=[treg[0]], condition_value=1)
c.add_gate(OpType.Y, [Qubit(0)], condition_bits=[treg[0]], condition_value=1)
print(tk_to_qiskit(c))


Github Actions: build cache, run all tests on master branch

Summary of changes
Asana Ticket: Tech Debt | All CI steps should run on main branch
The first commit is unrelated to the linked Asana ticket. It restructures the tests.yml workflow jobs, mainly adding a build job that basically does the same as npm run build but more methodically and with caching. The whole workflow ends up a bit faster since it's not building the same build several times.
You can see the effect of this change: https://github.com/thecristen/dotcom/actions/runs/1054828882
The second and third commit: lets the tests.yml workflow run on pushes to the master branch. Tweaks the job logic so that every test will run on master (whereas in PRs, some tests might get skipped depending on the types of files that have changed). The last commit tweaks this further so that PRs opened by Dependabot should trigger all tests to run.

Some more changes added - mainly to rebase and accommodate the new tests added in #1021 . I also extracted out the build step to its own job that includes caching of certain artifacts there. Then I realized running these tests on different ports might be useful...


JBDS-4010 DevSuite installer should check if virtualization extension is enabled

DevSuite installer should check if virtualization extension is enabled

Current coverage is 79.96% (diff: 0.00%)

Merging #499 into master will increase coverage by 1.31%

@@             master       #499   diff @@
==========================================
  Files            25         25
  Lines          2309       2431   +122
  Methods         396        398     +2
  Messages          0          0
  Branches        197        199     +2
==========================================
+ Hits           1816       1944   +128
+ Misses          493        487     -6
  Partials          0          0

Powered by Codecov. Last update 51cac08...da4cb32

Do not forget about tests.

test this


Feature/sidebar updates

Please remember to follow the Lasair Pull Request checklist when issuing & reviewing this pull request:
https://lsst-uk.atlassian.net/wiki/spaces/LUSC/pages/2612264961/How+to+do+Pull+Request#STEP-3%3A-Issue-a-Pull-Request-on-Github
CHANGES

@RoyWilliams added some links to the sidebar

Please can you add a new link "Get Started" or 'Quickstart". Meg is right, it must be there.
I will write something that explains about filtering and some of the available attributes "my first filter"

Hi @RoyWilliams how about this:

Rich and Tidy!?

The documentation links will open a new tab
The about page is a placeholder link for now (we can add an issue to create a nice about page)
The annotators have their own icon now
Schema browser maybe belongs in the bottom section?

Can't they all be visible? Why the strip tease behind the awful word Documentation??
Four items not hidden:

About
Quickstart Guide
API and Notebooks
FAQ

I like the luggage tag!

Let's push it to the team (again!)

Test fails seem to be to do with yesterday's outage. Do you agree @gpfrancis ?

If Gareth doesn't take this, I will give Kafka a kick

I restarted the docker containers
ubuntu@lasair-dev-kafka-0:~$ sudo docker ps -a
CONTAINER ID   IMAGE                             COMMAND                  CREATED        STATUS          PORTS     NAMES
8a9b7616a1f9   gpfrancis/lasairmm:2.4.0          "bin/kafka-mirror-ma…"   2 months ago   Up 5 seconds              mirrormaker_mirrormaker_1
b6785d2e2619   confluentinc/cp-kafka:5.4.0       "/etc/confluent/dock…"   2 months ago   Up 18 seconds             ubuntu_kafka_1
07095c5d670c   confluentinc/cp-zookeeper:5.4.0   "/etc/confluent/dock…"   2 months ago   Up 30 seconds             zookeeper_zookeep_1

I manually triggered a jenkins build but get the same timeout error :(
The issue is unrelated to this feature, so I think we can merge. Shall I?

I think so, yes. The error from Jenkins is about no response from Kafka, so connected to the Somerville crapfest yesterday, not the web development.


updated README.md

I know its obvious to run npm install inside the source but beginners do mess things up.
Please do not update the README or Change Log, we will do this when we merge your PR.
This PR

Updates the Documentation

Describe the changes below:
I made it more easy for beginners as it was going to be a mistake I should have made if I was here, few months ago.

👍


Can't create List object when list contains one element

When I create an xmlPath from the rest-assured String response and the try to create a List of Nodes I get an exception if the List contains only one element.
List<Node> nodeList = xmlPath.getList("commentary.messages.period.message", Node.class);
This should give me a List with exactly one element but instead I get an Exception
Cannot convert class java.lang.String to interface com.jayway.restassured.path.xml.element.Node. java.lang.ClassCastException 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 	at java.lang.reflect.Constructor.newInstance(Constructor.java:408) 	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:80) 	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105) 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235) 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) 	at com.jayway.restassured.internal.path.ObjectConverter.convertObjectTo(ObjectConverter.groovy:54) 	at com.jayway.restassured.path.xml.XmlPath.convertObjectTo(XmlPath.java:913) 	at com.jayway.restassured.path.xml.XmlPath.getAsList(XmlPath.java:879) 	at com.jayway.restassured.path.xml.XmlPath.getList(XmlPath.java:348) 	at com.performgroup.usbasketballbackend.sprint26.USBask382Test.checkPlayerMainEventWithQualifierMessagesComments(USBask382Test.java:125)
When I have 2 elements I do not get this exception. Please fix this issue.

Version used 2.8.0

What does your JSON look like?

It's actually an XML
Below is the xml structure and if there is one message node it doesn't create a list with one element.
<commentary xmlns:basketballdata="www.nba.com">   <matchInfo>     <description>Oklahoma City Thunder vs Houston Rockets</description>     <sport id="456">basketball</sport>     <competition id="1" name="NBA">     <country id="123" name="USA"/>     </competition>   </matchInfo>   <messages>     <period id="1">       <message id="123" homeScore="0" awayScore="0"/>     </period>   </messages> </commentary>
But if I have 2 message nodes it creates a list with 2 elements.
<commentary xmlns:basketballdata="www.nba.com">   <matchInfo>     <description>Oklahoma City Thunder vs Houston Rockets</description>     <sport id="456">basketball</sport>     <competition id="1" name="NBA">     <country id="123" name="USA"/>     </competition>   </matchInfo>   <messages>     <period id="1">       <message id="123" homeScore="0" awayScore="0"/>       <message id="456" homeScore="2" awayScore="0"/>     </period>   </messages> </commentary>

The node list conversion code has some odd logic in xml-path-2.8.0-sources.jar!/com/jayway/restassured/assertion/XMLAssertion.groovy. Here's the method:
    private def toJavaObject(nodes, isAttributes, forceList) {
        if (nodes.size() == 1 && !hasChildren(nodes, isAttributes)) {
            return nodes.text()
        } else {
            return toJavaList(nodes, isAttributes, forceList)
        }
    }

When the input list consist of exactly one element with no children, this element is converted to a String. Hence the Cannot convert class java.lang.String to interface com.jayway.restassured.path.xml.element.Node error.

That looks strange to me too. I suspect that this is a bug.
On Mon, Feb 8, 2016 at 6:02 PM, Alexei Novikov<EMAIL_ADDRESS>wrote:

The node list conversion code has some odd logic in
xml-path-2.8.0-sources.jar!/com/jayway/restassured/assertion/XMLAssertion.groovy.
Here's the method:
private def toJavaObject(nodes, isAttributes, forceList) {
    if (nodes.size() == 1 && !hasChildren(nodes, isAttributes)) {
        return nodes.text()
    } else {
        return toJavaList(nodes, isAttributes, forceList)
    }
}

When the input list consist of exactly one element with no children, this
element is converted to a String. Hence the Cannot convert class
java.lang.String to interface com.jayway.restassured.path.xml.element.Node
error.
—
Reply to this email directly or view it on GitHub
https://github.com/jayway/rest-assured/issues/637#issuecomment-181427180
.

So in this case, can I expect this will be fixed?

It does not seem that easy to be fixed. This is not a random bug, it looks like flawed design of XmlPath. If I change the node list conversion so that it will return a Node for a single node, a whole bunch of tests fail.

@BadNews87 you can work around the problem so far. I answered your question on SO.

Yes, I can't really remember why I've designed it that way so I'm sure
tests will fail. But that doesn't mean we can't fix it, I don't think many
people are extracting "Nodes" from XmlPath. We should be consistent with
how XmlSlurper behaves in Groovy. It will probably be a breaking change
though.
On Tue, Feb 9, 2016 at 2:53 AM, Alexei Novikov<EMAIL_ADDRESS>wrote:

@BadNews87 https://github.com/BadNews87 you can work around the problem
so far. I answered your question on SO.
—
Reply to this email directly or view it on GitHub
https://github.com/jayway/rest-assured/issues/637#issuecomment-181666351
.

@nolexa thank you for the workaround....I was originally aiming for the attributes anyway. The bug remains relevant though. If you want to operate on nodes you're still not able to create List object with one element.

I begun working on this but it's impossible to solve in its current implementation. XmlPath is tuned for  verifying "body expectations" when using the REST Assured DSL (then().body("x.y", equalTo("z")). The problems is that when using it with the REST Assured DSL you never want to validate against "Node" objects but rather the values (toString()) if the node (which is much more natural in this context imo). I think that in order to fix this we need two different modes in XmlPath, something like STRICT (which should be default) and something like FUZZY (used by the REST Assured DSL by default. Better naming suggestions are welcome). So when doing new XmlPath() you'll get STRICT which is probably what you would expect when returning values but with the ability to supply FUZZY as a configuration detail to be compatible with how its used in validation in RA DSL. Does that sound like a decent approach?


"SyntaxError: Invalid regular expression: invalid group specifier name" on Safari

Version
module: 0.6.2
nuxt: 2.14.12
Nuxt configuration
mode:

[x] universal
[ ] spa

Nuxt configuration

export default {
  // Target: https://go.nuxtjs.dev/config-target
  target: 'static',

  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: 'sanity-test',
    htmlAttrs: {
      lang: 'en',
    },
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '' },
    ],
    link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [
    // https://go.nuxtjs.dev/eslint
    '@nuxtjs/eslint-module',
    '@nuxtjs/sanity',
  ],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [],

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {},

  // Sanity Configuration:
  sanity: {
    projectId: 'vgw104pb',
  },
}

Reproduction
Links:

https://sad-heyrovsky-54a894.netlify.app/
https://github.com/abdulrauf11/sanity-test

Checklist

[x]  I have tested with the latest Nuxt version and the issue still occurs
[x]  I have tested with the latest module version and the issue still occurs
[x]  I have searched the issue tracker and this issue hasn't been reported yet

Steps to reproduce

Open the site link: https://sad-heyrovsky-54a894.netlify.app/ on Safari.
View the console to see this error: SyntaxError: Invalid regular expression: invalid group specifier name

You can also test the GitHub repo locally.
Not sure if this is relevant but you can look at the sanity studio repo here: https://github.com/abdulrauf11/sanity-kitchen-sink/tree/main/studio
What is actually happening?

The issue does not per

I think it likely this might be the same issue as nuxt/nuxt.js#8027.
Would you test without @nuxtjs/sanity and see if the issue persists?

The issue does not persist once I remove @nuxtjs/sanity

The issue does not per

I think it likely this might be the same issue as nuxt/nuxt.js#8027.
Would you test without @nuxtjs/sanity and see if the issue persists?

The issue does not persist once I remove @nuxtjs/sanity

@danielroe I commented @nuxtjs/sanity and the issue went away.

Github repo: https://github.com/abdulrauf11/sanity-test/tree/without-sanity
Live link: https://6015eb460f0d0b0008fc3b23--sad-heyrovsky-54a894.netlify.app/

Please check the live link on Safari.

@danielroe I commented @nuxtjs/sanity and the issue went away.

Github repo: https://github.com/abdulrauf11/sanity-test/tree/without-sanity
Live link: https://6015eb460f0d0b0008fc3b23--sad-heyrovsky-54a894.netlify.app/

Please check the live link on Safari.

@danielroe Thanks a lot! 🙏

@danielroe Thanks a lot! 🙏

Thanks for spotting this. A server dependency with an unsupported RegExp (upath) was being included in the client build - should be fixed in v0.7.0. Let me know if not :smiley:

Thanks for spotting this. A server dependency with an unsupported RegExp (upath) was being included in the client build - should be fixed in v0.7.0. Let me know if not :smiley:

@danielroe - I was having the same issue and upgrading to 0.7.0 fixed it :)

@danielroe - I was having the same issue and upgrading to 0.7.0 fixed it :)

@danielroe Brilliant, thanks! It's working now 😁

@danielroe Brilliant, thanks! It's working now 😁

I have been on this blocker over the weekend. Upgrading to 0.7.0 worked for me.


Documentation on header support

Could you clarify what the server support is for headers? In the ts nats docs it simply states "Headers are enabled automatically if the server supports them" but I can't find docs on what the server support / minimum version is?
Thanks!

@mohantaylor headers are not available on currently released versions of the nats-server. It is available on docker nightly images. Also for the javascript clients, it is only supported in nats.ws, nats.js and nats.deno release candidates


Updated dependencies for the Node 8.12

This PR contains Cardano Node dependencies updated for the upcoming release 8.12-pre:

[x] cardano-api
[x] cardano-cli
[x] ouroboros-network
[x] plutus-ledger-api

and corresponding code changes needed to make them work together.

there's a flaky testnet test. We will need to investigate it tomorrow, but this allows us to get this tagged.


Change default instrumentation engine to ASM

Starting from 1.6.0, agent's bytecode instrumentation will use ASM instead of Javassist.

merged via #2216

Btw. why did you decide on this change?

Hi @otisg
It was mostly due to performance/feature reasons, ASM seemed to offer better performance and faster startup time, and more features for the agent to expand upon.


when  i caffe convert tensorflow,the error accur

Platform (like ubuntu 16.04/win10): 16.04
Python version: 3.6
Source framework with version (like Tensorflow 1.4.1 with GPU):caffe 1.0
Destination framework with version (like CNTK 2.3 with GPU): tensorflow  1.4
Pre-trained model path (webpath or webdisk path):
Running scripts:
mmconvert -sf caffe -in deploy_vgg16_places365.prototxt -iw vgg16_places365.caffemodel -df tensorflow -om places365_tf.npy
Traceback (most recent call last):
File "/home/liang/anaconda3/envs/caffe/lib/python3.6/site-packages/mmdnn/conversion/common/DataStructure/emitter.py", line 36, in _load_weights
self.weights_dict = np.load(file_name).item()
File "/home/liang/anaconda3/lib/python3.6/site-packages/numpy/lib/npyio.py", line 447, in load
pickle_kwargs=pickle_kwargs)
File "/home/liang/anaconda3/lib/python3.6/site-packages/numpy/lib/format.py", line 696, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/liang/anaconda3/envs/caffe/bin/mmconvert", line 11, in
sys.exit(_main())
File "/home/liang/anaconda3/envs/caffe/lib/python3.6/site-packages/mmdnn/conversion/_script/convert.py", line 108, in _main
ret = IRToCode._convert(code_args)
File "/home/liang/anaconda3/envs/caffe/lib/python3.6/site-packages/mmdnn/conversion/_script/IRToCode.py", line 26, in _convert
emitter = TensorflowEmitter((args.IRModelPath, args.IRWeightPath))
File "/home/liang/anaconda3/envs/caffe/lib/python3.6/site-packages/mmdnn/conversion/tensorflow/tensorflow_emitter.py", line 66, in init
self._load_weights(model[1])
File "/home/liang/anaconda3/envs/caffe/lib/python3.6/site-packages/mmdnn/conversion/common/DataStructure/emitter.py", line 38, in _load_weights
self.weights_dict = np.load(file_name, encoding='bytes').item()
File "/home/liang/anaconda3/lib/python3.6/site-packages/numpy/lib/npyio.py", line 447, in load
pickle_kwargs=pickle_kwargs)
File "/home/liang/anaconda3/lib/python3.6/site-packages/numpy/lib/format.py", line 696, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

Hi @la735681253 ,
the cause of this problem is overviewed here. In your case
Firstly, navigate to "/home/liang/anaconda3/envs/caffe/lib/python3.6/site-packages/mmdnn/conversion/common/DataStructure/emitter.py"  and replace line 36
self.weights_dict = np.load(file_name).item()   with
self.weights_dict = np.load(file_name, allow_pickle = True).item()
Secondly, perform 3-step conversion instead 1-step:
Let IR_DIR  will be a repo to store IR representation of the model and  CONVERTED_MODEL_DIR  - a repo to store TensorFlow model. MODEL_NAME is a name you use for the model ( my_vgg16,  for example)

Convert the model from Caffe to IR format
mkdir -p  $IR_DIR
mmtoir -f caffe -n $PATH_PROTOTXT -w $PATH_CAFFEMODEL --inputShape $INPUT_SHAPE -d $IR_DIR/$MODEL_NAME

Convert the model from IR to TensorFlow code snippet
mkdir -p $CONVERTED_MODEL_DIR
mmtocode -f tensorflow -n "$IR_DIR/$MODEL_NAME.pb" -w "$IR_DIR/$MODEL_NAME.npy" -d "$CONVERTED_MODEL_DIR/$MODEL_NAME.py"
After this step you probably  will get the  similar error Object arrays cannot be loaded when allow_pickle=False .  Now it happens because of np.load(file_name).item()   in generated
"$CONVERTED_MODEL_DIR/$MODEL_NAME.py" file. Navigate to the error string and replace it with np.load(file_name, allow_pickle = True).item()

Convert the model from IR to TensorFlow model
 mmtomodel -f tensorflow -in "$CONVERTED_MODEL_DIR/$MODEL_NAME.py" -iw "$IR_DIR/$MODEL_NAME.npy" -o  "$CONVERTED_MODEL_DIR/$MODEL_NAME.ckpt" --dump_tag SERVING

P.S.: you can use --dump_tag  TRAINING instead  --dump_tag SERVING

@juliagusak,
Thank you very much for the detailed explanation!

I suggest to rename this issue to "Object arrays cannot be loaded when allow_pickle=False", which will occur for many people who upgraded to numy>=1.16.3 (where the default allow_pickle=True has been changed to allow_pickle=False). By the way, @rainLiuplus's commit above just fails in two Python 2.7 tests - if that could be fixed, that issue would be gone.


Specify custom error message in check_func

I missed that small feature in your awesome library, so there you go!

@whysoserious sorry, I didn't notice your PR until merged mine with exact feature. But, if you will deal with merge conflicts (you can wipe out my implementation and test, as they pretty same) and will push your changes - I'll merge your PR with respect of your work!

...and bump version to 0.4.1 after

Ok, I have handled it. Reverted my changes and merged yours. So, the order was kept.

Thanks as well!


Catalog is not used to resolve the schema URL provided as an argument to XJC

I am compiling schemas from public schema repositories, available online.
However, I don't want builds to download these schemas in first place, instead I want them to work with local copies, "redirected" by catalogs.
I have found out that catalogs seem to be not applied to the URL arguments directly passed to XJC.
Please see the attached test case:
xjc a.xsd

works of course.
However assume I want to compile http://www.ab.org/a.xsd directly. This is a legal use case.
But I don't want a.xsd to be downloaded from http://www.ab.org. So I provide a catalog:
REWRITE_SYSTEM "http://www.ab.org" "."

But this catalog does not seem to be applied to the URL I provide as a command-line argument. This fails:
xjc http://www.ab.org/a.xsd -catalog catalog.cat

Fails is a sense that XJC still tries to download a.xsd from http://www.ab.org.
At the same time, if http://www.ab.org/a.xsd would have been included in another schema, this would have worked.
Affected Versions
[2.2.8 (JDK 8)]

I've found my old code and started working on this issue. It is a precursor to #1045 and #1046 which are quite critical an bug many users.
Unfortunately I don't quite remember why I fixed it the way I fixed it. So this is work in progress at the moment.
One question: where do you keep XJC tests? I could not find anything representative.

Just to save my old code somewhere. Here are two files I'va patched back then:

com.sun.tools.xjc.Options.java.txt
com.sun.tools.xjc.reader.internalizer.DOMForest.java.txt

@highsource

One question: where do you keep XJC tests? I could not find anything representative.

It's sad but there aren't any representative tests bundled in JAXB repository.
For 2.3.+ releases it was tested with https://github.com/eclipse-ee4j/jaxb-tck and GlassFish CTS tests. It may be a good idea to pick most valuable scenarios from TCK and adopt them as JUnit tests inside JAXB repo.


support for --py returning pythonw.exe on windows

Should we add a --pyw flag to return pythonw.exe path on windows ?
use case: I need to retrieve the pythonw.exe path programmatically to initialise a configuration file. If I use python.exe in this case, there is the shell window that appears. I could use --venv and add /Scripts/pythonw.exe but it looks hackish (vs the --pyw solution).
I am ready to do a PR if worthwile

Closing then for now, this seems super specific


[Bug] Names Keep Resetting [Multiplayer]

Version: 2.0.1, mc 1.16.5
Waystone names keep resetting to the default names.
I believe it's happening after the server restarts because the old names are saved on other people's ends and the new names are just not syncing? But I honestly don't know why it keeps happening, just that they just are not sticking.

Realised i forgot to say which version my apologies </3 updated the op.
Anyway I'm also running into an issue where I cannot see any of my discovered waystones unless i break the waystone i'm interacting with and place it back down again. This started while I was trying to rename waystones again and accidentally revoked ownership before renaming & immediately crashed minecraft. Problem is I'm not sure if the bugs I'm running into are because of that or because of whatever has been causing the names to reset.
In any case I just had a look in the console and encountered this error:

22.07 15:34:14 [Server] Server thread/FATAL Error executing task on Server
22.07 15:34:14 [Server] INFO java.lang.NullPointerException: null
22.07 15:34:14 [Server] INFO at wraith.waystones.Waystones.lambda$registerPacketHandlers$0(Waystones.java:57) ~[wraith-waystones-2.0.1.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.class_3738.run(class_3738.java:18) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.class_1255.method_18859(class_1255.java:144) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:761) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:155) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.class_1255.method_16075(class_1255.java:118) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:743) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:737) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.class_1255.method_18857(class_1255.java:127) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:722) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:674) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) ~[intermediary-server.jar:?]
22.07 15:34:14 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]


[BUG] There is no GM present in the game

Describe the bug
When logged in as a player, adding a new note to the calendar results in message "There is no GM present in the game"
Expected behavior
The update notes suggested that this should now work regardless of a GM being present.  I am on version 2 of simple calendar, and the latest version of foundry and 5e game system
Screenshots

Foundry Information

Foundry Version: 9 build 269
Game System: DnD5e v1.6.1

Browser (please complete the following information):

OS: Windows 11
Browser Firefox
Browser Version 100.0

Update - I use a journal replacement mod, Monk's Enhanced Journal - could be a clash between these 2 modules messing with the permissions?

I am able to replicate this with out Monks Enhance Journal, so I will fix this soon. Not sure how that got in there
I haven't tested with Monks Enhanced Journal so there could be other issues


Added 'valid_return_none'

This request solves #978

Codecov Report

Merging #1029 (42e8499) into master (42bb2aa) will decrease coverage by 0.07%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #1029      +/-   ##
==========================================
- Coverage   84.85%   84.78%   -0.08%
==========================================
  Files         143      143
  Lines        9434     9430       -4
  Branches     1602     1602
==========================================
- Hits         8005     7995      -10
- Misses       1107     1114       +7
+ Partials      322      321       -1

Impacted Files
Coverage Δ

dffml/df/base.py
87.70% <50.00%> (ø)

dffml/util/data.py
72.92% <0.00%> (-2.77%)
:arrow_down:

tests/util/test_net.py
98.24% <0.00%> (-1.76%)
:arrow_down:

dffml/noasync.py
78.18% <0.00%> (-1.13%)
:arrow_down:

dffml/util/testing/consoletest/commands.py
75.35% <0.00%> (-0.06%)
:arrow_down:

dffml/source/df.py
76.54% <0.00%> (ø)

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 42bb2aa...42e8499. Read the comment docs.

Thanks! but #985 fixed this, so closing this PR


Traffic Managers Scaling

WSO2 API Manager 3.x/4.x Documentation provide the following note in regard to traffic manager scaling :
"Note that Traffic Managers do not scale horizontally . If the requirement arises to have more than 10 Gateways, WSO2 recommends  to have Traffic Managers placed in dedicated clusters of a maximum of 10 Gateways each"
Can you confirm that if traffic manager does not handle the load we need to split the infrastrcture into two or more full Api Manager clusters (with their own publisher/devportal/keymanager), that there is no possibility to just dedicate traffic managers per gateways environment/labels ?

You could only create clusters with traffic manager and gateway without other components (publisher/devportal etc). See this pattern  https://apim.docs.wso2.com/en/latest/install-and-setup/setup/multi-dc-deployment/configuring-multi-dc-deployment-pattern-2/

Closing as answered


Update node-app.toml

Add missing minimum gas prices setting to match running network.

Side Note: the file's name is node-app.toml but provenanced would look for it as app.toml.

It gets renamed in the dockefile when building the container.


Parse method always returns an object

https://github.com/j0lv3r4/next-csrf/blob/6f6de6b8269d1af785509680b73f53305f6ffe03/src/middleware/csrf.ts#L46
In the above line, the parse method always returns an object, but you are immediately checking for .length which suggests you're expecting an array. So the .length always fails and I keep getting a 403 Invalid CSRF Token message. Is this a bug?

Fixed with https://github.com/j0lv3r4/next-csrf/pull/31


Refactor  component

<Money /> component should accept whole object as its prop, instead of separate currency and amount props.
It should be also able to format itself as inline text (like <Money inline .... />.

@dominik-zeglen can I take this ???


Update system cert pool update for Go 1.8

Go 1.8 adds support for windows certificate pool, ensure
that the system cert pool is just called directly. Any
error in windows should propagate to the caller.
Change log message for windows error from warn to info
since it is not actionable in go 1.7.

Addresses https://github.com/docker/docker/issues/30450

ping @aaronlehmann @cyli PTAL

Updated, Stephen thinks this should remain at Warnf, but my concern is that it is not actionable by the user and we still haven't figured out why it is always being shown on the client. If we can figure that out I am fine keeping it a warning. Until then this is disconcerting to users.

LGTM

LGTM


minor fixes & some clean-up

details are in the single commit messages

Useful cleanups and fixes. Good idea to share object word calculations.


add save option!

add an option where we can choose our files which based on json (folder) and we be able to edit and save it. not export it everytime.

Thanks for opening the very first issue for this project. This is a good suggestion. However, since the File System Access API is not widely support at this point, this feature will be implemented after the API has been supported in most modern browsers. Before then, please export and import the same file while you are going to save the schema or start to edit the schema. Thanks


Invalid crossorigin attribute value in preload snippet

Page Affected: https://developers.google.com/web/fundamentals/performance/resource-prioritization#use-case_fonts
The following code snippet is visible on the page at the above URL (under 'Use-case: Fonts').
<link rel="preload" as="font" crossorigin="crossorigin" type="font/woff2" href="myfont.woff2">

I believe that crossorigin="crossorigin" is incorrect, as the only valid values for the crossorigin attribute are "anonymous" and "use-credentials".
I suspect that the intended attribute value is crossorigin="anonymous".

I believe that crossorigin="crossorigin" is incorrect, as the only valid values for the crossorigin attribute are "anonymous" and "use-credentials".

It is sort of "correct"; the spec says:

The empty string is also a valid keyword, and maps to the Anonymous state. The attribute's invalid value default is the Anonymous state.

so for the "anonymous" state, not only crossorigin="" but also crossorigin="crossorigin" or even crossorigin="foobar" work for this purpose.
But I agree it's so confusing, it should either be crossorigin="anonymous" or just crossorigin.


java pack Dockerfile error

Seeing this error in draftd while building image
Step 1 : FROM maven:3.5-jdk-8-alpine as BUILD
buildApp: buildImg error: Error parsing reference: "maven:3.5-jdk-8-alpine as BUILD" is not a valid repository/tag

Are you running draftd locally, and if so what version of Docker are you running? IIRC the multi-container build steps is a relatively new feature in Docker so you'll need 17.05.0-ce at the very least.

gentle ping; are you still seeing this when hacking or has this been fixed by updating docker? :)

closing as old/inactive :)


Conductor and Eureka

Is there support to register the Conductor backend service with Eureka?
Is there also support for multiple running Conductor backend service instances to build a high available cluster?
It would nice so that workers can discover Conductor instances via Eureka and do load-balancing.
At least in the client code, I could find some hint conc. usage of a Eureka Client here:
client/src/main/java/com/netflix/conductor/client/task/WorkflowTaskCoordinator.java
Thanks a lot.

WorkflowTaskCoordinator currently utilizes Eureka to check the instance status and stops polling when not active.
For the Conductor services - the Eureka registration is left up to the deployment model (at the moment) as the only artifacts we publish are Jar files which still needs to be packed into a war file or executable.


Getting the remote server ip

Is there a way to get the remote server's ip address? E.g. google.com => <IP_ADDRESS>
Thank you

Well, how does a system connect to "google.com" ? Actually by doing a DNS resolution and getting it's 'physical' address,  which is the IP address. If there can't be any IP found, no connection is made - that's how the internet works.  Of course, when you are using forward proxies, probably including proxying of DNS, then you won't know what the endpoint will be. Different DNS-servers and (in case of DNS like <IP_ADDRESS>) - also your geolocation affects the resolution. And due to the fact, that there is even more proxyfication included, which is probably also outside your scope (in case it's external proxies not under your control).
In a strict way - environment. The endpoint you connect to, is the resolved IP address(es) from the DNS lookup. By default, Titanium.WebProxy is using the DNS servers of the machine where your proxy is running on. So using the default dotnet DnsClient to resolve the name, will yield the same result(s).


Python File Menu

PyFileMenu
file :
import os

# Get the list of Python files in the current directory
files = [file for file in os.listdir('.') if file.endswith('.py')]

# Display the list of files in the format [item number] filename.py
for i, file in enumerate(files):
    print("[{}] {}".format(i+1, file))

# Prompt the user to input the item number of the file they want to execute
while True:
    try:
        item_number = int(input("Enter the item number of the file you want to execute: "))
        if item_number < 1 or item_number > len(files):
            raise ValueError()
        break
    except ValueError:
        print("Invalid input, please enter a valid item number.")

# Execute the selected file
selected_file = files[item_number-1]
print("Executing file:", selected_file)
exec(open(selected_file).read())

How the Script Work ?
This script is a basic Python program that allows the user to choose a Python file from the current directory and executes it.
Here's a breakdown of the script:

import os - imports the os module, which provides a way to interact with the file system.
files = [file for file in os.listdir('.') if file.endswith('.py')] - uses a list comprehension to create a list of Python files in the current directory. The os.listdir() function returns a list of all files and directories in the current directory, and the if statement filters the list to include only files that end with the .py extension.
for i, file in enumerate(files): - uses a for loop to iterate over each file in the files list and assigns an index number to each file using the enumerate() function.
print("[{}] {}".format(i+1, file)) - prints each file in the format [item number] filename.py to the console.
while True: - starts a while loop that will continue until the user enters a valid input.
try: - attempts to execute the code inside the try block.
item_number = int(input("Enter the item number of the file you want to execute: ")) - prompts the user to enter the item number of the file they want to execute and converts the input to an integer.
if item_number < 1 or item_number > len(files): - checks if the user input is within the valid range of item numbers.
raise ValueError() - raises a ValueError exception if the user input is invalid.
break - breaks out of the while loop if the user input is valid.
except ValueError: - handles the ValueError exception if it is raised.
print("Invalid input, please enter a valid item number.") - prints an error message to the console if the user input is invalid.
selected_file = files[item_number-1] - selects the file that corresponds to the user's input by indexing into the files list.
print("Executing file:", selected_file) - prints the name of the selected file to the console.
exec(open(selected_file).read()) - executes the selected file by opening it as a text file, reading its contents, and passing the contents to the exec() function, which executes the code in the file. Note that using the exec() function can be dangerous, as it allows arbitrary code execution, so it should be used with caution.

PyFileMenu : Exclude Substring 'random'
To exclude only those files with 'random' substring, you can modify the list comprehension statement to include an additional condition using the not in operator.
Here's the modified code:
import os

# Get the list of Python files in the current directory that don't contain 'random' in their filenames
files = [file for file in os.listdir('.') if file.endswith('.py') and 'random' not in file and file != os.path.basename(__file__)]

# Display the list of files in the format [item number] filename.py
for i, file in enumerate(files):
    print("[{}] {}".format(i+1, file))

# Prompt the user to input the item number of the file they want to execute
while True:
    try:
        item_number = int(input("Enter the item number of the file you want to execute: "))
        if item_number < 1 or item_number > len(files):
            raise ValueError()
        break
    except ValueError:
        print("Invalid input, please enter a valid item number.")

# Execute the selected file
selected_file = files[item_number-1]
print("Executing file:", selected_file)
exec(open(selected_file).read())

pyFileMenu : Include Substring 'random'
file :
If you want to include only the files that contain the 'random' substring, you can modify the list comprehension by using the in operator instead of not in. Here's the modified code:
import os

# Get the list of Python files in the current directory that contain 'random' in their filenames
files = [file for file in os.listdir('.') if file.endswith('.py') and 'random' in file and file != os.path.basename(__file__)]

# Display the list of files in the format [item number] filename.py
for i, file in enumerate(files):
    print("[{}] {}".format(i+1, file))

# Prompt the user to input the item number of the file they want to execute
while True:
    try:
        item_number = int(input("Enter the item number of the file you want to execute: "))
        if item_number < 1 or item_number > len(files):
            raise ValueError()
        break
    except ValueError:
        print("Invalid input, please enter a valid item number.")

# Execute the selected file
selected_file = files[item_number-1]
print("Executing file:", selected_file)
exec(open(selected_file).read())

In this modified code, the if statement checks if the 'random' substring is present in the filename using the in operator, so only files that contain the substring will be included in the files list.


Convert to cs proj

These changes are  a result of migrating the existing project.json based projects to the new csproj form.
I've updated the Specflow.NetCore to infer the test framework in use by looking at the package references in the migrated csproj files - this is a little less robust than the more explicit test runner setting in the project json.
In order to test the changes I used a local nuget.config file to point to the local nupkg - I've not commited those files.

Great job! I'll merge this in, but as I mentioned before I don't actually have the latest tooling yet (still waiting on some work stuff to settle down) so I won't be able to test it out and get it up on nuget.org until that's sorted. In the meantime if it's a blocker, you can chuck the nuget package up somewhere I can grab it, and I'll upload it to nuget.org on faith.
Can I also ask you to have a look at updating the README with relevant changes?

Thanks sure I'll do the README - not done many of these - is that a new branch now?
For the nuget - shall I leave version as RC7?

Thanks sure I'll do the README - not done many of these - is that a new branch now?

Well branching is completely up to you, but I would suggest nah....

For the nuget - shall I leave version as RC7?

Please bump to RC8. In fact, it would be good if you can include that bump with the PR for the README change as well.


FieldCheckboxes doesn't work with object values

Description
The component FieldCheckboxes doesn't work with object values in options.
Is that a normal behavior ? Maybe the value should only be a string but that would limit the usefulness of the FieldCheckboxes component.
Example
In this example, the checkbox won't change their state if you click on them.

export const WithNestedValues = () => {
  const options = [
    { value: {firstName: 'Alice', age: 22}, label: 'Alice' },
    { value: {firstName: 'Bob', age: 23}, label: 'Bob' }
  ];

  return (
    <Formiz>
      <FieldCheckboxes
        name="FieldCheckboxes"
        label="Label"
        helper="Helper"
        options={options}
      />
    </Formiz>
  );
};

Fixed by #93


Update README.md

Fix typos
Use sh or Dockerfile for codeblocks highlighting. Use console when there is output as it colors it different from $ lines.
Remove words - it was self-evident that  a command would do the 3 things listed in the comment so no need to say "all in one command". There is no step after so it is implied that it is all.
Indent content in bullet points

Thanks!


Fix NewPart property - it should be PartType instead of Name

+Yvonne
From: Jacob Jedryszek<EMAIL_ADDRESS>Sent: Thursday, June 7, 2018 3:02 PM
To: Azure/portaldocs<EMAIL_ADDRESS>Cc: Brad Olenick<EMAIL_ADDRESS>Review requested<EMAIL_ADDRESS>Subject: Re: [Azure/portaldocs] Fix NewPart property - it should be PartType instead of Name (#78)
@jj09https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjj09&data=02|01|brado%40microsoft.com|6677fbec3cdd49aba80308d5ccc24341|72f988bf86f141af91ab2d7cd011db47|1|0|636640057086852864&sdata=QrtcbAKu9QaK%2FDQUDwSy7B8C3pQW9T9ftHnDo0wniRU%3D&reserved=0 requested your review on: Azure/portaldocs#78https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fportaldocs%2Fpull%2F78&data=02|01|brado%40microsoft.com|6677fbec3cdd49aba80308d5ccc24341|72f988bf86f141af91ab2d7cd011db47|1|0|636640057086862873&sdata=UcJhZI6dIAfMVnBJjNP9Znnx4z6gp2qW5M%2BCbayTeWw%3D&reserved=0 Fix NewPart property - it should be PartType instead of Name.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fportaldocs%2Fpull%2F78%23event-1669668567&data=02|01|brado%40microsoft.com|6677fbec3cdd49aba80308d5ccc24341|72f988bf86f141af91ab2d7cd011db47|1|0|636640057086862873&sdata=L4Z8OMq8gswdYhJ8NWHIHTV4%2FWaF%2FjjroD3cbbqqilw%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABCmDsYOIJc6mlZQviftKPbf8TBqd3SEks5t6aLKgaJpZM4UfMOG&data=02|01|brado%40microsoft.com|6677fbec3cdd49aba80308d5ccc24341|72f988bf86f141af91ab2d7cd011db47|1|0|636640057086872878&sdata=XCWKNSeqyuZo9da2B2dNUSq1iBYWt5%2Bew8A4RPToPaw%3D&reserved=0.

Hey JJ,

make the updates to dev branch rather then master_template branch
make the updates in /templates/ folder rather then /generated/ folder. any changes to generated will be overwritten.

thanks for taking the time to update the docs!
nick

@nickharris: didn't hit CTRL+S hard enough on file in template folder 😨
per @rowong I should do changes against master_template: https://github.com/Azure/portaldocs/pull/74

@jj09 You're both right.  Ideally you put it in both dev and master_template (dev so to avoid merge conflicts on merge and master_template so it gets updated sooner).  for the earlier changes, I just merged it to master_template

Can we add section submitting PR to https://github.com/Azure/portaldocs/blob/master/CONTRIBUTING.md ?
Currently it's not clear to which branch you should submit PR against. I also think adding very short section how to fix docs (without requirements) to regenerate them would be helpful and will encourage more people to contribute. I.e.: when I want to submit fix and I see 3 pages long document how to do it. I give up. If I see 3 lines long instructions then I'll probably do it.

ping
if somebody can review my answer: https://stackoverflow.microsoft.com/questions/100456/how-to-remove-part-and-do-not-break-users
perhaps we can port it to docs?

Started an email thread between you, yvonne, and adam to review your answer.


Quick fix of incorrect behaviour with ViewPager

It's not a solution to the problem #4 , so maybe you find something useful.
You can manipulate with BottomSheets via header.

Thank you for the work. I will try to find out how well these changes work as soon as possible


JavaScript syntax highlighting - ternary operator and string literal

VSCode Version: 1.2.0
OS Version: OSX 10.11.4

Steps to Reproduce:

Enter the following syntax into vscode:

exports.listNames = (request, reply) => {
  const family = request.params.family
  const status = request.params.status || 'done'
  const branch = (status === 'done') ? `master` : `fixes/${family}`

  const listNames = github.listNames.bind(github, branch)

  listNames(family)
  .then((locales) => { reply(locales) })
  .catch((err) => {
    request.log(['error', 'github'], err)
    reply(err)
  })
}

Anything following the const branch = (status === 'done') ? `master` : `fixes/${family} is not highlighted properly

+1.  Just noticed this today.

duplicate of https://github.com/Microsoft/TypeScript-TmLanguage/issues/81


Sync with starter template

The starter template is at a good spot to sync with different projects. Syncing now will help Hacktoberfest

Maybe this is also a good time to rename readme.md into README.md for consistency.

Hi @mickmister, @hanzei, I'd like to take up this task. Except for renaming readme.md to README.md , what else is the scope of the task?

Hi @mickmister, @hanzei, I'd like to take up this task. Except for renaming readme.md to README.md , what else is the scope of the task?

@haardikdharma10 https://github.com/mattermost/mattermost-plugin-starter-template/pull/86 did add a tool to sync plugin repositories. That should be used to sync the file with the starter template. One example PR is https://github.com/mattermost/mattermost-plugin-github/pull/363. Let me know if that helps.

@haardikdharma10 If you'd like to work on this task, you can message me on community to discuss what needs to be done

Closing issues due to inactivity. This issue can be re-opened with more interest from our community.


Feature: Append file extension based on runtime

Fixes #935
Adds a new options to output to specify file extensions to generate

Hey @bombillazo, which extension do you need to run this with your project? Can you not detect Deno runtime from within code? Not a fan of configuration, this should be automatically detected imo. We'll also need to add tests for Deno runtime as everything runs inside Node.js right now

Hey @mrlubos , whichever the extension of the file is. Im not sure how the runtime is detected, I can check on the Deno docs.

I agree autodetected would be ideal, although it will prevent the capacity to generate Deno-compatible code from node or make node compatible code from Deno.
If it's too much overhead for Deno, we can keep discussing and I'll just modify the code generated post-gen on our project for now.

Yeah that would be the first thing to resolve. We want to support Bun too (I am not sure if anything is missing right now, haven't looked into it yet). I am surprised you don't need to abstract platform-specific modules such as node:fs, how come?
Also, I am 100% sure there are missed imports, for example services import from types. In my opinion this should be abstracted inside the TypeScriptFile class and let it handle extensions. I don't worry too much about supporting the old code, i.e. Handlebars templates. But it needs to work seamlessly with the new clients without extra configuration, I think that's all achievable

Deno has come a long way to resolve imports from npm:, node: etc out of the box, I run the createClient function from a ts file with deno run and import like this:

And it just works, I can generate code from deno no issues.

@bombillazo yeah there's a reason I didn't tackle it yet. I don't want to hastily add features because people will start using them and then modifying any mistakes becomes painful. Are you generating Deno-compatible code from Node.js? If so, why?

The only reason I generated from node is because I use patch-package which only works for node, I forked this repo, build the new version and copied the dist to my other project to test the code generation. I have not found a way to do that in Deno.

@mrlubos I updated the PR to reflect your feedback of making it dynamic

Hi guys,
thanks for the effort! Just chiming in that the you also need file extensions when compiling a project with tsc and the following tsconfig.json:
    "module": "NodeNext",
    "strict": true,
    "target": "ES2023",
    "moduleResolution": "NodeNext"

But instead of .ts it needs to be .js. I would imagine that this is not an uncommon use case. Would be happy to assist :)

It would be better to have it configurable without runtime detection. In my case I'm running my project with node --experimental-strip-types and the TypeScript option "allowImportingTsExtensions": true, so I would need to manually indicate that I want .ts extensions in my imports and exports.

It would be better to have it configurable without runtime detection. In my case I'm running my project with node --experimental-strip-types and the TypeScript option "allowImportingTsExtensions": true, so I would need to manually indicate that I want .ts extensions in my imports and exports.

Yup, I agree, in our case it was due to building it for Deno, which requires extensions, but we're running it from node.

I'll have to revisit my code; I haven't really updated my fork since I'm very busy, and it is working for our needs, but it seems like it's diverged/ahead by a lot.
If I did come back to this its hopefully to resolve our use case with eh native library and stop using our fork.

No worries @bombillazo, this will get done one way or another. If you'd be able to update the pull request, great, if not that's okay too. Glad it's working for you so far!


vectorStaticRemainder/Divide/DivideAndReminder optimization

removed tmpVgpr parameter from vectorStaticRemainder/Divide/DivideAndReminder
removed qReg parameter from vectorStaticRemainder
removed dummy vgpr for vectorStaticRemainder
optimized not power of 2 case
changed DivideAndReminder to vectorStaticRemainder in case quotient is not used

This PR includes the fix for extended test hang issue (same fix in #1646) to make extended test pass.


I am not getting results when I use reb files on macOS

** RECmd version # **
<IP_ADDRESS>
Describe the bug
I get no results when using reb files on macOS. It says it found 0 key/value pairs. The exact same command and package on Windows finds 546 key/value pairs.
They both find the same number of hives (on macOS and on Windows), and I know Registry parsing seems to be correct because I can use parameters like sd/sk to search content which works and returns expected results.
Command used:
dotnet /Tools/RECmd/RECmd.dll -d '/Cases/12345/Systems/ABC1/hives' --bn '/Tools/RECmd/AllRegExecutablesFoundOrRun.reb' --csv /Cases/12345/Systems/ABC1/RECmdOutput/RegEXEsFoundOrRun --nl

I'm running dotnet v6.0.101 on macOS Big Sur 11.6.5.
To Reproduce
Steps to reproduce the behavior:

Run the above command on a folder containing Registry hives on macOS
Results on Windows shows 546 identified key/value pairs, on macOS it shows none

Expected behavior
It should find the same key/value pairs as when ran on the same data on Windows.

i dont have a mac to test this on. can you possibly get the source code and step thru it when using batch mode to see where it is not finding something? i dont know why it wouldnt work as it shouldnt be a path separator issue or anything like that. could it be the reb encoding?
what does --debug or trace show when its running?

or a CRLF vs LF issue?

The reb file is in ASCII encoding so that shouldn't be an issue (that was one of my first thoughts also). Line endings also appear fine.
Debug file:
RECmd_debug.txt
Trace file:
trace.txt.zip
Any weird path issues is more related to me altering the actual paths for privacy reasons.

It turns out I was running the .NET 4 v<IP_ADDRESS> on Windows but .NET 6 v<IP_ADDRESS> on macOS (but the tool output says <IP_ADDRESS>, only the website says <IP_ADDRESS> when I download it).
Even so, I focused on a single key on Windows using the .NET 6 version and it found 143 key/value pairs in that specific key, whereas it found none on the same key in macOS. So the .NET version is not an issue.
Debug/trace logs for Windows:
win.zip
Debug/trace logs for macOS:
mac.zip
I wonder if the same issue would occur on Linux also. I have not tested yet.

yea it looks like its based on how its finding the hive type.
if you can try linux at least we would know if its something with file path separator on windows vs the other 2 OSs
https://github.com/EricZimmerman/Registry/blob/9656033007a22de01f7d1abf52bb6ba9eeb2dbcc/Registry/RegistryBase.cs#L109
if you look at that hive in a hex editor, what does the path info look like:
https://github.com/EricZimmerman/Registry/blob/9656033007a22de01f7d1abf52bb6ba9eeb2dbcc/Registry/Other/RegistryHeader.cs#L54
windows:
[2022-06-01 19:18:11.8418955 DBG] Processing Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CIT\System (HiveType match)
[2022-06-01 19:18:11.9696864 DBG] Processing Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CIT\Module (HiveType match)
mac:
[2022-06-01 14:23:10.3842530 DBG] Skipping key Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CIT\System because the current hive (Other) is not of the right type (Software)
[2022-06-01 14:23:10.3846360 DBG] Skipping key Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CIT\Module because the current hive (Other) is not of the right type (Software)

I'm still doing testing including pon the same single hive in a Linux environment, but interestingly, RECmd_Batch_MC.reb does get some results, but not the same results as on Windows (less key-value pairs identified on macOS than on Windows).
However, AllRegExecutablesFoundOrRun.reb and UserActivity.reb do not find any key-value pairs on macOS (but do on Windows). All of them appear to have standard Unix (LF) line endings:
> file *.reb
AllRegExecutablesFoundOrRun.reb: ASCII text
RECmd_Batch_MC.reb:              ASCII text
UserActivity.reb:                ASCII text

I'll respond more specifically to the above also but sharing this for now.

Also no key/value pairs found on Linux for AllRegExecutablesFoundOrRun.reb.
Debug/trace logs for Linux:
linux.zip

Offset 0x30 of the SOFTWARE hive with length of 64 bytes selected shows:
0030h: 65 00 6D 00 52 00 6F 00 6F 00 74 00 5C 00 53 00  e.m.R.o.o.t.\.S.
0040h: 79 00 73 00 74 00 65 00 6D 00 33 00 32 00 5C 00  y.s.t.e.m.3.2.\.
0050h: 43 00 6F 00 6E 00 66 00 69 00 67 00 5C 00 53 00  C.o.n.f.i.g.\.S.
0060h: 4F 00 46 00 54 00 57 00 41 00 52 00 45 00 00 00  O.F.T.W.A.R.E...

It appears to be a Unicode (UTF-16 LE) string as expected by https://github.com/EricZimmerman/Registry/blob/9656033007a22de01f7d1abf52bb6ba9eeb2dbcc/Registry/Other/RegistryHeader.cs#L54

this has to be it:
on linux:
[2022-06-02 00:47:41.1728431 DBG] Skipping key Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CIT\System because the current hive (Other) is not of the right type (Software)
[2022-06-02 00:47:41.1731803 DBG] Skipping key Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CIT\Module because the current hive (Other) is not of the right type (Software)
testing now

ok i know what it is. i use Path.getfilename for the embedded filename. on windows, it works, but mac/linux it doesnt since / vs \
fixing now then you can test again.

Unfortunately, the fix did not work on macOS. I also built it from source on my end to confirm (same result: no key/value pairs found). Updated debug and trace files:
20220602_mac_debug_trace_logs.zip

How about Linux? We only need the lines after the flushing stuff. Need to
see if it detected the filename correctly. I'll try on Linux on my side too
after building out a Linux VM.
At this point I would say focus on the registry test project and set some
breakpoints. That's where the issue is.
Will look more tomorrow
On Thu, Jun 2, 2022, 8:04 PM Dan @.***> wrote:

Unfortunately, the fix did not work on macOS. I also built it from source
on my end to confirm (same result: no key/value pairs found). Updated debug
and trace files:
20220602_mac_debug_trace_logs.zip
https://github.com/EricZimmerman/RECmd/files/8828491/20220602_mac_debug_trace_logs.zip
—
Reply to this email directly, view it on GitHub
https://github.com/EricZimmerman/RECmd/issues/45#issuecomment-1145458493,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABARKJTMMWQPROR4ED46HQTVNFD2LANCNFSM5XSHBAYQ
.
You are receiving this because you commented.Message ID:
@.***>

ok, i think i got it now. RECmd updated. please download and try again.

That fixed it! Same results on Mac and Windows now. Thanks!


python datetime.strftime issue.

I got an datetime.strftime issue in container.
docker pull python:latest
docker run -it python:latest
>>> import datetime
>>> time = datetime.datetime(year=1, month=1,day=1)
>>> str_time = time.strftime('%Y-%m-%dT%H:%M:%SZ')
>>> print(str_time)

result: 1-01-01T00:00:00Z,
expected: 0001-01-01T00:00:00Z
I have tested it in python:latest, python:3.6.8 and python:3.7. All of these containers got the wrong result.
I also tested it in my local Python3.6.8 environment and the result is 0001-01-01T00:00:00Z.

Additional example as confirmation of reproducibility. On native Python on Mac OS works:
❯ python
Python 3.10.9 (main, Dec 15 2022, 17:11:09) [Clang 14.0.0 (clang-14<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> time = datetime.datetime(year=1, month=1,day=1)
>>> str_time = time.strftime('%Y-%m-%dT%H:%M:%SZ')
>>> print(str_time)
0001-01-01T00:00:00Z

Exactly the same patch version in Docker skip padding for the year:
docker run python:3.10.9 python -c 'import datetime; print(datetime.datetime(year=1, month=1, day=1).strftime("%Y-%m-%dT%H:%M:%SZ"))'
Unable to find image 'python:3.10.9' locally
3.10.9: Pulling from library/python
c3e6129b48b6: Already exists
ef0470f9572d: Already exists
99dfcef0545e: Already exists
940d63caabf4: Already exists
0f50438bf9d4: Already exists
d4dbb9bb57c2: Already exists
1b023c9e8748: Pull complete
2dbbf7c306c3: Pull complete
992c4effdd27: Pull complete
Digest: sha256:e18f86de2e5eadcb00af7d57eefeeb377aec81a41d033bf20de426ae6c7bbff6
Status: Downloaded newer image for python:3.10.9
1-01-01T00:00:00Z

I think this is a duplicate of #548 -- I just tested on my Debian Bullseye host with Python 3.9.2 installed from Debian and it has the same behavior as the image does (so I don't think this is exclusively an issue with our image).


Explicit dependency on Sphinx?

Hi,
I package this extension to Fedora and got a question regarding the dependency on Sphinx. I looked at the other sphinxcontrib extensions and it seems all of them explicitly require Sphinx (via install_requires or similar package interfaces). jquery however not, although it clearly has no use without Sphinx in the environment. Should it be added to dependencies? Thank you.

Done.
A


Remove duplicate method: popEmpty v popRoot

Minor code cleanup - popEmpty and popRoot are identical today.

Hi @prateek
thx for the contributions!  Couple things...

not sure what @mschoch would say, but I think I'd prefer keeping the name of popRoot() rather than popEmpty()?

also, for this project, we've got a different gerrit-based code-review system and there's also a contributor license agreement (CLA) -- details at https://github.com/couchbase/vellum/blob/master/CONTRIBUTING.md

@steveyen sure thing! Happy to stick with whichever of the two (popRoot/popEmpty) you prefer.
I've signed the CLA before so we should be good on that front. Would you have any directions for how to submit to your Gerrit instance (configuration/etc)?

OK, I went back to the source rust code that I ported:
https://github.com/BurntSushi/fst/blob/dfce7e69b8cf25ae3f96b89e5fb6d5913016bb0a/src/raw/build.rs#L324-L340
So, it appears that they are in fact the same, the difference being that popEmpty includes assertions that it really was empty.  Our stack doesn't have any error return values, so we have no good way to address that.  I would be in favor of simplifying ours to just use popRoot.

As we're migrating this to the new repo anyway, it might be easier if I simply redo this change.


Added pption to force reliable ordering of TCP messages.

Hi Jamie,
As discussed, I've made an option to toggle the forced reliability of TCP message ordering.
I've made changes to two files:

Added TcpOptions with property ForceReliableOrdering to enable forced reliable ordering.
Modified TcpConnection.BodyReadCallback to make use of ForceReliableOrdering.

I took a quick look, and it seems that the TcpOptions class is a clean way to go as we do not want to have to set forced order reliability twice (on connection and on args.Connection in the NewConnection callback).
To use this, simply put TcpOptions.ForceReliableOrdering = true; anywhere in your code and messages will arrive in the order in which they were sent. By default, this option is set to false.
Please note that I had to add .vs/ to the bottom of the .gitignore file as I was getting sqllite.db locks... see: https://stackoverflow.com/a/48220209/596841
Hope this change is acceptable and that it is helpful.
Kind regards,
Rich

Hi Rich,
Sorry about the delay in reviewing this, my internet's been intermittent the last week!
The changes all look good but my only concern is that some people may prefer the property to be different between connections hence being better as a property of TcpConnection. Maybe new connections could be given the correct value based upon a value set in the listener?
The change for the VSCode folder is absolutely fine!
Jamie


1000 animations / frame rate drops from 60 to 30ish

Bug repro on playground: https://www.babylonjs-playground.com/#QYFDDP#48
Expected result: Post Instantiation runtime animation should be more performant
Current result: Runtime animation drops 10x10x10 cube configuration from 60fps to 30fps https://gyazo.com/f9a1acc4d69608fe306aafac3c673a3d

Also even if rendering is improved by instances you are animating the 1000 meshes
The animation engine has to go through all meshes manually on the cou side causing the frame drop
Please start a thread on the forum if you want to discuss ideas for optimizations

For instance solid particles could be a fine for your need: https://doc.babylonjs.com/how_to/solid_particles


Series sales insights for recent NFT transactions

Would be nice to see recent transactions for collections (last 5/10?) like foldable component from Artist Spotlight to see which pieces from collections has sold and for how much.
Like we can have there some list

Item
To
Amount

Magician #478
E5dzUc...6vvBKv
0.784 KSM

Magician #499
E5dzUc...6vvBKv
0.784 KSM

Foldable component from Artist spotlight

💳 goes to mcbeaster | 0xV on our discord

Foldable component from Artist spotlight

There is a Bug to fix here, green box shadow should only be on nft card where currentOwner === accountId


fuse xslt namespace into HTML

The HTML parser implementation would treat DCE content as Foreign element. In HTML5 the namespaces are ignored and few non-HTML markups (SVG and MathML) with own schema are blended into HTML parser itself as native HTML elements.
After completion, XSLT tags need to be added to https://github.com/EPA-WG/dce-parser

https://www.w3.org/1999/11/xslt10.dtd should be the source for

XSL elements listing in DCE
XSL elements definitions for IDE( IntelliJ, VS Code )

Multiple DTD parser implementations exist for java, and few in JS 1, 2.
The generation script would read the DTD file and generate files ^^

implemented.


Broken Metrics detector

wrong-type-detector
The tool aims to detect from a prometheus output the wrong metrics and provides the rules in order to fix them.
To detect the broken metrics, i.e. not following
metricName_bucket is stored as a New Relic count metric type.
metricName_count is stored as a New Relic count metric type.
metricName_total is stored as a New Relic count metric type.

we run a query similar to:
 FROM  Metric SELECT uniqueCount(metricName) where
 (nrMetricType='gauge' and (metricName LIKE '%_total' or metricName LIKE '%_count'   )) or
 (nrMetricType='count' and (metricName NOT LIKE '%_total' and metricName NOT LIKE '%_count'   ))
 and collector.name = 'nri-prometheus' limit max

Currently, the tool focus on counter only since the summary one should not break since they are autogenerated.
However, we can add that if we notice that it is useful:

metricName_sum is stored as a New Relic summary metric type.

Usage
go run ./cmd/wrong-type-detector/main.go  -h
Usage of main:
  -outputMetrics string
        output for the broken metrics (default "output/broken.yaml")
  -outputRules string
        output for the rules to fix broken metrics (default "output/rules.yaml")
  -promInput string
        source for the prometheus metrics (default "./powerdns.prom")

Simply run:
$ go run ./cmd/wrong-type-detector/main.go
2022/10/12 16:53:46 broken metrics detected in "./powerdns.prom", placed in "output/broken.yaml" and the rules fixen them in "output/rules.yaml"

I rebased the PR and fixed some of the issues spotted during the review. There are still no test and it is still a big file since it is a "temporal" internal tool

I'll remove a couple that @alvarocabanas added 😈


Add nginx service to consolidate domain

nginx allows us to access all the services from 1 domain, which would also allow us to put the service endpoints in 1 spot - probably gonna be easier to work with in the long run.

A benefit of this would be to authenticate calls to the various services with 1 request from the frontend.


add system.collections.immutable

Functional programming/System.Collections.Immutable - System.Collections.Immutable Namespace
The .NET Core System.Collections.Immutable namespace contains interfaces and classes that define immutable collections.

Sorry, but the community hasn't rallied behind this project to get it included. Thanks for your contribution.


Raising ValidationError from arbitrary generic class as shown in docs does not pass mypy

Checks

[X] I added a descriptive title to this issue
[X] I have searched (google, github) for similar issues and couldn't find anything
[X] I have read and followed the docs and still think this is a bug

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.8.2
            pydantic compiled: True
                 install path: C:\Users\GNAJDA\AppData\Local\pypoetry\Cache\virtualenvs\pydantic-validation-error-repro-yBziGAlX-py3.7\Lib\site-packages\pydantic
               python version: 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]
                     platform: Windows-10-10.0.19041-SP0
     optional deps. installed: ['typing-extensions']

Here is the sample code from https://pydantic-docs.helpmanual.io/usage/types/#generic-classes-as-types, slightly modified to add some missing type annotations to satisfy mypy:
from pydantic import BaseModel, ValidationError
from pydantic.fields import ModelField
from typing import Callable, Iterable, TypeVar, Generic

AgedType = TypeVar("AgedType")
QualityType = TypeVar("QualityType")

# This is not a pydantic model, it's an arbitrary generic class
class TastingModel(Generic[AgedType, QualityType]):
    def __init__(self, name: str, aged: AgedType, quality: QualityType):
        self.name = name
        self.aged = aged
        self.quality = quality

    @classmethod
    def __get_validators__(cls) -> Iterable[Callable[[object, ModelField], "TastingModel"]]:
        yield cls.validate

    @classmethod
    # You don't need to add the "ModelField", but it will help your
    # editor give you completion and catch errors
    def validate(cls, v: object, field: ModelField) -> "TastingModel":
        if not isinstance(v, cls):
            # The value is not even a TastingModel
            raise TypeError("Invalid value")
        if not field.sub_fields:
            # Generic parameters were not provided so we don't try to validate
            # them and just return the value as is
            return v
        aged_f = field.sub_fields[0]
        quality_f = field.sub_fields[1]
        errors = []
        # Here we don't need the validated value, but we want the errors
        valid_value, error = aged_f.validate(v.aged, {}, loc="aged")
        if error:
            errors.append(error)
        # Here we don't need the validated value, but we want the errors
        valid_value, error = quality_f.validate(v.quality, {}, loc="quality")
        if error:
            errors.append(error)
        if errors:
            raise ValidationError(errors, cls)
        # Validation passed without errors, return the same instance received
        return v

class Model(BaseModel):
    # for wine, "aged" is an int with years, "quality" is a float
    wine: TastingModel[int, float]
    # for cheese, "aged" is a bool, "quality" is a str
    cheese: TastingModel[bool, str]
    # for thing, "aged" is a Any, "quality" is Any
    thing: TastingModel

model = Model(
    # This wine was aged for 20 years and has a quality of 85.6
    wine=TastingModel(name="Cabernet Sauvignon", aged=20, quality=85.6),
    # This cheese is aged (is mature) and has "Good" quality
    cheese=TastingModel(name="Gouda", aged=True, quality="Good"),
    # This Python thing has aged "Not much" and has a quality "Awesome"
    thing=TastingModel(name="Python", aged="Not much", quality="Awesome"),
)
print(model)

When running mypy on this code, I get the error
pydantic_validation_error_repro\repro.py:43: error: Argument 2 to "ValidationError" has incompatible type "Type[TastingModel[AgedType, QualityType]]"; expected "Union[Type[BaseModel], Type[Dataclass]]"
Found 1 error in 1 file (checked 2 source files)

Since this code sample is from the docs, I assume it is intentional that you can use classes do not inherit from BaseModel and are not dataclasses in this way. Should ValidationError's constructor's model parameter annotation be loosened to just object?
I can work around this by casting cls to Type[BaseModel] when constructing a ValidationError but I'd prefer to not have to lie to mypy.

@LHCGreg sorry for the late response. we were (and still are) working on Pydantic V2.
As you may know, Pydantic V2 is in alpha state and you can install the latest alpha (v2.0a3) by pip install pydantic --pre
Could you please try to rewrite this example with Pydantic V2 and test it? I think it got fixed in V2.
BTW, if you see any problem with V2. Feel free to open a new issue.

@hramezani The reproduction code does not work as is in pydantic 2.0a3. The following mypy errors are reported:
pydantic_validation_error_repro\repro.py:2: error: Module "pydantic.fields" has no attribute "ModelField"  [attr-defined]
pydantic_validation_error_repro\repro.py:43: error: Argument 1 to "ValidationError" has incompatible type "List[Any]"; expected "str"  [arg-type]
pydantic_validation_error_repro\repro.py:43: error: Argument 2 to "ValidationError" has incompatible type "Type[TastingModel[AgedType, QualityType]]"; expected "List[InitErrorDetails]"  [arg-type]

I could not find any documentation for V2 other than the brief migration notes at https://docs.pydantic.dev/latest/blog/pydantic-v2-alpha/ so I'm not sure what the correct V2 equivalent of this code is.
However, it looks like the signature of ValidationError's constructor is now def __init__(self, title: str, errors: list[InitErrorDetails], error_mode: Literal['python', 'json'] = 'python') -> None so it does not take a Type anymore, which is where the problem was before, so I guess it's fixed now. It is also "fixed" in the sense that part of the problem was an example in the docs having a type checker error, and now there are no docs (yet).

@LHCGreg Thanks for checking.
Yeah, the documentation is not good yet but we are working on it and it will improve


Unable to stop the stream: Inappropriate ioctl for device

Hi
I compiled your project and tried it but it returned:
./detect ../../../clips/diff4.avi
   Reading file ../../../clips/diff4.avi
   Unable to stop the stream: Inappropriate ioctl for device
   Cannot open file ../../../clips/diff4.avi

Probably your opencv library wasn't built with ffmpeg. Refer to  https://github.com/opencv/opencv/issues/8097
Let me know, whether this fixes your problem.


Naked structs

Is it possible to generate just the __Internal structs? ie without the wrapping classes.
I would do this myself but nothing is virtual and you don't seem to be able to replace the Generator.
I'm pretty sure all I want to do is override VisitClassDecl within CSharpSources. But without cut/pasting a lot of other stuff...
I hope I'm just missing some magic option :)

I don't think we any option for this, but would be an useful feature to add for sure.
Maybe a custom generator would be the best option, could be derived from CSharpSources with some overriden methods like you suggested.
You could also achieve this for now with a custom pass, and calling CSharpSources.GenerateClassInternals for every class.

@tritao
You might find the following snippet useful.
public void Postprocess(Driver driver, ASTContext ctx)
{
    foreach (var m in driver.Context.Options.Modules)
    {
        var gen = driver.Generator;
        var gens = gen.Generate(m.Units.GetGenerated());
        foreach(CSharpSources g in gens)
        {
            var classes = g.TranslationUnits.SelectMany(u => u.Classes);
            foreach (var c in classes)
            {
                g.WriteLine("struct " + c.OriginalName);
                g.GenerateClassInternals(c);
            }

            var s = g.Generate().Replace("\r\npublic partial struct __Internal", "");
        }
    }
}

The above assumes you set the following:
options.GenerateSequentialLayout = true;

@YaakovDavis Just saw your snippet, and as far as I can see it's a nice hack that hard patches the code...
Does this play nicely with the rest of CppSharp?
If I understand correctly I can't just take this new generated naked struct and pass it along to generated API wrappers, right?

@giladlevi
I'm not aware of a way you could do that, though I'm new to this lib so perhaps there is.
I tried modifying a fork, in order to accomplish this in a more streamlined way, but didn't manage compiling yet.


Move S3 upload code to BackupDB

We should move the S3 upload code to BackupDB so that it works like SnapshotDB in that it can create the objects it references. The job code should handle the complicated stuff that involves backups and snapshots.
https://github.com/ddebeau/zfs_uploader/blob/74e469d83d52ab81b8f0697b008aa01273decbec/zfs_uploader/job.py#L137-L152

The code starts to get really messy because you have to pass everything required to upload the snapshot to BackupDB. Backup and restore does require both snapshot and backup code. It's probably best to leave it in the job code.


Wrong email can be used to create account

An email like 'm@m' works

See  : https://github.com/SamNzo/Bug-tracker-VariaMos/issues/4


Increase request size limit

Checking the apache logs I spotted some 413 Too Large responses being sent back in response to /upload/ requests.
It turns out that the python bottle module has a default request body size limit of 100KiB.
It should be possible to tweak a setting to increase this limit.
We probably also want to attempt adding some logging to know the nature of the requests that were (before this tweak) failing, to be sure they're not actually bad senders in some manner.

For the record, it turned out all the 'over-sized' requests were navroute messages.
Some discussion in EDCD #eddn lead to a conclusion that probable max this could ever be is around 1.2MB (200 bytes, 6,000 jumps).  We'll stay with 1MiB limit and try to implement some monitoring/reporting so we're aware if there's a need to further increase it.


[CMake] enable_language(HIP) is broken in 5.4.0 and 5.4.2

enable_language(HIP) is a ROCm's flagship CMake feature, which allows to handle HIP source files in the same simple way, as C or C++ sources.
It was broken somewhere between 5.2 and 5.4. Versions 5.4.0 and 5.4.2 are tested, both produce the same error:
> cat CMakeLists.txt
project(hip_test LANGUAGES HIP)

> mkdir build
> cd build/
> cmake ..
-- The HIP compiler identification is Clang 15.0.0
CMake Error at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  By not providing "FindAMDDeviceLibs.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "AMDDeviceLibs", but CMake did not find one.

  Could not find a package configuration file provided by "AMDDeviceLibs"
  with any of the following names:

    AMDDeviceLibsConfig.cmake
    amddevicelibs-config.cmake

  Add the installation prefix of "AMDDeviceLibs" to CMAKE_PREFIX_PATH or set
  "AMDDeviceLibs_DIR" to a directory containing one of the above files.  If
  "AMDDeviceLibs" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /opt/rocm-5.4.2/lib/cmake/hip-lang/hip-lang-config.cmake:87 (find_dependency)
  /usr/share/cmake-3.25/Modules/CMakeHIPInformation.cmake:146 (find_package)
  CMakeLists.txt:1 (project)

-- Configuring incomplete, errors occurred!

The requested .cmake file is obviously there:
> pwd
/opt/rocm
> find . -name "AMDDeviceLibsConfig.cmake"
./lib/cmake/AMDDeviceLibs/AMDDeviceLibsConfig.cmake

Enforcing the search path as suggested resolves current error, but shows the same error for the next package:
> cd build/
> rm -rf *
> cmake -DAMDDeviceLibs_DIR=/opt/rocm/lib/cmake/AMDDeviceLibs ..
-- The HIP compiler identification is Clang 15.0.0
CMake Error at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  By not providing "Findamd_comgr.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "amd_comgr", but CMake did not find one.

  Could not find a package configuration file provided by "amd_comgr" with
  any of the following names:

    amd_comgrConfig.cmake
    amd_comgr-config.cmake

  Add the installation prefix of "amd_comgr" to CMAKE_PREFIX_PATH or set
  "amd_comgr_DIR" to a directory containing one of the above files.  If
  "amd_comgr" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  /opt/rocm-5.4.2/lib/cmake/hip-lang/hip-lang-config.cmake:88 (find_dependency)
  /usr/share/cmake-3.25/Modules/CMakeHIPInformation.cmake:146 (find_package)
  CMakeLists.txt:1 (project)

-- Configuring incomplete, errors occurred!

More precisely, it broke somewhere between 5.3.0 and 5.4.0. While diffing their cmake files, I found the following, which looks like a find-replace bug:
diff -u -r cmakes_5.3.0/ROCMConfigVersion.cmake cmakes_5.4.0/ROCMConfigVersion.cmake
--- cmakes_5.3.0/ROCMConfigVersion.cmake        2023-01-23 18:56:35.681289516 +0000
+++ cmakes_5.4.0/ROCMConfigVersion.cmake        2023-01-23 18:54:04.095221096 +0000
@@ -58,13 +58,13 @@
 endif()

 # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
-if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
+if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "" STREQUAL "")
   return()
 endif()

 # check that the installed version has the same 32/64bit-ness as the one which is currently searching:
-if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
-  math(EXPR installedBits "8 * 8")
+if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "")
+  math(EXPR installedBits " * 8")
   set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
   set(PACKAGE_VERSION_UNSUITABLE TRUE)
 endif()

In 5.4.0, when CMake searches for ``, it appends /opt/ with path variants, instead of /opt/rocm. Possibly, incorrect install prefix is identified for ROCm somewhere?
access("/opt/AMDDeviceLibsConfig.cmake", R_OK) = -1 ENOENT (No such file or directory)
access("/opt/amddevicelibs-config.cmake", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/opt", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 8 entries */, 32768)   = 232
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
openat(AT_FDCWD, "/opt", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 8 entries */, 32768)   = 232
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
openat(AT_FDCWD, "/opt", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 8 entries */, 32768)   = 232
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
openat(AT_FDCWD, "/opt", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 8 entries */, 32768)   = 232
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
openat(AT_FDCWD, "/opt/lib/cmake", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/opt/share/cmake", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/opt/lib", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/opt/share", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/opt/lib", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/opt/share", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/opt", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 8 entries */, 32768)   = 232
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
openat(AT_FDCWD, "/opt", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 8 entries */, 32768)   = 232
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
openat(AT_FDCWD, "/opt", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 8 entries */, 32768)   = 232
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
ioctl(2, TCGETS, 0x7ffe1a36a720)        = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "CMake Error at /usr/share/cmake-"..., 937CMake Error at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  By not providing "FindAMDDeviceLibs.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "AMDDeviceLibs", but CMake did not find one.

  Could not find a package configuration file provided by "AMDDeviceLibs"

AMDDeviceLibs is searched for by find_dependency. Apparently, it attempts locations that are present in the PATH environment variable. Therefore, a workaround to get 5.4.0 to work is to add /opt/rocm into PATH:
> PATH=$PATH:/opt/rocm/ cmake ..
-- The HIP compiler identification is Clang 15.0.0
-- Detecting HIP compiler ABI info
-- Detecting HIP compiler ABI info - done
-- Check for working HIP compiler: /opt/rocm-5.4.2/llvm/bin/clang++ - skipped
-- Detecting HIP compile features
-- Detecting HIP compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/marcusmae/forge/hip_test/build

Yes, so this is exactly the reason. In 5.3.0 docker, we have /opt/rocm added to the PATH:
root@573467bf1f9e:/opt/rocm# ls /opt
amdgpu  rocm  rocm-5.3.0
root@573467bf1f9e:/opt/rocm# echo $PATH
/opt/rocm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Not the case for 5.4.0:
root@07407f37712b:/hip_test/build# ls /opt
amdgpu  rocm  rocm-5.4.0
root@07407f37712b:/hip_test/build# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Given that ROCm adds to the PATH, I wonder where this is happening.

Bottom line:

This is a bug, because HIP language should work right away, without any extra settings.
Whether on not an /opt/rocm should be added to the PATH is an open question; since /opt is searched though it is not in PATH, perhaps there is a better way to specify a location for find_dependency.
A place where /opt/rocm is added to the PATH could not be seen in a 5.3.0 container, but Docker has its own extra ways; regardless of this the same should be done during the package installation
A Debian package maintainer should check whether /opt/rocm was missed out from postinst script in 5.4.0, or reconsider its removal.

@dmikushin I'm also hitting this problem but I'm wondering if it isn't a CMake problem. I see you're using CMake 3.25. I'm also seeing this with CMake 3.25.X and 3.26.X, but not with 3.24.4, 3.24.0, 3.23.0. Are you able to try CMake 3.24.X or older to confirm if I'm seeing the same problem?

@msimberg Interesting, thanks for sharing, I will check!

This is a workaround I'm using on CMake 3.26, which I'm currently using for myself. I think it relates to your observation about silently ignoring the HIP compiler issues:
HIP compiler might appear not found as shown below, even if it definitely exists in the system. The reason is not a PATH setting. The check_language(HIP) command actually finds the compiler, but runs into an issue when testing it. The solution is to temporary specify the HIP compiler explicitly and handle an error, which will be displayed upon CMake testing it: cmake -DCMAKE_HIP_COMPILER=/opt/rocm/llvm/bin/clang++ ...
-- Looking for a HIP compiler - NOTFOUND

@dmikushin Can you please test with latest ROCm 6.0.2 (HIP 6.0.32831)? If resolved, please close ticket. Thanks!

@dmikushin Closing ticket. Please re-open if you still see the issue with the latest ROCm 6.1.2. Thanks!


Flow does not emit an error when mismatch in de-structured function argument

Flow version: 0.96.1
Expected behavior
I expect that Flow emits an error when de-structured properties in a function argument does not match the actual object type.
Actual behavior
Flow does not trigger an error
/* @flow */

// Setup
type CbType = {| prop: string |} => void;
declare var f: CbType => void;

// Expected flow error (but got none)
f( ({u}) => {} );

Reproduced here

This issue appears to have been solved in 0.100.0 :)
Thanks for the good work !