Unable to Connect

Homebridge Logs:
[18/06/2021, 02:34:43] [HiSenseTV] An error occurred while fetching inputs: TypeError: Cannot read property 'join' of null
Terminal Logs:
python3.8 /usr/local/lib/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv.py <IP_ADDRESS> --ifname wlan0 --get sources
[2021-06-18 02:31:25,851] [INFO    ] Unverified SSL context created.
[
    {
        "displayname": "TV",
        "hotel_mode": "0",
        "is_lock": "false",
        "is_signal": "1",
        "sourceid": "1",
        "sourcename": "TV"
    },
    {
        "displayname": "Cable",
        "hotel_mode": "0",
        "is_lock": "false",
        "is_signal": "1",
        "sourceid": "2",
        "sourcename": "HDMI 1"
    },
    {
        "displayname": "Game console",
        "hotel_mode": "0",
        "is_lock": "false",
        "is_signal": "0",
        "sourceid": "3",
        "sourcename": "HDMI 2"
    },
    {
        "displayname": "AV",
        "hotel_mode": "0",
        "is_lock": "false",
        "is_signal": "0",
        "sourceid": "4",
        "sourcename": "AV"
    }
]
pi@raspberrypi:~ $ python3.8 /usr/local/lib/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv.py <IP_ADDRESS> --ifname wlan0 --get state
[2021-06-18 02:31:45,621] [INFO    ] Unverified SSL context created.
Traceback (most recent call last):
  File "/usr/local/lib/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/__init__.py", line 208, in _wait_for_response
    return self._queue[topic].get(block=True, timeout=self.timeout)
  File "/usr/local/lib/python3.8/queue.py", line 178, in get
    raise Empty
_queue.Empty

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv.py", line 6, in <module>
    __main__.main()
  File "/usr/local/lib/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/__main__.py", line 141, in main
    output = func()
  File "/usr/local/lib/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/__init__.py", line 56, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/__init__.py", line 661, in get_state
    return self._wait_for_response(topic=self._BROADCAST_TOPIC)
  File "/usr/local/lib/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/__init__.py", line 210, in _wait_for_response
    raise HisenseTvTimeoutError(
hisensetv.HisenseTvTimeoutError: failed to recieve a response in 10.000s

Hey @prakharsingh ! Thanks for reporting this.
Have you already tried messing around with the SSL options? What I see in the logs is that you are not using a SSL context, but some TVs require it.

Hey @MrAsterisco Thanks for the suggestion. Adding SSL certs helped (though they didn't worked when I tried earlier so I thought my TV didn't needed any certs)
I'd like to mention for anyone trying this plugin that python3.8 installation should be checked on the homebridge user as well. I ran into this problem where the pi user had installed ptyhon3.8 in /usr/local/lib. Post that I had to install paho-mqtt on both the users and finally everything worked as expected.

Thanks for clarifying! Happy that it's working now.


Add NotificationRequestConverter and NotificationMessageArgumentResolver to allow reading SNS messages on SQS

:loudspeaker: Type of change

[ ] Bugfix
[ ] New feature
[x] Enhancement
[ ] Refactoring

:scroll: Description

#887
:bulb: Motivation and Context

It allows for reading an SNS Message on an SQS Queue by using @NotficationMessage
:green_heart: How did you test it?
Manually(will try to add tests when I have time)
:pencil: Checklist

[ ] I reviewed submitted code
[ ] I added tests to verify changes
[ ] I updated reference documentation to reflect the change
[x] All tests passing
[x] No breaking changes

:crystal_ball: Next steps
@tomazfernandes This is more of a draft for now, this works locally for me but was unsure where these files truly belong. I have put then in the sns project for now, since they use @NotificationMessage which lives there, and didn't want SQS project to have a dependency on the SNS one.
Let me know if you agree, or we should create a new annotation to be used.
Also in the previous implementation of NotificationRequestConverter it added MessageAttributes to the message. For my use-case I was able to remove that completely and things worked fine. Let me know if that is actually needed, but I did see SqsHeaderMapper has a lot of the same logic for what was being done for MessageAttributes

Hi @msosa, thanks for the PR.
I'm leaning towards having a separate annotation, since the modules are now separated, and I believe it would make sense for a project to consume an SNS message from SQS but not need anything from the SNS module itself.
We'd probably want to have a different name for the annotation so that it's not confusing for the users.
@MatejNedic, do you have any thoughts on this? Anything I might be missing regarding the integration between the modules?
Thanks

Makes sense, I have moved all the code into SQS and created a new annotation called SnsNotificationMessage(open to alternative names).

Hi,
I just saw your merge request. I am currently working around this missing feature, since we want to update to spring boot 3. And I wonder if the MessageAttributes from the SNS notification don't need to be mapped into MessageHeader as well?
Best regards,
Johannes

Hello @msosa ,
Do you have plans to further work on this MR?
I have implemented something internally very similarly and would love to drop this code in favor of the opensource implementation.
The main difference was related to the MessageConverter. In our case we do use CloudEvents and the current MessageConverter is not able to handle well subtypes likes CloudEvent. It is a super tiny change but that enables a lot. I would be more than happy to create a mr to your branch if you wish.

HI @gustavomonarin,
Yes I do plan on working on this MR, was just waiting for review(I just realized I may not have requested said review)
But yeah am open to checking out and change you mentioned and bringing into this MR

Hey @msosa, really sorry for the delay - I thought I was the one waiting for your reply. Left a few comments on the PR, please let me know if they make sense to you.
@gustavomonarin thanks for showing up. Can you share a bit more about what's your proposed change?
Thanks.

current MessageConverter is not able to handle well subtypes likes CloudEvent

@gustavomonarin, can you elaborate on this please?

Hi @msosa and @tomazfernandes  i mad a small change in the test to cover the case i mentioned.
Also provided two implementation solutions, a small one in the spring way of compatibility and a second one with a bit more ofbreaking change on the bean post processor.
The PR has not much deatils in the description but the two commit messages goes  in the details, so i would suggest to review the commits individually.

Hi @msosa and @tomazfernandes i mad a small change in the test to cover the case i mentioned.
Also provided two implementation solutions, a small one in the spring way of compatibility and a second one with a bit more ofbreaking change on the bean post processor.
The PR has not much deatils in the description but the two commit messages goes in the details, so i would suggest to review the commits individually.

@gustavomonarin I don't see your PR with these commits, where can I find it?

@msosa we're pretty much there!
The only thing missing is the documentation, let me know if you need any help with that.
Thanks!

Hi @msosa and @tomazfernandes i mad a small change in the test to cover the case i mentioned.
Also provided two implementation solutions, a small one in the spring way of compatibility and a second one with a bit more ofbreaking change on the bean post processor.
The PR has not much deatils in the description but the two commit messages goes in the details, so i would suggest to review the commits individually.

@gustavomonarin I don't see your PR with these commits, where can I find it?

It is on the @msosa original repo, as is based on his changes.

@tomazfernandes Awesome, appreciate all the feedback!
I gave the documentation a try, let me know what you think.

@gustavomonarin, I looked at your suggestion to switch from implementing the MessageConverter  interface to implementing the SmartMessageConverter interface which allows type hints and it makes sense.
I prefer the solution in this PR as it allows more flexibility for the user and is not a breaking change.
Now, not sure how to coordinate this - we do have an eminent version release coming up and it'd be great to have this feature in it.
@msosa, how would you feel about incorporating @gustavomonarin's changes into your PR?

@tomazfernandes of course, I have merged your preferred solution of @gustavomonarin into this PR.
Also I have updated the the documentation section to talk about SNS Messages

Removed the Note @tomazfernandes, let me know if there's anything else

@tomazfernandes Done! I just used @gustavomonarin username as I wasn't sure if exact first/last name.

Looks great for Single Message processing. What is your recommendation to receive a List of SNSNotificationMessages for batch processing?

We are also looking for a way to receive a List of SnsNotificationMessages and struggling with this. Any suggestions?


TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'extra_headers'

When run the examples:
from characterai import aiocai
import asyncio
async def main():
char = ""
client = aiocai.Client("")
me = await client.get_me()
async with await client.connect() as chat:
    new, answer = await chat.new_chat(
        char, me.id
    )

    print(f'{answer.name}: {answer.text}')

    while True:
        text = input('YOU: ')

        message = await chat.send_message(
            char, new.chat_id, text
        )

        print(f'{message.name}: {message.text}')

asyncio.run(main())
I meet the following error:
Traceback (most recent call last):
File "/home/ubuntu/CBT3.0/character.ai/character_ai.py", line 49, in
asyncio.run(main())
File "/home/ubuntu/anaconda3/envs/characterai/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/ubuntu/anaconda3/envs/characterai/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/ubuntu/CBT3.0/character.ai/character_ai.py", line 32, in main
async with await client.connect() as chat:
File "/home/ubuntu/anaconda3/envs/characterai/lib/python3.10/site-packages/characterai/aiocai/methods/chat2.py", line 440, in call
return await self.aenter(self.token)
File "/home/ubuntu/anaconda3/envs/characterai/lib/python3.10/site-packages/characterai/aiocai/methods/chat2.py", line 447, in aenter
self.ws = await websockets.connect(
File "/home/ubuntu/anaconda3/envs/characterai/lib/python3.10/site-packages/websockets/asyncio/client.py", line 441, in await_impl
self.connection = await self.create_connection()
File "/home/ubuntu/anaconda3/envs/characterai/lib/python3.10/site-packages/websockets/asyncio/client.py", line 367, in create_connection
_, connection = await loop.create_connection(factory, **kwargs)
TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'extra_headers'
I can't figure it out.Could you please help me with it?
My packages are as follows:
characterai:1.0.1
pydantic:2.7.1
websockets:14.0

Have the same problem. 😕

installing websockets==11.0.3 solved this issue.

how to fix?

how to fix?

installing websockets==11.0.3 solved this issue.

how to fix?

installing websockets==11.0.3 solved this issue.

thank you it wworks


CompositeMultiValueColumn

CompositeNumberColumn is a composite for number columns and itself a number column.
a similar thing for multi value columns would be useful.
e.g. show the "summarized" boxplot of all children

Something like this:

Basics of a box plot, the darker areas show the possible positions of the mean for B and C.
Or this:

The black violin plots are the distribution of only that variable, the red ones show cumulative uncertainty.


License?

What license is this under?

Very good point. I have avoided this topic for now because honestly, I don't know how to choose one. Do you have any suggestions?

I like MIT


Anchor tags overriding font sizes

This was the fix from our Experience Committee project.
Basically, anchor tags need to inherit their font size, rather than explicit. Not sure what the exact fix looks like or where, but this is the issue to solve.
.content-area {
    @include element-tag-typography();

    a {
        font-size: inherit; // #MDLfix
    }
}

Closed by #79


[INSTANT KARMA] Remove include-jira-hostname-to-dedup-key FF

🤦

@thombergs I have disabled the FF and it was OFF for all this time. Metrics looks OK, I think we can clean this crap now :)


The program did not finish running an epoch, a path error occurred.

The program did not finish running an epoch, a path error occurred.I checked the dataset and there was no problem.I made the data set smaller, and it will give an error when executing 49/50, and this problem will also occur when executing 79/80.Thanks！
@GuangmingZhu

@emily19941102@GuangmingZhu
I also have the similar problem,Can you tell me what shoud I do?
The Error is:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "./networks/datagen.py", line 24, in apply_fn
results[i] = fn(data, **kwargs)
File "./networks/inputs.py", line 62, in prepare_iso_rgb_data
assert os.path.exists(image_file)
AssertionError
1240/2242 [===============>..............] - ETA: 3761s - loss: 5.9959 - acc: 0.0211Traceback (most recent call last):
File "training_res3d_clstm_mobilenet.py", line 166, in
initial_epoch=init_epoch,
File "/home/thf/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/keras/python/keras/engine/training.py", line 1880, in fit_generator
x, y, sample_weight=sample_weight, class_weight=class_weight)
File "/home/thf/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/keras/python/keras/engine/training.py", line 1624, in train_on_batch
check_batch_axis=True)
File "/home/thf/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/keras/python/keras/engine/training.py", line 1300, in _standardize_user_data
exception_prefix='model input')
File "/home/thf/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/keras/python/keras/engine/training.py", line 138, in _standardize_input_data
' dimensions, but got array with shape ' + str(array.shape))
ValueError: Error when checking model input: expected input_1 to have 5 dimensions, but got array with shape (16, 1)

@peach2wanzi You can print the shape of the input before feeding it into the Input Layer. I guess that something may be wrong when you read images for the input of this iteration, so that this iteration does not has the right input. Before training, you can double check the existance of all images using a shell script or a python program.


Websites Under 250KB

https://www.personalinjuryattorneys.me
https://www.arizonabankruptcylawyer.org
https://www.epersonalinjurylawyers.com
https://perlmancohen.com
https://perfectlighthousescores.com

Added the last URL only. The first three pages are basically the same page three times, and we are not an advertisement platform. The second last page doesn't work for me.

Thank you for your consideration. The first three are websites that I build for attorneys that hate them

I think, they are good websites in general. Wonder why they don't like them

They are attorneys lol. There is nothing good enough.
On Wed, Feb 1, 2023 at 12:57 AM Norman @.***> wrote:

I think, they are good websites in general. Wonder why they don't like them
—
Reply to this email directly, view it on GitHub
https://github.com/nkoehring/250kb-club/issues/255#issuecomment-1411688575,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASW6IED3UHWHHFHCSGMAXOLWVIQPBANCNFSM55I63QNA
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Scott Reilly
Reilly Media
(310) 363-5434
@.***

are there any 100/100 on yellow lab test that are not just text?
On Wed, Feb 1, 2023 at 12:59 AM Scott Reilly @.***> wrote:

They are attorneys lol. There is nothing good enough.
On Wed, Feb 1, 2023 at 12:57 AM Norman @.***> wrote:

I think, they are good websites in general. Wonder why they don't like
them
—
Reply to this email directly, view it on GitHub
https://github.com/nkoehring/250kb-club/issues/255#issuecomment-1411688575,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASW6IED3UHWHHFHCSGMAXOLWVIQPBANCNFSM55I63QNA
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Scott Reilly
Reilly Media
(310) 363-5434
@.***

--
Scott Reilly
Reilly Media
(310) 363-5434
@.***

Yes, mine for example: https://yellowlab.tools/result/ghtoldowb4


Challenge statements are incorrectly rounded

For example, challenge 12 states "Challenge #12: Transport 80 people and let noone wait more than 17 seconds" however the failure condition is anyone waiting more than 16.5 seconds.

https://github.com/magwo/elevatorsaga/commit/85ee1e2f13c7052ad31e5b521256029954134ada


Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
Installer hash mismatch.
Brief description of your issue
Installer hash does not match
Steps to reproduce
winget upgrade --id Zoom.Zoom
Actual behavior
Installer hash does not match error
Expected behavior
Successful upgrade
Environment
Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.3324
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.2201.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs
No response

Removing Automatic Url from <IP_ADDRESS>03

Close with reason: Resolved in #117649;


Better loading Icon for unsubmitted Reports

Our current 3 dot loading icon can be confused as a more options button, so it would be better to use a better one. Suggestions will be added for a final decision.

Some suggestions,


Close details view with ESC

Is there an existing issue for this?

[X] I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.
Details about resources, structured logs and spans are displayed in a details view that opens a new pane on the dashboard.
It might be convient if there if there was a shortcut to close the details view. ESC is the likely canditate.
Describe the solution you'd like
Pressing ESC key while the details view is open closes the details view.
Additional context
No response

An example is GitHub projects area:

Go to https://github.com/orgs/dotnet/projects/310/views/1?query=sort%3Aupdated-desc+is%3Aopen
Click on an issue. Details are opened in a pane
Pressing ESC key closes the pane


DHAM-Web service SAX injection

I'm going to hold off on merging this PR since it includes deleting the vuln-00 directory which actually needs to stay in the gauntlt/gauntlt-demo repo.  Other then the directory deletion, this PR is ready to merge.  Keep working on your Case Study report before you do anything about this PR.
Get the assignment turned in first.  If need be, I can do a PR to restore the vuln-00 directory and its content.
-- Matt Tesauro


Navigation path from one Sinopia resource description to another

Currently Sinopia provides a button for an entity that has an external URI (e.g. id.loc.gov/...) that when clicked on would open a new tab and display the page returned by the external server for that URI. But it does not offer a similar feature when the linked entity is another Sinopia resource (e.g. a link from a bf:Work to a bf:Instance or vice versa, or a link from a resource description to its Admin metadata. It would be helpful to offer such a path, so that a user can easily navigate from one Sinopia description to another, without the need to copy and paste the URI and do another search.
The feature that I envision is very similar to the "globe" link. When you click on it, a new tab would open in your browser and the Sinopia description of that linked resource is displayed there. You can continue to examine or edit the original description that you started in, but can now see the description of the related entity.
Thanks for considering this suggestion.

closing in favor of #2051.


Doing simple arithmetic

Would it be possible if we can do simple arithmetic operation form the field data. eg. addition or substraction or any other simple arithmetic condition, I know this can be done using the helper method.

@emanzx You can do Arithmetic Operations using Transform -> Add field from calculation.
Have you tried Transformations? Will it work for you or you are looking for something else?

@emanzx Please let us know if there is anything else.
We are wrapping up a new version of the Dynamic Text Panel and planning to release over the weekend.


Make custom_op.md fit release/1.8

The Apply() in SingleGradOpMaker is changed in release/1.8, need to update.
Also update  doc.

麻烦补充pr描述

@Boyan-Liu  Done. Thanks!


Kubernetes SD: Use first TCP service port as target port & clean up example config

Fixes #1256
/cc @SuperQ @fabxc @iancoffey

:+1:

Thx!

awesome! :fireworks:


Introduce demoSession filter on GraphQL query

The query results from AppSync should be filterable by demoSession.

We moved away from AppSync and GraphQL. So this is not relevant anymore.


How do I access Message ID in a handler method?

I am writing a CoAP server which accepts requests using UDP. My code utilizes handlers and the signature looks like this:
func (s *Server) defaultHandler(w mux.ResponseWriter, r *message.Message) {
...
}

I have two questions that I would really appreciate if you could help me out with:

How do I access the message ID that the client sent to the server from within the handler above?
The reason is that I want to store the message ID and perform an eventual ACK at a later stage.

If the client has sent a confirmable message to the server, and I wish to confirm it later in a completely separate process. Does the server automatically send ACKs which is implied in the documentation? And if so, is there any way to prevent the package from sending an ACK automatically?

Maybe @jkralik knows more about this? :-)

@emmanuelay

How do I access the message ID that the client sent to the server from within the handler above?
The reason is that I want to store the message ID and perform an eventual ACK at a later stage.

When you create server you need to use option udp.WithHandlerFunc instead of udp.WithMux. At the handler you get msg *pool.Message which has functions msg.MessageID() https://github.com/plgd-dev/go-coap/blob/4d466801917705aec7cd97b6b53c7502d4c1f7c5/udp/message/pool/message.go#L52

If the client has sent a confirmable message to the server, and I wish to confirm it later in a completely separate process. Does the server automatically send ACKs which is implied in the documentation? And if so, is there any way to prevent the package from sending an ACK automatically?

Yes it is send automatically. It sends ack in separated message/response of request. For your usecase just don't send the response immediately and ACK will be send via separate message. And then you can create response later after you process request similar as: https://github.com/plgd-dev/go-coap/blob/4d466801917705aec7cd97b6b53c7502d4c1f7c5/examples/observe/server/main.go#L78

Would be useful to be able to access the MessageID somehow in logging middlewares using udp.WithMux. Logging the message id helps debugging client issues, for example. Right now I'm using a logging CoAP proxy for this.

Would be useful to be able to access the MessageID somehow in logging middlewares using udp.WithMux. Logging the message id helps debugging client issues, for example. Right now I'm using a logging CoAP proxy for this.

@JosefWN with blockwise mux gets completed constructed message so it is not possible at the layer mux. In go-coap/v3 you can read all MessageID via https://github.com/plgd-dev/go-coap/blob/b8901963ae43acd9a14f98b3d47ec17b26b38e7a/options/commonOptions.go#L278

Feel free to reopen it but v3 allows you to set MessageId and also Type.


RabbitExchangeQueueProvisioner should take declareExchange into account when building exchange

It's possible to disable exchange declaration using declareExchange property. However, still during establishing a new connection to RabbitMQ in the org.springframework.amqp.rabbit.core.RabbitAdmin.initialize method exchanges are declared. It looks like in the RabbitExchangeQueueProvisioner class declareExchange property is not used to set suppressDeclaration flag on ExchangeBuilder. That's let to and exception during connection.

It looks like it was a problem with properties. We set spring.cloud.stream.rabbit.bindings.default instead of the spring.cloud.stream.rabbit.default. After setting ``spring.cloud.stream.rabbit.default.producer.declareExchangethere is noExchangebean registered into to context, soRabbitAdmin` is not trying to recreate it.


Resolution should be dependent on AABB size

Maybe even not use resolution and rather choose sample count

needs to be documented, but this is the default behaviour now.


docs: proposal type is in package.json, not config.json

standing by for #41 before merging this

done in #43


Divisible and Decidable repr

Using generic product and coproducts for Divisible and Decidable is Haskell biased.
Currently we ask for (a, b, c, d)  to become ((a, b), c), d for products.
And a | b | c to become ((a, b) either, c) either for coproducts.
going for (a, (b, c)) and (a, (b, c) either) either is more conveinent (and easier to write)

The problem is not with the implementation of Divisible and Decidable but with the precedence of >:
let f a b c = a >*< b >*< c
(* [val f : 'a t -> 'b t -> 'c t -> (('a * 'b) * c) t] *)

let g a b c = a >*< (b >*< c)
(* [val f : 'a t -> 'b t -> 'c t -> ('a * ('b * c)) t] *)

You can use, for example, @>*< but it break the symetry with applicative... or ^*^ which seems  better:
let h a b c = a ^*^ b ^*^ c
(* [val f : 'a t -> 'b t -> 'c t -> ('a * ('b * c)) t] *)

(But I suggest to add ^$^: let i f a b c d = f ^$^ a ^*^ b ^*^ c ^*^ d has the expected type and you do not need extra parentheses between the Divisible part.)


steps to check whether a number can be represented as sum of two cubes

fix #4968

@sairish2001 I think this PR deserve level 2 .. Thats just a suggestion...Thank you for merging my PR


Raise the correct event name

This PR is in response to the issue #406 which fixes the event name for uglyfied code.
All tests returned green ✅

Closing in favor of #492. It seems to be more robust. If you disagree @strebl please state your case.


fixes #129

fixes #129
inside class SplitCoin(_MoveCallTransactionBuilder):, the gas_object parameter was causing issues. changed to gas. this is also consistent with how MergeCoin handles this.

hey @FrankC01, can you please have a look at this fix?


Paket Pack not working with .exe files

Description
Paket pack command fails on projects that contain a .exe, with an error like:

Paket failed with ->
C:\Users\Micael\source\repos\ConsoleApp4\ConsoleApp4\bin\Release\netcoreapp3.1\ConsoleAp>p4.exe: bad cli header, rva 0

with the full error message on verbose mode being:

Paket failed with
-> C:\Users\Micael\source\repos\ConsoleApp4\ConsoleApp4\bin\Release\netcoreapp3.1\ConsoleApp4.exe: bad cli header, rva 0
StackTrace:
at ProviderImplementation.AssemblyReader.look@1727(ILModuleReader this, Int32 v, String n, Int32 i, Int32 pos) in D:\code\Paket\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\AssemblyReader.fs:line 1728
at ProviderImplementation.AssemblyReader.ILModuleReader..ctor(String infile, ByteFile is, ILGlobals ilg, Boolean lowMem) in D:\code\Paket\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\AssemblyReader.fs:line 1737
at ProviderImplementation.AssemblyReader.ILModuleReaderAfterReadingAllBytes(String file, ILGlobals ilGlobals) in D:\code\Paket\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\AssemblyReader.fs:line 3619
at Paket.PackageMetaData.readAssembly(String fileName) in D:\code\Paket\src\Paket.Core\Packaging\PackageMetaData.fs:line 69
at Paket.PackageProcess.merge$cont@29(String buildConfig, String buildPlatform, FSharpMap2 specificVersions, ProjectFile projectFile, TemplateFile templateFile, TemplateFile withVersion, Unit unitVar) in D:\code\Paket\src\Paket.Core\Packaging\PackageProcess.fs:line 29         at Paket.PackageProcess.convertRemainingTemplate@193.Invoke(String fileName) in D:\code\Paket\src\Paket.Core\Packaging\PackageProcess.fs:line 203         at Microsoft.FSharp.Collections.Internal.IEnumerator.map@74.DoMoveNext(b& curr)         at Microsoft.FSharp.Collections.Internal.IEnumerator.MapEnumerator1.System-Collections-IEnumerator-MoveNext()
at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.takeOuter@274[T,TResult](ConcatEnumerator2 x, Unit unitVar0)         at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable1 source)
at Paket.PackageProcess.Pack[a](String workingDir, DependenciesFile dependenciesFile, String packageOutputPath, FSharpOption1 buildConfig, FSharpOption1 buildPlatform, FSharpOption1 version, IEnumerable1 specificVersions, FSharpOption1 releaseNotes, FSharpOption1 templateFile, FSharpOption1 excludedTemplates, Boolean lockDependencies, Boolean minimumFromLockFile, Boolean pinProjectReferences, FSharpOption1 interprojectReferencesConstraint, Boolean symbols, Boolean includeReferencedProjects, FSharpOption1 projectUrl) in D:\code\Paket\src\Paket.Core\Packaging\PackageProcess.fs:line 221         at Paket.Dependencies.Pack[b](String outputPath, FSharpOption1 buildConfig, FSharpOption1 buildPlatform, FSharpOption1 version, FSharpOption1 specificVersions, FSharpOption1 releaseNotes, FSharpOption1 templateFile, FSharpOption1 workingDir, FSharpOption1 excludedTemplates, FSharpOption1 lockDependencies, FSharpOption1 minimumFromLockFile, FSharpOption1 pinProjectReferences, FSharpOption1 interprojectReferencesConstraint, FSharpOption1 symbols, FSharpOption1 includeReferencedProjects, FSharpOption1 projectUrl) in D:\code\Paket\src\Paket.Core\PublicAPI.fs:line 753
at Paket.Program.handleCommand@853-23.Invoke(ParseResults1 results) in D:\code\Paket\src\Paket\Program.fs:line 853         at Paket.Program.processWithValidationEx$cont@42[a](Boolean silent, FSharpFunc2 commandF, a result, Unit unitVar) in D:\code\Paket\src\Paket\Program.fs:line 43
at Paket.Program.processWithValidationEx[a](FSharpFunc2 printUsage, Boolean silent, FSharpFunc2 validateF, FSharpFunc`2 commandF, a result) in D:\code\Paket\src\Paket\Program.fs:line 35
at Paket.Program.handleCommand(Boolean silent, Command command) in D:\code\Paket\src\Paket\Program.fs:line 853
at Paket.Program.main() in D:\code\Paket\src\Paket\Program.fs:line 934

For reference I tried this with a computer without a D: drive and it still showed as it trying/getting files from D:
Repro steps

Create an F# console project with visual studio on windows (visual studio might not be required but windows is)

Install paket on project and convert from nuget to paket

Create paket.template file in the project ConsoleApp folder and add this to it
type project

Build project in Release mode.

Run the following command:

dotnet paket pack nugets --version 1.0.0 -v

Alternative skip step 1 to 3 by cloning this git https://github.com/MicaelMor/PaketPackExeError
Expected behavior
Paket should create a .nupkg file on the nugets folder with the name of the project and version provided.
Actual behavior
Paket fails with error

NameOfExecutable.exe: bad cli header, rva 0

Known workarounds
Using .Net SDK command dotnet pack works, but ofc this bypasses Paket.
Other potentially relevant information
The Pack command works fine with a library type project (which ofc has no .exe file), so it is quite likely I am just doing something wrong here,
Fails also on a C# project.

Coincidentally, I ran into this yesterday as well while trying to see if I could migrate a work project to .NET Core. Seems that this is related to the fact that when you build a .NET Core application and get an executable file, it isn't actually a .NET binary, so much as launcher of some kind; your program actually lives in the NameOfExecutable.dll next to the executable.
I tried using the latest alpha of Paket (6.0.0-alpha028 at the moment) and had the same results. Unfortunately, for my purposes, dotnet pack does not work, because it omits the executable and throws my application into the lib directory of the resulting NuGet package, rather than tools.

I'm new to .Net Core publishing, in fact the reason why I ran into this problem is basically the same as yours, but I don't believe you are supposed to package the .exe files or any file that isn't necessary to the program (like debug symbols and so on) with the nuget.
The idea is that since .net core projects are multiplatform you need to choose what packaging and distribution you want to use for each platform you are publishing to.
For windows distribution you could for example package it with nuget and then use something like https://github.com/Squirrel/Squirrel.Windows which takes that nuget and creates an installer for it (you also get an updater if you modify your project and so on), being that there are ofc alternatives like Wix and InnoSetup which are to my knowledge supported by F# Fake.
That being said haven't used any of the methods mentioned above yet, so I could be saying something that isn't accurate, so far have published only 1 .net core app to Windows, and that was using the Visual Studio option to Publish, which essentially puts the necessary files to execute the application into a folder, and if you copy that folder to the machine you want to run it, the application should run just fine.
If you positively need to have the executable inside the .nupkg file, like if for some reason you can only distribute the application using nuget, it would be possible to do so, these files are just renamed .zip files that follow a certain structure, so you could in theory have some build process that after it runs the dotnet pack command, opens the .nupkg file and copies the .exe and what ever other files you need/want into that .npukg.

I'm not new to publishing .NET Core projects, but the project in question has quite a bit of workflow around it that requires the executable to be packaged the same way it was when targeting .NET Framework. I'm aware of how the NuGet package format works, but currently Paket is the build process that handles this. I could certainly write my own code for packaging the project, but then I also wouldn't need to use dotnet pack.
Regardless of how the package is being used, I wouldn't think Paket is intended to crash and burn when asked to package a project.

I was able to locally modify Paket enough to bypass this issue by commenting out these two lines, removing associated code that used the values, and adding the missing data to my paket.template. I also had to add V3_1 and supporting code to the DotNetCoreAppVersion typedef so it would recognize netcoreapp3.1, but it looks like that's already been done in master.
In production Paket builds, I'd assume that the PackageProcess.merge function would fall back to reading the .dll when packaging a .NET Core or .NET 5+ application, rather than examining the .exe for CIL data. Since self-contained executables are created by dotnet publish separately from the original build, the .dll should always be there for Paket to reference - or at least, I haven't yet run into a .NET Core project where this wasn't the case.

I had the same issue and in my case removal of <OutputType>Exe</OutputType> from the fsproj file fixed the problem. Weirdly output is still *.exe and looks identical to the previous one.

Any updates?
I encounter the same issue when I attempt to pack my dotnet tool.


Include *.min.js in Bower package and ! in license comment

This pull request includes a ! in the license comment so that it will be preserved in minified output. Also included minified JS in the Bower package, so the user can simply include the plugin-author minified version if desired.

Minifying and concatenating should be done in build pipeline. That is why minified versions are intentionally left out. I cherry picked the ! comment thing though. Thanks!


i18n for varying price label

Following on the work by @schaeken in https://github.com/Shopify/shopify-themes/pull/1259, using i18n-friendly translations for From $xx.xx.
This covers the Twitter card meta data, product grid items, and search results (grid and list views).
@stevebosworth @mpiotrowicz

:+1:

Awww thanks carson!!!!! :D


I wanted to improve the loading process of an HTML5 game with libGDX.…

… As currently the process is.

Load index.html
Synchronously load the javascript files
Preload assets, get them cached in the browser (This is currently, where a player would see the libGDX logo and a progress bar).
(optional) Loading assets into memory with a custom loading screen via an AssetManager

In smaller games this is can be acceptable loads times. However as a game grows I have generally found that whilst the code size (The JS files are around 1-3MB) the art (Artists demanding HD level quality) the process of getting a player into the game becomes longer and drawn out and offputting. I have also been involved in projects where a HTML5 gaming platform would require a single loading experience for all binary and asset loading, providing their own loading screen etc.
I have a working example of a game where the JS is split and a boot strap occurs first then the main game JS is loaded separately. Then any assets are then loaded on demand, e.g. the AssetManager wishes to load a texture, this request is intercepted and the browser instructed to download the asset, then the loading into memory can occur.
Before I unleash this all on the world I wanted to see if I could clean up a couple of things in the GWT backend to make what I did simplier and cleaner looking. So this commit is more about setting the stage ready for the next phase of the loading.
When going through the code, I discovered that the canvasId that can be specified in the configuration is never used. Thus never letting you create and specify your own canvas, this commit fixes that.

I moved the preloading code into separate classes and I created an interface to allow other people to create their own preloaders and reuse the existing download code.
I have removed the config.root property as it was no longer needed, the code now only checks for the presence of the canvasId field.
If the canvasId does exist, the default preloader will still create the progress bar and libGDX logo except upon completion it no longers creates the canvas

This is backwards compatible and I have tested it the project created via the project setup tool.
I hope this makes sense to people, if I have done something I shouldn't have please let me know and I will fix it.

Haven't looked at the code, but I 100% support the idea of refactoring/modernizing the preloading process on GWT. I understand the need for preloading in order to support the synchronous file API, but if we are only loading asynchronously, we should not have to force the users to wait for the preload (and potentially exhaust browser memory in process).

I have the same issue, can any one solve this problem?

I've been waiting for this for a while -- any idea when this will be merged?

I feel this might be pretty out of date now as I made more changes etc. I think what might happen is this could become an extension.

I took your base idea and it is added now to the GWT backend with #5677
@MonsterOfCookie we miss you on the Discord, would be great to see you again.


In nearby tab the query hint text is not displayed properly.

Summary:
Summarize your issue in one sentence (what goes wrong, what did you expect to happen)
In nearby tab the query hint text is not displayed properly.
Steps to reproduce:
How can we reproduce the issue?
What did you expect the app to do, and what did you see instead?
Go to near by tab and then click the search button on top.
Device and Android version:
What make and model device) did you encounter this on?
Realme 5 pro
Android Q
Commons app version:
2.13.1- debug master
You can find this information by going to the navigation drawer in the app and tapping 'About'. If you are building from our codebase instead of downloading the app, please also mention the branch and build variant (e.g. master and prodDebug).
Screen-shots:

Would you like to work on the issue?
Yes

Fixed  this issue in #4127 .
hence closing this issue

Fixed  this issue in #4127 .
hence closing this issue


Daemon outputs only to stderr

Description
All output from the Docker Daemon is on stderr. It's been like this for a long time, so this issue is more of a discussion if this is the correct behaviour than an issue. This is a slight inconvenience on Windows when attempting to redirect the daemon output to a file.
Is there a particular reason that it is output to stderr rather than stdout?
Steps to reproduce the issue:

dockerd > stderr 2> stdout

Describe the results you received:
$ sudo dockerd > stdout 2> stderr
$ cat stdout
$ cat stderr
time="2017-03-17T13:43:55.374185400-07:00" level=info msg="libcontainerd: new containerd process, pid: 26105"
time="2017-03-17T13:43:55.401719265-07:00" level=warning msg="containerd: low RLIMIT_NOFILE changing to max" current=1024 max=65536
time="2017-03-17T13:43:56.376746015-07:00" level=info msg="[graphdriver] using prior storage driver: aufs"
time="2017-03-17T13:43:56.422300241-07:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-03-17T13:43:56.422457803-07:00" level=warning msg="Your kernel does not support swap memory limit"
time="2017-03-17T13:43:56.422489715-07:00" level=warning msg="Your kernel does not support cgroup rt period"
time="2017-03-17T13:43:56.422497518-07:00" level=warning msg="Your kernel does not support cgroup rt runtime"
time="2017-03-17T13:43:56.422766023-07:00" level=info msg="Loading containers: start."
time="2017-03-17T13:43:56.428612998-07:00" level=info msg="Firewalld running: false"
time="2017-03-17T13:43:56.544798310-07:00" level=info msg="Default bridge (docker0) is assigned with an IP address <IP_ADDRESS>/16. Daemon option --bip can be used to set a preferred IP address"
time="2017-03-17T13:43:56.586924702-07:00" level=info msg="Loading containers: done."
time="2017-03-17T13:43:56.649531465-07:00" level=info msg="Daemon has completed initialization"
time="2017-03-17T13:43:56.649591888-07:00" level=info msg="Docker daemon" commit=60ccb22 graphdriver=aufs version=17.03.0-ce
time="2017-03-17T13:43:56.655241887-07:00" level=info msg="API listen on /var/run/docker.sock"
time="2017-03-17T13:45:47.757254970-07:00" level=info msg="Processing signal 'interrupt'"
time="2017-03-17T13:45:47.769260692-07:00" level=info msg="stopping containerd after receiving terminated"

Describe the results you expected:
I'd expect that it not all be output to stderr. Either both stdout and stderr, or just stdout, but it seems odd to put info logs on stderr.
Output of docker version:
Client:
 Version:      17.03.0-ce
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   60ccb22
 Built:        Thu Feb 23 11:02:43 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.0-ce
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   60ccb22
 Built:        Thu Feb 23 11:02:43 2017
 OS/Arch:      linux/amd64
 Experimental: false

/cc @jhowardmsft

Tried to understand what happened:
Here's the incriminated part: https://github.com/docker/docker/blob/c1b04a8d6ed90d4dad4162432a111dcd3a9b5a0b/cmd/docker/docker.go#L163
Looking at that seems that the stderr has been introduced when daemon and client binaries have been splitted like one year ago, in fact, before https://github.com/docker/docker/commit/9b00817dc692458f9e27e375a870ecd0dcbd0b75 the stderr thing was not there.
Also, logrus documentation had os.Stderr in their examples in the same period: https://github.com/docker/docker/blob/9b00817dc692458f9e27e375a870ecd0dcbd0b75/vendor/src/github.com/Sirupsen/logrus/README.md#example
So the possibilities are:

Something went wrong one year ago and docker is logging in stderr
docker is logging to stderr for a reason (maybe @thaJeztah know that reason)

Investigated more, actually this commit introduced the use of stderr as output for logging https://github.com/docker/docker/commit/d8c3090dd9abe3f0d95f99c9d8c7660922e9a719

More findings related to this:
https://github.com/docker/docker/blob/master/contrib/init/sysvinit-debian/docker#L115
https://github.com/docker/docker/blob/master/contrib/init/sysvinit-redhat/docker#L59

Looks to be part of https://github.com/docker/docker/pull/10864 (also see https://github.com/docker/docker/pull/10864#issuecomment-77093419, not sure if it's relevant), which was carried in https://github.com/docker/docker/pull/11566
ping @tiborvass ptal


Compute expansion from existing network

Hi,
I find your work really interesting but I have a question.
How can I expand a network with existing weights?
I want to train a network using this scheme, but I need to start from existing weights, such as imagenet pretraining.
Adding 1x1 convolution without changing the model is simple.
So Expand-CL can be implemented using existing weights.
I'm not sure how to do Expand-CK. If I have an existing k X k kernel for k > 3, how do I split it into a 3x3 kernels?

Hi,
Thank you for your interest. Currently, our method supports training ExpandNets from scratch. If you want to use pre-trained weights W to initialize W1, W2 where W=W1*W2 when using Expand-CK, I think you have to solve the matrix equations with your own constraints. Otherwise, there will be multiple solutions.
Cheers,
Shuxuan

Hi,
Thank you for your interest. Currently, our method supports training ExpandNets from scratch. If you want to use pre-trained weights W to initialize W1, W2 where W=W1*W2 when using Expand-CK, I think you have to solve the matrix equations with your own constraints. Otherwise, there will be multiple solutions.
Cheers,
Shuxuan


Pass map/reduce options.

It's initialized to array in Doctrine\MongoDB\Query\Builder. Do you insist on adding a check anyway?


Save the hostname & resources in the log and answer file

This is useful for reproducibility and resource management or optimisation.
Add hostname and GOU, RAM, VRAM and CPU at the beginning.
Add peak VRAM, RAM and GPU % at the end.

Added hostname, and device info.
Peak resource info is more complicated.


hiredis

I saw that the readme suggests using hiredis for better perf but the node binding's version of hiredis is outdated (see https://github.com/redis/hiredis-node/issues/129) and v2 of the js parser seems to be up to speed as well (see https://github.com/luin/ioredis/issues/342) does it still make sense to recommend it?
I would suggest to keep it in the docs but if v2 of the node parser gets merged I see no reason to recommend it anymore.

The v2 of the js parser had performance issues when parsing big chunk of data (https://github.com/NodeRedis/node_redis/pull/900#issuecomment-259638072) but it seems this problem has already been fixed. I'll do some benchmarks on it and will switch to it if the performance go better. At that time the recommendation will be definitely removed from the docs.
Thank you for bring this up!

@luin thanks for looking into this!

Closing this since #425 has been merged.

Thanks a lot! @luin


How can I install this plugin using vim-plug?

Is it possible to install this plugin using vim-plug ?

I personally don't use vim-plug, but maybe
Plug "nvim-lua/plenary.nvim"
Plug "nvim-tree/nvim-web-devicons"
Plug "MunifTanjim/nui.nvim"
Plug "nvim-neo-tree/neo-tree.nvim", { branch = "v2.x" }

Does this work for you?

@nhat-vo Works great, a small syntax fix though:
Plug "nvim-lua/plenary.nvim"
Plug "nvim-tree/nvim-web-devicons"
Plug "MunifTanjim/nui.nvim"
Plug "nvim-neo-tree/neo-tree.nvim", { branch = "v2.x" }

@devenv Thanks for the fix! It's been a while since I use Vimscript, so I completely forgot about " vs ' 😅
Closing this issue as solved.


Use ransack fork to avoid error calling ActiveRecord::Base.connection

fixes rb#673
https://app.rollbar.com/a/davidjrunger/fix/item/davidrunger/673

See https://github.com/davidrunger/ransack/pull/1 .


Add Portuguese documentation

What is the expected behavior?
Quantum information is a subject that is found in English language literature more often than in Portuguese literature.
We in Brazil, and also from Portugal, want good references in Portuguese to educate people who are interested in learning more about quantum information.
Some terms, such as Gate, are translated incorrectly by translators. In addition, at universities, we learn terms like Gates in Portuguese. Moreover, today's translators misread these academic terms and made it harder to make analogy and idioms. Furthermore, for an initial learning, it becomes even more difficult to absorb knowledge. Finally, Qiskit does not have a Portuguese version.
I myself have been studying Qiskit in English for a year now. Imagine who has no experience in the subject?
I would like to propose a Portuguese translation of some sections and engage more portuguese learners and educators to help us with translation. For example:
Reference: https://quantum-computing.ibm.com/support/guides/introduction-to-quantum-circuits?page=5cae6f7735dafb4c01214bbe

"The Pauli operators
The simplest quantum gates are the Paulis:
X , Y and Z. Their action is to perform a half rotation of the Bloch sphere around the x, y and z axes. They therefore have effects similar to the classical NOT gate or bit-flip. Specifically, the action of the X gate on the states |0⟩ and |1⟩ is X|0⟩=|1⟩,X|1⟩=|0⟩."

Portuguese version:
"Operadores Pauli
Os operadores quânticos mais simples são as de Paulis: X, Y e Z.
Sua ação é realizar uma meia rotação da esfera Bloch em torno dos eixos x, y e z. Eles, portanto, têm efeitos semelhantes a porta clássica NOT ou bit-flip. Especificamente, a ação da porta X nos estados | 0 ⟩ e | 1 ⟩ é X|0⟩=|1⟩,X|1⟩=|0⟩."

Thank you very much for that guidance.


Getting exception on TileCanvasThread - Problem decoding into existing bitmap

Is this a known bug, or is there something I am doing wrong somewhere? I thought I caught it in my else block in the code below, becuase it stopped happening, or so I thought, but it randomly happened when I zoomed out very far (on a real device, didn't happen on emulator, yet), and once when I disconnected my phone while running the app (for testing GPS).
class MapRepositoryImpl (
    private val db: SARDatabase,
    private val tileDownloader: TileDownloader,
    private val scope: CoroutineScope
) : MapRepository {
    override fun getTile(row: Long, col: Long, zoomLvl: Long): Flow<RawSource?> = flow {
        val log = logging("MapRepository DB")
        val tileData = db.tileQueries.selectTile(row, col, zoomLvl).executeAsOneOrNull()

        val buffer = Buffer()
        buffer.write(tileData?.tile_data ?: byteArrayOf())
        if (tileData != null) {
            emit(buffer)
        } else {
            log.d { "Downloading from web" }
            tileDownloader.downloadTile(row, col, zoomLvl).let { dataPair ->
                val tileStream = dataPair.first
                val bytes: ByteArray? = dataPair.second
                if (tileStream != null) {
                    emit(tileStream)
                    scope.launch {
                        if (bytes != null) {
                            try {
                                db.tileQueries.insertTile(row, col, zoomLvl, bytes)
                            } catch (e: Exception) {
                                log.e{ "Attempt to insert duplicate tile.: $e" }
                            }
                        }
                    }
                } else {
                    log.e { "Failed to download tile" }
                    emit(null)
                }
            }
        }
    }
}

Any tips as to why this happens and which steps I need to take to avoid this are very much appreciated! :)

Could you also post the stacktrace?

Sorry I don't have it stored, I have to drop every small issue like this these days unless it happens a lot, we got a hard deadline on this (bachelor's thesis), and it hasn't happened since. I have limited the zoom to minimum of 8, it seemed to happen when I zoomed out far and fast, which there is no need for as this is a search and rescue app anyways. I test this app 6-10 hours per day in emulator, simulator and real devices, so it is very rare.
I do have a question though, probably not appropriate in here right now, but if not I'll create a separate issue on it. When I rotate the map, and I take that rotation and add it to a marker, the marker moves around on the map. This is on a real device with me standing still, so the location isn't changing.

When this happens again, the stacktrace will be helpful.
Regarding your issue with markers, you can create a separate issue. However this is most probably due to wrong values of relativeOffset when calling addMarker api. Default value is (-0.5f, -1f) so that the fixed point of a pin marker is at the bottom center. A marker which should be centered should use (-0.5f, -0.5f).

When this happens again, the stacktrace will be helpful.
Regarding your issue with markers, you can create a separate issue. However this is most probably due to wrong values of relativeOffset when calling addMarker api. Default value is (-0.5f, -1f) so that the fixed point of a pin marker is at the bottom center. A marker which should be centered should use (-0.5f, -0.5f).

I will get a stacktrace if it happens again! I can say it happened on line 132 in some file, where it started with something like val image = or val images = , not sure if that helps you at all but, who knows! :)
As for the marker, I will try that out! Thanks!


Exploit: False login considered successful

When I tried logging into our LDAP server via Sipa, but made an obvious typo, the attempt has not been blocked. I was presented „authentication successful“ and (in my branch, where the mysql-dependent calls have been replaced by test data) presented the usersuite. Anyway, the logs report the attempt being invalid.
I have not refactored yet which level produces this result.

Update: Could not reproduce.


added_linktreeWidth

Contributing Guidelines pull request Making a pull request

Guidelines

[x] I read the Contributing Guidelines

This pull request regarding on

[ ] fixed an issue
[x] developed new feature
[ ] fixed a bug

Briefly describe what you did
Appreciate your contribution to making Linkin better 🚀.

Codecov Report

Merging #46 (eac4b5e) into dev (284f6a5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #46   +/-   ##
=======================================
  Coverage   72.52%   72.52%
=======================================
  Files           3        3
  Lines          91       91
  Branches       18       18
=======================================
  Hits           66       66
  Misses         21       21
  Partials        4        4

Continue to review full report at Codecov.

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


Prometheus promtool check

Hi @peters95,
Prometheus's promtool is reporting the following metric issues, as they follow the OpenMetrics standards.
# curl -s http://FQDN:24231/metrics  | promtool check metrics  2>&1 | grep -v camelCase
fluentd_output_status_emit_count non-histogram and non-summary metrics should not have "_count" suffix
fluentd_output_status_flush_time_count non-histogram and non-summary metrics should not have "_count" suffix
fluentd_output_status_retry_count non-histogram and non-summary metrics should not have "_count" suffix
fluentd_output_status_rollback_count non-histogram and non-summary metrics should not have "_count" suffix
fluentd_output_status_slow_flush_count non-histogram and non-summary metrics should not have "_count" suffix
fluentd_output_status_write_count non-histogram and non-summary metrics should not have "_count" suffix
fluentd_status_retry_count non-histogram and non-summary metrics should not have "_count" suffix
jfrog_rt_access counter metrics should have "_total" suffix
jfrog_rt_access_audit counter metrics should have "_total" suffix
jfrog_rt_data_download counter metrics should have "_total" suffix
jfrog_rt_data_upload counter metrics should have "_total" suffix
jfrog_rt_log_level counter metrics should have "_total" suffix
jfrog_rt_req counter metrics should have "_total" suffix
jfrog_rt_service_message counter metrics should have "_total" suffix

also the following metrics are reporting camelCase usage,
# curl -s http://FQDN:24231/metrics  | promtool check metrics  2>&1 | grep -e camelCase | sort | uniq
jfrog_rt_data_download label names should be written in 'snake_case' not 'camelCase'
jfrog_rt_data_upload label names should be written in 'snake_case' not 'camelCase'
jfrog_rt_req label names should be written in 'snake_case' not 'camelCase'

Thanks for this suggestion and appreciate the PR. It has been merged.


Saving Google Fit Data

Hello,
I've started to use your library and I'm excited to get it started. At the moment, I am trying to save the Google fit data from the request I am making.
Here's what I'm doing:
let todayStart = "2017-02-23T00:00:17.971Z"
let dayEnd = "2017-02-23T23:59:17.971Z"
GoogleFit.getSteps(todayStart, dayEnd)

In my Android monitor, I see:
I/History: Number of buckets: 1
I/History: Data returned for Data type: com.google.step_count.delta
I/History: Data point:
I/History: 	Type: com.google.step_count.delta
I/History: 	Start: 23 Feb 2017 9:33:06 am
I/History: 	End: 23 Feb 2017 9:33:06 am
I/History: Day: Thu
I/History: 	Field: steps Value: 196

So it seems to be working. However, how do I store this info? If I save GoogleFit.getSteps(todayStart, dayEnd) to a variable, I just get undefined.
Hope you can help.
Thanks!

Ok, figured out my own problem. I was not calling GoogleFit.observeSteps()


Imod6 960 use mapping

-moved Hendrik's mapping code from the examples to driver and test
-mapping is now used for exchanges
-added dfm and mf6 wrapper functions and tests
-added tmodel input
-added test for tmodel input
-added Hendrik's function for river flux calculation

Also testbench seems to be red.


Cannot use index as :key

When using the following setup in Vue
<template>

		<template v-for="(item, itemIndex) in items">

{{ item.foo }}

		</template>

</template>

the list becomes unresponsive after starting to drag one element. It moves one position further, then is stuck.
I would assume this has to do with the index already changing before the drag has been completed and thus Vue stumbling over what is which element.
Anything that can be done about this?
Thanks a lot for your work! Trying to replace the old vuedraggable we use in https://github.com/getkirby/kirby with this - and getting far but not fully working yet 🤞

Yes. Thats correct — you should never use an index as a key in any reactive framework actually — it is a no-op. Related reading:
https://vueschool.io/articles/vuejs-tutorials/tips-and-gotchas-for-using-key-with-v-for-in-vue-js-3/
https://dev.to/shiv1998/why-not-to-use-index-as-key-in-react-lists-practical-example-3e66
https://kuldipem.medium.com/say-no-to-array-index-as-key-in-react-my-approaches-to-tackle-it-that-you-can-use-51153bfa8901
Just use a unique index and you’ll be good to go ❤


setOpen is not a function

Describe the bug
Today suddenly WalletDialogButton starts to give setOpen is not a function error on react.
To Reproduce
Steps to reproduce the behavior:

Go to 'material-ui/src/'
Click on 'WalletDialogButton.tsx'
Scroll down to 'line 17'
See error { setOpen } = useWallet(); gives setOpen is not a function error in

Screenshots

Please see this FAQ section: https://github.com/solana-labs/wallet-adapter/blob/master/FAQ.md#-is-not-a-function---is-undefined--uncaught-typeerror-cannot-destructure-property--uncaught-in-promise-walletnotconnectederror
This error typically occurs if your WalletDialogContext is not configured correctly as a parent of the button you're using.

Okey totally my problem i put it in walletmodelprovider instead of a walletdialogprovider thanks for your help

Great project by the way goob job

Glad you sorted it out. And thanks :)


Added Checkers

Added a 8x8 checkerboard, uses the chessboard sprites and the generic sprites from parchis for the pieces. The extra "queen" pieces are just the black and white pieces with a yellow crown on them.


Connection string fails with special characters in password.

This database server is being used with node-postgres perfectly with same credentials.
on remote server postgresql://myuser:Ex<EMAIL_ADDRESS>fails
on local docker container postgresql://myuser:administrator@localhost:5431/mydbname works fine
As you can see, the same user and database name is used, yet, when on the local machine when using "administrator" as a password without any special characters, then db connects just fine.
Is there any way to escape special characters?

BTW, I would love to know the required PostgreSQL permissions for this utility to work. I can offer donate my skills with documentation and with some guidance maybe even generating some nice warnings for users who lack those permissions.

@aviv-skillset can you share the full command that you ran? It may just be a matter of updating from:
pg-to-ts generate -c postgresql://user:pass@host/db -o dbschema.ts

to
pg-to-ts generate -c 'postgresql://user:pass@host/db' -o dbschema.ts

(adding quotes)

I believe the problem is deeper than I expected. I've tried to import this function instead of using the CLI binaries.
import { typescriptOfSchema } from 'pg-to-ts';
typescriptOfSchema(`postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}/${DATABASE_NAME}`)

I have investigated a bit an have seen you are using pg-promise which relies on brianc/node-postgres/pg-connection-string. This package probably is in charge of handling my problem.
I personally connect pg like this
import { DatabaseError, Pool, PoolConfig, QueryConfig } from 'pg';

const poolConfig: PoolConfig = {
  user: DATABASE_USER,
  host: DATABASE_HOST,
  database: DATABASE_NAME,
  password: DATABASE_PASSWORD,
  port: DATABASE_PORT,
};

const pool = new Pool(poolConfig);

and the same "problematic" password worked properly

@aviv-skillset looking at the pg-connection-string page that you referenced, you may need to URL encode your password (and possibly the other fields) to make this work. So using your example:
postgresql://myuser:Ex<EMAIL_ADDRESS>
If this works, I'd very much appreciate a PR to add a note about it to the README. I also think it would be desirable to support passing in connection parameters using environment variables as an alternative to a connection string. (I'd also happily accept a PR for that!)


table tests, initial commit DOC-2491

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Preview environment: https://ci.pr.harness.io/pr-629

Preview environment: https://ci.pr.harness.io/pr-629

Preview environment: https://ci.pr.harness.io/pr-629

Preview environment: https://ci.pr.harness.io/pr-629


renderWithProviders cannot be named without a reference to '@testing-library/dom/node_modules/pretty-format'

The inferred type of 'renderWithProviders' cannot be named without a reference to '@testing-library/dom/node_modules/pretty-format'. This is likely not portable. A type annotation is necessary.ts(2742)
Got this error. I tried deleting @testing-library/dom, it works but I need it to run my test.

I'm using latest versions of redux and my testing libraries

This isn't a Redux bug.


Use "Report Issue" command

instead of button

I left those in because they don't do any harm and I feel like there's still a risk we switch back to the "Report Issue" button. And when I say "risk", I mostly mean because in the past people on our team have had strong opinions about the button


Add support for --inspect-brk

Nodejs 7.6.0 has added the flag --inspect-brk as an alias for --inspect --debug-brk. Would it be possible to support it in mocha as well?

Closed by #2769.

This enhancement has been released in v3.3.0! 🎉


Support RTL direction

Hello , in material ui they support RTL direction , Dose react-speed-dial  support RTL direction ?

Hello @raqi1,
I added an example for this case:
https://smollweide.github.io/react-speed-dial/#/rtl


Segmentation architecture

@yix081 @xwjabc  thanks for sharing the code base i have following queries

Can we convert this architecture to perform segmentation task ie semanttic segmentation ? is so hwo to do it
Can we convert this architecture to perform object detection ?

Please share ur thoughts Thanks in advance

Hi @abhigoku10, thank for your questions!

You may follow similar way as the one in Swin-Transformer-Semantic-Segmentation.
The current codebase already includes the tasks on object detection with Deformable DETR. If you would like to deploy the CoaT to Faster R-CNN, you can modify the instance segmentation task in this codebase and only keep the object detection branch. Since the instance segmentation implementation in this repo is based on mmdetection, you may refer to the official docs in mmdetection's repo for more details.

@abhigoku10
I have implemented semantic segmentation with MPViT based on CoaT.
Refer to MPViT.
@xwjabc
Thanks to your wonder CoaT, MPViT has been accepted in CVPR 20202.
I really appreciate your work and code.

@youngwanLEE That's cool! Big congrats!

@yix081 Thank you so much !!
I think CoaT is a very cool module !!

@youngwanLEE Big congrats and nice work!


[Feature] Display RedeemScript or Descriptor Information on HW Screen

Let's say I have 2/2 multisig. I generate a receiving address on desktop and check it against hwi displayaddress --desc <desc> on both devices. Then I know that each device controls a key in the multisig address.
But how do I actually verify that the address corresponds to a 2/2 multisig address and not k/k where k > 2 without trusting any UI except the hardware wallet display.
Possible attack: the redeemscript is actually 3/3 with 2 of our keys and a 3rd pubkey that belongs to a ransomer.

After investigating more, it seems that multisig addresses can't be displayed. Every library display_address function has a Only supports single-key based addresses comment. This would be very nice -- hardware wallet multisig is kinda pointless if you can't verify receiving addresses on device display.

All devices handle this differently, either by imo trusting too much, all the way to requiring the user to register multisig wallets on the device first. Going to be difficult to do without a standard.

What about just displaying a multisig address on the screen using the displayaddress HWI command? I know that at least trezor and coldcard can do this in Electrum.

That could be a partially-supporting feature yes.
I really want to somehow convince all manufacturers to support registering descriptors so we can have a unified "display address" feature :/


Deployment fails when "Serverless Warmup Plugin" is used

Prerequisites

[ ✅] Are you running the latest version?
[✅ ] Did you check the debugging guide?
[ ✅] Did you check this issue in Issue section?
[ ✅] Are you reporting to the correct repository?
[ ✅] Did you perform a cursory search?

For more information, see the CONTRIBUTING guide.
Description
Is there a way to also factor in the Serverless Warmup Lambda deployment?
https://github.com/juanjoDiaz/serverless-plugin-warmup
Steps to Reproduce
Create a new project and import in the Serverless Warmup Plugin
Expected behavior: [What you expected to happen]
Lambda and Warmup lambda gets deployed
Actual behavior: [What actually happened]
Deployment fails

Versions
Latest version

Resolved this by adding events:PutRule and events:PutTargets to my resource arn:aws:events:ap-southeast-1:334923857064:rule/expressjsserverless-v1-*
In the policy, it looks like this:
{
    "Effect": "Allow",
    "Action": [
        "events:DescribeRule",
        "events:PutRule",
        "events:PutTargets"
    ],
    "Resource": [
        "arn:aws:events:ap-southeast-1:334923857064:rule/expressjsserverless-v1-*"
    ]
}

Note: user id was changed above to a fake one for privacy purposes.

Hi @joshuaquek ,
Thank you very much for the feedback. We will add these to the application asap.
One question regarding the warming a lambda that is not related to this repo,
is it expensive?
did you compare prices between the actual running server and warming up lambda function prices?
This is not related to the issue and I was wondering about prices 😇

Hi @nadunindunil, for now it seems to cost 3 times less than if one were to use Route53 health checks to keep a lambda alive. USD$1.50 versus USD$0.51
Managed to find a reference to the cost calculation from the plugin's repo here: https://github.com/juanjoDiaz/serverless-plugin-warmup/issues/179

Adding a more direct answer by the creator of the plugin, which I've managed to find:
https://github.com/juanjoDiaz/serverless-plugin-warmup#cost

Just an update, when I tried to do a rollback of the serverless deployed lambda, I received this error:

I fixed it by adding events:RemoveTargets too, apart from events:PutRule and events:PutTargets.
That section of the policy now looks like this (updated):
{
    "Effect": "Allow",
    "Action": [
        "events:DescribeRule",
        "events:PutRule",
        "events:PutTargets",
        "events:RemoveTargets"
    ],
    "Resource": [
        "arn:aws:events:ap-southeast-1:334923857064:rule/expressjsserverless-v1-*"
    ]
}

Hi @joshuaquek ,
First, sorry for the late reply.
Thank you very much for the feedback. I'll add those details to the application.

Great! hoping to see it soon implemented. Thank you for taking this into consideration. I have been using this tool for over 10+ different deployments already

this was added in #28
please let me know if you face further issues


⚠ Fortnite has degraded performance

In 015f368, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1418 ms

Resolved: Fortnite performance has improved in aba4bcf.


Use fxhashTrunc

I think this was a mistake when updating b58dec.

Good catch !
No biggie, since it still splits the string in 4.
I will keep the issue opened because I need to reflect those changes wherever the snippet is in the app.
Thanks

You’re welcome! Always down to help bring eyes to things I come across. :)
As an aside, thanks for all of your work on the platform. I really enjoy it.


documentation for backing up sites manually

@kshapka-bcgov Just wondering why you didn't add this to the vuepress documentation?


Update example link to new link.

Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:

Unless you are a React Native release maintainer and cherry-picking an existing commit into a current release, ensure your pull request is targeting the master React Native branch.

Explain the motivation for making this change. What existing problem does the pull request solve?
Prefer small pull requests. These are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it.
Test plan (required)
Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
Make sure tests pass on both Travis and Circle CI.
Code formatting
Look around. Match the style of the rest of the codebase. See also the simple style guide.
For more info, see the "Pull Requests" section of our "Contributing" guidelines.
Old link is giving 404. The example code has been refactored.

By analyzing the blame information on this pull request, we identified @sunnylqm and @artyomtrityak to be potential reviewers.

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@facebook-github-bot shipit

Thanks for importing.If you are an FB employee go to Phabricator to review internal test results.


Add breadcrumb translation to controller update.stub

@LukeTowers Is there a sticking point with this RP?
I'm creating a lot of controllers at the moment, and I'm tired of having to edit their update.htm file every time.

Only sticking point was my life is a disaster and I'm only seeing this now 😂


Removing EnableMsixTooling from project file for unpackaged applications produces crashing published app

Describe the bug
From my observations EnableMsixTooling is responsible for renaming the pri file from [ProjectName].pri to resources.pri. If EnableMsixTooling is ommited because it is not needed for unpackaged applictations and such an application is then published from the Visual Studio wizard, the [ProjectName].pri file is not copied to the publish directory.
Steps to reproduce the bug

Create a new application
Set <WindowsPackageType>None</WindowsPackageType>
Remove EnableMsixTooling
Publish the application with the Visual Studio wizard

Expected behavior
The pri-resource-file should be copied in every possible case, as not copying it produces a non runnable crashing output.
Screenshots
No response
NuGet package version
Windows App SDK 1.3.2: 1.3.230602002
Packaging type
Unpackaged
Windows version
Windows 10 version 22H2 (19045, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response

Before I comment, I want to point out that I don't disagree with your point. This has been one of my biggest annoyances for a long time.
The process of providing the .pri file may not be a simple renaming and copy. If you query MRT core for the default paths, you will notice something interesting.

This is from an application packaged with a separate packaging project. The first is the path that Microsoft.ApplicationModel.Resources.ResourceLoader.GetDefaultResourceFilePath returns for the executable. The second is the path it returns for a component that the application references. Both of these are resources.pri. The package resources themselves also get merged into resources.pri.
It is almost the same for unpackaged projects.

The biggest thing to note here is that the executable and the component default to looking for "executablename".pri.
This means that the project may need to merge all .pri files from referenced projects too.

This is a really nasty bug, which i got around once i noticed it, by copying the pri file manually from the Release to the Publish folder. This was done because I had no time to investigate further and was not sure if i am doing something wrong.
I really hope this gets fixed soon.

Hi Team
Any update on this?
There are other issues as well. If you omit EnableMsixTooling from the project, or you set it to false (as you mention), you can't use a dotnet command-line or any other type of automated build because the process which generates the pri doesn't run at all. That's better than a runtime failure, but not by much.
Of course, without the pri file, the app launches but, at least in my case, never shows UI.
The other annoyance with all this is that the pri file is unknown to dotnet publish, so you have to manually copy it as a completely separate post-build step, making a mess of any sort of automated build process.

See #4603


support TensorFlow 0.8 distributed computing

The just released TensorFlow v0.8.0 RC0 has supported distributed computing as announced here. Can we support distributed computing by this way of tensorflow? (instead of by Spark)

Yes, you can do that, by setting your own TF session via K.set_session(sess).

@fchollet   any keras references for this TF distributed computing support? Can we setup keras cluster as TF like this below?
model.ClusterSpec({"local": ["<IP_ADDRESS>", "<IP_ADDRESS>"]})
model.fit(x, y)

An example on how to user K.set_session(sess) for this would be awesome. In particular, in the examples folder.


Add GitHub Actions workflow

Hello @jdah!
I have added a small GitHub Actions CI workflow.
Kind regards
Marvin

Looks good to me!

Shouldn't you run make libs as well?

That shouldn't be an issue @Tiebe.
When running the workflow in nektos act, it automatically does make libs.
The only thing I had to change was add sudo apt-get update && sudo apt-get install make cmake clang.
But I'm guessing that's just a side-effect of nektos act itself.

Ah alright!

How about uploading the binary as an artifact? https://github.com/actions/upload-artifact


fhir-bucket ignores --schema-name when running scan and load

Describe the bug
The --schema-name argument should direct fhir-bucket to use a specific schema instead of the default FHIRBUCKET (for Db2 and PostgreSQL) or APP (for Derby).
Environment
4.8.3
To Reproduce
Try to use fhir-bucket main directed to another schema.
Expected behavior
It should be possible to direct fhir-bucket to use a specific schema with the --schema-name argument.
Additional context
N/A

Verified that --create-schema (for both derby and postgresql), as well as scanAndLoad, use the --schema-name parameter, when specified; otherwise they use the default schema name.


Force release mode, fixed issue #7.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Added dynamic slope functionality with tests

Added dynamic slope functionality which shows percent decrease of funnel.
See: http://demos.telerik.com/kendo-ui/funnel-charts/index.
Added also tests. Sorry for separate pull request but had some problems with merging.
Works only for non inverted charts as it doesn't make sense to do it for inverted ones.

Reference #47.

Thanks. I'll look into this soon™.

Would be great. I could then use updated version.


网断了之后，就吐核了

Connect ok url:rtsp://admin:ahsg123456@<IP_ADDRESS>:554/streaming/channels/101
width:1280 height:720 fps:25
Opening in BLOCKING MODENvMMLiteopen :Block:BlockType=261NvMMLiteBlockCreate :Block:BlockType=261Starting decoder capture loop threadquery and set capture bre dec buffer:0xffff8f47a010 ptr:0xffff8f47a010Video Resolution:1280x720
Query and set capture successful
query and set capture after dec buffer:0xffff8f47a010 ptr:0xffff8f47a010EAGAIN
Gtk-Message: 16:29:07,989: Failed to load module "canberra-gtk-module"rtsp://admin:ahsg1234560<IP_ADDRESS>:554/streaming/channels/101:poll time outrtsp://admin:ahsq1234560<IP_ADDRESS>:554/streaming/channels/101 Reconnectrtsp://admin:ahsg123456@<IP_ADDRESS>:554/streaming/channels/101:poll time out
-Rtspclientusername:adminpassword:ahsg123456url:rtsp://<IP_ADDRESS>:554/streaming/channels/101host:<IP_ADDRESS>
port:554
connect timeout
connectToserver ret:-1tsp://admin:ahsg1234560<IP_ADDRESS>:554/streaming/channels/101 ReconnectSegmentation fault(core dumped)nvidia@ubuntu:~/jetson dec 5.0.2/builds

rtsp客户端析构函数有问题，已修复

rtsp客户端析构函数有问题，已修复

按照那样改还是不行
rtsp://admin:ahsg123456@<IP_ADDRESS>:554/Streaming/Channels/101 Reconnect
Segmentation fault (core dumped)


How can I keep the zoom of UI

Describe your problem here.
For example, I can use
setProperty('defaultCamZoom',zoomamount)
to keep camgame zoom
But how can I keep the zoom of UI?
setProperty('camHUD.zoom',x)
can not keep the zoom of UI.
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

setProperty('camZooming',false)

setProperty('camZooming',false)

thanks a lot


Having issues getting console output from inside MailboxProcessor?

Hello, appreciate all the work put into this project!
I'm having an issue with getting console output, and I'm too smoothbrained to figure it out.
My library is designed to be referenced inside a .fsx file, to expose a bunch of primitives to the user.
I want to use SpectreCoff from inside a MailboxProcessor. Something like this:
  let private printer (mbox: MailboxProcessor<AType>) =

      let rec ringRing () = async {
          let! msg = mbox.Receive ()
          MCD (Color.Blue, [Decoration.Bold], $"{msg.someProperty}") |> toConsole
          do! ringRing ()
      }

      ringRing ()

printer has a public function that takes my AType and Posts into the mailbox.
When I call into the library to do the printing, I get nothing at all. Which is strange.
However, if I reference SpectreCoff and the Spectre.Console inside the .fsx AND print something visible to the console, then I also get the console output from inside the mailbox.
So I must

ref the packages in the .fsx
open the namespaces in the .fsx
print something visible from the .fsx
get wanted output.

If I try to just NL |> toConsole that isn't enough, strangely.
Any ideas why this is? I could bodge something in that 'wakes up' the console output, but I feel like I shouldn't have to. Am I missing something in the docs about configuring the console before using it?
Thanks for having a look.

As an experiment, I added MCD (Color.Blue, [Decoration.Bold], "blah") |> toConsole to the public function that calls into the mailbox, and that let the console writes inside the mailbox show up:
  let public prettyPrint res =
      MCD (Color.Blue, [Decoration.Bold], "blah") |> toConsole
      let mbox = startPrinter ()
      res |> List.iter mbox.Post
      mbox.Dispose ()

So this doesn't seem specific to .fsx usage, but something about the mailbox itself? I dunno.

Heya guy, still looking for some clarity on this. Any idea what might be happening?

Hi @jmhickman, have been busy during the week, but hopefully I can look into it on the weekend. I do feel like some context is missing - what kind of application is running this, etc.?
There is no 'console initialization code' required, ususally, as you can see from our cli command examples. Maybe just try and call Spectre.Console for printing directly (smthn like AnsiConsole.Write ...) and see if it still happens?

I'm not sure what more context I can provide. I'm writing a library that will be used from .fsx files. The only code that uses SpectreCoff/Spectre is inside this MailboxProcessor.
I tried placing the raw AnsiConsole.WriteLine inside the mailbox like so:
    let private printer (mbox: MailboxProcessor<MyType>) =

        let rec ringRing () = async {
            let! msg = mbox.Receive ()
            AnsiConsole.WriteLine "blah"
            //MCD (Color.Blue, [Decoration.None], $"{msg.someProperty}") |> toConsole
            do! ringRing ()
        }
        ringRing ()

I get no output at all to the console when the mailbox receives a message.
If I add AnsiConsole.WriteLine "blah" to the public prettyPrint function(outlined in my second message), I get the output "blah", plus a "blah" for every message sent to the mailbox.

@jmhickman yeah, async expressions in Fsharp are 'cold'. Maybe switching to a task expression would already be enough for you, depending on the context of the outer application.
Anyway, I'll close this issue as it has nothing to do with SpectreCoff. Happy coding!


fix: changed DB config

Is your pull request related to a problem? Please describe
Fixed issue #27
Steps done -

[x] Install psycopg2
[x] Install flask-sqlalchemy
[x] freeze requirements.txt
[x] create models folder and add -> init.py, game_users.py, messages.py

Steps remaining-

[ ] add tests

Checklist

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] All new and existing tests passed.
[ ] The title of my pull request is a short description of the requested changes.

@aboullaite went through CI, any idea why is the build failing didn't understand why exactly.
Also any resources to add tests?

The log says: ERROR: Invalid requirement: 'Flask-SQLAlchemy>=2.4.4,2.4.5' (from line 16 of /requirements.txt)

@vj-codes the build is still failing! is the app not complaining at your env ? do you have docker on your machine! You can probably try to run Dockerfile and add any missing dependencies.

@aboullaite @elinguiuriel I did not change anything, works completely fine locally.
I don't use docker , should the packages mentioned above be added ?

@aboullaite @elinguiuriel I did not change anything, works completely fine locally.
I don't use docker , should the packages mentioned above be added ?

@vj-codes it's good to know that the code work locally, that does not guarantee that it will work on another computer. Maybe you use your computer for many other things and you already have the dependencies installed, think about those that do not have them already installed.
The code is tested and deployed using Docker to mimic installation in a totally new environment, if you pass the docker installation then we can be sure that the code will work merely everywhere.
Just make sure to add the instructions described above in the 2 in Dockerfile and dev.Dockerfile and you may pass the tests
dev.Dockerfile
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

FROM python:3.7-alpine
LABEL MAINTAINER "Facebook Developers Circles"

RUN apk add --update --no-cache postgresql-client
RUN apk add --update --no-cache --virtual .tmp-build-deps \
    gcc libc-dev linux-headers postgresql-dev

RUN apk add --no-cache python3-dev libffi-dev gcc musl-dev make
RUN pip install gunicorn[gevent]

COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt

WORKDIR /app
COPY ./src .

RUN pybabel compile -d locales

EXPOSE 5000

CMD gunicorn "fbosbot:create_app()" --worker-class gevent --workers 5 --bind <IP_ADDRESS>:$PORT --max-requests 10000 --timeout 5 --keep-alive 5 --log-level info

Dockerfile
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

FROM python:3.7-alpine
LABEL MAINTAINER "Facebook Developers Circles"

WORKDIR /app

COPY ./src .

RUN apk add --update --no-cache postgresql-client
RUN apk add --update --no-cache --virtual .tmp-build-deps \
    gcc libc-dev linux-headers postgresql-dev

COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
RUN pybabel compile -d locales

@elinguiuriel @aboullaite The build is successful now!
What shall be done for tests and I don't exactly understand what is to be done model structure mentioned in the issue.

@elinguiuriel @aboullaite The build is successful now!
What shall be done for tests and I don't exactly understand what is to be done model structure mentioned in the issue.

You only have to test like this when you install a new package. if possible uses docker to not be biased by your environment preinstalled dependencies
When you simply modify code, make sure this command pass without error
(venv) $ pytest && flake8

the CI/CD workflows use it to check PR and merge to the master branch

@elinguiuriel 5 tests passing one failing

@vj-codes What's the status of this one ? were you able to add @elinguiuriel changes ?

@vj-codes What's the status of this one ? were you able to add @elinguiuriel changes ?

Yes @aboullaite I added it, everything is working good only concern is that one test is failing(shared screen shot above)

@vj-codes  you need to set up verify_token in your env and It should work proper.
LGTM @elinguiuriel any more change requests?


Math Block Shortcut

Firstly, thanks for the insanely fast responses/fixes that you guys put out.
Here is the story:
Before the most recent graphical update, we can use $$ to trigger a math block.
But now $$ is only considered as pure text instead of the beginning of a math block.
Also, there is no keyboard shortcut for math in the settings.
Remedies for this in the next update?

Mac Sierra
Chrome
Web Editor

@SamyPesse Any updates?


Remove DatabaseBackedTest.insertSiteData()

This function was convenient when the setup process for database-backed tests was
more complex and required inserting rows into several tables with fixed IDs, but
it's now so simple as to not be worth the reduction in clarity in the tests.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#2275
#2274
#2273  👈
#2272
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sgrimm and the rest of your teammates on  Graphite

Merge activity

Aug 12, 7:24 PM EDT: @sgrimm merged this pull request with Graphite.


Code scrolls when typing with markdown preview open

Issue Type: Bug
VS Code version: Code 1.30.1 (dea8705087adb1b5e5ae1d9123278e178656186a, 2018-12-18T18:12:07.165Z)
VS Code version: Code - Insiders 1.31.0-insider (2803a8655cf5e05066a4ee47cce303eefca6408c, 2018-12-20T09:10:39.545Z)
OS version: Windows_NT x64 10.0.17134
Steps to Reproduce:

Open a markdown file longer than your screen height
Move text cursor near the end of the file
Type

Expected result: Markdown preview doesn't affect code scroll position unless I directly scroll the preview.
Actual result: Code scrolls around when typing.

Does this issue occur when all extensions are disabled?: Yes

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 x 2496)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
7.87GB (1.06GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (63)

Extension
Author (truncated)
Version

livs
abh
1.0.6

html-snippets
abu
0.2.1

vscode-base64
ada
0.1.0

vscode-caniuse
aka
0.5.3

ts-loader-problem-matcher
alq
0.3.0

random-string-password-generator
bib
1.0.2

unique-lines
bib
1.0.0

cobol
bit
4.0.0

simple-react-snippets
bur
1.2.2

npm-intellisense
chr
1.3.0

path-intellisense
chr
1.4.2

gitignore
cod
0.6.0

indent4to2
Com
0.1.2

vscode-svgviewer
css
1.4.7

vscode-gist
dba
1.0.0

xml
Dot
2.4.0

vscode-generate-getter-setter
DSK
0.5.0

vscode-babel-coloring
dza
0.0.4

EditorConfig
Edi
0.12.5

tslint
eg2
1.0.42

vscode-npm-script
eg2
0.3.5

php-debug
fel
1.12.6

php-intellisense
fel
2.3.10

php-pack
fel
1.0.2

vscode-solution-explorer
fer
0.3.0

vscode-auto-open-markdown-preview
hnw
0.0.4

beautify
Hoo
1.4.7

Ionide-FAKE
Ion
1.2.3

Ionide-Paket
Ion
1.12.0

reg
ion
0.0.2

debugger-for-phantomjs
ira
0.1.1

csharpextensions
jch
1.3.0

jenkins-declarative-support
jmM
0.1.0

latte
Kas
0.1.1

refactorix
kri
0.3.6

tgit-cmds
mbi
1.2.0

sort-typescript-imports
mic
1.4.1

xml-format
mik
1.0.1

ecdc
mit
0.12.0

mssql
ms-
1.4.0

cpptools
ms-
0.20.1

csharp
ms-
1.17.1

mono-debug
ms-
0.15.8

node-debug2
ms-
1.31.1

PowerShell
ms-
1.10.2

team
ms-
1.144.1

debugger-for-chrome
msj
4.11.1

quicktype
qui
12.0.46

vscode-sort-json
ric
1.13.0

vscode-icons
rob
8.0.0

annotator
ryu
0.11.0

partial-diff
ryu
1.4.0

jenkinsfile-support
sec
0.1.0

code-settings-sync
Sha
3.2.4

trailing-spaces
sha
0.2.11

vscode-hexdump
sle
1.7.2

rewrap
stk
1.9.1

es-quotes
vil
0.2.6

vscode-react-native
vsm
0.7.0

change-case
wma
1.0.0

JavaScriptSnippets
xab
1.7.1

editorconfig-vscode-snippet
zgu
0.2.0

vscode-open-in-github
ziy
1.3.6

This looks like a duplicate of #53545

Please share the source of your markdown file

@mjbvz Here's the source: https://gist.githubusercontent.com/the-ress/5f6c071c50db5caf82783e04a07d2a4e/raw/55df1e1e77cd04a443d3be2d9512f87b89b13cf9/sample.md

I am seeing this on Version 1.35.1 for MacOS.  Just did a google search after I experienced this issue and came across this thread.  I also had a pending update to 1.36.0 that I installed, and still see the same behavior.

I'm experiencing the same issue. It seems to be somehow caused by a lot of badges/shields in one line.
Here is my affected file: https://gist.github.com/BjoernPetersen/0510004e98161626741e31adc4400109

Hi there also have this nasty bug with this file
https://gist.github.com/Kwaadpepper/a4568f1ed718cab1ec3b59d3d7ac3e76

As for markdown related extension i have
Nom : Markdown All in One
ID : yzhang.markdown-all-in-one
Description : All you need to write Markdown (keyboard shortcuts, table of contents, auto preview and more)
Version : 2.4.2
Serveur de publication : Yu Zhang
Lien de la Place de marché pour VS : https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one

Nom : markdownlint
ID : davidanson.vscode-markdownlint
Description : Markdown linting and style checking for Visual Studio Code
Version : 0.30.2
Serveur de publication : David Anson
Lien de la Place de marché pour VS : https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint

I see this behavior consistently if there is a scaled image in the preview pane. In my CSS I set the max-width of images to 100%. I think this is what produces the issue.

Another clue: turning off markdown.preview.scrollPreviewWithEditor prevents the problem (but also obviously stops the preview position from synching with the editor).

I think the problem went away in the previous release. At least I didn't notice it. But now it's back again. Very frustrating bug.

Maddening issue. The markdown.preview.scrollPreviewWithEditor workaround does not work anymore.

Face the same problem with this version

Have to use https://hackmd.io/ instead of it because of this annoying bug

Same issue. for me it scrolls upwards.

Related to #89930?

I have the same issue, and I noticed that once I insert an image in it ,this will happen, but when I didn't have images in it, the preview works fine, it has been there for many versions and I nearly encounter it with every version I've used(from the mid of last year.).

Also experiencing this issue, which seems to be new (I've previously edited the same document in Markdown Preview mode without having the page scrolling up one line every time I type a character)
It's been reported a number of times it seems. There's a closed issue here https://github.com/microsoft/vscode/issues/57216

I have the same issue, and I noticed that once I insert an image in it ,this will happen, but when I didn't have images in it, the preview works fine, it has been there for many versions and I nearly encounter it with every version I've used(from the mid of last year.).

With the latest version, 1.51.1, this was fixed, thank you !

Still reproducible with 1.51.1!
As mentioned is comment out my embedded images, which solved the issue for me...

The bug is still open on v1.52.0.
Version: 1.52.0 (system setup)
Commit: 940b5f4bb5fa47866a54529ed759d95d09ee80be
Date: 2020-12-10T22:45:11.850Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19042

I used workaround by open 2 visual code editor, one with readme editor and other with readme Preview. This have stopped the scrolling to the middle on the readme editor.  which work much faster.

The bug is still open.
Version: 1.53.0
Commit: 8490d3dde47c57ba65ec40dd192d014fd2113496
Date: 2021-02-03T16:01:04.046Z (3 days ago)
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 20.2.0

See https://github.com/microsoft/vscode/issues/115864#issuecomment-774337246.
You should try disabling all the extension.