Issue with qk scale between flash attention and normal attention when qk_norm is True

When qk_norm is True :
In flash attention the scale is calculated as follow:
if self.qk_norm:
default_scale = q.shape[-1] ** -0.5
q = q * (default_scale / self.scale)
In normal attention it is as follow:
scale = default(self.scale, q.shape[-1] ** -0.5)
dots = einsum(f'b h i d, {kv_einsum_eq} -> b h i j', q, k) * scale
It seems to me that when qk_norm is True, the default value of scale is 10 and in Flash attention we divide the dots by 10√ d but in normal attention we multiply the dots by 10 instead.

@mistycube thank you for pointing this out! this is indeed an issue with qk norm + flash attention combination and should be fixed

ideally one should be able to specify a custom scale though, for a variety of scenarios (muP, Su's log(seqlen) scaling, etc)


LU File Should Support Prebuilt Domain

Tool
Name: Ludown
Describe the problem
We want to use LU file format in our project but just found it doesn't have syntax to support prebuilt-domain
Describe the solution you'd like
In .LU file,  use "##[PREBUILT] Communication.Dial"
so it maps to the following in the LUIS model file in JSON format:
{
"name": "Communication.Dial",
"inherits": {
"domain_name": "Communication",
"model_name": "Dial"
}
}
Describe alternatives you've considered
NA
Additional context
NA
[enhancement]

@vishwacsena, @sgellock who should take a look at this one?  Thank you!

Composite entities and prebuilt domains are two features that need to be support in LUDown @omarsourour will pick this work after BUILD.

@vishwacsena has a spec, if you haven't sync'ed on this, please connect with him

Sounds good! I will reach out to @vishwacsena to discuss the spec. There are some subtleties like making sure a conventions is followed, how prebuilt domain entities will be supported, ensuring prebuilt domain entities and prebuilt entities are not confused, etc.

Support for prebuilt domains is tracked via #606. Closing this in favor of that older issue tracking this.


Add project with specific branch

Depending on the project type:

Any project: Define a list of branches to run, or a list of branches to ignore
PR based projects: Define a default target branch, and a list of branches to ignore
[ ] Use branch that is selected in the add project flow when we peek the Fastfile in github, or even when we need to checkout out the repo to look for a fastfile.

As we have conceptually defined a Project is: Branch + Lane + Triggers <- (on the selected branch) how do we fit this in the current behavior?

Yes, this is a great feature, but I feel like something we don't yet need for a successful beta release, moving this to the 1.0 milestone for now 👍


allow concat validate_cmd to be configured

we use the -L parameter when starting haproxy to create custom peer names
but not including this, our validate_cmd always fails (even though, with correct cli params the config is valid)
allow the validate cmd to be configured, but by default this is the same as the default check command.

Any chance of this PR being progressed? My use of custom values in /etc/sysconfig/haproxy is breaking the validate_cmd option (I'm passing in an additional configuration file, which is ignored by the validate command execution of haproxy).

Thanks for this change, excellent work.


IB ARM gateway - Mac OS

Expected Behavior

Up to this point for our ARM image we have been using the linux gateway but IB has released a specific installer for Mac OS ARM see https://www.interactivebrokers.com/en/index.php?f=16454 we should be using this new specific ARM gateway

Actual Behavior

ARM image using linux gateway See https://github.com/QuantConnect/Lean/blob/master/DockerfileLeanFoundationARM#L30

Potential Solution

Update dockerfile to install ARM gateway and test

Reproducing the Problem

N/A
System Information

N/A
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

[x] I have provided detailed steps to reproduce the issue

See https://github.com/QuantConnect/lean-cli/issues/212#issuecomment-1343121019


Bluetooth: Mesh: Fix pb-adv link close timeout

Alters the closing timout implementation of the pb-adv so that the provisioner does not close the link until the closing timeout has elapsed. Reduces the timeout from 3 to 2 seconds.
Adds minor delay in reprovision persistence test to avoid failure after changes.

What you have done is how it was working originally, but then was changed here: #36498 Do you think it won't cause the issue described in that PR?
Another question is that if we really need to make every provisioning 2 seconds longer? The Link Close message can still be missed and the result will be the same on the provisionee, but the provisioner will wait for additional 2 seconds, while it could start provisioning the next device.

Hmm... I need to check. The reason I started this was because the final step of provisioning with PB-adv failed like 80% of the time in test_shell

@PavelVPV after my latest changes I do not think that the issues from the previous PR will be relevant. If the device receives a prov_link_close the link will be closed either by the retransmission timer CB, or in the buf sent CB when the CLOSE_TIMEOUT has elapsed.
When it comes to the question of if we should do this due to increased execution time, I'm not sure. From what I have seen the prov procedure with pb-adv really stuggles to pass the finalizing messages in the procedure, causing the provisionee to retransmit PROV complete messages for the PROTOCOL_TIMEOUT duration. However, its current state does not break the functionality and is copliant with the spec since the CLOSING_TIMEOUT is not mandatory.
If we decide to keep the implementation as is I would like to clean up a bit in the code since all use of CLOSING_TIMEOUT is more or less pointless.

Something has changed between d11c0a(The main commit where I discovered this issue) and the current main commit (2218e8). Now it seems the pb-adv is able to complete the full provisioning procedure without failure. I have tried to investigate what the reason is but have not found it this far.
Should we just close this PR then @alxelax & @PavelVPV? Or is these changes still of interest?

Something has changed between d11c0a(The main commit where I discovered this issue) and the current main commit (2218e8). Now it seems the pb-adv is able to complete the full provisioning procedure without failure. I have tried to investigate what the reason is but have not found it this far.
Should we just close this PR then @alxelax & @PavelVPV? Or is these changes still of interest?

Lets postpone changing the code until we are certain what is an issue.

I'd suggest covering this in bsim tests. Seems pb-adv is not covered explicitly. Only over provisioning tests.

For the record, 2fe449356488808ac98b56908eddba36c16b7e95 seems to have fixed this issue (for me).


References to root path in newData context should use parent() traversal.

Since we don't have a newRoot variable in Firebase rules, references that access the root (w/o a prior wrapper) should use the newData.parent() trick to reference a relative path.  For example:
path /secret/$uid is String {
  read() = isUser($uid);
  validate() = root.users[$uid] != null;
}

path /users/$uid is User {
  read() = true;
  validate() = root.secret[$uid] != null;
}

Resolved by f0b108fcdae66ffdee82f6e01b77589d59ddc572

☃


mongoexp trials "cmd" parameter values

It now seems necessary to specify a non-default value for the "cmd" parameter to the experiment object to be able to run mongo trials.   (though not for serial trials, "None" works fine there)
Is this intended?   What are the possible values and how should they be used?
I see from tests how in many cases I should probably configure it, but it seems clunky.

are you talking about the CLI or the Python API used by e.g. unittests?

python API.     I think it should be use that as well ... in particular: if
you want to programmatically construct bandits from arguments and call them
in mongo, it is quite difficult to do that.  (e.g. bandit_argfile_text
should be settable as in the old "init_mongo_exp" function I wrote)
On Sun, Feb 19, 2012 at 10:05 AM, James Bergstra <
<EMAIL_ADDRESS>
wrote:

are you talking about the CLI or the Python API used by e.g. unittests?

Reply to this email directly or view it on GitHub:
https://github.com/jaberg/hyperopt/issues/78#issuecomment-4042527

Could you write what you currently do, and what you'd like to do instead in
two code fragments? It's not clear to me.
On Sun, Feb 19, 2012 at 10:20 AM, Dan Yamins <
<EMAIL_ADDRESS>
wrote:

python API.     I think it should be use that as well ... in particular: if
you want to programmatically construct bandits from arguments and call them
in mongo, it is quite difficult to do that.  (e.g. bandit_argfile_text
should be settable as in the old "init_mongo_exp" function I wrote)
On Sun, Feb 19, 2012 at 10:05 AM, James Bergstra <
<EMAIL_ADDRESS>
wrote:

are you talking about the CLI or the Python API used by e.g. unittests?

Reply to this email directly or view it on GitHub:
https://github.com/jaberg/hyperopt/issues/78#issuecomment-4042527

Reply to this email directly or view it on GitHub:
https://github.com/jaberg/hyperopt/issues/78#issuecomment-4042597

can we chat about this real time?
On Sun, Feb 19, 2012 at 11:31 AM, James Bergstra <
<EMAIL_ADDRESS>
wrote:

Could you write what you currently do, and what you'd like to do instead in
two code fragments? It's not clear to me.
On Sun, Feb 19, 2012 at 10:20 AM, Dan Yamins <
<EMAIL_ADDRESS>
wrote:

python API.     I think it should be use that as well ... in particular:
if
you want to programmatically construct bandits from arguments and call
them
in mongo, it is quite difficult to do that.  (e.g. bandit_argfile_text
should be settable as in the old "init_mongo_exp" function I wrote)
On Sun, Feb 19, 2012 at 10:05 AM, James Bergstra <
<EMAIL_ADDRESS>
wrote:

are you talking about the CLI or the Python API used by e.g. unittests?

Reply to this email directly or view it on GitHub:
https://github.com/jaberg/hyperopt/issues/78#issuecomment-4042527

Reply to this email directly or view it on GitHub:
https://github.com/jaberg/hyperopt/issues/78#issuecomment-4042597

Reply to this email directly or view it on GitHub:
https://github.com/jaberg/hyperopt/issues/78#issuecomment-4043088


Handle ColumnNothing column in recordFilteredRows of Join

What problem does this PR solve?
Issue Number: close #8562
Problem Summary:
TiDB changes the return type of IfString from String to Null(Strange that not constant folding completely), thus introduced ColumnNothing in filter result column. It is not handled before.
What is changed and how it works?
Check List
Tests

[ ] Unit test
[x] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests


To adjust the attributes of the PromptForRegisteringCausesRegistrationRequest2 callback as per the RegistryOffice specification

The callback PromptForRegisteringCausesRegistrationRequest2 is specified to address the RegistryOffice://v2/register-application with the required request body.
If this understanding is correct , kindly please clarify the following doubt ,
As per the specification of RegistryOffice://v2/register-application , the following attributes are mandatory
- dispose-remainders-operation
- preceding-release-operation
- subsequent-release-operation

But in the request body of the callback PromptForRegisteringCausesRegistrationRequest2 ,
there is no required attributes described.
Proposal :
The following required properties shall be included in the request body of the callback PromptForRegisteringCausesRegistrationRequest2,
- application-name
- release-number
- embedding-operation
- client-update-operation
- operation-client-update-operation
- dispose-remainders-operation
- preceding-release-operation
- subsequent-release-operation
- tcp-server

The definition of the requestBody of the callback in the consuming application is basically redundant to the definition of the requestBody in the path definition of the serving application.
Keeping both in sync is basically an effort, but also a potential cause of divergence.
This is why I reduced the latest callback definitions to what I thought would be the "helpful minimum",
which means the information about where the attributes' values shall be taken from.
(No required, no min max of attributes, no templates, no examples, etc.)
Does this mean a disadvantage to the implementer?
Which would be the information required by the implementer?
What would be the ideal set of information for the implementer?

Thank you for explaning the reason behind.
As you mentioned , we shall also look into the serving application to get the information.
May be, we shall include which version of the serving application shall be refered for formulating the requestBody , so that the correct API shall be referred.
Also , please find the below details ,
Does this mean a disadvantage to the implementer?
examples, templates are additional information, removing them will not be a problem.
But , "required", "min", "max" statements will be useful for the implementer to correctly formulate the requestBody of a callback.
Which would be the information required by the implementer?
As mentioned above , "required", "min", "max" statements will be useful.
What would be the ideal set of information for the implementer?
Schema :
"required"
"properties"
Properties:
"description" - about the value of the attribute
"minProperties"
"maxProperties"
What information will not be required for the implementer?
The following are not required ,
Schema :
"example"
Properties:
The value for a requestBody property will be filled based on the details provided in the description.
The consuming application will not do the validation of the data provided in the requestBody.
And the serving application will do the data validation of the requestBody.
So ,the following information will not be used by the implementer to formulate the callback,
"pattern"
"enum"
"minimum"
"maximum"
"minLength"

Changed as initially proposed.


Segmentation fault when connecting with two clients

Hi,
I have a scripts that connects to the PLC, registers a callback on a symbol and polls for a value every 10 seconds (a sort of watchdog).
It works fine.
When I connect from another client in the script I get correctly this message:
2021-07-09T15:57:18+0200 Info: connection closed by remote
At this point I have the following issues:

I cannot know inside my script if the connection is still alive as is_open does only return a stored value
When I try to plc.close() before reopening (I need to do this to be able to communicate again) the software gives a Segmentation Fault. Note that happens if and only if I register a callback on a variable, if I don't register the software works as expected.

The problem is on a Linux Platform, connecting to a Windows PLC
This is the backtrace:
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff69996a2 in AmsConnection::AdsRequest(AmsRequest&, unsigned int) () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#2  0x00007ffff6999409 in AmsConnection::DeleteNotification(AmsAddr const&, unsigned int, unsigned int, unsigned short) () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#3  0x00007ffff69a0803 in long std::__invoke_impl<long, long (AmsConnection::*&)(AmsAddr const&, unsigned int, unsigned int, unsigned short), AmsConnection*&, AmsAddr&, unsigned int, unsigned int, unsigned short&>(std::__invoke_memfun_deref, long (AmsConnection::*&)(AmsAddr const&, unsigned int, unsigned int, unsigned short), AmsConnection*&, AmsAddr&, unsigned int&&, unsigned int&&, unsigned short&) ()
   from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#4  0x00007ffff69a05e8 in std::__invoke_result<long (AmsConnection::*&)(AmsAddr const&, unsigned int, unsigned int, unsigned short), AmsConnection*&, AmsAddr&, unsigned int, unsigned int, unsigned short&>::type std::__invoke<long (AmsConnection::*&)(AmsAddr const&, unsigned int, unsigned int, unsigned short), AmsConnection*&, AmsAddr&, unsigned int, unsigned int, unsigned short&>(long (AmsConnection::*&)(AmsAddr const&, unsigned int, unsigned int, unsigned short), AmsConnection*&, AmsAddr&, unsigned int&&, unsigned int&&, unsigned short&) () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#5  0x00007ffff69a03b9 in long std::_Bind<long (AmsConnection::*(AmsConnection*, AmsAddr, std::_Placeholder<1>, std::_Placeholder<2>, unsigned short))(AmsAddr const&, unsigned int, unsigned int, unsigned short)>::__call<long, unsigned int&&, unsigned int&&, 0ul, 1ul, 2ul, 3ul, 4ul>(std::tuple<unsigned int&&, unsigned int&&>&&, std::_Index_tuple<0ul, 1ul, 2ul, 3ul, 4ul>) () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#6  0x00007ffff69a017b in long std::_Bind<long (AmsConnection::*(AmsConnection*, AmsAddr, std::_Placeholder<1>, std::_Placeholder<2>, unsigned short))(AmsAddr const&, unsigned int, unsigned int, unsigned short)>::operator()<unsigned int, unsigned int, long>(unsigned int&&, unsigned int&&) () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#7  0x00007ffff699fe1d in std::_Function_handler<long (unsigned int, unsigned int), std::_Bind<long (AmsConnection::*(AmsConnection*, AmsAddr, std::_Placeholder<1>, std::_Placeholder<2>, unsigned short))(AmsAddr const&, unsigned int, unsigned int, unsigned short)> >::_M_invoke(std::_Any_data const&, unsigned int&&, unsigned int&&) () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#8  0x00007ffff69a1ce9 in std::function<long (unsigned int, unsigned int)>::operator()(unsigned int, unsigned int) const () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#9  0x00007ffff69a0efc in NotificationDispatcher::Erase(unsigned int, unsigned int) () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#10 0x00007ffff69961ca in AmsPort::Close() () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#11 0x00007ffff69a462b in AmsRouter::ClosePort(unsigned short) () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#12 0x00007ffff69abafe in AdsPortCloseEx () from /home/user/.local/lib/python3.7/site-packages/pyads/adslib.so
#13 0x00007ffff7fc381e in ffi_call_unix64 () from /lib/x86_64-linux-gnu/libffi.so.6
#14 0x00007ffff7fc31ef in ffi_call () from /lib/x86_64-linux-gnu/libffi.so.6
#15 0x00007ffff6b1fef4 in _ctypes_callproc () from /usr/lib/python3.7/lib-dynload/_ctypes.cpython-37m-x86_64-linux-gnu.so
#16 0x00007ffff6b20684 in ?? () from /usr/lib/python3.7/lib-dynload/_ctypes.cpython-37m-x86_64-linux-gnu.so
#17 0x00000000005d93eb in _PyObject_FastCallKeywords ()
#18 0x00000000005523a8 in _PyEval_EvalFrameDefault ()
#19 0x00000000005d85cc in _PyFunction_FastCallKeywords ()
#20 0x000000000054e210 in _PyEval_EvalFrameDefault ()
#21 0x00000000005d85cc in _PyFunction_FastCallKeywords ()
#22 0x000000000054e3ac in _PyEval_EvalFrameDefault ()
#23 0x00000000005d9906 in _PyFunction_FastCallDict ()                                                                                #24 0x00000000004d65d2 in ?? ()                                                                                #25 0x00000000005a69bf in PyObject_GetAttr ()                                                                                #26 0x000000000054e149 in _PyEval_EvalFrameDefault ()                                                                                #27 0x00000000005d85cc in _PyFunction_FastCallKeywords ()                                                                                #28 0x000000000054e3ac in _PyEval_EvalFrameDefault ()
#29 0x00000000005d85cc in _PyFunction_FastCallKeywords ()
#30 0x000000000054e3ac in _PyEval_EvalFrameDefault ()
#31 0x00000000005d85cc in _PyFunction_FastCallKeywords ()
#32 0x000000000054e3ac in _PyEval_EvalFrameDefault ()
#33 0x00000000005d85cc in _PyFunction_FastCallKeywords ()
#34 0x000000000054e210 in _PyEval_EvalFrameDefault ()
#35 0x000000000054baa2 in _PyEval_EvalCodeWithName ()
#36 0x000000000054dd03 in PyEval_EvalCode ()
#37 0x0000000000630d02 in ?? ()
#38 0x0000000000630db7 in PyRun_FileExFlags ()
#39 0x0000000000631a1f in PyRun_SimpleFileExFlags ()
#40 0x00000000006541ce in ?? ()
#41 0x000000000065452e in _Py_UnixMain ()
#42 0x00007ffff7dedb6b in __libc_start_main (main=0x4bcb00 <main>, argc=2, argv=0x7fffffffe388, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe378) at ../csu/libc-start.c:308
#43 0x00000000005e01aa in _start ()

Any hint? Thanks

The problem I reported is on a Linux platform connecting to a Windows PLC

hi, thanks for the issue, have you got a simplified code snippet to show what you are doing? this might help in debugging this issue.

Hi, this was reproduced also by another person, we also found how to circumvent it.
How to reproduce:

on a Linux system connect to a PLC and add a callback for a variable
open another shell on the same system and open another connection to the same PLC
When the second connection opens the first drops. At this point if the first connection does plc.close() you have the segfault.

Circumvent: you need to del_device_notification before close, it raises an exception because the connection is no more in place, but it will not segfault.

BTW: on Windows guest you can have multiple ADS connection at a time versus the same PLC, I understand that this is not possible on linux? (the first connection is dropped when you open another one)

yes, thanks for finding a workaround, but yes I assume this is a bug. That is my understanding too that only one linux client can connect, although I do not know why. Sorry.


Still can't set login files.

Login files still can't be set cause they still close instantly before you get a chance. :(

Same here.
Tedious, but available workaround is to start the client normally, add login info and login (maybe login is not required, but haven't tested), exit client/launcher, create a new profile, and hit "set loginfile". It will close automatically after a few seconds, but will work. Just an advice if you go this way, monitor profile creation as every once in a while, username field is not populated when "set loginfile" is pressed and then you need just to re-click to recreate it.

Yeah nah, this does not work as you said, It didn't work before the last update either.
Especially if you have more than 1 client and the one that is not working is not your main account.

The author of the plugin does not seem to be interested in updating this application.
Perhaps you can try and see if GW2Launcher suits your needs.


elements in $set does not scale when zooming

Can I retain the original size of an element which is included in $set when I zoom the main panzoom?
The $set element that I have changes it size and goes out of the screen when I zoom.

Sounds like you need 2 instances of panzoom, with one only calling pan on the other.


podman ps --filter doesn't work like docker's

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The docker ps --filter allows to pass a "OR" string in the form of "name=foo|bar". Apparently, podman ps --filter doesn't work like this.
Steps to reproduce the issue:

run three containers, one named "bar", one named "foo" and the last one "blah"

try to list them using podman ps -aq --filter "name=bar|foo"

Describe the results you received:
It doesn't show any container.
Describe the results you expected:
It should show two containers, "foo" and "bar", for instance:
docker ps -aq --filter "name=foo|bar"
247a990999d5
4d019ac351b0

Additional information you deem important (e.g. issue happens only occasionally):
Always happening
Output of podman version:
Version:            1.4.5-dev
RemoteAPI Version:  1
Go Version:         go1.10.2
OS/Arch:            linux/amd64

Output of podman info --debug:
host:
  BuildahVersion: 1.9.0
  Conmon:
    package: podman-1.4.4-1.el7.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 0.2.0, commit: da19d4db03f799783380e6a056cfc6b2bf7f0e18'
  Distribution:
    distribution: '"centos"'
    version: "7"
  MemFree: 335626240
  MemTotal:<PHONE_NUMBER>4
  OCIRuntime:
    package: runc-1.0.0-60.dev.git2abd837.el7.x86_64
    path: /usr/bin/runc
    version: 'runc version spec: 1.0.0'
  SwapFree:<PHONE_NUMBER>
  SwapTotal:<PHONE_NUMBER>
  arch: amd64
  cpus: 12
  hostname: overcloud-0-controller-0
  kernel: 3.10.0-957.21.3.el7.x86_64
  os: linux
  rootless: false
  uptime: 6h 35m 40.32s (Approximately 0.25 days)
registries:
  blocked: null
  insecure: null
  search:
  - registry.access.redhat.com
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.centos.org
store:
  ConfigFile: /etc/containers/storage.conf
  ContainerStore:
    number: 79
  GraphDriverName: overlay
  GraphOptions: null
  GraphRoot: /var/lib/containers/storage
  GraphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Using metacopy: "false"
  ImageStore:
    number: 31
  RunRoot: /var/run/containers/storage
  VolumePath: /var/lib/containers/storage/volumes

Hi @cjeanner, thanks for opening the issue. It's already being tracked in https://github.com/containers/libpod/issues/3394, so I am closing this one here.


Remember selected group

The last selected group shall be remembered and selected upon the next launch

This works quite fine. Thanks.


Bot messages do not get forwarded to Telegram

Edit: WA bot messages with response buttons do not get forwarded to telegram

Added some descriptions but basically this is what happens in pic


w2grid enhancement - cache query(this.box)

Thank you for your PR. I agree that the syntax with $box is more expressive then always write query(this.box), however I am reluncant to accept this PR because of two reasons:

I do not think it will do any reasonable speed improvements because in majority of cases this.box is just an html element and query(this.box) returns immediate result without DOM parsing. Plus, I did not see argumentation why you changed it.
The change is too involved and we do not have very comprehensive test coverage and we are close to 2.0 release, therefore, I think it is not the best time

I do not think it will do any reasonable speed improvements because in majority of cases this.box is just an html element and query(this.box) returns immediate result without DOM parsing. Plus, I did not see argumentation why you changed it.

query()  create a new object each time. see L564

Yes, you are right. I will create a new query object, but if you look here https://github.com/vitmalina/w2ui/blob/master/src/query.js#L10, you'll see that it will just create a new object with a single node in it w/o DOM traversing.
Do you have some estimates or a use case where it could be measured to show that this will provide noticeable speed improvements?

I am a bit reluctant to merge it now, as we are close to 2.0 release and this change has large code impact and will require more through testing.

Closing due to no response


Chapter 2: call_cf.sh not working

For some reason the call_cf.sh script does not work as expected. I've played a little with the year and month specified in the file, f.e. changed the year to 2016 and tried various values for the month. When running the file as bash script no files are added to the bucket.
I've no idea why it fails because running the commands line by line in the shell works just fine and the requested month is added to the bucket.

thanks for fixing in PR 97!

Unfortunately PR 97 does not fix this issue.

try now. The PATH variable was getting clobbered.

I've already used the latest version with the UPATH variable. There is no error message but the cloud function is not triggered since there are no entries in the logs. While supplying the content of the /tmp/message file to the testing section of the cloud function works just fine.

The problem was the URL variable in the curl command.

fixed the URL ...
lak
On Tue, Oct 6, 2020 at 10:13 PM kja<EMAIL_ADDRESS>wrote:

The problem was the URL variable in the curl command.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/data-science-on-gcp/issues/98#issuecomment-704696567,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANJPZ5UAFXQSKFZFUINWILSJP2I7ANCNFSM4SF6KMKA
.


fix: responsive navbar

Navbar Responsive
https://github.com/hawks-atlanta/frontend-react/assets/115849391/3ff606bf-2236-4971-85a8-041838e68730

@MiguelMRojas Restore the Button.spec.cy.tsx file. It fas empty but apparently the tests fail if there isn't at least one component testing file.


Search Courses

User Story
As a user, I can enter a quarter, department, and a course level, and see a list of courses.
The information presented might be somewhat less, in the initial version, than what is available on https://my.sa.ucsb.edu/public/curriculum/coursesearch.aspx   so that we can leave some work for the students to do.
Acceptance Criteria

[ ] There is a method that can be called that queries the UCSB curriculum api for a list of departments.
[ ] There are instructions in the README for configuration of the api key
[ ] There is an application specific configuration property for start quarter and end quarter.
[ ] On the main page of the app, there is a dropdown for quarter, a dropdown for department, and a drop down for course level.
[ ] The dropdown for department is populated from the query to the UCSB Curriculum API
[ ] The dropdown for quarter is populated from the start and end quarter values
[ ] The dropdown for level can be populated with hard coded values.
[ ] There is a service that takes the values supplied by the react form, converts them into a query, queries the ucsb curriculum api, and returns to the results in JSON form to the front end.   That service should handle the paging and return all of the JSON results at once.  In initial version, it's ok if we hard code the page size of the request at 100 and assume that we will never get more than 100 results, but in a subsequent version we should fix that.
[ ] There is a React component that displays results of a course search as the raw JSON.    Converting that component to display the course results in a more reasonable format is a SEPARATE STORY.

This issue has been replaced by issues #14, #16, #17, #18, #19


TextareaAutosize is missing from @material-ui/core index.js

The default export file for @material-ui/core is missing an export for TextareaAutosize. However, the index.d.ts definition says that it is exported.

[X ] The issue is present in the latest release.
[X ] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
import { TextareaAutosize } from '@material-ui/core'
TextareaAutosize -> undefined
import TextareaAutosize from '@material-ui/core/TextareaAutosize'
TextareaAutosize -> exported component
Expected Behavior 🤔
TextareaAutosize -> exported component
Steps to Reproduce 🕹
See above
Context 🔦
Trying to use the TextareaAutosize component from the base index.js
Your Environment 🌎

Tech
Version

Material-UI
v4.3.2

React
v16.9.0

Browser
any/all

TypeScript
3.5.3

Looks like the re-export is missing from the index.js file. Do you want to add it?

I'd love to work on this!


Adding exclusion rule to appgw for oauth2 callback with token

There is a AGW rule that triggers when oauth2 callback happens, which we need to exclude. As far as I could find, this is the only way of excluding checks. Ideally we would exclude on URL, but currently v2 seems to only support request arg names.
https://docs.microsoft.com/en-us/azure/templates/microsoft.network/2018-08-01/applicationgateways#applicationgatewayfirewallexclusion-object

Have you tested that this achieves what you're after?

Have you tested that this achieves what you're after?

I have indeed :-)

Have you tested that this achieves what you're after?

I have indeed :-)

Then it's a GO from me. Seems my positive review is not sufficient to be able to integrate the change. 😢


FEATURE REQUEST: add defaultColumnProps prop

Is your feature request related to a problem? Please describe.
I find that often I want my cells to have this cellsStyle
             overflow: 'hidden',
              textOverflow: 'ellipsis',
              whiteSpace: 'nowrap'

Describe the solution you'd like
would be nice if I could override this globally for all my cells instead of having to define this for each column
Describe alternatives you've considered
I can define it for each column
Additional context

Definitely sounds like a useful feature, but I think I'd rather call it defaultColumnProps. What do you think?

yes, that would be better. That way you can override other column props as well :rocket:

I know I have previously asked for defaultColumnRender, but yeah, having defaultColumnProps sounds more useful. There I can override both render and cellsStyle

This should be available in a few minutes as soon as v2.7.0 hits the npm registry.


feat(docs): add docusaurus generator for documentation

Current dependencies on/for this PR:

main

PR #34

PR #35

PR #36

PR #37   👈

This comment was auto-generated by Graphite.

Graphite Merge Job
Current status: ⏳ Queued to merge
This pull request is currently queued to be merged as part of a stack.
This comment was auto-generated by Graphite.

Job Reference: Lq6fAFaN1fLnSbVbBggu


Fix: Servo ctr includes a default waveform period

Resolves #977

Coverage remained the same at 78.593% when pulling bb5f29d1c71cc6fcaf23343ecd0e9321f984eaf1 on servo-fix into ff7f55f69105e10f692752a634f4cb7c2adf1bee on master.


try to fix current issue with latex inline doc

current way it looks:

Follow-up to #905?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

fixed by https://github.com/huggingface/doc-builder/pull/438
https://huggingface.co/docs/hub/model-cards#can-i-write-latex-in-my-model-card


Demo site 404

Demo site link is https://ryanlue.com/jekyll-solana
Right now it 404's
But I do see the theme used at https://ryanlue.com 😎

All fixed! Thanks so much for the heads up.


preventDuplicates doesn't check for title text, only message text

'preventDuplicates' doesn't check for title text, only message text
If I want to display several toasts with no body text, only title - then only the 1st will be displayed, as toastr thinks they are all the same.

Yes you are right, you can go with title.
function shouldExit(options, map) {
if (options.preventDuplicates) {
if (map.title=== previousToast) {
return true;
} else {
previousToast = map.title;
}
}
return false;
}

Care to create a PR?


Update(mj-pa) release mj-pa v2.0.0

Makes 5 distinct adjustments to the previous configuration.
Releases semver major version 2.0.0 w/ breaking changes.
Aligns more closely with Prettier's default config while maintaining opinionated distinctions.
Addresses the "[Deprecated] JSX Brackets" issue.

v2.0.0 ready to publish


createChatCompletion method returning undefined in the choices array

Describe the bug
I'm using node.js with the official opean ai lib and when I tried to send a request, I got nothing, the choices array is empty.
It's working fine with davinci model, just this new one model: "gpt-3.5-turbo", isn't working.

To Reproduce

Code snippets
No response
OS
windows
Node version
v10.19.0
Library version
3.2.1

The response for the 'gpt-3.5-turbo' model is not choices[0].text but rather choices[0].message.content. In any case, choices should not be empty.
I am also getting an error for the following code:
async function gptCompletion() {
  try {
    const response = await openai.createCompletion({
      model: "gpt-3.5-turbo",
      messages: [{"role":"user", "content":"Hello World"}],
    })

    return response
  } catch (e) {
    console.log("Error getting GPT completion: ", e)
    throw e
  }
}

gptCompletion()

Getting an "Error: Request failed with status code 400"

@lucianot  you should call createChatCompletion instead of createCompletion

@Fndroid its says "openai.createChatCompletion" is not a function

@Fndroid its says "openai.createChatCompletion" is not a function

Make sure to use the latest version of openai (current: 3.2.1)

@lucianot you should call createChatCompletion instead of createCompletion

Worked! Thanks.

To summarize all the issues you may have struggled with during the update to the new gpt-3.5-turbo model:

[ ] npm update make sure you are using the latest version of OpenAI, which is 3.2.1
[ ] this new model optimized for chat and you should call openai.createChatCompletion() instead of openai.createCompletion()
[ ] the response now is data.choices[0].message.content not data.choices[0].text

Thanks to everyone who clarified this question above

const {Configuration, OpenAIApi} = require('openai');
const configuration = new Configuration({
apiKey: apiKey
});
it shold be work

You also need this line:
const openai = new OpenAIApi(
new Configuration({ apiKey: process.env.OPENAI_API_KEY })
);

If you still need help working with the API, give the community a try: https://community.openai.com

you have to write it like this, the syntax has been updated for chatcompletions
const chatCompletion = await openai.chat.completions.create

const chatCompletion = await openai.chat.completions.create({...})
The response structure also should be modified like below.
console.log(chatCompletion .choices[0].message);


Move the pattern matching feature to its own module

Along with many other improvements, pattern matching eventually will come to Java.
Our main goal isn't to create a parallel-universe to native Java but integrate missing (functional) core features known from other languages (currently mainly Scala). Moving pattern matching to its own module will keep the core clean and healthy while Java evolves.

Did you mean another repo? Seems a bit premature given the link you refer to is only exploratory - Java is littered with good ideas gone nowhere. My thinking would be to hold off until it's actually something at least in draft in the JCP. At this point you wouldn't know what you're even trying to target.

If the dependency is unidirectional between vavr-match and vavr-core, I think it's a good idea to split them into two. You could still include just vavr-match in your dependencies and get the core transitively. It could, in theory (haven't tested though), speed up the GWT compilation, I think the match module is not compatible with GWT anyway.

See #2057


Windows Sysmon Event ID 3 ASIM Parser

Required items, please complete
Change(s):
Added Sysmon Event ID 3
Reason for Change(s):
Event ID 3 parser was not yet available

Hi @goosvorbook, update your branch from master and push it again. Thanks
Hi @oshezaf, the author has provided fixes, please review them. Thanks

Hi @goosvorbook,
Would you like to continue working on this pull request? Thanks

Hi @goosvorbook,
Kindly provide an update on the requests mentioned above. Thanks

Hi @goosvorbook,
Would you like to move forward with the work on this pull request? Thanks

Hi @goosvorbook,
Do you wish to keep working on this pull request? Thanks

Hi @goosvorbook,
We wanted to check on the status of PR #6888. PR is pending for more than 30 days. Please let us know if you need any assistance to review this PR. Per our standard operating procedures if no response is received in the next 7 business days, we will close this PR. Thank you for your cooperation


Show timeout page when rendering takes too long

This should be configurable. Will need a change in can-wait to allow for timeouts.

Closed in favor of #165


System Crush with Nvidia Cards

{

	hardware.opengl = {
		enable = true;
	};

	services.xserver.videoDrivers = ["nvidia"];

	hardware.nvidia = {
		modesetting.enable = true;
		powerManagement.enable = false;
		powerManagement.finegrained = false;
		open = false;
		nvidiaSettings = true;
		package = config.boot.kernelPackages.nvidiaPackages.stable;
		prime = {
			sync.enable = true;
			intelBusId = "PCI:0:2:0";
			nvidiaBusId = "PCI:1:0:0";
		};
	};
}

This is my nvidia configuration file as suggested in nixos wiki. I have Nvidia GeForce RTX 3050 graphic card on my laptop. After I ran the following command nix run github:CTU-IIG/carla-simulator.nix#carla-bin-0_9_15 my system got crushed and restarted a new session. It is propably because of nvidia settings but I don't know what cause it.

Are you able to extract some logs from the machine (dmesg, journalctl or coredumpctl)? This should give some hint what's going on.

dmesg.txt
journal.txt
I hope it helps.

journal.txt
I believe this is more clear. Btw I just installed a steam game so it is not a general nvidia problem.

This is strange. The only thing that can be seen from the logs is that the connection to the wayland compositor was lost, but there is no sign of any crash, error etc. Even the dmesg doesn't show any problem.
How much memory do you have on the GPU? Sometimes I see problems with low-memory GPUs and high-res displays. High-res displays need a log of GPU memory and Gnome competes for it with CARLA. Then, especially on Nvidia GPUs, problems happen.

I have 4GB memory an currently 10% is being used.

Having only 4GB might be the reason. This page says, that 6GB is the minimum.
You may try whether you'll have more luck with different desktop than Gnome. Or you can try running CARLA with -quality-level=Low. Otherwise, I'm out of ideas.
I'm running CARLA from this overlay only on Intel and AMD GPUs. I don't have any NixOS system with nvidia GPU around.


Reviews: Add enclosing folder setting

I like that the plugin will keep all items together that are in a folder. that's great.
but I would like to put all my project folders together in an enclosing folder to keep them all together.
obviously I don't need to see that enclosing folder in the output.
so would suggest having a setting that says "hide top-level folder in output" or some such
thanks for considering!

Will be released as part of v0.9.2


Sonar Analysis Results Upload never comments on PR

The log always shows
2016-09-10T02:24:30.1349309Z Post-processing succeeded.
2016-09-10T02:24:30.1349309Z Fetching code analysis issues and posting them to the PR...
2016-09-10T02:24:31.7912621Z SonarQube found 6529 issues out of which 665 are new
2016-09-10T02:24:32.1193249Z 665 issue(s) do not relate to a specific file and will not be posted to the code review
2016-09-10T02:24:32.8068209Z True

I use the exact same build for CI as I do for PR's

Please reopen the issue if you need more help

I use C#, JavaScript, and CSS. The issues show up in the report during a regular build. They just don't show up as comments during a pull request.

Could you try again? We had a bug in this area which we just patched.

Sorry for the delay, I am just getting back to this. I submitted a PR with a single file change and am still getting the same issue
2017-01-24T11:07:43.6640288Z Fetching code analysis issues and posting them to the PR...
2017-01-24T11:07:47.1952579Z SonarQube found 15283 issues out of which 5 are new
2017-01-24T11:07:47.2108156Z 5 issue(s) do not relate to a specific file and will not be posted to the code review
2017-01-24T11:07:47.9921278Z True
2017-01-24T11:07:48.8046418Z Processing 0 new messages
2017-01-24T11:07:49.1327567Z No new messages were posted
2017-01-24T11:07:49.1483806Z Uploading the legacy summary report. The new report is not uploaded if not enabled, if the SonarQube server version is 5.2 or lower or if the build was triggered by a pull request

we are also facing the same issue.
Please help us in resolve this.

Please log a new issue so that the team can properly triage.

Can't we reopen this issue? It was never resolved

I no longer work for VSTS, so it would be better to have this re-triaged

I'm also having this issue. We're using VSTS, an on-prem Build Server, Visual Studio 2015, C#/TypeScript/JavaScript analysers, SonarQube 6.3 & SQL Server on Windows Server 2016.

The SonarQube tasks are now maintained by SonarSource - see this blog post for details and how to get support https://blogs.msdn.microsoft.com/visualstudioalm/2016/12/13/sonarsource-have-announced-their-own-sonarqube-team-services-tfs-integration/


iterate through MaxClients correctly

Whoops, nice fix.  Thanks for the PR.

love your maps btw :)

Thanks.  Good to see that bhop is alive and some of my stuff is still in use.


Voting Power not correct on Automated options, picking up user's voting power

Context & versions
staging.sanchonet
Steps to reproduce

Delegate to a Drep
go to Drep directory
Open combo box for automated voting options

Video:
https://www.loom.com/share/ce393cc15f24469685c34f1dd61eacf1?sid=4c6c2a4e-882f-4c6b-aec9-e05ab032ed7a
Actual behavior
Automated and Vote no shows user's own voting power in their "voting power" fields
Expected behavior
Automated and Vote should show the accumulated Voting Power that's been delegated to these options from all users of the system

Wrong Voting power value shown - should total votaing power instead users only:

Could be related to this issue of correctly obtaining Voting power from db-sync

Frontend issue:
These values should be taken from GET /network/metrics

OK NOW, - Voting power on Automated options


Missing API to access and control AdaptiveMediaSource representations

When using AdaptiveMediaSource to play DASH and HLS content, the API surface for controlling the content handling is currently very limited. It only provides access to a list of bitrates and the ability to set the min/max desired bitrates.
A single video track might have many different resolutions and codecs available, but none of that data is currently accessible to apps. Nor is there any way to prefer or disable certain representations. If you try to use VideoTrack.GetEncodingProperties() to get data about a track, it seems to give back data for only one representation (often the lowest quality).
A single audio track might have multiple codecs available, like AAC for stereo and AC3 for 5.1 surround. There's no way to choose one as the active option or indicate a preference.
There should be an API exposing the list of tracks, and the representations available for each track, providing metadata about the representations and an option to disable a representation.
Example use cases:

Filtering out representations that a platform has trouble playing. On Xbox, a 4K representation might consume too much video memory, so it is desirable to remove it from the list of options and cap out at 1080p. Whereas on PC we may be ok with going to 4K for the same content. In the same vein, there may be both H264 and HEVC representations available. On a device without hardware HEVC support, an app may want to disable the HEVC representations to avoid poor performance.
Selecting an audio format. An audio track might be available in several formats, like AAC for stereo and AC3/EC3 for 5.1 surround, and a user may want to choose a preferred format.

This is a Windows API outside the scope of WinAppSDK. I logged this internal issue for the owners of AdaptiveMediaSource to look at this issue.


Self-collision issue on Linux and Android.

On Linux and Android sometimes you got stuck and you can't move anymore.
If you try to move the camera flies inside you, and you stay in the same position.
It happens randomly, but I noticed that it happens often if the Ai runs into you.

https://user-images.githubusercontent.com/5215249/157503165-1ef70899-0304-43b5-b94b-492491f228bb.mp4
Bug demonstration on Android

https://user-images.githubusercontent.com/5215249/157908397-54d538f4-0ac6-4b51-a419-5b29ebab1d75.mp4
For some reason the Mesh of the character starts to scale to a gigantic size when you start to move, after colliding the something.

Are there any logs? Maybe they can help figure out what's going on.

In the hope to get some useful logs, I tried to run a debug build.
in the debug build this bug with the big character does not appear, so maybe this bug occurs because the (clang Android/Linux) optimizes something away? 🤔

It seems that this issue is related to the incorrect scaling of the bones when applying additive animations. The position of the camera depends on the position of the bones, which is why it shifts so much inside the character.
The issue from the last video seems to be a physics issue, the character should not be able to walk on this step.
Can you please try to somehow get the logs and test the сommunity version of the plugin in the same conditions? Did the plugin version for Unreal Engine 4.26 or 4.27 also have these issues?

the incorrect scaling of the bones happens on all Engine versions < 5.
On UE 5.0 this does not happen.
the physics issue happens UE5 no matter C++ / BP on Andoid.

Does this mean that the bone scaling issue is no longer relevant? 😄
As for the physics problem, I suggest to wait until the full release of Unreal Engine 5.0. You can also download the 3rd person template that comes with the engine and test this bug with the character blueprint from there, try to walk on a step of the same height as in the video.


add FixedArray[Byte] method set_utf_char

deprecate Bytes method set_utf16_char in future request
deprecate FixedArray[Byte] ambiguous method set_utf16_char
new FixedArray[Byte] method set_utf8_char, set_utf16le_char and set_utf16be_char

Pull Request Test Coverage Report for Build 3968
Details

14 of 19 (73.68%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.1%) to 80.247%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

builtin/bytes.mbt
14
19
73.68%

Files with Coverage Reduction
New Missed Lines
%

builtin/bytes.mbt
2
60.32%

Totals

Change from base Build 3967:
0.1%

Covered Lines:
4359

Relevant Lines:
5432

💛  - Coveralls


Library not loaded: @rpath/libswiftCore.dylib

When I run it on iOS Simulator device, it show this error:"xxxxxx/Build/Products/Debug-iphonesimulator/libswiftCore.dylib' (no such file)"

@451518849 I can't reproduce this issue on iOS and this error message seems not to be related with this library. I would need a little bit more information to help you.

I found  the same problem in react：0.62 – dyld: Library not loaded: @rpath/libswiftCore.dylib #27
.
It seems happened in iOS version >= 12.2, and my  iOS Simulator version is iOS 15.0.
I have found solution here：This copy of libswiftCore.dylib requires an OS version prior to 12.2.0
And if I remove the swift file in ios “SwiftEmojiPickerFlutterPlugin.swift” from emoji_picker_flutter，the problem can also be resolved.
Maybe you need to rewrite the plugin file in iOS to compatible with higher iOS versions .

@451518849 Mh I took a look and the problem seems not very common. I tried and could build the emoji_picker_example without any issue on my iPhone 13 iOS 15.2 Simulator. Can you check out the repository and try to run the sample in the example folder? If that can be build without issue there must be a problem in your project being somehow incompatible with this library 🤔


Update guava to 33.1.0-jre

About this PR
📦 Updates com.google.guava:guava from 31.1-jre to 33.1.0-jre
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.google.guava", artifactId = "guava" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.google.guava", artifactId = "guava" }
}]

labels: library-update, commit-count:1

Superseded by #267.

Superseded by #271.


Master

language support for Urdu has been added..

HI thanks for sharing this! Do you sending this to the develop branch instead of master? I cannot make this change for you.


[EN DateTimeV2] "march-3th" not be recognized as right answer

"march-3th" is an invalid entity and should not be recognized.


feat: Implement epoch and epoch_ms functions.

Is your feature request related to a problem? Please describe.
Required by duckdb test, see https://duckdb.org/docs/sql/functions/timestamp.html for details.
Describe the solution you'd like
Add epoch, epoch_ms timestamp function.
Describe alternatives you've considered
No.
Additional context
No response

In PostgreSQL:
test=# select extract(epoch from '2022-11-07 08:43:04'::TIMESTAMP);
      extract
-------------------
<PHONE_NUMBER>.000000
(1 row)

test=# select to_timestamp(701222400000/1e3) AT TIME ZONE 'UTC';
      timezone
---------------------
 1992-03-22 00:00:00
(1 row)

This means to support DuckDB tests we need to support more functions than PostgreSQL

I think both are ok to me. Do we have already support extract epoch already?


segfault in native code while trying to use CustomOp

I'm trying to use CustomOp to create a Constant, as it has been suggested in #8428.
As soon as I define that my CustomOp has no inputs, it fails with a segfault, and I can't find a workaround.
Environment

Linux setup using  https://raw.githubusercontent.com/apache/incubator-mxnet/1.2.1/ci/docker/install/ubuntu_core.sh (actually in a Docker)
MXNet 1.2.1, scala 2.11.11

Code
class ConstantOp(value: NDArray) extends CustomOp {

  def forward(isTrain: Boolean, req: Array[String], inData: Array[NDArray], outData: Array[NDArray], aux: Array[NDArray]): Unit = {
    val data = value.copyTo(outData(0).context)
    this.assign(outData(0), req(0), data)
    data.dispose()
  }

  def backward(req: Array[String], outGrad: Array[NDArray], inData: Array[NDArray], outData: Array[NDArray], inGrad: Array[NDArray], aux: Array[NDArray]): Unit = {
    throw new Exception(s"Backward not supported by Constant")
  }
}

class ConstantOpProp(needTopGrad: Boolean = false) extends CustomOpProp(needTopGrad) {

  override def listArguments(): Array[String] = Array()

  override def listOutputs(): Array[String] = Array("output")

  override def inferShape(inShape: Array[Shape]): (Array[Shape], Array[Shape], Array[Shape]) = {
    val data = NDArray.deserialize(this.kwargs("value").toCharArray.map(_.toByte))
    (Array(), Array(data.shape), null)
  }

  override def inferType(inType: Array[DType]): (Array[DType], Array[DType], Array[DType]) = {
    val data = NDArray.deserialize(this.kwargs("value").toCharArray.map(_.toByte))
    (Array(), Array(data.dtype), null)
  }

  override def createOperator(ctx: String, inShapes: Array[Array[Int]],
                              inDtypes: Array[Int]): CustomOp = {
    // hacky stuff to workaround the declaration using String
    val data = NDArray.deserialize(this.kwargs("value").toCharArray.map(_.toByte))
    new ConstantOp(data)
  }
}

object TestConst {
  Operator.register("constant", new ConstantOpProp())

  val value = NDArray.array(Array(1f), Shape(1))
  val const = Symbol.Custom("constant")()(
    kwargs = Map(
      "op_type" -> "constant",
      // hacky thing to workaround the fact CustomOpProp uses Map[String, String] internally for kwargs
      "value" -> String.copyValueOf(value.serialize().map(_.toChar))
    ))

  val a = Symbol.Variable("a")
  val symbol = a + const
  val e = symbol.bind(Context.defaultCtx, Map(
    "a" -> NDArray.array(Array(10f), Shape(1)))
  )

  e.forward()

  println("outputs=" + e.outputs.mkString(", "))
}

Error:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f37ec25e7a9, pid=14172, tid=0x00007f379cbf7700
#
# JRE version: OpenJDK Runtime Environment (8.0_151-b12) (build 1.8.0_151-8u151-b12-0ubuntu<IP_ADDRESS>-b12)
# Java VM: OpenJDK 64-Bit Server VM (25.151-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x6797a9]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /app/hs_err_pid14172.log

in the log
[...]

Stack: [0x00007f6b28ad3000,0x00007f6b28bd4000],  sp=0x00007f6b28bcecd0,  free space=1007k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x6797a9]
C  [mxnet-scala+0x455dd4]  Java_org_apache_mxnet_LibInfo_mxCustomOpRegister::{lambda(char const*, int, char const**, char const**, MXCallbackList*)#1}::operator()(char const*, int, char const**, char const**, MXCallbackList*) const::{lambda(int, int*, unsigned int**, void*)#5}::_FUN(int, {lambda(char const*, int, char const**, char const**, MXCallbackList*)#1}, unsigned int*, unsigned int**)+0x454
C  [mxnet-scala+0x6acf4c]  mxnet::op::custom::InferShape(nnvm::NodeAttrs const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*)+0x2dc

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.apache.mxnet.LibInfo.mxExecutorBindEX(JIII[Ljava/lang/String;[I[II[J[J[I[JJLorg/apache/mxnet/Base$RefLong;)I+0
j  org.apache.mxnet.Symbol.bindHelper(Lorg/apache/mxnet/Context;Lscala/collection/Seq;Lscala/collection/Iterable;Lscala/collection/Iterable;Lscala/collection/Iterable;Lscala/collection/Iterable;Lscala/collection/immutable/Map;Lorg/apache/mxnet/Executor;)Lorg/apache/mxnet/Executor;+767
j  org.apache.mxnet.Symbol.bind(Lorg/apache/mxnet/Context;Lscala/collection/immutable/Map;)Lorg/apache/mxnet/Executor;+38

[...]

side-note
As you see in the code, I'm obliged to hack NDArrays into strings to transmit the data. That's because CustomOp implementation defines Map[String, String] for kwargs, whereas Symbol.Custom allows Map[String, Any]. It leads to very strange things where we actually have, at runtime, non-string objects behind java String references. But they aren't castable anyway because of the type system. Weird
A change of the def in CustomOp would be welcome.

@nswamy Could you please add labels: Bug, Scala, Operator

@andrewfayres ?

I'll take a look since I happen to be working on custom operator stuff already.

Alright, did some investigating. First a workaround, changing the returns in your inferShape and inferType to this seems to get around the problem:
(Array(data.shape), Array(data.shape), null)
(Array(data.dtype), Array(data.dtype), null)
Likely the middle could also be null but I didn't test that explicitly. Now for a more in-depth explanation of what's happening. The segfault is happening in this inferShape JNI code and would also happen in this inferType JNI code. The issue here is that what the JNI code calls numInputs is actually defined to be the sum of the inputs, outputs, and aux. So in this particular case numInputs is 1, we go into the for loop and try to do a env->GetObjectArrayElement(ret, 0) which is failing.
Hopefully this unblocks you. I'll give some thought to how this should be fixed in the JNI code.

@andrewfayres This workaround is working, thank you.

Happy to help. I've added a task to fix the JNI code to our backlog (https://issues.apache.org/jira/browse/MXNET-773).
@nswamy You can close this issue. Customer is unblocked and we're tracking the bug in jira.

@mdespriee thanks for raising this issue and glad to hear the workaround worked, i am curious to know about your use-case ?

@nswamy Sure.
We have a quite big predictive pipeline, working on CRM data (we're in the marketing intelligence business). It's mainly based on an unsupervised phase (clustering, collaborative...) followed by a logistic reg. This pipeline has been built for years, using quite low level operations (linear algebra, in python).
We'd like to evolve our technologies and approach.
Not surprisingly the supervised part is a DAG of operations with some similarity to a DAG of Symbol.  We also would like to experiment in a near future the integration of an LSTM to process some features.
And I'm interested in building bridges with the scala/jvm world.
MXNet looks like a good candidate for the task, doesn't it ?
So that's the reason of my experiments. The use of constants is one of our requirements (we have many of them everywhere in our current DAG), and also we're heavy users of sparse computations. That's why I'm also very interested in your roadmap regarding this topic.

@mdespriee Thanks for explaining your use-case, looks very interesting and yes MXNet is perfect for such a use-case.
With regards to your needs:
We have some some basic version of RNN(LSTM) support in MXNet-Scala RNN examples
We are aware of a few issues with this and working to resolve them https://github.com/apache/incubator-mxnet/pull/11753. We will further enhance this to bring parity with the MXNet Python RNN APIs.
Sparse support is also in the backlog for support in MXNet-Scala.
MXNet-Scala backlog is maintained in JIRA and cwiki here , we are happy to discuss your use-case and prioritize our backlog to suit user needs.
MXNet Python provides a very good set of APIs and RNN building blocks
Please reach out to the community on<EMAIL_ADDRESS>or on https://the-asf.slack.com (#mxnet/#mxnet-scala channels)

@nswamy @andrewfayres should I open another ticket for this second problem ? a JIRA ?

@andrewfayres Could you please link your ticket to this issue? What is the current status? Thanks!

@sandeep-krishnamurthy This issue is not related to Operator implementation. Please remove the [Operator] label. We have created a JIRA ticket MXNET-933 to implement the native constant operator in MXNet backend.

@mdespriee Here to help, are you still facing the problems?

After some tests, your problem can be solved through this:
  Operator.register("constant", new ConstantOpProp())
  Operator.register("constant2", new ConstantOpProp())

  val value1 = NDArray.array(Array(-10f), Shape(1))
  val value2 = NDArray.array(Array(10f), Shape(1))

  val const1 = Symbol.Custom("constant-1")()(
    Map("id" -> 1, "op_type" -> "constant", "value" -> String.copyValueOf(value1.serialize().map(_.toChar)),
      "aaa" -> "aaa"
    )
  )
  val const2 = Symbol.Custom("constant-2")()(
    Map("id" -> 2, "op_type" -> "constant2", "value" -> String.copyValueOf(value2.serialize().map(_.toChar)),
      "bbb" -> "bbb"
    )
  )

It will actually bring you the right result you need. The weird thing is the Custom Operator that being registered is an object shared along in the same state. The state is used in the Symbolic graph as you used in here. When you have two ops are defined in the same state, they will share the same kwargs as the Engine would thought they are the same since they all registered to the same op. The weird thing with Symbolic graph, it will only be analysed at the end in order to produce the best way to execute. That cause the overwrite problem you have. The same problem is not reproducible in sequential execution with NDArray.

I accidentally added the wrong issue id to the pr above. It doesn't have anything to do with this.

@mdespriee Close this for now and link a new Issue to this since the problem seemed to be solved. Please feel free to reopen if problem persist or you would like to follow up. Thanks


Feedback implementation

[x] Suggest to add a link to https://angular.io/ when mentioning Angular 2
[x] The sentence "The website is being hosted by Github pages" from the "status and outlook" section should be moved to the "Implementation" section. It's one of the major advantages for our "static website" implementation: free hosting by Github pages. (and static pages are super-fast ... if our webpage becomes popular Github will keep serving it for free and very fast I think, if we had a server backend it would quickly become expensive to host gamma-sky.net if it becomes popular

See fixes here.


Metrics not updated on external probe timeout

We use cloudprober with an external probe that executes a check on consul.
When the external probe hits a timeout the prometheus metric total for that probe doesn't get increments.
In the logs I can clearly see that the external probe hits timeout:
E0823 19:30:51.106972      74 external.go:482] [cloudprober.consul_probe/consul_us_west_2] context deadline exceeded

But the Prometheus metric doesn't get any increments:
total{ptype="external",probe="consul_probe/consul_us_west_2",dst=""}

i'm making the probe failing with an iptables rule (can't connect to consul for the check)
as soon as I make the probe pass again (removing the iptables rule) the prometheus total counter start updating again with the correct number (will report also the number of check failed)
The problem with this behavior is that if the probe keeps timing out the configured alert will never trigger because the metric will never update and my alert is configured on the diff between total and success counters.
currently we are using<EMAIL_ADDRESS>i didn't find any existing issue related to this behavior.
Flat line in the monitoring system shows this behavior as well:

Thanks for the bug report, @ltagliamonte-dd. "total" should increment if there is a timeout. I'll look into it.

Problem seems to be here:
https://github.com/google/cloudprober/blob/30fb6ab52e5473f64f2f9fadeb3d40aa8ef895f2/probes/external/external.go#L501
We do results processing in the goroutine that gets canceled on timeout. We should move this out.

Thank you @manugarg i was able to re-test and it looks like the issue has been fixed.


[SPARK-44726][CORE] Improve HeartbeatReceiver config validation error message

What changes were proposed in this pull request?
This PR aims to improve HeartbeatReceiver to give a clear directional message for Apache Spark 4.0.
Why are the changes needed?
Currently, when we set improper spark.network.timeout value, the error message is misleading because it complains about the relationship between spark.network.timeoutInterval and spark.storage.blockManagerHeartbeatTimeoutMs which the users never have in their Spark jobs.
$ bin/spark-shell -c spark.network.timeout=30s
...
java.lang.IllegalArgumentException: requirement failed:
spark.network.timeoutInterval should be less than or equal to
spark.storage.blockManagerHeartbeatTimeoutMs.

Does this PR introduce any user-facing change?
No. This PR gives more direct messages based on the users' configuration.
How was this patch tested?
Pass the CIs with the newly added test cases.

Thank you so much, @viirya ! Merged to master.

Late +1.
Thanks @dongjoon-hyun

Thank you, @yaooqinn !


add user sign up to backend

Summary
Test Plan

Please consider the impact of your changes on the other developers.

#4  👈
main

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

Join @Silver-Sword and the rest of your teammates on  Graphite


Analytics modeling client - no code, packaging warning

When publishing the 2.2 release in https://github.com/odpi/egeria/issues/3518 we get a warning:
2020-09-13T09:49:36.2977485Z RESULT - Sync analytics-modeling-client:2.2 = {"message":"In order to sync to Maven Central your package must be included in the JCenter repository"}

This is because the pom for this module says it is a jar, yet there is no code present.
Is the intent to add client code? If so let's leave as is.
In general with a module if there isn't code it should be removed -- however this would be inconsistent with other OMASs

^ @yevgenmar

@yevgenmar is there a plan to add a client?

Hi Nigel,
I did not have plan for client. As part of documentation I would like to have postman collection as example how to use the OMAS.
Sincerely Yevgeniy

From: Nigel Jones<EMAIL_ADDRESS>Sent: September 18, 2020 6:14 AM
To: odpi/egeria<EMAIL_ADDRESS>Cc: yevgenmar<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [odpi/egeria] Analytics modeling client - no code, packaging warning (#3606)
@yevgenmarhttps://github.com/yevgenmar is there a plan to add a client?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/odpi/egeria/issues/3606#issuecomment-694783070, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABFPQCWURMPWSD4L2YYPKA3SGMXJBANCNFSM4RLHUBZQ.

The postman collection would be useful... I think if we have a general purpose interface we should really have a client, as this is consistent with our other OMASs.
Whilst in development it's inevitable the implementation is incomplete, but as we get it closer to released status I think then we should look at it
However if there is consensus we don't need/want a client then we can remove the stub build files to avoid the initial error above.
A long time ago we put together some guidelines for OMASs though having read them they are only rough notes, and as a community we need to improve! (fyi https://github.com/odpi/egeria/blob/master/developer-resources/standards-for-omas-implementations.md )

FYI error from publishing build 2.4:
Hi planetf1,

Thank you for submitting this request,

JCenter follows the maven convention. In addition to the .jar and .pom file, your version should include a sources jar, and optionally a javadoc jar.

Your files should be under a maven path layout.
(See https://www.jfrog.com/confluence/display/BT/Central+Repositories+New+UI#CentralRepositoriesNewUI-JCenter)

If there is no need, and no intent, to provide a client, I suggest that module is removed.

If it's intended to implement this I suggest leaving it open, otherwise please feel free to close @yevgenmar


RISC degradation bug in <IP_ADDRESS>ubuntu2

There is a bug in the ubuntu 20.04 docker image after ubuntu:focal-20200115
The bug is only with arm/v7 docker images
in arm/v7 the date can not be read.
Result is the year 1970
Can be related to the last commit:
http://changelogs.ubuntu.com/changelogs/pool/main/b/boost-defaults/boost-defaults_<IP_ADDRESS>ubuntu2/changelog
ubuntu 20.04 arm/v7 (rpi3)
$ docker run ubuntu:focal-20210119 date
Sun Feb 22 06:29:15 UTC 1970
$ docker run ubuntu:focal-20200115 date
Sat Jan 30 13:24:03 UTC 2021
$ date
Sat Jan 30 13:24:15 UTC 2021

ubuntu 20.04 arm64 (rpi3)
$ docker run ubuntu:focal-20210119 date
Sat Jan 30 13:27:28 UTC 2021
$ docker run ubuntu:focal-20200115 date
Sat Jan 30 13:28:26 UTC 2021
$ date
Sat Jan 30 13:28:38 UTC 2021

Reference Issue:
https://github.com/bitcoin/bitcoin/issues/21019

Related BUG report:
https://bugs.launchpad.net/cloud-images/+bug/1896443

Related BUG report:
https://bugs.launchpad.net/cloud-images/+bug/1896443


Add add_permission to lambda

Lambda is missing the add_permission method.  I'm more concerned about my test not hitting any errors when executing the call rather then permissions actually being respected.
What do you guys think about me implementing the method while ignoring handling permissions on invoke?

It's not rare for us to implement an endpoint to do just a little of the actual feature and then leave TODOs for ourselves to finish it later. As long as the endpoint is in the right direction toward a full implementation then it's okay to not go all the way with it.

Sounds good to me!
On Sep 14, 2017 4:26 PM, "Jack Danger"<EMAIL_ADDRESS>wrote:

It's not rare for us to implement an endpoint to do just a little of the
actual feature and then leave TODOs for ourselves to finish it later. As
long as the endpoint is in the right direction toward a full implementation
then it's okay to not go all the way with it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/spulec/moto/issues/1142#issuecomment-329598863, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA2kyC4-Dll28qQZAD3cQ0SRid5raBcwks5siYu0gaJpZM4PYF-p
.

I would suggest also implementing the remove_permission function as well, the two functions could just keep track of the state of the permission, which might just be a dumb class or dictionary - as long as it includes the StatementId.

@dbfr3qs I did so in #1143, but I was having trouble with the URLs in server mode.

I have made a suggestion no that PR. Let me know if it helps. I am happy to help if I can.

I believe this now exists - I added this when I add get_policy. This can probably be closed.

Nice!


Use strongly-typed debug & code IDs

As per title, these are being introduced in https://github.com/luser/rust-minidump/pull/432

@Jake-Shadle is this done?

(or coherent?)

Nope, I think it would help a bit on Linux, but Windows doesn't need it, and Mac is already just going directly to GUID since that's the type in the CV record so not super useful there?


[spark][core] Support input_file_name UDF

Purpose

Linked issue: close #xxx

Tests

API and Format

Documentation

Thanks @YannByron for the contribution.
Hooks have invaded a lot of core code.
Consider simpler solutions:
Step 1: Modify paimon-core
Just rename RecordWithPositionIterator to FileRecordIterator.
interface FileRecordIterator<T> extends RecordReader.RecordIterator<T> {

      Path filePath();

      long returnedPosition();

      T next() throws IOException;
}

The filePath is a final member for a FileRecordIterator. One FileRecordIterator should just for only one file.
Step 2: Modify paimon-spark
We can introduce a FileHolderRecordReader to paimon-spark. In this reader, if the returned iterator is a FileRecordIterator, we can invoke InputFileBlockHolder.set and unset.

LGTM!


Make an example flutter app to show the usage of dart-casbin

Can anyone make such an example?

Can anyone make such an example?

Yes, I'm working on this. Should it be an app with just logon feature and few extra screens to show based on user's roles? Do we have other such examples for other casbin projects which can be used as reference?

@MrUnfunny you can refer to the RBAC model in: https://casbin.org/en/editor

The app don't need to have backend API. Just local stored data would be OK.
alice and bob can log into the app with password 123. And based on their Casbin permissions, they may be able or unable to access data1, data2.
(Optional) the app can also set permissions for users, assign bob to access to data too, or show user's roles, etc.

@hsluoyz I created a basic app with login functionality( with dummy data with local data itself) and a screen with 2 data, data1 and data2 in tab view. My idea is that a working version of dart-casbin would be able to show only those data which user is allowed to access.
https://user-images.githubusercontent.com/43833743/113508291-d3f53080-956c-11eb-9e36-bc6ffc58de32.mp4
Please tell me if you want something different or is this example app fine.

@MrUnfunny looks good. First we need to make dart-casbin work.

Yes, I'm working on it too.

@hsluoyz I can work on this in parallel w the ACL model. @MrUnfunny could also help.

Hi @hsluoyz, is the app shown above good enough for our example or do we need to create something else?

@MrUnfunny can we download the apk to install?

@MrUnfunny can we download the apk to install?

yes, we can upload the apk in a folder with example

@MrUnfunny can you put the apk into a zip and put it here (this conversation)?

app-release.zip
Please take a look.

@hsluoyz did you get the chance to check the apk? If it's good enough we can add it as an example to the package.

@MrUnfunny I tried it and it works like a charm! Can you make a PR to upload it to: https://github.com/dart-casbin/dart-casbin-demo-app ?

@hsluoyz just created a PR but generally in dart, we ship demo app with the package itself inside example folder. Should we just add link to the demo app in readme?


target not support ES7 in jsconfig.json file

target not support ES7 in jsconfig.json file

@welefen Not sure if you noticed or not, but there is experimental support for ES7 decorators. In your jsconfig.json file, use the experimentalDecorators option:
{
	"compilerOptions": {
		"target": "ES6",
		"module": "commonjs",
		"experimentalDecorators": true
	}
}

That seems to be all the ES7 support you get at this time.

What about async/await?! See #408

+1
Would love support for ES7 too.
Maybe it has changed since last year and there are new ES7-related options available ?
For example new function bind :: operator would be great.

moving this to TypeScript from which VS Code gets TS and JS smartness

This issue was moved to Microsoft/TypeScript#8495


[3027] Remove consistency check code

Context
As on the tin.
Changes proposed in this pull request
Mainly code deletions.
Also added a migration to drop the consistency_checks table.
Worth noting that I have also deleted the document at docs/dttp_consistency_checks.md
Guidance to review
:shipit:

 [S] Remove consistency check code


Update to 9.0.0

Like the title says, updating to 9.0.0.

Linter check found the following problems:
The following problems have been found:
ERROR: clone/recipe/meta.yaml:34: missing_pip_check: For pypi packages, pip check should be present in the test commands
Errors were found


Preload Alexa into pi 4b

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:

Currently i am helping my company to implment AVS into our IoT products. Is it possible to pre-load Alexa with our customised alexa skill into the pi ? From all the different forums i have tried to set up alexa but all packages still have to be configured one by one.

Hi @yulonglovecode, could you elaborate on what you meant by pre-loading your customized skill into the pi?  How are you loading it in the pi currently?

Hey @kclchan, thanks for the reply.Currently i sm having some hard time to implement skills into my pi. All i can do is to connect the web server to skills endpoint and use alexa skills Test on my laptop to interact with pi as a receiver which is kind of pointless. Do you have any idea how to implement skills on raspberry pi ?

Hello @yulonglovecode
Skills can be developed using Alexa Skill Kit: https://developer.amazon.com/en-US/alexa/alexa-skills-kit
Alexa Device SDK can be used to provide new hardware interface to skills. For that you need to develop Capability Agent that will receive directives and send events as appropriate to hardware module.
Examples of CAs:
https://alexa.github.io/avs-device-sdk/classalexa_client_s_d_k_1_1avs_common_1_1avs_1_1_capability_agent.html


build/pytest error because of newer pytest module version

Approximately here the version 4.3.0 is hardcoded into the test. If I run the tests on a system with pytest at a newer (different) version, the test fail.
This SO link suggest using comparing versions using packaging.version.parse. That would introduce a (check) dependency. Not sure if that's a good idea.
Buuut... the other answers suggest distutils.version (which is part of python). If I have time I'll provide a PR.
Keep up the good work!

This test is a bit of a dirty hack to check that our implementation of get_package_version does the right thing with an actually installed package. To avoid having essentially another implementation in the test to get the version of a package, I decided to pick some package and hardcode its version. But I agree that this is not a good solution by any means. I might be in favor of just removing that test, or changing it such that it merely checks that the version has a reasonable format such as (\d+\.)+.

I am trying to maintain an arch (aur) package for python-sacred, and I wanted to implement the appropriate check() function of the package (which would of course run the tests)... but it is not mandatory, so I guess I'll just remove it and no harm done...
But in the unlikely scenario I do get bored in the near future, and do actually help out by a PR, would you merge it if it used distutils.version and checked if the packages are at least at the given version?
Keep up the good work!
Best,
E


Update README.md

Fix a typo in the readme

Thanks for your contribution!
Can you please follow the contrib guideline and branch off from staging?


Blobs from FakeDB have different behaviour to SC.

Assume the following code:
 byte[] buffer = new byte[2048];

var field = item.Fields["Blob"];
var data = field.GetBlobStream();
data.Read(buffer, 0, buffer.Length);
data.Close();

var data1 = field. GetBlobStream();
data1.Read(buffer, 0, buffer.Length);

If you do this against Sitecore then the code succeeds but with fake DB it fails on the data1.Read because the stream is closed. I assume this caused because SC returns a new stream on each call to GetBlobStream but FakeDB returns the same stream.

Correct. The GetBlobStreamCommand doesn't recreate the stream:
    public virtual Stream GetBlobStream(Guid blobId)
    {
      return this.Blobs.ContainsKey(blobId) ? this.Blobs[blobId] : null;
    }

Thanks for reporting this, guys.
Returning a copy of the stream allows to get an open stream every time it's requested. That is exactly what you need, I'll push an update.

Fixed in v1.2.1.


Does it make sense to instance Num Shell?

I’m fixing build warnings atm and noticed that there is
instance Monoid a => Num (Shell a) where
    fromInteger n = select (replicate (fromInteger n) mempty)

    (+) = (<|>)
    (*) = (<>)

It’s missing abs, signum and -. Do these even make sense?
And if not, why instance it at all. To make it more beginner-friendly? But then again that reminds me of C++ Operator Overloading.

It still compiles w/o the instance at least.

Same with Pattern.

It's because Shells form a semiring, but Haskell has no semiring class an Num is the closest approximation
Same thing for Pattern

Hah, I see. More abstract algebra I should remember from university. :P

How about using https://hackage.haskell.org/package/semiring-simple-<IP_ADDRESS>/docs/Data-Semiring.html ?

The biggest issue with that package is the use of overlapping instances like:
    instance Semiring a => Monoid a where

That will conflict with every Monoid instance, even for types that do not implement Semiring (unless Haskell has changed its typeclass resolution behavior since the last time I checked).
The second reason is that you lose support for overloaded numeric literals if you use the Semiring class.  I like being able to do things like:
>>> view (3 * "Example)
"Example"
"Example"
"Example"

Ah, so it’s best to use the builtins.

Is this still an issue for you?

Nope.


When the child widget calls the same query the parent has, it triggers the rebuilding parent widget, and both stops

It happens when I have the same query on both the parent and child widgets.
For example, the parent widget calls the "user" query and then renders the child widget which calls the "user" query, and it leads the parent to rebuild then I am getting the error below:
The following assertion was thrown while dispatching notifications for Observer<User, dynamic>:
setState() or markNeedsBuild() called during build.

It seems there might be some bug that is causing this to start a loop which flutter stops and shows this message. I'll definitely be addressing this urgent issue in a few days, hopefully this week.
Thank you for raising an issue here. It is appreciable. 👍

any update?

Oh I was fully packed for a deadline in past 2 weeks, I'll see this tomorrow, shouldn't take long to fix once I reproduce it.
P.S Is the issue #8 connected with this one (as I see your description of this issue is in continuation of that one)?
I'm planning the next release of this package, any feedbacks once you integrate it well with your project would be appreciated.

Update:
Reproduced it, and the fix is on its way.


Inscribing BRC-20 Tokens in JavaScript

I am currently working on a project that involves integrating BRC-20 tokens into our platform using JavaScript. I am seeking assistance on how to inscribe BRC-20 tokens in JavaScript.
Could you please provide guidance or resources on how to inscribe BRC-20 tokens using JavaScript? Any code examples or documentation would be greatly appreciated.
Thank you for your time and support. I look forward to your response.

You can take a look at our js-wallet-sdk, specifically this brc20 test file for an example.


Unable to bootstrap an Ionic2 app in a web worker

Short description of the problem:
The current bootstrap process for Ionic2, whether via the @App decorator or through direct use of the ionicProviders function in https://github.com/driftyco/ionic/blob/2.0/ionic/config/bootstrap.ts makes it really difficult to run it in a web worker. They make direct use of the window and document objects which are not available in a web worker.
What behavior are you expecting?
Suggest the creation of an ionicProviders equivalent that uses abstracted ng2 primitives (e.g DomAdapter, MessageBus, etc) to obtain the needed information when running in a worker app.
Might need a message bus bridge internally to retrieve the necessary information from the render thread. FYI: https://github.com/angular/angular/blob/master/modules/angular2/docs/web_workers/web_workers.md
Steps to reproduce:

Try to boot an Ionic2 app in a web worker

export function ionicProviders(args: any={}) {
  let platform = new Platform();
  let navRegistry = new NavRegistry(args.pages);

  var config = args.config;

  if (!(config instanceof Config)) {
    config = new Config(config);
  }

  platform.setUrl(window.location.href);
  platform.setUserAgent(window.navigator.userAgent);
  platform.setNavigatorPlatform(window.navigator.platform);
  platform.load();
  config.setPlatform(platform);

  let clickBlock = new ClickBlock();

  let events = new Events();
  let featureDetect = new FeatureDetect();

  setupDom(window, document, config, platform, clickBlock, featureDetect);
  bindEvents(window, document, platform, events);

  // prepare the ready promise to fire....when ready
  platform.prepareReady(config);

  return [
    IonicApp,
    provide(ClickBlock, {useValue: clickBlock}),
    provide(Config, {useValue: config}),
    provide(Platform, {useValue: platform}),
    provide(FeatureDetect, {useValue: featureDetect}),
    provide(Events, {useValue: events}),
    provide(NavRegistry, {useValue: navRegistry}),
    TapClick,
    Form,
    Keyboard,
    MenuController,
    Translate,
    ROUTER_PROVIDERS,
    provide(LocationStrategy, {useClass: HashLocationStrategy}),
    HTTP_PROVIDERS,
  ];
}

function setupDom(window, document, config, platform, clickBlock, featureDetect) {
  let bodyEle = document.body;
  let mode = config.get('mode');

  // if dynamic mode links have been added the fire up the correct one
  let modeLinkAttr = mode + '-href';
  let linkEle = document.head.querySelector('link[' + modeLinkAttr + ']');
  if (linkEle) {
    let href = linkEle.getAttribute(modeLinkAttr);
    linkEle.removeAttribute(modeLinkAttr);
    linkEle.href = href;
  }

  // set the mode class name
  // ios/md/wp
  bodyEle.classList.add(mode);

  // language and direction
  platform.setDir(document.documentElement.dir, false);
  platform.setLang(document.documentElement.lang, false);

  let versions = platform.versions();
  platform.platforms().forEach(platformName => {
    // platform-ios
    let platformClass = 'platform-' + platformName;
    bodyEle.classList.add(platformClass);

    let platformVersion = versions[platformName];
    if (platformVersion) {
      // platform-ios9
      platformClass += platformVersion.major;
      bodyEle.classList.add(platformClass);

      // platform-ios9_3
      bodyEle.classList.add(platformClass + '_' + platformVersion.minor);
    }
  });

  // touch devices should not use :hover CSS pseudo
  // enable :hover CSS when the "hoverCSS" setting is not false
  if (config.get('hoverCSS') !== false) {
    bodyEle.classList.add('enable-hover');
  }

  if (config.get('clickBlock')) {
    clickBlock.enable();
  }

  // run feature detection tests
  featureDetect.run(window, document);
}

/**
 * Bind some global events and publish on the 'app' channel
 */
function bindEvents(window, document, platform, events) {
  window.addEventListener('online', (ev) => {
    events.publish('app:online', ev);
  }, false);

  window.addEventListener('offline', (ev) => {
    events.publish('app:offline', ev);
  }, false);

  window.addEventListener('orientationchange', (ev) => {
    events.publish('app:rotated', ev);
  });

  // When that status taps, we respond
  window.addEventListener('statusTap', (ev) => {
    // TODO: Make this more better
    var el = document.elementFromPoint(platform.width() / 2, platform.height() / 2);
    if (!el) { return; }

    var content = closest(el, 'scroll-content');
    if (content) {
      var scrollTo = new ScrollTo(content);
      scrollTo.start(0, 0, 300, 0);
    }
  });

  // start listening for resizes XXms after the app starts
  setTimeout(function() {
    window.addEventListener('resize', function() {
      platform.windowResize();
    });
  }, 2000);
}

Ionic Version:  2.x
Browser & Operating System:  Android / Chrome
Run ionic info from terminal/cmd prompt:

Your system information:

Cordova CLI: 6.0.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Version: 2.0.0-beta.2
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
OS:
Node Version: v5.6.0

Ideally this would be baked into the underlying angular2 framework's DomAdapter which is currently (Parse5DomAdapter)[https://github.com/angular/angular/blob/master/modules/angular2/src/platform/server/parse5_adapter.ts], but as you can see the current implementation does not do that.
Maybe what could be done is to extend Parse5DomAdapter and override the methods needed for ionic2 (e.g getUserAgent```) to get the relevant information via the message bus from the render thread which in turn could get it from the DOM.
Alternatively you could have the bootstrapper on the render thread get all the relevant platform info then send it to the ionic app as one json object during initialization.

Either way there's code that will have to run on the UI thread, which is where all of our dom setup will have to be fired from. It's the config setup that can run on the UI thread, and all of that can run before ng2 even needs to be bootstrapped. From the config we need to figure out what to add to the body class and a few other things. We'll have to make sure that all of that is separated. Thanks for all the info!

You're welcome. Looks like alot of messy marshalling either way. I suspect send all necessary information in bulk from UI thread to worker app may be the most efficient, rather than multiple worker-to-ui thread requests.

I would also like to run ionic in a web worker as it brings fairly big performance improvements. Is this planned for the final release of v2?

+1  I find webworkers to be a pivotal implementation for ionic and absolutely would like to hear more about it.

Now that there is the new ionicBootstrap function would it be possible to also provide two functions ionicBootstrapRender and ionicBootstrapWorker?
The setup part for the platform and DOM could be executed in the former and the results could be send via the postMessage mechanism to the application. The application would then be bootstrapped as a result of this setup message.

Is there any update on this? Has anyone successfully used web workers on an Ionic2 app? Would also love to know what are IonicTeam's plans for web worker support?

Was able to implement webworker by copying the JS file into the www/build folder. anyone care to write a wrapper/hook to pull worker js files?

How did you manage to bootstrap the ionic app in a web worker? They are accessing the Dom when bootstrapping which is not possible in a worker.

+1 to let ionic run in a web worker

+1

Is there any update on this?

Hello! We are moving our feature requests to a new feature request doc. I have moved this feature request to the doc and because of this I will be closing this issue for now. Thanks for using Ionic!

Hello all! While this is an awesome feature request it is not something that we plan on doing anytime soon. Because of this I am going to move this to our internal feature tracking repo for now as it is just "collecting dust" here. Once we decide to implement this I will move it back. Thanks everyone for using Ionic!

This issue was moved to driftyco/ionic-feature-requests#24


No parts found at mouser

Has Mouser scraper stopped working recently or is this just me?

@anderwm the new re-facture #262 by @mmmaisel will fix this. We are finishing to test.

Works for me.


Adding options to acme.sh

Hello,
Is there a way to add some options to acme.sh command line:
--challenge-alias
--httpport
....
?

Not currently.  Will need to add those to run.sh


i18n(es): Translated frontmatter.md

What kind of changes does this PR include?

Changes or translations of Starlight docs site content

Description

What does this PR change? Give us a brief description.
Translated frontmater.md to spanish

Thanks alot @delucis & @Waxer59 for your reviews 😁


fix imagestreamtags and imagetags

The list semantics and get semantic for these apis are different
In order to get the correct data we need to iterate through the list
by making a get call against the API server

/approve

/approve

/test all

/lint


Sanitize URL before calling puppeteer

Right now puppeteer must get a URL with a schema (https://). If URL schema is missing, this gets thrown -
Protocol error (Page.navigate): Cannot navigate to invalid URL

We should sanitize the URL before continuing execution and either prepend the schema if missing or throw back to user with a more meaningful error message.

Fixed in https://github.com/snobu/destreamer/pull/20 by @lukaarma.


Custom provider integration

Describe the solution you'd like
I would like to integrate with passbolt service
Basically this is only a question: how to create a custom integration with passbolt, assuming 'generic' integration doesn't work?
Is the pull request to ESO the only way forward?
or there is some 'interface' that I can plug 'my integration only' to running ESO deployment?

Hey, we only have the webhook provider as a generic integration way, this is the only way at this point. Feel free to open a PR for passbolt as long as it would work for other people as well.

I guess I will
Thanks


Change name to postfix-text-search?

Also add "postfix search" to tags, assuming it's correct (research)


Bump xcconfig

When I update xcconfig > 1.0 I run here into
/Users/hannes/git/gitx/External/objective-git/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-StaticLibrary.xcconfig:8:1: error: could not find included file 'This configuration file ('Mac OS X/Mac-StaticLibrary.xcconfig') is deprecated. Please use 'macOS/macOS-StaticLibrary.xcconfig' instead.' in search paths
/Users/hannes/git/gitx/External/objective-git/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-StaticLibrary.xcconfig:8:1: error: could not find included file 'This configuration file ('Mac OS X/Mac-StaticLibrary.xcconfig') is deprecated. Please use 'macOS/macOS-StaticLibrary.xcconfig' instead.' in search paths
/Users/hannes/git/gitx/External/objective-git/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-StaticLibrary.xcconfig:8:1: error: could not find included file 'This configuration file ('Mac OS X/Mac-StaticLibrary.xcconfig') is deprecated. Please use 'macOS/macOS-StaticLibrary.xcconfig' instead.' in search paths
/Users/hannes/git/gitx/External/objective-git/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-Framework.xcconfig:8:1: error: could not find included file 'This configuration file ('Mac OS X/Mac-Framework.xcconfig') is deprecated. Please use 'macOS/macOS-Framework.xcconfig' instead.' in search paths
/Users/hannes/git/gitx/External/objective-git/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-Framework.xcconfig:8:1: error: could not find included file 'This configuration file ('Mac OS X/Mac-Framework.xcconfig') is deprecated. Please use 'macOS/macOS-Framework.xcconfig' instead.' in search paths
/Users/hannes/git/gitx/External/objective-git/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-Framework.xcconfig:8:1: error: could not find included file 'This configuration file ('Mac OS X/Mac-Framework.xcconfig') is deprecated. Please use 'macOS/macOS-Framework.xcconfig' instead.' in search paths
** ARCHIVE FAILED **

I made a clone in upstream https://github.com/gitx/objective-git/pull/48


ACR API Design Investigation: Consider moving to one client instead of two

There are a number of reasons that having one client instead of two is preferable:

For Java, builders are heavy and it simplifies development a great deal if you only have one client
Overhead of customer confusion with multiple clients
There is only one non-redundant method on the parent ContainerRegistryClient

Investigate this design option, likely in connection with this issue and put up a new API View/Update Samples once complete.

First experiment: https://apiview.dev/Assemblies/Review/ba57bf904e524ce3bf647dad124ddc7c/ed87d26233f74eb784532b0b83e50f65?doc=False

We will do this.  Recommended approach: https://apiview.dev/Assemblies/Review/ba57bf904e524ce3bf647dad124ddc7c/4a6bcb93df054672b9b548c11bebebe0?doc=False


Update 01-SAP-Auto-Deployment.md

Updated Student and Coach Guides replaced "team" with "squad".

@yyi789 Thanks for making the changes but I don't think you pushed them because they aren't showing in the history here. We'll merge this PR once you're ready, just let us know.
FYI: @jrzyshr

This was from the incorrect fork. Please ignore the pull request.