Split out keywords from arguments

Should hopefully allow easier processing for compilers. This comes at the expense of them not being in the same order anymore, which is going to make it harder on formatters, but hopefully that'll be okay.
I'm not sure if I want to merge this or not TBH. I'm going to do some measurement next week to determine if the extra pointer on every argument node is worth it.

This comes at the expense of them not being in the same order anymore, which is going to make it harder on formatters, but hopefully that'll be okay.

AFAIK keyword args always come after positional args, so this should not happen, right?
It does for https://github.com/ruby/yarp/pull/1243/files#diff-0a69316d72803cd5ab66cee01ea55bdd2539329d1f7782b3aaf8c8988d642f6b but that's incorrect Ruby source code, so I don't think it matters too much.

I'm going to close this for now. I'm not opposed to doing it, but if we do I want to do this for blocks as well. If we do this we probably also want to change yp_arguments_t to have a pointer to a yp_node_t* that can take a couple of forms, maybe an arguments node, argumentswithkeywords node, argumentswithblock node, etc. More thinking needed.

@kddnewton I was original person who brought up the complexity of having to check last argument and also about having blockpass and block be different things but I feel I should take another pass/look at what code I have for this.  I strongly suspect we can improve over what we have but I also want to reexamine things (I have not looked at that code in a couple of months now).  I would like to perhaps even show how the code would look if we changed design as input.

@eregon the other point of moving block to argument node is to also combine it with block pass argument which right now is maybe last argument of arguments node.


feat(deps): update socket.io dependency

version 1.3.7 installed with the package.json file is 6 releases behind - 1 feature release, and 5 patches. security advisors have been published for older socket.io version

LGTM.

LGTM


MB-14723 fully turn on spectral linting for admin api

Jira ticket for this change
Summary
This turns on the spectral linter for the admin api now that all of the issues with it have been fixed 🎉
This replaces #10152

Messages

:book:
:link: MB-14723

  Generated by :no_entry_sign: dangerJS against 7a93215030aae87ac0c76743acb18697efa0da2c


Canonicalization warning for un-exposed aliases appearing in public types

If I use a type alias in a type annotation for something that is exposed, and that type alias is not exposed, canonicalization should give a warning.
For example, consider this code:
fromStr : Str -> UserId,
fromStr = \str -> @UserId str

UserId : [ @UserId Str ]

If neither fromStr nor UserId is exposed, there's no problem.
If both fromStr and UserId are exposed, that's also fine.
If UserId is exposed and fromStr is not exposed, that's also fine.
If fromStr is exposed but UserId is not...that seems like a mistake! It would mean callers of fromStr couldn't annotate their return values as UserId, because they wouldn't be able to import UserId. I've used some Elm packages where the author forgot to expose a type that appeared in another type, and the remediation was to ask them do a minor release to expose it. (I've also been that author sometimes!)

The rule should be that if I expose something with a handwritten type (including both type annotations like fromStr : Str -> UserId as well as type aliases like User : { userId : UserId }), all type aliases appearing in that type must be exposed as well. If any aren't, they should be reported as canonicalization problems!

Closing as duplicate of https://github.com/roc-lang/roc/issues/4641


bug: include FindgRPC directly.

Update to the latest cpp-cmakefiles release which supports CMake 3.15.
We also include FindgRPC.cmake directly because with CMake 3.16
find_dependency() can no longer find it.
Part of the work for #3032.

This change is

I think this is ready for review now.

Thanks. Do you think we should open a new issue to determine if this was a CMake bug and potentially report it? Even if our code was incorrect, updating shouldn't break compatibility, at least not without a policy warning.

It would be nice to report the issue back, I am not sure how to repro this in a small enough scale.


PyCharm integration

Here's a Pixi variant of my https://github.com/jonashaag/micromamba-pycharm.
Put this into each .pixi/ folder as .pixi/conda.
#!/usr/bin/env python3

import sys
import json
import subprocess
import yaml
from pathlib import Path

PIXI_ROOT = Path(__file__).parent
PROJECT_ROOT = PIXI_ROOT.parent

ENABLE_LOGGING = True
if ENABLE_LOGGING:
    open("/tmp/conda-wrapper-log", "a").write(str(sys.argv[1:]) + "\n")

if sys.argv[1:4] == ["info", "--envs", "--json"]:
    print(
        json.dumps(
            {
                "envs_dirs": [str(PIXI_ROOT)],
                "conda_prefix": str(PIXI_ROOT),
                "envs": [str(PIXI_ROOT / "env")],
            }
        )
    )
elif sys.argv[1] == "list":
    lockfile = yaml.safe_load((PROJECT_ROOT / "pixi.lock").read_text())
    for pkg in sorted(lockfile["package"], key=lambda pkg: pkg["name"]):
        print(pkg["name"], pkg["version"], pkg["build"], "fake-channel")
elif sys.argv[1] == "run":
    assert sys.argv[4] == "--no-capture-output"
    subprocess.run(["pixi", "run", *sys.argv[5:]])
else:
    raise NotImplementedError(str(sys.argv[1:]))

How do you think we could integrate this into pixi itself?
Or should we just put this in the docs?

Maybe as an explicit feature flag in pixi.toml?

I'm not really a fan of that because I think it's user-specific, not project-specific.

What about making it a feature flag in an optional global config file? For example, it could be searched for at ~/.pixi/config.toml (or a different path depending on the OS).

I added the file .pixi/conda, run chmod +x conda and then added a new conda environment with that path to Pycharm 2023.2.5 on MacOS. However, i get this error:

The error is: "NotImplemented: ['create', 'y', 'n', 'my-env-name', 'python=3.11' raise NotImplementedError(str(sys.argv[1:]))

The code snippet needs updating. I have a new version for Micromamba in my repo.

For start, it will be good if we can have "pycharm integration" (and maybe also "vscode integration") section on the documentation that will guide people on how to use pixi with pycharm/vscode.
Later, we can aim for making this integration as simple as possible. (one option would be to ask pycharm team to add formal support for pixi as they currently support conda, poetry, pipenv, virtualenv)

I fixed the broken script. You can find it here: https://github.com/pavelzw/pixi-pycharm
It supports multi-envs, listing envs, listing packages and running stuff.
As of now, I haven't implemented "creating envs" and "installing dependencies" from pycharm yet. But at that point we might want to think about a proper extension instead.

@jonashaag took a look at how feasible it is to create a pycharm plugin for pixi.
It seems like pycharm's plugin api doesn't support custom package managers and you would need to add it to pycharm directly.
Not sure if JetBrains would like this change as then they would theoretically also need to accept PRs for rye, hatch, ... as well.
The only available configurations are the following:

https://github.com/JetBrains/intellij-community/blob/467ba55677a0c5da1de1b1fc14ac699309ec5bb6/python/src/com/jetbrains/python/sdk/add/target/PyAddTargetBasedSdkDialog.kt#L29
https://github.com/JetBrains/intellij-community/blob/master/python/src/com/jetbrains/python/sdk/add/target/PyAddTargetBasedSdkPanel.kt#L100
I created a package that allows pycharm integrations with some hacks. It's not perfect but probably the best we can get without modifying intellij code directly.
It might make sense to talk to maintainers of pycharm and ask if they would be open to us adding pixi support directly in intellij or not.
But for now, I think #974 is enough to close this issue.

FTR: There's also an open issue for the broken pyAddSdkProvider extension point, which is necessary to include a new python interpreter in the pycharm UI.


feat: alternative to set -e

📚 Description
"The objective of this PR is to change the behavior of how an error is detected within a test to mark it as failed.
Currently, the tests detected these errors using return codes along with set -e. The set -e makes a script (the test in this case) interrupt if any execution within the script returns an error code other than 0. This in theory sounds good since if something went wrong, the test execution was interrupted and marked as failed, but in practice, it is not so, since if a line executes several functions, only the return of the last one is counted, therefore for this common situation:
function test_a_non_existing_function_assert_empty() {
  assert_empty "$(a_non_existing_function)"
}

The test no longer failed, since although a_non_existing_function returns an error 127, the assert_empty always returns 0.
With the version of this PR, instead of using the returns of the functions, the error output is used, that is, if any execution within the script writes something in stderr, it will be considered as failed.
This changes the behavior of the runner a bit since now the tests will run to the end even if something failed at the beginning, this might seem strange but right now if one of our tests has 2 assertions and the first one fails, the second one is still executed. However, as soon as something fails within the test, it is completely evaluated as failed (even if valid assertions are given afterward), so we could conclude that we have homogenized the runner's behavior.
Another change that has been made is when printing the tests that fail due to an error, previously the name of the test was printed followed by a "with error X", which went against our error reporting standard, since in the line of the test name we never printed anything else.

Now, since error codes are not used for anything, instead what is done is printing on a new line, indented and in gray (with a format very similar to the rest of the assertions) the actual error that is occurring, therefore if for example a non-existing function is called, literally in the test it will say that it has failed because a non-existing function was called."
🔖 Changes

Use stderr instead of return code to detect errors
Standardize the printing of a test that fails due to an error
Refactor acceptance tests for the new format

✅ To-do list

[x] Make sure that all the pipeline passes
[x] Make sure you have updated the documentation to reflect the changes or new features
[ ] Make sure to update the CHANGELOG.md to reflect the new feature or fix

Closes #187


Investigate CI in multiple cloud providers

What would you like to be added:
CI that runs in various different cloud providers, and across multiple cloud providers.
Why is this needed:
To validate that Submariner works out-of-the-box in whatever hybrid cloud configuration folks want to use.

I think @mangelajo is going to work with @ccamacho to do this using https://github.com/Kubeinit/kubeinit.

I think @mangelajo is going to work with @ccamacho to do this using https://github.com/Kubeinit/kubeinit.

When https://github.com/submariner-io/submariner-operator/pull/974 passes we should be able to close this issue.

When https://github.com/submariner-io/submariner-operator/pull/974 passes we should be able to close this issue.

bump

bump!

I added many many improvements to the automation to get this done, I'm also testing what is shipped in main/master. I'll try to pingo you for a follow up on this. We now support cdk,okd,ocp,rke,k8s, and eks.

Talking on the PR/Issue scrub, this is something we might be able to get budget for once we go Incubation in the CNCF. Also, Red Hat is testing this downstream. Happy to do this eventually, but not something we see a way to do soon.


Sample k8s config using wrong port.

https://github.com/dapr/python-sdk/blob/5904cff8c50aeaf578b870b010b6b8e511765d23/examples/grpc_proxying/deploy/invoke-receiver.yaml#L39
Should the port mentioned here be 50051?

This example indeed seems to be wrong. But instead, please make the app-port 3000. 50051 sounds too similar to the Dapr sidecar gRPC server meant for SDK to sidecar communication.
Happy to accept a PR to change the app-port to 3000 here.

/assign


Carriage Returns '\r' in my parsed headers

I see this as headers when parsing my xlsx file on a Mac.
'Key\rChain'

Obviously somebody hit the Enter key in that excel headers.
Is there a way to only get:
'KeyChain'

?

@nottinhill currently this can be done by dumping without headers and rebuilding the JS objects. If you run the sheet_to_json function with the option {header:1}, it will produce a straight array-of-arrays that you can work with.  Using https://github.com/SheetJS/test_files/blob/master/RkNumber.xlsx as an example, let's make all of the headers lowercase:
> var XLSX = require('xlsx')
> var wb = XLSX.readFile('RkNumber.xlsx')

> XLSX.utils.sheet_to_json(wb.Sheets.RkNumber)
[ { fX100: '0', fInt: '0', sample: '10000000' },
  { fX100: '0', fInt: '1', sample: '1200455' },
  { fX100: '1', fInt: '0', sample: '0.01' },
  { fX100: '1', fInt: '1', sample: '12004.55' } ]

> var aoa = XLSX.utils.sheet_to_json(wb.Sheets.RkNumber, {header:1}); aoa
[ [ 'fX100', 'fInt', 'sample' ],
  [ '0', '0', '10000000' ],
  [ '0', '1', '1200455' ],
  [ '1', '0', '0.01' ],
  [ '1', '1', '12004.55' ] ]

> function fix_header(header) { return header.toLowerCase(); }
> aoa.slice(1).map(function(x) { var o = {}; aoa[0].forEach(function(h, i) { o[fix_header(h)] = x[i]}); return o; })
[ { fx100: '0', fint: '0', sample: '10000000' },
  { fx100: '0', fint: '1', sample: '1200455' },
  { fx100: '1', fint: '0', sample: '0.01' },
  { fx100: '1', fint: '1', sample: '12004.55' } ]

@nottinhill i agree that we could do some sanitization within the util directly, although I'm not sure what other characters should be removed.
@notatestuser @elad any thoughts?

I'm not yet convinced this is functionality that belongs in the library, but maybe I'm missing something. What's wrong with the example you (@SheetJSDev) provided, where standard functions are used to process the data returned from sheet_to_json?

Thanks @SheetJSDev and @elad - I will be able to look into this in 1-2 weeks and provide you feedback as well as more pros and cons.


ci: update semantic version and remove node 14 workaround

ci: update semantic version and remove node 14 workaround
ci: add dependabot conf for github-actions

:tada: This PR is included in version 2.3.1-beta.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.3.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Error Encountered When Performing Cordova Build in donejs Quick Start Guide

Error When Performing Cordova Build in Ubuntu
Environment:
Ubuntu 15.04
Node 4.4.2
Chrome
Steps:
Guide Section Desktop and Mobile Apps.Cordova

Make sure latest version of Android Studio is installed
In the console, run donejs add cordova
In the console, run donejs build cordova

Expected Outcome:
After the installation, we should see the emulator running the Cordova application.
Actual Outcome:
After, the installation, I get an error message.
The error message that I received is this:
sudo donejs add cordova
[sudo] password for starla:
? Name of project for Cordova donejs chat
? ID of project for Cordova com.donejs.donejschat
? What platforms would you like to support (needs SDK installed) Ubuntu
npm WARN package.json<EMAIL_ADDRESS>No repository field.
npm WARN package.json<EMAIL_ADDRESS>No license field.
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs version 3 and before will fail on newer node releases. Please update to<EMAIL_ADDRESS>as soon as possible.
npm WARN deprecated<EMAIL_ADDRESS>this package has been reintegrated into npm and is now out of date with respect to npm
<EMAIL_ADDRESS>node_modules/steal-cordova
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>starla@joe-ThinkPad-E555:~/MEGA/Bitovi_Work/donejs-chat/donejs-chat$ sudo donejs build cordova

<EMAIL_ADDRESS>build /home/starla/MEGA/Bitovi_Work/donejs-chat
node build "cordova"

OPENING: /home/starla/MEGA/Bitovi_Work/donejs-chat/package.json!npm
/home/starla/MEGA/Bitovi_Work/donejs-chat/build.js:26
buildPromise.then(stealCordova.build).then(stealCordova.Ubuntu.emulate);
^
TypeError: Cannot read property 'emulate' of undefined
at Object. (/home/starla/MEGA/Bitovi_Work/donejs-chat/build.js:26:65)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3
npm ERR! Linux 4.2.0-35-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build" "cordova"
npm ERR! node v4.4.2
npm ERR! npm  v2.15.0
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: node build "cordova"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'node build "cordova"'.
npm ERR! This is most likely a problem with the donejs-chat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build "cordova"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs donejs-chat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls donejs-chat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/starla/MEGA/Bitovi_Work/donejs-chat/npm-debug.log
Error: Command npm did not complete successfully
at ChildProcess. (/home/starla/MEGA/Bitovi_Work/donejs-chat/node_modules/donejs-cli/lib/utils.js:37:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

I think steal-cordova only supports emulators for ios and android: https://github.com/stealjs/steal-cordova/blob/master/lib/main.js#L88-L107.
donejs-cordova allows you to select 'ios', 'android', 'wp8', 'windows', 'amazon-fireos', 'blackberry10', 'Firefox OS', or 'Ubuntu'. Should we just remove these other options? I don't know if there's much benefit in letting people build for these other (mostly defunct) platforms.
I also think we could probably improve the Quick Start guide to make it clear that you're selecting the platform that you want to build the app for, not the platform you're building on.
cc @justinbmeyer @chasenlehara

I vote get rid of if it can't be done generically.


Documenting known limitation with NTLM restricted traffic

@msabansal : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#reassign:charwen

@charwen - How would you like to proceed with this pull request? Thanks.

@charwen (refresh notification)

@msabansal @charwen @cherylmc Should this pull request from March 2020 remain open and pending?
Thanks.

@ktoliver This has to be merged.

@ktoliver Kristine Toliver (Aquent LLC) Vendor This has to be merged.

Thanks @msabansal. A member of the content team needs to review the update before the pull request can be merged.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@KumudD @cherylmc @charwen for review
Thanks.

#reassign:cherylmc

Due to the age of this PR, we are closing it. If this is still an issue, please feel free to reopen. #please-close


datasets download error

❓ Questions & Help

ssl.CertificateError: hostname 'ls11-www.cs.uni-dortmund.de' doesn't match 'ls11-www.cs.tu-dortmund.de'
It seems that the downloading site has changed in code, but this change isn't included in provided installation package?

Try upgrading to PyTorch Geometric v1.3. :)

solved, thx :)

How to upgrade PYG?

pip install --upgrade torch-geometric


Use explicit Aws::Map constructor in UploadFileRequest constructor

Fixes the following error when building on Mac <= 10.10, Clang <= 6.0 (issue #141)
[ 90%] Building CXX object aws-cpp-sdk-transfer/CMakeFiles/aws-cpp-sdk-transfer.dir/source/transfer/UploadFileRequest.cpp.o
/Users/zwass/aws-sdk-cpp/aws-cpp-sdk-transfer/source/transfer/UploadFileRequest.cpp:117:63: error:
      chosen constructor is explicit in copy-initialization
UploadFileRequest(fileName, bucketName, keyName, contentType, {}, s3Client, cr...
                                                              ^~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/map:838:14: note:
      constructor declared here
    explicit map(const key_compare& __comp = key_compare())
             ^
/Users/zwass/aws-sdk-cpp/aws-cpp-sdk-transfer/source/transfer/UploadFileRequest.cpp:58:75: note:
      passing argument to parameter 'metadata' here
                                     Aws::Map<Aws::String, Aws::String>&& metadata,
                                                                          ^
1 error generated.

@JonathanHenson Please take a look at this and let me know what you think.

looks good I'll merge in later today.

Bump. Is this still good-to-go to be merged?

sorry for the delay again. I've commited it and it's running the CI gammit. Will push out as soon as I get the all clear.

I pushed this out, it's in tag 0.10.5


Update Hong Kong holidays

Proposed change

Update Hong Kong holidays (massive rewrite, actually).
Type of change

[ ] New country/market holidays support (thank you!)
[x] Supported country/market holidays update (calendar discrepancy fix, localization)
[ ] Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
[ ] Dependency update (version deprecation/upgrade)
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (a code change causing existing functionality to break)
[ ] New feature (new python-holidays functionality in general)

Checklist

[x] I've followed the contributing guidelines
[x] I've run make pre-commit, it didn't generate any changes
[x] I've run make test, all tests passed locally

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

157 of 157 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
11093

Relevant Lines:
11093

💛  - Coveralls

@KJhellico I don't think this is the intended behaviour here:

Yes, now snapshot looks incorrect in the part of displaying observed holidays. I'm working on it.
According to Wiki

1983年起，英女皇壽辰假期由4月21日改為英國官方慶祝日6月第二個星期六，而之後的星期一亦放假。

I translated it as

Since 1983, the Queen's birthday holiday has been changed from April 21 to the second Saturday in June, the official British celebration day, and the following Monday is also a holiday.

That's why Queen's Birthday holiday looks like this. If I'm wrong, please correct me.

Now, with #1769 merged, snapshot looks more realistic.


Make replaceShortcodeTokens modify the input slice

Currently a []byte copy is returned. In most cases this is the safe thing to do, but we should just modify/grow the slice as needed.
It is better that Page.rawContent reflects the content after shortcode expansion, and it is faster and consumes less memory:
benchmark                             old ns/op     new ns/op     delta
BenchmarkReplaceShortcodeTokens-4     7350          4419          -39.88%

benchmark                             old allocs     new allocs     delta
BenchmarkReplaceShortcodeTokens-4     5              1              -80.00%

benchmark                             old bytes     new bytes     delta
BenchmarkReplaceShortcodeTokens-4     4816          1152          -76.08%

Fixes #1516

 You should sign our Contributor License Agreement in order to get your pull request merged.

/cc @spf13
I have tested this green with all of my sites -- and I don't see any downsides with it ... But a second set of eyes is always good.

I have to look a little close on this method's many uses -- will do tonight.

OK, this should be good to go now. There are more cleaning to be done in these parts, but that would have to wait for another time

Merged in b08d9f26ae00b6c55f615ad6b8fc36608e684204


Updated some icon Files

ok

i'm gonna close this because most icons don't need to be updated. it'd take a lot of time importing all of them to discord then deleting the old ones so i'm just gonna close this

I just uploaded all of the icons again because my changes sometimes affects
the file extension too so i hadn't time to sort them out
Aethese @.***> schrieb am So., 19. Juni 2022, 17:48:

i'm gonna close this because most icons don't need to be updated. it'd
take a lot of time importing all of them to discord then deleting the old
ones so i'm just gonna close this
—
Reply to this email directly, view it on GitHub
https://github.com/Aethese/Switchence/pull/26#issuecomment-1159761305,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARVTXKNYE2DBVNAEZHIPHELVP46M5ANCNFSM5V7C5G3Q
.
You are receiving this because you authored the thread.Message ID:
@.***>


Parameterize check extensions

This updates the check validator to that require one of check[:command] or check[:extension] is a string. Tests have been updated to reflect this constraint. This PR is required by https://github.com/sensu/sensu/pull/889

Looks like Travis builds are failing due to Bundler issues with installing codeclimate-test-reporter (0.4.7) on Ruby 1.8.7.

@rmc3 I'm going to fix it and submit a pr. Once merged, you can rebase on master.

Currently waiting to rebase pending merge of https://github.com/sensu/sensu-settings/pull/6

Rebased, build is passing.

@portertech Latest update validates that:

check[:command] is a string, if set
check[:extension] is a string, if set
check[:extension] is not nil, or check[:command] is not nil, but not both.

:+1:


Fixed the android Development Allignment

Fixes Issue
This PR fixes the following issues:
#287

Changes proposed
Alligned the Android development text, added hero image for the same and restructured the android development page in jsx format it was all messed up before.

Check List (Check all the boxes which are applicable)

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots and video

@pradeeptosarkar delete this pr please


Phasing out language version 1

Have we hit feature parity between the two languages yet? so we still need version 1 of the language around? I know that at some point I was talking about the possibility of having multiple languages available, but to be honest, at this point I think it would be better to just concentrate on a single one.

yes there are several basic tests that don't run the same way on both though.
https://github.com/davidedc/livecodelab/blob/master/coffee/languages/livelangv1/code-preprocessor-tests.coffee
try some of them, the ones that you think should work, cause I remember I found a few surprises back then if I remember well.
(If you don't have time I can run and list the ones that I think should work).

I went briefly through (the first third of) the tests and played a bit, I noted down these points (in random order):
(there are a couple of example that use times : with the colon, but if I listed such examples here it's because they seem to give trouble with times without the colon as well)

Math.PI (and Math.*) not supported
trigonometric shortcuts not supported
closure declarations - no arrow notation
comments after declaration on first line gives error turns = 1 // 1 = Möbius strip
crazyRibbon example gives error, not quite understanding what might be bothering it

gridSize = 4 * abs(wave 0.05)
box

https://github.com/davidedc/livecodelab/blob/ce1fccf484fd6de7039ff9531a5a23316ce640b0/coffee/languages/livelangv1/code-preprocessor-tests.coffee#L102
https://github.com/davidedc/livecodelab/blob/ce1fccf484fd6de7039ff9531a5a23316ce640b0/coffee/languages/livelangv1/code-preprocessor-tests.coffee#L114
https://github.com/davidedc/livecodelab/blob/ce1fccf484fd6de7039ff9531a5a23316ce640b0/coffee/languages/livelangv1/code-preprocessor-tests.coffee#L146
https://github.com/davidedc/livecodelab/blob/ce1fccf484fd6de7039ff9531a5a23316ce640b0/coffee/languages/livelangv1/code-preprocessor-tests.coffee#L157

2+2 times
    rotate box

https://github.com/davidedc/livecodelab/blob/ce1fccf484fd6de7039ff9531a5a23316ce640b0/coffee/languages/livelangv1/code-preprocessor-tests.coffee#L293
https://github.com/davidedc/livecodelab/blob/ce1fccf484fd6de7039ff9531a5a23316ce640b0/coffee/languages/livelangv1/code-preprocessor-tests.coffee#L425
https://github.com/davidedc/livecodelab/blob/ce1fccf484fd6de7039ff9531a5a23316ce640b0/coffee/languages/livelangv1/code-preprocessor-tests.coffee#L432

rotate wave
box

https://github.com/davidedc/livecodelab/blob/ce1fccf484fd6de7039ff9531a5a23316ce640b0/coffee/languages/livelangv1/code-preprocessor-tests.coffee#L734

ah cool, thanks for going through these, hadn't had a chance yet myself. I think that actually it's worth my going through the grammar again and doing some work the entire thing now my understanding of stuff is a bit better.

OK, going through these and seeing what needs doing
So version 2 doesn't support object dereferencing, meanin Math.Pi won't work, but it's easily fixable by adding Pi and all the trig shortcuts to the global scope. Currently I don't think we have a need for using . as an object accessor. Would be a bit of work to add to the language, but not too hard if it's something we need.
closures are something that currently aren't handled, but do need to be done. I'll start on that soon as I've implemented it in other languages before so it's not too tough.
comments do need fixing, not sure why they don't work.
Crazy Ribbon won't work for two reasons. The simpler is just that sin isn't a defined function because the trig stuff hasn't been added to the scope. The more complex issue, and one that's in other places, is that even if sin was then the language doesn't support functions calls in expressions that don't use the parenthesis.
for example
pad = 1+abs(2*wave 0.5 )  // invalid
pad = 1+abs(2*wave(0.5)) // valid

functioncalls at the beginning of a line are fine, but not in this case
pretty sure we decided not to go with the colon after times, but that times (using the with or not) does have to be followed by a new line.
also, there's no way the following should be valid, it's really confusing code
a = 2
box a + 3 times rotate peg

Having an expression before times 2+2 times should be fine though and I'll get that fixed.
wave and beat won't work anywhere because they're functions and so in v2 language they need to be invoked with parenthesis.
the ball line box example won't work as I didn't think chaining was meant to work like that. all the chains finish once you have a shape

converging...
I think it's important though (key, really) to omit the parentheses for function calls (both when there are no arguments and for sure when there are), I'm hoping that's in the realm of possibilities? :8ball:

I think I need to have a serious overhaul of the v2 parser and interpreter really. Will start cracking away at it


registry/storage: prevent false sharing in signature fetch

The original implementation wrote to different locations in a shared slice.
While this is theoretically okay, we end up thrashing the cpu cache since
multiple slice members may be on the same cache line. So, even though each
thread has its own memory location, there may be contention over the cache
line. This changes the code to aggregate to a slice in a single goroutine.
In reality, this change likely won't have any performance impact. The theory
proposed above hasn't really even been tested. Either way, we can consider it
and possibly go forward.
Signed-off-by: Stephen J Day<EMAIL_ADDRESS>

The theoretical problem is interesting and either way this implementation is more straightforward and idiomatic.  Was the race detector complaining about the previous use or is the race detector smart enough to detect single memory location changes within a slice?

@dmcgowan The race detector had no problem with it. I've used the original pattern before and it works great. However, with False Sharing, I can't see it not leading to some nasty cache-line invalidation in the CPU cache. We'd really need to make a benchmark to test it out.
I do agree this is cleaner, but it requires an extra goroutine.

LGTM

LGTM


FEA: add EulerNet implementation

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: ZhenTian:x: Ethan-TZZhenTian seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for the contribution! Review comments:

README conflicts
本代码仓只维护代码，避免后续版本变更导致执行不一致问题。建议Runing log放在个人目录，在首页表格里添加benchmark链接，或者push到https://github.com/reczoo/BARS/tree/main/ranking/ctr 。
https://github.com/Ethan-TZ/FuxiCTR/blob/main/model_zoo/EulerNet/src/EulerNet.py#L3  表头需要修改copyright信息

我可以直接在你的fork repo里修改吗？

@zhujiem  没问题朱老师，要不我按您的意见先改一下，之后麻烦您再check一下～

@zhujiem 没问题朱老师，要不我按您的意见先改一下，之后麻烦您再check一下～

已修改完毕

Header中 Copyright (C) 2024 salmon@github 这个是对的吗？

不对，已修改


Additional learning resource for Python

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you @cthare for your contribution and congratulations on your first PR merge to this repo.


Improvement for popup.js

Regarding line https://github.com/newfolder0/chrome-clacks/blob/03020050e7107bce48aaf8604bc7f5f7a153d194/src/popup.js#L15 I would prefer textContent over innerHTML.
Otherwise you may run into trouble if responseHeaders is crafted with HTML inside (think JavaScript). I'm not that familiar with HTTP-Headers, though.

That's a good point, headers formatted as html (though unlikely) would make a mess of things. I'll have a look into it. Thanks :).

Perfect, implemented. Thanks a lot!


The requirement versions are conflicting

Hello!
I'm trying to run a demo, but  opencv 4.0 requires at least Python 3.8, which scipy=1.1.0 doesn't support. Also in the readme it says you're using Python 3.6. How can I fix this issue?

dependencies have been fixed in c5036243556386535c903431a9a8370293fe8a83


Support complex or expressions.

Fixes #57.
This is almost done — it passes a test, but that test has the or at the top level, and thus doesn't exercise one spot in which I left a TODO. More tomorrow, but feel free to skim already, @ncalexan.

Comments addressed, folded and landed: 6ab9320


Move CMPTally and disable unused wallet transaction hash cache

This PR resovles https://github.com/zathras-crypto/omnicore/issues/78: the wallet may still be uninitialized during the first handler calls, which can result in segfaults.

Because the wallet cache is currently only used to cache balances, not populating the cache seemed like the most straight forward solution in this case. If it's going to be used at some point, then there should be a check, whether the wallet is available, and cs_wallet should be locked during the access.

Earlier today the tally unit tests failed, and the investigation revealed: signed interger overflows are undefined behavior and should be guarded against. Even though this shouldn't happen to begin with, an explicit check was added, which also covers the pending balances.

Moving code out of headers is always to prefer.

Right now I mostly follow the strategy: split and seperate, group and merge later.
As mid-term goal I envision a very strict seperation between consensus/non-consensus code, and in the long-term I'd like to move into the direction of packages or a library.

Ahh I was just about to PR a fix for the tx hash cache, nice dude :)  I like the separation of the tally stuff and the overflow check is good for sanity...
Reviewed, looks good to me - OK to merge


Remove unused prev_len argument in Hacl_Hash_SHA2_update_last_* functions

    Ugh. Thanks. Two thoughts:

this argument is unused so conceivably we should be able to ditch that prev_len... can you file a separate issue for that?
you should be using the streaming API directly, rather than using the low-level update/update_last API, shouldn't you?

Originally posted by @msprotz in https://github.com/hacl-star/hacl-star/issues/617#issuecomment-1304617580

Maybe these functions should be dropped entirely (from the public API).

Yeah I think that's the better fix. Also, I read quickly and this update_last which does need the final length, so let's hide these functions underneath the streaming API.

My latest push in #670 hides Hacl.SHA2.Scalar32 behind Hacl_Streaming_SHA2
Now we need to rewire EverCrypt.Hash to use Hacl.SHA2.Scalar32.update and then we're good to go for this.

That latter point was done in #756


Better support for container images with OCI and/or Product Attestor

The OCI attestation currently only works for .tar files output from a docker save command. In a common workflow we first build our images with docker build and the image is create typically in /var/lib/docker filesystem and visible in the docker images command output. It doesn't seem like there is currently a way to easily link the product of docker build to the input of docker save for policy enforcement. I'm not sure how this would work since docker build doesn't produce any files but maybe just tracking the tag and hash of an image as a product?

There are a few ways to handle this.

Use buildkit and output options.  ref:  https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs.

While testing this, I am running into an issue where the tar file just keeps getting bigger.

We can add support for the --iidfile flag.  This writes the containerID to a file that we can use for generating the OCI attestation.  This method will probably have better overall support.

Yeah it seems like option 2 is probably the easiest and most straight forward. For now I've been using iidfile as a poor man's product so I can at least verify inputs/outputs between stages but it would be nice if the OCI attestor would pick up that iidfile and give me all the nice OCI data goodness in my attestation.

#2 is going to be the way forward.  Give me a couple of weeks, and we will get this working.

I'm thinking the most straightforward way to handle this is to look for a output file which contents match sha256:a46e07e964a1f3cfbf8d07e32f9b6f9cb51cee66538bd328ababe9bf843adac0 run a docker image inspect on that identifier

Do we need to inspect the attestation context to check if the docker command was run with the iidfile flag?
@mikhailswift


Add a bot or something similar to handle releases

Feature Request
Currently the releases on the releases tab are being released by Ryan.
A bot or something similar should be created to handle releases

Adding a bot adds another dependency/mailing list/point of failure to the team. It appears easier to keep the releases under a developer on the team (currently myself) for the time being, and move it to another developer at a later date if appropriate.


Pipe character rendered when using TSDoc @link with url and custom link text

TS Template added by @mjbvz
TypeScript Version: 5.0.1
Search Terms

quickinfo
JSDoc
@link

Currently VSCode renders the pipe character (|) as part of the link in a TSDoc comment when using an @link tag with a url and custom link text. Note that this is not an issue when using an @link tag with an internal reference, only with a url.
Expected:

Actual:

Code:
/**
 * A nominal type that we use to links objects together in a way stronger than primitive types will
 *
 * @remarks
 * Found this convention {@link https://michalzalecki.com/nominal-typing-in-typescript/ | here}
 */
type NominalUID = string & { readonly __uid: unique symbol }

I'm not seeing this

Can you try using the "TypeScript nightly" extension to see if that resolves it?

Thanks @RyanCavanaugh, yes when I using Typescript v5.1.0 it does indeed resolve the issue!


Support for force-remove network

network object is reference counted by number of connected endpoints. It is useful for the case of globally scoped networks to make sure network is not inadvertently removed when there are connected containers. But, there are cases (such as forced docker daemon kill) in which the network refcount gets unaccounted for. Hence we need a way to force-remove a network if the user chooses to.

Is this a placeholder or a help-wanted issue?  If it's an issue that call for help, I'm interested to contribute and help. :)

@WeiZhang555 this is currently a place holder issue waiting on @mrjana 's changes to the datastore. Once his changes are in, we will have a better judgement on the complexity of this particular issue.

OK, got it.

this feature is available, closing


Moved Desired and Current headers to rs section

"kubectl get rs" has Desired and Current headers. So moved it from Deployment headers explanation section to ReplicaSet

/assign @kbhawkey

Link GH-20323


Can't connect to Neo4j Aura - Free Tier

I am unable to connect to my Aura DB - which is current without any content.
I am using the neo4j-php-client library. Here is the test code I have, which uses the blog posts for the client library. I used composer to download the neo4j php client library yesterday.
$client = ClientBuilder::create()
                 ->withDriver(
                        'neo4j',
                        'neo4j+ssc://1345dc4c.databases.neo4j.io',
                        Authenticate::basic('neo4j', 'password'),
                        (30*1000))
                ->withDefaultDriver('neo4j')
                ->build();

                $statement = new Statement('CREATE (user {email: $email})', ['email' => 'abc@hotmail.com']);
                $client->runStatement($statement);

Here is the error I am getting:
Bolt\error\ConnectException
Read error
VENDORPATH/stefanak-michal/bolt/src/connection/StreamSocket.php at line 106
I've attached a PDF of the full backtrace.
Bolt_error_ConnectException.pdf

Hello Mahruqs!
Thank you for creating this issue. You have set up the connection to expect a self-signed certificate (ssc), Can you confirm the issue persists if you tell the driver to expect a signed certificate?
You do this by changing the uri from neo4j+ssc://1345dc4c.databases.neo4j.io to neo4j+s://1345dc4c.databases.neo4j.io.
Looking forward to your feedback,
- Ghlen

It appears neo4j there was a small bug when configuring the driver to use self-signed certificates. Thank you for posting the issue. It will be fixed in version 2.3.4. In the meantime, version 2.3.3 will also work with +s instead of +ssc

Hi Ghlen, Apologies for the late reply -- I was traveling yesterday. I tried with just the neo4j+s uri, and am getting another error (I had tried that earlier as well). I had tried just neo4j+s before adding the "ssc" before testing with ssc and was still unsuccessful.
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
VENDORPATH/stefanak-michal/bolt/src/connection/StreamSocket.php at line 64
57         }
58
59         if (!stream_set_blocking($this->stream, true)) {
60             throw new ConnectException('Cannot set socket into blocking mode');
61         }
62
63         if (!empty($this->sslContextOptions)) {
64             if (stream_socket_enable_crypto($this->stream, true, STREAM_CRYPTO_METHOD_ANY_CLIENT) !== true) {
65                 throw new ConnectException('Enable encryption error');
66             }
67         }
68
69         $timeout = (int) floor($this->timeout);
70         if (!stream_set_timeout($this->stream, $timeout, (int) floor(($this->timeout - $timeout) * 1000000))) {
71             throw new ConnectException('Cannot set timeout on stream');
I've attached the error trace as PDF.
SSLCertificateError-neo4j.pdf

@transistive , no sure if you got a chance to see the error I got above, or if you have any additional guidance. Thank you!

I lost track of it as the issue was already closed. I will take a look at it now!

Sadly, I am not able to reproduce the error. I get the message the address is unavailable. Is the aura instance temporarily disabled by any chance?
Everything works when using my own aura instance

I'm so sorry. It was paused for some reason. I'm still getting the same error. I'd be happy to send you the connection info via email if that is okay -- I just got the latest code from github, and am still getting the same error.
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Here is my code:
$client = ClientBuilder::create()
->withDriver(
"neo4j",
"neo4j+s://1345dc4c.databases.neo4j.io",
Authenticate::basic("neo4j", "KZ2jKFhH-k3waoRPrFnewER34tr7gpQ_hbyveZz1rr0"),
(30*1000))
->withDefaultDriver('neo4j')
->build();
           $statement = new Statement('CREATE (user {email: $email})', ['email' => 'abc@hotmail.com']);
           $client->runStatement($statement);

Sorry about pasting the password in code. My bad.
I tried this from one of the other threads, and did not get the OpenSSL error: [https://github.com/neo4j-php/neo4j-php-client/issues/24#issuecomment-765593383].
Is there a way ot add "verify_peer" and "allow_self_Signed" flags into the ClientBuilder:create call?
`
$url = "1345dc4c.databases.neo4j.io";
$conn = new \Bolt\connection\StreamSocket($url, 7687);
$conn->setSslContextOptions([
"verify_peer" => false,
"allow_self_signed" => true,
]);
        $bolt = new \Bolt\Bolt($conn);

       $bolt->init("Test", "neo4j", "<password>");

        // Execute query
        $res = $bolt->run("RETURN 1 AS num, 2 AS cnt");
        // Pull records from last query
        $rows = $bolt->pull();

        var_dump($res);
        var_dump($rows);

`
Result:
res:
array ( 't_first' => 7, 'fields' => array ( 0 => 'num', 1 => 'cnt', ), )
rows:
array ( 0 => array ( 0 => 1, 1 => 2, ), 1 => array ( 'bookmark' => 'f4c803c1-e67c-4473-ab28-0e01ab41c28e:3', 'type' => 'r', 't_last' => 0, 'db' => 'neo4j', ), )

Hello @mahruqs,
It appears we keep missing each other by a few days! I still get the error: php_network_getaddresses: getaddrinfo failed: Name or service not known, is the instance offline again?
It is not possible to immediately change the SSL settings. I am on the fence about allowing this option. But I first want to be able to reproduce it. I have tested it with multiple instances of Aura and have never had this error.
The moment I receive a new instance from you, I will prioritise it because the issue appears very persistent.
Kind regards,
Ghlen

I'm so sorry @transistive . My instance keeps going down since it's the free tier. I'll try to keep an eye on it when i'm online.

Ok, I tested it without any problems on version 2.3.3:

Would you mind scheduling a call with me, so I can look at the crash from your end? If this is a bug, I need to be able to reproduce it.
Please email me at<EMAIL_ADDRESS>with your availabilities if you want to schedule a call.
Thank you for your patience,
Ghle

Hello @mahruqs,
Thank you for the very insightful call. I am asking around internally in Neo4j if they have any experience with the problem. If it appears to be unsolvable, I will make sure there is an option to turn off SSL verification manually.
I am grateful for your patience!

Hello @mahruqs,
Can you confirm you are using windows 10? There appears to be a possible issue there. I will try and reproduce it in a vm.
Can you also ask a colleague in the US if he/she also receives the error? This way we might be able to rule it networking issues.
In the meantime, I will put together a solution to turn off SSL peer verification. But beware, this massively decreases security.
Kind regards,
Ghlen

Hello again @mahruqs ,
Sorry to keep spamming you, but I also cannot reproduce the error on a windows 10 VM. So the most likely options might be a botched openSSL install, a networking issue, or a difference between a VM and a normal installation of windows 10.
I will update the SSL options later today.
Kind regards,
Ghlen

In version 2.3.8 you can now override the SSL behaviour. Can you confirm something like this works?
$config = DriverConfiguration::default()
            ->withSslConfiguration(
                SslConfiguration::default()
                    ->withVerifyPeer(false) //disables peer verification
                    ->withMode(SslMode::FROM_URL()) // looks at the URL to determine the enabling of ssl
            );

$driver = \Laudis\Neo4j\Basic\Driver::create('neo4j+s://localhost', $config);

$client = \Laudis\Neo4j\ClientBuilder::create()
            ->withDefaultDriverConfiguration($config)
            ->withDriver('default', 'neo4j+s://localhost')
            ->build();

Thanks so much for the update Ghlen. I will have some time to test it out tomorrow.  Will keep you posted.

Hi @transistive! That worked like a charm. I am worried about the potential security issues, so will only be using this library for testing the Neo4j database. I'll probably go into production if we do end up using the AuraDB for our product (and only if I am able to securely connect to the AuraDB.
Thanks again for your timely help! Appreciate it. I will close the issue.

Hello @mahruqs,
Thank you for the feedback! Do you have a colleague by any chance who can test it out as well?
I feel quite confident the library will work in production on a standard Linux server, which would alleviate the security concerns.
Kind regards,
Ghlen

Hi @transistive , I don't have any colleague at this time (as I am the sole developer). I will be putting my app up on AWS over the next few weeks. I'll let you know that goes if we do integrate with AuraDB.
Good to hear the library will be secure on a standard linux server -- that's really good to hear. Thank you so much for your help with this. You shoudl be hearing from me over the next couple of weeks.


Grafana phantomjs png rendering failure.

Issue description
When asking grafana to render a graph to a png using a minimal grafana set up (see below) it errors with:
Server side error :(
Failed to render to png

When checking journalclt I get the following error:
Jul 22 19:12:01 grafana grafana-server[268]: 2016/07/22 19:12:01 [render.go:41 RenderToPng()] [E] Failed to render to png:
 fork/exec /var/lib/grafana/vendor/phantomjs/phantomjs: no such file or directory

Steps to reproduce

Add this to your configuration.nix and rebuild

services.grafana.enable = true;

Go to localhost:3000 in your browser
Click the button in the top right corner named [Home]
Click the button labeled [+ New]
Build a graph by clicking [Add Panel] -> [Graph]
Leave the graph editor by clicking back to dashboard
Click on the title of the graph until a pop up box appears. Then click [Share]
Click the button [Direct Link Rendered Image] in the pop up that appears.

Extra Info
When searching through the issues on grafana's github page I came across the follwing issues

windows specific
macos specific
The common theme is that these platforms aren't standard linux machines and they build grafana from source. In both of those issues they close them by saying we need to have a phantomjs binary in /var/lib/grafana/vendor/phantomjs when building from source. When looking at the default.nix for grafana any mention of phantomjs is missing. I would submit a pr adding in phantomjs to the default.nix but I know next to nothing about how golang or how go builds.

Technical details

System: (16.09pre85931.125ffff)
Nix version: (1.11.2)
Nixpkgs version: (16.09pre85931.125ffff)

The fix was committed for this last week and it's available in the latest nixos-unstable channel.

Thanks! Please ping if this isn't fixed on the new unstable, and we'll reopen :)

The fix doesn't fully solve the issue I think we patch phantomjs' dependencies. I now get a png that looks like this:

And when I look through journalctl I see the following error:
msg="PhantomRenderer::renderToPng url [http://localhost:3000/dashboard-solo/new?panelId=1&from=1469433180340&to=1469454780341&width=1000&height=500]"
Jul 25 13:53:04 grafana grafana-server[275]: Error: undefined is not an object (evaluating 'b.$$route.pageClass')
Jul 25 13:53:04 grafana grafana-server[275]: http://localhost:3000/public/app/boot.8ba215a1.js:28:59476
Jul 25 13:53:04 grafana grafana-server[275]: $broadcast@http://localhost:3000/public/app/boot.8ba215a1.js:36:69848
Jul 25 13:53:04 grafana grafana-server[275]: http://localhost:3000/public/app/boot.8ba215a1.js:8:110832
Jul 25 13:53:04 grafana grafana-server[275]: h@http://localhost:3000/public/app/boot.8ba215a1.js:36:36230
Jul 25 13:53:04 grafana grafana-server[275]: http://localhost:3000/public/app/boot.8ba215a1.js:36:36402
Jul 25 13:53:04 grafana grafana-server[275]: $eval@http://localhost:3000/public/app/boot.8ba215a1.js:36:68457
Jul 25 13:53:04 grafana grafana-server[275]: $digest@http://localhost:3000/public/app/boot.8ba215a1.js:36:66970
Jul 25 13:53:04 grafana grafana-server[275]: $apply@http://localhost:3000/public/app/boot.8ba215a1.js:36:68747
Jul 25 13:53:04 grafana grafana-server[275]: http://localhost:3000/public/app/boot.8ba215a1.js:34:61513
Jul 25 13:53:04 grafana grafana-server[275]: g@http://localhost:3000/public/app/boot.8ba215a1.js:35:8417
Jul 25 13:53:04 grafana grafana-server[275]: h@http://localhost:3000/public/app/boot.8ba215a1.js:34:38469
Jul 25 13:53:04 grafana grafana-server[275]: ha@http://localhost:3000/public/app/boot.8ba215a1.js:34:38748
Jul 25 13:53:04 grafana grafana-server[275]: http://localhost:3000/public/app/boot.8ba215a1.js:10:36668
Jul 25 13:53:04 grafana grafana-server[275]: O@http://localhost:3000/public/app/boot.8ba215a1.js:6:1544
Jul 25 13:53:04 grafana grafana-server[275]: K@http://localhost:3000/public/app/boot.8ba215a1.js:6:1173
Jul 25 13:53:04 grafana grafana-server[275]: when@http://localhost:3000/public/app/boot.8ba215a1.js:6:4847
Jul 25 13:53:04 grafana grafana-server[275]: run@http://localhost:3000/public/app/boot.8ba215a1.js:6:3886
Jul 25 13:53:04 grafana grafana-server[275]: _drain@http://localhost:3000/public/app/boot.8ba215a1.js:5:106318
Jul 25 13:53:04 grafana grafana-server[275]: drain@http://localhost:3000/public/app/boot.8ba215a1.js:5:78654
Jul 25 13:53:04 grafana grafana-server[275]:   http://localhost:3000/public/app/boot.8ba215a1.js:36

ping @grahamc @cransom

Thanks!
On Fri, Jul 29, 2016 at 1:50 PM, Graham Christensen <
<EMAIL_ADDRESS>wrote:

Reopened #17182 https://github.com/NixOS/nixpkgs/issues/17182.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/17182#event-739510380, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKJbZ6C0T_r-xRwFDryXPhgMO8XonJaFks5qaj1XgaJpZM4JTDqF
.

Hmm, weird, I have a grafana instance deployed from master a few weeks ago that can generate images for graphs without problems. It was broken before with the new version, that's why I fixed it with febcd39afa6dff017290d3c56b7c545c8e05659b.

Works on latest unstable closing.


docs: Add benchmark results in readme

This PR adds benchmark results on minimemcached, compared to memcached running on docker container.

I think it would be better to add benchmark code and execution command to repo.

I think it would be better to add benchmark code and execution command to repo.

Do you think it would be better to write and share benchmark codes in another repository?

I think there are a few ways.

create a folder in this repo and add benchmark test files.

https://github.com/json-iterator/go/tree/master/benchmarks
https://github.com/goccy/go-json/tree/master/benchmarks

add benchmark test files to this repo's root.

https://github.com/vmihailenco/msgpack/blob/v5/bench_test.go

create another repo for benchmark.

https://github.com/gin-gonic/go-http-routing-benchmark

However the 3rd way is difficult, because you are not a member of our organization.
so I recommand the 1st or 2nd ways.


Metadata Order now ignores Author (seems to be a regression)

I used to put "Author" instead of "Editor" in metadata order in my C++ committee papers:
Metadata Order: Author, This Version, Source, Issue Tracking, Project, Audience

"Author" being the alias for "Editor" for WG21 papers.
Starting about 1-2 weeks ago, this stopped working: now papers that have metadata order with "Author" instead of "Editor" omit the authors entirely.
https://api.csswg.org/bikeshed/?force=1&url=https://raw.githubusercontent.com/brycelelbach/wg21_p2195_electronic_straw_polls/3a6db67ff9aa627e00729bceabafa3af5178cf34/electronic_straw_polls.bs
In the above example, there's no authors listed. Compare that with this version, which was statically generated from the same commit as above in September:
https://wg21.link/P2195
Changing "Author" to "Editor" fixes this problem; the issue is that there's at least a few dozen papers out there that are using "Author" in the metadata order, so it's a bit of a pain to update.

Yeah, that was an intentional change by me to fix #1786, unfortunately. I didn't catch this showing up in JF's papers repository, as far as I remember, so sorry for not being able to give you a heads-up about it.

I think the conclusion here was that this won't be fixed?


GEL Minion with accents on Windows

Affects

OS: Windows (doesn't seem to affect OSX)
Browsers: Seen intermittently on IE9-IE11 and consistently on Chrome. Not tested others.

Description
The current line-height: rem(16px); cuts off the top of accents when an overflow: hidden; style is applied (for use with text-overflow: ellipsis;). Adding line-height: rem(17px); fixes the issue and doesn't seem to cause layout issues across any of the mac browsers (for us anyway).
Screen shots
IE11 Current

IE11 After Fix

Chrome Current

Chrome After Fix

Have you tested this with Thai or Mongolian? Just increasing the line height won't work for those languages.


Add launch box

Initial draft for a launch box. Right now this code serves as a frame enabling how we want to define a launch box (see test_launch_box.cu), but I still need to fill in the templates so they actually do what we want.

@neoblizz can you help me understand the advantage of using template parameters everywhere in place of struct members? I probably don't understand how to fully take advantage of templates here, so I am trying to get a better understanding so I can best flesh out the launch box.
I can see that we wouldn't even need to instantiate an object for a launch box, but why might that be helpful? It at least makes the declarations look very clean.
As a beginner with modern C++, moderngpu's implementation is very confusing to follow.

Overall, I like this version a lot! Super clean so far, I think one thing I'll request you do is mention wherever we need to add future versions when they become available as comments.

Excellent, I'll make those easy changes when I have access to a GPU again. Going from there I still need to...

[ ] Implement fallback launch parameters (I have an idea for this that I need to test).
[ ] Figure out how we can get major and minor version on the host side at compile time (worst case we can set it in the command line using -D).
[ ] (Assuming we want this) Add the ability to specify multiple SM versions for a single launch box, e.g. sm_launch_params_t<a<86, 80>, 16, 64, 2> for sm86 and sm80.
[ ] Find the best way to implement dim3 as a template argument (I checked and it won't work). Probably another struct template, like dim3<x, y = 1, z = 1>.
[ ] Add shared data cache configuration and __launch_bounds__() parameters to the launch box.

I will use this message to track the progress and can add new stuff as it pops up.

[ ]  Figure out how we can get major and minor version on the host side at compile time (worst case we can set it in the command line using -D).

I was just checking on this, you can just use __CUDA_ARCH__, you just need the nvcc compile path for that. How you do that is by wrapping it with #ifdef __CUDACC__ (https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#virtual-architecture-identification-macro)

[ ]   Figure out how we can get major and minor version on the host side at compile time (worst case we can set it in the command line using -D).

I was just checking on this, you can just use __CUDA_ARCH__, you just need the nvcc compile path for that. How you do that is by wrapping it with #ifdef __CUDACC__ (https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#virtual-architecture-identification-macro)

I'm still confused. I'm pretty sure all the code I have written is host code so far, and __CUDA_ARCH__ is not defined in host code, yes? So I don't think it would be available to me here. I understand that __CUDACC__ indicates if the code is being compiled by NVCC, but even when that is defined __CUDA_ARCH__ will remain undefined in the host code as far as I am aware.

First iteration of launch box fallback params
diff --git a/gunrock/cuda/launch_box.hxx b/gunrock/cuda/launch_box.hxx
index 7687a4f..666f159 100644
--- a/gunrock/cuda/launch_box.hxx
+++ b/gunrock/cuda/launch_box.hxx
@@ -59,6 +59,31 @@ struct sm_launch_params_t : launch_params_t<
   enum : unsigned int {combined_ver = combined_ver_};
 };

+// Alias fallback with SM version 0 (which isn't real)
+template<
+  unsigned int block_dimensions_,
+  unsigned int grid_dimensions_,
+  unsigned int shared_memory_bytes_ = 0
+>
+struct fallback_launch_params_t : sm_launch_params_t<
+                                    0,
+                                    block_dimensions_,
+                                    grid_dimensions_,
+                                    shared_memory_bytes_
+                                  > {};
+
+// Easier declaration inside launch box template
+template<
+  unsigned int block_dimensions_,
+  unsigned int grid_dimensions_,
+  unsigned int shared_memory_bytes_ = 0
+>
+using fallback_t = fallback_launch_params_t<
+                     block_dimensions_,
+                     grid_dimensions_,
+                     shared_memory_bytes_
+                   >;
+
 // Easier declaration inside launch box template
 template<
   unsigned int combined_ver_,
@@ -107,18 +132,26 @@ SM_LAUNCH_PARAMS(30)
 template<typename... sm_lp_v>
 struct device_launch_params_t;

+// 1st to (N-1)th sm_launch_param_t template parameters
 template<typename sm_lp_t, typename... sm_lp_v>
 struct device_launch_params_t<sm_lp_t, sm_lp_v...> :
 std::conditional_t<
-  sm_lp_t::combined_ver == TEST_SM,
-  sm_lp_t,
-  device_launch_params_t<sm_lp_v...>
+  sm_lp_t::combined_ver == 0,
+  device_launch_params_t<sm_lp_v..., sm_lp_t>,  // If found, move fallback_launch_params_t to end of template parameter pack
+  std::conditional_t<                           // Otherwise check sm_lp_t for device's SM version
+    sm_lp_t::combined_ver == TEST_SM,
+    sm_lp_t,
+    device_launch_params_t<sm_lp_v...>
+  >
 > {};

+// Nth sm_launch_param_t template parameter
+// Throws an error if the launch box can't find a launch_params_t to use (no fallback and can't find corresponding SM)
+// In that case I'd think we might want to throw our own error somehow
 template<typename sm_lp_t>
 struct device_launch_params_t<sm_lp_t> :
 std::enable_if_t<
-  sm_lp_t::combined_ver == TEST_SM,
+  sm_lp_t::combined_ver == TEST_SM || sm_lp_t::combined_ver == 0,  // Throws a compile-time error (that mostly reads like jibberish) if this line is false
   sm_lp_t
 > {};

diff --git a/unittests/launch_box/test_launch_box.cu b/unittests/launch_box/test_launch_box.cu
index c35fa16..15ba65c 100644
--- a/unittests/launch_box/test_launch_box.cu
+++ b/unittests/launch_box/test_launch_box.cu
@@ -1,17 +1,48 @@
+#include <cstdlib>  // EXIT_SUCCESS
+#include <cassert>
 #include <iostream>

 #include <gunrock/cuda/launch_box.hxx>

 using namespace gunrock::cuda;

-int main(void) {
+void test_fallback() {
+  // Check that the launch box uses the fallback values when appropriate
+  #define EXPECTED_BLOCK 16
+  #define EXPECTED_GRID  2
+  #define EXPECTED_SMEM  4

+  // Get 2 SM versions that are not the device's current one
+  #if TEST_SM == 86  // TEST_SM is a placeholder so this must change
+    #define NOT_CURRENT_SM_1 80
+    #define NOT_CURRENT_SM_2 75
+  #elif TEST_SM == 80  // TEST_SM is a placeholder so this must change
+    #define NOT_CURRENT_SM_1 86
+    #define NOT_CURRENT_SM_2 75
+  #else
+    #define NOT_CURRENT_SM_1 86
+    #define NOT_CURRENT_SM_2 80
+  #endif  // TEST_SM == 86
+
+  typedef launch_box_t<
+    sm_launch_params_t<NOT_CURRENT_SM_1, 16, 64, 2>,
+    sm_launch_params_t<NOT_CURRENT_SM_2, 8, 32, 128>,
+    fallback_t<EXPECTED_BLOCK, EXPECTED_GRID, EXPECTED_SMEM>
+  > launch_t;
+
+  assert(launch_t::block_dimensions == EXPECTED_BLOCK &&
+         launch_t::grid_dimensions == EXPECTED_GRID &&
+         launch_t::shared_memory_bytes == EXPECTED_SMEM);
+}
+
+void test_define() {
   // First template argument signifies the SM version
   typedef launch_box_t<
     sm_launch_params_t<86, 16, 64, 2>,
     sm_launch_params_t<80, 16, 32, 4>,
     sm_launch_params_t<75, 32, 64>,
-    sm_launch_params_t<35, 64, 64, 16>
+    sm_launch_params_t<35, 64, 64, 16>,
+    fallback_t<16, 2, 4>
   > launch_t;

   // They also have a short type name
@@ -19,7 +50,8 @@ int main(void) {
     sm_t<86, 16, 64, 2>,
     sm_t<80, 16, 32, 4>,
     sm_t<75, 32, 64>,
-    sm_t<35, 64, 64, 16>
+    sm_t<35, 64, 64, 16>,
+    fallback_t<16, 2, 4>
   > short_launch_t;

   // SM launch params can also be specified via their named type
@@ -27,7 +59,8 @@ int main(void) {
     sm_86_t<16, 64, 2>,
     sm_80_t<16, 32, 4>,
     sm_75_t<32, 64>,
-    sm_35_t<64, 64, 16>
+    sm_35_t<64, 64, 16>,
+    fallback_t<16, 2, 4>
   > named_launch_t;

   std::cout
@@ -35,3 +68,9 @@ int main(void) {
   << "grid_dimensions:     " << launch_t::grid_dimensions     << std::endl
   << "shared_memory_bytes: " << launch_t::shared_memory_bytes << std::endl;
 }
+
+int main(int argc, char** argv) {
+  test_define();
+  test_fallback();
+  return EXIT_SUCCESS;
+}

[ ]  (Assuming we want this) Add the ability to specify multiple SM versions for a single launch box, e.g. sm_launch_params_t<a<86, 80>, 16, 64, 2> for sm86 and sm80.

I think you need for this is a nested parameter pack.
We can use is partial template specialization of sm_launch_params_t struct, so one version will remain as is (with the exception of moving combined_ver_ at the end of the parameter list), and accept a variadic unsigned int as the last parameter:
template<
  typename block_dimensions_,
  typename grid_dimensions_,
  unsigned int shared_memory_bytes_ = 0,
  unsigned int... combined_vers_,
>
struct sm_launch_params_t {}

If you want that nice inside_t in the following example; sm_launch_params_t<grid_dim, block_dim, shmem, inside_t<80, 70> ...>, you'll have to make another struct called inside_t or whatever appropriate name, and apply variadic arguments on THAT instead of sm_launch_params_t.
On another note, just keep one version of sm_launch_params_t, lets get rid of aliases and choose one version that is easier to call rather than have to upkeep so many. You can rename this one version to whatever is convenient. Also, considering renaming launch_box to launch_configs instead.

On another note, just keep one version of sm_launch_params_t, lets get rid of aliases and choose one version that is easier to call rather than have to upkeep so many. You can rename this one version to whatever is convenient. Also, considering renaming launch_box to launch_configs instead.

Making this todo a separate comment.
Another minor thing is typedef or use unsigned int as bytes_t for shared memory and a similar type name for combined_vers, and rename combined_vers to something more appropriate like architecture_version, etc.

Another minor thing is typedef or use unsigned int as bytes_t for shared memory

I opted for using size_t instead, since it's purpose is to indicate byte size.

Also, considering renaming launch_box to launch_configs instead.

Thinking about it I think the launch_box_t name fits better. launch_configs_t might imply that it would contain multiple objects of type launch_config_t, but they are actually called launch_params_t in our case - unless you would want to change that name too.

I opted for using size_t instead, since it's purpose is to indicate byte size.

I like this better, nice.

Thinking about it I think the launch_box_t name fits better. launch_configs_t might imply that it would contain multiple objects of type launch_config_t, but they are actually called launch_params_t in our case - unless you would want to change that name too.

Ah, then its fine. Stick with launch_box_t.

I just added support for multiple architecture to one set of launch parameters using bit flags for each of the different SM versions. Now the internals of the launch box can be written like this: launch_params_t<dim3_t<16, 2, 2>, dim3_t<64, 1, 4>, 2, sm_86, sm_80>.
The SM versions are stored as one number with each bit representing a different SM versions. The corresponding bits can be seen in sm_flag_t.
To check if the SM version we are compiling for is set in the flags...

Convert the SM_TARGET macro to the enum flag using token pasting macros, defined as SM_TARGET_FLAG
AND the SM_TARGET_FLAG with all the launch parameters' sm_flags here and check if the value is 0 or not.

Changed it so you can OR the flags in the launch_params_t template instantiation


Anaconda/windows + 3.6 + basemap issue

I know this is not necessarily supported but I just updated to the newest Anaconda version : 4.3.14 with python 3.6 and I also installed the latest version of Visual Studio on Windows 10 OS. I installed
basemap‑1.1.0‑cp36‑cp36m‑win_amd64.whl
from http://www.lfd.uci.edu/~gohlke/pythonlibs/
and it does not work. . Any help would be appreciated. Here is the error I'm getting:
C:>pip install C:\Users\cmaur\Downloads\basemap-1.1.0-cp36-cp36m-win_amd64.whl
Processing c:\users\cmaur\downloads\basemap-1.1.0-cp36-cp36m-win_amd64.whl
Collecting pyshp>=1.2.0 (from basemap==1.1.0)
Using cached pyshp-1.2.10.tar.gz
Collecting pyproj>=1.9.3 (from basemap==1.1.0)
Using cached pyproj-<IP_ADDRESS>.tar.gz
Complete output from command python setup.py egg_info:
using bundled proj4..
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\msvc.py", line 474, in init
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\cmaur\AppData\Local\Temp\pip-build-ghvsa3dq\pyproj\setup.py", line 72, in
objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
File "C:\Anaconda3\lib\distutils_msvccompiler.py", line 304, in compile
self.initialize()
File "C:\Anaconda3\lib\distutils_msvccompiler.py", line 197, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\msvc.py", line 170, in msvc14_get_vc_env
File "C:\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\msvc.py", line 767, in init
File "C:\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\msvc.py", line 477, in init
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

I am not a windows expert, but I think you need to match the version of
Visual Studio to the version used to build the python distribution (as
opposed to simply "the latest version"). The error message says that you
need version 14.0.
On Wed, Mar 15, 2017 at 11:28 AM, cmaurer7<EMAIL_ADDRESS>wrote:

I know this is not necessarily supported but I just updated to the newest
Anaconda version : 4.3.14 with python 3.6 and I also installed the latest
version of Visual Studio on Windows 10 OS. I installed
basemap‑1.1.0‑cp36‑cp36m‑win_amd64.whl
from http://www.lfd.uci.edu/~gohlke/pythonlibs/
and it does not work. . Any help would be appreciated. Here is the error
I'm getting:
C:>pip install C:\Users\cmaur\Downloads\basemap-1.1.0-cp36-cp36m-win_
amd64.whl
Processing c:\users\cmaur\downloads\basemap-1.1.0-cp36-cp36m-win_amd64.whl
Collecting pyshp>=1.2.0 (from basemap==1.1.0)
Using cached pyshp-1.2.10.tar.gz
Collecting pyproj>=1.9.3 (from basemap==1.1.0)
Using cached pyproj-<IP_ADDRESS>.tar.gz
Complete output from command python setup.py egg_info:
using bundled proj4..
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\msvc.py",
line 474, in init
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\cmaur\AppData\Local\Temp\pip-build-ghvsa3dq\pyproj\setup.py",
line 72, in
objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
File "C:\Anaconda3\lib\distutils_msvccompiler.py", line 304, in compile
self.initialize()
File "C:\Anaconda3\lib\distutils_msvccompiler.py", line 197, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\msvc.py",
line 170, in msvc14_get_vc_env
File "C:\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\msvc.py",
line 767, in init
File "C:\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\msvc.py",
line 477, in init
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is
required. Get it with "Microsoft Visual C++ Build Tools":
http://landinghub.visualstudio.com/visual-cpp-build-tools
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/matplotlib/basemap/issues/345, or mute the thread
https://github.com/notifications/unsubscribe-auth/AARy-KLFoy4eJkW0WGvTAa1KkujwzkIgks5rmAOzgaJpZM4MeGua
.

Basemap now depends on pyproj, Try conda install -c conda-forge pyproj=<IP_ADDRESS> or use the wheels from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyproj, then install basemap again.

The package from http://www.lfd.uci.edu/~gohlke/pythonlibs/
worked once I installed the 2015 Visual C++ Build Tools from
http://landinghub.visualstudio.com/visual-cpp-build-tools
Download the package and use:
pip install putYourPathHere\basemap-1.1.0-cp36-cp36m-win_amd64.whl
My mistake was thinking installing Visual Studio 2017 would solve the problem.
Thank you for your help.

Glad you got that sorted out!


OT_AUTHENTICATION_ERROR: Invalid token format (1004)

I am getting a 1004 error when trying to run the opentok api on the server, it is running fine on the localhost but when i ran the same code on the server, it gave me this opentok_authentication_error.
I have checked the apikey and serverkey multiple times and they both are correct, and the session id is also the same.
I can publish and subscribe sessions on the localhost, everything is working fine there but when i uploaded my website on the server and ran it their it gave me this error.
I've also checked the token value generated as well and it is the same which is being generated on the opentok website.
For frontend, I am using angular.js, I dont know what I am doing wrong and when it is working fine on localhost why is giving this error when running on a server.
server.js
   Opentok = require('opentok');
   var OTConfig = require('./config/otconfig');
   var opentok = new Opentok(OTConfig.apiKey, OTConfig.secretKey);
   var OT = require('./routes/opentok')(opentok, app);

routes/opentk.js
 var OT_config = require('../config/dbconfig');
 var express = require('express');
 var router = express.Router();

  module.exports = function(opentok, app) {

  app.post('/opentok/join', function(req, res) {

    var token,
    sessionId = req.body.ot_session,
    tokenOptions = {};

tokenOptions.role = "publisher";
tokenOptions.data = "username=" + req.body.name;
tokenOptions.data += "courseId=" + req.body.course;
tokenOptions.data += "role=" + req.body.role;

// Generate a token.
token = opentok.generateToken(sessionId, tokenOptions);
res.send(token);
 });
}

controller.js
  var opent = opentokService.generateToken(sessionId);
    opent.then(function(data) {
        $rootScope.token = data.data;
    });

opentok service
  return {
        generateToken: function(id) {

            let info = {
                name: $rootScope.username,
                id: id,
                role: $rootScope.role,
                ot_session: $rootScope.sessionId
            }
            return $http({
                method: 'post',
                url: '/opentok/join',
                data: info
            });
        }
    }

I am getting the token value using an http function from the server, and its value was not getting parsed out of the http function's scope


Add Extraplanetary Launchpads - No More Production from SpaceDock

This pull request was automatically generated by SpaceDock on behalf of theRagingIrishman, to add Extraplanetary Launchpads - No More Production to CKAN.
Mod details:
name = /mod/1085/Extraplanetary%20Launchpads%20-%20No%20More%20Production
author = theRagingIrishman
abstract = This gets rid of some useless stuff in Extraplanetary Launchpads
license = Released to the public domain
Homepage =
description = This mod will remove all Extraplanetary Launchpad parts related to the production chain of RocketParts ie tanks, drills, refineries but will keep all parts related to the actual building of Rockets.
WARNING: If you don't have MKS or Kerbidan Dynamics or some other mod that replaces the production line, this mod will potato EL and make it useless.
Please direct questions about this pull request to theRagingIrishman.

That should do it :)
Put UKS as a suggest since it's one of many options but I couldn't find whatever Kerbidan Dynamics is so I didn't add that.

I think KeridianDynamicsVesselAssembly is what they mean. Max KSP 1.1.3

Added it in the case of it becoming updated

A lot of effort for one config file! Merged with thanks!


fix: remove package folder

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

GitHub release
1.0.1
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


stats:handle main thread in merge

Signed-off-by: Rama<EMAIL_ADDRESS>Description:
Handle main thread in merge, runOnAllthreads does not call it on main thread.
Risk Level: Low
Testing: Automated
Docs Changes:NA
Release Notes:NA

@mattklein123  can you PTAL?

@ramaraochavali does this fix the NaN issue? Or is there more to it?

@mattklein123 yes. It does fix the Nan issue. The only time it shows now Nan if histogram has recordedValue but not yet merged case. So during the flush interval if a histogram has been newly created and recorded with a value, it's used will be true but since it has not been merged yet, the ParentHistogram will not have the data - so will show Nan during that brief. After a histogram has been at least merged once, it shows correctly. I think it should be fine. WDYT?

@ramaraochavali to fix the inconsistencies here is what I would do: have the used() function on the parent histogram keep track of whether it was ever merged. If it was never merged don't consider it used(). This has the added benefit that you don't need to iterate through each TLS child to determine if it was used on every merge (just until it gets merged). I think that will fix both cases?

@mattklein123 yes, changing the used() logic to consider merge would solve both the inconsistencies. I was thinking the same but was little hesitant to change the used() semantics. Thinking further, I think it makes sense to do that. Changed accordingly, PTAL.

@ofek This should address your issue of showing Nans in some histograms with usedonly. Sorry for the trouble.

Thank you!


request media url failed

branch swift2.0, request a media such as http://img4.douban.com/lpic/s3863556.jpg in simulator throw an error! but on ipad did not have this problem. In master banch, it works well!

You're running into ATS. You can't use the HTTP protocol directly out of the box in iOS 9. Check out this link to resolve your issue.
Instead of creating a support issue in Github, please open a question on Stack Overflow and tag Alamofire. The Alamofire community is very helpful and supportive. Stack Overflow is the best place to get your question answered quickly and correctly.

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.


collection2 and crud objects

Hi,
I know collection2 is experimental at the moment. But I wanted to report that defining crud objects in the input json generates SimpleSchema fields containing:
type: [Object],
blackbox: true

The forms appear to work but it lacks the detail in the schema.

Thanks! :+1:


Can we save the composite protein after molecular docking instead of viewing it directly?

I run dockstring on the SSH connection terminal, but the remote end cannot see the molecules very well after opening pymol, so I hope to save the products after docking the molecules and view them later on the local computer.

Hi @TuTuSklmq , I think you can do one of two things:
1: use pickle
from dockstring import load_target
import pickle

target = load_target('DRD2')
score, aux = target.dock(smiles)
with open("aux.pkl", "wb") as f:
  pickle.dump(aux, f)

Then, locally, with dockstring imported
... same imports as above

target = load_target('DRD2')
with open("aux.pkl", "rb") as f:
  aux = pickle.load(f)

target.view([aux['ligand']])

2: forward X instance
If you run ssh -X host instead of ssh host it should allow you to open graphical applications on host, including pymol.
Google "X11 forwarding" for more instructions on how to handle this.
Hope this helps 😃

I am glad to receive your reply, but I tried the first method and found that after saving as a pkl file, I cannot transfer the file to my local computer. It shows 'can not create local file', which is something I cannot solve.
ROSA   MULTIFLORA
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "dockstring/dockstring"                                                                                @.>;
发送时间: 2024年3月21日(星期四) 晚上6:11
@.>;
抄送: "ROSA<EMAIL_ADDRESS>主题: Re: [dockstring/dockstring] Can we save the composite protein after molecular docking instead of viewing it directly? (Issue #170)
Hi @TuTuSklmq , I think you can do one of two things:
1: use pickle
from dockstring import load_target import pickle target = load_target('DRD2') score, aux = target.dock(smiles) with open("aux.pkl", "wb") as f:   pickle.dump(aux, f)
Then, locally, with dockstring imported
... same imports as above target = load_target('DRD2') with open("aux.pkl", "rb") as f:   aux = pickle.load(f) target.view([aux['ligand']])
2: forward X instance
If you run ssh -X host instead of ssh host it should allow you to open graphical applications on host, including pymol.
Google "X11 forwarding" for more instructions on how to handle this.
Hope this helps 😃
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

I am glad to receive your reply, but I tried the first method and found that after saving as a pkl file, I cannot transfer the file to my local computer. It shows 'can not create local file', which is something I cannot solve.

Transferring files to your local computer is not something I can help with unfortunately. I would personally use scp or rsync to move files. I suggest you search for documentation for these programs to try to resolve your issue. Good luck!

I'm tempted to bother you again, I found that there was an error when reading the pkl file that caused my kernel to crash, I tried changing the part of the target.py file about the dock, but the output didn't change anything after changing the file
I would appreciate it if you would be willing to help me, so I'm asking for your help if there's a way to save and export the pdb file to the path I want.
A request for help from a recent college student
ROSA   MULTIFLORA
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "dockstring/dockstring"                                                                                @.>;
发送时间: 2024年3月21日(星期四) 晚上6:11
@.>;
抄送: "ROSA<EMAIL_ADDRESS>主题: Re: [dockstring/dockstring] Can we save the composite protein after molecular docking instead of viewing it directly? (Issue #170)
Closed #170 as completed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

so I'm asking for your help if there's a way to save and export the pdb file to the path I want. A request for help from a recent college student

@TuTuSklmq I can't really provide support for issues not related to dockstring, I'm sorry.
Also, to be perfectly honest, I think your request is a little bit selfish. If you think for just a moment about what you are asking me, you obviously have not provided enough detail for me to help you.  How exactly do you expect me to help you? Should I ask you bit by bit for information to slowly narrow down your issue? I don't have time for that. Generally, if you want free help from people on the internet, you should provide all the information up front to make it easy for people to help you...


improve loading state with react loader spinner plugin

Plugin to use:
https://mhnpd.github.io/react-loader-spinner/docs/components/rotating-lines
Currently we have "loading" text in UploadComponent.tsx file

To implement:

I did it! I improved the loading state as you said.
However, I forgot to delete the .env file I created for testing purposes (sorry about that).
Please let me know if I did anything else wrong, this was my very first attempt to contribute to an open-source project.
Your project is really cool!

@henriquebuzon Thanks a lot for your contribution! 🙏🏻
Here are a couple of my suggestions 💡 to help you with future open source contributions:

Before working on any issue, please comment on the issue asking for assignment. Ex, comment: "I would like to work on this". And if the project owner assigns you with the issue, it assures that your work will get reviewed. Otherwise someone else might also be working on the same issue and your effort will have a chance to get wasted

Regarding the .env file: you should read a bit more about how to uncommit sensitive data at: https://www.freecodecamp.org/news/how-to-uncommit-sensitive-files-from-git/

In this case, it was just a public key. So I didn't want to bother you much. But in future if you land with such problems: you should know how to not just delete the file. But also how to delete the change from git history. For security reasons. Because, although you deleted the file: I can still access your key from git history at: https://github.com/bgwebagency/restoreportraits.com/commit/60c3de07591572eec5396d0eb7b5d54a9644ecb1
So, you should learn how to remove it from git history as well.
I hope that helps.
Feel free to look at my other open source projects. I have issues in few of them that might help you gain some more experience.
And, If you want to learn how I built this AI application, I have a complete in depth tutorial on how I built https://github.com/bgwebagency/redesigner.io at: https://youtu.be/4YXUGuo9OM4
Happy Coding! 👨🏻💻

Deployed to Prod!
Working fine!


Use encodeURIComponent to encode get parameters in multimatch.js #3736

Related issues

closes #3736
Short description and why it's useful

Instead of using hardcoded values we can use encodeURIComponent in
https://github.com/DivanteLtd/vue-storefront/blob/develop/core/lib/search/adapter/api/elasticsearch/multimatch.js#L8
Screenshots of visual changes before/after (if there are any)

Which environment this relates to
Check your case. In case of any doubts please read about Release Cycle

[x] Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
[ ] RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
[ ] Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

[x] No upgrade steps required (100% backward compatibility and no breaking changes)
[ ] I've updated the Upgrade notes and Changelog on how to port existing VS sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change
Contribution and currently important rules acceptance

[x] I read and followed contribution rules

@adityasharma7 Thanks for PR! Could you please change base to the release/v.1.11 ?

Thanks @andrzejewsky for the review! I have created a separate PR for release/v1.11.
https://github.com/DivanteLtd/vue-storefront/pull/3742


Mesh: Add a helper method to draw a mesh given a render pass id

I've added Mesh.renderWithRenderPassId to make it easier to render an entire mesh without having to loop through sub-meshes by hand. If you provide a render pass ID, this is a useful method for rendering a mesh multiple times in a frame.
In the past, I used to reply to forum posts, when a specific rendering effect required a mesh to be rendered multiple times per frame, that the mesh needed to be cloned. In fact, using render pass IDs solves the problem neatly: simply create a new render pass ID and use it to assign the material you want to use to render your mesh a second time! The helper method simplifies this scheme by allowing you to perform the additional rendering in a single call.
For example

Mesh cloning: https://playground.babylonjs.com/#QDAZ80#207
Use of a render pass id + helper method: https://playground.babylonjs.com/#QDAZ80#506

I'd have preferred to call it render, but this method already exists (and draws a sub-mesh)...
This PR also makes a small change to Tools.FloatRound. I've checked that Math.fround is supported by all the browsers we're targeting (it wasn't supported by IE11 only, for which we dropped support some time ago), so it's a small performance improvement to remove the if condition.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/14371/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14371/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14371/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/14371/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/14371/merge
https://gui.babylonjs.com/?snapshot=refs/pull/14371/merge
https://nme.babylonjs.com/?snapshot=refs/pull/14371/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/14371/merge#BCU1XR#0


Move new_project.zip into seperate repository

Because of Git is not good at handling binary blobs and it is not easy to examine the content of new_project.zip without downloading and unzipping it, I suggest to put the contents of it into a seperate Git repository.
Therefore a Cargo.toml file would be added and new_project is a full Cargo project.
The amethyst new command would
(a) use the GitHub API, or

no need for git installed (git2-rs crate requires cmake installed which is not on most Windows  machines e.g.)

(b) git clone the repo, or

independence of GitHub

I would suggest (a).
When the project would move in some (probably far) future, changing it would be fractional.

Copied from Gitter at April 2, 2016 7:42 AM for records:

I think that's a good idea overall to have the new project standard be in a non-binary file, but I disagree on a few points.

I don't think that should store an actual Cargo.toml inside the template project. I thought that was decided a while ago after some Gitter discussion that we should generate a real Cargo project by calling into actual Cargo and then applying changes on top of that.
I don't believe we should have to connect to the Internet to generate a new project. That seems a little overkill IMO. Once amethyst_tools is installed, it should work on your machine as-is without having to download further data that could be more efficiently stored locally.

amethyst new should not connect to the internet, therefore I suggest using the template as submodule within the tools repo.

What should we call this repository? Perhaps amethyst/project_template or similar?

This seems good.

I think this can be closed with #32 being merged.


Suggestion: When stopping the fake location, can the map focus stay at the lastest fake position instead of immediately returning to the current location?

If I want to move the fake location a certain distance from the current fake position, I need to stop the fake location first. However, at this point, the map focus immediately returns to the current position, and finding the original location on the map takes a long time. Therefore, is it possible to maintain the current state of the map when the stop button is clicked? If the user needs to return to the current position, they can simply click the location button in the upper right corner. This would be very convenient for users who need to reposition themselves on the current map.

Hello, this is an issue with the app's UI that I am aware of but didn't yet find the time to fix. To be honest, I have a lot on my plate lately, so I won't have the time to fix this any time soon. However, if you are up for the task, you are more than welcome to open a pull request and fix it. After a code review - I'll be happy to merge it into the codebase for the benefit of everyone who uses XposedFakeLocation :)


Adds rex.W prefix encoding of J^cc on x86

Previously ghidra could not parse the following bytes: 48 0f 85 05 00 00 00 (jne 0xc); note the 48 rex.W prefix which appears to be a no-op.

I'm not knowledgeable about rex.W in general or why it appears to be a nop for Jcc's, however I've tested this and it seems to work. Let me know if something's wrong in the patch or in my description of the patch.


help

Why I've inherited the Mapper Model using the runtime obj. It is time to get the name of the class of classForCoder method, obj. ClassForCoder the return value is nil,

@zhanghongdou, please provide us how to reproduce the bug and what you expected.

Obj is here I enclosed the inheritance in the model mapper, I meant to get obj‘s class by runtime , and then get all the attributes, but in the use of obj. ClassForCoder, returns nil

This is the obj’s class

My English is not very good, hope you can understand me, thank you

@zhanghongdou Thank you for providing me a detail :smile:

class_copyPropertyList only works with Objective-C compatible properties.
Double? cannot be used in Objective-C. (But Double can be used in Objective-C)
Use NSNumber? to do what you want.

Thank you, I'll try it according to your opinion

When my Model  just like this picture, I use the method ：
var outCount: UInt32 = 0
Let the properties = class_copyPropertyList (obj. ClassForCoder, & outCount)
is able to obtain the model of a class, at the same time can get all his property, but if my model is inherited from the Mapper can't achieve what I want

@zhanghongdou have you tried this?
class InvestRecordListModel: NSObject, Mappable {
  ...
}

No, not yet. Let me try

I'm sorry, just a little thing, I tried once is available
According to the following way：
class InvestRecordListModel: NSObject, Mappable {
...
}

Thank you for your help, should be the cause of my side, I again carefully look for the reason, thanks again

@zhanghongdou Sounds great! Could you please close this issue? :tada:

Try my best to solve it, ha ha