parsing '{{ }}'

I'd like to parse '{{ some text }}' as " some text ".
The version using just '{' and '}' as delimiters works fine like this:
let inner = none_of("}".chars()).repeated().collect::<String>();
let parser = just('{').padding_for(inner).padded_by(just('}'));

but I'm stuck defining inner for the '{{' '}}' case.
The Stream can only peek one token, so I see no way to take all characters until '}}' is encountered.
Is there anything I'm missing?

I guess I'm looking for something like noms take_until: https://docs.rs/nom/7.0.0/nom/bytes/complete/fn.take_until.html

This isn't a pattern that's LL(1) parseable. A pattern like this would generally be handled by a lexer, and it's quite common for lexers to be hand-written so that they can deal with the precise idiosyncrasies of tokenisation.

I see, thank you.

As a point of interest, chumsky has now been rewritten from the ground up to support parsing LL(k) grammars, so this pattern is now parseable.


regain access to old account

I have a dead account back when it was based on getting invited. I have no keys or e-mail added to it but lost the password, so I have no chance to reset it. Any chance I can get it back? I do have the invitation mail still

closing this as it is not an issue with the client. moving issue to keybase-issues


ci: merge opae-libs

Automated changes by create-pull-request GitHub action.
Must be use a normal merge (not squash-merge and not rebase-merge)

Error because including OPAECompiler.cmake adds duplicate custom target, lcov. Closing this PR and fixing in opae-libs.


panic on index out of range

I'm actually not totally sold on doing it here
If we passed it back out, and had stream-stats handle the error and panic, we could at least log, whereas here it'll just panic
That being said, the panic ends up in the logs is my understanding, right @connor4312 ? So we'll still get the log line that we panic'd

We should do this in stream-stats when it receives the error; libraries don't have the right to choose to make the process panic.

Recalling.


Documentation improving.

Just a few typos and specifying about tron proposal 83 https://tronscan.io/#/proposal/83 in the fee limit part.

Yess. Thanks! This is my first contribution ever to an open source. Am gonna fix them right now.


Add support for canary deployment in turms-admin

It's unnecessary to reinvent the wheels currently because cloud service providers have already their own publishing system for users so our users can choose for themselves and the CI/CD servers are enough if users want to develop their own publishing system.
We may reopen this ticket when it's the time that we think this feature really necessary for turms to integrate.


test PR - to verify GH actions work and currently install.yaml is missing some env vars

ahh yes, the error does not reproduce because the workflow executes build.sh and the install.yaml file is generated


Spinner open towards the top

For some reason, the spinner open towards the top covering the other components.

This would happen if the item which inflates the spinner is close to the bottom of the screen.

No, I'm spinner in the top still has this problem

Hey, @TongZhang1314
This problem you modify the 2 values in the demens file can be done, which is written in this value, resulting in the height can not be customized, self-adaptive.
12dp
24dp

This should be fixed in the last releases.


IPV6 App store rejection

Steps to reproduce
The App Store testers experienced an app crash when connected to an IPV6 network and opening the Camera scene, they tried it three times and got this error every time. IPV4 seems to work.
But I actually couldn't recreate the error via an IPV6 Network.
Expected behaviour
App shouldn't crash.
Actual behaviour
The app crashes, a log excerpt of one of the crash logs provided by the apple support is:
Thread 14 name:  Dispatch queue: cameraManagerQueue
Thread 14 Crashed:
0   libsystem_kernel.dylib        	0x00000001876b7014 0x187698000 + 126996
1   libsystem_pthread.dylib       	0x000000018777f450 0x18777a000 + 21584
2   libsystem_c.dylib             	0x000000018762b400 0x1875c8000 + 406528
3   libc++abi.dylib               	0x00000001870f52d4 0x1870f4000 + 4820
4   libc++abi.dylib               	0x0000000187112cc0 0x1870f4000 + 126144
5   libobjc.A.dylib               	0x0000000187120844 0x187118000 + 34884
6   libc++abi.dylib               	0x000000018710f66c 0x1870f4000 + 112236
7   libc++abi.dylib               	0x000000018710ef84 0x1870f4000 + 110468
8   libobjc.A.dylib               	0x0000000187120690 0x187118000 + 34448
9   AVFoundation                  	0x000000018ff23a48 0x18fdf6000 + 1235528
10  MyAppPrototype               	0x00000001000ed8e8 0x100048000 + 678120
11  libdispatch.dylib             	0x00000001875721fc 0x187571000 + 4604
12  libdispatch.dylib             	0x00000001875721bc 0x187571000 + 4540
13  libdispatch.dylib             	0x00000001875803dc 0x187571000 + 62428
14  libdispatch.dylib             	0x00000001875759a4 0x187571000 + 18852
15  libdispatch.dylib             	0x00000001875808d8 0x187571000 + 63704
16  libdispatch.dylib             	0x000000018758234c 0x187571000 + 70476
17  libdispatch.dylib             	0x00000001875820ac 0x187571000 + 69804
18  libsystem_pthread.dylib       	0x000000018777b2a0 0x18777a000 + 4768
19  libsystem_pthread.dylib       	0x000000018777ad8c 0x18777a000 + 3468

Thread 14 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x00000001742e15b7
    x4: 0x0000000187113bc3   x5: 0x000000016e1715c0   x6: 0x000000000000006e   x7: 0xffffffffffffffec
    x8: 0x000000000c000000   x9: 0x0000000004000000  x10: 0x000000000000000b  x11: 0x0000000000000010
   x12: 0x0000000187642772  x13: 0x0000000000000000  x14: 0x0000030000000300  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x000000016e173000  x21: 0x000000016e1715c0  x22: 0x0000000170012250  x23: 0x000000018f0c3659
   x24: 0x0000000000000002  x25: 0x000000018f0c7024  x26: 0x4e20832ad7ff00ce  x27: 0x0000000000000003
   x28: 0x00000001ac547000   fp: 0x000000016e171520   lr: 0x000000018777f450
    sp: 0x000000016e171500   pc: 0x00000001876b7014 cpsr: 0x00000000

Environment

Node.js version: 7.4.0
React Native version: 0.35.0
React Native platform + platform version: iOS 10.2.1 (should be an iPad)

react-native-camera
Version: commit "https://github.com/lwansbrough/react-native-camera.git#ebae133116d9f35281af3da9540b76b4843128aa"
It's hard to recognize where the problem is, but as the log says the cameraManagerQueue thread seems to crash which's origin seems to be in RCTCameraManager.m (https://github.com/lwansbrough/react-native-camera/blob/371a6a0dfaec1aa744087e3ceb0deb404055b189/ios/RCTCameraManager.m)
Does anyone experienced a similar problem with the app store verification? My next bet would be to just update to the latest react-native and react-native-camera version and request a second approval.

+1 !

This issue happens on iOS 10.3.1

+1

This issue is closed because of inactivity.
Furthermore RCTCamera is deprecated now, use RNCamera instead. If this issue is also related to RNCamera, please open a new one.


Question about the degree of synthetic vessel graph.

I take a look at ogbn-synthetic_graph_3_pb_minRadiusAvg dataset load from PygNodePropPredDataset, and find that the degree distribution is as follows:

Most of the nodes have a degree of 2 and 4 (1533 and 1599). This does not follow the claim in the paper Whole Brain Vessel Graphs: A Dataset and Benchmark for Graph Learning and Neuroscience (VesselGraph):

I wonder if the 5 synthetic vessel graphs have the same properties as the real-world dataset.
Thanks in advance.

Hi @Sutongtong233,
thank you very much for your question and the interest in the paper and dataset. You are absolutely correct, the synthetic graphs do not follow the underlying distribution w.r.t node degree. We used these graphs to test the dataloaders and algorithms on smaller graphs when starting this project, and as far as I remember the graphs originate from Matthias Schneider et al. Tissue metabolism driven arterial tree generation. Med Image Anal., 16(7):1397–1414, 2012.
We also did not intend the synthetic graphs to be identical, as we wanted to provide a very universal dataset to the community (by the way - dataset contributions are welcome! :slightly_smiling_face: ).
I believe the whole mouse brain graph features a lot more microvessels, unconnected vessels and vessels of higher degrees as well. If you want to test the impact of bulge size on the synthetic graphs as well, we can provide the segmentation mask and the instructions how to generate the graphs in case you would like to examine this!
Cheers,
Julian

By the way, we just released one of the whole graphs as official OGB Graph, and will advertise this in the Readme soon as well, just in case you are interested in link prediction and would like to test your algorithm and compare it to the baselines.

Thanks a lot!


Fix fast jit issue of translating opcode i32.rem_s/i64.rem_s

while i don't really understand this part of code, i tested it and it worked.
https://github.com/bytecodealliance/wasm-micro-runtime/issues/1727#issuecomment-1321499856


Keyword argument expectation matching failing in Ruby 2.7

Subject of the issue
When upgrading to 3.10.3 today, I noticed one test failure in our CI matrix that only affected Ruby 2.7.
This issue happens when we provide an empty keyword argument Hash as a keyword splat argument (method(**{})) to RSpec::Mocks::Matchers::Receive#with. Example: expect(obj).to receive(:call).with(:foo, **{}).
When later invoking obj.call(:foo, **{}) I receive the expected: (:foo, {}) got: (:foo) assertion error.
This does not affect Ruby < 2.7, nor Ruby > 2.7. Nor it affects rspec-mocks 3.10.2.
Preliminary investigation
Looking at the changelog for v3.10.3, I can see changes around ruby2_keywords, and it looks like the empty keyword argument {} get dropped in this invocation: https://github.com/rspec/rspec-mocks/blob/97c972be57f2c060a4a7fb8a3c5700a5ede693f0/lib/rspec/mocks/method_double.rb#L64
Another option is to filter out the empty hash before is gets stored in the args here: https://github.com/rspec/rspec-mocks/blob/97c972be57f2c060a4a7fb8a3c5700a5ede693f0/lib/rspec/mocks/matchers/receive_message_chain.rb#L18
I'm not sure which of these avenues is the correct one, though.
Your environment

Ruby version: 2.7.3p183
rspec-mocks version: 3.10.3

Steps to reproduce
require 'bundler/inline'

gemfile do
  source 'https://rubygems.org'
  gem 'rspec', '3.10.0'
  gem 'rspec-mocks', '3.10.3'
end

require 'rspec/autorun'

RSpec.describe do
  it do
    obj = Object.new
    expect(obj).to receive(:call).with(:foo, **{})
    obj.call(:foo, **{})
  end
end

Expected behavior
Assertion to match, and test to pass:
Finished in 0.00839 seconds (files took 0.08246 seconds to load)
1 example, 0 failures

Actual behavior
  1) is expected to receive call(:foo, {}) 1 time
     Failure/Error: obj.call(:foo, **{})

       #<Object:0x000055fe45517ba8> received :call with unexpected arguments
         expected: (:foo, {})
              got: (:foo)
     # test.rb:15:in `block (2 levels) in <main>'

Thanks for reporting. Would you like to take a stab at a pr with at least a failing spec?
What the change that resulted in the regression was supposed to fix?
Can’t tell upfront, but it may require a change on RSpec-support side. I believe there is an open ticket with some discussion regarding argument matching, do you mind checking if they are somewhat similar?

This is fixed in 3.12.0, thank you so much!


Multigraph?

is it possible to change the main Dijkstra algorithm to search multigraphs? Most probably yes, but what are the changes required because the edges are added to a HashMap?

You can insert auxiliary nodes yourself, connected by a zero-cost edge.
A -----> B
 \______/

Becomes:
A ---> A1 ---> B
\             /
 \---> A2 ---/

Where the edges from A to A1 and from A to A2 have zero cost. The other edges have the same cost as before.


Show blocked content only for blocked users

Depends on API: https://github.com/cofacts/rumors-api/pull/262
This PR implements M3:

In the new API it will not show blocked content by default
This PR allows blocked user to see blocked content (reply request, article reply, article category) on article page

Normal user

Blocked user

Coverage remained the same at 75.363% when pulling cf550a0ca17a8b6b44f7839454b1758704e701c0 on load-blocked into 0edcdb9eda6e14c2d04cc63c1d1d9e20d4beea78 on master.

Coverage remained the same at 75.363% when pulling cf550a0ca17a8b6b44f7839454b1758704e701c0 on load-blocked into 0edcdb9eda6e14c2d04cc63c1d1d9e20d4beea78 on master.


Add support for querying other wallet balance

Pull Request Description
Related Issue
Implements #60
Changes Made
This PR adds the following changes:

Added getBalanceOther method in SolanaAgentKit class
Implemented get_balance_other tool

Implementation Details

This tool enables the agent to query SOL and SPL token balances of other wallets

Prompt Used
Prompt: What is the SOL balance of HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op?
-------------------
{"status":"success","balance":49.893951194,"wallet":"HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op","token":"SOL"}
-------------------
The wallet balance of HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op is approximately 49.89 SOL.
-------------------

Prompt: Now get the balance of sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh token for that same wallet

-------------------
{"status":"success","balance":60.338328396,"wallet":"HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op","token":"sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh"}
-------------------
The balance of the token sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh in the wallet HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op is approximately 60.34 tokens.
-------------------

Checklist

[x] I have tested these changes locally
[x] I have updated the documentation
- [ ] I have added a transaction link
[x] I have added the prompt used to test it

heyo @dimitrov-d looks good
can you run pnpm lint:fix and push it

pnpm lint:fix

Great! Ran it already, there is nothing to fix.


feat(threads): introduce a declarative macro for autostarting threads

This allows us to use that declarative macro from riot-rs-embassy in particular, where riot-rs is not available and where we therefore could not use the thread proc-macro.

It makes more sense to define the core of this macro in riot-rs-threads anyway.

LGTM!


Beta installation bundles report unknown channel

Steps to Reproduce
on macOS:
cd ~/tmp
curl https://storage.googleapis.com/flutter_infra/releases/beta/macos/flutter_macos_v0.1.5-beta.zip -o beta.zip
unzip beta.zip
./flutter/bin/flutter --version

=>
Flutter 0.1.5 • channel unknown • unknown source
Framework • revision 3ea4d06340 (3 weeks ago) • 2018-02-22 11:12:39 -0800
Engine • revision ead227f118
Tools • Dart 2.0.0-dev.28.0.flutter-0b4f01f759

@gspencergoog I still see this in the recent macOS beta:
https://storage.googleapis.com/flutter_infra/releases/beta/macos/flutter_macos_v0.2.3-beta.zip
mit-macbookpro2:tmp mit$ flutter --version
Flutter 0.2.3 • channel unknown • unknown source

Actually, it is fixed, it's just that the fix hasn't made it into the beta channel yet: the packaging bots sync to the branch they are packaging, and use that script.
I think I'm going to have to change the packaging builds so that they checkout master instead of the dev or beta branch, but then build the package from the dev or beta branches, so that they're using the latest packaging script instead of the one on the branch.

Here is that change: https://chromium-review.googlesource.com/c/chromium/tools/build/+/989404

The change has been merged.  I'll re-run the beta packaging builds.


Cannot replace an image layer

Describe the bug
I am trying to replace an image layer in a photoshop file. For that purpose I am using this next code:
To Reproduce
This is my python code:
with Session() as ps:
replace_contents = ps.app.stringIDToTypeID("placedLayerReplaceContents")
desc = ps.ActionDescriptor
idnull = ps.app.charIDToTypeID("null")
desc.putPath(idnull, "G:\BLEBLE\BLABLABLA\BLABLABLA\BLABLABL\BLABLA\2022\August\Images\09.jpeg")
ps.app.executeAction(replace_contents, desc)
Expected behavior
It suppose to replace already existing image layer but instead of thar it show an error message and log.
Screenshots
Photoshop error message:

Terminal message:
Traceback (most recent call last):
File "g:\Blebleble\blablabla\blablabla\blablabla\Publicaciones\AUTOMATION\automate.py", line 43, in
ps.app.executeAction(replace_contents, desc)
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\photoshop\api\application.py", line 355, in executeAction
return self.app.executeAction(event_id, descriptor, display_dialogs)
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\comtypes\client\lazybind.py", line 182, in caller
return self._comobj._invoke(descr.memid, descr.invkind, 0, *args)
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\comtypes\automation.py", line 745, in _invoke
self.__com_Invoke(memid, riid_null, lcid, invkind,
_ctypes.COMError: (-2147213497, None, (None, None, None, 0, None))
Desktop (please complete the following information):

OS: Windows 11 Home
Photoshop Version: Adobe Photoshop Version: 22.5.4 20211208.r.631 a0cb269  x64
Python Version: python-3.10

Additional context
This code actually worked once but suddenly it stopped working.

Sorry but I can't help you directly. Though this happened to me too (including the code working only once), and I worked around it by simply importing the new image and getting rid of the old one in another way.

Have you tried look at #174? What's missing in your code is setting the active layer: ps.active_document.activeLayer = layer.

@Edimo05
You can try to add r in the file path, to ensure the code use raw path
desc.putPath(idnull, r"G:\BLEBLE\BLABLABLA\BLABLABLA\BLABLABL\BLABLA\2022\August\Images\09.jpeg")

I tried, still same error message

I tried, still same error message

@Edimo05 You can try to add r in the file path, to ensure the code use raw path
desc.putPath(idnull, r"G:\BLEBLE\BLABLABLA\BLABLABLA\BLABLABL\BLABLA\2022\August\Images\09.jpeg")

I tried and doesn't work. Still getting the same error.

@loonghao I tried this code (https://loonghao.github.io/photoshop-python-api/examples/#replace-images) but when I cannot import examples._psd_files. I already installed photoshop_python_api.

Have you tried to look at #174? What's missing in your code is setting the active layer: ps.active_document.activeLayer = layer. Maybe that'll work.

I tried change my code to this:
with Session() as ps:
ps.active_document.activeLayer = doc.ArtLayers["08"]
replace_contents = ps.app.stringIDToTypeID("placedLayerReplaceContents")
desc = ps.ActionDescriptor
idnull = ps.app.charIDToTypeID("null")
desc.putPath(idnull, r"G:\BLEBLE\BLABLABLA\BLABLABLA\BLABLABL\BLABLA\2022\August\Images\09.jpeg")
ps.app.executeAction(replace_contents, desc)
and it shows next error:
Traceback (most recent call last):
File "g:\Blebleble\blablabla\blablabla\blablabla\Publicaciones\AUTOMATION\automate.py", line 40, in
ps.active_document.activeLayer = doc.ArtLayers["08"]
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\photoshop\api_document.py", line 83, in activeLayer
self.app.activeLayer = layer
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\comtypes\client\lazybind.py", line 218, in setattr
self._comobj._invoke(descr.memid, descr.invkind, 0, value)
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\comtypes\automation.py", line 737, in _invoke
array[i].value = a
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\comtypes\automation.py", line 231, in _set_value
elif (hasattr(value, 'len') and len(value) == 0
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\win32com\client\dynamic.py", line 303, in len
raise TypeError("This dispatch object does not define a Count method")
TypeError: This dispatch object does not define a Count method
maybe I placed that code u mentioned wrong?

@Edimo05
ArtLayers is a list, you need artLayer + index to access it
doc.ArtLayers["08"]

with Session() as ps:
    ps.active_document.activeLayer = doc.artLayers.getByName("08")
    replace_contents = ps.app.stringIDToTypeID("placedLayerReplaceContents")
    desc = ps.ActionDescriptor
    idnull = ps.app.charIDToTypeID("null")
    desc.putPath(idnull, r"G:\BLEBLE\BLABLABLA\BLABLABLA\BLABLABL\BLABLA\2022\August\Images\09.jpeg")
    ps.app.executeAction(replace_contents, desc)

@Edimo05 ArtLayers is a list, you need artLayer + index to access it
doc.ArtLayers["08"]

with Session() as ps:
    ps.active_document.activeLayer = doc.artLayers.getByName("08")
    replace_contents = ps.app.stringIDToTypeID("placedLayerReplaceContents")
    desc = ps.ActionDescriptor
    idnull = ps.app.charIDToTypeID("null")
    desc.putPath(idnull, r"G:\BLEBLE\BLABLABLA\BLABLABLA\BLABLABL\BLABLA\2022\August\Images\09.jpeg")
    ps.app.executeAction(replace_contents, desc)

@loonghao now is showing this error:
Traceback (most recent call last):
File "g:\Blebleble\blablabla\blablabla\blablabla\Publicaciones\AUTOMATION\automate.py", line 55, in
ps.active_document.activeLayer = doc.ArtLayers.getByName("08")
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\win32com\client\dynamic.py", line 628, in getattr
ret = self.oleobj.Invoke(retEntry.dispid, 0, invoke_type, 1)
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'Adobe Photoshop', 'Illegal argument - argument 1\n- Required value is missing', None, 0, -2147220262), None)

@Edimo05
doc.ArtLayers.getByName("08")

ArtLayers first letter lowercase
doc.artLayers.getByName("08")

@Edimo05
doc.ArtLayers.getByName("08")

ArtLayers first letter lowercase
doc.artLayers.getByName("08")

@loonghao nothing man, same error:
Traceback (most recent call last):
File "g:\Blebleble\blablabla\blablabla\blablabla\Publicaciones\AUTOMATION\automate.py", line 75, in
ps.active_document.activeLayer = doc.artLayers.getByName("08")
File "C:\Users\bliblibli\AppData\Local\Programs\Python\Python310\lib\site-packages\win32com\client\dynamic.py", line 628, in getattr
ret = self.oleobj.Invoke(retEntry.dispid, 0, invoke_type, 1)
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'Adobe Photoshop', 'Illegal argument - argument 1\n- Required value is missing', None, 0, -2147220262), None)

@Edimo05
replace image only support ArtLayer as a smart object layer

Please convert the 08 layer as a smart-object first and then execute the following code
from photoshop import Session

with Session() as ps:
    doc = ps.active_document
    doc.activeLayer = doc.artLayers.getByName("08")
    replace_contents = ps.app.stringIDToTypeID("placedLayerReplaceContents")
    desc = ps.ActionDescriptor
    idnull = ps.app.charIDToTypeID("null")
    desc.putPath(idnull, r"G:\BLEBLE\BLABLABLA\BLABLABLA\BLABLABL\BLABLA\2022\August\Images\09.jpeg")
    ps.app.executeAction(replace_contents, desc)

@Edimo05 replace image only support ArtLayer as a smart object layer
Please convert the 08 layer as a smart-object first and then execute the following code
from photoshop import Session

with Session() as ps:
    doc = ps.active_document
    doc.activeLayer = doc.artLayers.getByName("08")
    replace_contents = ps.app.stringIDToTypeID("placedLayerReplaceContents")
    desc = ps.ActionDescriptor
    idnull = ps.app.charIDToTypeID("null")
    desc.putPath(idnull, r"G:\BLEBLE\BLABLABLA\BLABLABLA\BLABLABL\BLABLA\2022\August\Images\09.jpeg")
    ps.app.executeAction(replace_contents, desc)

@loonghao finally works. That layer was already an smart object, I think I missed ps.active_document.
Thanks a lot!!!

@Edimo05 good to hear, closing issue.


Verify notifications work on Oreo

Should probably create channels to get them to show

Verified that Dir's notifications show up without channels


 It would be nice to have this support with co-mocha.
Something like
(yield function * () { /* async code */ }).should.throw();

I solved it for the Promise case with
    const failP = p => p.then(() => Promise.reject("should fail"), () => true)

	it('should fail', function *() {
		yield failP(Promise.reject())
	})

I wish I could make something similar for the whole generator function.

@wmertens That code looks weird. I recommend using babel and async function () {} nowadays.
{
  "scripts": {
    "test": "babel-node run-tests.js"
  },
  "devDependencies": {
    "babel-cli": "^6.3.17",
    "babel-plugin-transform-async-to-generator": "^6.3.13"
  },
  "babel": {
    "plugins": ["transform-async-to-generator"]
  }
}

Then your tests look like this:
it('does something', async function () {
  await fs.mkdir('a')
  await fs.createFile('a/b', 'Hello Wolrd!')
})

You run it with npm test (as always).

:+1: for async, since Mocha supports promises anyway. @wmertens, what are you trying to do with that function?

Actually, yeah, await is nicer than yield, but what I want to express is that the promise should fail without having to do the try/catch construct…

Take a look at chai-as-promised (https://github.com/domenic/chai-as-promised/). That's what you're searching for.
It the looks like this:
await yourOperationThatFails().should.be.rejected

Should.js implements this. Now that I am moving away from yield into the promise land (hehe) I can test my asynchronous failures as
it('should fail', function () {
  return new Promise(function (resolve, reject) {
    setTimeout(function () {
      reject(new Error('foo'));
    }, 200);
  }).should.be.rejectedWith('foo');
});

Also, I no longer use co-mocha :) as mocha handles Promises natively as the above example demonstrates.

I am just getting started with generators and eyeing koajs, so I wanted to try out generators and wanted to test a promise rejection without relying on the fact that it is a promise.
I missed the should.Throw implementation above, I wanted to do the same with a helper function like failP for generators but couldn't make it work, yielding the original generator function doesn't work for me.
However, I right now don't have a use case that cannot be solved by Promises, so I'll just keep using those for now. In koajs there is also discussion about async/await (https://github.com/koajs/koa/issues/339), seems like the consensus is that co+yield is a bit of a hack to achieve async/await, and I'm inclined to agree.
PS: Not really related, but very awesome: check out https://github.com/power-assert-js/babel-plugin-espower, it shows all the values in a failing assertion. Just spreading the word, since you're depending on babel anyways.

@wmertens power-assert seems really nice!


"metadata-generation-failed" when installing in Termux

~ $ pip install safetensors                          Collecting safetensors
  Using cached safetensors-0.4.1.tar.gz (62 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-38lcmxhq', '--interpreter', '/data/data/com.termux/files/usr/bin/python3.11']' died with <Signals.SIGSEGV: 11>.
      Checking for Rust toolchain....
      Running `maturin pep517 write-dist-info --metadata-directory /data/data/com.termux/files/usr/tmp/pip-modern-metadata-38lcmxhq --interpreter /data/data/com.termux/files/usr/bin/python3.11`
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Android version:
10
Kernel build information:
Linux localhost 4.4.192-perf+ #1 SMP PREEMPT Fri Nov 5 12:30:40 CST 2021 aarch64 Android

Android ??
You need to install cargo first if you want to build from source (which is what the wheel is trying to do here)
https://www.rust-lang.org/tools/install
Sorry we don' t prepackage this particular arch it seems (I'm wondering which arch it is though because aarch64 is )

I'm using Termux on Android and there is no error with safetensors. The error was caused as by default Termux uses different file system layout than usual linux, running termux-chroot ( which setup a chroot to mimic a normal Linux file system ) before using pip to install safetensors fixed everything.
Here is the proof that i managed to install it :-
https://www.reddit.com/r/termux/comments/18ojp5j/how_to_install_sentencetransformers_with_all/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=1&utm_content=share_button

I'm really sorry I forgot to tell that I fixed the error.

Thanks for sharing your solution here.

Mera code banaya kudu ko Kam nahin kar rahe code isliye Kam nahin kar raha kyunki code galat bola hai kot color banae lekin condom galat pade Hain


[Parse Error] - item name here

Parse Error
Put name of item here, and in the title
Item Text
Please provide the item's description

Can be copied with ctrl+shift+c
Can also be copied from below the error message

Please paste it HERE

Item Class: Shields
Rarity: Unique
Arvil's Wheel
Hardwood Targe
--------
Block chance: 35% (augmented)
Armour: 17 (augmented)
Evasion Rating: 12 (augmented)
--------
Sockets: S
--------
Item Level: 74
--------
42% increased Block chance
67% increased Armour and Evasion
Lose 1% of Life on Kill
Lose 1% of Mana on Kill
33% increased Skill Effect Duration
--------
The unending carnage of war
mercilessly grinds away
at body and mind.

Duplicate of #145


Added package findtests

Otherwise looks good

Saw that some other packages had it so thought it was ok. All fixed now!

What other packages have it?

From a quick glance it seems like quite a few of the earlier packages have them. I specifically saw them in einheit because I stole some unit-test-related flags, but you can see that there are at least a couple other packages around that area which have the same issue.


How could we use Bech32 addresses?

Hi @vsergeev,
First of all I'd like to thank you for this awesome code. I'm playing a lot with it :)
I'm writing you to ask a question. In this part of the code here I've seen that ntgbtminer is using a type 1 bitcoin adress.
I'd like to adapt the code in order to use a Bech32 address type.
It looks like we are transforming the address in this part. Do you know what we would need to change in order to use addresses like this one bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq?
Thanks in advance ;)

Sure. You would have to introduce a variant of the bitcoinaddress2hash160() function you linked, e.g. bech32topkh(), to extract the public key hash from the Bech32 address, and then change the output script from P2PKH to P2WPKH, which is just OP_0 + the public key hash: pubkey_script = "00" + bech32topkh(address)

Thanks a lot @vsergeev for sharing your knowledge :)
Very interesting indeed.
Later I've seen from here that we can create an address of type legacy, as they call there, and it is the address type 1 that I listed before.
So for now, at least in my case, I'll be proceeding using the type 1 address for my tests.
Either way I think it would be cool if we add support for the other two address types in the future, specially the bech32 one, and maybe support for stratum v1 and v2 as well.
Thank you once again.
If you prefer, I think we can close this issue, or we could keep it open aiming a new feature.

I'll close for now, but people are always welcome to make a PR with support for new address types.


how do i make a max combo?

Describe your problem here.
just need the line to make it, have everything else done
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

local MaxComb = 0
function onRecalculateRating()

local MaxComb = 0
function onUpdatePost(elapsed)
if combo > MaxComb then MaxComb = combo end
setTextString('##texttag##', 'Top Combo: ' ..MaxCombo)
end
--Note: make sure that the "ecuation" and the text string are in the same callback function, it also can work with similar like onRecalculateRating()


Simplify order lines bookkeeping.

Thanks for the improvement @fpacanowski.
I like this class extraction. I'm not sure about the name (Order consists of Basket?), but it feels OK for now.
Thanks for the comments @jandudulski. I'm not sure about extracting this class to another file in this case.
Anyway, I gave you both Write accesses, feel free to improve the codebase and push directly to master, good luck :)

Thanks. I addressed your comments in https://github.com/RailsEventStore/ecommerce/commit/787213adf04b449418f5431f12d8ea9d520674ab.


Change xsltMaxDepth (--maxdepth) value? - where?

Hi, I'm using Rails 3.2.12 with your Gem to create a big docx file containing the site's users with their details.
It works great with a few users, but when there are more than a few I'm getting the following error:
xsltApplyXSLTTemplate: A potential infinite template recursion was detected.
You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum number of nested template calls and variables/params (currently set to 3000).

I'm not familiar with xslt, I didn't find where I should add the maxdepth parameter-
Any ideas?
Thank you.
Full error, and what I'm trying to do below:
RuntimeError: runtime error: file C:/row/Ruby21/lib/ruby/gems/2.1.0/gems/htmltoword-0.5.1/lib/htmltoword/xslt/inline_elements.xslt line 7 element copy
xsltApplyXSLTTemplate: A potential infinite template recursion was detected.
You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum number of nested template calls and variables/params (currently set to 3000).
Templates:
#0 name node()|@*
#1 name node()|@*
#2 name node()|@*
#3 name node()|@*
#4 name node()|@*
#5 name node()|@*
#6 name node()|@*
#7 name node()|@*
#8 name node()|@*
#9 name node()|@*
#10 name node()|@*
#11 name node()|@*
#12 name node()|@*
#13 name node()|@*
#14 name node()|@*
Variables:
from C:/row/Ruby21/lib/ruby/gems/2.1.0/gems/htmltoword-0.5.1/lib/htmltoword/document.rb:88:in `transform'

More details:
I'm trying to send a mail with the docx file as attachment (It does work, but not with many users):
class MyMailer < ActionMailer::Base
  default from<EMAIL_ADDRESS>  default to<EMAIL_ADDRESS>
  def send_word_files(users)
    body = ''
    users.each do |user|
      user.fields.each do |field|

        body << "
#{field.label_name}:
"
        body << "
#{user.field_value(field)}
"
      end
      body << '

'
    end
    attachments["users.docx"] = Htmltoword::Document.create("#{body}")

    mail(subject: "word file", body: 'enjoy')
  end

end

Did you find a solution to this?

No, what I ended up doing was making a docx file for every 50 users- so I got like 10 docs files for 500 users...
Please let me know if you find another solution.
Or if you couldn't find one, take a look at this Gem: Caracal

Well my solution is to create wrapper div for every group of 3000 nodes, which gives you enough space to overcome this limitation.

@adamtomecek Your comment just saved my day! Adding a seemingly useless div also solved this for me.


Feature/added utilitary contracts

Some utilitary contracts useful for a template.

Hey @mariobyn! Thanks for your PR.
Unfortunately I think that the added contracts are a bit too opinionated, and even superfluous.

The UINT256_MAX constant can be accessed more easily via [type(uint256).max].(https://ethereum.stackexchange.com/questions/27813/max-min-values-of-standard-data-types/83450#83450).
The user may not want 18 decimals in their number system.
The user may want to use a library instead of a contract for utility function. Or they may want to define the functions at the top-level (the so-called "free functions" which yes are possible in Solidity).
The uint to string conversion is rarely needed in Solidity.


[ADOP-2450] WIP // DO NOT MERGE - Test Front End for cos-api PR-932

Change description
JIRA link
https://tools.hmcts.net/jira/browse/ADOP-2450
Does this PR introduce a breaking change? (check one with "x")

[X] Yes
[ ] No

backend change deployed


Bug: EventManager Uses Incorrect Compile-Time Generic Type for Event Dispatching

The following method uses the incorrect compile-time generic type.
When a redirect factory constructor is used, the generic type will be the base class, instead of the instance type.
This causes the wrong event handler to be used.
https://github.com/MatthiWare/mediator.dart/blob/2f04c666a31ca0b716257a861790caa8ce3dfa86/lib/src/event/event_manager.dart#L55-L59
Sample:
sealed class BaseEvent implements DomainEvent {
  factory BaseEvent.added() = Added;

  factory BaseEvent.removed() = Removed;
}

class Added implements BaseEvent {}

class Removed implements BaseEvent {}

void checkEvent<TEvent extends BaseEvent>(String name, BaseEvent event) {
  print('$name handler');
  print('TEvent: $TEvent');
  print('Instance: ${event.runtimeType}');
}

extension on EventManager {
  Future<void> dispatchBaseEvent(BaseEvent event) => dispatch(event);
}

Future<void> main() async {
  final mediator = Mediator.create();

  mediator.events.on<Added>().subscribeFunction((e) => checkEvent('added', e));
  mediator.events
      .on<Removed>()
      .subscribeFunction((e) => checkEvent('removed', e));
  mediator.events
      .on<BaseEvent>()
      .subscribeFunction((e) => checkEvent('base', e));

  await mediator.events.dispatchBaseEvent(BaseEvent.added());
  await mediator.events.dispatchBaseEvent(BaseEvent.removed());
}

Output:
base handler
TEvent: BaseEvent
Instance: Added

base handler
TEvent: BaseEvent
Instance: Removed

Expected:
The events should be handled by the Added, Removed event handlers instead of the BaseEvent handler.

After some consideration, this is working as intended. Changing this would enable a specific use case while breaking another more valid one.
Workaround
Make the following changes in the code sample above.
Update the events to not implement DomainEvent on the lowest type. Introduce a base class in between.
sealed class SomeEvent {
  factory SomeEvent.added() = AddedEvent;

  factory SomeEvent.removed() = RemovedEvent;
}

abstract base class SomeEventBase implements DomainEvent {}

final class AddedEvent extends SomeEventBase implements SomeEvent {}

final class RemovedEvent extends SomeEventBase implements SomeEvent {}

Update the extension method
extension on EventManager {
  Future<void> dispatchSomeEvent(SomeEvent event) {
    // Switching on the instance type will cause the dispatch<Event>
    // to use the correct generic type.
    // Analyzer will complain if you don't do this or forget a case
    switch (event) {
      case AddedEvent():
        return dispatch(event);

      case RemovedEvent():
        return dispatch(event);
    }
  }
}

Now the output for
  await mediator.events.dispatchSomeEvent(SomeEvent.added());
  await mediator.events.dispatchSomeEvent(SomeEvent.removed());

Is the following:
added handler
TEvent: SomeEvent
Instance: AddedEvent

removed handler
TEvent: SomeEvent
Instance: RemovedEvent


Fix test cases for the oauth consent changes

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/578658697

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/578658697
Status: cancelled

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/578704771

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/578704771
Status: success


testing the pipeline

lets see

@codak77 @Fifetoyi @nedssoft @Am0du
this was just to test the pipeline without any significant change but it is failing, meaning NOTHING can pass, if we need to update or remove some things in the pipeline, please lets do it, this CI that is even passing may fail if I even ad a significant code, I feel the pipeline code may be too complicated, can we just simplify it, thank you


Streamline Connections

If this gets merged we need to update the docs.
@moklick there are 2 places where I use Typescripts non-null assertion operator to assume that the node from the nodeLookup is actually present in XYHandle. I am pretty sure there is no way they would be undefined because the handleBounds from these nodes are used to determine them - double check me on this please

This looks way better! Can we adjust the useConenction hook, so that it doesn't trigger an update when the connection is snapped to a handle?


upload  files , documents, images

Hi
Thanks for your Convesational form.. its awesome work..
I am working in flask .
I have managed to make simple form and save it to database. But the problem comes only when i try to upload a file , image , documents...

I believe we are sending in json form from frontend.
{ 'name': 'pankaj', 'dplace': 'mumbai', 'dtime': 'morning',  'dage': '20', 'dduration': '10', 'fileupload': 'C:\\fakepath\\resume.pdf',  'submit-form': ['Submit']  }

At server end I used
content = request.json print("name testing = ",content)
names = content['name']
request.files gives none value

This gives me all the key value pair . But now the question arise
how will i use content['fileupload']
and save the file in any place in server
It is giving me fakepath..
Hoping anyone could help me out. atleast with an example or idea to continue.
I have read that fakepath cannot  and should not be accessed by anyone. because it deals with the browsers security.
But then how should i upload a resume or curriculum document from a candidate in server
I used the following in input form
      <input type="file" name="fileupload" value="fileupload" id="fileupload" accept="image/*" cf-max-size="10000000000000000">
      <label for="fileupload"> Select a file to upload</label>

Plz help me
Following Attachement is just an example of flask and database connection.   i want  an uploading method
chats.tar.gz
`

Hi @pankajbadatia. I assume you do an AJAX request using submit callback, correct? If so you need to implement logic for loading the content of the file the user selected or do a traditional form submit.


Update links to SR Hardware

These have been moved to GitHub!

I think this should also be upstreamed to the SR docs.


Needs MFA log-in example

Why isn't there an example of how to log in using MFA credentials?

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

ID: ed0dce05-8bfd-0bfa-3753-0eb193852703
Version Independent ID: 50e0366c-46b0-71da-b6f6-f422adaad785
Content: Connect-MicrosoftTeams (MicrosoftTeamsPowerShell)
Content Source: teams/teams-ps/teams/Connect-MicrosoftTeams.md
Service: teams-powershell
GitHub Login: @SerdarSoysal
Microsoft Alias: serdars

Hello @SeaGT
The example 1 must be used if the account has MFA-enabled, see the current description

This example connects to an Azure account. You must provide a Microsoft account or organizational ID credentials. If multi-factor authentication is enabled for your credentials, you must log in using the interactive option.

Hope this information helps you

Hi Andres,
Thanks for the reply.  Have you tested that option using Powershell 7.x?  Powershell 7.x with MFA throws 2 errors.  Powershell 5 works great.
Greg
@.***
Desk:<PHONE_NUMBER> | IT Support:<PHONE_NUMBER>
From: Andres Mariano Gorzelany @.>
Sent: Monday, June 7, 2021 7:40 AM
To: @.
Cc: Greg Trapp @.>; @.
Subject: Re: [MicrosoftDocs/office-docs-powershell] Needs MFA log-in example (#7875)
Hello @SeaGT
The example 1 must be used if the account has MFA-enabled, see the current description
This example connects to an Azure account. You must provide a Microsoft account or organizational ID credentials. If multi-factor authentication is enabled for your credentials, you must log in using the interactive option.
Hope this information helps you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi Andres, Thanks for the reply.  Have you tested that option using Powershell 7.x?  Powershell 7.x with MFA throws 2 errors.  Powershell 5 works great.     Greg

Please see the warning note here https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-overview

LOL – that’s the warning I found after wasting 3 hrs trying to get it to work.  As I mentioned, put that warning on the page that recommends upgrading to Powershell 7….  Save people time.
Greg
@.***
Desk:<PHONE_NUMBER> | IT Support:<PHONE_NUMBER>
From: Andres Mariano Gorzelany @.>
Sent: Monday, June 7, 2021 10:07 AM
To: @.
Cc: Greg Trapp @.>; @.
Subject: Re: [MicrosoftDocs/office-docs-powershell] Needs MFA log-in example (#7875)
Hi Andres, Thanks for the reply.  Have you tested that option using Powershell 7.x?  Powershell 7.x with MFA throws 2 errors.  Powershell 5 works great.     Greg
Please see the warning note here https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-overview
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks for your feedback @SeaGT !


[Style] Switch to the border-box form the content-box model

Problem description
As raised by @nathanmarks in this comment the border-box model is the most common used box model. E.g. Bootstrap / React Native. And I think it's for a good reason: it's simpler.
Hence, I suggest that we switch to use this model. That will have a cool side effect: that will make us use boxSizing: 'content-box', everywhere we are adding a padding. Hence fix issues like https://github.com/callemall/material-ui/issues/4259 where users apply this type of style:
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

We enforce the following strategy on the next branch. We don't assume anything about the box-sizing. We use the border-box model as soon as a conflict is susceptible to occur.
How do we help enforcing that? Simple, the docs apply a border-box model globally while the visual regression test uses the content-box model.


adding 2d projection to mat3

While developing a small framework to work with Quads on 2D environment, and for speed purposes, I found it useful to add a project2d style method. It receives the canvas width and height, and inverts on the Y axis so the 0 coordinate is on top.

actually canceling it and moving it to the dev branch and adding tests.. will re issue a PR soon


Make default recipe more DRY

There appeared to be a complete overlap in functionality in the recipes. This is fixed with include_recipe.
I'm on the Chef Approved Contributors list (#814 @ https://wiki.opscode.com/display/chef/Approved+Contributors)

@jtimberman, it would be worth merging this one now as it makes the cookbook easier to understand and potentially makes further contributions simpler.

Yes, I was going to get to this last night and ran out of time :smile_cat:. There was a merge conflict, so I made the change myself. Thanks @dafyddcrosby!


On the Contents of the Constitution, according to the URL where you are in the document, that title should be marked in orange

env: PROD
Test passed.


Title with unicode doesn't work

Thanks for the utility! I think I've found a bug. It seems that setting the <SEO title= field to some unicode breaks the generated HTML:

Thank you for reporting this @mrcnski and really good catch @ttmc, we'll discuss possible solutions to this in #91
Just to confirm that this might actually be the issue behind this: do you use the charset tag via astro-seo @mrcnski?

Hey @jonasmerlin, I didn't set charset because I thought that it would default to UTF-8 if not provided. If that's not true, maybe the docs could be clarified?


pytype for array

Using pytype as a type for item of array does not work.
Example:
parameters:
    - name: body
      paramType: body
      type: array
      items:
        pytype: MySerializer

Data Type will be represented as array[string] instead of expecting pretty serializer description.

DRF is now responsible for generating schema. Closing out.


improve citation annotation support with fkey traversal

As I understand it, currently the citation annotation
http://docs.derivacloud.org/users-guide/annotations/annotation.html?highlight=citation#tag-2018-citation
only supports a "pattern" expansion for its values and to my knowledge the pattern expansion cannot be used to traverse inbound/outbound fkeys to get to the desired column.
For example, a collection to be cited is likely to have >1 author. To model that, I'd like to have an association table "Author" to associate "Collection" (to be cited) and "Person" (to be used as authors). Then I'd like to reference the first/last (or full) names from the Person table in the Collections citation annotation.

This is pending on the pseudo-column feature that @RFSH is working. I am moving this to blocked.

@RFSH maybe this is done now?

@robes Yes it is. Thank you for pointing it out.
You should be able to use normal one hop away outbounds without defining wait_for and the rest of pseudo-columns (including multi-hop all-outbound foteignkeys) using the wait_for list.
I am going to close this issue. If you found any issues with this feature please feel free to create new issues.


fix(homepage): make to show indicator when tab is chosen

SUMMARY
[home page] no indicator for which tab is chosen on recent/dashboard/charts/save query section
Tabs in recents/dashboards/charts/save queries should be indicator when those are chosen.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:

AFTER:

TESTING INSTRUCTIONS
Repro steps
1, go to home page
2, click on the tabs in recents/dashboards/charts/save queries
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[x] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

The approach here seems perfectly fine, but I just want to check in with @jess-dillard to see if the Design team has anything different they'd like to see in the visual treatment that might exist in our burgeoning design system.

We don't have a cohesive component for tabs yet, so this looks fine to me!

🏷 preset:2022.19


6-axis joystick event

When pressing a diagonal on the joystick 2 events are received.
For example, tracing the event when pressing left-down:
[JoystickEvent type=axisMove bubbles=false cancelable=false device=0 id=0 x=-1 y=0 z=0]
[JoystickEvent type=axisMove bubbles=false cancelable=false device=0 id=0 x=-1 y=1 z=0]
Releasing:
[JoystickEvent type=axisMove bubbles=false cancelable=false device=0 id=0 x=0 y=1 z=0]
[JoystickEvent type=axisMove bubbles=false cancelable=false device=0 id=0 x=0 y=0 z=0]
I think it would be an improvement to only receive only one event.
*Note that in the example I have truncated the values to 0,1,-1
Cheers

I think this was done. Thanks :smile:


Migrate THC files to cleaner path

Also fixes #429

This just does the renaming, is the one bloq per file a requirement?

s the one bloq per file a requirement?

no; but let's use it as a guideline and make a note of places where it feels ridiculous so we can evaluate


Differences between Generated and Existing python client APIs

Take a look at issue #476  for more clarity.

APIs with Naming differences

Module
existing client has
generated client has

Async/init
list_all_point_in_time
get_all_pits

Async/init
create_point_in_time
create_pit

Async/security
health_check
health

Async/security
update_audit_config
update_audit_configuration

APIs with Query_params differences

Module
API
existing client has
generated client has
status

Async/init
search
min_compatible_shard_node
-
tested, min_compatible_shard_node should be removed

Async/init
update_by_query
version_type
-
--

Async/init
create_point_in_time
ignore_unavailable
allow_partial_pit_creation
--

Async/cat
cluster_manager
cluster_manager
cluster_manager_timeout, master_timeout
--

Sync/cat
cluster_manager
-
master_timeout
--

Async/cat.pyi
cluster_manager
-
master_timeout
--

Async/cat
nodes
include_unloaded_segments
-
--

Async/cat
segments
-
cluster_manager_timeout, master_timeout
--

Async/cat
plugins
include_bootstrap
-
--

Async/cluster
health
-
awareness_attribute, ensure_node_commissioned
--

Async/cluster
exists_component_template
cluster_manager_timeout
-
--

Async/indices
open
cluster_manager_timeout
-
--

Async/indices
delete
cluster_manager_timeout
-
--

Async/indices
exists_template
cluster_manager_timeout
-
--

Async/indices
stats
types
-
--

Async/indices
delete_data_stream
expand_wildcards
-
--

Async/indices
exists_index_template
cluster_manager_timeout
-
--

Async/indices
get_data_stream
expand_wildcards
-
--

Async/ingest
get_pipeline
summary
-
--

Async/nodes
stats
include_unloaded_segments
-
--

Async/nodes
hot_threads
doc_type
-
--

Async/snapshot
get
include_repository, index_details
-
--

APIs with path_params differences(mostly related to if params are required or optional, implies whether they should have =None)

Module | API | existing client has | generated client has |
-- | -- | -- | -- | --
Async/init | create_point_in_time | index=None | index |
Async/indices | put_mapping | index=None | index |
Async/indices | create_data_stream | - | body=None

APIs with Method differences

Module
API
existing client has
generated client has

Async/init
create
PUT
POST

Async/init
put_script
PUT
POST

Async/cluster
put_component_template
PUT
POST

Async/indices
refresh
POST
GET

Async/indices
flush
POST
GET

Async/indices
clone
PUT
POST

Async/indices
put_mapping
PUT
POST

Async/indices
put_alias
PUT
POST

Async/indices
put_template
PUT
POST

Async/indices
shrink
PUT
POST

Async/indices
split
PUT
POST

Async/indices
put_index_template
PUT
POST

Async/snapshot
create
PUT
POST

Async/snapshot
create_repository
PUT
POST

APIs that are present in one and not present in other

Module
existing client has
generated client has

Async/init
terms_enum
-

Async/cat
transforms
all_pit_segments, pit_segments, segment_replication

Async/cluster
-
delete_decommission_awareness, delete_weighted_routing, get_decommission_awareness, get_weighted_routing, put_decommission_awareness, put_weighted_routing

Async/indices.py
freeze, unfreeze, reload_search_analyzers, promote_data_stream, migrate_to_data_stream, disk_usage, field_usage_stats
-

Async/indices.pyi
flush_synced
-

Async/ingest
geo_ip_stats
-

Async/remote_store
-
all APIs

Async/snapshot
repository_analyze
-

6. APIs with major/complete differences

Async/init                   delete_point_in_time
existing:

@query_params()
async def delete_point_in_time(self, body=None, all=False, params=None, headers=None):
    """
    Delete a point in time
    :arg body: a point-in-time id to delete
    :arg all: set it to `True` to delete all alive point in time.
    """
    path = (
        _make_path("_search", "point_in_time", "_all")
        if all
        else _make_path("_search", "point_in_time")
    )
    return await self.transport.perform_request(
        "DELETE", path, params=params, headers=headers, body=body
    )

generated:
@query_params()
async def delete_all_pits(self, params=None, headers=None):
    """
    Deletes all active point in time searches.
    """
    return await self.transport.perform_request(
        "DELETE", "/_search/point_in_time/_all", params=params, headers=headers
    )

@query_params()
async def delete_pit(self, body=None, params=None, headers=None):
    """
    Deletes one or more point in time searches based on the IDs passed.

    :arg body:
    """
    return await self.transport.perform_request(
        "DELETE",
        "/_search/point_in_time",
        params=params,
        headers=headers,
        body=body,
    )

Async/nodes          hot_threads                            path difference
existing:

self.transport.perform_request(
            "GET",
            _make_path("_nodes", node_id, "hot_threads"),
            params=params,
            headers=headers,
        )

generated:
self.transport.perform_request(
            "GET",
            _make_path("_cluster", "nodes", node_id, "hot_threads"),
            params=params,
            headers=headers,
        )

Tasks and dangling_indices APIs have no differences b/w existing and generated modules

Related to #477

search_params = {
    "min_compatible_shard_node": 5
}

# search for all documents in the 'movies' index
response = client.search(index='movies', params=search_params)

# extract the count of hits from the response
hits_count = response['hits']['total']['value']

# print the count of hits
print("Total Hits: ", hits_count)

RequestError: RequestError(400, 'illegal_argument_exception', 'request [/movies/_search] contains unrecognized parameter: [min_compatible_shard_node]')

update_by_query_params = {
    "version_type": 1
}

# search for all documents in the 'movies' index
response = client.update_by_query(index='movies', params=update_by_query_params)

# print the count of hits
print("Response: ", response)

RequestError: RequestError(400, 'illegal_argument_exception', 'request [/movies/_update_by_query] contains unrecognized parameter: [version_type]')

create_point_in_time_params = {
    "ignore_unavailable": "true",
    "keep_alive": "1m"
}

# create a point-in-time snapshot for the 'movies' index
response = client.create_point_in_time(index='movies', params=create_point_in_time_params)

# print the response
print("Response: ", response)

Response:  {'pit_id': '88j_QAEGbW92aWVzFnFhaEJ1TVNVU2o2TmI2OW9XOTBRV3cAFjk5NWJ4MFdaUjJPcjRJNUMwTkhBVFEAAAAAAAAAABsWZzNfS0lrcEpTRnFKalJYN2xBX0dhQQEWcWFoQnVNU1VTajZOYjY5b1c5MFFXdwAA', '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0}, 'creation_time':<PHONE_NUMBER>842}

create_point_in_time_params = {
    "allow_partial_pit_creation": "true",
    "keep_alive": "1m"
}

# create a point-in-time snapshot for the 'movies' index
response = client.create_point_in_time(index='movies', params=create_point_in_time_params)

# print the response
print("Response: ", response)

Response:  {'pit_id': '88j_QAEGbW92aWVzFnFhaEJ1TVNVU2o2TmI2OW9XOTBRV3cAFjk5NWJ4MFdaUjJPcjRJNUMwTkhBVFEAAAAAAAAAAB8WZzNfS0lrcEpTRnFKalJYN2xBX0dhQQEWcWFoQnVNU1VTajZOYjY5b1c5MFFXdwAA', '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0}, 'creation_time':<PHONE_NUMBER>653}

get https://localhost:9200/_cat/cluster_manager?cluster_manager='60'
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_cat/cluster_manager] contains unrecognized parameter: [cluster_manager] -> did you mean [cluster_manager_timeout]?"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_cat/cluster_manager] contains unrecognized parameter: [cluster_manager] -> did you mean [cluster_manager_timeout]?"
},
"status": 400
}

get https://localhost:9200/_cat/cluster_manager?master_timeout=60ms
sucess

get https://localhost:9200/_cat/nodes?include_unloaded_segments=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_cat/nodes] contains unrecognized parameter: [include_unloaded_segments]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_cat/nodes] contains unrecognized parameter: [include_unloaded_segments]"
},
"status": 400
}

get  https://localhost:9200/_cat/segments
Unauthorized

get https://localhost:9200/_cat/plugins?include_bootstrap=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_cat/plugins] contains unrecognized parameter: [include_bootstrap]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_cat/plugins] contains unrecognized parameter: [include_bootstrap]"
},
"status": 400
}

https://localhost:9200/_cluster/health?ensure_node_commissioned=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_cluster/health] contains unrecognized parameter: [ensure_node_commissioned] -> did you mean [ensure_node_weighed_in]?"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_cluster/health] contains unrecognized parameter: [ensure_node_commissioned] -> did you mean [ensure_node_weighed_in]?"
},
"status": 400
}

post https://localhost:9200/movies/_open?cluster_manager_timeout=100ms
{
"acknowledged": true,
"shards_acknowledged": true
}

DELETE   https://localhost:9200/movies/?cluster_manager_timeout=100ms
{
"acknowledged": true
}

get https://localhost:9200/_stats/_all?include_unloaded_segments=true
success
delete https://localhost:9200/_data_stream/*?expand_wildcards=open
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_data_stream/] contains unrecognized parameter: [expand_wildcards]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_data_stream/] contains unrecognized parameter: [expand_wildcards]"
},
"status": 400
}
get https://localhost:9200/_data_stream/*?expand_wildcards=open
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_data_stream/] contains unrecognized parameter: [expand_wildcards]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_data_stream/] contains unrecognized parameter: [expand_wildcards]"
},
"status": 400
}
put https://localhost:9200/_ingest/pipeline/pipelineid123

{
  "description": "This pipeline processes student data",
  "processors": [
    {
      "set": {
        "description": "Sets the graduation year to 2023",
        "field": "grad_year",
        "value": 2023
      }
    },
    {
      "set": {
        "description": "Sets graduated to true",
        "field": "graduated",
        "value": true
      }
    },
    {
      "uppercase": {
        "field": "name"
      }
    }
  ]
}

{
"acknowledged": true
}
get https://localhost:9200/_ingest/pipeline/pipelineid123?summary=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_ingest/pipeline/pipelineid123] contains unrecognized parameter: [summary]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_ingest/pipeline/pipelineid123] contains unrecognized parameter: [summary]"
},
"status": 400
}
get https://localhost:9200/_nodes/stats?include_unloaded_segments=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_nodes/stats] contains unrecognized parameter: [include_unloaded_segments]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_nodes/stats] contains unrecognized parameter: [include_unloaded_segments]"
},
"status": 400
}


Fix MEM_STATS build configuration.

JerryScript-DCO-1.0-Signed-off-by: Sung-Jae Lee<EMAIL_ADDRESS>

@ruben-ayrapetyan I modified the PR. Tried to remove dependencies between options, following your guide.

@lemmaa, the change looks good to me.
There is a minor style comment. #endifs in other code places are usually followed by condition, under which code block, located just above the #endif, executes. For example:

https://github.com/Samsung/jerryscript/blob/cf2bc459bb59728d4e4dc691f0e042c519e5bcba/jerry-core/ecma/base/ecma-helpers-conversion.cpp#L773
https://github.com/Samsung/jerryscript/blob/311cc65b33a150c1eed055f4a96670922d5478ca/jerry-core/jrt/jrt.h#L43
https://github.com/Samsung/jerryscript/blob/fd9ff8e3bdd243d386d02dbf26a3707994519c75/jerry-core/ecma/base/ecma-lcache.cpp#L69

Could you, please, change the condition to /* MEM_STATS */?

@ruben-ayrapetyan I see. But I have confusion. From the following #else clause, which one is right?
case 1:
#ifndef MEM_STATS
...
#else /* MEM_STATS */
...
endif /* MEM_STATS */

or
case 2:
#ifndef MEM_STATS
...
#else /* !MEM_STATS */
...
endif /* MEM_STATS */

@lemmaa, the case 2 is correct since the comment of #else or #endif corresponds to the condition of the previous block (block which is closed by #else or #endif).

@sand1k In case of #ifdef, it's not confusing. But in case of #ifndef, it looks confusing for me. :)
Anyway, then following are incorrect,right?
https://github.com/Samsung/jerryscript/blob/master/jerry-core/ecma/base/ecma-lcache.cpp#L224
https://github.com/Samsung/jerryscript/blob/master/jerry-core/ecma/operations/ecma-lex-env.cpp#L54

@lemmaa, yes, those are incorrect. It looked confusing for me too, the main thing is to catch the idea :)

@ruben-ayrapetyan I updated PR.

@lemmaa, I think that, as both options seem to be correct and readable, in this case the best option would be the one that is consistent with other places of the code.
Unfortunately, at present, there is inconsistency in the comments after #else that, in my opinion, is a style issue that should be corrected after decision is made about which of the options should be used (maybe, the decision should be recorded in style guide as was proposed in https://github.com/Samsung/jerryscript/pull/623#discussion_r39261691).

Looks good to me

@galpeter @LaszloLango @zherczeg Would you please review this?

LGTM


Make sure all the datetime objects we are working with are in UTC

Currently, isotime.parse returns datetime object with a timezone which is defined in the string which is parsed.
This means that if a users post ISO8601 timestamp with a non UTC timezone to the API things will go bad since we never convert this to UTC before we store in the database (among other things, this also breaks ComplexDateTimeField).
With this pull request, all the datetime objects which are returned by isotime.parse are now converted to UTC by default. In addition to that, I also included some other timezone related fixes and improvements.
P.S. I noted this as a blocker for v0.11.2 in https://github.com/StackStorm/st2/commit/5df21b168c34bdf82bf66cb3ce08e27a474eb057#commitcomment-11651986, but my comment was either missed or ignored :P

Pushed st2common.util.date refactor changes in 3e7c6b586d6c7fe71fa82aa42abcf4cb58faf9fe.

As noted in the PR description, this should also go into v0.11.2, but I didn't so I think we should spin up v0.11.3 with those changes.
What do others think?

This is great! Thanks for doing this.

What's the general guideline on when to use isotime utils vs. date utils?

I think date_utils should house things that deal with datetime objects. isotime should contain anything to do with generation of iso timstamp strings or parsing one.

Yeah, date module should host general date related utility functions and isotime one should host ISO8601 time related utility functions.
Now both modules have parse function - the one in isotime module only parses timestamps in ISO8601 format, but the one in date module parsed many different date string formats.
On a related note - I also updated date related rule comparison operators to use date.parse instead of isotime.parse - now users can use those operators on many string date formats and not just ISO8601 ones.


Dear ImGui:  v1.88 released:   https://github.com/ocornut/imgui/releases/tag/v1.88

v1.88 Latest
@ocornut ocornut released this Jun 21, 2022
1.88: Summer maintainance release!

No time.

???


add documentation for folder support

adding some documentation around folder support, explanations etc.

@pb82 Mind taking a look when you get the chance? regarding the recent update to extended folder support

thanks @HubertStefanski :+1:


Is there an open-ended load testing tool for keydb?

Generally, we use memtier_benchmark to test keydb. However, memtier_benchmark is a close-ended tool. It only lanchs a new request when the completion of a previous request. That is not suitable for my test scenario. I want a open-ended load testing tool. I don't find such an open-ended testing tools, is there an open-ended load testing tool for keydb?

We do not have a tool for asynchronous benchmarking, however there are asynchronous redis client libraries you can use to test with KeyDB such as boost_redis.


Add EMIT_INTERVAL parameter

Hi @fmartinou,
First of all, thank you for that component. I'm new to HomeAssistant and it works like a charm.
I forked your repo and created that PR because I'd like to configure the interval between 2 MQTT emissions (Update of my Teleinfo sensors every 5 or 10 seconds seems sufficient in my own opinion).
Unfortunately, I don't know how to build a Docker image locally and test it before pushing my new code.
Could you please help me to achieve that ?
Thank's.

Hi @gtricot ,
Thank you very much for your contribution!
To locally build  the Docker image, you need to:

Install Docker on your machine
Build the image docker build -t teleinfo-mqtt-local . (run the command from the root folder of the project)
Check the image docker run ... teleinfo-mqtt-local

Please notice that you don't need to build the image to be able to test the app.
(you can just run the node.js app with npm start)
If you can just test your changes by running the node app itself, it will be ok.
I'll review your changes and will add comments if so.

FYI, the CI is managed by Travis: https://travis-ci.org/github/fmartinou/teleinfo-mqtt/builds/763571285
One unit test is failing; may you adjust it?
Thanks!

Please forget my comment about failed unit tests; I didn't look at the logs in details.
Actually, the UT are ok :)
The build fails for another reason (an issue with docker credentials); there is no relation with your changes.

After a little changed (EMIT_INTERVAL in seconds), I tested my changes running the node app locally and it works as expected :

EMIT_INTERVAL=0 : All frames are emitted to MQTT topic (if different)
EMIT_INTERVAL=10 : Frames are emitted to MQTT topic every 10 seconds (only if different too)

Could you please review my changes ?

I just published the release 3.1.0 wich includes your changes.
Thank you for your contribution!


[Feature]: sugar-cli 2.1.1 it does not perform the step sugar deploy

Issue description
When creating a Candy Machine with sugar-cli 2.1.1 it does not perform the step sugar deploy, Error running command (re-run needed): Missing collection item in cache
Relevant log output
Error running command (re-run needed): Missing collection item in cache

Priority this issue should have
High (immediate attention needed)

Do you have the collection.json and collection.png files in your assets folder?

Yes, I have the collection.json and collection.png files in your assets folder

Thanks for the excellent product.

@luisrovirac having a collection was optional on Candy Machine V2 (Sugar <= 1.2) but is mandatory on Candy Machine V3 (Sugar 2.0+).


Update dependencies and configuration

Update dependencies
Add eslint-plugin-testing-library and eslint-plugin-import to configuration
Remove AWS invalidation

@scytacki consider eslint changes, removal of AWS invalidation, and also the question of whether we should consider converting this to use the new deploy method rather than the s3_website gem. This is in preparation for starting CODAP v3 development, which may be a consideration as well.

@scytacki I've combined what I think are the relevant parts of #17, #38, #51 as well as experience from CLUE and other projects. Upon approval/merging of this PR I believe the aforementioned PRs can be closed as well as #56.

Also, this is actually a separate PR, but shouldn't we move here to a new deployment method? It's been already used in real projects.

There's a separate PR for that (#37). It probably would be a good idea for this project to adopt the new deploy approach but it's less clear to me whether that's the right choice for the codap-v3 project given how little it's currently be used thus far. Part of the reason for pinging you and @scytacki for review is to get some opinion on that point. On the one hand, Bill isn't terribly familiar with the old way of doing things so switching to the new way isn't much of a hurdle. On the other hand, I don't want to introduce something so new that we're going to run into issues with it that I don't know how to solve. 🤷


Add recipe export test case.

add case to test recipe export on recipes, view recipe, and edit recipe page.

 [QE][UI][Automation] Add test case for (3) Manifest file - include link in UI

@atodorov, @bcl already approved my PR #104 which fixed docker build error.
For the eslint issue in my code is all about max-len, this issue got fixed in PR #101. I updated .eslintrc in end-to-end folder with "max-len": ["error", 130] added (100 by default). The 130 max-len comes from package.json setting in root folder. If the new 130 applied, the eslint issue in this PR will not be an issue any more.


Update to newer SDK

Replaces https://github.com/aspnet/AspNetCore/pull/14168 because I was having some troubles with git...
Part of aspnet/AspNetCore-Internal#3016
Update to a newer 5.0 SDK which includes the netcoreapp5.0 TFM.
CC @dougbu @JunTaoLuo

Something like https://github.com/aspnet/AspNetCore/blob/master/src/Analyzers/shared/FeatureDetection/Microsoft.AspNetCore.Analyzers.FeatureDetection.Sources.csproj#L25-L28? Note that I added a placeholder file: lib{TFM}_._

@dougbu @JunTaoLuo how can I tell where the placeholder file(s) would be needed? All builds were successful here, the only failures were in flaky tests (plus the template tests timed out)

Hmm come to think of it, the fixes I made in 3.1 should already be merged to master so there shouldn't be a need to make them here

014696\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(232,5): error MSB4018: The "ResolveFrameworkReferences" task failed unexpectedly. [F:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.webapicsharp.gwvd0zs5p2n\AspNet.webapicsharp.gwvd0zs5p2n.csproj]\r\nF:\workspace\_work\1\s\.dotnet\sdk\5.0.100-alpha1-014696\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(232,5): error MSB4018: System.ArgumentException: An item with the same key has already been added. Key: Microsoft.AspNetCore.App

@JunTaoLuo @dougbu I think we've seen this one before in the template tests - do either of you remember what the workaround was? CC also @rynowak @pranavkm @BrennanConroy

That means the workaround
<KnownAppHostPack
      Include="@(KnownAppHostPack->WithMetadataValue('TargetFramework', 'netcoreapp3.0'))"
      TargetFramework="$(DefaultNetCoreTargetFramework)"
      Condition="@(KnownAppHostPack->Count()) != '0' AND !(@(KnownAppHostPack->AnyHaveMetadataValue('TargetFramework', '$(DefaultNetCoreTargetFramework)')))"
      />

was probably applied twice somehow.

From the binlog, looks like we get a duplicate entry for Microsoft.AspNetCore.App in ResolvedTargetingPacks before calling ResolveFrameworkReferences - https://github.com/dotnet/sdk/blob/master/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets#L156-L232. Looking into why now.

Looks like I need to apply the workaround from Workarounds.targets to templateTests.props.in, as well as the updates to KnownFrameworkReference from Dir.Build.targets

F:\workspace_work\1\s.packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19462.4\tools\Tools.proj : error : Version 5.0.100-alpha1-014696 of the .NET Core SDK requires at least version 16.3.0 of MSBuild. The current available version of MSBuild is 16.2.37902.0. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.

Looks like the same thing is happening here - https://github.com/aspnet/AspNetCore-Tooling/pull/1173#issuecomment-535242760. CC @NTaylorMullen

All build failures are the MSBuild thing. We're down to 25 test template failures:

Project new react failed to publish.\r\nProcess exited with code 1\nStdErr: \nStdOut: Microsoft (R) Build Engine version 16.3.0-preview-19456-02+ee8294b55 for .NET Core\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\nF:\workspace\_work\1\s\.dotnet\sdk\5.0.100-alpha1-014696\MSBuild.dll -maxcpucount -property:Configuration=Release -restore -target:Publish -verbosity:m /bl .\AspNet.reactnoauth.cfpruki0w22.csproj\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.SpaServices.Extensions with version (>= 5.0.0-ci)\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 2339 version(s) in aspnetcore-dev [ Nearest version: 3.0.0-preview6-19253-01 ]\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 138 version(s) in dotnet-core [ Nearest version: 5.0.0-alpha1.19475.17 ]\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 24 version(s) in nuget.org [ Nearest version: 3.0.0 ]\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 0 version(s) in aspnetcore-tools\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 0 version(s) in roslyn-tools\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 0 version(s) in roslyn\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 0 version(s) in aspnet-aspnetcore-tooling\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 0 version(s) in aspnet-blazor\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 0 version(s) in aspnet-entityframeworkcore\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 0 version(s) in aspnet-extensions\r\nF:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj : error NU1102: - Found 0 version(s) in grpc-nuget-dev\r\n Restore failed in 508.13 ms for F:\workspace\_work\1\s\src\ProjectTemplates\test\bin\Release\netcoreapp5.0\TestTemplates\AspNet.reactnoauth.cfpruki0w22\AspNet.reactnoauth.cfpruki0w22.csproj.\r\n\r\nExpected: True\r\nActual: False

Looks like the failing template tests aren't restoring from the local build like they should be. Will dig further after tactics

All failures are the MSBuild 16.3 thing. Seems to be happening much more consistently now - I'm optimistic that this means machines are offline getting an update rolled out 🤞

This should be good to go now, @JunTaoLuo @dougbu any concerns before I merge?

No concerns other than my question. At least file an issue to revisit the *.in file used in template tests.


What is the difference between callback and callbackParameter options

hey,
could you brief on the callback and callbackParameter option.
do callback relates to jsonpCallback in Jquery ajax jsonp request?

https://github.com/jaubourg/jquery-jsonp/blob/master/doc/API.md#callback---string-_jqjsp


Add SubHugr view

I've been trying to implement the HugrView and HugrInternals traits but it's a nightmare in two ways:

getting the iterator types right,
exposing a PortView that represents the underlying portgraph -- probably need to create yet another type in portgraph that combines Regions and Subgraphs.

For now, I've added a todo flag and will leave this for later.

Hmmm. Region is of course a bit of a misnomer - really, FlatRegion should be something like SiblingGraph and Region something like Descendants. Then you could call this region, or similar....
But if we want a general term, how about Area?

really, FlatRegion should be something like SiblingGraph

Or maybe FlatRegionView should be ChildrenView? (Or FamilyView :-) :-) )

I've implemented HugrView here: https://github.com/CQCL-DEV/hugr/pull/355

Hi @acl-cqc,
I've made a few changes that build on top of #347, #323 and @doug-q 's #355, I think the PR is now in much better shape:

SugHugr was renamed to SiblingSubgraph and its semantics were changed to only include the subgraph within the sibling graph and not its further descendants. This is all that I need and will make the HugrView impl much simpler.
HugrView and the hierarchy-related views were moved into a common hugr/views folder, along with the new sibling subgraph code.

Regarding change 2: I find the file organisation much cleaner this way, apologies to @ss2165 for changing this twice in a row... I hope you will agree with me, but if you dislike the additional nesting or anything else, happy to revert the change of course!

@aborgna-q and @acl-cqc thank you so much for your precious comments! I should have addressed all of them now!

I still need to fix the changes from updates to HUGR

Hey @acl-cqc sorry to bother you again. For two of your three comments I'd need some clarification, I'm not sure I've resolved your issues.

@acl-cqc Do you think we are ready to merge? As far as I can see there is only this one question that is still open-ish
https://github.com/CQCL-DEV/hugr/pull/336#discussion_r1300176824

@acl-cqc Do you think we are ready to merge? As far as I can see there is only this one question that is still open-ish
#336 (comment)

Happy to drop that one, sorry for barking up the wrong tree. I've posted 4 more comments above, 3 of which I think are pretty small/straightforward. That leaves the state edges - it's possible that the best thing to do there is to leave that as a TODO, I'm not sure.

(i.e. relating to #432)

Not at all! All your remarks and questions were very pertinent @acl-cqc. Thank you so much! This review process was very necessary and more than worth it! If anything I'm sorry it took so much of your time!
For the time being, I suggest leaving the order edges question open and merging this in. I've added a TODO for this.
We will come back once we have a clear answer, or @aborgna-q and me figure out that we need order edges after all 😛

For the time being, I suggest leaving the order edges question open and merging this in. I've added a TODO for this.

What I'd suggest for the time being is to panic if we find any order edges. I think there are two cases:

Edges in/out of the subgraph. I think these would have to be part of the boundary (if you created a SiblingSubgraph from just the value edges in/out, you'd end up getting more of the graph than you intended, and probably fail the convexity/well-formedness check, right). But I think at the moment if such edges were part of the boundary, you'd filter them out, or else look for corresponding edges in the replacement?? So maybe panic rather than filter out.
Edges in/out of the replacement (i.e. from Input node to the rest, or to the Output node). You filter these out, but again, perhaps best to panic.

Other than that, I think all good, I'll have a final check through in the morning!


Time on Raspberry pi vs log file

Greetings,
I had to redo my sd card dur to user error.  so upon redo I make sure my time was set correctly.
as you can see in the screen scrape below it is set correctly

on the web admin portal the time is set correctly.

but in the log file the time is off by 5 hours

running version 0.8.1

any idea what I may have missed in the setup?
Mike

I reboot my the pi and now the date is correct.


Idle Happening Too Fast on Focused Window

Description
This technically has two issues:

The idle is happening even when the window is focused. During a call with Me, Paul, and Jess, I had the Modeling App open and would stop to talk with the guests. While I was talking, the modeling app would go in idle. If the Modeling App is focused, idle shouldn't happen at all.
Idling is happens too quick. Sometimes when modeling I have to reference something else (say like a spreadsheet with tolerance numbers) and flip back. The model is gone within seconds of switching to a new window. Can we increase that time a bit?

Version
v0.24.1

This might have been resolved by https://github.com/KittyCAD/modeling-app/pull/3032? maybe @lf94 ?

eh guess we need to further increase from 2min to like 20 for mouse  idle


mutify.app and muteme Site down

I get an error trying to access the mutify.app or the mnuteme website. Is the site down?

@vijitjainscvid I voluntarily maintain this repository here: https://github.com/ImBIOS/mute-me

Thanks for your reply. Can you help me with instructions on how to install
and set it up?
On Sat, Mar 25, 2023 at 8:54 PM Imamuzzaki Abu Salam <
@.***> wrote:

@vijitjainscvid https://github.com/vijitjainscvid I voluntarily
maintain this repository here: https://github.com/ImBIOS/mute-me
—
Reply to this email directly, view it on GitHub
https://github.com/pixel-point/mute-me/issues/50#issuecomment-1483960423,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVUWCHRPEL3TH3ACI6SYMVTW56HS7ANCNFSM6AAAAAAVK7ELKM
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
[image: logo-vidyard-icon.png] https://www.vidyard.com
Vijit Jain
Senior Solutions Consultant
Vidyard
p:<PHONE_NUMBER>
e: @.***


error when using inside tests with jest

hi! thanks for the library. it works well, however i get errors whenever the component using it is rendered in tests. i believe this library is using ES modules, which are not supported by jest by default.
jest does have experimental support for ESM, but it doesn't work in my project.
is it an option to publish the transpiled files in your library?
full error:
  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/{my-project-path}/node_modules/use-long-press/dist/index.module.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import{useRef as n,useCallback as t,useEffect as e,useMemo as r}from"react";function o(){return(o=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n}).apply(this,arguments)}var u,c;function i(n){var t=n.nativeEvent;return window.TouchEvent?t instanceof TouchEvent:"touches"in t}function a(n){return n.nativeEvent instanceof MouseEvent}function v(n){return i(n)?{x:n.touches[0].pageX,y:n.touches[0].pageY}:a(n)?{x:n.pageX,y:n.pageY}:null}function f(f,l){var s=void 0===l?{}:l,E=s.threshold,M=void 0===E?400:E,h=s.captureEvent,T=void 0!==h&&h,d=s.detect,p=void 0===d?c.BOTH:d,O=s.cancelOnMovement,y=void 0!==O&&O,C=s.filterEvents,m=s.onStart,x=s.onMove,_=s.onFinish,b=s.onCancel,U=n(!1),g=n(!1),B=n(),N=n(f),Y=n(null),D=t(function(n){return function(t){if(!g.current&&(a(t)||i(t))&&(void 0===C||C(t))){Y.current=v(t),T&&t.persist();var e=void 0===n?{}:{context:n};null==m||m(t,e),g.current=!0,B.current=setTimeout(function(){N.current&&(N.current(t,e),U.current=!0)},M)}}},[T,C,m,M]),L=t(function(n,t){return function(e){if(a(e)||i(e)){Y.current=null,T&&e.persist();var r=void 0===n?{}:{context:n};U.current?null==_||_(e,r):g.current&&(null==b||b(e,o({},r,{reason:null!=t?t:u.CANCELED_BY_TIMEOUT}))),U.current=!1,g.current=!1,void 0!==B.current&&clearTimeout(B.current)}}},[T,_,b]),w=t(function(n){return function(t){if(null==x||x(t,{context:n}),y&&Y.current){var e=v(t);if(e){var r=!0===y?25:y,o={x:Math.abs(e.x-Y.current.x),y:Math.abs(e.y-Y.current.y)};(o.x>r||o.y>r)&&L(n,u.CANCELED_BY_MOVEMENT)(t)}}}},[L,y,x]);return e(function(){return function(){void 0!==B.current&&clearTimeout(B.current)}},[]),e(function(){N.current=f},[f]),r(function(){return function(n){var t={onMouseDown:D(n),onMouseMove:w(n),onMouseUp:L(n),onMouseLeave:L(n)},e={onTouchStart:D(n),onTouchMove:w(n),onTouchEnd:L(n)};return null===f?{}:p===c.MOUSE?t:p===c.TOUCH?e:o({},t,e)}},[f,L,p,w,D])}!function(n){n.CANCELED_BY_MOVEMENT="canceled-by-movement",n.CANCELED_BY_TIMEOUT="canceled-by-timeout"}(u||(u={})),function(n){n.BOTH="both",n.MOUSE="mouse",n.TOUCH="touch"}(c||(c={}));export{c as LongPressDetectEvents,u as LongPressEventReason,f as useLongPress};
                                                                                ^^^^^^

    SyntaxError: Cannot use import statement outside a module

Hey, sorry for the delayed response. Have you tried importing from use-long-press/dist/index.umd.js or use-long-press/dist/index.module.js?

I'm facing the same problem. And just like in original report import ... from 'use-long-press'; actually resolves into use-long-press/dist/index.module.js, but there's a syntax error.
  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /app/blahblahblah/node_modules/use-long-press/dist/index.module.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import{useRef as n,useCallback as t,useEffect as e,useMemo as r}from"react";function o(){return(o=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n}).apply(this,arguments)}var u,c;function i(n){var t=n.nativeEvent;return window.TouchEvent?t instanceof TouchEvent:"touches"in t}function a(n){return n.nativeEvent instanceof MouseEvent}function v(n){return i(n)?{x:n.touches[0].pageX,y:n.touches[0].pageY}:a(n)?{x:n.pageX,y:n.pageY}:null}function f(f,l){var s=void 0===l?{}:l,E=s.threshold,M=void 0===E?400:E,h=s.captureEvent,T=void 0!==h&&h,d=s.detect,p=void 0===d?c.BOTH:d,O=s.cancelOnMovement,y=void 0!==O&&O,C=s.filterEvents,m=s.onStart,x=s.onMove,_=s.onFinish,b=s.onCancel,U=n(!1),g=n(!1),B=n(),N=n(f),Y=n(null),D=t(function(n){return function(t){if(!g.current&&(a(t)||i(t))&&(void 0===C||C(t))){Y.current=v(t),T&&t.persist();var e=void 0===n?{}:{context:n};null==m||m(t,e),g.current=!0,B.current=setTimeout(function(){N.current&&(N.current(t,e),U.current=!0)},M)}}},[T,C,m,M]),L=t(function(n,t){return function(e){if(a(e)||i(e)){Y.current=null,T&&e.persist();var r=void 0===n?{}:{context:n};U.current?null==_||_(e,r):g.current&&(null==b||b(e,o({},r,{reason:null!=t?t:u.CANCELED_BY_TIMEOUT}))),U.current=!1,g.current=!1,void 0!==B.current&&clearTimeout(B.current)}}},[T,_,b]),w=t(function(n){return function(t){if(null==x||x(t,{context:n}),y&&Y.current){var e=v(t);if(e){var r=!0===y?25:y,o={x:Math.abs(e.x-Y.current.x),y:Math.abs(e.y-Y.current.y)};(o.x>r||o.y>r)&&L(n,u.CANCELED_BY_MOVEMENT)(t)}}}},[L,y,x]);return e(function(){return function(){void 0!==B.current&&clearTimeout(B.current)}},[]),e(function(){N.current=f},[f]),r(function(){return function(n){var t={onMouseDown:D(n),onMouseMove:w(n),onMouseUp:L(n),onMouseLeave:L(n)},e={onTouchStart:D(n),onTouchMove:w(n),onTouchEnd:L(n)};return null===f?{}:p===c.MOUSE?t:p===c.TOUCH?e:o({},t,e)}},[f,L,p,w,D])}!function(n){n.CANCELED_BY_MOVEMENT="canceled-by-movement",n.CANCELED_BY_TIMEOUT="canceled-by-timeout"}(u||(u={})),function(n){n.BOTH="both",n.MOUSE="mouse",n.TOUCH="touch"}(c||(c={}));export{c as LongPressDetectEvents,u as LongPressEventReason,f as useLongPress};
                                                                                ^^^^^^

    SyntaxError: Cannot use import statement outside a module

If I manually adjust import to use-long-press/dist/index.js or use-long-press/dist/index.umd.js it's just a not found in both jest and regular webpack build
  ● Test suite failed to run

    Cannot find module 'use-long-press/dist/index.js' from 'src/blah/blah/blah.js'

JFY:
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.

This recommendation from jest output actually helps. I've updated my webpack config to the following and now it works
transformIgnorePatterns: [ '/node_modules/(?!use-long-press)' ]

(as far as I understand this means now all the code from use-long-press package just goes trough the same pipeline as my domestic code e.g. typescript, babel, etc...)

Hey @ascrazy @szamanr could you try installing use-long-press@alpha (alpha v3) and see if that solves this problem? Migration guide to this version can be found here: https://github.com/minwork/react/tree/develop/packages/use-long-press#v2-to-v3

Hi @minwork,
<EMAIL_ADDRESS>seem to be working fine for me without excluding use-long-press from transformIgnorePatterns as I did for relevant release. Thanks.

That's great, so it will be permanently resolved when v3 goes live.

Version 3 which addresses this issue is now available at use-long-press@latest


upgrade map

Give more information for the example map in discord (or create a new map)
preferably including room names, sizes, and a visual reference.

Consider that the map will be made from square tiles


BT kettle on/off

Hello!
How to use CMD4 with https://github.com/Andrey-m/homebridge-redmond-sh ?
Thanks in advance.

The documentation has a section on how to convert from CmdSwitch2.


Update package.json - require node 18

As you do not test node 16 any longer, this adapter shoiuld require node 18 now.
Please check PR and merge

Thank you! I missed this.

@mcm1957 by the way, GH actions build fails because of nodejs 16.x with<EMAIL_ADDRESS>https://github.com/copystring/ioBroker.roborock/actions/runs/8528715797/job/23362972803#step:2:605
This is why I removed 16.x