HTML bug on DropdownPage

Closing tag is broken here:
https://github.com/StarcounterSamples/KitchenSink/blob/0ee14302c9e299aa680487d22aeb6f5eeb13f45f/src/KitchenSink/wwwroot/KitchenSink/DropdownPage.html#L38

Something strange is going here.
When I open the branch in VisualStudio I can't see the bug in code:

And directly on Github I can't edit the file with browser:

Also I can't run KitchenSink with standard launcher and Starcounter-DevelopNightlyBuilds-<IP_ADDRESS>84:

Any ideas?

Well, found it in master branch.
Fixed in master branch.


[BUG] Error writing node IP when join node, The status has been constantly in Upgrading

Describe the bug
Error writing node IP when join node, The status has been constantly in Upgrading.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Environments (please complete the following information):

OS: centos7.9
AutoK3s Version: 0.9.1

Additional context
time="2023-12-05T11:59:34+08:00" level=info msg="the 4/5 time tring to ssh to <IP_ADDRESS>:22 with user root"
https://mirrors.sonic.net/epel/7/x86_64/repodata/d526a7fd5dbf31d263829b2d144a41ca6126a8ead6d8a75fe0da87b1f250efb1-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
http://mirror.tornadovps.com/pub/epel/7/x86_64/repodata/d526a7fd5dbf31d263829b2d144a41ca6126a8ead6d8a75fe0da87b1f250efb1-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
time="2023-12-05T12:00:04+08:00" level=info msg="the 5/5 time tring to ssh to <IP_ADDRESS>:22 with user root"
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Command line error: no such option: --refresh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.web-ster.com
* epel: lolhost.mm.fcix.net
* extras: mirrors.oit.uci.edu
* updates: mirror.sfo12.us.leaseweb.net
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
Nothing to do
Command line error: no such option: --refresh
Loaded plugins: fastestmirror
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ix-denver.mm.fcix.net
* epel: mirrors.ocf.berkeley.edu
* extras: mirrors.oit.uci.edu
* updates: mirror.sfo12.us.leaseweb.net
Command line error: no such option: --refresh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.web-ster.com
* epel: mirrors.ocf.berkeley.edu
* extras: mirrors.oit.uci.edu
* updates: ix-denver.mm.fcix.net
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror

Thanks for your feedback.
Are all cluster nodes CentOS 7.9 or only the newly added worker node is using CentOS 7.9?
It seemed that the new worker node could not fetch from the rpm mirror.
Could you please provide the join node parameters and the full log with joined the new node?

vps-regtech.log
This is all the logs of this cluster.
all cluster nodes CentOS 7.9, When I added a new batch of nodes, an IP address was written incorrectly. The cluster is currently in an Upgraded state

Is the joining node action stuck at the last line of the log you provide?
It seems like AutoK3s can't access the node <IP_ADDRESS> by SSH tunnel. Is this node IP the incorrect one?

Q1: Yes
Q2: <IP_ADDRESS> is wrong, I made a mistake in writing. emmmmmm...

It's better to wait for the AutoK3s to execute the rollback logic. If it can't return the correct status by default, maybe the following steps can help you.

Using kubectl get nodes to check if the new worker nodes you added have joined the cluster correctly.
If all nodes are not joined the cluster, you can try to join nodes again by AutoK3s CLI.

autok3s join -p native --name xxx --ip <master-node-ip> --ssh-user root --ssh-key-path xxxx --worker-ips xxxx

Sometimes the native provider can't catch the join error correctly. When this situation happens, the cluster's status will be Upgrade forever.
I will find out if there's a workaround.

Okay, I'll rebuild the cluster. Thank you for your answer.
Best wishes to you.

@xuzheng0017 There's no need to rebuild the cluster. The K3s cluster won't impact by the AutoK3s cluster status.

Okay, but I want to join other nodes to the page without any options.

The workaround below may help you:

Using kubectl get nodes to check whether the batch of nodes have joined to the cluster successfully.
If not, use autok3s join CLI to join a node to refresh the cluster status.

autok3s join -p native --name jacie-test --ip <master-ip> --ssh-user <your-ssh-user> --ssh-key-path <your-ssh-key-path> --worker-ips <one-worker-ip>

Once the join process is complete, the cluster status will be refreshed to Running and the UI can work properly.

The bug is relative to the wrong catch of error in defer function. Will fix this in the next version.

I have encountered another problem:
When I deleted a node in kube-explorer and then returned to the cluster page, the number of nodes did not decrease.
I added the node again with the command:
81d5d17a77de:/home/shell # autok3s join -p native --name vps-cargogo --ip xx.xx.xx.xx --ssh-user root --ssh-key-path /root/.autok3s/vps-cargogo/id_rsa --worker-ips xx.xx.xx.xx
time="2023-12-06T14:53:03+08:00" level=info msg="[native] begin to join nodes for vps-cargogo..."
time="2023-12-06T14:53:03+08:00" level=info msg="[native] executing join k3s node logic"
time="2023-12-06T14:53:03+08:00" level=info msg="[native] successfully executed join k3s node logic"
time="2023-12-06T14:53:03+08:00" level=info msg="[native] successfully executed join logic"

Can only use commands on nodes to rejoin?

Yes. AutoK3s can't synchronize your other operation because the node was removed manually and didn't synchronize the AutoK3s database. So you can't rejoin the node by AutoK3s because the node is already in the cluster by AutoK3s side.
The workaround is to add the node back by K3s CLI manually for now.

tested with v0.9.2-rc1. AutoK3s can return the correct status of the cluster if join nodes fail.
Close as complete


Memory Issue

Hi I'm getting the error:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 13.61 GiB (GPU 0; 10.76 GiB total capacity; 4.73 Gib already allocated; 4.09 GiB free; 5.12 GiB reserved in total by PyTorch) If reserved memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
Batch Size 4 and 2080Ti

hi, try smaller image size and batch size


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[x] Tests pass
[x] Appropriate changes to README are included in PR

Resolve all problems

@googlebot I signed it
On Wed, 8 Jul, 2020, 10:40 AM googlebot<EMAIL_ADDRESS>wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project (if not, look below for help).
Before we can look at your pull request, you'll need to sign a Contributor
License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here with @googlebot
I signed it! and we'll verify it.
What to do if you already signed the CLA Individual signers

It's possible we don't have your GitHub username or you're using a
different email address on your commit. Check your existing CLA data
https://cla.developers.google.com/clas and verify that your email is
set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.

Corporate signers

Your company has a Point of Contact who decides which employees are
authorized to participate. Ask your POC to be added to the group of
authorized contributors. If you don't know who your Point of Contact is,
direct the Google project maintainer to go/cla#troubleshoot (Public
version https://opensource.google/docs/cla/#troubleshoot).
The email used to register you as an authorized contributor must be
the email used for the Git commit. Check your existing CLA data
https://cla.developers.google.com/clas and verify that your email is
set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
The email used to register you as an authorized contributor must
also be attached to your GitHub account
https://github.com/settings/emails.

ℹ Googlers: Go here
https://goto.google.com/prinfo/https%3A%2F%2Fgithub.com%2Fgoogle%2Fit-cert-automation-practice%2Fpull%2F4471
for more info.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/it-cert-automation-practice/pull/4471#issuecomment-655288731,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKPCZ7VMHWSUA6AHPUBHGK3R2P5URANCNFSM4OUFN3MQ
.


WebGLTile pixel manipulation

Hi
I was testing the new webglTile classes.
Well currently I'm using a raster surce to manipulate the colors of the pixels.
function whiteToColorLinearGradient(pixel, vectorRGBA) {
  let r = pixel[0] / 255;
  let g = pixel[1] / 255;
  let b = pixel[2] / 255;
  pixel[0] = 255 * (1 - r) + vectorRGBA[0] * r;
  pixel[1] = 255 * (1 - g) + vectorRGBA[1] * g;
  pixel[2] = 255 * (1 - b) + vectorRGBA[2] * b;
  pixel[3] = vectorRGBA[3];
  return pixel;
}

const RasterSource = source => {
  return new OlRasterSource({
    sources: [source],
    // On every render of the layer the code inside operation will be executed
    operation: function(pixels, data) {
      var pixel = pixels[0];
      if (data.rasterColor || data.palette) {
        var val = getPixelValue(pixel);
        if (val !== 0) {
          if (data.palette) {
            pixel = gradientFunction(pixel[0], data.palette);
          } else {
            pixel = whiteToColorLinearGradient(pixel, data.rasterColor);
          }
        }
      }

      return pixel;
    },
    // LOOK: getRasterSourceLib is a mandatory way of import the functions that will be used inside operation due a compiler issue
    // lib: object with the functions that the worker will receive
    lib: getRasterSourceLib([
      getPixelValue,
      whiteToColorLinearGradient,
      gradientFunction
    ])
  });
};

I was trying WebGLTile but I don't really know how it works or how to make the shader. Any documentation?Any help about shaders?any help that can give me a hint on how to do this?How can I access the red value of a pixel? Too many questions, hehehe.
const WebGLTileSource = source => {
  let r = ["/", ["band", 1], 255];
  let g = ["/", ["band", 1], 255];
  let b = ["/", ["band", 1], 255];

  let r2 = ["*", ["var", "red"], r];
  let g2 = ["*", ["var", "green"], g];
  let b2 = ["*", ["var", "blue"], b];

  let r3 = ["*", 255, ["-", 1, r]];
  let g3 = ["*", 255, ["-", 1, g]];
  let b3 = ["*", 255, ["-", 1, b]];

  const newRed = ["+", r3, r2];
  const newGreen = ["+", g3, g2];
  const newBlue = ["+", b3, b2];

  return new TileLayer({
    source: source,
    style: {
      color: ["color", newRed, newGreen, newBlue],
      variables: {
        red: 3,
        green: 200,
        blue: 200
      }
    }
  });
};

Thank you very much for your help.

For the original colors (which is the same as the default style) you would need
color: [
  "color",
  ["*", 255, ["band", 1]],
  ["*", 255, ["band", 2]],
  ["*", 255, ["band", 3]]
]

https://codesandbox.io/s/webgl-tile-style-forked-koick?file=/main.js
Therefore you do not need to divide by 255 and I think you are trying to achieve something like
https://codesandbox.io/s/webgl-tile-style-forked-cnb1x?file=/main.js

Thanks, This is exactly what I was looking for, I was on the right track.
https://codesandbox.io/s/webgl-tile-style-forked-cnb1x?file=/main.js
It's a bit too dark for me this part of webgl.hehehe.
Thanks again

I don't know if this is related to this ticket. https://github.com/openlayers/openlayers/issues/10457
But applying these styles, the tiles outside my area appear blank.With color expression:

without color expression:

Maybe I need to add some options in the shader. I have tried with opaque:false in the XYZ source as well

You may need to include alpha in the expression https://codesandbox.io/s/webgl-tile-style-forked-twggw?file=/main.js

mmm... I don't think it is related to the alpha value, this value is applied to everything and the white tiles still appear but with that alpha obviously applied.

It may be that when a colour expression is applied, it is applied to the whole area of the layer so that the empty tiles appear white, which I guess is the default colour? I just got caught up in my own thoughts.

You could set white to transparent by defining the alpha as
["case", ["all", ["==", ["band", 1], 1], ["==", ["band", 2], 1], ["==", ["band", 3], 1]], 0, 1]

Finally working and applying also the alpha value.
const variables = {
    red: 255,
    green: 0,
    blue: 0,
    alpha: 0.5
  };

  return new TileLayer({
    source: source,
    style: {
      color: [
        "color",
        [
          "+",
          ["*", 255, ["-", 1, ["band", 1]]],
          ["*", ["var", "red"], ["band", 1]]
        ],
        [
          "+",
          ["*", 255, ["-", 1, ["band", 2]]],
          ["*", ["var", "green"], ["band", 2]]
        ],
        [
          "+",
          ["*", 255, ["-", 1, ["band", 3]]],
          ["*", ["var", "blue"], ["band", 3]]
        ],
        ["*", ["var", "alpha"], ["band", 4]]
      ],
      variables: variables
    }
  });
};

Thank you very much for your help. Close the ticket if you want


python310Packages.oci: 2.107.0 -> 2.109.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.oci is: Oracle Cloud Infrastructure Python SDK
meta.homepage for python310Packages.oci is: https://github.com/oracle/oci-python-sdk
meta.changelog for python310Packages.oci is: https://github.com/oracle/oci-python-sdk/blob/v2.108.0/CHANGELOG.rst
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.108.0 with grep in /nix/store/wamdyh79lknqckff1kyh098vq50dlwin-python3.10-oci-2.108.0
found 2.108.0 in filename of file in /nix/store/wamdyh79lknqckff1kyh098vq50dlwin-python3.10-oci-2.108.0

Rebuild report (if merged into master) (click to expand)

6 total rebuild path(s)

6 package rebuild(s)

First fifty rebuilds by attrpath
lexicon
oci-cli
python310Packages.oci
python310Packages.ocifs
python311Packages.oci
python311Packages.ocifs

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/wamdyh79lknqckff1kyh098vq50dlwin-python3.10-oci-2.108.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.oci https://github.com/r-ryantm/nixpkgs/archive/52066bb8439e27b6607557cc09c73e394fa01452.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/wamdyh79lknqckff1kyh098vq50dlwin-python3.10-oci-2.108.0
ls -la /nix/store/wamdyh79lknqckff1kyh098vq50dlwin-python3.10-oci-2.108.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

6 packages built:

lexicon
oci-cli
python310Packages.oci
python310Packages.ocifs
python311Packages.oci
python311Packages.ocifs

Maintainer pings
cc @ilian for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.oci is: Oracle Cloud Infrastructure Python SDK
meta.homepage for python310Packages.oci is: https://github.com/oracle/oci-python-sdk
meta.changelog for python310Packages.oci is: https://github.com/oracle/oci-python-sdk/blob/v2.109.0/CHANGELOG.rst
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.109.0 with grep in /nix/store/mjxd7711pb99834kl400b37l57pk8xd5-python3.10-oci-2.109.0
found 2.109.0 in filename of file in /nix/store/mjxd7711pb99834kl400b37l57pk8xd5-python3.10-oci-2.109.0

Rebuild report (if merged into master) (click to expand)

6 total rebuild path(s)

6 package rebuild(s)

First fifty rebuilds by attrpath
lexicon
oci-cli
python310Packages.oci
python310Packages.ocifs
python311Packages.oci
python311Packages.ocifs

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/mjxd7711pb99834kl400b37l57pk8xd5-python3.10-oci-2.109.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.oci https://github.com/r-ryantm/nixpkgs/archive/f67cdd99ca2cf3cb5d9042edf0b796aa99c18e4a.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/mjxd7711pb99834kl400b37l57pk8xd5-python3.10-oci-2.109.0
ls -la /nix/store/mjxd7711pb99834kl400b37l57pk8xd5-python3.10-oci-2.109.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

6 packages built:

lexicon
oci-cli
python310Packages.oci
python310Packages.ocifs
python311Packages.oci
python311Packages.ocifs

Maintainer pings
cc @ilian for testing.


SHELL-1528

Coverage remained the same at 87.118% when pulling 132aed683ef6867ad3894f075b06648e375fd9f8 on SHELL-1528 into 78ce227dd48e115de9c6e8cdd7090084cfd37efd on master.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


It closes #8

Please @altafan can you review this?

@sekulicd  You should put the special keyword either in a commit message or in the Description. The Title was good, you can roll back
https://help.github.com/en/enterprise/2.16/user/github/managing-your-work-on-github/closing-issues-using-keywords

This closes #8.


Update metrics integration test to verify tags more strictly

High-level description
This makes the metrics integration test more robust, by explicitly declaring the tags we expect to see in metrics API responses.
Corresponding DC/OS tickets (obligatory)
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:

DCOS_OSS-3988 Update dcos-metrics integration test to verify metric tags

Related tickets (optional)
Other tickets related to this change:
N/A
Checklist for all PRs

[x] Added a comprehensible changelog entry to CHANGES.md or explain why this is not a user-facing change: Updating a test, not user-facing.
[x] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
N/A

@mesosphere-mergebot bump-ee

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label ready for review


Add Montgomery dataset

This is the dataset used in our PDA work as well (for lung segmentation).
There are some minor details to discuss on this, we can discuss this next week!


[Calculator]

Description
A calculator that suggests the amount of water one should drink daily based on weight, activity level, and climate.
Screenshots
Home Page

After Result

Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[X] I am a GSSOC'24 contributor.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

[X] I agree to follow this project's "Code of Conduct".

hey @Rakesh9100 @jessicachawla , please assign to me i have already made it.

@Vipullakum007 please change the color to match with the website.

hey @jessicachawla , what do you mean to say i not be able to understand can you explain more?

The screenshots you have given are not going with the UI of the existing website. Please consider that and change the ui a bit.

We already have Water Intake Calculator @Vipullakum007 @jessicachawla


pull request for e2e test at 12/03/2016 17:26:04

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Import Python UDFs not finding xlfunc

Hello
I am testing out excelpython but have not been able to get it working
I am using Windows 7, Excel 2010, excelpython v 2.0.9, python 3.4.1 ::: Anaconda 2.1.0
I am testing out example with Book1, DoubleSum
After running import python udf's I have not functions.  The DoubleSum function does not show up and I get an error in excel #Name?
When I debug the VB code ImportPythonUDFs  I put a breakpoint after the If Py.HasAttr  line 132.  This breakpoint is never hit.
This is my Book1.py code
Book1.py
from xlpython import *
@xlfunc
def DoubleSum(x, y):
'''Returns twice the sum of the two arguments'''
return 2 * (x + y)
I get no other errors or warnings.
Any idea what is going wrong?
Thanks
Aaron

I am not sure what happened.
I closed every thing and rebooted.
My Book1.py file had only one line from xlpython import *
I rebuilt the file and not everything works.


adding repo is failing on ubuntu 20.04

Binaries in PPA were built with Ubuntu 22.04 and copied to newer distros. I haven't found a way to deal with the different version in PPA, but 20.04 is not supported for now.


Formula widget for date column

Currently it seems I cannot select date type column for formula widget. It makes sense for many aggregations like min(), max(), avg() etc formulas.
I can convert date to number in sql, use it then as numeric label and calculate max/min/average, but then final format cannot be changed back to normal datetime.
Use case: for gps location trace time series.

Stale issue. Closing 👋


Add dynamic color and css exposure

The color of the element is exposed as --paper-audio-player-color, its default value is still blueviolet.
If the color attribute is set, it overrides --paper-audio-player-color, it can be change dynamically.
I added a flashing player, in the example.

@GreenHorse Awesome! I'll merge it tomorrow.

Merged. Great work @GreenHorse!


Unable to start the bot due to error

Here's the output of running node src/main.js after npm install
➜  slack-poker git:(master) ✗ node src/main.js

module.js:340
    throw err;
          ^
Error: Cannot find module 'babel-core/register'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/ben/apps/slack-poker/node_modules/babel/register.js:1:80)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

Got past the issue above (fresh npm install), but now I'm running into a new error:
➜  slack-poker git:(master) ✗ node src/main.js
[Mon Jul 06 2015 00:58:12 GMT-0400 (EDT)] INFO Connecting...
events.js:87
      throw Error('Uncaught, unspecified "error" event.');
            ^
Error: Uncaught, unspecified "error" event.
    at Error (native)
    at Client.emit (events.js:87:13)
    at Client._onLogin (/home/ben/apps/slack-poker/node_modules/slack-client/src/client.js:74:14)
    at /home/ben/apps/slack-poker/node_modules/slack-client/src/client.js:2:59
    at IncomingMessage.<anonymous> (/home/ben/apps/slack-poker/node_modules/slack-client/src/client.js:670:22)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

My mistake, I'm stupid T_____T the bot happened to be disabled in the Slack admin panels

@tanookiben hello our poker bot seems "away" in the user list

how did you enabled it?

I'm getting this error, too, but my bot is enabled.

Argh... my issue was because I had a typo in my token. Copy and paste fail =/
@quentinlebras if you're seeing this error, first of all... make sure your token is correct!
If it is a matter of being disabled, to enable it: go to the admin page for services (https://limitbreak.slack.com/services), click on Bots and then click on your bot and there should be an enable/disable button in the top right corner.
If the bot isn't connected to something (i.e. if the server isn't running), it will appear as away. Once the server is successfully working, it'll show up as active.


another way to implement wechaty different event

In wechaty, all event from puppet should be emit by event bus. But, when I implement EventEmitter in python, I found there is a big unfriendly problem for developer: code annotation.
I check the code in ts-wechaty, It's able prompt dynamically by event name, but this is not work in python. If there is a another solution, please comment it.
So, I think using derived methods of the class solves this problem. Below is the sample code.
class MyWechaty(Wechaty):
    async def dong(self, message: str):
        # do something
        pass

    async def message(self, message: Message):
        # do something
        pass

MyWechaty.instance().start()

In this way, as long as you inherit a function, you can handle the event, eg: dong event,message event. Every event function has specifc param annotation.
The above is my thinking, if I'am wrong, please give me more advice.

The TypeScript is so powerful that it can provide typing intelligence with great convenience, and I'll not surprise if Python can not do as good as TypeScript because the typing system of Python is in a very early stage.
I have done a search about the Node.js style EventEmitter in Python long times ago, and I just searched again and it seems that there has already some projects there, like  https://pypi.org/project/eventemitter/.
As my suggestion, I'd like to keep the on(eventName, listener) style in Python, because it will provide great flexibility to manage the bot dynamically, which derived methods can not.

Ok, I will try to keep the python-wechaty interface consistent with ts-wechaty.


Clean up for Java 11 and Maven builds

There is greenlighting on Azul Zulu OpenJDK build. Also some builds are on Maven 3.6.0.


Azure docs for using remote jupyter should be more descriptive

https://docs.microsoft.com/en-us/azure/machine-learning/how-to-set-up-vs-code-remote?tabs=studio
Customers aren't sure why remote doesn't sync files automatically (basically this issue here: https://github.com/microsoft/vscode-jupyter/issues/1601)

We could indicate the files aren't on the remote machine (with a diagram explaining how the server is different from where VS code is running) and then offer some suggestions on how to get them there?

Probably makes sense to consolidate the docs on setting this stuff up in one place. Whether we do something to automatically copy workspace files to a remote machine is something we need to discuss. That's the topic of https://github.com/microsoft/vscode-jupyter/issues/1601

@sevillal Perhaps you might want to take a look into this.
Closing as this isn't related to Jupyter extension.


webhook updates

Although i registered a webhook, but i am not receiving any updates
example:
......
$eyeson->addWebhook('http://***receiveWebhook.php', ['user_update', 'document_update', 'recording_update','broadcast_update', 'room_update', 'team_update', 'presentation_update']);
and I verified that the webhook is registered at eyeson
thank you

see https://github.com/eyeson-team/api/issues/50 thanks!

Main question (1):
Please check the following details about what I did, please let me know if I did any mistakes because it's urgent
The below screenshot to verify that the webhook is successfully registered.

I am logging the response to a file to see it response format, using the following code:
file_put_contents('webhookTest.txt', "requestedNEW " . $_POST . "\n", FILE_APPEND | LOCK_EX);
But no event triggered the file yet. even though, I did many meetings.
Question 2:
Also, a second question, after the webhook is successfully working. Does eyeson let me know when the participant enters the meeting and the duration, even if he enter and left many times?
Question 3:
If webhook is stuck and still not working, do you have any API I can request to get when the participant enters the meeting with the duration, even if the user enters many times to the meeting?
Please i need your help ASAP.

Dear,
Does eyeson let me know when the participant enters the meeting and the duration, even if he enter and left many times?
Thank you

We don't track the API users participants but you can easily build your own custom user interface and do so. Best wishes!


[Content Management] If we add new field to ContentType, Content list page doesn't work

because all previous contents doesn't have value for the new field

closed by #1938


Update Column API docs

What are you changing in this pull request and why?
Updates to docs inspired by this feature request: https://github.com/dbt-labs/dbt-core/issues/7103
Updates made:

The docs gave (dtype, size) as the parameters for numeric_type(), but it should be (dtype, precision, scale) instead.
Added a section for using columns to match the section for using relations
Added col.numeric_type to match col.string_type in the column Python example usage

Previews
Here are the previews of each of the sections that were updated:

https://deploy-preview-2949--docs-getdbt-com.netlify.app/reference/dbt-classes#static-methods
https://deploy-preview-2949--docs-getdbt-com.netlify.app/reference/dbt-classes#using-columns
https://deploy-preview-2949--docs-getdbt-com.netlify.app/reference/dbt-classes#column

Checklist

[x] Review the Content style guide and About versioning so my content adheres to these guidelines.

just one small sentence casing recommendation @dbeatty10 ! approved and happy to reapproved as well.
one non blocker question - is it correct that the file name isn't snake_case? for example, Column Usage.sql.?

Thanks for this feedback @mirnawong1 !
In https://github.com/dbt-labs/docs.getdbt.com/pull/2949/commits/2565b634fb3e144b797854fe4780a6f5a09e005f made two types of updates:

More sentence casing updates in headers and code comments
Use snake_case for two different file names


I can't compile tensorflow on Ubuntu 16.10

I have given these commands to compile tensorflow:
sudo apt-get install python-numpy python-dev python-pip python-wheel
sudo apt-get install python3-numpy python3-dev python3-pip python3-wheel
git clone https://github.com/tensorflow/tensorflow
cd tensorflow/
git checkout r1.0
./configure
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package --verbose_failures
It gives this error:

ERROR: /home/raspberry/tensorflow/tensorflow/core/kernels/BUILD:2468:1: C++ compilation of rule '//tensorflow/core/kernels:bias_op' failed: gcc failed: error executing command
(cd /home/raspberry/.cache/bazel/bazel_raspberry/e683ea6480b94d5dcdb0f13cb220eff8/execroot/tensorflow &&
exec env -
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-march=native' '-std=c++0x' '-march=native' -MD -MF bazel-out/local-py3-opt/bin/tensorflow/core/kernels/objs/bias_op/tensorflow/core/kernels/bias_op.pic.d '-frandom-seed=bazel-out/local-py3-opt/bin/tensorflow/core/kernels/objs/bias_op/tensorflow/core/kernels/bias_op.pic.o' -fPIC -DEIGEN_MPL2_ONLY -DTENSORFLOW_USE_JEMALLOC -iquote . -iquote bazel-out/local-py3-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/local-py3-opt/genfiles/external/bazel_tools -iquote external/eigen_archive -iquote bazel-out/local-py3-opt/genfiles/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/local-py3-opt/genfiles/external/local_config_sycl -iquote external/jemalloc -iquote bazel-out/local-py3-opt/genfiles/external/jemalloc -iquote external/protobuf -iquote bazel-out/local-py3-opt/genfiles/external/protobuf -iquote external/gif_archive -iquote bazel-out/local-py3-opt/genfiles/external/gif_archive -iquote external/jpeg -iquote bazel-out/local-py3-opt/genfiles/external/jpeg -iquote external/com_googlesource_code_re2 -iquote bazel-out/local-py3-opt/genfiles/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/local-py3-opt/genfiles/external/farmhash_archive -iquote external/highwayhash -iquote bazel-out/local-py3-opt/genfiles/external/highwayhash -iquote external/png_archive -iquote bazel-out/local-py3-opt/genfiles/external/png_archive -iquote external/zlib_archive -iquote bazel-out/local-py3-opt/genfiles/external/zlib_archive -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/eigen_archive -isystem bazel-out/local-py3-opt/genfiles/external/eigen_archive -isystem external/jemalloc/include -isystem bazel-out/local-py3-opt/genfiles/external/jemalloc/include -isystem external/protobuf/src -isystem bazel-out/local-py3-opt/genfiles/external/protobuf/src -isystem external/gif_archive/lib -isystem bazel-out/local-py3-opt/genfiles/external/gif_archive/lib -isystem external/farmhash_archive/src -isystem bazel-out/local-py3-opt/genfiles/external/farmhash_archive/src -isystem external/highwayhash -isystem bazel-out/local-py3-opt/genfiles/external/highwayhash -isystem external/png_archive -isystem bazel-out/local-py3-opt/genfiles/external/png_archive -isystem external/zlib_archive -isystem bazel-out/local-py3-opt/genfiles/external/zlib_archive -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare -fno-exceptions -pthread -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE="redacted"' '-D__TIMESTAMP_="redacted"' '-D__TIME__="redacted"' -c tensorflow/core/kernels/bias_op.cc -o bazel-out/local-py3-opt/bin/tensorflow/core/kernels/_objs/bias_op/tensorflow/core/kernels/bias_op.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 4.
gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 15812.554s, Critical Path: 15700.39s

Version of bazel:
Build label: 0.4.4
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Feb 1 18:54:21 2017<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

I use ubuntu 16.04 , and in tensorflow's official website, ubuntu 14.04 and ubuntu 16.04 are supported. How about using these command:
sudo pip install tensorflow

I'm afraid that's a bug in gcc. Can you print gcc --version?
@rmlarsen @benoitsteiner maybe it's related to eigen?
@gunan if this is the stock gcc coming with ubuntu 16, we should probably try to have a workaround.

Looks like gcc crashed when compiling tensorflow/core/kernels/bias_op.cc
I agree that we need to have TF building on stock compilers. So I am happy to accept a workaround (currently busy with other things, so I wont be able to debug this myself).

I've found a solution for this issue. I have increased memory of virtualbox virtual machine. I made it 5gb. So then I compiled tensorflow without problem.

Oh, good to know. Definitely a template expansion artifact.
I'm closing this issue since we found the root cause. Thanks for reporting.

I've found a solution for this issue. I have increased memory of virtualbox virtual machine. I made it 5gb. So then I compiled tensorflow without problem.

it works for me. thanks!


Split out packages into separate repositories

All of our packages are currently contained in a single csvwlib repository to make mutual development easier.
We have had to do some unpleasant hacky things to ensure we can still install the packages in other projects which we will now be able to undo:

We can stop referencing sharedmodels as a dev dependency in csvqb and pmd packages.
This means we can also stop having to manually install sharedmodels when installing csvqb or the pmd packages - it should be installed as a dependency of these packages.
We can have one dev container per project which has the poetry dependencies installed at the global level instead of having to enter into different poetry environments for each project.

Target: Recommendation, discussion, then implementation

Decision: go with splitting modules, not using git-submodules.


[iCloud] A prompt pops up for deselected contacts

Detailed description according to the following.
The service or application that you want to submit an issue to
iCloud on macOS
What feature and where in the system
macOS -> System Preferences -> Apple ID -> iCloud -> Contacts
macOS: Version 12.5.1 (In fact, this problem has existed in previous generations of macos)
Current Status
There is no prompt now, please check the following video, I think lots of people will not know what happened.
https://user-images.githubusercontent.com/535675/197081873-c1750217-a138-4285-b188-218494e00fdc.mov
The way you want it to be
A prompt
Reason
Because of the lack of prompts and the inability to deselect contacts, users will think that this feature is not working properly
Additional context
In fact, the feature is working properly, the reason for this problem is screen time passcode, turn off screentime passcode that can fix this.

More discuss
https://twitter.com/tourcoder/status/1583251262920802305


Add CHANGELOG SE-0293 link

Currently this SE link is missing:

This PR fixes that.

@swift-ci Please smoke test and merge

@swift-ci Please smoke test macOS platform


ResidueSelector.selected_atoms and ResidueSelector.selected_residues regression

Regression after merging the no-RPC stuff. After making a selection:
``rs = mdt.widgets.ResidueSelector(mol)
rs```

Expected: Before the merge, rs.selected_atoms would yield a list of atoms, and rs.selected_residues would yield a list of residues:
>>> rs.selected_atoms
[<Atom HO5' (elem H), index 0 (res DA50 chain 1) ... >,
 <Atom O5' (elem O), index 1 (res DA50 chain 1) in ...>, ...
]
>>> rs.selected_residues
[<Residue DA50 (index 0, chain 1) in Molecule: Unnamed molecule from OpenMM>]

Getting: rs.selected_residues returning a list of strings; rs.selected_atoms doesn't appear to be working.
>>> rs.selected_atoms
AttributeError: selected_atoms
>>> rs.selected_residues
['DA50']

Fixed over here: https://github.com/Autodesk/molecular-design-toolkit/pull/106


win32-1.7.4+1/lib/src/structs.dart:1111:7: Error: Struct 'ENUMLOGFONTEX' is empty. Empty

Flutter 1.27.0-9.0.pre.85 • channel master • git@github.com:flutter/flutter.git
Framework • revision 71b2b4d6e0 (3 hours ago) • 2021-02-25 00:01:01 -0500
Engine • revision 867e51b762
Tools • Dart 2.13.0 (build 2.13.0-73.0.dev)
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done.                                           22.2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:1111:7: Error: Struct 'ENUMLOGFONTEX' is empty. Empty structs are undefined behavior.
class ENUMLOGFONTEX extends Struct {
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:2835:7: Error: Struct 'BLUETOOTH_PIN_INFO' is empty. Empty structs are undefined behavior.
class BLUETOOTH_PIN_INFO extends Struct {
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:2960:7: Error: Struct 'EXCEPINFO' is empty. Empty structs are undefined behavior.
class EXCEPINFO extends Struct {}
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:2966:7: Error: Struct 'PROPERTYKEY' is empty. Empty structs are undefined behavior.
class PROPERTYKEY extends Struct {}
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:2973:7: Error: Struct 'PROPVARIANT' is empty. Empty structs are undefined behavior.
class PROPVARIANT extends Struct {}
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:2978:7: Error: Struct 'SAFEARRAY' is empty. Empty structs are undefined behavior.
class SAFEARRAY extends Struct {}
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:2985:7: Error: Struct 'CLSID' is empty. Empty structs are undefined behavior.
class CLSID extends Struct {}
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:2992:7: Error: Struct 'STATSTG' is empty. Empty structs are undefined behavior.
class STATSTG extends Struct {}
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:2999:7: Error: Struct 'NLM_SIMULATED_PROFILE_INFO' is empty. Empty structs are undefined behavior.
class NLM_SIMULATED_PROFILE_INFO extends Struct {}
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/ffi-0.1.3/lib/src/utf8.dart:23:7: Error: Struct 'Utf8' is empty. Empty structs are undefined behavior.
class Utf8 extends Struct {
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/ffi-0.1.3/lib/src/utf16.dart:16:7: Error: Struct 'Utf16' is empty. Empty structs are undefined behavior.
class Utf16 extends Struct {
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/ffi-0.1.3/lib/src/allocation.dart:47:33: Error: Expected type 'T' to be a valid and instantiated subtype of 'NativeType'.
final int totalSize = count * sizeOf();
^
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: no rule to process file '/Users/m6/.pub-cache/git/native_plugin-51f134f83c7966668570312d04798db4382701d5/ios/Classes/libCPU.a' of type 'archive.ar' for architecture 'x86_64' (in target 'native_plugin' from project 'Pods')

Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.

Duplicate of https://github.com/flutter/flutter/issues/76705, the dependencies need to be rolled forward.

Closing this as duplicate of https://github.com/flutter/flutter/issues/76705


Error spam when controllers are off

Getting math error spam when controllers are not turned on (Index controllers on Windows):
ERROR: Condition "Math::is_inf(v.x)" is true.
   at: VisualServerScene::instance_set_transform (servers\visual\visual_server_scene.cpp:690)
ERROR: Condition "Math::is_inf(v.x)" is true.
   at: VisualServerScene::instance_set_transform (servers\visual\visual_server_scene.cpp:690)
ERROR: Condition "Math::is_inf(v.x)" is true.
   at: VisualServerScene::instance_set_transform (servers\visual\visual_server_scene.cpp:690)
ERROR: Condition "Math::is_inf(v.x)" is true.
   at: VisualServerScene::instance_set_transform (servers\visual\visual_server_scene.cpp:690)

Totally forgot about this, thanks for looking into it @m4gr3d , I should have fixed this myself ages ago :)


HTML

HTML
user story
as a bootcamp student
i want the prework notes to be structured on a webpage
so that i can easily find and read information
acceptance criteria
GIVEN a prework study guide website
WHEN i visit the website in my browser
THEN i see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed

added html code to application


Solarized themes are buggy

ANSI colours 10, 11, 12 and 14 of the solarized themes are almost grey, not coloured.
(mintty/mintty#683)

The solarized themes in iamthad/base16-mintty seem ok:
https://github.com/iamthad/base16-mintty/blob/master/mintty/base16-solarized-dark.minttyrc
BoldGreen=7,54,66
BoldYellow=88,110,117
BoldBlue=131,148,150
BoldCyan=211,54,130

https://github.com/iamthad/base16-mintty/blob/master/mintty/base16-solarized-light.minttyrc
BoldGreen=238,232,213
BoldYellow=147,161,161
BoldBlue=101,123,131
BoldCyan=211,54,130

For me, there are 3 slightly tuned shades of grey and a pinkish red. This is not by any means green, yellow, blue or cyan.

I think what themes do is redefining colors.

Yes, but within the semantic limits of their names. That's what users expect to be reflected. So the mintty issue quoted above was raised.

I don't know much about themes, in fact I never use them.

Maybe can help, I change solarized DARK with other mintty themes,
custom-solarized-dark.minttyrc.txt
NOTE: I change append extension .txt, just remove to use it.

@atgiovannini Thanks.


 So we should also adopt that :)

The lazy loading is here more for images and not for background images.
I could imagine that we use https://github.com/visol/Visol.Neos.ResponsiveImages
That can work like charm.

:tada: This issue has been resolved in version 3.1.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


How to solve this problem? the version of python used seems to be different from the python environment in my conda. My local python environment is 3.9.2


[Playground] Move Playground in GKE and Infrastructure change

resolves #22489, resolves #22488, resolves #23340, resolves #23340, resolves #23341, resolves #23343. resolves #23345, resolves #23344, resolves #23342, resolves #23007, resolves #23471

Move Playground Backend to GKE
Move Playground frontend to GKE
The DNS name for Playground
Fix security issue with JSON authentication

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

LGTM

@damondouglas it was approved for https://github.com/apache/beam/tree/master/playground/infrastructure/proxy prior I believe. Can you share more details?

@AKosolapov I think it is just a reporting output from the security scanner that is expecting all the dependencies to come from Docker.  I'd vote to move on from it since it was discussed and approved.  Apologies to add extra noise to this PR.

ok thanks - I assume this means we can move forward to merge this, Damon?
@MakarkinSAkvelon can you please rebase the PR so I can merge?

lgtm


Removing PSv4 support by removing InstallAccount parameter

Pull Request (PR) description
Dropping PSv4 support by removing the InstallAccount parameter for all resources.
This Pull Request (PR) fixes the following issues

Fixes #1207

Task list

[x] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md.
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).
[x] Resource documentation added/updated in README.md.
[x] Resource parameter descriptions added/updated in README.md, schema.mof and comment-based
help.
[x] Comment-based help added/updated.
[x] Localization strings added/updated in all localization files as appropriate.
[x] Examples appropriately added/updated.
[x] Unit tests added/updated. See DSC Community Testing Guidelines.
[x] Integration tests added/updated (where possible). See DSC Community Testing Guidelines.
[x] New/changed code adheres to DSC Community Style Guidelines.

This change is

@NikCharlebois Can you please review this PR?


 Start execution.
[2017-04-19 15:51:16.873] [DEBUG] Command STATUS is repeatable. Delay and put it back to queue.
[2017-04-19 15:51:17.873] [DEBUG] Check status for e9b8c856-9587-4007-92c2-0755c5d11520 command line tool.
[2017-04-19 15:51:17.924] [DEBUG] postprocess(id=e9b8c856-9587-4007-92c2-0755c5d11520)
[2017-04-19 15:51:17.932] [INFO] Trying to find cached results in the directory /Users/janko/Desktop/Archive/varscan/.root.meta
[2017-04-19 15:51:17.932] [INFO] Cache directory doesn't exist. Directory /Users/janko/Desktop/Archive/varscan/.root.meta
[2017-04-19 15:51:17.934] [DEBUG] Saving standard error files for id=e9b8c856-9587-4007-92c2-0755c5d11520
[2017-04-19 15:51:18.104] [DEBUG] isSuccessful()
[2017-04-19 15:51:18.104] [DEBUG] getExitStatus()
[2017-04-19 15:51:18.120] [DEBUG] isSuccessful()
[2017-04-19 15:51:18.121] [DEBUG] getExitStatus()
[2017-04-19 15:51:18.136] [DEBUG] getExitStatus()
[2017-04-19 15:51:18.142] [ERROR] Job e9b8c856-9587-4007-92c2-0755c5d11520 failed with exit code 2.
[2017-04-19 15:51:18.142] [DEBUG] onJobFailed(jobId=e9b8c856-9587-4007-92c2-0755c5d11520)
[2017-04-19 15:51:18.144] [DEBUG] Update Job e9b8c856-9587-4007-92c2-0755c5d11520
[2017-04-19 15:51:18.144] [DEBUG] Root Job e9b8c856-9587-4007-92c2-0755c5d11520 goes to EventProcessor 0
[2017-04-19 15:51:18.144] [DEBUG] Root Job e9b8c856-9587-4007-92c2-0755c5d11520 goes to EventProcessor 0
[2017-04-19 15:51:18.145] [INFO] Job e9b8c856-9587-4007-92c2-0755c5d11520 failed with exit code 2.
[2017-04-19 15:51:18.145] [DEBUG] isSuccessful()
[2017-04-19 15:51:18.145] [DEBUG] getExitStatus()
[2017-04-19 15:51:18.159] [DEBUG] Command STATUS is last command. Stop thread.
[2017-04-19 15:51:18.159] [INFO] JobHandlerRunnable JobHandler-Thread-0 stopped.
[2017-04-19 15:51:18.159] [INFO] JobHandlerRunnable JobHandler-Thread-0 finished.
[2017-04-19 15:51:18.234] [DEBUG] DAGNode rootId=e9b8c856-9587-4007-92c2-0755c5d11520, id=root found in cache
[2017-04-19 15:51:18.234] [DEBUG] Cache size=1
[2017-04-19 15:51:18.240] [WARN] Root job e9b8c856-9587-4007-92c2-0755c5d11520 failed.
[2017-04-19 15:51:18.240] [DEBUG] onJobFailed(jobId=e9b8c856-9587-4007-92c2-0755c5d11520)
[2017-04-19 15:51:18.240] [DEBUG] Root Job e9b8c856-9587-4007-92c2-0755c5d11520 goes to EventProcessor 0
[2017-04-19 15:51:18.241] [DEBUG] org.rabix.engine.memory.impl.InMemoryJobRecordRepository@ee38559 flushed 1 item(s). Cache hits 1.
[2017-04-19 15:51:18.241] [DEBUG] org.rabix.engine.memory.impl.InMemoryVariableRecordRepository@32b45313 flushed 0 item(s). Cache hits 0.
[2017-04-19 15:51:18.374] [INFO] Failed to execute a Job

Bunny is failing because there are no positions in the inputs section. Because of that, Bunny is building the following command line:
aws /Users/janko/Desktop/cwl_aws_cp/aws/endpoint.json /Users/janko/Desktop/cwl_aws_cp/aws/signpost.json s3 cp --endpoint-url http://s3-us-east-2.amazonaws.com --profile us-east-2 --no-sign-request s3://readonly-test-bucket/empty.txt .

Positions are not well defined in the spec and we are working on that. For now, you can fix the tool by assigning explicit positions to the inputs.
One more thing. You need to use valueFrom property in order to put file contents to the command line.

Thanks for the feedback.
The reason the tool has valueFrom: null for two of the input files is that I only want to place a select substring of those files on the commandline, using arguments. I found if I loadContents: true without valueFrom: null, then cwltool will place the two file paths on the commandline, which is not my intention. The only way the tool can function is with arguments, as the input values are not known ahead of time.
I tried creating a new tool with one input having a position 0, but it does not succeed. Looking more closely at the bunny cmd, it looks like bunny is placing the endpoint_json and signpost_json file paths on the commandline, while cwltool does not do this (due to valueFrom: null)
bunny should not inject /home/jeremiah/cwl_aws_cp/aws/endpoint.json home/jeremiah/cwl_aws_cp/aws/signpost.json:
cmd=[/bin/sh, -c, aws /home/jeremiah/cwl_aws_cp/aws/endpoint.json /home/jeremiah/cwl_aws_cp/aws/signpost.json s3 cp --endpoint-url http://s3-us-east-2.amazonaws.com --profile us-east-2 --no-sign-request s3://readonly-test-bucket/empty.txt .]

cwltool does not:
/bin/sh \
    -c \
    'aws' 's3' 'cp' '--endpoint-url' 'http://s3-us-east-2.amazonaws.com' '--profile' 'us-east-2' '--no-sign-request' 's3://readonly-test-bucket/empty.txt' '.'

this is with a tool that contains one input with a position:
#!/usr/bin/env cwl-runner

cwlVersion: v1.0

class: CommandLineTool
requirements:
  - class: DockerRequirement
    dockerPull: quay.io/ncigdc/awscli:1
  - class: EnvVarRequirement
    envDef:
      - envName: "AWS_CONFIG_FILE"
        envValue: $(inputs.aws_config.path)
      - envName: "AWS_SHARED_CREDENTIALS_FILE"
        envValue: $(inputs.aws_shared_credentials.path)
  - class: InlineJavascriptRequirement
  - class: ShellCommandRequirement

inputs:
  - id: aws
    type: string
    default: aws
    inputBinding:
      position: 0

  - id: aws_config
    type: File

  - id: aws_shared_credentials
    type: File

  - id: endpoint_json
    type: File
    inputBinding:
      loadContents: true
      valueFrom: null

  - id: signpost_json
    type: File
    inputBinding:
      loadContents: true
      valueFrom: null

outputs:
  - id: output
    type: File
    outputBinding:
      glob: |
        ${
        var signpost_json = JSON.parse(inputs.signpost_json.contents);
        var signpost_url = String(signpost_json.urls.slice(0));
        var file_name = signpost_url.split('/').slice(-1)[0];
        return file_name
        }

arguments:
  - valueFrom: "s3"
    position: 1
    shellQuote: true

  - valueFrom: "cp"
    position: 2
    shellQuote: true

  - valueFrom: |
      ${
      var signpost_json = JSON.parse(inputs.signpost_json.contents);
      var signpost_url = String(signpost_json.urls.slice(0));
      var signpost_path = signpost_url.slice(5);
      var signpost_array = signpost_path.split('/');
      var signpost_root = signpost_array[0];
      var profile = signpost_root;
      var endpoint_json = JSON.parse(inputs.endpoint_json.contents);
      var endpoint_url = String(endpoint_json[profile]);
      return endpoint_url
      }
    prefix: --endpoint-url
    position: 4
    shellQuote: true

  - valueFrom: |
      ${
      var signpost_json = JSON.parse(inputs.signpost_json.contents);
      var signpost_url = String(signpost_json.urls.slice(0));
      var signpost_path = signpost_url.slice(5);
      var signpost_array = signpost_path.split('/');
      var signpost_root = signpost_array[0];
      var profile = signpost_root;
      return profile
      }
    prefix: --profile
    position: 5
    shellQuote: true

  - valueFrom: "--no-sign-request"
    position: 6
    shellQuote: true

  - valueFrom: |
      ${
      var signpost_json = JSON.parse(inputs.signpost_json.contents);
      var obj_path = [];
      obj_path.push(signpost_json.urls[0]);
      var signpost_path = obj_path[0].substring(5).split('/').slice(1).join('/');
      var s3_url = "s3://" + signpost_path;
      return s3_url
      }
    position: 98
    shellQuote: true

  - valueFrom: .
    position: 99
    shellQuote: true

baseCommand: []

By the spec, valueFrom can be string or an expression. I think that that is a bug in cwltool. One more thing, if the valueFrom is null that is more or less the same thing as if the valueFrom is missing. The correct way would be the following:
valueFrom : $(null)

The valueFrom: $(null) fix works for me on bunny.
However, with cwltool, I get an error:
Workflow error, try again with --debug for more information:
:1:1: Expression evaluation error:
      null'null'
Traceback (most recent call last):
  File "/home/jeremiah/.virtualenvs/cwl/lib/python2.7/site-packages/cwltool/main.py", line 768, in main
    **vars(args))
  File "/home/jeremiah/.virtualenvs/cwl/lib/python2.7/site-packages/cwltool/main.py", line 235, in single_job_executor
    for r in jobiter:
  File "/home/jeremiah/.virtualenvs/cwl/lib/python2.7/site-packages/cwltool/draft2tool.py", line 378, in job
    arg = builder.generate_arg(b)
  File "/home/jeremiah/.virtualenvs/cwl/lib/python2.7/site-packages/cwltool/builder.py", line 175, in generate_arg
    value = self.do_eval(binding["valueFrom"], context=value)
  File "/home/jeremiah/.virtualenvs/cwl/lib/python2.7/site-packages/schema_salad/sourceline.py", line 150, in __exit__
    raise self.makeError(unicode(exc_value))
WorkflowException: :1:1: Expression evaluation error:
:1:1: null'null'

I'm not sure where in the spec this is specified. Should I file a bug against cwltool?

Hi @jeremiahsavage ,
you can also set valueFrom : "", i.e. add an empty string to the command line. This should work everywhere.

@bogdang989 That's only true if there is no prefix. Both rabix and cwltool will run echo -p for example, instead of just echo.
@jeremiahsavage I thought for a moment that you don't have a InlineJavascriptRequirement declared, but since you do, I believe this is a bug in cwltool.

@tetron @mr-c can you share your thoughts about this issue? The specification says that valueFrom can be string | Expression, so I believe that the right way of specifying null in valueFrom is through expression as @simonovic86 suggested.

@sivkovic yes, that's a bug in cwltool.  I have a pending bugfix on cwltool https://github.com/common-workflow-language/cwltool/pull/434 and added test cases to the conformance suite: https://github.com/common-workflow-language/common-workflow-language/pull/460

@tetron thanks for fast response.


remove obsolete output from buildDefinitions module

PR Summary

removed output of objects returned from API to avoid misleading outputs for consumers
added GitRepository object to BuildDefinition
had to add a [VSTeamProjectCache]::timestamp = -1 to VSTeamAccount constructor after experiencing blocking with New-PSDrive -Name V -PSProvider SHiPS -Root 'VSTeam#VSTeamAccount' -Verbose; Get-VSTeamBuildDefinition -ProjectName someProject

PR Checklist

[X] Write Unit Test

aw, sorry - now I see it and will fix it

again a learning - no matter how good your intentions are and how insignificant a change seems: never skip the unit tests

Now unit and integration tests for build definitions work again.
The problem I was trying to solve is that with the API call for Get-VSTeamBuildDefinition a repository object is returned which is missing remoteURL - hence I thought getting my own object. I need to into this again.

@DarqueWarrior as a next step I'd like to convert Queue also to class VSTeamQueue in teamspsdrive. My end game is that I can conveniently replace/exchange/update or even add elements in a build definitions tree and then update the whole definition. Hence I think each elements needs to have a proper class so it can be instantiated by the consumer.


fix double posting avatars.

im bad i know

Whats the point of deleting the entry in config? It's going to be changed when the new avatar is set anyway so this code seems extraneous.

it double posts in the avatar folder apparently

I'll take a look at this tonight and see if i can recreate the problem.

I'm having difficulty recreating the issue. Any more details you can give me about it?

hence this pull request as a possible fix?

,

@TheFenderStory I think we should make a check to block double setting of avatars not delete it and reset it ?

Why? There really isn't an issue doing it this way. If someone tries to set an avatar for someone who already has one, it will just delete their old one. I think that streamlines things a bit


Script/function to import data from legacy IT Assets system

Legacy IT Assets system: https://assets.dpaw.wa.gov.au/admin/
Legacy project repo: https://github.com/parksandwildlife/it-assets
Create a utility script in the assets app (assets/utils.py) to import data from the old system into the CMS. Easiest way would be to assume that the data is available as dumped, serialised fixtures.
Model map (old -> new):

Supplier -> Vendor
Model -> HardwareModel
Location -> Location
Invoice -> Invoice
Asset -> HardwareAsset

One Off import script of data from Legacy Asset System to New Asset system in OIM-CMS.
Script Task Requriments.
Task Steps

Export data from the follow tables. (json format)
Supplier -> Vendor
Model -> HardwareModel
Location -> Location
Invoice -> Invoice
Asset -> HardwareAsset
Copy Export data across to new legacy system
Import data into new system match data into OIM table structure and column and accounting for the new tables foreign keys.

Supplier -> Vendor: assets.models.Vendor
Model -> HardwareModel:  assets.models.HardwareModel
Location -> Location: organisation.models.Location
Invoice -> Invoice: assets.models.Invoice
Asset -> HardwareAsset: assets.model.HardwareAsset

Hi Ashley,
assets_locations = Legacy table
organisation_location = OIM location table
The new data set for locations is completely different to the legacy .     The old legacy document has multiple area for the same locations.      We may need to adjust the locations in the new system or amend additional location fields to the asset table other wise potentially lose location information
assets_locations.xlsx
organisation_location.xlsx

@xzzy Look at SecondaryLocation model in the organisation model as an additional sublevel for location. We can also alter SecondaryLocation to add an additional "description" CharField to get a 3rd level of sub-location (with a unique_together constraint for (name, description).
Can you see if that works with the legacy data?

Yeah was looking at the secondary location as well.     The ugly part tho is assets_location name, block,site field contains a combination of secondary and primary information.
The site field looks like it contains a combination of primary and secondary .
eg the information that says rack 1, 2, 3, reception when this should probably be tertiary field as it a location with in a location.
and than under site you have mobile communication facility which should probably be under block.  Also portable which should probably be its own (yes/no) field  .  Also portable should probably also be listing it home base location and than the option to show it portable asset.
My suggestion to ensure we don't lose important data.

Add Portable yes/no to asset table
Manually create the equivalent location data in the new location structure and than create a manually ID map between which we can than code the import around.  Also the new location data has address and other information that isn't in the legacy system..    if you want to ensure the integrity of the data i think a manual approach may be best first up due to to many inconsistency with the data.

Your thoughts?

Another Question Ashley.
The new vendor tables remove audit ability information is this by design?.   Also which content is meant to be populated into details and extra_data?

Same with assets_model to assets_hardwaremodel   removing the audit columns?

Invoice audit columns removed and have 4 fields not match from old system and 3 fields in the new system not matched

Asset table looks pretty good.  everything matches up mostly...  new table has some extra columns and is missing the audit columns.

Spread sheet link of locations between new and old system
assets_locations_no2.xlsx

In the old asset system table 'assets_asset' the assigned_user was  a free text field.  With the new structure assigned user is and integer.   What should be done with the data that is not a valid user?

@xzzy Match on username if possible, otherwise leave assigned user blank.

Sure,  will leave blank if no user match.  there some other data which doesn't look like a name ill place it into extra_data.
here and interesting stat out of 1903 records in auth_user 1837 have a unique first / last name record.... hmm.  hope fully we get lucky with the right unique name match.

arhh 47 are blank records.  still a few dupes or potential real people with the same name

This script is pretty much done.    We still need to finish off assets_locations_no2.xlsx Excel ID map.
The script also inserts Unknown Vendor and Unknown Address rows into assets_vendor and organisation_location to get around the foreign key constraints.  Once the data has been fix with this information manual we can probably remove them.
I'm using direct SQL rather than the django object as it much easier to connect to 2 databases at the same time rather than having to setup a new django settings file.


Writing to Parquet fails for extension types that contain lists

If you create an extension type that wraps any kind of list type,  conversion to Parquet format fails.
As far as I can tell, this could be fixed by updating  the nested_array_to_page function in io/parquet/write/mod.rs to use:
match array.data_type().to_logical_type() {

instead of
match array.data_type() {

I'm happy to do this.  Can you assign this issue to me?


migrate to libuv

Do you have this building / passing tests on Windows yet (is that in scope for you)?
I'm making headway in https://github.com/mojodna/zeromq.node; did a slightly different migration (not sure of pros/cons) and got it building on Windows, but I haven't been able to run the tests just yet (not sure if it's the build or something else).

not yet, just tested on mac. would try it on windows next week.

Cool.  I'll post here if I have any updates.

Building zeromq/zeromq2-1 requires that Visual Studio Express 2008 be installed.  (I installed it after installing VS Express 2010.)  There's an MSVC build in builds/msvc.  From there, I ran msbuild and artifacts showed up in lib/.
I've subsequently managed to compile zeromq.node successfully, but the tests are failing because the system io_watcher module can't be found.  Seems like a Windows thing, but I haven't found any clear answers yet.


hello

Does this occur consistently?
Repro steps:

Action: appService.Deploy
Error type: Error
Error Message: Entry not found in cache.
Version: 0.18.0
OS: win32
OS Release: 10.0.18363
Product: Visual Studio Code
Product Version: 1.47.2
Language: ja

Call Stack
a.createError extension.js:1:49459
b.<anonymous> extension.js:229:174287
extension.js:229:168902extension.js:229:168902
extension.js:229:54224extension.js:229:54224
extension.js:229:52217extension.js:229:52217
extension.js:229:51839extension.js:229:51839
i.find extension.js:229:86332
extension.js:229:33268extension.js:229:33268

As a workaround you could try reloading your window or signing out and signing back in to your Azure Account using the command palette.
Unfortunately there's not much we can do in this extension, but this is being tracked upstream here: microsoft/vscode-azure-account#53


62d447dd-2a5c-4b05-8699-4d453f9c359f

this is for automated testing

2315fd7d-3f07-421a-90e0-bb47a5e5b116


When expanding folder not all files are shown

VSCode Version: 1.18.1
OS Version: macOS Sierra Version 10.12.6

Steps to Reproduce:

Reproduces without extensions:
No, but also not after re-enabling them.

If you cannot reproduce without extensions then there is nothing we can do here.
Can you reproducae with latest vscode insiders https://code.visualstudio.com/insiders/
If yes can you please give us exact reproducable steps


Propose Documentation for Software Best Practices, Coding Conventions, and Style

Problem
CHIP will be composed of much software contributed from participating member organizations. However, for any new CHIP code, there should be documentation for software best practices, coding conventions, and style.
Summary of Changes
Proposed a documentation guide, in AsciiDoc format, for software best practices, coding conventions, and style.
Fixes #335

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

The last discussion ended with a mandate that we spend no more cycles on this. If there are things that everyone comes to agreement across companies (and, at that, there does not even seem to be alignment within companies), we can bubble those things up and memorialize them in a from-empty-to-plus-plus approach rather than in a as-is-to-minus-minus approach.

@rwalker-apple @gerickson I suggest we close this for now, then open up an organic document as things come in? Thoughts?

Fine with me, but can we get that document up first?

Closing in lieu of https://github.com/project-chip/connectedhomeip/pull/1504.

The last discussion ended with a mandate that we spend no more cycles on this. If there are things that everyone comes to agreement across companies (and, at that, there does not even seem to be alignment within companies), we can bubble those things up and memorialize them in a from-empty-to-plus-plus approach rather than in a as-is-to-minus-minus approach.

@rwalker-apple @gerickson I suggest we close this for now, then open up an organic document as things come in? Thoughts?

Fine with me, but can we get that document up first?

See here for such a document: https://github.com/project-chip/connectedhomeip/pull/1504


Overhaul landuse_areas_z13(-24) to solve stacking order challenges

Separate out Landuse_areas in style to make stacking order easier to manage
Right now, we have 45 landuse_areas in a single layer, which works so long as they never overlap, since we can control layer order only by the order of layers and not their subsidiary parts.
See that here:
https://github.com/OpenHistoricalMap/map-styles/blob/staging/ohm_timeslider_tegola/tegola-ohm.json#L74-L120
Current workarounds
The current workaround is to punt when someone notices a bad overlap and pull out a stop into a separate layer ad hoc.
Maximum control would be 45 layers, but that's a lot of noise to handle in this file. We should be able to group them, but the trick is that the members of a group should rarely or never overlap each other, and between groups, one should universally be on top of another. I will note that the issue of "parks" as almost a landcover type is a longstanding failing in OSM itself.
Here's one try at some groupings, with uppermmost layers first, but it's hard to know if these would work without testing.
 Or maybe we already did!

OK, this is in place. If new layering problems come up, we cna treat those as new issues, since this was just a first pass


size mismatch for model.diffusion_model.mixins.patch_embed.proj.weight: copying a param with shape torch.Size([3072, 256]) from checkpoint, the shape in current model is torch.Size([3072, 128]).

I followed https://github.com/THUDM/CogVideo/tree/main/sat/README.md to run bash inference.sh, and encountered the problem. The weights are downloaded from https://huggingface.co/THUDM/CogVideoX1.5-5B-SAT.
What could I do to fix the problem? Thanks for you help!

You will have to build diffusers from source including the PR
https://github.com/THUDM/CogVideo/issues/510

Compare pip list with this.
I had the same issue but after installing it today it got resolved (Windows 11)
https://github.com/THUDM/CogVideo/issues/509#issuecomment-2482129330

build from

build from source with https://github.com/zRzRzRzRzRzRzR/diffusers
pip install -e .
will solve this issue

now is https://github.com/huggingface/diffusers/tree/main


Scrollbar hidden on ajax load

hey, i am using perfect-scrollbar in an ajax context. When my ajax is loaded, i use a callback function to launch the scrollbar event which works perfectly. My issue is that i need to scroll to make the scroll bar visible even if the css is opacity : 1. After looking into the code, i noticed that my scrollbar zone has a height :0, and if i scroll once, it updates the height and makes it visible at the same time.
If i force a fixed height to my scrollbar, the scroll bar will appear with the height i wrote, but i can't make it scroll by clicking on it and drag it down, i still have to use the mousewheel to make it scroll.
Is there any way to make the scroll bar always visible on load ?
Thanks !

Here I am over a year later, wondering the same thing. Any ideas?


Input will hide behind other inputs

Describe the bug
The input will hide behind other inputs and the list wont show up at all
Reproduction - (required - issue will be closed without this)
Here is the snack link snack
Please provide a FULLY REPRODUCIBLE example.

Click to expand!

  import * as React from 'react';
import { View, StyleSheet, TextInput } from 'react-native';
import Constants from 'expo-constants';
import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete';

const GOOGLE_PLACES_API_KEY = ''; // never save your real api key in a snack!

const App = () => {
return (
  <View style={styles.container}>
    <View style={{ height: 100 }}>
      <TextInput
        style={{ height: 40, borderColor: 'gray', borderWidth: 1 }}
      />
      <GooglePlacesAutocomplete
        query={{
          key: GOOGLE_PLACES_API_KEY,
          language: 'en', // language of the results
        }}
        onPress={(data, details = null) => console.log(data)}
        onFail={(error) => console.error(error)}
        requestUrl={{
          url:
            'https://cors-anywhere.herokuapp.com/https://maps.googleapis.com/maps/api',
          useOnPlatform: 'web',
        }} // this in only required for use on the web. See https://git.io/JflFv more for details.
        styles={{
          textInputContainer: {
            backgroundColor: 'rgba(0,0,0,0)',
            borderTopWidth: 0,
            borderBottomWidth: 0,
          },
          textInput: {
            marginLeft: 0,
            marginRight: 0,
            height: 38,
            color: '#5d5d5d',
            fontSize: 16,
          },
          predefinedPlacesDescription: {
            color: '#1faadb',
          },
        }}
      />
      <TextInput
        style={{ height: 40, borderColor: 'gray', borderWidth: 1 }}
      />
    </View>
  </View>
);
};

const styles = StyleSheet.create({
container: {
  flex: 1,
  justifyContent: 'center',
  paddingTop: Constants.statusBarHeight,
  backgroundColor: '#ecf0f1',
  padding: 8,
},
});

export default App;

Additional context

Library Version: latest

React Native Version: 0.62

[x] iOS

[x] Android

[ ] Web

If you are using expo please indicate here:

[ ] I am using expo

Add any other context about the problem here, screenshots etc
https://i.imgur.com/zeFDWKL.png

Because you are limiting the height of the component, it is hiding the list view.  I don't think this is a library bug.  You can leave the component enough space to render the listview, or wrap the component in a view that will overlay the other components.

yeah but why doesnt the autocomplete input component behave like other input compotnents?

The input component is fine, it is the listview which is being 'hidden', which is arguably expected behavior.
You can pass in a custom input component into textInputProps:
textInputProps={{
InputComp: <Input />
}}

Well then first off
InputComp is not documented anywhere, in this library, or the docs for TextInput
secondly, if you check https://snack.expo.io/137s9pPUO on android and ios
going with the most basic setup,  no height styles.
<TextInput style={{ borderWidth: 1 }} />
<TextInput style={{ borderWidth: 1 }} />
<GooglePlacesAutocomplete />
<TextInput style={{ borderWidth: 1 }} />
<TextInput style={{ borderWidth: 1 }} />

this is the result

You can't tell me that that is expected behavior

And here I managed to dial in on the zIndexing issue when using position: absolute on the list style
https://snack.expo.io/Y!lipqP0R
Firstly, it just looks wrong

And any View component behind the results list, will be ontop, sort of, and pressable instead of the result row

First off, thank you for taking the time to reproduce this and dig into it.
Just so other people reading this know, the correct way to solve this (currently) is to set the zIndex in the container style and position: absolute or fixed in the listView style.

Example
import * as React from 'react';
import { View, StyleSheet, TextInput, TouchableOpacity } from 'react-native';
import Constants from 'expo-constants';
import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete';

const GOOGLE_PLACES_API_KEY = ''; // never save your real api key in a snack!

const App = () => {
  return (
    <View style={styles.container}>
      <View>
        <TextInput style={{ borderWidth: 1, height: 40 }} />
        <GooglePlacesAutocomplete
          query={{
            key: GOOGLE_PLACES_API_KEY,
            language: 'en', // language of the results
          }}
          onPress={(data, details = null) => console.log(data)}
          onFail={(error) => console.error(error)}
          requestUrl={{
            url:
              'https://cors-anywhere.herokuapp.com/https://maps.googleapis.com/maps/api',
            useOnPlatform: 'web',
          }} // this in only required for use on the web. See https://git.io/JflFv more for details.
          styles={{
            container: {
              zIndex: 99,
            },
            listView: {
              backgroundColor: 'white',
              position: 'absolute',
              marginTop: 40,
            },
          }}
        />
        <TouchableOpacity onPress={() => alert('taco')}>
          <TextInput
            placeholder="Press here and you wil get an alert"
            style={{ borderWidth: 1, borderColor: 'red', height: 40 }}
          />
        </TouchableOpacity>
        <View style={{ height: 30, backgroundColor: 'orange' }} />
        <TextInput style={{ borderWidth: 1, height: 40 }} />
      </View>
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    paddingTop: Constants.statusBarHeight,
    backgroundColor: '#ecf0f1',
    padding: 8,
  },
});

export default App;

Well then first off
InputComp is not documented anywhere, in this library, or the docs for TextInput, its also not in the d.ts file

You are right.  Feel free to put in a PR

You can't tell me that that is expected behavior...

If you take out all the styles it would have fit in the box.
If you feel there is a better approach to this (or anything), I would be more than happy to discuss and/or review/merge a PR.

There is a simple solution to this, Jus create a separate view and put the Googleautocomplete tag inside the view.

When I do that, the suggestions don't appear at all.


Show default list current unfinished task

Would be great to could check which task stills opened typing "r list" or "r ls" something like that. Is it possible?
Thank you for this amazing workflow!

Sorry, no longer possible due to an apple bug.
Dupe of #2


Always scroll up in an overflowed container

I don't know if it is possible but it could be convinient to scroll at the bottom instead to follow the new letters displayed.

This should now be possible using the new onTyping method. A modification of the following code should do the trick:
<Typing
    {...otherProps}
    onTyping={() => { window.scrollTop = window.scrollHeight; }}
/>


Set up GitHub Actions for this repository

It could check formatting and build packages for a binary cache (cc #19).

Added in recent commit to enabling building of personal website.


Merge two or more video files

Hi,
there is a way to merge (concatenate) two or more video files?
Best regards.

https://trac.ffmpeg.org/wiki/Concatenate

Thank you for your answer, I know that method and I have used it with php shell exec functions.
I hope it is implemented as a new feature in the future.

Best (and fast) way indeed is use concat demuxer but video parts must be much as possible similar in video format, audio frequency, and obviously codec otherwise the demuxer generate artefacts or unpredictable results.
A useful trick is, as shown by documentation, a conversion to mpeg transport streams, only the container will be changed not the streams but simplifies final concat operation.
I used this method in production system and works well.
I hope it can be useful.

Thanks for the info :+1:

Duplicate of #69


dialect/sql: avoid setting the primary key when no primary key is present

I'm playing with Timescale, Timescale is a PostgreSQL extension that adds/improves support for time series data.
Timescale works by converting a normal table into a hypertable, it's not possible to use Timescale with Ent right now because the primary key of the ID field cause problems.
More info:

https://docs.timescale.com/timescaledb/latest/how-to-guides/schema-management/about-constraints/
https://stackoverflow.com/a/68066535

One solution is avoiding creating the primary key in the first place, to do this on the user side of things a migration hook can be used:
func WithoutPrimaryKey(tableName string) schema.MigrateOption {
	return schema.WithHooks(func(next schema.Creator) schema.Creator {
		return schema.CreateFunc(func(ctx context.Context, tables ...*schema.Table) error {
			for i := range tables {
				if tables[i].Name == tableName {
					tables[i].PrimaryKey = nil
				}
			}
			return next.Create(ctx, tables...)
		})
	})
}

But this generates invalid migration code PRIMARY KEY (), this PR solves this problem and allows the use of the migration hook above without problems.
Maybe in the future we could add WithoutPrimaryKey as a official option like WithDropColumn is today (but I think is better wait to see if there is a need for it, I dont think there is huge user base with tables without primary keys)
It's worth noting that another solution would be to allow more control of the primary key on Ent schema, but based on this comment, seems like there is other's considerations that should be analyzed first and this PR at least solves the problem in a easy way.

Maybe in the future we could add WithoutPrimaryKey as a official option like WithDropColumn is today (but I think is better wait to see if there is a need for it, I dont think there is huge user base with tables without primary keys)

In case we'll add this in the future, I would suggest that it should be defined on the ent/schema and not on runtime. WDYT?

WithDiffHook works great!
I have added a comment as requested, but if there is plans to remove the legacy API in the near future, I think we can close this PR without merging it.
The new API seems more powerful and more easy to work it, now that I learned about it I will use all the time 🤣.

In case we'll add this in the future, I would suggest that it should be defined on the ent/schema and not on runtime. WDYT?

I agree! The "better" way is allowing customization of the primary key on ent/schema, mostly to support composite keys, I don't see any benefits from not-having a primary key[1], the only reason I needed is because Timescale/Postgres partition requirements.
Anyway, feel free to close or merge this PR as seems fit, I will change my examples to use the WithDiffHook API for now.
1 - Refs:

https://dba.stackexchange.com/a/190678
https://stackoverflow.com/a/840182
https://stackoverflow.com/a/39650093
https://stackoverflow.com/a/24215524


Expectations for testing spatialized audio not clear

There's no description of what to expect when testing the spatialized button interaction sounds. The user cannot tell if this is working correctly or not.

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

ID: 1d70ec56-d3e7-292b-58cd-2b44b053c04d
Version Independent ID: c7cf87ae-9b0d-a94f-5463-673a0a1b3634
Content: Spatial audio tutorials - 2. Spatializing button interaction sounds - Mixed Reality
Content Source: mixed-reality-docs/mr-dev-docs/develop/unity/tutorials/unity-spatial-audio-ch2.md
Product: mixed-reality
Technology: mr-dev
GitHub Login: @kegodin
Microsoft Alias: kegodin

@kegodin Can you assist or tag someone who can?

@mr0ng @martinwilter This is listed as completed in the spreadsheet Sean shared but there is nothing here?

@hferrone, I'm not familiar with that spreadsheet, but I know we didn't create this tutorial series, I believe it was created internally, possibly by MRTK team.
Readers can test in Unity editor by entering game mode (ideally with looped audio), then move the object with the audio source from left to right and compare with and without spatial audio enabled (they can change those settings at runtime).

Move the Spatial Blend slider to 3D (1)

This makes the audio 3D (spatialized).

Check the Spatialize checkbox

This will enable the custom spatializer selected in Project Settings > Audio > Spatializer Plugin. This would typically be MS HRTF Spatializer.


New-PodeAuthScheme not accepting -ApiKey

Question
Hey - I'm marking this as a question because I had no time to troubleshoot it. I was testing out as per docs this:
Start-PodeServer {
    Add-PodeEndpoint -Address * -Port 8080 -Protocol Http
    # setup apikey authentication to validate a user
    New-PodeAuthScheme -ApiKey | Add-PodeAuth -Name 'Authenticate' -Sessionless -ScriptBlock {
        param($key)
        # here you'd check a real storage, this is just for example
        if ($key -eq 'test-key') {
            return @{
                User = @{
                    'ID' ='M0R7Y302'
                    'Name' = 'Morty'
                    'Type' = 'Human'
                }
            }
        }

        # authentication failed
        return $null
    }
    # check the request on this route against the authentication
    Add-PodeRoute -Method Get -Path '/cpu' -Authentication 'Authenticate' -ScriptBlock {
        Write-PodeJsonResponse -Value @{ 'cpu' = 82 }
    }
    # this route will not be validated against the authentication
    Add-PodeRoute -Method Get -Path '/memory' -ScriptBlock {
        Write-PodeJsonResponse -Value @{ 'memory' = 14 }
    }
}

However it returns this:

I had a quick look by exporting the function (get-Command New-PodeAuthScheme).Definition and indeed, there's no -ApiKey. -ApiKey exists in \Public\Authentication.ps1 though.

As I said, I didn't have enough time to look at this. Now I did have a minute and realized it was importing version 2.2.3.


Adds Template Sample App 3

Adds a new template for Sample App 3

It hasn't been tested as a template

bootstrap.sh has been modified to add it

Contents:

2 views: stores and tilesets
Available widgets: formula, histogram,category y legend

It's a public app

The token is the same as used in the Carto for Deck.gl examples (provided by @borja-munoz)

[ ] We should do a proper code review to make sure we're not publishing a template with faulty or wrong examples.

[ ] We should also check if we're not missing anything for this public example.

[ ] Finally, we should make sure it's working as a template.

[sc-181422]


TransactionTooLargeException

Hi guys, not really an issue with Parceler per se but you might find it to be an interesting read or at least tell me if I'm using it wrong. I'm hitting the transaction buffer limit much more easily when using Parcelable/Parceler than with plain java serialization. More info here http://nemanjakovacevic.net/blog/english/2015/03/24/yet-another-post-on-serializable-vs-parcelable/
P.S.
I love the lib, great work guys!

Great article and analysis.  I was not aware of these upper bounds.
+1 for "do not trust blindly everything you read on the internet and make some trials on your own real life scenario."
By the way, I wrote a little performance testing application along the lines of what you mentioned that illuminates performance differences between the different serialization options.  Here's the results I came up with:

Name
Time to Serialize

Parceler
404935.1442ns

Parcelable
430859.1484ns

Parceler with AutoValue
489583.3968ns

AutoParcel
1037421.0286ns

Gson
1533837.9367ns

Serializable
3059908.4384ns

And the example:

https://github.com/johncarl81/parceler/tree/master/examples/performance

Yes, in certain configurations, Parceler writes Parcelables that will be faster than traditional Parcelable classes, especially when dealing with collections and writeValue

Looking at your test project, there may be some work we can do to cram more objects into a Parceler generated Parcelable.  In your example, the vast majority of storage is filled up with a flag indicating if the given ArrayList entry is null or not:
for (net.nemanjakovacevic.parcelexperiment.EmptyObject emptyObject$$2 : ((java.util.ArrayList<net.nemanjakovacevic.parcelexperiment.EmptyObject> ) package$$0 .mList)) {
    if (emptyObject$$2 == null) {
        parcel$$10 .writeInt(-1);
    } else {
        parcel$$10 .writeInt(1);
        writenet_nemanjakovacevic_parcelexperiment_EmptyObject(emptyObject$$2, parcel$$10, flags);
    }
}

If we could store a single bit instead we may be able to increase the size of this case by 32x.

Not really sure how you could write a single bit but even if you just use writeByte instead of writeInt you'll get 4x less space used for that part of the format.
My real issue, the one I've was running into TTLE with, is that I was trying to move a graph of objects with Parceler. Imagine there is a description field on your Developer class that can be a fairly large string, and that Skill class also has a list of Developers, let's say experts for the Skill, and those have their own skills (no circular references though). The thing is that the Parceler will marshall and demarshall copies of Developer objects thus creating copies of the whole sub graph. That why I think I'm seeing serialization being faster than Parceler in my real life scenario.
Also serializable seem to use a different way of dealing with strings. I'm not very good when it comes to encodings and all that jazz but I can move twice as large String with serializable than with Parcelable, so that might be another area where Parceler can improve.

Really these are deficiencies with the native Parcelable implementation from Android.  I'm not sure what Parceler could do to make this better.  Why are you not storing these large strings on the file system or database instead?
Of note, writeByte uses writeInt internally (https://github.com/android/platform_frameworks_base/blob/master/core/java/android/os/Parcel.java#L589).
To use bits you would have to use a byte[] and bitwise operations.  I imagine I could store a byte[] that encodes each bit to 0 or 1 based on if the corresponding collection entry is null or not.

Yeah, you're right about the writing bytes thing.
The thing is those strings are nothing crazy, a simple paragraph of text. But they are being recreated many times because the references are not preserved. That's the problem, the duplication of every string. So I just reverted to serialization for this particular case and everything is cool.

Ah, I see.  Would reimplementing the graph serialization like mentioned here #66 aid in this issue?  This would preserve the structure of the graph better as well as only serialize the individual instances once.

That would solve my issue I think, even though I don't have circular references in this particular graph.

Im assuming you have diamond references, like this:
A -> B -> E
A -> C -> E
A -> D -> E
This would duplicate E 3 times.

something like that, and there is a whole graph on E position so that makes thing worse

I think I have a reasonable solution here: #154. Would love feedback before merging and releasing.


Get file attributes return different results

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
powershell
[System.IO.File]::GetAttributes("d:\onedrive")
Output: ReadOnly, Directory, Archive, ReparsePoint
c# console:
Console.Write(File.GetAttributes("d:\onedrive"));
Output: ReadOnly, Directory, Archive
Expected behavior
ReadOnly, Directory, Archive

Actual behavior
ReadOnly, Directory, Archive, ReparsePoint

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      5.1.22621.2506
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.2506
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Visuals
No response

Please note that this repository is not for reporting Windows PowerShell issues (PowerShell versions up to 5.1); to report Windows PowerShell issues, use the Feedback Hub application, though note that Windows PowerShell is no longer actively developed and will see security-critical fixes only.

Assuming you can reproduce your symptom in PowerShell (Core) / .NET (Core) too: It's not clear what isn't working as expected: are you saying that you get different results with the PowerShell vs. the C# code for a given file / directory? Or are you not expecting to see ReparsePoint in the result?

I test on ps 7.3.7, the problem also exists.
What I'm puzzled about is why the same dotnet method, with the same input parameters, returns different results in the pure dotnet console application and the powershell？
Name                           Value

PSVersion                      7.3.7
PSEdition                      Core
GitCommitId                    7.3.7
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Which behavior is the expected/correct one, and why?
Can you provide repro steps with a self-created reparse point that exhibits the difference in behavior?

If you do DIR /A C:\ in a command prompt, what does the OneDrive directory show up as?
Also, what version of DotNet are you targeting with your compiler and what version(s) to do you have installed?  I would agree that I would have expected them to show up the same as ultimately they both probably boil down to running the GetFileAttributesW() function that returns these values interpreted by an enumeration.

In fact,  [ReadOnly, Directory, Archive, ReparsePoint] is the expected/correct.

Reparse Tag Value : 0x9000701a means IO_REPARSE_TAG_CLOUD_7
So, Why powershell [System.IO.File]::GetAttributes("d:\onedrive") can return [ReadOnly, Directory, Archive, ReparsePoint].
and Console.Write(File.GetAttributes("d:\onedrive")) return [ReadOnly, Directory, Archive].
Furthermore, I directly call win32 GetFileAttributesW in C++, it also return [ReadOnly, Directory, Archive].