Keras.js Error: [Model] Model configuration does not contain any layers.

I tried to run keras model on a browser using keras.js , but I got the following error while loading it

Error: [Model] Model configuration does not contain any layer
The kera model is

from keras.models import Sequential
from keras.layers import Dense, LSTM, InputLayer, Bidirectional, TimeDistributed, Embedding, Activation
from keras.optimizers import Adam
model = Sequential()
model.add(InputLayer(input_shape=(MAX_LENGTH, )))
model.add(Embedding(len(word2index), 128))
model.add(Bidirectional(LSTM(256, return_sequences=True)))
model.add(TimeDistributed(Dense(len(tag2index))))
model.add(Activation('softmax'))

model.compile(loss='categorical_crossentropy',
              optimizer=Adam(0.001),
              metrics=['accuracy', ignore_class_accuracy(0)])

model.summary()

Then I have converted with encoder.py as

python encoder.py  model.hdf5
And load it with keras.js as

cconst model= new KerasJS.Model({
        filepath: {
          model: 'model.json',
          weights: 'model_weights.buf',
          metadata: 'model_metadata.json'
        },

          gpu: false
        })

I have tried with keras version 2.2.4 , 2.1.4, 2.2.2, 2.1.5 and 2.1.4 .
Any help would be appreciated.

2.0.6 version removed this error for me


Missing parameters in _.partition predicate.

I'm trying to split up an array of values using a filter function (_.partition). However, I want to split by the index of the current iteration. In the main lodash module, the predicate function is passed the value, index, and collection respectively. When I use lodash-fp, I only seem to get the value, nothing else. I'm still rather new to lodash and even more so lodash-fp, I hope it's just something I'm doing wrong
Library versions:

lodash (3.10.1)
lodash-fp (0.10.2)

var _ = require("lodash-fp")

var data = [1, 2, 3]
var result = _.partition(function(x, i) { return i % 2; }, data);
console.log(result) // [[], [1, 2, 3]]

var _ = require("lodash")

var data = [1, 2, 3]
var result = _.partition(data, function(x, i) { return i % 2; });
console.log(result) // [[2], [1, 3]]

This is by design as functional composition favors single param iteratees.


Incorrect Fix?

Expected behavior
$s2_name = $parsed_json['name'];
    if ($s2_name == '') {
        $s2_name = 'Server Offline';
    }; //Offline server name fix

Actual behavior
Does not fix other un-initialised array values such as
Trying to access array offset on value of type null in \includes.php on line 58
It might be more reliable and more efficient to simply check if the json array has any value at all.
if(empty($parsed_json)){
// create manually variables eg
//$s2_name = $parsed_json['name'];
$s2_name = Server Offline;
$s2_status = 0;
} else {
your other code for when the json array is not empty
}
Steps to reproduce the problem

Fix was not so efficient, but it work =)
Due to different API types inlcludes.php are very messy. I think i will make more module way to use Rust-Servers.Info & Rust-Servers.net API's


"Advance to pending" is shown when the voucher is invalid (was removed)

Describe the Bug
If a profile which is not registered gives a gasless vouch, the vouchee will see the "Advance to pending" button. However, that's not possible because the voucher must be registered.
To Reproduce
Happened to this profile. He was vouched by Santi, who was removed from POH afterwards.
Expected Behavior
Don't show the button nor the voucher.
Regarding the button, probably a check should be added here. Not sure how though.

Another example https://app.proofofhumanity.id/profile/0x73fb3787e15cdbe7b5bcae00a532f2f740d4321a


sanitize-html

I've been looking at bleach but the developers say it is deprecated:
https://github.com/mozilla/bleach/issues/698
I propose we at least apply push some basic-sanitize into the publish_dataset-function while investigating improved options.

Can we use nh3 (which looks like what others are migrating towards) then?


Created a License header Checker

Description
-Created a workflow to to check for Header Licenses in files.
-Added license Header for files missing them.
-Updated files include - " python,groovy,js,ts,sh "
Issues Resolved
Workflow checks for the presence of Header License on push and pull requests.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Hey @Divyaasm qq, will the License header Checker, check's the entire following lines?
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/

or just Copyright OpenSearch Contributors  and SPDX-License-Identifier: Apache-2.0 based on the file .licenserc.json

Hey @Divyaasm qq, will the License header Checker, check's the entire following lines?
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/

or just Copyright OpenSearch Contributors  and SPDX-License-Identifier: Apache-2.0 based on the file .licenserc.json

It checks for the two lines Copyright OpenSearch Contributors  and SPDX-License-Identifier: Apache-2.0. Barani recommended that these are the lines that are necessary. So, I've opted them.

It checks for the two lines Copyright OpenSearch Contributors  and SPDX-License-Identifier: Apache-2.0. Barani recommended that these are the lines that are necessary. So, I've opted them.

Got it thanks @Divyaasm , but I believe the entire sentence is a license
Copyright OpenSearch Contributors
SPDX-License-Identifier: Apache-2.0

The OpenSearch Contributors require contributions made to
this file be licensed under the Apache-2.0 license or a
compatible open source license.

From Core https://github.com/opensearch-project/OpenSearch/blob/main/buildSrc/src/main/java/org/opensearch/gradle/pluginzip/Publish.java#L1-L7
@gaiksaya @peterzhuamazon @bbarani

Copyright OpenSearch Contributors
SPDX-License-Identifier: Apache-2.0

@prudhvigodithi We ran a campaign and used the 2 liner during that time as mentioned here. @dblock Do you have any feedback on this license text?

Codecov Report

Merging #2666 (ba549fe) into main (3685352) will increase coverage by 6.05%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #2666      +/-   ##
=============================================
+ Coverage     93.94%   100.00%   +6.05%
=============================================
  Files           219         6     -213
  Lines          4494       105    -4389
  Branches         29        19      -10
=============================================
- Hits           4222       105    -4117
+ Misses          266         0     -266
+ Partials          6         0       -6

Impacted Files
Coverage Δ

...loyment/lambdas/cf-url-rewriter/cf-url-rewriter.ts
100.00% <ø> (ø)

deployment/lambdas/cf-url-rewriter/https-get.ts
100.00% <ø> (ø)

deployment/lib/artifacts-public-access.ts
100.00% <ø> (ø)

deployment/lib/buckets.ts
100.00% <ø> (ø)

deployment/lib/build-artifact-stack.ts
100.00% <ø> (ø)

deployment/lib/identities.ts
100.00% <ø> (ø)

src/assemble_workflow/assemble_args.py

src/assemble_workflow/bundle.py

src/assemble_workflow/bundle_file_location.py

src/assemble_workflow/bundle_location.py

... and 209 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[Azure Stack] Updates to Azs.InfrastructuresInsights.Admin spec

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

/azp run automation - sdk

Can one of the admins verify this patch?

Hi @RodgeFu , I assigned this PR to you as you have an agreement with Arthur to take the readme only related PR. Let me know if there's any questions, thanks.

what's the purpose of this change?

@RodgeFu This is just a config addition for generating the powershell cmdlets using autorest powershell generator.

assign to Xiaogang for Powershell's codegen config. thanks.

It's for azure stack team only. I am fine with change.

I do not have the permission to merge. Assign to Rodge


Unstable test AsyncTargetWrapperFlushTest

See https://ci.appveyor.com/project/nlog/nlog/builds/24146530

https://ci.appveyor.com/project/nlog/nlog/builds/26193387


Added responseMessages and models for templates

The README is also updated with the new exposed template parameters.

@jadbox What does this branch do exactly? Could you add a test?


No dump/clear button

The PRC and Chemical Crystallizer do not have a dump/clear button to void their tanks. I am using the latest recommended version (232). If the tanks get a fluid in them, but not enough to do its work, it is useless with no way to remove the fluid.

Use a gauge dropper and shift-click on the fluid gauges in the GUI. It destroys the fluids/gases within.

Boom! That did it
Thanks


Hover + SignatureHelp Transparent Background

Language server
No response
Requested feature
Hi,
Not too sure if it's possible to customise pseudo-transparency of the ["textDocument/hover"] and ["textDocument/signatureHelp"] floating windows from the UI-Customization Wiki.
I'm currently using a transparent Neovim background, with borders configured as per the Wiki's instructions. Here is what I have so far:

I want to achieve something like in the image below, which is possible with lsp_signature.nvim, featuring a transparency value of 20. From the source code, it seems like setting the winblend value may be what is required, but I'm not sure if there even is a way to set this externally.

Other clients which have this feature
No response

Usage questions belong on our discourse https://neovim.discourse.group/c/language-server-protocol-lsp/7

it seems like setting the winblend value may be what is required, but I'm not sure if there even is a way to set this externally.?

Not sure what you mean by externally. vim.opt.winblend = 10

By externally, I meant being able to configure it without changing the source code manually (i.e. from available API's). AFAIK, this is not possible, which makes this a feature request, rather than a usage question.

it's a usage question.
local handlers = {
  ['textDocument/hover'] = function(...)
    local buf, winnr = vim.lsp.handlers.hover(...)
    if buf then
      vim.api.nvim_buf_set_keymap(buf, 'n', 'K', '<Cmd>wincmd p<CR>', { noremap = true, silent = true })
      vim.api.nvim_win_set_option(winnr, "winblend", 90)
    end
  end,
}

local servers = {
  'rust_analyzer',
}
for _, lsp in ipairs(servers) do
  lspconfig[lsp].setup {
    on_attach = on_attach,
    handlers = handlers,
  }
end

I wish you had asked on discourse like I requested.

Apologies for the confusion and thanks for your quick response and help! I assumed this repo was concerned with UI customisations since the Wiki discusses this in depth, my bad :(

I only added the wiki because people were asking UI/customization questions in the issue tracker :)


improve UX:display full address opened file in vscode titlebar

@egamma thanks
Why not defaulted?

Different users prefer different defaults.

@egamma yes that's right.


Implement p2p discovery v5

The discovery v4 protocol is really bad at finding LES peers, so we had to resort to hard-coding known LES peers in the PeerPool we use with our LightChain. The latest release of geth (1.8.x) implements the discovery v5 protocol, though, which is much better at finding peers that support a specific sub-protocol (e.g. LES), so we should implement that (probably even dropping v4) and change our PeerPool to use p2p.DiscoveryProtocol instead of hard-coded nodes.

Hi guys, I've created a tracking issue for the v5 spec over in the devp2p repo. We can discuss the protocol there :).

Not sure what the original tracking issue was, but here is the milestone tracking all the v5 things:
https://github.com/ethereum/devp2p/milestone/2

So, this unfinished v5 implementation was based on an old draft of the spec and now we have a new implementation based on the current spec draft, therefore I'm closing this


Adding sleep when retrying iptables-restore command

What does this PR do?
Adding a sleep interval when retrying the iptables-restore command to improve the retry mechanism.

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Updated README and Added basic Slack Scanning Implementation

Updated README
Added src/bin/slack_hog.rs with basic slack channel scanning implementation
Added TODO items also with probable next steps.

 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.

Hi @joaoh82 , thanks for the awesome contribution! I'm going to take a look today, make sure it all works, and then merge it in assuming everything looks good. I'll probably do a new release by the end of the week and make sure this is included.

Awesome @cutler-scott-newrelic ! If there is anything that needs changing please do not hesitate to point it out and I would be happy to make the change.

Allright here we go! I made a few changes:

Renamed the hog to an actual hog breed per the naming convention stated in the README
Added support for pagination from the slack API. In order to support giant channel histories I also added support for OLDEST and LATEST flags which follow the format from the Slack API here: https://api.slack.com/methods/conversations.history
Made channel ID mandatory, as it is required by the API.
Updated the README to reflect the CLI syntax changes


keystore.json.lock issues with lodestar and nethermind.

Describe the bug
validator-1  | Feb-17 17:26:53.329[]                 info: Lodestar network=mainnet, version=v1.15.1/1857a49, commit=1857a49404f2ad965025333f0f6b3422d4c1943f
validator-1  | Feb-17 17:26:53.333[]                 info: Connecting to LevelDB database path=/var/lib/lodestar/validators/validator-db
validator-1  |  ✖ Error: ENOTDIR: not a directory, rmdir '/var/lib/lodestar/validators/keystores/0xa10438cfb720250315e5a2952cf3f0e38c8806508961c5b958665b20388b0e1ff6cb18458916073766f7963047412c97/voting-keystore.json.lock'
validator-1  |     at Object.rmdirSync (node:fs:1219:11)
validator-1  |     at Object.newFs. [as rmdir] (/usr/app/node_modules/proper-lockfile/lib/adapter.js:15:42)
validator-1  |     at removeLock (/usr/app/node_modules/proper-lockfile/lib/lockfile.js:90:16)
validator-1  |     at /usr/app/node_modules/proper-lockfile/lib/lockfile.js:73:13
validator-1  |     at Object.newFs. [as stat] (/usr/app/node_modules/proper-lockfile/lib/adapter.js:20:13)
validator-1  |     at /usr/app/node_modules/proper-lockfile/lib/lockfile.js:56:20
validator-1  |     at Object.newFs. [as mkdir] (/usr/app/node_modules/proper-lockfile/lib/adapter.js:17:24)
validator-1  |     at acquireLock (/usr/app/node_modules/proper-lockfile/lib/lockfile.js:29:16)
validator-1  |     at RetryOperation._fn (/usr/app/node_modules/proper-lockfile/lib/lockfile.js:233:13)
validator-1  |     at RetryOperation.attempt (/usr/app/node_modules/retry/lib/retry_operation.js:112:8)
validator-1  |
validator-1 exited with code 1
ENOTDIR: not a directory, rmdir '/var/lib/lodestar/validators/keystores/0xa10438cfb720250315e5a2952cf3f0e38c8806508961c5b958665b20388b0e1ff6cb18458916073766f7963047412c97/voting-keystore.json.lock'' seems to be the main error flag.
Expected behavior
it should either pull the keystores from the datadir or remove stale keystores and reimport it gets stuck unable to delete nor replace.
Steps to reproduce
No response
Additional context
This is happening, using nethermind 1.25 latest release and using lodestar 1.15.1
Operating system
Linux
Lodestar version or commit hash
v1.15.1

Did this happen when upgrading from 1.15 (or lower) to 1.15.1? The only way this error can happen is during that upgrade and if your process does not shut down cleanly and leaves behind .lock files. The solution to resolve this is by manually deleting the .lock files. And once you are on 1.15.1 (or higher) this issue can't happen anymore as .lock files of keystores that are not actively in use will be considered stale even if files are left behind due to unclean shutdown (e.g. due to power loss).
Could you please share some details about your setup (incl. the CLI flags you have set), to figure out why your validator client is not shutting down cleanly.

No the shutdown was clean using commands ./ethd update and ./ethd up which only updates and replaces the images that have an updated version in the docker repository. moreover the ./ethd up command also does a clean restart of the the images that have been updated.
**I'm trying to locate the locked json file in the home folder following the path mentioned in the error and there is no lodestar folder located within dir. not even hidden. please advice.

No the shutdown was clean using commands ./ethd update and ./ethd up which only updates and replaces the images that have an updated version in the docker repository. moreover the ./ethd up command also does a clean restart of the the images that have been updated.

Yes, I have also confirmed that eth-docker shuts down the process cleanly. I am using it myself with Lodestar and update from 1.14.0 to 1.15.1 went smoothly. I honestly can't explain why lock files are not clean up in your case. Good news is that from v1.15.1 the lock file handling is improved and will ignore stale .lock files, so even if you have a power loss or similar, it wont be an issue.

**I'm trying to locate the locked json file in the home folder following the path mentioned in the error and there is no lodestar folder located within dir. not even hidden. please advice.

There are two options, you either delete them by executing the command inside the container
To list keystores
docker exec -it  eth-docker-validator-1 ls /var/lib/lodestar/validators/keystores/

or you can remove them from the volume path on your host system
sudo ls /var/lib/docker/volumes/mainnet_lsvalidator-data/_data/keystores

I attempted to use the second command and it states there is no such directory, further more I attempted to use the first command and it states the container is restarting even though all clients are running or if I attempt to do it when the clients are off line I mentioned that no such container and I get the response. Error response from daemon: No such container: eth-docker-validator-1

Still stuck and unable to delete the lock files.

Oh right, first command won't work becasue your container is crashing.
I updated the second command to match default eth-docker name.
You can also figure out the host path of a volume yourself by running these commands
Figure out name of validator volume name
docker volume ls | grep validator

Inspect volume (see Mountpoint)
docker volume inspect <volume name>

Great was able to locate the locked files with the latest command mentioned delete those will post if all works well after execution and consensus catch up.

For anyone else having this issue, there is also a way to delete all the .lock files in a single command recursively (as noted here)
List all lock files
sudo find /var/lib/docker/volumes/eth-docker_lsvalidator-data/_data -name "*.lock" -type f

Then delete them all if previous output looked correct
sudo find /var/lib/docker/volumes/eth-docker_lsvalidator-data/_data -name "*.lock" -type f -delete

Closing as this issue only affects older versions of Lodestar (< v1.15.1)


Add description to resources that don't use default ensurable

Pull Request Checklist

Description

Ensure all properties have a description when generating strings documentation.
Motivation and Context

Resolves strings:generate warnings
How Has This Been Tested?

bundle exec rake strings:generate

The text used is what Puppet sets when you just do ensurable without a block.


question; how to set the cni cidr make one node run 1000+ pods

flannel config:

i have set  "--allocate-node-cidrs=true",  "--cluster-cidr=<IP_ADDRESS>/12" in kube-controller-manager,
but ip a show cni0 , the inet scope shows <IP_ADDRESS>/24, so can only run 255 pods,
when scale 1000 pods, the log say "Error adding network: no IP addresses available in network: cbr0"
so how do i ?

i found the code ， so can't make number of pods larger then /24 ?
if cfg.Network.PrefixLen < 24 {
    cfg.SubnetLen = 24
} else {
    cfg.SubnetLen = cfg.Network.PrefixLen + 1
}

@xiaoping378 I think you're mis-reading this code -- the Network.PrefixLen is for the whole network -- in your case /12.  If you've configured things correctly, you shouldn't even get to that conditional.  Instead you should end up here.
Are you sure you've installed that Network config in your etcd cluster under coreos.com/network/config?
For what it's worth, we've tested Flannel VXLAN with a /22 per host on Cloud Foundry and found it to work fine (see here).

@rosenhouse i am using flannel-v0.7.0, it's configration is net-conf.json, i have set the SubnetLen as the first picture,  but it didn't work.
can you type your coreos.com/network/config ?

@xiaoping378 :
curl -s --cacert ca.crt --cert client.crt --key client.key \
   https://etcd.service.cf.internal:4001/v2/keys/coreos.com/network/config | jq

shows
{
   "action" : "get",
   "node" : {
      "key" : "/coreos.com/network/config",
      "modifiedIndex" : 336245,
      "createdIndex" : 336245,
      "value" : "{\n  \"Network\": \"<IP_ADDRESS>/12\",\n  \"SubnetLen\": 22,\n  \"Backend\": {\n    \"Type\": \"vxlan\",\n    \"Port\": 8472,\n    \"VNI\": 1,\n    \"GBP\": true\n  }\n}"
   }
}

For reference, the flanneld stderr logs show
I0222 03:44:52.173843    8218 main.go:133] Installing signal handlers
I0222 03:44:52.173915    8218 manager.go:136] Determining IP address of default interface
I0222 03:44:52.174103    8218 manager.go:149] Using interface with name eth0 and address <IP_ADDRESS>
I0222 03:44:52.174133    8218 manager.go:166] Defaulting external address to interface address (<IP_ADDRESS>)
I0222 03:44:52.318989    8218 local_manager.go:134] Found lease (<IP_ADDRESS>/22) for current IP (<IP_ADDRESS>), reusing
I0222 03:44:52.326175    8218 manager.go:250] Lease acquired: <IP_ADDRESS>/22
I0222 03:44:52.337205    8218 network.go:58] Watching for L3 misses
I0222 03:44:52.337237    8218 network.go:66] Watching for new subnet leases

And the subnet.env file (defaults to /run/flannel/subnet.env) shows:
FLANNEL_NETWORK=<IP_ADDRESS>/12
FLANNEL_SUBNET=<IP_ADDRESS>/22
FLANNEL_MTU=8951
FLANNEL_IPMASQ=false

Thanks @rosenhouse that information all looks correct to me. @xiaoping378 hopefully that resolves your issue to closing this.


Updated fallback icon

Closes #3509

@eviltofu can you help make the commit be more specific, i.e. at last mention "browser" and "bookmarks"? Easier to look for commits, and works better with git log -S.
For example the most recent in our history:
cb6839160a906a8270e3aec13113e7bec52d99d8 Up build and version
1ffb31dde1bfded8c5a3232264f965ed9d85adbd Added closing animation to WhatsNewListingViewController
40e3c2020a25df1c062ad2e2015e27a8687039d4 Clean up ClearDappBrowserCacheCoordinator after use
907817fd2f1ec2a97b4f0bf8e80d008b5b791acc Add missing localization strings: Buy button
e823ec940df78e614b56e64588a6d8ef72d19c84 Add fiat on-ramp to More button in Wallet tab
b56878f787fc2ef5f58bc26a5b3c19a1d412ec87 Rename var to be more intention revealing
3aa7686e91ea5edf256bcb598904fdd0e7d79637 Remove spurious comment
44624782700aaaf51ba958e9c05f26adee198a89 Refactor: extract Fiat on ramp to buy crypto
9ead7baaa4e7e8a5fc338dc33873f112eb3bb65a Make private func private
b7532915cd92197284fe58511f1338505387dbf7 Add diagnostic action in Settings > Advanced > Ping Infura

@hboon Updated.


Fix compiler errors Finch Todo example

To use the finch integration that makes it possible to use a FreeS or FreeS.Par in somthing like get(int) {  ... }, there needs to be a FooHandler[Id] or a FooHandler[Future] in scope.
There is also nothing in Freestyle which automatically composes implicitly available natural transformations, so I called andThen explicitly in todo.runtime.implicits.

Codecov Report

Merging #246 into sg-todolist will decrease coverage by 11.72%.
The diff coverage is 0%.

@@               Coverage Diff                @@
##           sg-todolist     #246       +/-   ##
================================================
- Coverage        75.66%   63.94%   -11.73%
================================================
  Files               35       44        +9
  Lines              300      355       +55
  Branches             2        2
================================================
  Hits               227      227
- Misses              73      128       +55


Top line nav highlighting bug

Highlighting the name of sections is currently inconsistent and can be disorienting. Only one top-line item should be highlighted in blue at any time.

@pglowacky this is a duplicate with this -- Navigation Guides -- make an Index Page for Guides and change the Quickstart to something so the navigation doesn't duplicate #129 -- any chance @adamsoffer you can take a look at the navigation in Docusaurus config to see if there is a better way to do this?


Use more Kotlin-like collections

If I understand the manual correctly, this is the way to go for collections in Kotlin.

+1


Revert "Fix collection of postgres metrics on FOSS Puppet"

https://github.com/puppetlabs/puppet_operational_dashboards/pull/206
Previous PR was merged erroneously and acceptance tests did not trigger, reverting and recreating branch to address test failings.

I think it would be better to add the fixtures in a new PR rather than reverting this.  A revert means that the reverted patches won't ever be applied again, so we'd have to rebase or something if we wanted to re-merge them.  I opened #208, hopefully the tests pass there.


Create a CHANGELOG and write up the process for maintaining it

It would be nice to get in the habit of listing in a changelog the notable changes, especially those that may break some API. A recent example I think is #1762.

Done?


Add terrascan tool to the container image

Hello @Srinirap and thanks for opening this issue !
I believe that instead of adding Terrascan you would be better of building your own container image on top of this one 😉
You can achieve this using  the FROM zenika/terraform-aws-cli:TAG Containerfile argument.
I do not think adding every tools in the Terraform galaxy to this container image is a good practice, as it would go again the "lightweight" philosophy !

Closing this issue without answer.


feat: Correct stubs for TypeVars

Closes #63
Summary of Changes
TypeVars create correct stubs.

@lars-reimann Like I once mentioned here Mypy seems to be unable to parse square brackets right after function and class names. Therefor I had to use a workaround to get the TypeVar information we need for def fun[T](a: T) -> T like functions. The parameter type and return type are seen as "special Any types" in Mypy and I used that information to assume that we've got a TypeVar. You can see the changes concerning this "workaround" here: 9c30988bbba5a7232ef9f32be4f5f219ddacfbc0

Also it seems like Python 3.11 can't work with the tests containing the def my_fun[T] syntax, what should I do in this case?

Also it seems like Python 3.11 can't work with the tests containing the def my_fun[T] syntax, what should I do in this case?

That syntax was introduced in Python 3.12, so that's not surprising. Until mypy supports PEP 695 natively, I'm fine with adding a new issue for that syntax to the backlog. Supporting this is not an urgent feature.

I removed the changes and created issue #68. You can now check the PR.

@lars-reimann I added the changes you requested. It would be nice, if you also look through the new tests at type_var_module.py and maybe suggest some more cases, since I don't know how the stubs would look like and what would be legal and what not.

@lars-reimann I'm done here, you can check this PR now, too.

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

v0.2.0
GitHub release

Your semantic-release bot :package::rocket:


DRAFT Fix:  Test Cases minor issue

Issues: init did not had any use_server
Fix: 2 alternatives : dont pass the variable, or add the argument to the func (I did the latter)
Issue: device passed as input but not used in TabPFNClassifier
Fix: did not pass the variable device
Issue: OSError: pytest: reading from stdin while output is captured!  Consider using -s
Fix: Use the command python3 -m pytest -s because we set a breakpoint "CHOOSE y/n" but did not use -s. Using -s will do.

Should this PR be reviewed?

If it should be reviewed, make someone the reviewer by clicking on them in the top left and ping them on mattermost, like you did for your other PR (you can make this me or Liam ideally at this point)
If it should not be reviewed, please label the PR as draft in the title "DRAFT Title"

Sure Sam! There's a case I need to discuss with Liam as mentioned in the meeting, I will assign the reviewer after that.

Look good to me. Ready to merge after renaming (as per Sam's request).

Changed the name from public_tabpfn_local  to tabpfn_1_local.
The two server based names are: tabpfn_1_local and latest_tabpfn_hosted.


Improvement on Self Sign Up Introspection Code flow

Self Sign Up Validation Code flow.
In the validation flow, we call validateSelfRegistrationCode. Here we unlock the user. Then we invalidate the code.
Self Sign Up  Introspection Code flow.
In the Introspection flow(introduced via [1]), we call userSelfRegistrationManager’s introspectUserSelfRegistration method to introspect the request. There we are calling validateSelfRegistrationCode. Here we unlock the user.
Here one difference between Validation code flow and Introspection Code flow is in validation Code flow, we will invalidate the code. But both flow unlocks the user.
The doc [2] mentions the points below.
/validate-code: This API is used to validate the code used by self-registered users.

/introspect-code: This API is used to validate the code used by self-registered users and retrieve the details.

/Introspection-Code endpoint introduced to validate the code. For example,
In forgot password scenario,
The user gets a code via Email
He/She enters the code
He/She enters his/her new credentials.

Here we need to validate the code in the second step(checks for validity and expiry). Here we need an introspection endpoint.
/Validate-Code endpoint can be used in the self-registration flow.
Thus, unlocking users by sending code introspection endpoints needs to be changed.
[1] https://github.com/wso2-extensions/identity-governance/pull/402
[2] https://is.docs.wso2.com/en/latest/apis/use-the-self-sign-up-rest-apis/#/Self Register/post_validate_code

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


conda -> uv

Please see if you can move the env setup etc from conda to uv ( I forgot what was the advantage of conda for your case)

It mainly acted as a container to download fundamental dependencies and act as a wrapper around Poetry.
I will work on migrating from conda to uv after the project deadline.


Defining structures and enums using C (similar to functions)

Is your feature request related to a problem? Please describe.
Defining a structure or an enum using the GUI is a painstaking process. For example, I see that a library was used, and I can find the library's headers. Since the "Parse C headers" functionality is a bit temperamental, I would like to simply import a single structure or enum, similar to how the function editor works.
The only way I can do that today is to create a header file, put just that one structure, and then import using the "Parse C headers" function. It takes too much time.
Describe the solution you'd like
It would be nice to have a simple parser (similar to the one used for defining functions), for parsing a structure from a simplified C-like syntax.
Describe alternatives you've considered
I was thinking about a "define new type" functionality which can parse typedefs, structs, enums and functions, all in a single "import" window. But that's a bit more complicated.
Additional context

I wrote a small script that somewhat achieves this. The basic idea is that you can just instantiate a CParser with your current datatype manager and let it parse arbitrary strings. I don't know much about Java GUIs and the only thing I found is the AskString dialog, but when in a hurry this should still be better and faster then the "Parse C headers" way.
I didn't need this feature directly so this script is still extremely simplistic but hopefully serves as an example that this is not actually that hard to do.

Extended this to be a proper GUI and renamed it because it actually handles all data types.

This would be great.


Remove mini_magick Gemfile line in quick start

refile-mini_magick already has mini_magick as a dependency.

Thanks!


Refactor query mechanism

Changes added:

Added complex filters
Support for Duckdb
Refactor codebase to use single data model for each report type
Get rid of deprecated codebase

 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.


[franceculture] improve extractor

Hello,
This contribution enhance the 'FranceCulture' extractor.
Update test and extract a mp3 from the url site :
https://github.com/rg3/youtube-dl/issues/3777
thank you for your work :-)

About the extractor name, maybe it's better to use FranceCultureEmission?

Hello,
Here are the extractor 'franceculture' with the last changes.
Thank you

I hope all is well now, my tests seem good.

Thanks, cherry picked in 7447661e9b433d8871d0a898c9af271d5a49ec82 and ecf17d165317078d0e31191e40903a74fc3da3e8.
Would you like to be credited in the AUTHORS file? If so, under which name?

You can write 'flatgreen' in the AUTHORS file.
Thank you for your patience, it was a pleasure :-)


Fix: search_users returns a dict and not a list

Hi,
I found an issue with the current return type from search_users. It is returning a dict and not a list. Additionally pages should be "page" as this refers to the page number to return and not the number of pages. This has been confirmed for Grafana v11.1.4.
Example api_call result:
{'totalCount': 4, 'users': [], 'page': 5, 'perPage': 1}
Cheers,
Matt.

@roman1900 Thank you for the contribution. I think you're right about the parameter, but I'm not quite sure about the return value, as the documentation still references a list. I will try this out and build an integration test case.

I have adjusted the search endpoint and added a new function to differentiate between the paginated search function and the normal search function. I have created a new PR to add this function as a few things were missed in their PR. I have also done an integration test with my Grafana  v11.4 environment and can confirm that the feature works as documented. I will close your PR now.


ENYO-5978: Fixed large-text mode icon size for SelectableItem and RadioItem

Checklist

[x] I have read and understand the contribution guide
[x] A CHANGELOG entry is included
[ ] At least one test case is included for this feature or bug fix
[x] Documentation was added or is not needed
[ ] This is an API breaking change

Issue Resolved / Feature Added
RadioItem and SelectableItem Icons are www.waytoobig.com
Resolution
Added large-text mode sizing values and rules for these components.

Noticed that DayPicker's items don't reflect large text mode because DayPicker is missing Skinnable!
@Djspaceg - Any objection to pushing that fix here as well? It's a bit tangential so I'm debating on whether it should go in another PR.

Sure, I'll add skinnable to the DayPicker component.

Added!


changes in Basic HAL module affect the adas module

@mshabunin this pr of yours, I guess causes the adas module in opencv_contrib to fail, right? Or it doesn't have to do anything with that.
[ 49%] [ 49%] Built target example_bioinspired_OpenEXRimages_HDR_Retina_toneMapping
Built target example_bioinspired_retinaDemo
Scanning dependencies of target opencv_line_descriptor
Scanning dependencies of target opencv_text
Scanning dependencies of target opencv_saliency
In file included from /home/tt/Desktop/packages/opencv-git/src/opencv/modules/core/include/opencv2/core.hpp:50:0,
                 from /home/tt/Desktop/packages/opencv-git/src/opencv_contrib/modules/adas/tools/fcw_train/fcw_train.cpp:21:
/home/tt/Desktop/packages/opencv-git/src/opencv/modules/core/include/opencv2/core/cvdef.h:59:30: fatal error: opencv2/hal/defs.h: No such file or directory
 #include "opencv2/hal/defs.h"
                              ^
compilation terminated.
modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/build.make:54: recipe for target 'modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/fcw_train.cpp.o' failed
make[2]: *** [modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/fcw_train.cpp.o] Error 1
CMakeFiles/Makefile2:5570: recipe for target 'modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/all' failed
make[1]: *** [modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/tt/Desktop/packages/opencv-git/src/opencv/modules/core/include/opencv2/core.hpp:50:0,
                 from /home/tt/Desktop/packages/opencv-git/src/opencv_contrib/modules/adas/tools/fcw_detect/fcw_detect.cpp:11:
/home/tt/Desktop/packages/opencv-git/src/opencv/modules/core/include/opencv2/core/cvdef.h:59:30: fatal error: opencv2/hal/defs.h: No such file or directory
 #include "opencv2/hal/defs.h"
                              ^
compilation terminated.
modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/build.make:54: recipe for target 'modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/fcw_detect.cpp.o' failed
make[2]: *** [modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/fcw_detect.cpp.o] Error 1
CMakeFiles/Makefile2:5626: recipe for target 'modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/all' failed
make[1]: *** [modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/all] Error 2
[ 49%] [ 49%] [ 49%] [ 49%] Building CXX object modules/text/CMakeFiles/opencv_text.dir/src/ocr_hmm_decoder.cpp.o
Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/binary_descriptor.cpp.o
Building CXX object modules/text/CMakeFiles/opencv_text.dir/src/erfilter.cpp.o
Building CXX object modules/text/CMakeFiles/opencv_text.dir/src/ocr_tesseract.cpp.o
[ 49%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/staticSaliencySpectralResidual.cpp.o
[ 49%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/objectness.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/motionSaliencyBinWangApr2014.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/motionSaliency.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/staticSaliency.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/saliency.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/CmShow.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/FilterTIG.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/ValStructVec.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/objectnessBING.cpp.o
[ 50%] [ 50%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/LSDDetector.cpp.o
Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/CmFile.cpp.o
[ 50%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/binary_descriptor_matcher.cpp.o
[ 52%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/draw.cpp.o
Linking CXX shared library ../../lib/libopencv_line_descriptor.so
[ 52%] Built target opencv_line_descriptor
Linking CXX shared library ../../lib/libopencv_saliency.so
[ 52%] Built target opencv_saliency
Linking CXX shared library ../../lib/libopencv_text.so
[ 52%] Built target opencv_text
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

ok update committed, everything works like a charm now :+1:


change alpha_rayleigh_uh to zero in longruns

Purpose

@akshaysridhar found that the default of rayleigh sponge coefficient of u_h is not zero. I have a PR in CLIMAParameters that changes this. While waiting for new releases, this PR changes the parameter in longruns to test if the simulations are still working.
To-do

Content

[ ] I have read and checked the items on the review checklist.

gpu longrun: https://buildkite.com/clima/climaatmos-gpulongruns/builds/30


Engine output cleaning up bug?

Seems only cleaning up the first output for multiple times?
https://github.com/NVIDIA/retinanet-examples/blob/6d52c501a8ed5fcd1958d96f9bdd776eb2f1e291/csrc/engine.cpp#L147

After each unmark, that layer is not an output tensor anymore, so the outputs keep moving towards 0th index. Kind of like dequeueing in a queue.

Ah ic, thx for clarification @yashnv


What port will this run on?

I am trying to install this on AWS, on top of a working Jupyterhub installation. Does this require opening access through another port? I noticed that port 46645 is mentioned in the Jupyterhub logs. Should I create a security group with that port open, in addition to ports I have open for Jupyterhub? I am getting a 404 when I run this without that port open.

This doesn't require opening additional ports. The nbserverproxy extension proxies to arbitrary web servers through the users Jupyter server. nbrsessionproxy launches RStudio on a random port, then uses nbserverproxy to expose that to the user's browser. See https://github.com/jupyterhub/nbserverproxy/ for a brief description.

OK. Maybe I will describe to you what I did, and what I am seeing and you can help me figure out why this is not working. I am working on an AWS ubuntu machine. I started by installing miniconda, and used that to install jupyterhub. I configure that and that all seems to work fine -- I can run Python notebooks without any problem (I had to install xorg to run R notebooks, as described here).
Then, I used apt-get and conda to install all of these things: https://github.com/jupyter/docker-stacks/blob/master/r-notebook/Dockerfile#L10-L37. I also ran conda install rstudio, because that doesn't seem to be installed in these instructions. I then pip install nbserverproxy and nbrsessionproxy and enable them, as described in the README for these two.
When I run sudo jupyterhub --config yada_yada.py, I get (I set debug_proxy to True, so it's rather verbose):

sudo jupyterhub --config jupyterhub_config.py
[I 2017-10-13 03:15:05.144 JupyterHub app:724] Loading cookie_secret from /home/ubuntu/jupyterhub_cookie_secret
[W 2017-10-13 03:15:05.178 JupyterHub app:365]
    Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require restarting the proxy.
    Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to avoid this message.

[W 2017-10-13 03:15:05.181 JupyterHub app:864] No admin users, admin interface will be unavailable.
[W 2017-10-13 03:15:05.181 JupyterHub app:865] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2017-10-13 03:15:05.181 JupyterHub app:892] Not using whitelist. Any authenticated user will be allowed.
[I 2017-10-13 03:15:05.200 JupyterHub app:1453] Hub API listening on http://<IP_ADDRESS>:8081/hub/
[I 2017-10-13 03:15:05.203 JupyterHub app:1176] Starting proxy @ http://*:443/
03:15:05.331 - info: [ConfigProxy] Proxying https://*:443 to http://<IP_ADDRESS>:8081
03:15:05.334 - info: [ConfigProxy] Proxy API at http://<IP_ADDRESS>:444/api/routes
[I 2017-10-13 03:15:05.408 JupyterHub app:1485] JupyterHub is now running at http://<IP_ADDRESS>:443/
03:15:13.761 - debug: [ConfigProxy] PROXY WEB / to http://<IP_ADDRESS>:8081
[I 2017-10-13 03:15:13.777 JupyterHub log:100] 302 GET / (@::ffff:<IP_ADDRESS>) 1.35ms
03:15:13.792 - debug: [ConfigProxy] PROXY WEB /hub to http://<IP_ADDRESS>:8081
[I 2017-10-13 03:15:13.795 JupyterHub log:100] 302 GET /hub (@::ffff:<IP_ADDRESS>) 0.39ms
03:15:13.811 - debug: [ConfigProxy] PROXY WEB /hub/ to http://<IP_ADDRESS>:8081
[I 2017-10-13 03:15:13.818 JupyterHub log:100] 302 GET /hub/ (arokem@::ffff:<IP_ADDRESS>) 2.21ms
03:15:13.835 - debug: [ConfigProxy] PROXY WEB /hub/home to http://<IP_ADDRESS>:8081
[I 2017-10-13 03:15:13.865 JupyterHub log:100] 200 GET /hub/home (arokem@::ffff:<IP_ADDRESS>) 25.85ms
03:15:13.898 - debug: [ConfigProxy] PROXY WEB /hub/static/css/style.min.css?v=d96e0760e0c2b7356ce89635b646c350 to http://<IP_ADDRESS>:8081
03:15:13.952 - debug: [ConfigProxy] PROXY WEB /hub/logo to http://<IP_ADDRESS>:8081
03:15:14.267 - debug: [ConfigProxy] PROXY WEB /hub/static/components/requirejs/require.js?v=6da8be361b9ee26c5e721e76c6d4afce to http://<IP_ADDRESS>:8081
03:15:14.314 - debug: [ConfigProxy] PROXY WEB /hub/static/components/font-awesome/fonts/fontawesome-webfont.woff?v=4.1.0 to http://<IP_ADDRESS>:8081
03:15:14.340 - debug: [ConfigProxy] PROXY WEB /hub/static/js/home.js?v=(& to http://<IP_ADDRESS>:8081
03:15:14.457 - debug: [ConfigProxy] PROXY WEB /hub/static/components/jquery/jquery.min.js?v=(& to http://<IP_ADDRESS>:8081
03:15:14.483 - debug: [ConfigProxy] PROXY WEB /hub/static/js/jhapi.js?v=(& to http://<IP_ADDRESS>:8081
03:15:14.538 - debug: [ConfigProxy] PROXY WEB /hub/static/js/utils.js?v=(& to http://<IP_ADDRESS>:8081
03:15:15.903 - debug: [ConfigProxy] PROXY WEB /hub/spawn to http://<IP_ADDRESS>:8081
[I 2017-10-13 03:15:15.911 JupyterHub log:100] 302 GET /hub/spawn (arokem@::ffff:<IP_ADDRESS>) 3.21ms
03:15:15.924 - debug: [ConfigProxy] PROXY WEB /user/arokem to http://<IP_ADDRESS>:8081
[I 2017-10-13 03:15:15.929 JupyterHub log:100] 302 GET /user/arokem (@::ffff:<IP_ADDRESS>) 0.81ms
03:15:15.940 - debug: [ConfigProxy] PROXY WEB /hub/user/arokem to http://<IP_ADDRESS>:8081
Last login: Fri Oct 13 03:11:30 UTC 2017
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1038-aws x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

88 packages can be updated.
0 updates are security updates.

[I 2017-10-13 03:15:16.028 JupyterHub spawner:783] Spawning jupyterhub-singleuser '--user="arokem"' '--cookie-name="jupyter-hub-token-arokem"' '--base-url="/user/arokem"' '--hub-host=""' '--hub-prefix="/hub/"' '--hub-api-url="http://<IP_ADDRESS>:8081/hub/api"' '--ip="<IP_ADDRESS>"' --port=44997
[W 2017-10-13 03:15:17.062 arokem login:225] All authentication is disabled.  Anyone who can connect to this server will be able to run code.
[I 2017-10-13 03:15:17.071 arokem notebookapp:1366] Serving notebooks from local directory: /home/arokem
[I 2017-10-13 03:15:17.071 arokem notebookapp:1366] 0 active kernels
[I 2017-10-13 03:15:17.071 arokem notebookapp:1366] The Jupyter Notebook is running at: http://<IP_ADDRESS>:44997/user/arokem/
[I 2017-10-13 03:15:17.071 arokem notebookapp:1367] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2017-10-13 03:15:17.158 arokem log:47] 302 GET /user/arokem (<IP_ADDRESS>) 0.56ms
[I 2017-10-13 03:15:17.159 JupyterHub base:322] User arokem server took 1.214 seconds to start
[I 2017-10-13 03:15:17.160 JupyterHub orm:188] Adding user arokem to proxy /user/arokem => http://<IP_ADDRESS>:44997
03:15:17.164 - debug: [ConfigProxy] POST /user/arokem target=http://<IP_ADDRESS>:44997, user=arokem
[I 2017-10-13 03:15:17.172 JupyterHub log:100] 302 GET /hub/user/arokem (arokem@::ffff:<IP_ADDRESS>) 1227.36ms
03:15:17.202 - debug: [ConfigProxy] PROXY WEB /user/arokem to http://<IP_ADDRESS>:44997
[I 2017-10-13 03:15:17.204 arokem log:47] 302 GET /user/arokem (::ffff:<IP_ADDRESS>) 0.45ms
03:15:17.219 - debug: [ConfigProxy] PROXY WEB /user/arokem/tree? to http://<IP_ADDRESS>:44997
[I 2017-10-13 03:15:17.246 JupyterHub log:100] 200 GET /hub/api/authorizations/cookie/jupyter-hub-token-arokem/[secret]<EMAIL_ADDRESS>11.18ms
03:15:17.333 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=9b2c8d3489227115310662a343fce11c to http://<IP_ADDRESS>:44997
03:15:17.358 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/style/style.min.css?v=29c09309dd70e7fe93378815e5f022ae to http://<IP_ADDRESS>:44997
03:15:17.575 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56 to http://<IP_ADDRESS>:44997
03:15:17.596 - debug: [ConfigProxy] PROXY WEB /user/arokem/custom/custom.css to http://<IP_ADDRESS>:44997
03:15:17.600 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/preact/index.js?v=5b98fce8b86ce059de89f9e728e16957 to http://<IP_ADDRESS>:44997
03:15:17.600 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe to http://<IP_ADDRESS>:44997
03:15:17.603 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/proptypes/index.js?v=c40890eb04df9811fcc4d47e53a29604 to http://<IP_ADDRESS>:44997
03:15:17.605 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/preact-compat/index.js?v=d376eb109a00b9b2e8c0d30782eb6df7 to http://<IP_ADDRESS>:44997
03:15:17.607 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/requirejs/require.js?v=6da8be361b9ee26c5e721e76c6d4afce to http://<IP_ADDRESS>:44997
03:15:17.642 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/tree/js/main.min.js?v=9a7bc408ac5c5ba9cc978f3eea1bb741 to http://<IP_ADDRESS>:44997
03:15:17.795 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/services/contents.js?v=20171013031516 to http://<IP_ADDRESS>:44997
03:15:17.839 - debug: [ConfigProxy] PROXY WEB /user/arokem/api/config/tree?_=1507864517811 to http://<IP_ADDRESS>:44997
03:15:17.843 - debug: [ConfigProxy] PROXY WEB /user/arokem/api/config/common?_=1507864517812 to http://<IP_ADDRESS>:44997
03:15:17.851 - debug: [ConfigProxy] PROXY WEB /user/arokem/api/terminals?_=1507864517813 to http://<IP_ADDRESS>:44997
03:15:17.858 - debug: [ConfigProxy] PROXY WEB /user/arokem/api/kernelspecs to http://<IP_ADDRESS>:44997
03:15:17.866 - debug: [ConfigProxy] PROXY WEB /user/arokem/api/sessions?_=1507864517814 to http://<IP_ADDRESS>:44997
03:15:17.867 - debug: [ConfigProxy] PROXY WEB /user/arokem/api/terminals?_=1507864517815 to http://<IP_ADDRESS>:44997
03:15:17.874 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0 to http://<IP_ADDRESS>:44997
03:15:18.023 - debug: [ConfigProxy] PROXY WEB /user/arokem/api/contents?type=directory&_=1507864517816 to http://<IP_ADDRESS>:44997
03:15:18.027 - debug: [ConfigProxy] PROXY WEB /user/arokem/custom/custom.js?v=20171013031516 to http://<IP_ADDRESS>:44997
03:15:18.040 - debug: [ConfigProxy] PROXY WEB /user/arokem/nbextensions/nbrsessionproxy/tree.js?v=20171013031516 to http://<IP_ADDRESS>:44997
03:15:21.024 - debug: [ConfigProxy] PROXY WEB /user/arokem/rsessionproxy to http://<IP_ADDRESS>:44997
sleeping: [Errno 111] Connection refused
03:15:23.361 - debug: [ConfigProxy] PROXY WEB /user/arokem/proxy/40031/ to http://<IP_ADDRESS>:44997
[I 2017-10-13 03:15:23.363 arokem log:47] 302 GET /user/arokem/proxy/40031/ (::ffff:<IP_ADDRESS>) 0.60ms
03:15:23.378 - debug: [ConfigProxy] PROXY WEB /user/arokem/proxy/40031 to http://<IP_ADDRESS>:44997
[W 2017-10-13 03:15:23.387 arokem log:47] 404 GET /user/arokem/proxy/40031 (::ffff:<IP_ADDRESS>) 7.48ms referer=https://ec2-54-245-61-246.us-west-2.compute.amazonaws.com/user/arokem/tree?
03:15:23.440 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=9b2c8d3489227115310662a343fce11c to http://<IP_ADDRESS>:44997
03:15:23.443 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56 to http://<IP_ADDRESS>:44997
03:15:23.443 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/style/style.min.css?v=29c09309dd70e7fe93378815e5f022ae to http://<IP_ADDRESS>:44997
03:15:23.444 - debug: [ConfigProxy] PROXY WEB /user/arokem/custom/custom.css to http://<IP_ADDRESS>:44997
03:15:23.567 - debug: [ConfigProxy] PROXY WEB /user/arokem/static/components/jquery/jquery.min.js?v=20171013031516 to http://<IP_ADDRESS>:44997

In the attached browser, I get the Jupyter 404 page.
Do you understand what [Errno 111] Connection refused means here? Seems like this could be the crux of the problem, and maybe this thread offers something useful, but I don't understand it. Does it ring any bells? Thanks!

Can you please include a screenshot of the error page?
Does the nbserverproxy example work for you? For example, in a terminal type:
mkdir ~/www
cd ~/www
echo hello > index.html
python -m http.server 9000

then navigate to your.hub.com/user/aroken/proxy/9000.
If you run a Jupyter terminal, can you tell if your RStudio process is running in the background? (for example ps aux | grep -i rstudio)
It sounds as if RStudio did not start properly so the proxy service has nothing to proxy to.
It may be necessary to configure PATH and LD_LIBRARY_PATH for your environment. On Ubuntu, one needs to append /usr/lib/rstudio-server/bin to PATH and set LD_LIBRARY_PATH to find R shared libraries. See the end of the Dockerfile in this repo.
PATH="${PATH}:/usr/lib/rstudio-server/bin"
LD_LIBRARY_PATH="/usr/lib/R/lib:/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server:/opt/conda/lib/R/lib"

If you set PATH and LD_LIBRARY_PATH before invoking sudo jupyterhub..., you can set c.Spawner.env_keep.append('PATH') and c.Spawner.env_keep.append('LD_LIBRARY_PATH') in your JupyterHub config file.

Thanks a lot for all your thoughts about this!
Even the simple case doesn't seem to work for me. This is the 404 page I am seeing, running the snippet of code you wrote:

On the bright side (?), ps aux | grep -i rstudio does find an rstudio process that is running, when I try to open that window. Again, I see a very similar 404 page for that, but proxying a different port:

This sounds like there's a problem with nbserverproxy. Can you run jupyter serverextension list ?
If that shows that nbserverproxy is enabled and OK, can you please open the JavaScript console in your browser (Three dots > More Tools > Developer Tools ; or type Command-Option-I). Click the "Console" tab and check for errors pertaining to nbserverproxy.

The extension seems to be enabled and OK:

ubuntu@ip-172-31-43-211:~$ jupyter serverextension list
config dir: /home/ubuntu/.jupyter
    nbserverproxy  enabled
    - Validating...
      nbserverproxy  OK
    nbrsessionproxy  enabled
    - Validating...
      nbrsessionproxy  OK
config dir: /opt/anaconda/etc/jupyter
    nbrsessionproxy  enabled
    - Validating...
      nbrsessionproxy  OK

In the JS console, the only error that appears seems to be unrelated:

TypeError: Cannot read property 'scrollHeight' of undefined
    at 9000:181
    at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
    at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
    at Module.<anonymous> (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1140)
    at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
    at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1190
    at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
    at Module.emit (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1189)
    at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:940)
    at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)
    at Module.init (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:783)
    at callGetModule (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1204)
    at Object.completeLoad (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1583)
    at HTMLScriptElement.onScriptLoad (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1711)

It appears that nbserverproxy is not installed in the anaconda path. Can you invoke pip and jupyter as the user that owns /opt/anaconda when installing nbserverproxy?

@arokem
Depending on your setup you may want to enable this extension for all users. The README for nbserverproxy will set it up for the user executing the pip command.
You can set it up system-wide this way:
pip install git+https://github.com/jupyterhub/nbserverproxy
jupyter serverextension enable --py --sys-prefix nbserverproxy

Hope this helps!

Does this mean that by guessing the port number I can access another rstudio session? How is security enforced by the proxy when running it on a hub (that does not isolate the users networking)?
Jupyter is using tokens for this, but this seems to be not the case for rsession in standalone mode (reading the code and trying out the command from the code)
(This remotely related to the ticket, but the title is fitting and I don't want to waste a ticket on sth that is not really a bug)

@riedel If users' jupyter and rstudio processes are running on a shared system, not namespaced or containerized in any way, then one user may be able to access another user's rstudio session.
While user1 cannot access /user2/rstudio because it uses jupyter's authentication, user1 can access /user1/proxy/N where N is the port on which user2's rstudio or any other listening process is running.


Paypal Plus support for modern apps?

Description
In Europe Paypal provides a service called Paypal Plus. Not sure what would be the correct name in US.
Basically it's a somewhat advanced integration allowing support of additional payment methods like credit/debit cards and so on.
I am looking for a way to integrate Paypal Plus into my React app.
Does this javascript library provide any help with that or I am on my own and have to integrate manually?

Watch this space. We're working on creating a better experience for those credit card buttons.


fix: check VP embedded proof

closes #2049
Signed-off-by: Dmitriy Kinoshenko<EMAIL_ADDRESS>

See my comment.
Additionally, I'm concerned that I don't see a clear test case using ParsePresentation() that demonstrates it works. Or maybe I'm not seeing it? Please clarify.

Good point! I added the example of VP with linked data proof creation (on the Holder side) and then verification on the Verifier side, ExamplePresentation_AddLinkedDataProof(). Also, a follow-up issue #2054 is filed.


If I wanted to download  a new color scheme (Dracula) where would I save it so that I could change my vim color scheme

I wanted to add Dracula https://draculatheme.com/vim/
I noticed extended.vim has the color scheme set. Where should I save the above theme so that I could use that color scheme instead

I think it's in the ~/.vim_runtime/sources_forked/  folder that you should save the colorscheme if I remember well


the current image does not support non western character sets

could u add  -Dfile.encoding=UTF-8 to JAVA_OPTS? Because this is not convenient for native speakers of non English speaking countries.

PRs on its way - this will be available soon in the 7.11.0.Final images


Bug: onDone action is getting called after exit action

Description
import { createMachine } from "xstate";

export const machine = createMachine(
  {
    id: "action-order-bug",

    initial: "initial",
    states: {
      initial: {
        exit: () => {
          console.log("exit");
        },
        invoke: {
          id: "fakeService",
          src: "fakeService",
          onDone: {
            actions: () => {
              console.log("onDone");
            },
            target: "done"
          }
        }
      },
      done: {}
    }
  },
  {
    services: {
      fakeService: () => Promise.resolve("success")
    }
  }
);

In the above example, the exit action will be called before the onDone action. However when onDone is called the state machine is still in initial state.
Expected result
I expect the onDone action to be called before the exit action.
Actual result
exit action getting called before onDone action.
Reproduction
https://codesandbox.io/s/broken-cherry-j1n230?file=/src/machine.js
Additional context
No response

I'm afraid that this is how the order of actions is defined - transition actions are called after exit actions, as per the procedure described here


logged out of my test app

When I try the sample after running through the setup steps I get the following response:
Alright. Here's the test version of my test app.
It looks like you've been logged out of my test app. To log back in, you'll need to ask to talk to them again.
What am I forgetting or what did I do wrong?

Do you receive any error messages in the Error/Debug tabs of the Simulator that you can provide?

I have no idea why it happend but it worked when I tried it again yesterday


bcpc_jmxtrans::default returns invalid date

On a number of physical clusters we are seeing:
  * service[restart jmxtrans on dependent service manual restart] action restart
================================================================================
Error executing action `restart` on resource 'service[restart jmxtrans on dependent service manual restart]'
================================================================================

ArgumentError
-------------
invalid date

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/bcpc_jmxtrans/libraries/utils.rb:50:in `parse'
/var/chef/cache/cookbooks/bcpc_jmxtrans/libraries/utils.rb:50:in `block (2 levels) in process_require_restart?'
/var/chef/cache/cookbooks/bcpc_jmxtrans/libraries/utils.rb:48:in `each'
/var/chef/cache/cookbooks/bcpc_jmxtrans/libraries/utils.rb:48:in `block in process_require_restart?'
/var/chef/cache/cookbooks/bcpc_jmxtrans/libraries/utils.rb:44:in `each'
/var/chef/cache/cookbooks/bcpc_jmxtrans/libraries/utils.rb:44:in `process_require_restart?'
/var/chef/cache/cookbooks/bcpc_jmxtrans/recipes/default.rb:88:in `block (2 levels) in from_file'

Instrumenting the exception I see the issue:
, dependent process:  2014````

We need to expect all variants of ps's semantics; or pick a format which does not change. From `ps`(1) I see for `start_time`:

start_time  START     starting time or date of the process.  Only the year will be displayed if the process was not started the same year ps was invoked, or "MmmDD" if it was not started the same day, or "HH:MM" otherwise.  See also bsdstart, start, lstart, and stime.

I think `lstart` would be a better field choice, as it returns strings like `Fri Aug  8 12:15:42 2014`
Sadly, its entry in `ps`(1) is not quite descriptive of its return though:
`time the command started.`


Add support for Yarn v2/v3 with install strategy set to node_modules linker

Describe the feature you'd like to request
I would like to be able to use this tool with yarn berry as my package manager. On the docs it says only yarn v1 is supported right now.
Describe the solution you'd like
Support for yarn berry.
Describe alternatives you've considered
Using another package manager.

@wdfinch I'm assuming you want pnp mode? It works as is with yarn berry using nodeLinker: node-modules, just not pnp.

Is it related to only pnp support or whole yarn 2+?

It likely doesn't work as expected with nodeLinker: node-modules fyi. Need to test this out

It likely doesn't work as expected with nodeLinker: node-modules fyi. Need to test this out

Weird. I swear I had this working just fine (at least it was building fine) with node-modules set. I'll test again.

It likely doesn't work as expected with nodeLinker: node-modules fyi. Need to test this out

I tried it on a design system codebase set up with yarn v3 using nodeLinker: node-modules. Everything in my pipeline is working, but I'm wondering if I'll run into an edge case soon. Most likely going to have a branch on v3 and revert to v1 on main until some of the edge cases are identified. Switching to v3 is a big boost in speed on installs, and I'm not even using the pnp linker.

It likely doesn't work as expected with nodeLinker: node-modules fyi. Need to test this out

I tried it on a design system codebase set up with yarn v3 using nodeLinker: node-modules. Everything in my pipeline is working, but I'm wondering if I'll run into an edge case soon. Most likely going to have a branch on v3 and revert to v1 on main until some of the edge cases are identified. Switching to v3 is a big boost in speed on installs, and I'm not even using the pnp linker.

Lockfile marshalling does not yet work for yarn v2/v3. See https://github.com/vercel/turborepo/issues/268

@Jakst Oh nice catch! Back to v1 it is

We are using yarn 2  with nodeLinker: node-modules, seeing that it does not hit the cache for packages that don't have any code changes. Is this also related to #268 ?

Is there any plan or timeline for node_modules linker and PnP support?
I guess many people are waiting on this, and they will eventually find this thread. Any additional information is helpful. 😄

. for a vote this feature!

@jaredpalmer thanks for linking the PR. From the PR it appears that this only provides support when the node_modules linker is used. Given this ticket requests support for node_modules linker and PnP, I believe we should leave this issue open until PnP support is added.
I can also make a new ticket if you would prefer to break it up.

I believe we should leave this issue open until PnP support is added.
I can also make a new ticket if you would prefer to break it up.

There haven't been any updates on this issue for three weeks.
@wdfinch Can you create a new issue for tracking?

@trivikr I made a new ticket that is focused on PnP support. I changed the title here to be on adding node_modules linker support since that's what the linked PR does.
Please move the discussion around adding PnP support to #693.
Additionally, yarn berry v2 is deprecated so we should only be adding support for v3. I'm not sure if that matters regarding the fix, but hopefully it limits the scope.


⚠ Visual-Crew_Builder has degraded performance

In ca5c7b0, Visual-Crew_Builder (https://visual-crew-builder.ai) experienced degraded performance:

HTTP code: 200
Response time: 1243 ms

Resolved: Visual-Crew_Builder performance has improved in 10cff6b after 11 minutes.


feat: timing

This pr adds /x:description/@timing (boolean). With @timing=true, XSpec measures elapsed run times of scenarios. Requires Saxon-PE or EE at run time.
Report example
The elapsed times are written at the beginning of each scenario title.

HTML
(All times in this file are normalized to 0s for testing purposes.)

How it works
x:scenario is compiled like this (edited for readability):
<xsl:template name="scenario2">
   <xsl:element name="x:scenario">
      <xsl:element name="x:timestamp">
         <xsl:attribute name="at" select="saxon:timestamp()"/>
         <xsl:attribute name="event">start</xsl:attribute>
      </xsl:element>

      <!-- invoke each compiled x:expect -->
      <xsl:call-template name="scenario2-expect1">
         <xsl:with-param name="x:result" select="$x:result"/>
      </xsl:call-template>

      <xsl:element name="x:timestamp">
         <xsl:attribute name="at" select="saxon:timestamp()"/>
         <xsl:attribute name="event">end</xsl:attribute>
      </xsl:element>
   </xsl:element>
</xsl:template>

which produces XML report with x:timestamp elements like this.
src/reporter/format-xspec-report.xsl subtracts x:timestamp[@event="start"] from @event="end" one and reports it as the elapsed time.
Use case
I have some tests for network functions. Some scenarios take 20 - 70 seconds depending on network status. I need to know their elapsed times in order to put them into specific places of .xspec file for faster tests.

@AirQuick , I plan to review this and #1399 in the next few days.

If I have timing in an XSpec file, and that file imports another XSpec file with the opposite timing value, then only the parent file's attribute takes effect. I think this behavior is fine, but I don't know what users' expectations would be. Is it worth documenting, or too obscure?

I deferred it to #1421.
In general, /x:description/@* in the imported files are ignored. Only @xslt-version and @preserve-space are supposed to persist in each scenario even when imported.

If this feature becomes popular, users might want to control the format of the number in the report. I think it's fine not to support that until people request it and describe what they're looking for.

For that kind of customization, users should probably be guided to importing and overriding src/reporter/format-xspec-report.xsl using HTML_REPORTER_XSL environment variable (command line) or xspec.html.reporter.xsl property (Ant), although they are not documented.

Thanks @galtm for reviewing and making this better. Merging this.


plex-server: change the url

Updating to the latest version of plex-server throws "The remote server returned an error: (404) Not Found." since the correct url seems to be the following: https://downloads.plex.tv/plex-media-server-new/<IP_ADDRESS>1-8bec0f76c/windows/PlexMediaServer-<IP_ADDRESS>1-8bec0f76c-x86.exe#/installer.exe

@niheaven

Okay, got it.


Type error when passing command line options

The problem
When an option is "blank" in Postman, it is exported in this format:
"src": [],
When postman-to-k6 encounters this value, it gives the following error on the command line:
The "path" argument must be of type string. Received type object
Workaround
Editing the exported collection, changing the [] to "", before converting it works around the problem.
Sample Data
This causes the error
									"key": "sampleFile2", 									"type": "file", 									"src": [], 									"disabled": true 								},
This works around the error
								{ 									"key": "sampleFile2", 									"type": "file", 									"src": "", 									"disabled": true 								},

Well spotted! It should likely check for empty arrays, and in that case, just skip them as well.
Thanks for bringing this to my attention!

Apologies for the inactivity on this project.
Due to the inability to properly support this project, the k6 team has decided not to continue its development. The primary reason is that k6 scope has grown significantly with the launch of k6 extensions. The team is prioritizing extending k6 capabilities over the converters.
We suggest you post your issue at api-deck/postman-to-k6. The project is active and maintained on this fork.


Consider Adding Realm to Zephyr Ecosystem

Origin
Realm
GitHub Link
Purpose
Realm is a mobile database that runs directly in phones. Its permissive license (Apache 2.0), size, and development ergonomics make it an appealing persistence layer for other flavors of embedded Linux. The hope is that we can work together to more quickly solve problems by using the next evolution of persistence in resource constrained environments. In addition to being more flexible and natural in the object-oriented paradigm, it also natively supports better performance and security than SQLite out of the box.
Mode of integration
Open to advice here.
Maintainership
@marcussorealheis (I will quickly replace myself with other, smarter folks)
Pull Request
Pull request (if any) with the actual implementation of the integration, be it
in the main tree or as a module (pointing to your own fork for now). Make sure
the PR is correctly labeled as "DNM"
Description
Long description that will help reviewers discuss suitability of the
component to solve the problem at hand (there may be a better options
available.)
What is its primary functionality?
Realm is a lightweight and natural database
What problem are you trying to solve? (e.g., a state store is
required to maintain ...)
Development productivity and state storage. Solving these two problems will unlock all sorts of possibilities.
Why is this the right component to solve it?
Realm is small, easier to use than SQLite, and has a very liberal license
Dependencies
What other components does this package depend on?

build-essential
libcurl4-openssl-dev
libuv1-dev
libprocps-dev
libssl-dev
zlib1g-dev
cmake

Will the Zephyr project have a direct dependency on the component, or
will it be included via an abstraction layer with this component as a
replaceable implementation?
Hopefully the latter.
Revision
Version or SHA you would like to integrate initially
License
Please use an SPDX identifier (https://spdx.org/licenses/), such as
Apache-2.0

How small? A few kilobytes. Realm with no data is mostly a schema and a file system akin to SQLite.

I'm not talking about the size of the database, I'm talking about the size of the engine itself. Zephyr micros have 16KB - 256KB of RAM, you can't compare an embedded micro like this with an SoC that you'd get in a phone which this database is designed for, which is going to have no less than 1GB or 2GB of RAM. If this database engine (I'm pulling a number out of thin air here) needs e.g. 4MB of RAM to do things with a small database, it does not make sense to port it because it would basically be useless.

The thin air number doesn't seem too off for many cases. I thought the range of Zephyr devices was broader than 16KB-256KB. I overestimated Moore's law.
In fact, in my automotive and IoT days, people were exploring Zephyr for boards that were more mini than micro I suppose? It looks like some of the NXP ARM boards are still in the Zephyr mix. Boards in this family are good for a broad swathe of use cases.
I will lean on your recommendation because I'm ultimately here to learn and contribute. I also intend to bring a new wave of supporters because I believe in open source. So, whatever advice or critique, I am all ears. I can further refine the scope of my issue if that would be helpful.

outdated, closing. Please open new issue with updated information if this is still needed.


import fails unable to connect to syslog

(after manually installing the future module)
Trying to import any device from the skabase package results in an error not being able to instantiate the SysLogHandler class. This is most probably due to the rsyslog process not running.
Note that this is happening at class creation time and not at object creation time.
I see two main issues here, the first one being that the system should be robust to a missing syslog. The log handler creationg could be for example enclosed in a try: except: reverting to file logging if necessary, at least as a first solution.
Also we should consider if having a single logger being activated at class creation time is the desired behaviour and what are the consequences of sharing a single logger between all device instances.
In [1]: import skabase

In [2]: from skabase.SKABaseDevice.SKABaseDevice import SKABaseDevice
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
/usr/lib/python3.5/logging/handlers.py in _connect_unixsocket(self, address)
    822         try:
--> 823             self.socket.connect(address)
    824             # it worked, so set self.socktype to the used type

FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

FileNotFoundError                         Traceback (most recent call last)
<ipython-input-2-ba84c39b25f5> in <module>
----> 1 from skabase.SKABaseDevice.SKABaseDevice import SKABaseDevice

/app/skabase/SKABaseDevice/__init__.py in <module>
     14 __all__ = ["SKABaseDevice", "main"]
     15 from skabase import release
---> 16 from .SKABaseDevice import SKABaseDevice, main
     17
     18 __version__ = release.version

/app/skabase/SKABaseDevice/SKABaseDevice.py in <module>
     51 __all__ = ["SKABaseDevice", "main"]
     52
---> 53 class SKABaseDevice(with_metaclass(DeviceMeta, Device)):
     54     """
     55     A generic base device for SKA.

/app/skabase/SKABaseDevice/SKABaseDevice.py in SKABaseDevice()
     58
     59     logger = logging.getLogger(__name__)
---> 60     syslogs = SysLogHandler(address='/dev/log', facility='syslog')
     61     formatter = logging.Formatter('%(name)s: %(levelname)s %(module)s %(message)r')
     62     syslogs.setFormatter(formatter)

/usr/lib/python3.5/logging/handlers.py in __init__(self, address, facility, socktype)
    804         if isinstance(address, str):
    805             self.unixsocket = True
--> 806             self._connect_unixsocket(address)
    807         else:
    808             self.unixsocket = False

/usr/lib/python3.5/logging/handlers.py in _connect_unixsocket(self, address)
    832             self.socket = socket.socket(socket.AF_UNIX, use_socktype)
    833             try:
--> 834                 self.socket.connect(address)
    835                 # it worked, so set self.socktype to the used type
    836                 self.socktype = use_socktype

FileNotFoundError: [Errno 2] No such file or directory

This issue has been resolved. Please refer the screenshot attached.

I can confirm the error doesn't show anymore on a local docker container:
tango@caladan:/app$ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import skabase
>>> from skabase.SKABaseDevice.SKABaseDevice import SKABaseDevice
>>>

ok, let's close this one as I acknowledge this fixes the immediate issue.
I have now opened a new issue as this solution is not the right way to approach the problem, please see issue #105


Get location added

added get_location method in Github.py resolves #65

Thanks for you contribution ❤ .


License?

We should have one, correct?

Closed by https://github.com/jupyterlab/jupyter-renderers/pull/13


Improve ESM import support

fixes #4346

@terkolaka Could you try using knex/knex#fix/4346-types as a dependency version and also change
/**
 * @type {knex}
 */

into
/**
 * @type {Knex}
 */

?
This seems to work on your repro repo for me, would be interested to see if it helps you too.


Bug in send_file with temp files

Hey there,
I don't know if anyone ran into this problem before because it works "by chance" in py2, but in py3 you can't send temporary file with send_file by passing a fp.
The main problems are here https://github.com/mitsuhiko/flask/blob/master/flask/helpers.py#L477 and there https://github.com/mitsuhiko/flask/blob/master/flask/helpers.py#L496.
Under py2 a tempfile.TemporaryFile is given the name '<fdopen>' whereas under py3 it's an integer.
Python 2.7.9 (default, Dec 15 2014, 10:01:34)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from tempfile import TemporaryFile
>>> fp = TemporaryFile()
>>> fp.name
'<fdopen>'

Python 3.4.3 (default, Mar 23 2015, 04:19:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from tempfile import TemporaryFile
>>> fp = TemporaryFile()
>>> fp.name
4

Then when Flask tries to build filename it crashes (trying to concatenate a string and an integer in os.path.join(current_app.root_path, filename)).
Would you consider merging a workaround for this problem? (like setting filename to None if we don't have a string_types for instance)

The whole feature is apparently supposed to be deprecated, so I don't think a fix is worth it. You're supposed to use attachment_filename anyway.
I want to keep this open as a reminder for deprecation though.

Thing is, with this function in its current version, even if you pass an attachment_filename you have this problem. Even "worse" in Py2, it doesn't crash because a temp file has a name, but the mimetype guessing fails.
If the whole function is refactored in the next version I agree that it's not worth fixing it, but if it has to stay for longer...

Yeah I'd say we just refactor the whole thing in 1.0.

Another bug with tempfile.SpooledTemporaryFile when object become a fd (when it exceeds the given size)
    rv = send_file(path, as_attachment=True,  attachment_filename=fname.encode('utf-8'))
  File "/usr/lib/python2.7/site-packages/flask/helpers.py", line 542, in send_file
    os.path.getmtime(filename),
  File "/usr/lib64/python2.7/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/var/www/xxx/xxx/<fdopen>'

Was the temporary file created with delete=True (or rather without delete=False) by any chance?

Spooled has no option delete (https://docs.python.org/2/library/tempfile.html)

I'm looking at this issue at PyCon. Should the deprecation warnings be removed, and the file object functionality stay otherwise?

+1 for removing name guessing. being able to send a file object needs to stay (but w/o name guessing)

@ThiefMaster What should the behavior be when a file object is passed, but add_etags is True (the default). Should send_file() silently not generate the etag? Or should it raise an exception?

Pull Request #1849

This can be closed now, the PR above has been merged.

Done, thanks guys 👍


fix handling of flags 1-3 in tensor shading

pi is an index in the stream and is explained on page 201 of the 32000-spec (however 1-based there), and ps is an index to something in PDF.js. I used the code from flag 0 (which works) to understand which is which. It is also important to understand that for flags 1,2 and 3, the stream is always assigned to the same coordinates and colors. What changes is which "old" coordinates and colors are assigned to what is "missing" in the stream. This is why for these flags, the code is identical except for the assignments in the first "row". (Same principle as in #6304). Note that this change will not improve the lamp_cairo.pdf file, only the two files mentioned in #6305.

/botio-linux preview

To be clear, this fixes two bottom two files from https://github.com/mozilla/pdf.js/issues/6305#issuecomment-127496152. It the tests pass and @yurydelendik is also happy with this, I can follow this up with the tensor-allflags-withfunction.pdf file to add that as a test case.
/botio test

Indeed, and of course you have my permission to use these files.

great. and i see you have switched to using branches for PRs, that will make stuff easier for you. Thanks @THausherr

Perfect. Thank you for the patch.


Adding lrose notebook, params, images

Hi
I believe I have a notebook ready to go, for merging in to the main branch.
Thanks
Mike

@mike-dixon @mgrover1 That is very much looking good to me. Let's see how the main push build is working.


chore(release): v1.1.11 🎉

:robot: I have created a release beep boop
1.1.11 (2023-02-17)
Bug Fixes

deps: bump min simple-artifact-builder version to avoid bug (3fdc9b9)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ehmpathy/simple-artifact-builder/releases/tag/v1.1.11 :sunflower:


[rlwe]: add interface based rlwe.EvaluationKey

Goal: enable user to implement a custom back end key management to load/save evaluation keys and manage memory.

#379


Is there any option to add table

when i add table code it's showing like
 const delta = this.quill.clipboard.convert(
    '

Company	Contact	Country

'
  );
  this.quill.setContents(delta, 'silent');

ReactQuill version
"react-quill": "^2.0.0-beta.4",

@zenoamaro please take a look

Any updates?

Any updates?

I tried the same method but I can't add the table. It encloses all the texts in a p tag. Is there any update?

need this...

Well, @chienweiluo; issue is open for +2 years and no response at all.  Maybe you should consider using another package or find your own solution; since the repo or @zenoamaro's himself looks like dead :/

Thanks for reply, bro. Quill just released 2.0.0 today, I think i will give it a try.

Well, @chienweiluo; issue is open for +2 years and no response at all. Maybe you should consider using another package or find your own solution; since the repo or @zenoamaro's himself looks like dead :/

@chienweiluo if you don’t need HTML for specific needs like custom fonts or text coloring; I prefer to use Markdown instead. No XML based tags, easier to read, easier and faster to parse. There should be good packages for it; or even you can parse it by yourself easily; and more, you can add your own features like text coloring etc by leaving the standartsa and adding some unorthodox custom markings.
Idk but even Github might have shared the markdown package we already use here.


fix action.exec && action.exec()?

should be typeof action.exec === 'function' && action.exec();?
because got an error ("TypeError: action.exec is not a function") on action.exec && action.exec();

Looks good, can you add a changeset by running yarn changeset (this would be a patch change)?

I do apologize. I don't have local repository with yarn/npm installed to make a patch.

I do apologize. I don't have local repository with yarn/npm installed to make a patch.

No worries, I'm sorry because I didn't realize this was just a documentation change; you're all good!


Work with Gorilla Mux?

Does anyone have some snippets to show how to make unindexed work with Gorilla Mux?

Hi @MichaelHipp,
I've added an example showing how this can work with mux here.
Really, the easiest way to use the library is to take standard examples where http.FileServer(http.Dir()) is used and replace http.Dir with unindexed.Dir.
I hope this helps!

I can't get that to work. When I send the browser to localhost:8080 it says localhost redirected you too many times. It appears to be trying to re-write the url to http://localhost:8080//. This is when ../static contains an empty index.html file. If ../static is an empty dir, it says 404 page not found. What am I missing?

Oh how odd - I’m able to reproduce that on my end, too. Definitely not the intended result.
Let me do some troubleshooting and I’ll get this fixed. Thanks for the heads up!

Ok, I just pushed up a couple of changes that should fix the issue. If you could give it another shot, I'd appreciated it!
The expected result when requesting a directory without an index.html file is "403 Forbidden".
Let me know if that fixes the problem for you!

Yes. That does indeed seem to have fixed it. And it's now giving 403 forbidden which is prolly more correct. Thank you so much.


[FEATURE] add padding to the download dropdown

Description
add padding to all generators that have a download dropdown
Screenshots

Are you willing to work on this issue ?
None

@Dun-sin can you assign me this issue

@Dun-sin can you assign me this issue

Definitely, thanks for wanting to contribute, Make sure you follow the rules 👉🏽here👈🏽, else your PR will not be accepted and will be closed. Good Luck

@Dun-sin Can you tell me how to access the download? I see the copy code but I don't see the download

@Dun-sin Can you tell me how to access the download? I see the copy code but I don't see the download

try this:
ctrl + shift + h in vscode
type download png

I would like to work on this under Hacktoberfest please. Thank You!

I would like to work on this under Hacktoberfest please. Thank You!

Definitely, thanks for wanting to contribute, read the issue description properly and understand what it tells you to do also feel free to ask questions, make sure you follow the rules 👉🏽here👈🏽, else your PR will not be accepted and will be closed. Good Luck.

@Dun-sin
Hey! I am not able to see  a download button anywhere in the project. In which options would I be seeing it?

Please tell me in which of the following will I be able to see a Download button as I went through all of them and I couldn't find one. Thank You!

@Dun-sin Can you tell me how to access the download? I see the copy code but I don't see the download

try this: ctrl + shift + h in vscode type download png

@hanzalahwaheed

Yes I am able to see it in the code.
I was asking about the buttons in the actual project. How do I access them?

@Dun-sin Can you tell me how to access the download? I see the copy code but I don't see the download

try this: ctrl + shift + h in vscode type download png

@hanzalahwaheed

Yes I am able to see it in the code. I was asking about the buttons in the actual project. How do I access them?

whatever generator that has it in code, open them in the actual project

That is exactly the difficulty I am facing.  I am not able to figure out which generators have the Download Button. I'm sorry this is getting a little annoying for you too  :)
Please tell me which generators have the Download Buttons. Thank You!

@Dun-sin Can you tell me how to access the download? I see the copy code but I don't see the download

try this: ctrl + shift + h in vscode type download png

@hanzalahwaheed

Yes I am able to see it in the code. I was asking about the buttons in the actual project. How do I access them?

whatever generator that has it in code, open them in the actual project

That is exactly the difficulty I am facing.  I am not able to figure out which generators have the Download Button. I'm sorry this is getting a little annoying for you too  :)
Please tell me which generators have the Download Buttons. Thank You!

@Dun-sin Can you tell me how to access the download? I see the copy code but I don't see the download

try this: ctrl + shift + h in vscode type download png

@hanzalahwaheed

Yes I am able to see it in the code. I was asking about the buttons in the actual project. How do I access them?

whatever generator that has it in code, open them in the actual project

Oh I see the problem , my fault sorry for the confusion it's from my end.
So download only works on Firefox, so unless you are using Firefox, you can't see it.

Oh Okay then! I'll get to work now. Thanks!

That is exactly the difficulty I am facing.  I am not able to figure out which generators have the Download Button. I'm sorry this is getting a little annoying for you too  :)
Please tell me which generators have the Download Buttons. Thank You!

@Dun-sin Can you tell me how to access the download? I see the copy code but I don't see the download

try this: ctrl + shift + h in vscode type download png

@hanzalahwaheed

Yes I am able to see it in the code. I was asking about the buttons in the actual project. How do I access them?

whatever generator that has it in code, open them in the actual project

Oh I see the problem , my fault sorry for the confusion it's from my end.
So download only works on Firefox, so unless you are using Firefox, you can't see it.