It doesn't work with .html.erb files

I couldn't make it work in .html.erb files!
When I'm editing a pure HTML file:

But when I change to .html.erb:

I'm currently using the Ruby extension https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby

Hi @ricardoruwer i think i might found the issue.
To make sure i found the right issue source, can you install this and try?
https://marketplace.visualstudio.com/items?itemName=CraigMaslowski.erb
After installing this, if it works we will handle this in the future.

Thank you for the quick answer ❤
I installed this new extension, and:
The Emmet doesn't work:
e.g. when I type h1 and press TAB it doesn't create the

.
But the IntelliSense works :)
e.g. when I type

 the HTML classes appear in the list...

Actually, I'm not sure... 🤔
Forget what I said...
I think this extension you said makes no difference...
When I change the language mode (CMD+K M) and type erb I have 2 options on the list:

html.erb
erb

In this html.erb nothing works (emmet and any other autocomplete)
(I don't know if the emmet operation is a responsibility of this extension)
And in this erb just the class completion works;
e.g. when I type <h1 cla there is one class on the list, and when I select it, it completes just with class but I think it might complete with class="", you know?
And when I type e.g. <h1 class=" the class completion works
But apparently this extension you said https://marketplace.visualstudio.com/items?itemName=CraigMaslowski.erb makes no difference to this

Hmm.. Strange. Let me evaluate on a fresh installation.

It'll be nice to add support for Elixir (.html.eex) files as well 😄

.eex extension added.

.eex support has been released on marketplace. You may need an another extension to trigger language specific things.

Thanks for the eex support ! However, the language name seems incorrect, so it doesn't work.
The 2 major language extensions for Elixir uses different language names :

(vscode-elixir uses HTML (Eex)
(elixirLS uses HTML (EEx)

Could you please add HTML (Eex) and HTML (EEx) support ? That would made this plugin the first to support this feature for elixir afaik, since all the other ones seems inactive.
Thanks !

I didn't know that one exists. Yes, As soon as i back to home, i will add this support.
P.S.: You will need those extension as well to work with this extension. They are dependent.

Amazing, thank you for responding so quickly ! 👍 💯

BTW, a quick question while im on remote:
It is HTML E(E|e)x, right? Not EEx and Eex. It has HTML  at start.

Yes !
Here are the exact names for both cases :
HTML (Eex)
HTML (EEx)
They both contains HTML  and parenthesis.

Okay. I will prepare a custom build as soon as possible.
Please also note that, This will also includes #49 and #50. #49 is about fetching remote stylesheet from meta links in HTML compatible files instead of permanent setting in vscode.

v1.7.0
@clementoriol, Please can you try this version:
html-slim-scss-css-class-completion-1.7.0.zip

@gencer Ok, so I had time to test this !
Tested both with vscode-elixir and ElixirLs extensions.

✅ works great with vscode-elixir (lang set to HTML (Eex))
❌ doesn't work with ElixirLS (lang set to HTML (EEx))

Did you had the chance to add both languages ? I know the case difference is a bit annoying, but sadly the libraries haven't done anything yet to harmonize it, afaik

Interesting. See, I already added EEx and Eex (lowercase and uppercase). I will try to find out why it didn't worked.

Nevermind, it actually works, I guess it just took some time to index the scss :)
So, looks good to me, thank you 🎉🎉🎉

Ahh :=) No worries! If your project is big, it might take some time to warm up on first time. Later, it will incrementally build and re-cache.
Changes are on master. I will publish on marketplace v1.7.0 soon.

@clementoriol I found the issue. Fixed in master will be published in few minutes on marketplace. Please test v1.7.1 for EEx (uppercase E)


[MM-46424] Fix 3-dot menu not losing focus after clicking outside (Windows)

Summary
On Windows the 3-dot button(that opens the app menu) would not lose focus after closing the menu or clicking outside of it.
The problem was that the BrowserView of the top bar(3-dot button, server dropdown, tabs) could not fire the focusout event on the 3-dot because it can't "see" outside of its bounds (when a user would click outside of it).
To address that I used a state variable inside the MainApp component that changes the style of the button when it is hovered, or when the menu opens/closes.
I also tested that pressing the Alt button on windows focuses the 3-dot button
Ticket Link
https://mattermost.atlassian.net/browse/MM-46424
Device Information
This PR was tested on:

Windows 10 Pro, version 21H2

Screenshots
https://recordit.co/huulXU3KQV
Release Note
NONE

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/desktop/23293
https://circleci.com/gh/mattermost/desktop/23292
https://circleci.com/gh/mattermost/desktop/23291

Artifact links:
https://output.circle-artifacts.com/output/job/daf707ef-ee86-4443-b346-5aa70e1ddc00/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-mac-m1.dmg
https://output.circle-artifacts.com/output/job/daf707ef-ee86-4443-b346-5aa70e1ddc00/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-mac-x64.dmg
https://output.circle-artifacts.com/output/job/cf9a8e03-e688-46cc-802c-af8d0bdfbc07/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-win-ia32.zip
https://output.circle-artifacts.com/output/job/cf9a8e03-e688-46cc-802c-af8d0bdfbc07/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-win-x64.zip
https://output.circle-artifacts.com/output/job/263a3e62-2363-4423-8562-95e1b691e728/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-linux-x64.tar.gz

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/desktop/23415
https://circleci.com/gh/mattermost/desktop/23414
https://circleci.com/gh/mattermost/desktop/23413

Artifact links:
https://output.circle-artifacts.com/output/job/b797957f-921b-4d61-879b-0ecb6b8a2fe1/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-win-ia32.zip
https://output.circle-artifacts.com/output/job/b797957f-921b-4d61-879b-0ecb6b8a2fe1/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-win-x64.zip
https://output.circle-artifacts.com/output/job/921fe31b-0b0f-4f9d-ab05-a11065700946/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-linux-x64.tar.gz
https://output.circle-artifacts.com/output/job/3bcbf395-70a7-4e9e-badb-07e3011f1645/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-mac-m1.dmg
https://output.circle-artifacts.com/output/job/3bcbf395-70a7-4e9e-badb-07e3011f1645/artifacts/0/tmp/artifacts/mattermost-desktop-5.2.0-develop.1-mac-x64.dmg

Cherry pick is scheduled.

cc @amyblais We cherry-picked this to v5.2 since it was needed for some other changes.


SMTP SASL LDAP authentication failure: Password verification failed

First of thanks a lot for this awesome image!
But I can't seem to get over this last hurdle... I successfully managed to setup IMAP authentication over LDAP using the following environment variables:
      - LDAP_SERVER_HOST=ldap_app
      - LDAP_SEARCH_BASE=ou=people,dc=frostbolt,dc=ch
      - LDAP_BIND_DN=cn=admin,dc=frostbolt,dc=ch
      - LDAP_BIND_PW=*PASSWORD*
      - LDAP_QUERY_FILTER_USER="(&(mail=%s)(mailEnabled=TRUE))"
      - LDAP_QUERY_FILTER_GROUP="(&(mailGroupMember=%s)(mailEnabled=TRUE))"
      - LDAP_QUERY_FILTER_ALIAS="(&(mailAlias=%s)(mailEnabled=TRUE))"
      - LDAP_QUERY_FILTER_DOMAIN="(&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))"
      - DOVECOT_PASS_FILTER="(&(objectClass=PostfixBookMailAccount)(cn=%u))"
      - DOVECOT_PASS_ATTRS="mail=user,userPassword=password"
      - DOVECOT_USER_FILTER="(&(objectClass=PostfixBookMailAccount)(cn=%u))"

But when I tried to setup SMTP authentication using the following environment variables...
      - SASLAUTHD_MECHANISMS=ldap
      - SASLAUTHD_LDAP_SERVER=ldap_app
      - SASLAUTHD_LDAP_BIND_DN=cn=admin,dc=frostbolt,dc=ch
      - SASLAUTHD_LDAP_PASSWORD=*PASSWORD*
      - SASLAUTHD_LDAP_SEARCH_BASE=ou=people,dc=frostbolt,dc=ch
      - SASLAUTHD_LDAP_FILTER="(&(cn=%u)(mailEnabled=TRUE))"

I get the following error messages and can't authenticate with the SMTP server:
Jun 10 13:57:43 1bc46fc7048b postfix/submission/smtpd[2893]: connect from unknown[<IP_ADDRESS>]
Jun 10 13:57:43 1bc46fc7048b postfix/submission/smtpd[2893]: Anonymous TLS connection established from unknown[<IP_ADDRESS>]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jun 10 13:57:43 1bc46fc7048b postfix/submission/smtpd[2893]: warning: SASL authentication failure: Password verification failed
Jun 10 13:57:43 1bc46fc7048b postfix/submission/smtpd[2893]: warning: unknown[<IP_ADDRESS>]: SASL PLAIN authentication failed: authentication failure
Jun 10 13:57:43 1bc46fc7048b postfix/submission/smtpd[2893]: disconnect from unknown[<IP_ADDRESS>] ehlo=2 starttls=1 auth=0/1 quit=1 commands=4/5

My LDAP setup:

Thanks for any help I'm totally lost at the moment.

No strange characters in the password that might get escaped?

No, used an alphanumeric password

First of all, you're using SASL for SMTP auth, not SMTP directly; try
disabling SASL and see if that works.
Or do you insist on using SASL for auth - in that case: does your LDAP
enforce encryption?
I had the same issue, IMAP was directly talking to LDAP and used
encryption, but SASL does not; Make sure that
testsaslauthd -u  -p
returns with success; if it does not and your LDAP server requires
communication to be TLS encrypted, try adding
ldap_start_tls: yes
to your /etc/saslauthd.conf
But as I said, maybe disabling SASL already does the trick and spares you
some complicated configuration quirks
-franz
On 10 June 2018 at 23:13, Marc Berchtold<EMAIL_ADDRESS>wrote:

No, used an alphanumeric password
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tomav/docker-mailserver/issues/984#issuecomment-396082472,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFnwnzZ61Q_eKNEbzZMoD3v6Gxh8o_xks5t7Yv0gaJpZM4Uhuo-
.

--
Franz Keferböck
Phone: +43 650 71 11 646
http://die-physiotherapeutin.com
Ceterum censeo genus humanum esse delendam...

Disabling SASL seemed to help but I'm not getting the following error:
Jun 11 11:08:09 74d33a3a9905 postfix/submission/smtpd[2048]: connect from mail_rainloop.1.udl4c5onbabmiuzhtpgexqi12.mail_default[<IP_ADDRESS>]
Jun 11 11:08:09 74d33a3a9905 postfix/submission/smtpd[2048]: Anonymous TLS connection established from mail_rainloop.1.udl4c5onbabmiuzhtpgexqi12.mail_default[<IP_ADDRESS>]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jun 11 11:08:09 74d33a3a9905 postfix/trivial-rewrite[2049]: warning: dict_ldap_lookup: Search error -7: Bad search filter
Jun 11 11:08:09 74d33a3a9905 postfix/trivial-rewrite[2049]: warning: virtual_alias_domains: ldap:/etc/postfix/ldap-aliases.cf: table lookup problem
Jun 11 11:08:09 74d33a3a9905 postfix/trivial-rewrite[2049]: warning: virtual_alias_domains lookup failure
Jun 11 11:08:09 74d33a3a9905 postfix/trivial-rewrite[2049]: warning: dict_ldap_lookup: Search error -7: Bad search filter
Jun 11 11:08:09 74d33a3a9905 postfix/trivial-rewrite[2049]: warning: virtual_alias_domains: ldap:/etc/postfix/ldap-aliases.cf: table lookup problem
Jun 11 11:08:09 74d33a3a9905 postfix/trivial-rewrite[2049]: warning: virtual_alias_domains lookup failure
Jun 11 11:08:09 74d33a3a9905 postfix/submission/smtpd[2048]: NOQUEUE: reject: RCPT from mail_rainloop.1.udl4c5onbabmiuzhtpgexqi12.mail_default[<IP_ADDRESS>]: 451 4.3.0<EMAIL_ADDRESS>Temporary lookup failure<EMAIL_ADDRESS><EMAIL_ADDRESS>proto=ESMTP helo=<mail.frostbolt.ch>

Not sure if my ldap schema is at fault or my configuration?

Solved:

Disabled SASL and used SMTP directly for authentication
Removed " characters from LDAP_QUERY_FILTER_USER, LDAP_QUERY_FILTER_GROUP, LDAP_QUERY_FILTER_ALIAS & LDAP_QUERY_FILTER_DOMAIN environment variables

Maybe this is an issue with the documentation? Not sure because it doesn't seem to matter in the dovecot configuration but breaks postfix.
This is my current env configuration for anyone struggling with the same issue:
      - ENABLE_LDAP=1
      - LDAP_SERVER_HOST=ldap_app
      - LDAP_SEARCH_BASE=ou=people,dc=frostbolt,dc=ch
      - LDAP_BIND_DN=cn=admin,dc=frostbolt,dc=ch
      - LDAP_BIND_PW=*PASSWORD*
      - LDAP_QUERY_FILTER_USER=(&(mail=%s)(mailEnabled=TRUE))
      - LDAP_QUERY_FILTER_GROUP=(&(mailGroupMember=%s)(mailEnabled=TRUE))
      - LDAP_QUERY_FILTER_ALIAS=(&(mailAlias=%s)(mailEnabled=TRUE))
      - LDAP_QUERY_FILTER_DOMAIN=(&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))
      - DOVECOT_PASS_FILTER=(&(objectClass=PostfixBookMailAccount)(cn=%u))
      - DOVECOT_PASS_ATTRS=mail=user,userPassword=password
      - DOVECOT_USER_FILTER=(&(objectClass=PostfixBookMailAccount)(cn=%u))


Training with --fp16 fails with "call to 'select' is ambiguous"

You might already be aware of this issue, but currently unable to bench training with the --fp16 flag on any model.
System:

Threadripper 1950X
AMD X399
4x Vega FE
ROCm 1.6.4 on Ubuntu 16.04.3

Output:
jamil@fridge:~/dl/plaidbench (master=) % python plaidbench.py --fp16 --train mobilenet
Using PlaidML backend.
Loading the data
Downloading data from http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
170352640/170498071 [============================>.] - ETA: 0sINFO:plaidml:Initializing device gfx900.0: "gfx900", vendor "Advanced Micro Devices, Inc."
INFO:plaidml:Initializing device gfx900.1: "gfx900", vendor "Advanced Micro Devices, Inc."
INFO:plaidml:Initializing device gfx900.2: "gfx900", vendor "Advanced Micro Devices, Inc."
INFO:plaidml:Initializing device gfx900.3: "gfx900", vendor "Advanced Micro Devices, Inc."
INFO:plaidml:Opening device "gfx900.0": "Advanced Micro Devices, Inc. gfx900"

Model loaded.
Compiling and running initial batch, batch_size=1
INFO:plaidml:Analyzing Ops: 1176 of 2381 operations complete
INFO:plaidml:Analyzing Ops: 2115 of 2381 operations complete
/tmp/AMD_19188_421/t_19188_423.cl:181:46: error: call to 'select' is ambiguous
                      half guarded_pre_agg = select((half)0, pre_agg, ((-1&&(((0+(1*(k0_gid+k0)))+(2*(x0_gid+x0)))<=223))&&(((0+(1*(k1_gid+k1)))+(2*(x1_gid+x1)))<=223)));
                                             ^~~~~~
/BuildAgent/work/cec912464462692c/opencl/drivers/opencl/library/amdgcn/headers/build/lnx64a/B_rel/<stdin>:11413:19: note: candidate function
int __ovld __cnfn select(int a, int b, int c);
                  ^
/BuildAgent/work/cec912464462692c/opencl/drivers/opencl/library/amdgcn/headers/build/lnx64a/B_rel/<stdin>:11414:20: note: candidate function
uint __ovld __cnfn select(uint a, uint b, int c);
                   ^
... [repeats for many lines] ...

Related to plaidml/plaidml#29


How to convert TF1.12 checkpoints to saved/keras model format.

I have a TTS model checkpoints trained on TFv1.12. For inferencing, I have used
self.session = tf.Session(config=config) self.session.run(tf.global_variables_initializer()) saver = tf.train.Saver() saver.restore(self.session, checkpoint_path)
For its TFlite conversion, saved/keras model is required. How do I convert this model into TFLite.

@nehasoni3,
For converting to .tflite format, please go through this official guide.
Also TensorFlow 1.x is not actively supported, hence I'd recommend updating TensorFlow to the latest stable version v2.4. Thanks!

@nehasoni3,
For converting to .tflite format, please go through this official guide.
Also TensorFlow 1.x is not actively supported, hence I'd recommend updating TensorFlow to the latest stable version v2.4. Thanks!

@nehasoni3,
For converting to .tflite format, please go through this official guide.
Also TensorFlow 1.x is not actively supported, hence I'd recommend updating TensorFlow to the latest stable version v2.4. Thanks!

Thanks for reply.
I have model in TFv1.12. I have tried this..
checkpoints are converted into saved model but can not converted into TFlite, its do not have signature_def

@nehasoni3,
For converting to .tflite format, please go through this official guide.
Also TensorFlow 1.x is not actively supported, hence I'd recommend updating TensorFlow to the latest stable version v2.4. Thanks!

Thanks for reply.
I have model in TFv1.12. I have tried this..
checkpoints are converted into saved model but can not converted into TFlite, its do not have signature_def

Also TensorFlow 1.x is not actively supported, hence I'd recommend updating TensorFlow to the latest stable version v2.4. Thanks!

@nehasoni3,
Could you please check if you are facing the same issue with TF v2.4 as well? Thanks!

Also TensorFlow 1.x is not actively supported, hence I'd recommend updating TensorFlow to the latest stable version v2.4. Thanks!

@nehasoni3,
Could you please check if you are facing the same issue with TF v2.4 as well? Thanks!


Review and update the exported API documentation

Review all the API docs, make sure all the exported APIs have documentation and follow the golang conventions (i.e. start with the API name). Check that lists are rendered correctly in godoc, i.e. are prefixed with enough spaces.

My notes on less than optimal exported APIs (These are breaking API changes and should be approached after f3 is activated and running on mainnet):

ec.Tipset vs. gpbft.Tipset : ideally have a super type that plays nice with both.
gpbft.Tipset PowerTable and Commitments should use SupplementalData type
SupplementalData type should rename PowerTable to have CID in it.
gpbftHost vs gpbftRunner
gpbftHost should refactor out the logic of CommitteeProvider and ProposalProvider for easier testing.
Both CommitteeProvider and ProposalProvider should take context.

while at it, review the rest of the gpbft APIs for adding context.

Get rid of the giant gpbft.Host interface; it is too verbose.
Make root F3 type take Options in favour of less constructor args.
Break quorum support types out of gpbft/gpbft.go to reduce LOC on that file and clearer unit testing.

while at it, also review gpbt/participant.go for similar cleanup.

Introduce a higher level signer/verifier type
Ideally, remove signing marshaller entirely and rely on payload marshal receiver function.
introduce a more ergonomic APIs to work with signature aggregate creation: bitfield takes int64, indices are int, some of the functionality is in QuorumResult but not sorting of indices.
Fake EC with clock hidden inside context: just take it as option.
sim.singing, vs blssig vs higher level signign apis; unify.
Interface for certstore: something like cert resolver necessary for simplifying the gpbftHost logic and separating out committee and proposal providers.


CAMEL-11540: Fixed issue with turning off ProducerCache

PR for https://issues.apache.org/jira/browse/CAMEL-11540.
ConcurrentLinkedHashMap attempts to evict entries when the max capacity is zero, eventually the service is stopped. This results in camel-rabbitmq, camel-netty4, camel-netty and camel-jms producers not possible to disable ProducerCache.
Thanks,
Saravanakumar

Thanks the PR has been merged. Can you close this?


Name clash between memory module and memory component

https://github.com/STEllAR-GROUP/hpx/blob/5ac13348b63d3f768d1155b202522258a12f96f1/cmake/HPX_AddComponent.cmake#L306
creates a name clash on windows creating a component target (components/performance_counters/memory) with build output hpx_memory.lib which is already used be the module hpx_memory
https://github.com/STEllAR-GROUP/hpx/blob/5ac13348b63d3f768d1155b202522258a12f96f1/components/performance_counters/memory/CMakeLists.txt#L28
https://github.com/STEllAR-GROUP/hpx/blob/5ac13348b63d3f768d1155b202522258a12f96f1/libs/core/memory/CMakeLists.txt#L24

The memory counters use the CMake target name memory_component. I have not seen any name clashes here.

target name

It is not the target name but the output name / output path which clashes on windows. The target name is different but the output is the same which make ninja throw up with telling me that there are two rules to create <some_base_path>/hpx_memory(d).lib.
Seems to only happen if you try to build static libs (HPX_WITH_STATIC_LINKING ON and BUILD_SHARED_LIBS OFF) on windows which doesn't really seems to be supported (Maybe configure should catch that.).

Seems to only happen if you try to build static libs (HPX_WITH_STATIC_LINKING ON and BUILD_SHARED_LIBS OFF) on windows which doesn't really seems to be supported (Maybe configure should catch that.).

Ahh, we don't test this. Historically, the MSVC linker was not able to link everything as the static libraries for the core library were too large. We have not tried ever since ;-)

Historically

When was that? When the x86 toolchain was still the default? (Could have switched to the x64 toolchain) I mean hpx is probably not larger than vtk with vtk-m and python bindings enabled.

Historically

When was that? When the x86 toolchain was still the default? (Could have switched to the x64 toolchain) I mean hpx is probably not larger than vtk with vtk-m and python bindings enabled.

Yes, could have been. I just have not tried (or even cared) to link statically. Any help you may give would be highly appreciated.

I'll change the target names.


UI adjustments

Small adjustments of the download/legend sidebar and other changes (icons/buttons size).

Before
After


SendKeys sends "ß" instead of "-"

Description
While trying to send ",.-öä#ü+ß" SendKeys transmits ",.ßöä#ü+ß". Obviously the dash is replaced by a (German) "ß". I first got aware of the issue when I tried to send a regular Guid to the text box where all "-" were replaced by "ß".
If the OS keyboard layout is switched to ENG, the "-" remains and the example works just fine. Btw: on a German keyboard "ß" is at the place where "-" is on an English one.
Environment

simple WPF application, .Net FW 4.6.1
testing class library, xUnit, .Net FW 4.6.1
Win10Pro (1909), German (OS language, keyboard layout)
WinAppDriver 1.2.1910.2002
Appium.WebDriver 4.1.1

Can you provide server logs via gist?

Thank you Laolu for the quick response and sorry for bothering.
It seems like this is rather a case for the WinAppDriver guys, who missed the point, that outside US most people do not use an US keyboard layout. :-/
Unfortunately, that decreases this toolsets usabilty alot.

That's a shame


Add updates to Lab intro

Preview is available here:http://developers-pr994.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr994.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr994.previews.kube001.services.stellar-ops.com

RPC method payload will change in this PR (for the mobile screenshot).

@quietbits I removed that image because the mobile screen looks really off on docs page.

Preview is available here:http://developers-pr994.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr994.previews.kube001.services.stellar-ops.com


some useful modifications and additions

user broadcast
broadcast with reply
broadcast formatting
total chat users count
ist in couple.py
slap module

i have checked it with my bota and its working perfectly
i dont think its perfect
lemme know if there is any errors or mistakes

removed slap


Fix langchain integrations doc page

Description
This PR includes the proposed changes in #9548.
Fixes #9548
Type of Change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] I stared at the code and made sure it makes sense

Suggested Checklist:

[ ] I have performed a self-review of my own code
[ ] My changes generate no new warnings

Hello. I'm not familiar with .rst files so I am open to any feedback

eh seems fine to me too
Although I will note, the langchain_helpers folder in general is pretty un-maintained. We've implemented most of it in house these days.


How to configure the registers of OV5642 to modify the image's resolution?

I need take a picture with OV5642 that has a QVGA resolution, this task for beginning.
I hope you can help me
Thank you so much.

You have to use our ready to use example to get QVGA image.

I have the quite the same problem - It all works nice and easy when using the example, but when I try to change the res to other than QVGA (320x240), it just doesn't do it.
I tried copying the line:
myCAM.OV5642_set_JPEG_size(OV5642_1024x768); delay(1000);
into many places, but my camera still does pictures only in 320x240:
Code responsible for camera setup and taking the picture.
read_fifo_burst is basically transferring the image to a server and since it works on the data from the camera, I believe the mistake must be somewhere in camera setup.
#include <SPI.h>
#include <Wire.h>
#include <ArduCAM.h>
#include "memorysaver.h"

#define   FRAMES_NUM    0x00
const int CS = 4;
bool is_header = false;
ArduCAM myCAM(OV5642, CS);
uint8_t read_fifo_burst(ArduCAM myCAM);

void setup()
{
	Serial.begin(115200);
	Serial.println(F("INIT"));
	pinMode(CS, OUTPUT);
	SPI.begin();
	myCAM.set_format(JPEG);
	myCAM.InitCAM();
	myCAM.OV5642_set_JPEG_size(OV5642_1024x768); delay(1000);
	myCAM.set_bit(ARDUCHIP_TIM, VSYNC_LEVEL_MASK);
	myCAM.clear_fifo_flag();
	myCAM.write_reg(ARDUCHIP_FRAMES, FRAMES_NUM);
	Serial.println(F("takePic"));
	// call the camera to take the shot and write it onto SD card.
	takePic();

	read_fifo_burst(myCAM);
	//Clear the capture done flag
	myCAM.clear_fifo_flag();
	delay(5000);
}

void loop() {
	delay(10000);
}

void takePic() {
	myCAM.flush_fifo();
	myCAM.clear_fifo_flag();
	//Start capture
	myCAM.start_capture();
	while (!myCAM.get_bit(ARDUCHIP_TRIG, CAP_DONE_MASK));
}

@uacnix
Yes, If the resolution cannot be configured normal, you will can't get the right resolution.
Have you tested our video streaming demo?https://github.com/ArduCAM/Arduino/blob/master/ArduCAM/examples/mini/ArduCAM_Mini_5MP_Plus_Video_Streaming/ArduCAM_Mini_5MP_Plus_Video_Streaming.ino
I advise you try the demo we provide and you can change your code following the demo.


Tradfri has to be reconfigurated after every reboot

Home Assistant release with the issue:

98.1
Last working Home Assistant release (if known):
98.0
Operating environment (Hass.io/Docker/Windows/etc.):
 Hass.io
Component/platform:

Description of problem:
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):

Additional information:
After reboot all tradfri entities are unavailible, you have to delete the whole integration en set it up again.
After the next reboot tradfri is unavailible again.

To help @ggravlingen, please post your configuration and logs.


To Reproduce
https://afarkas.github.io/lazysizes/#examples

Yeah, if someone wants to fix. I appreciate a PR maybe even with better images.


Allow RD, CMO, and QM to be traitors

About the PR
I think we're ready for this.
Firstly, objectives already support this by having heads unable to get steal objectives for their own equipment. This is already a strong balancing tool. Yes, while these players would have greater access than your average tider syndie, I don't think any of these roles are so overpowered as to be unstoppable (as something like a HOP traitor would be) and I think that encouraging a level of distrust between departments would be interesting.
I personally am willing to try something like this as an experiment to see how players handle it. If people think there should be additional balancing factors, discuss them here.
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

add: QM, RD, and CMO players are now eligible to be traitors.

down for this let's try it

I need to say that 'canBeAntag' can be used not only for traitor mode


add custom requestId header option to terraform-boot

To allow request tracing from calling systems, terraform-boot must have an option to allow calling systems to provide their custom request Ids.

Add new optional custom HTTP header - X-Custom-RequestId
If this value is present, insert MDC key from the new header. Otherwise generate new unique UUID -> https://github.com/eclipse-xpanse/terraform-boot/blob/main/src/main/java/org/eclipse/xpanse/terraform/boot/logging/CustomRequestIdGenerator.java#L21
If the header is present, then create the terraform directory using this value.
Ensure the openApi/swagger-ui displays this header as optional correctly.

let me do it


fix(#592): Introduce build order strategy

The new build order strategy simply decides which of the already submitted builds gets picked first for execution (e.g. FIFO). This already allows to run the submitted builds in parallel to each other as long as max running builds limit has not been reached.

Run builds on same operator namespace with user defined strategy
Default strategy is "sequential" running only one single build at a time
Also support "fifo" strategy where builds are run/queued based on their creation timestamp. This strategy allows parallel builds as long as individual build dependency lists are not colliding
Users may adjust/overwrite the build order strategy via install command option, in the (local) integration platform settings or via the builder trait option
Max number of running builds limitation is not affected by the build order strategy (ensure to always obey the limitation)

Release Note
feat: Introduce build order strategy

@squakez yes, this has been my priority, too. Allowing parallel builds where possible. And then I realized that such a strategy is almost already in place.
When Integrations are independent to each other in terms of dependencies and the used Camel DSL the operator will create separate integrationkits and submit the builds in parallel to each other already. The last missing piece was to remove the single running build per namespace limitation that strictly queued all builds for a namespace (e.g. the operator namespace). Now that we have the max running builds limitation we can safely run builds in parallel once they are submitted.
The new build order strategy simply decides which of the already submitted builds gets picked first for execution (e.g. FIFO). And this already allows to run the submitted builds in parallel to each other as long as max running builds limit has not been reached.

The default build order strategy is set to sequential at the moment. Sequential strategy will queue the builds for a namespace which is exactly like it has been implemented before in Camel K v1. I wonder if we should use fifo as a new default strategy in Camel K v2 instead in order to run builds in parallel to each other as long as max running build limit has not been reached.
WDYT?

What I'd like to see as a default is the following behavior:
Given an Integration X with dependencies: a,b
Given an Integration Y with dependencies: a,b,c
Given an Integration Z with dependencies: d,e,f
When the Integrations are required to be built at the same time, the operator should be able to start a parallel build for X and Z only so that the Y will be able to reuse the Kit from X. But also we want to have a possible parallelism of Z which has no dependencies in later incremental image reuse.
I think this is what we actually miss.

Sorry, but I do not see how Y will benefit from build X. I had some local testing and I think that build Y is independent of build X. The integrationkit and the image built for Y is not building on top of X from what I can see. Maybe I am missing a piece.

Sorry, but I do not see how Y will benefit from build X. I had some local testing and I think that build Y is independent of build X. The integrationkit and the image built for Y is not building on top of X from what I can see. Maybe I am missing a piece.

As discussed offline, the incremental image build is a feature, so we should understand how to leverage that.

Yeah, I was missing a piece and image layering is working as expected. I need to improve the order strategy to actually work with the layering

@squakez I have added another build order strategy dependencies that uses the list of dependencies to queue builds that may reuse image layers of already scheduled or running builds

@squakez I have added another build order strategy dependencies that uses the list of dependencies to queue builds that may reuse image layers of already scheduled or running builds

Nice. It would be good to have an e2e test to validate the strategy, ie, an integration that depends on another really queues up until the depending kit is ready.


Blob storage upload not allowing options or setting content-type

Package Name: @azure/storage-blob

Package Version: 12.1.2

Operating system: Mac OS Catalina

[ x] nodejs

version: 12.13.0

Is the bug related to documentation in

[ ] README.md
[x ] source code documentation
[ x] SDK API docs on https://docs.microsoft.com

Describe the bug
No documentation in the sample code nor API documentation outlining the accepted method for adding custom headers or setting content-type for a file upload to blob storage. Using the standard options format, an object, fails with error: TypeError [ERR_INVALID_ARG_TYPE]: The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type object
To Reproduce
Steps to reproduce the behavior:

When running the code below, and other object-based options, an error occurs:

TypeError [ERR_INVALID_ARG_TYPE]: The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type object
Expected behavior
The SDK should allow the user to set multiple options, including headers, for upload from an object format. There is no way to set parameters using only a string as the error suggests.
Screenshots

Additional context
Feel free to request more details as necessary.

I fixed the issue! thanks


Fix typo

Is this repo dead?

Hardly, just that the node coveralls doesn't work well with circleci out of the box. I've tried to fix it but I'll need you to rebase to see if it worked, @zbarnes757.

nope. Still fails. How can I contribute to your open source project and make it better if you are hindering me with silly tools???

You got passed the coveralls problem but now cirlce isn't providing the env var for your build. I went ahead and just turned coveralls off for branches. Try again.

I give up. The notoriety just isn't worth it.

I turned it off and you're giving up?!

it failed again!

Is there another project that picked up where this one left off?

@gangstead https://github.com/elixir-ecto/ecto

@zbarnes757 somehow this is building under your own circle and not mine like it did when it first failed and this is why you aren't getting the coveralls token and also why it isn't skipping coveralls. It will skip coveralls if in circle the branch isn't master. Before it would be pull/* on my circle but your build is on master under your own circle.

@zbarnes757 go to the circle build that failed and go to the project settings and stop building project. Then I'll kick it off from my side of circle.

@zbarnes757 what did you do to get it to pass?

I created my own coveralls account and added my repo token to circle.


Cursor Position Issue for Intellisense Tooltips

The mapping of cursor position to symbol seems to be off by a column or two

Look's like more general problem with Atom coordinates translation. https://github.com/atom/atom/issues/7193

I've pushed temporary fix for it, waiting for Atom team response on underlying problem


How to compile ?  async-net

Is there an existing issue for this?

[X] I have searched the existing issues.

What's the problem?
Hi,
using Debain 12 x86_64
rustc 1.81

git clone https://github.com/GyulyVGC/sniffnet
cd sniffnet
cargo check
Updating crates.io index
error: failed to select a version for the requirement async-io = "^2.0.0" (locked to 2.3.4)
candidate versions found which didn't match: 2.3.3, 2.3.2, 2.3.1, ...
location searched: crates.io index
required by package async-net v2.0.0
... which satisfies dependency async-net = "^2.0.0" (locked to 2.0.0) of package ashpd v0.9.1
... which satisfies dependency ashpd = "^0.9" (locked to 0.9.1) of package rfd v0.15.0
... which satisfies dependency rfd = "^0.15.0" (locked to 0.15.0) of package sniffnet v1.3.1 (/home/developer/rust/sniffnet)

How to fix this issue ?
If do cargo add async-net
Updating crates.io index
  Adding async-net v2.0.0 to dependencies
Updating crates.io index

error: failed to select a version for the requirement async-io = "^2.0.0" (locked to 2.3.4)
candidate versions found which didn't match: 2.3.3, 2.3.2, 2.3.1, ...
location searched: crates.io index
required by package async-net v2.0.0
... which satisfies dependency async-net = "^2.0.0" (locked to 2.0.0) of package sniffnet v1.3.1 (/home/developer/rust/sniffnet)
cargo add async-io
Updating crates.io index
Adding async-io v2.3.3 to dependencies
Updating crates.io index
error: failed to select a version for the requirement async-io = "^2.3.3" (locked to 2.3.4)
candidate versions found which didn't match: 2.3.3, 2.3.2, 2.3.1, ...
location searched: crates.io index
required by package sniffnet v1.3.1 (/home/developer/rust/sniffnet)
How did you install the app?
built locally by cloning the repository
Operating System
Linux
Additional context
No response

Can you try doing cargo update followed by cargo build?

Thank you

git clone https://github.com/GyulyVGC/sniffnet
cd sniffnet
cargo update
apt-get install lib
cargo build --release
cp target/release/sniffnet .
upx compress --brute sniffnet  ( from 36MB to 12MB )
./sniffnet

it worked now !
thanks

Awesome!


Update readme.md 'config php'

Issues 246
https://github.com/sj26/mailcatcher/issues/246

env has not moved in El Capitan:
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.11.1
BuildVersion:	15B42

$ which env
/usr/bin/env

The location of catchmail is dictated by your ruby setup. If you have the default system ruby, catchmail gets installed in /usr/local/bin:
$ export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

$ which ruby
/usr/bin/ruby

$ ruby --version
ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]

$ sudo gem install mailcatcher
Successfully installed mailcatcher-0.6.1

$ which catchmail
/usr/local/bin/catchmail

I don't use rvm, so am unsure of the default location. I suggest you run which catchmail and use that instead of /usr/bin/env catchmail in your php configuration per the PHP/RVM instructions.
Sadly I cannot accept this PR.

thanks


ghcWithHoogle fails to build index if all dependencies are GHC core libraries

Describe the bug
ghcWithHoogle will fail to index if all dependencies are GHC core libraries.
It will fail with the following error message:
error: --- TypeError ------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
at: (69:43) in file: /nix/store/cczavfv0z5fn392v37ypc48555wagvil-source/pkgs/development/haskell-modules/hoogle.nix

    68|        + " the following were specified: "
    69|        + lib.concatMapStringsSep ", " (p: p.name) packages)}
      |                                           ^
    70|     mkdir -p $out/share/doc/hoogle

value is null while a set was expected

To Reproduce
Steps to reproduce the behavior:

clone https://github.com/poscat0x04/ghc-with-hoogle-demo
run nix develop (requires nix flake), this should fail
add any package that's not a GHC core library to build-depends
run nix develop again, now it should enter dev shell just fine

Expected behavior
ghcWithHoogle should handle the case where all dependencies are GHC core libraries
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: haskell.lib
# a list of nixos modules affected by the problem
module:

@poscat0x04 Thanks for reporting this.
Could post a way to reproduce this without using flakes?

@poscat0x04 Thanks for reporting this.
Could post a way to reproduce this without using flakes?

This is a duplicate of #82245


Xml documentation is missing for imported symbols in Roslyn Projects

Hello. I need to extract Xml documentation from all ISymbols. For this, I run this code to create a Roslyn Project and start its analysis:
AnalyzerManager manager = new AnalyzerManager();
IProjectAnalyzer analyzer = manager.GetProject(projectPath);
AdhocWorkspace workspace = new AdhocWorkspace();
Project project = analyzer.AddToWorkspace(workspace);

Compilation compilation = project.GetCompilationAsync().Result;

// ... For each document in project.Documents
var syntaxTree = document.GetSyntaxTreeAsync().Result;
var semanticModel = compilation.GetSemanticModel(syntaxTree, true);

// ... Get some symbol from syntaxtree using semanticmodel and extract Xml
var xml = symbol.GetDocumentationCommentXml(expandIncludes: true);

I can normally obtain Xml documentation for symbols declared inside the project.
However, no documentation is available for symbols loaded from imported packages. For example, if my analyser meets List symbol, it does not have Xml comment despite it is imported properly in analysed code.
Could you please advise do I miss anything in my code or maybe my Project loading stage is wrong?

So, If I understand you correctly, you receive the XML-comments from your own code, but not from referenced code?

Hello @vladimirKa002, I believe I understand what you mean, I was curious and did some local tests, I really didn't find a way that works.
Looking at swashbuckle it seems to me (I'm not sure) that it works because it reads the XML file from the repository, it would be an alternative to a "controlled" external reference where you have access to the XML, but you would have to code something to do this.
I found this discussion that seems to be the same topic we are talking about here.

Also experiencing this issue. Inspecting the generate code via solution explorer, the results of documentationCommentXml are correct, and I can use them to e.g. clone a method summary to a generated method wrapper class, and the IDE will show the intellisense correctly on the wrapped class, but at runtime documentationCommentXml returns empty so I can't provide the summary value in a return type of the wrapper method.


Cannot create a mock function with the same arity as the original function definition

Hi,
I had below code (got it from Phoenix tutorial) and I used Mimic to simulate Repo.transaction() result
  alias MyApp.Repo

  def complete_order(%ShoppingCart.Cart{} = cart) do
    line_items =
      Enum.map(cart.items, fn item ->
        %{product_id: item.product_id, price: item.product.price, quantity: item.quantity}
      end)

    order =
      Ecto.Changeset.change(%Order{},
        user_uuid: cart.user_uuid,
        total_price: ShoppingCart.total_cart_price(cart),
        line_items: line_items
      )

    Ecto.Multi.new()
    |> Ecto.Multi.insert(:order, order)
    |> Ecto.Multi.run(:prune_cart, fn _repo, _changes ->
      ShoppingCart.prune_cart_items(cart)
    end)
    |> Repo.transaction()
    |> case do
      {:ok, %{order: order}} -> {:ok, order}
      {:error, name, value, _changes_so_far} -> {:error, {name, value}}
    end
  end

If I mock transaction/2, I will get error MyApp.Repo.transaction/2 to be invoked 1 time(s) but it has been called 0 time(s)
MyApp.Repo
      |> expect(:transaction, fn _x, _y -> {:error, "mock", "this is mock error for testing", %{}} end)

However, it works well if I try transaction/1 instead
MyApp.Repo
      |> expect(:transaction, fn _x -> {:error, "mock", "this is mock error for testing", %{}} end)

Is it desired behavior? I expect to mock transaction as arity of 2 which matches its definition.

The thing is that you are calling transaction/1 with a multi in your example. So you must stub/expect on transaction/1. transaction/2 will only be called when options are passed in. Ecto.Repo simply defaults to [] if the second argument is not passed.
The link you passed is the callback definition not the actual Repo definition:
https://github.com/elixir-ecto/ecto/blob/18288287f18ce205b03b3b3dc8cb80f0f1b06dbe/lib/ecto/repo.ex#L282C26-L282C53


chore: disable API, GRPC, and GRPC web by default

Closes https://github.com/celestiaorg/celestia-app/issues/2758
Testing
./scripts/single-node.sh
cat ~/.celestia-app/config/app.toml

Verified that
[api]

# Enable defines if the API server should be enabled.
enable = false

[grpc]

# Enable defines if the gRPC server should be enabled.
enable = false

[grpc-web]

# GRPCWebEnable defines if the gRPC-web should be enabled.
# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op.
enable = false

Great question. I think it was motivated by this Slack thread.


Add desktop specific UA list

Task/Issue URL: https://app.asana.com/0/72649045549333/1199360697847826
Tech Design URL: https://app.asana.com/0/1125189844152671/1199569229681703
CC:
Description:
Adds a new list to the user agent with sites that no matter what should load using the desktop user agent.
Steps to test this PR:
Install from develop

Go to facebook.com and sign in
Go to your messages
The UI should try to take you the Messenger app.

Install from this branch

Go to facebook.com and sign in
Go to your messages
The Messenger UI should show up in the browser and give you a more native experience without taking you to the mobile app.

Fireproof still works

Go to settings and enable fireproof detection
Go to facebook.com and sign in
You should see the fireproof dialog

Excluded paths don't change the UA
Note: Search for user agent is in the logcat,

Do a clean install
Go to buzzfeed.com and click into any article.
Scroll down a little bit until you see a FB logo next to another one from Pinterest
Click on the FB logo (to share the article)
You should see the FB login site and the user agent should have changed to the desktop one.
Close the tab.
Go to FB and sign in.
You should see the user agent changing in FB to the desktop one.
Go to buzzfeed.com and click into any article.
You should see the user agent changing to mobile.
Scroll down a little bit until you see a FB logo next to another one from Pinterest
Click on the FB logo (to share the article)
The opened URL should no go back and forth between facebook.com and m.facebook.com
The opened URL should not change the user agent to desktop.
Click on the cross to go back to the article.
Scroll down to the comments section until you see Sign in to comment and click there.
Click on Sign in with Facebook
The opened URL should no go back and forth between facebook.com and m.facebook.com
The opened URL should not change the user agent to desktop.

User agent changes when expected

Filter by User Agent is in logcat
Go to serp
User agent should include Android
Go to sovietgames.su
User agent should not contain DuckDuckGo/5
Go to serp
User agent should include Android and DuckDuckGo/5 again
Go to facebook.com
User agent should include Linux aarch64 and not Android
Click back (if you are taken to facebook.com/home.php click back again).
You should be back to SERP and user agent should have Android 10
Click back you should be back to sovietgames and user agent should not have DuckDuckGo/5
Click back you should be back to SERP and user agent should include Android and DuckDuckGo/5

Internal references:
Software Engineering Expectations
Technical Design Template

Thanks @cmonfortep, I had to make some changes that are pretty simple but require a re-review 😓 . Basically, I had to pass the URL instead of the host to the UA provider to extract the path segments and check if some specific ones were part of the URL or not before changing the UA to desktop.

Hey @cmonfortep I have change the code a bit after merging the GPC changes mainly to reuse the function to know if the request was in the stack or not and to fix the tests. I also addressed a while back all the comments from the previous review. If you could have another look that would be great!

Hey @cmonfortep I have change the code a bit after merging the GPC changes mainly to reuse the function to know if the request was in the stack or not and to fix the tests. I also addressed a while back all the comments from the previous review. If you could have another look that would be great!


Validate the submitted values

Validate the submitted values

Questions
Answers

Description?
Please be specific when describing the PR.  Every detail helps: versions, browser/server configuration, specific module/theme, etc. Feel free to add more information below this table.

Type?
bug fix / improvement / new feature / refacto / critical

BC breaks?
yes / no

Deprecations?
yes / no

Fixed ticket?
Fixes PrestaShop/Prestashop#{issue number here}.

How to test?
Please indicate how to best verify that this PR is correct.

Hello @moncef-essid I think there is huge value in this PR but as @PierreRambaud said we need some context about the contribution. Can you please fill the PR template 😉 ?


updates for storage example

adds 'all' region for docs
makes example classes consistent with bigquery classes

@remi @jeffmendoza PTAL

LGTM


bug(DatePicker): DatePicker has problem in ShadowDom component

Reproduction
Issue: https://stackblitz.com/edit/angular-material-shadow-dom-problem?file=src/app/app.component.ts
Steps to reproduce:

Create new component and use basic dataPicker material's component. Should works fine.
In the component, use ViewEncapsulation.ShadowDom

Expected Behavior
Enabling ViewEncapsulation.ShadowDom in Angular's component, should not affect DatePicker.
Actual Behavior
Enabling ViewEncapsulation.ShadowDom in Angular's component, embedded material's component doesn't work properly.
Environment

Angular: 10.2.1
CDK/Material: 10.2.6
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows

It's because the Material theme file is a global which means that it won't cross through the shadow DOM encapsulation. You'll have to include the theme file somewhere under the same shadow root as your component.

@crisbeto Thank you!
Indeed, it was the problem.
Here is simple POC that it works, as Kristiyan said. Of course it might be nicer.
stackblitz
BTW Have you changed something in this topic recently?
I the problem while trying to use microfrontend with shadowDom.

The theming setup hasn't changed in a long time. Once in a while we fix JS issues related to shadow DOM, but I don't think that we've had to make any changes to the datepicker.


two spaces added before line break

Hello,
I am wondering why Markdownify is adding two spaces   before the \n line break when converting
 tags?
https://github.com/Elephant418/Markdownify/blob/master/src/Converter.php#L1056
    /**
     * handle
 tags
     *
     * @param void
     * @return void
     */
    protected function handleTag_br()
    {
        $this->out("  \n" . $this->indent, true);
        $this->parser->html = ltrim($this->parser->html);
    }

Is it safe remove them? (Did some tests and did not have any error)
       $this->out("\n" . $this->indent, true);

Hi @francoisjacquet 👋
It's depend of your converter configurationn, but usually in Markdown:

a line break do not impact HTML generation
a line break with two or more spaces generate a

two lines breaks generate a new

It's explicit in the specification here https://www.markdownguide.org/basic-syntax/#line-breaks

Thank you for your answer.
I believe this works within RosarioSIS because of the following configurations:
Parsedown
$Parsedown->setBreaksEnabled( true )

and marked
marked.setOptions({ breaks: true })


backport: merge bitcoin#24252, #24301, #25808, #25873, #26557, #25465, #26952, #25898:, #30217, #24266, partial bitcoin#28622 (replace boost::filesystem with std::filesystem: part 2)

Additional Information

Depends on https://github.com/dashpay/dash/pull/6138

Breaking Changes
None observed.
Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas (note: N/A)
[x] I have added or updated relevant unit/integration/functional/e2e tests
[x] I have made corresponding changes to the documentation (note: N/A)
[x] I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

 -:  ---------- >  1:  5394d63e18 feat: improve merge-check action to leave a comment and label to PRs
 -:  ---------- >  2:  35c76705d1 feat: implement basic Github Actions based CI, which reuses underlying logic from GitLab CI
 -:  ---------- >  3:  d1addb27aa fix: change fallback download path to be an s3 link which includes a few packages
 -:  ---------- >  4:  ed8ffa7fb4 feat: have cppcheck linter respect CACHE_DIR env variable
 -:  ---------- >  5:  4dbdecdd1e refactor: rename builder-image -> build-image and builder as image name to dashcore-ci-runner
 -:  ---------- >  6:  acf1315270 Merge bitcoin/bitcoin#25091: test: Remove extended lint (cppcheck)
 -:  ---------- >  7:  2237b4266b refactor: use `=` with ENV in dockerfiles
 -:  ---------- >  8:  1b139e4837 feat: automatically run guix-build on all tags pushed
 -:  ---------- >  9:  101a31555f refactor: simplify caching setup, add a restore key to actually cache besides 1 run
 -:  ---------- > 10:  580bbe6d1c feat: improve guix building; run always, save artifacts
 -:  ---------- > 11:  770651aa15 set hosts in guix-check
 -:  ---------- > 12:<PHONE_NUMBER> Merge bitcoin/bitcoin#24944: rpc: add getblockfrompeer RPCTypeCheck and invalid input test coverage
 -:  ---------- > 13:  df2f533aaf Merge bitcoin/bitcoin#26759: test: Drop no longer needed `race:epoll_ctl` TSan suppression
 -:  ---------- > 14:  7f2b934089 Merge bitcoin/bitcoin#26772: contrib: fix sha256 check in install_db4.sh for FreeBSD
 -:  ---------- > 15:  092ddc3a3e Merge bitcoin/bitcoin#26603: doc: CalculateSequenceLocks: prevHeights entries are set to 0, not removed
 -:  ---------- > 16:  864d02e4a9 Merge bitcoin/bitcoin#26809: compat: use STDIN_FILENO over 0
 -:  ---------- > 17:  d1b93c78b7 Merge bitcoin/bitcoin#26818: test: Fix feature_startupnotify intermittent issue
 -:  ---------- > 18:  6fe46fc02a Merge bitcoin/bitcoin#26864: doc: net: fix link to onion address encoding scheme [ONIONADDRESS]
 -:  ---------- > 19:  07f4c39c44 Merge bitcoin/bitcoin#26730: test: add coverage for `purpose` arg in `listlabels`
 -:  ---------- > 20:  93c4652a05 Merge bitcoin/bitcoin#26821: refactor: Make `ThreadHTTP` return void
 -:  ---------- > 21:  b6bde7322c Merge bitcoin/bitcoin#26827: doc: use "std lib clock" over "C++11 clock"
 -:  ---------- > 22:  0dd997c4e5 Merge bitcoin/bitcoin#26835: contrib: add PE Canary check to security-check
 -:  ---------- > 23:  92f82f6fc6 fix: group the ENV in quotations
 -:  ---------- > 24:  aafded67d9 fix: compilation error due to rebase error between bitcoin#22937 and ipc/process
 -:  ---------- > 25:  540f6871d3 fix: lock `::cs_main` before accessing `ChainstateManager::m_best_header`
 -:  ---------- > 26:  2777d30caa fix(ci): only run some GH actions on PR approval, not on every comment
 -:  ---------- > 27:  c2bd834f3b Merge bitcoin/bitcoin#21169: fuzz: Add RPC interface fuzzing. Increase fuzzing coverage from 65% to 70%.
 -:  ---------- > 28:  4dd36f603a Merge bitcoin/bitcoin#21798: fuzz: Create a block template in tx_pool targets
 -:  ---------- > 29:  813993d44a Merge bitcoin/bitcoin#21892: fuzz: Avoid excessively large min fee rate in tx_pool
 -:  ---------- > 30:  2398283ff6 Merge bitcoin/bitcoin#21922: fuzz: Avoid timeout in EncodeBase58
 -:  ---------- > 31:  3bfefde53b Merge bitcoin/bitcoin#21931: ci: Bump cirrus fuzz CPUs to avoid timeout
 -:  ---------- > 32:  82a6aa5907 Merge bitcoin/bitcoin#21810: fuzz: Various RPC fuzzer follow-ups
 -:  ---------- > 33:  d89847f43e Merge bitcoin/bitcoin#22004: fuzz: Speed up transaction fuzz target
 -:  ---------- > 34:  06ea87040b Merge bitcoin/bitcoin#20773: refactor: split CWallet::Create
 -:  ---------- > 35:<PHONE_NUMBER> fix: follow-up bitcoin#20773 - for collateral lock/unlock coins
 -:  ---------- > 36:  9ad26f1664 fix: follow-up bitcoin#20773 - coinjoin loader can be nullptr too
 -:  ---------- > 37:  2f12f91d39 fix: 6205 follow-up
 -:  ---------- > 38:  52b9fcecb4 fix: can't mix `-` and `:`
 -:  ---------- > 39:  40c0e06047 fix: use coinstatsindex instead blockfilterindex in feature_prunning
 1:  97808070a4 = 40:  357d1b6792 merge bitcoin#24252: Represent paths with fs::path instead of std::string
 2:  e3719d8dd8 = 41:  aa361b2717 merge bitcoin#24301: header-only Boost
 3:  d3e061fadc = 42:  d2c968bf91 merge bitcoin#25808: work around u8path deprecated-declaration warnings with libc++
 4:  ae3c8ef4b8 = 43:  1ad64dadca merge bitcoin#25873: Boost 1.80.0
 5:  f42055c2bb = 44:  1d8b8900ef merge bitcoin#26557: Update Boost to 1.81.0 in depends
 6:  faf10978f5 = 45:  7a1f48e53c merge bitcoin#25465: remove boost library detection
 7:  af925dab22 = 46:  da5b433909 merge bitcoin#26952: Avoid `BOOST_NO_CXX98_FUNCTION_BASE` macro redefinition
 8:  df7ea23106 = 47:  05fb206f76 merge bitcoin#25898: remove WSL 1 workaround in fs
 9:  03415abb5c = 48:  9e80893a3c partial bitcoin#28622: use macOS 14 SDK (Xcode 15.0)
10:  34651f13eb = 49:  b02d5e34ff merge bitcoin#30217: Update Boost download link
11:  2554aa4e63 = 50:  f4b896ef5f merge bitcoin#24266: Avoid buggy std::filesystem:::create_directories() call


URL input gets Calculate command

When I enter a shortcut for a URL, I get Calculate as the automatic action. Why?

Can you give an example? Are you typing this by hand?

Hi Rob. Thanks for replying.
Example: I invoke Quicksilver, type the letter "G", which is my shortcut for Google, and the Action pane defaults to Calculate with a calculator icon. I can then tab to the Action pane, type "O" and Open URL is the first option, but not the original default action.
However, since posting the topic, I uninstalled the Calculator module and now Open URL is the default action for website shortcuts.
Of course, it is better if the Calculator module works, but I rarely use it.
So, I have a workaround, but not an ideal one.
Eddie R.
On Feb 24, 2012, at 7:01 AM, Rob McBroom wrote:

Can you give an example? Are you typing this by hand?

Reply to this email directly or view it on GitHub:
https://github.com/quicksilver/Quicksilver/issues/723#issuecomment-4157182

With the Calculator module installed, go into the preferences and make sure “Open URL” appears higher than “Calculate”. The calculate action works with text (and URLs are text), but the Open URL action should only work with actual URLs, so moving it up higher shouldn’t make it show up at inappropriate times.

Nice.
That works.
Thanks so much, Rob.
Eddie
On Feb 24, 2012, at 9:17 AM, Rob McBroom wrote:

With the Calculator module installed, go into the preferences and make sure “Open URL” appears higher than “Calculate”. The calculate action works with text (and URLs are text), but the Open URL action should only work with actual URLs, so moving it up higher shouldn’t make it show up at inappropriate times.

Reply to this email directly or view it on GitHub:
https://github.com/quicksilver/Quicksilver/issues/723#issuecomment-4159626


snappy compression seems not to work

Description
I'm using pq.write_table(arrow_table,'pyarrow_test', compression='snappy').
I'm validating the compression with python-snappy, but I get that the compression is not valid.
system

run on aws ec2
os:  Amazon Linux AMI 2018.03
deleted the snappy distribution that comes pre installed.
installed snappy-devel-1.1.0-3.el7.x86_64.rpm and snappy-1.1.0-3.el7.x86_64.rpm
installed python-snappy

Code
import pandas
import pyarrow
import pyarrow.parquet as pq
import snappy

data2 = [{'a':3, 'b':'c'}]*5000
df2 = pandas.DataFrame(data2)
df2.to_parquet('test2', engine='pyarrow', compression='snappy')
arrow_table = pyarrow.Table.from_pandas(df2)

pq.write_table(arrow_table,'pyarrow_test', compression='snappy')
data = open('pyarrow_test', 'r').read()
print(snappy.isValidCompressed(data))

>>>False

I also ran
hadoop fs -text file:///pyarrow_test> check
and got
19/05/05 15:36:50 INFO lzo.GPLNativeCodeLoader: Loaded native gpl library
19/05/05 15:36:50 INFO lzo.LzoCodec: Successfully loaded & initialized native-lzo library [hadoop-lzo rev 4096a4894918d48bbe2e12497617628401f3a88e]

Didn't find anything to point me in the right direction yet. please advise

@asafcombo Snappy compression is performed at the level of data pages in the Parquet format, not at the level of the whole file. Take a look at the Parquet specification for more details about this https://github.com/apache/parquet-format -- we can also point you to the relevant code paths in parquet-cpp


Pushforward

Why was it needed in the first place? Given a differentiable probability distribution constructor $\theta \mapsto p(\theta)$, differentiate through $\theta \mapsto E[c(V)]$ where $V \sim p(\theta)$.
Not directly necessary for Perturbed because we can put $c \circ f$ in the Reinforce, but necessary for regularized because $c \circ f$ is not an LP (not amenable to FW).
struct Pushforward
    fixed_atoms_dist_constructor  # must return a FixedAtomsProbabilityDistribution
    post_processing
end

function (p::Pushforward)(theta)
    dist = p.fixed_atoms_dist_constructor(theta)
    return mean(p.post_processing, dist)
end

Actually it is necessary to define compute_probability_distribution here along with its rrule for Reinforce
https://github.com/JuliaDecisionFocusedLearning/InferOpt.jl/blob/59ab4fe21682e8c0a20bb55d4da3b4cb91f2cc0c/src/perturbed/abstract_perturbed.jl#L118-L153
The Pushforward struct is no longer necessary then

This is essentially solved by #15, in which I found out that:

We can derive formulas for the rrule of empirical_distribution in the Reinforce case, but it's more cumbersome in the Reparametrization case.
In the Reinforce case, it's not obvious how to generalize baseline variance reduction to the distribution pullback, and I'm not sure it gives the same result as the complete rrule for Reinforce if we do.
The rrule we had in InferOpt.jl for this seems deeply broken. For once, the baseline doesn't live in the correct space: it should be an average of y values, not an average of weights

Solved by #19


Secure settings does not allow multiple users on the same machine to coexist

Brief description of your issue
If multiple users are using winget on the same machine, their secure stream data will collide.
Steps to reproduce
User 1 performs 'source add foo'
User 2 performs 'source add bar'
User 1 attempt to use winget
Expected behavior
User 1 will be able to use winget
Actual behavior
User 1 will get an error about tampered data.

Since this bug hasn't been officially released, closing it as it has been fixed already.


Adding support from focal to noble

Overview
To support running on noble and jammy while still building/running on focal update python charm libaries
Details

Update metadata to support noble by moving metadata to charmcraft.yaml

Waiting on an answer regarding changing the assumes in charmcraft.yaml


Fix several issues uncovered while investigating recent CI failures

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (65f8d4e) 89.71% compared to head (db30c2f) 89.75%.

Files
Patch %
Lines

src/pystack/_pystack/process.cpp
94.00%
3 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #155      +/-   ##
==========================================
+ Coverage   89.71%   89.75%   +0.03%
==========================================
  Files          48       48
  Lines        5505     5524      +19
  Branches      873      873
==========================================
+ Hits         4939     4958      +19
  Misses        566      566

Flag
Coverage Δ

cpp
75.07% <94.11%> (+0.21%)
:arrow_up:

python_and_cython
99.93% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Restart deployment/daemonset when referred resources' content is changing

Hi team, I met a senario when using kapp's versioned annotation.  Opened this issue to track the question.
The scenario is:
config C refers a secret S in its data,  and this config C is referred by a Deployment D. Will update the content of secret S trigger restart of Deployment D?
I get a solution that is referring the secret S directly in Depoyment D. But I think that may be not the best way.
Will kapp's versioned annotation supports above scenario? Or already supported?
Thanks.

config C refers a secret S in its data, and this config C is referred by a Deployment D. Will update the content of secret S trigger restart of Deployment D?

it will not today, since kapp does not support updating resource references within arbitrary content (data of ConfigMap). im not sure we want to extend kapp to try to update contents of ConfigMaps with new resource name. (we do something like this in kbld to update image refs but it only works for json/yaml content).

I get a solution that is referring the secret S directly in Depoyment D. But I think that may be not the best way.

currently, that's the only way to make this work with versioned resources.  note that referencing a secret on the deployment does not mean that you Deployment needs to actually consume it directly, it could still be doing it through changed ConfigMap.
outside of versioned resources feature, you could do what folks do with templating tricks to hash content and throw in an annotation onto Deployment, but to me that feels more work that referencing secret on the Deployment.
as an enhancement to versioned resources feature, i could imagine supporting special annotation that will make kapp consider ConfigMap as related to changed Secret which then would trigger Deployment change. e.g.
kind: Secret
metadata:
  name: something
  annotations:
   kapp.k14s.io/versioned: ""
# ...
---
kind: ConfigMap
metadata:
  name: config
  annotations:
   kapp.k14s.io/versioned: ""
   kapp.k14s.io/versioned-explicit-ref: "v1/Secret/something" <--- this would be "synthetic reference"
# ...
---
kind: Deployment # only references ConfigMap
# ...

Thanks @cppforlife . The information is really detailed😊 and I would vote for the example solution kapp.k14s.io/versioned-explicit-ref if it is doable.

Moving it to carvel accepted. Will try and prioritise this

Pulling this issue for the next release v0.41.0 . @100mik , please update the approach here.

We can support a synthetic reference which mirrors the latest versioned name of a versioned resource.
For example, a synthetic reference like
kapp.k14s.io/versioned-explicit-ref: default/v1/Secret/credentials

will be assigned the following value on deployment
kapp.k14s.io/versioned-explicit-ref: credentials-ver-1

This leads to the referencing versioned resource being versioned whenever the referenced resource is. It can be used to explicitly refer a versioned resource from a non-versioned resource as well.
Ongoing work on this with this draft PR!

Addressing the questions raised in the ongoing PR, we will allow users to reference a single or multiple resources in a JSON object with specified format.
kapp.k14s.io/versioned-explicit-ref: { "references": [ { "namespace": <resource-namespace>, "apiGroup":  <resource-apiGroup>, "kind" : <resource-kind>, "name":  <resource-name> } ] }

references can have multiple objects referring to different resources
The namespace key should be omitted for cluster scoped resources

As of v0.41.0+, versioned resources can be explicitly referred to by the kapp.k14s.io/versioned-explicit-ref annotations like
kapp.k14s.io/versioned-explicit-ref: |
      apiVersion: v1
      kind: ConfigMap
      name: config-1

(a namespace key can be added for namespaces resources). Documentation regarding the same canoe found at the end of this section in our documentation.

Hi @chenliu1993, This feature is now available as part of v0.41.0 . Do provide feedback on this.
Thanks


decodeText issue

when attachment's name can not be parsed. the problem will stop parse eml file and throw exception.
Can you try to fix that as not all name can be done correctly.

So this is really not enough for me to go on. What are you trying to do, which part of the API are you using, what is your input, what is the exact error.... Closing until there's something for me to go on.


Show container's Execute Shell window in full screen

As a user of Rancher, I would like to see the container's Execute Shell window in full screen.

Useful
Info

Versions
Rancher v1.1.0 Cattle: v0.165.4 UI: v1.1.12

Access
localauth admin

Orchestration
Cattle

Route
container.labels

Duplicate #2182 - Closing


Flet does not handle URLs with redundant slashes

Description
If a user visits a URL with two slashes, flet seems to pase the URL incorrectly and replaceState to an invalid domain.
Code example to reproduce the issue:
import flet as ft

def main(page: ft.Page):
    page.add(
        ft.Text(f"This is the path: {page.route}")
    )
    def route_change(route):
        page.add(ft.Text(f"New route: {route}"))

    page.on_route_change = route_change

if __name__ == "__main__":
    flet_path = ''
    flet_port = 8001
    ft.app(name=flet_path, target=main, view=None, port=flet_port, route_url_strategy="path")

Describe the results you received:
With the above example, visit http://localhost:8001//foobar. Notice the two slashes after the port and before the path, //.
If you do this, Flet will try to redirect the user to http://foobar/. Here it is from the debug console.
securityerror: Blocked attempt to use history.replaceState() to change session history URL from http://localhost:8001//foobar to http://foobar/. Protocols, domains, ports, usernames, and passwords must match.

Flet version (pip show flet):
Name: flet
Version: 0.4.0
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email<EMAIL_ADDRESS>License: MIT
Location: /Users/kkinder/Library/Caches/pypoetry/virtualenvs/fletend-9mHHD83p-py3.11/lib/python3.11/site-packages
Requires: flet-core, httpx, oauthlib, packaging, watchdog, websocket-client, websockets
Required-by:

Operating system:
macOS 13.2 (22D49)
Additional environment details:
Via Poetry.

If you do this, Flet will try to redirect the user to http://foobar/.

I just tried, but didnt notice this behaviour.
Can you please retry with the latest version?


Update Documentation theme from sphinx_rtd_theme to sphinx_book_theme

Update Documentation theme from sphinx_rtd_theme to sphinx_book_theme

Hi folks, just passing by while trying to view another issue...if you are tempted to change the appearance of the docs, consider using repo_docs:
http://omniverse-docs.s3-website-us-east-1.amazonaws.com/repo_docs/0.37.0/index.html
It's about as close to a "standard" as we have.  (As of now, it does not, however, offer a three-column layout like the books theme.)

Hi folks, just passing by while trying to view another issue...if you are tempted to change the appearance of the docs, consider using repo_docs:
http://omniverse-docs.s3-website-us-east-1.amazonaws.com/repo_docs/0.37.0/index.html
It's about as close to a "standard" as we have. (As of now, it does not, however, offer a three-column layout like the books theme.)

Thanks @mikemckiernan . I copied some of the CSS from the Omniverse docs to get closer to that theme in style. We can do some follow-up work to investigate repo_docs. This PR at least get's us a step closer in appearance (similar to the Triton Docs and NeMo docs)


Added candidate implementation of #82.

Here's a candidate implementation of #82.
What to do with the sign of the remainder is tricky. I took this choice because (a) it is what properFraction does and (b) it preserves the sign somewhere when the integer part is zero.
It's kind of unfortunate because it leaves some complicated sign handling logic on clients who want to convert something like -1.37 *~ m into "-4 ft 5.9 in" (note that this indicates the value (-4 *~ foot) + (-5.9 *~ inch)), but perhaps that is better tackled later in named-units along with other formatting concerns.

I would expect that if you want to do this in practice you would also want to drop the sign and qualify by context instead. E.g. the mast is 4 ft 5.9 in high and the well is 4 ft 5.9 in deep. It seems like a poor practice to use sign in these cases? Perhaps the NIST guide (that I do not have in front of me) has something to say about the matter?
Not sure how this observation (if accurate) could/should direct implementation though. One could return a triple with signum x in the first field (to branch on), but triples are messier and especially if you want to repeat the split in the fractional part as for deg/min/sec.
On Wed, Aug 26, 2015 at 1:27 PM, Douglas McClean<EMAIL_ADDRESS>wrote:

Here's a candidate implementation of #82.
What to do with the sign of the remainder is tricky. I took this choice because (a) it is what properFraction does and (b) it preserves the sign somewhere when the integer part is zero.
It's kind of unfortunate because it leaves some complicated sign handling logic on clients who want to convert something like -1.37 *~ m into "-4 ft 5.9 in" (note that this indicates the value (-4 *~ foot) + (-5.9 *~ inch)), but perhaps that is better tackled later in named-units along with other formatting concerns.
You can view, comment on, or merge this pull request online at:
https://github.com/bjornbm/dimensional-dk/pull/84
-- Commit Summary --

Added candidate impleentation of #82.
-- File Changes --
M src/Numeric/Units/Dimensional/DK.hs (11)
-- Patch Links --
https://github.com/bjornbm/dimensional-dk/pull/84.patch
https://github.com/bjornbm/dimensional-dk/pull/84.diff

Reply to this email directly or view it on GitHub:
https://github.com/bjornbm/dimensional-dk/pull/84

Based on searching for "sign" and "negative", I can't see that the NIST Guide comments on this, but maybe it does somewhere.
Another option is to keep the sign only on the first non-zero value, which corresponds to how you might want to show it if you are just dropping leading zero terms. (Then again, you might also want something like -0° 12' 22'' for consistency?) Just to pick a random example, Matlab takes this tack.

FYI section 7.2 in the NIST guide is relevant but perhaps not very helpful:
Regarding angles more info in section 7.3:

On 26 aug 2015, at 22:54, Douglas McClean<EMAIL_ADDRESS>wrote:
Based on searching for "sign" and "negative", I can't see that the NIST Guide comments on this, but maybe it does somewhere.
Another option is to keep the sign only on the first non-zero value, which corresponds to how you might want to show it if you are just dropping leading zero terms. (Then again, you might also want something like -0° 12' 22'' for consistency?) Just to pick a random example, Matlab takes this tack.
—
Reply to this email directly or view it on GitHub.

I'm agreed with 7.3 that it's way better just to use one unit, and that decimal degrees are preferable to DMS, etc. Just was working on this because of customers (for code that doesn't use this library yet but hopefully will) were demanding feet and inches. That and pounds and ounces are still quite common here in the states.
If I demote it from DK to some experimental pretty-printing module can I keep it there? (Still need to sort out the sign issue of course.)

I didn’t mean that as an objection and certainly not as a veto; my apologies if it came sounded that way!
I know that it is more common with imperial units to use two units. I guess less so in SI since units of different magnitude are trivially related to each other. Anyway, the splitting could stay in DK since it is reluctantly allowed for angles, or you could move it if you find a good fit elsewhere.

On 2015-08-27, at 21:51, Douglas McClean<EMAIL_ADDRESS>wrote:
I'm agreed with 7.3 that it's way better just to use one unit, and that decimal degrees are preferable to DMS, etc. Just was working on this because of customers (for code that doesn't use this library yet but hopefully will) were demanding feet and inches. That and pounds and ounces are still quite common here in the states.
If I demote it from DK to some experimental pretty-printing module can I keep it there? (Still need to sort out the sign issue of course.)
—
Reply to this email directly or view it on GitHub https://github.com/bjornbm/dimensional-dk/pull/84#issuecomment-135412512.

No, it's a fair point, it is only useful functionality if you are doing things that really make no sense. This is just America where we love to do things that make no sense. :)
I am planning a more comprehensive way to control how things get formatted (choosing units based on magnitude of the value(s), number of decimal places, and all that stuff) so it probably makes sense to move it there. Might even be possible to hide this operation entirely and instead expose a way to build up display formats from more than one unit.

Retracting this in favor of the general idea (but not the specifics, I have some issues still with the specifics) in https://github.com/bjornbm/dimensional-dk-experimental/commit/def4d548926de99767b5a4a900097e447f2a9d85.


Create a RethinkDB Adapter

I want to create a RethinkDB Adapter to use with fruit. Do I have to create it in my personal profile? Any specific conditions?

Ok , I'm going to invite you into the organization, I'll create a the repo so that you can start working on it. All you need to know is that the unit tests should be the same as other adapters, at least most of the tests. I haven't tought much about conditions, but you are the first contributor, we can specify new confitions for other contributors.

Should I have to use the same test tools that you use? I usually use ava which is a new test runner. What about publication on NPM? I have seen that you've send the module into it but how can I send updates of it?

It's ok if you would like to use ava. What is your npm username ?

Great, thanks! 😄

Link to my NPM profile

You are now co-owner of the package at npmjs :
$ npm owner ls fruit-rethinkdb
javascript<EMAIL_ADDRESS>miguhruiz<EMAIL_ADDRESS>
Enjoy :)


How to modify executor_manager.grad_arrays in model.py?

I want to modify executor_manager.grad_arrays in model.py to do some experiments as the following code.
if nbatch % 2 == 0:
   grad_array1 = copy.deepcopy(executor_manager.grad_arrays)
else:
   for i in range(len(grad_array1)):
      for j in range(len(grad_array1[i])):
          executor_manager.grad_arrays[i][j] = executor_manager.grad_arrays[i][j] + grad_array1[i][j]

   _update_params_on_kvstore(executor_manager.param_arrays,
                             executor_manager.grad_arrays,
                             kvstore)

but it failed, I found MXNet using only the space which allocated initially to store the gradient, If I modify executor_manager.grad_arrays as shown above, the ndarray will point to the new space, so it failed, and the model can't converge.
So, how  to modify executor_manager.grad_arrays? Thx

executor_manager.grad_arrays[i][j][:] = executor_manager.grad_arrays[i][j] + grad_array1[i][j]
note the [:]

@piiswrong thanks a lot!

@piiswrong hi, I found "grad_array1 = copy.deepcopy(executor_manager.grad_arrays)" cost time much, is there any other ways to replace this?

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Proposing UI changes for Action Bar

Description

So after recent discussion on the Action Hotbar one of the major issues with it is that it looks ugly and cumbersone. Chairbender made it exact to the Figma spec but unfortunately it does not blend in with our current UI.
#3285 #3533 #3429 are all tangentially related to this.
I've provided some sample screenshots below of scale/opacity changes that were suggested for the Action Hotbar in Discord. These are all at 100% UI scale, 720p.
Screenshots

Current Hotbar for reference

Hotbar set to 70% opacity

Hotbar scale decreased by 20%

Opacity to 70% and Scale decreased by 20%

Elongated version of the hotbar with scale decreased by 20% and 0th slot removed

Same as above but at 70% opacity

A modified version based off some of @mirrorcult's comments.

Additional context

If you'd like to see additional mockups let me know I can make them pretty quickly.

I think it'd look better if the action buttons themselves weren't transparent, and empty action buttons were hidden

I think it'd look better if the action buttons themselves weren't transparent, and empty action buttons were hidden

Like this?
(Moved over tiles so you can actually make out the transparency)

Something like that, yeah. That looks pretty good to me

i also quite like that

imo we can shrink it down much more than that, we dont need such massive icons imo

solved?


Clearing numeric setting writes "null" to json

Find a numeric setting (eg fontsize)
Clear its input box
"null" is written to json for that value
Click out of the input box
Get the error "Setting has an invalid type", and the control changes to "Open in settings.json"

Instead of writing null, we should unset it when validation fails, so you can still edit it in the GUI

@roblourens, tried to validate the bug and here is what I am seeing right now:

Set the sash size setting from 4 to 20
Clearing the value of the setting will keep the value at 20.

Should clearing revert to the default value of 4 or keep the value of 20?

It should not change the value from what it was (so keep it at 20)


Update event link to eventbrite page

Update the link to the event:
https://www.eventbrite.com/e/mass-adapption-use-cases-golem-raiden-status-tickets-49559434603

Thank you for submitting this correction (without using the template)... but which one of the 22 events is this update for?


x64 Detection using Get-ProcAddress

Within Invoke--Shellcode, things often fail on x86 systems. After some digging, it appears that $64BitCPU returns true; even on x86 systems.

Since $64BitCPU appears to always return true, I followed it down to see how $64BitCPU is being determined.

To test this, I copied Get-Win32Functions, Get-ProcAddress and Get-DelegatedType into a separate script. I then added  the logic within Invoke--Shellcode "$IsWow64ProcessAddr = Get-ProcAddress kernel32.dll IsWow64Process". When running this script, it always returns a value on x86, instead of null.
Here is the script:
function local:Get-Win32Functions
    {
        $Win32Functions = New-Object System.Object

        $OpenProcessAddr = Get-ProcAddress kernel32.dll OpenProcess
        $OpenProcessDelegate = Get-DelegateType @([UInt32], [Bool], [UInt32]) ([IntPtr])
        $OpenProcess = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($OpenProcessAddr, $OpenProcessDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name OpenProcess -Value $OpenProcess

        $VirtualAllocExAddr = Get-ProcAddress kernel32.dll VirtualAllocEx
        $VirtualAllocExDelegate = Get-DelegateType @([IntPtr], [IntPtr], [Uint32], [UInt32], [UInt32]) ([IntPtr])
        $VirtualAllocEx = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($VirtualAllocExAddr, $VirtualAllocExDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name VirtualAllocEx -Value $VirtualAllocEx

        $WriteProcessMemoryAddr = Get-ProcAddress kernel32.dll WriteProcessMemory
        $WriteProcessMemoryDelegate = Get-DelegateType @([IntPtr], [IntPtr], [Byte[]], [UInt32], [UInt32].MakeByRefType()) ([Bool])
        $WriteProcessMemory = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($WriteProcessMemoryAddr, $WriteProcessMemoryDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name WriteProcessMemory -Value $WriteProcessMemory

        $CreateRemoteThreadAddr = Get-ProcAddress kernel32.dll CreateRemoteThread
        $CreateRemoteThreadDelegate = Get-DelegateType @([IntPtr], [IntPtr], [UInt32], [IntPtr], [IntPtr], [UInt32], [IntPtr]) ([IntPtr])
        $CreateRemoteThread = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($CreateRemoteThreadAddr, $CreateRemoteThreadDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name CreateRemoteThread -Value $CreateRemoteThread

        $WaitForSingleObjectAddr = Get-ProcAddress kernel32.dll WaitForSingleObject
        $WaitForSingleObjectDelegate = Get-DelegateType @([IntPtr], [UInt32])
        $WaitForSingleObject = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($WaitForSingleObjectAddr, $WaitForSingleObjectDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name WaitForSingleObject -Value $WaitForSingleObject

        $CloseHandleAddr = Get-ProcAddress kernel32.dll CloseHandle
        $CloseHandleDelegate = Get-DelegateType @([IntPtr]) ([Bool])
        $CloseHandle = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($CloseHandleAddr, $CloseHandleDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name CloseHandle -Value $CloseHandle

        $GetLastErrorAddr = Get-ProcAddress kernel32.dll GetLastError
        $GetLastErrorDelegate = Get-DelegateType @() ([Uint32])
        $GetLastError = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($GetLastErrorAddr, $GetLastErrorDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name GetLastError -Value $GetLastError

        $NtCreateThreadExAddr = Get-ProcAddress NtDll.dll NtCreateThreadEx
        $NtCreateThreadExDelegate = Get-DelegateType @([IntPtr].MakeByRefType(), [UInt32], [IntPtr], [IntPtr], [IntPtr], [IntPtr], [Bool], [UInt32], [UInt32], [UInt32], [IntPtr]) ([UInt32])
        $NtCreateThreadEx = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($NtCreateThreadExAddr, $NtCreateThreadExDelegate)
        $Win32Functions | Add-Member -MemberType NoteProperty -Name NtCreateThreadEx -Value $NtCreateThreadEx

        # A valid pointer to IsWow64Process will be returned if CPU is 64-bit
        $IsWow64ProcessAddr = Get-ProcAddress kernel32.dll IsWow64Process
        if ($IsWow64ProcessAddr)
        {
            $IsWow64ProcessDelegate = Get-DelegateType @([IntPtr], [Bool].MakeByRefType()) ([Bool])
            $IsWow64Process = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($IsWow64ProcessAddr, $IsWow64ProcessDelegate)
            $Win32Functions |  Add-Member NoteProperty -Name IsWow64Process -Value $IsWow64Process
        }

        return $Win32Functions

    }

function Local:Get-ProcAddress
    {
        Param
        (
            [OutputType([IntPtr])]

            [Parameter( Position = 0, Mandatory = $True )]
            [String]
            $Module,

            [Parameter( Position = 1, Mandatory = $True )]
            [String]
            $Procedure
        )

        # Get a reference to System.dll in the GAC
        $SystemAssembly = [AppDomain]::CurrentDomain.GetAssemblies() |
            Where-Object { $_.GlobalAssemblyCache -And $_.Location.Split('\\')[-1].Equals('System.dll') }
        $UnsafeNativeMethods = $SystemAssembly.GetType('Microsoft.Win32.UnsafeNativeMethods')
        # Get a reference to the GetModuleHandle and GetProcAddress methods
        $GetModuleHandle = $UnsafeNativeMethods.GetMethod('GetModuleHandle')
        $GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress')
        # Get a handle to the module specified
        $Kern32Handle = $GetModuleHandle.Invoke($null, @($Module))
        $tmpPtr = New-Object IntPtr
        $HandleRef = New-Object System.Runtime.InteropServices.HandleRef($tmpPtr, $Kern32Handle)

        # Return the address of the function
        Write-Output $GetProcAddress.Invoke($null, @([System.Runtime.InteropServices.HandleRef]$HandleRef, $Procedure))
    }

function Local:Get-DelegateType
    {
        Param
        (
            [OutputType([Type])]

            [Parameter( Position = 0)]
            [Type[]]
            $Parameters = (New-Object Type[](0)),

            [Parameter( Position = 1 )]
            [Type]
            $ReturnType = [Void]
        )

        $Domain = [AppDomain]::CurrentDomain
        $DynAssembly = New-Object System.Reflection.AssemblyName('ReflectedDelegate')
        $AssemblyBuilder = $Domain.DefineDynamicAssembly($DynAssembly, [System.Reflection.Emit.AssemblyBuilderAccess]::Run)
        $ModuleBuilder = $AssemblyBuilder.DefineDynamicModule('InMemoryModule', $false)
        $TypeBuilder = $ModuleBuilder.DefineType('MyDelegateType', 'Class, Public, Sealed, AnsiClass, AutoClass', [System.MulticastDelegate])
        $ConstructorBuilder = $TypeBuilder.DefineConstructor('RTSpecialName, HideBySig, Public', [System.Reflection.CallingConventions]::Standard, $Parameters)
        $ConstructorBuilder.SetImplementationFlags('Runtime, Managed')
        $MethodBuilder = $TypeBuilder.DefineMethod('Invoke', 'Public, HideBySig, NewSlot, Virtual', $ReturnType, $Parameters)
        $MethodBuilder.SetImplementationFlags('Runtime, Managed')

        Write-Output $TypeBuilder.CreateType()
    }

$var = Get-ProcAddress kernel32.dll IsWow64Process
$var

Here is the output:

From my understanding, this should return $null on x86 systems. I'm not sure if this has something to do with the fact that it is a VM. My test environment is a full patched win7 x86 box running on VMware fusion with a Mac host.
Let me know if clarification is needed.
Thanks!
Matt N.

sounds like a pull-request for Get-SystemInfo or { $processor = gwmi
win32_processor; $processor.architecture }

My system info powershell script has some logic you could use for this which could be found https://github.com/L1ghtn1ng/powershell-scripts/blob/master/systemInformation.ps1

@L1ghtn1ng because your logic is based on $env variables, the output will depend on which version of powershell you're running using. e.g. x86 powershell returns "32-bit" on a x64 machine.

Fair enough am still new to powershell and IIRC set has some logic and so does metasploit

Thanks for all the input, folks! I fixed the bug using the AddressWidth field of the Win32_Processor class while being mindful of multiple instances being returned as mentioned in issue #75. Pester tests passed when tested in Win 10 (64-bit) and Windows XP (32-bit).


java-openliberty: appsody run fails if Kubernetes is enabled

Describe the bug
On macOS, using Docker Desktop's built-in Kubernetes, the default template does not run if Kubernetes is enabled.
To Reproduce
Steps to reproduce the behavior:

mkdir testapp && cd testapp
appsody init java-openliberty
appsody run

Expected behavior
The default app starts.
Actual behaviour
The app does not start.
$ appsody run
Running development environment...
Pulling docker image docker.io/appsody/java-openliberty:0.1
Running command: docker pull docker.io/appsody/java-openliberty:0.1
0.1: Pulling from appsody/java-openliberty
Digest: sha256:8afe107bc74a9ab205c21a4a0fb8a4f0191d1de5fd4de106afa6878117bdfcf6
Status: Image is up to date for appsody/java-openliberty:0.1
docker.io/appsody/java-openliberty:0.1
Running command: docker run --rm -p 7777:7777 -p 9080:9080 -p 9443:9443 --name testapp-dev -u 502:20 -e APPSODY_USER=502 -e APPSODY_GROUP=20 -v /Users/ianpartridge/.m2/repository:/mvn/repository -v /Users/ianpartridge/src/testapp/.:/project/user-app -v appsody-controller-0.3.4:/.appsody -t --entrypoint /.appsody/appsody-controller docker.io/appsody/java-openliberty:0.1 --mode=run
[Container] docker: Error response from daemon: driver failed programming external connectivity on endpoint testapp-dev (9b4fa39e08056c656ba67872a760804020ace7ad180dac903183700ea2d91b65): Error starting userland proxy: listen tcp <IP_ADDRESS>:9443: bind: address already in use.

Pulling docker image docker.io/appsody/java-openliberty:0.1
Running command: docker pull docker.io/appsody/java-openliberty:0.1
0.1: Pulling from appsody/java-openliberty
Digest: sha256:8afe107bc74a9ab205c21a4a0fb8a4f0191d1de5fd4de106afa6878117bdfcf6
Status: Image is up to date for appsody/java-openliberty:0.1
docker.io/appsody/java-openliberty:0.1
Running command: docker run --rm -p 7777:7777 -p 9080:9080 -p 9443:9443 --name testapp-dev -u 502:20 -e APPSODY_USER=502 -e APPSODY_GROUP=20 -v /Users/ianpartridge/.m2/repository:/mvn/repository -v /Users/ianpartridge/src/testapp/.:/project/user-app -v appsody-controller-0.3.4:/.appsody -t --entrypoint /.appsody/appsody-controller docker.io/appsody/java-openliberty:0.1 --mode=run
[Container] Running APPSODY_PREP command: export APPSODY_DEV_MODE=prep;  ../validate.sh
[Container] Installing parent dev.appsody:java-openliberty:0.1.7
[Container] [INFO] Scanning for projects...
etc etc....

Environment Details (please complete the following information):
macOS 10.15.2 Catalina
Docker Desktop <IP_ADDRESS> stable with Kubernetes v1.15.5
Appsody CLI 0.5.8
If applicable please specify:

CLI version:
Stack you are using:

This was raised in Slack at the end of last week and is going into the FAQ on https://appsody.dev. I'm just waiting for the PR to be reviewed https://github.com/appsody/website/issues/505
Please do comment on the FAQ I've written as I've described the workaround where we change the port, but not the workaround of shutting down Kubernetes.
Once this is merged my thoughts are that we should link to it from the Java microprofile and Open Liberty stack readmes with wording such as “Note: If you find that your Open Liberty Appsody project on macOS fails with the error “address already in use”, see the [Appsody FAQs](link to details on website).”

The workaround sounds OK, but this issue should stay open for fixing the underlying problem in the stack, yeah?

@scottkurz What are your thoughts on this? In the past, we have tried to use the ports that the users of the language/framework are most familiar with so the developer's find transition to Appsody easier, but in this case this is causing more work than we want.
We could always use -P, but that means there is an additional step for every stack after every run. I'd like to avoid that if possible.

I wonder if this same root cause may already explain another symptom I just saw, which is that I can't do a restart from the Codewind Explorer view for my project.


Fixing LWRP's updated_by_last_action setting

Since the LWRP's sub-resources are not executed until after the action
completes, the LWRP's updated_by_last_action flag is always false. By
running the actions immediately, we can correctly set the parent LWRP's
notification flag.

@dougbarth thank you very much for this. I have rebased it on top of the latest master and merged it in as #69.


Decoding into Map key value expects an array instead of an object

Is your change request related to a problem? Please describe.
It's more of a question than a change request per se. I was naively trying to decode a JSON object by giving it the type Map String T (for some irrelevant T). This didn't work, because the decodeJson instance for Map expects an Array (of pairs, I guesss).
Isn't it a bit more obvious to expect a JSON object instead of an array of pairs?

The encodeJson and decodeJson instance for Map use an array of key/value pairs. This is done because objects require string keys, but key type used in your Map may not necessarily encode as a string. After all, you can use any key type you like (so long as it has an Ord instance).
The Foreign.Object type does encode and decode as a JSON object as you would expect, because the type represents a JavaScript object and requires string keys. If your type was Object T (for some irrelevant T), then your decodeJson instance would work properly.
If you want to decode from an object to a Map String T then you have two options. First, you can manually write the decoder and convert from the object to a map:
decodeMap json =  do
  obj :: Object T <- decodeJson json
  let
    map' :: Map String T
    map' = Map.fromFoldable $ Object.toUnfoldable obj
...

If you want automatic encoding / decoding for Map String T to a JSON object, then you'll have to put a newtype around the map and write a new instance like the one above. For example:
newtype StrMap a = Map String a

instance encodeJsonStrMap :: EncodeJson a => EncodeJson (StrMap a) where
  encodeJson (StrMap m) = encodeJson $ Object.fromFoldable $ Map.toUnfoldable m

...

Thanks for the thorough explanation. I was asking the question in an exploratory phase, so to speak. Now I have a better overview and understand the argument.


Remove token from inference widget

Fix: https://github.com/huggingface/moon-landing/issues/1796
Tied to https://github.com/huggingface/moon-landing/pull/2712

All the calls like:
<InferenceWidget
							hydrate-props={{
								apiUrl: apiInferenceUrl,
								apiToken: auth?.u.token ?? "",
								callApiOnMount: true,
								model,
								noTitle: true,
							}}
						/>

need to have the apiToken prop removed. So that auth.u.token is not passed to client-side frontend code.

works for me!