Upgrading the go version in build files

What this PR does / why we need it:
Upgrading the go version in build files to 1.20 to fix the vulnerabilities
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Checklist:

[ ] Fixes #
[ ] Labelled this PR & related issue with documentation tag
[ ] PR messages has document related information
[ ] Labelled this PR & related issue with breaking-changes tag
[ ] PR messages has breaking changes related information
[ ] Labelled this PR & related issue with requires-upgrade tag
[ ] PR messages has upgrade related information
[ ] Commit has unit tests
[ ] Commit has integration tests

go.mod also needs to be updated!


Images

The units for height/width in expo/RN aren't pixels. They're dimensionless, which puts an extra complication on how big we need to save or serve images.
TODO: Decide on size/quality images to serve for in-feed/fullscreen/thumbnail/avatar scenarios

Cloudinary has a couple of ways to index an entire folder
https://support.cloudinary.com/hc/en-us/articles/202521082-How-to-list-all-images-within-a-folder-
I'd like to take advantage of that in two ways:

Common Images (SGs tend to repost the same stuff over and over again, and supporting this behavior in software will save us some space on our Cloudinary free tier and make the admins' lives easier)
Player Images. We want to use the Roster/Player bio features to tell a story about our club. To pull that off, we'll need to order photos. Either we keep a sequential list in our own database and implement something to reorder them, or we just grab everything in the player's image folder and alpha sort (and give a maintainer access to Cloudinary to rename them)

TODO: Figure out how captions/photo credit work. Can we/should we store these in image metadata? in the database?

Proposed file structure (undescore/dash/camel naming conventions TBD)

_common*1
channels/{channel._id}_avatar.png
channels/{channel._id}_header.png ({channel._id}_hero.png? {channel._id}_background.png?)
feed/?*3
foes/{foe._id)_logo.png
player_thumbnails/{player._id}_thumbnail.png
players/id/*2

*1 - store path, return index of subfolders/images
*2 - store path, return index of subfolders/images, reverse sorted
*3 - How far do we want to break down the folders for feed images?

feed/yyyy/mm/{feeditem._id}/{cloudinary_id}.png
or
feed/yyyy/mm/dd/{feeditem._id}/{cloudinary_id}.png

Does anyone know of a great RN image viewer control that behaves like FB?
Plus, how do we view them when not in fullscreen mode?

The post creation part of all this is going to be a nightmare

Leaving this open until @shortnd confirms folder structure is in a place where we are all happy with it

@galenriley thoughts on the folder structures that has already been in uses.. they are close to what you had above but some have been slightly modified.

We have only been using the feed images so far, and one item in channels.
Feed works very well.
In theory, we'll have player photo albums coming in the app eventually,
though that may be shuffled in favor of using phone local storage to cache
data. Are y'all using player photos widely? (I have an album on imgur that
I reference by editing the database directly. Was waiting on the go-ahead
to use the admin tools for this purpose.)
What are y'all doing with images so far? We're using very little of our
credit balance with only the feed.
-G
On Thu, Jun 4, 2020, 3:46 PM Collin OConnell<EMAIL_ADDRESS>wrote:

@galenriley https://github.com/galenriley thoughts on the folder
structures that has already been in uses.. they are close to what you had
above but some have been slightly modified.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Chattahooligans/hooligan-hymnal-app/issues/62#issuecomment-639077272,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEFIB5LLEPGBNZPD3VTJ5TRU72YBANCNFSM4KOVBZRA
.


Fix logic in 32-bit architecture check

Closes #166.

Thanks for working on this @ktbarrett
Is there a way we can test this by updating some of the examples that run on CI ?

@goanpeca I'll look into adding some CI checks for other architectures. I see you have the checks oriented around the README examples, would you like some additional documentation added to the README?

Absolutely :)
We will move that to a docs site eventually

Also could you point this PR against the develop branch? And not the master one?
Thanks!

Any chance of getting this merged soon?

Apparently I don't know anything.

@ktbarrett thanks for working on this!

Apparently I don't know anything.

You need to compile the TS file into JS to be able to see any actual changes run on CI. See the the steps here:
https://github.com/conda-incubator/setup-miniconda/blob/master/CONTRIBUTING.md

https://github.com/conda-incubator/setup-miniconda/pull/168/checks?check_run_id=2319868097#step:3:19

@ktbarrett since the 32bit installers are old, they might be using and old conda by default that does not provide the conda executable inside a condabin folder, but on a bin folder.
/usr/share/miniconda3/condabin/conda you will need to update the code accordingly where we define where to look for conda executables.
Thanks!

@ktbarrett its turtles all the way down, now you see why adding support for this was on hold :)
So conda init is a command we rely on for correctly initializing conda, so in the 32 bit installer the conda that comes bundled does not provide that option, which means we wont be able to properly activate environments :-|

Ideas @bollwyvl ?

I think the first version to offer conda init and $CONDA_ROOT/condabin was 4.6.0. At least it looks like that from the release notes.
We can check which version is trying to get installed and error out if <4.6. Maybe there are other rough edges down there, but we can start with this.
cc @chrisjbillington @ktbarrett

closing in favor of #189.


Filter Resolver fix for models with custom resolver class + Test fix for silent mode disabled

fixed model resolution for default Resolve class
fixed test when purity.silent = false throws error

@abbasudo  got error when in config silent set to false during restriction test so made a fix on test with turned off silent too.
another issue I solve during custom resolver feature, since OrFilter calls Resolve::class (which is correct) so made sure model is resolvable if requested through  Resolve::class

OrFilter should be calling the replaced resolver class. No need for defaultFilterResolverClass.

defaultFilterResolverClass variable is redundant and should be removed.


Failed to verify username

Good night, I would like to ask for help. I can't log into my own server. ONLINE_MODE is false, I still can't get in. Thanks!

@fabricioo93 what exact error are you seeing? Please provide a screenshot, etc. Also provide the container logs around the time of attempted connection.
Why did you want to disable online mode to fix a login issue? FYI there's a variable to allow for overriding server properties after the data directory has been setup.

@fabricioo93 what exact error are you seeing? Please provide a screenshot, etc. Also provide the container logs around the time of attempted connection.
Why did you want to disable online mode to fix a login issue? FYI there's a variable to allow for overriding server properties after the data directory has been setup.

not working, trying to get a friend on my mc server.


is this plugin fork by @an-rahulpandey

hi @grupoiris
is this plugin fork by @an-rahulpandey
because it look like almost the same
https://www.npmjs.com/package/cordova-plugin-iosaudiopicker
https://github.com/an-rahulpandey/ios-audio-picker
if yes
what the difference between by repo and yours ?

hello bau, we fork the original project from @an-rahulpandey because he is try to convert the audio file in .m4a format and keep the result in the path of the application; we only need the data to use the original audio file.

got it
thanks @grupoiris


feat: Port mce-cli to Java.

Also moved off the avro format event file to json instead. Much nicer to use :)
https://github.com/linkedin/datahub/issues/1743
Checklist

[x] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[x] Links to related issues (if applicable)
[x] Tests for the changes have been added/updated (if applicable)
[x] Docs related to the changes have been added/updated (if applicable)

@keremsahin1 what is that docker image meant to do? It isn't clear to me nor really documented. Just run the ingestion script from docker rather than your machine?

@keremsahin1 what is that docker image meant to do? It isn't clear to me nor really documented. Just run the ingestion script from docker rather than your machine?

It's for populating mock data in quickstart: https://github.com/linkedin/datahub/blob/master/docs/quickstart.md

Done

Also need to update the ingestion docker image using this?

Done, need approval? Seems like I can't mark single comments as resolved. May always be better to "start a review", even with single comments.


Version 3.0.0 fails to runs any Node commands -- syntax error

I'm using Node v4.2.6 with npm v3.5.2
I just installed react-redux-starter-kit per the instructions (git clone, then ran "npm install") however the next step (running "npm start") failed. I tried all of the commands: npm run start, npm run deploy, npm run compile,... they all fail with a similar error message:
to be executed: node bin/server
/mnt/dev-code/stephaniebarnett/clickerforge/bin/server.js:5
const { server_host: host, server_port: port } = config
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

Ah you are right, thank you for catching that. I just dropped babel on the server earlier today which means all this stuff will no longer be transpiled. For some reason I thought the README suggested Node v6 as the minimum version, but it appears as though I was mistaken.
There are two possible routes from here:

Upgrade to Node 6 and reap the benefits of better ES6 support! I would like to make 6 the minimum version, but...

A lot users may still be on Node 4 LTS, so it'd make sense to keep the server code compatible. If we go this route I will update Travis to also run our tests on Node 4.

Sorry for the inconvenience.

Just pushed https://github.com/davezuko/react-redux-starter-kit/commit/cc6ae303327647fdc9674385b596c58fe9745675 after testing it locally on Node 4.5.0 (the latest 4.x.x release). That should work for you!

Closing as resolved. Let me know if you still have any issues.


Fix corss referencing links

The links to the Solution Retrieval page in sections Extracting results and get_discrete give 404 File not found.
This PR resolves it and also add the doc artifact directory to .gitignore.

Thank you!


$compileProvider.debugInfoEnabled is not a function on rc1

Getting this error on rc1
class Config {
        static $inject = [
            '$stateProvider',
            '$urlRouterProvider',
            'ErrorLookupProvider',
            '$locationProvider',
            '$uiViewScrollProvider',
            '$compileProvider'
        ];

        constructor(
            $stateProvider:ng.ui.IStateProvider,
            $urlRouterProvider: ng.ui.IUrlRouterProvider,
            ErrorLookupProvider: ngErrorLookup.ErrorLookupProvider,
            $locationProvider: ng.ILocationProvider,
            $uiViewScrollProvider: ng.ui.IUiViewScrollProvider,
            $compileProvider: ng.ICompileProvider) {

            $compileProvider['debugInfoEnabled'](false);
            /* ... */
       }
}

Error: [$injector:modulerr] Failed to instantiate module Base due to: $compileProvider.debugInfoEnabled is not a function

reporting this because the docs state that you should call this function on production https://code.angularjs.org/1.3.0-rc.1/docs/guide/production

could you provide more detail on how you solved this issue? I'm maintining an angular 1.4 application right now and am running into the same issue.
Uncaught Error: [$injector:modulerr] Failed to instantiate module trainingApp due to:
TypeError: $compileProvider.debugInfoEnabled is not a function

if I recall correctly, bower was installing 1.2.x instead of the correct version because I had a -rc1 in the version field, and bower didn't like it, nor knew how to handle it


pylsp hangs in Atom if a file is saved immediately after change, due to mypy

Into the virtualenv for my project, I installed
python-lsp-server[rope,pyflakes,pycodestyle]
mypy-ls

Then I installed ide-python plugin into the Atom editor, and started Atom from the virtualenv. File linting works fine from both pycodestyle and mypy, for example a line like this shows a mypy error:
x: str = 1

Everything is fine when I edit the file, and when I wait a while and save it. However, if I change a file and them immediately press Ctrl+S to save it, I see the following traceback in Atom's Dev Console:
logger.ts:19 Python (pyls) stderr   File "/usr/lib64/python3.9/threading.py", line 1266, in run
logger.ts:19 Python (pyls) stderr     self.function(*self.args, **self.kwargs)
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pylsp/_utils.py", line 33, in run
logger.ts:19 Python (pyls) stderr     return func(*args, **kwargs)
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pylsp/python_lsp.py", line 274, in lint
logger.ts:19 Python (pyls) stderr     flatten(self._hook('pylsp_lint', doc_uri, is_saved=is_saved))
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pylsp/python_lsp.py", line 155, in _hook
logger.ts:19 Python (pyls) stderr     return hook_handlers(config=self.config, workspace=workspace, document=doc, **kwargs)
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
logger.ts:19 Python (pyls) stderr     return self._hookexec(self, self.get_hookimpls(), kwargs)
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
logger.ts:19 Python (pyls) stderr     return self._inner_hookexec(hook, methods, kwargs)
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/manager.py", line 337, in traced_hookexec
logger.ts:19 Python (pyls) stderr     return outcome.get_result()
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/callers.py", line 80, in get_result
logger.ts:19 Python (pyls) stderr     raise ex[1].with_traceback(ex[2])
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/callers.py", line 52, in from_call
logger.ts:19 Python (pyls) stderr     result = func()
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/manager.py", line 335, in <lambda>
logger.ts:19 Python (pyls) stderr     outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs))
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
logger.ts:19 Python (pyls) stderr     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/callers.py", line 208, in _multicall
logger.ts:19 Python (pyls) stderr     return outcome.get_result()
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/callers.py", line 80, in get_result
logger.ts:19 Python (pyls) stderr     raise ex[1].with_traceback(ex[2])
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
logger.ts:19 Python (pyls) stderr     res = hook_impl.function(*args)
logger.ts:19 Python (pyls) stderr   File "/home/kparal/devel/.venv/blockerbugs/lib/python3.9/site-packages/mypy_ls/plugin.py", line 173, in pylsp_lint
logger.ts:19 Python (pyls) stderr     report, errors, _ = mypy_api.run(args)
logger.ts:19 Python (pyls) stderr   File "mypy/api.py", line 69, in run
logger.ts:19 Python (pyls) stderr   File "mypy/api.py", line 58, in _run
logger.ts:19 Python (pyls) stderr   File "mypy/api.py", line 69, in <lambda>
logger.ts:19 Python (pyls) stderr   File "mypy/main.py", line 87, in main
logger.ts:19 Python (pyls) stderr   File "mypy/main.py", line 165, in run_build
logger.ts:19 Python (pyls) stderr   File "mypy/build.py", line 179, in build
logger.ts:19 Python (pyls) stderr   File "mypy/build.py", line 254, in _build
logger.ts:19 Python (pyls) stderr   File "mypy/build.py", line 2644, in dispatch
logger.ts:19 Python (pyls) stderr   File "mypy/build.py", line 2868, in load_graph
logger.ts:19 Python (pyls) stderr   File "mypy/build.py", line 1848, in __init__
logger.ts:19 Python (pyls) stderr   File "mypy/build.py", line 1307, in validate_meta
logger.ts:19 Python (pyls) stderr   File "mypy/build.py", line 698, in getmtime
logger.ts:19 Python (pyls) stderr   File "mypy/metastore.py", line 90, in getmtime
logger.ts:19 Python (pyls) stderr   File "/usr/lib64/python3.9/genericpath.py", line 55, in getmtime
logger.ts:19 Python (pyls) stderr     return os.stat(filename).st_mtime
logger.ts:19 Python (pyls) stderr FileNotFoundError: [Errno 2] No such file or directory: '.mypy_cache/3.9/blockerbugs/models/update.data.json'

After this error, file linting no longer works (neither mypy, nor pycodestyle). The linting output is stuck to the last state. The error repeats on every file change. Furthermore, the error persists even after restarting the editor. The only way to resolve it seems to be rm -rf .mypy_cache and a clean editor start. And if I save the file too quickly, the problem repeats.
The file it complains about (in this case blockerbugs/models/update(.py) is different every time. It is clearly some kind of a race condition.
I don't have much experience with pyls nor mypy. Is this a pyls error or a mypy-ls or a mypy error? Can I provide additional helpful info?
FWIW, this problem doesn't happen if I use linter-mypy plugin, which calls mypy directly and not through the python-lsp-server+mypy-ls. Executing mypy on a commandline is not a problem either.
Versions:
$ pip freeze | grep -E '(lsp|mypy)'
mypy==0.910
mypy-extensions==0.4.3
mypy-ls==0.4.1
pylsp-mypy==0.5.0
python-lsp-jsonrpc==1.0.0
python-lsp-server==1.0.1

I am currently in the process of renaming the project from mypy-ls to pylsp-mypy if the change is well received that is. You seem to have both installed, so you have it installed twice basically. The two installations might interfere with each other.

You're right, I had both. I created a completely new virtualenv, installed project dependencies, and mypy-ls, nothing else. The problem is still the same.
$ pip freeze | grep -E '(lsp|mypy)'
mypy==0.910
mypy-extensions==0.4.3
mypy-ls==0.4.1
python-lsp-jsonrpc==1.0.0
python-lsp-server==1.1.0

I have a suspicion that the problem might be in the ide-python Atom plugin. It doesn't seem to correctly support python-lsp-server (only the older python-language-server). For example, it can't configure which linters to enable with the lsp-server. This error might be caused by some API change between those two.

I would agree with you, that this looks a lot like a race condition.
I would assume, that mypy at some point in the run deletes parts of the cache, so if it runs twice simultaneously one of the instances crashes because the other one deleted the files it's trying to read.
Given that you did not provide your settings, I am assuming, that you have the defaults active. That means live mode is active, which causes a call to mypy all the time while you type. These calls are rather slow, so, if pylsp (or your editor) would not provide some sort of thread safety, that would crash.
Given that is not the case, the cause for the issue is, that this thread safety gets not provided for the call caused by saving vs the ones caused by typing.
There are several quick fixes:

Wait a little until saving.
Turn live mode of.
Define a lock in plugin.py which gets acquired at the start of pylsp_lint and released at the end

I do not think the plugins are supposed to provide thread safety (I looked at others and saw nothing like that).
As far as i know, the API did not change, but the namespace did. This might cause issues in an editor not supporting it.
I would recommend asking the authors of your editor if pylsp is supported.
I am closing this for now, as I think, I am supposed to implement thread safety, should I be wrong about that, please feel free to reopen this and let me know.


Shell scripts in 2.3.3 broken

Just stumbled over this:  When using the 2.3.3 installer and setting it in the path rake invocation fails in git bash with
$ rake -T
bash: /c/tools/ruby/bin/rake: C:/Users/Justin/Projects/rubyinstaller/sandbox/ruby23_mingw/bin/ruby.exe: bad interpreter: No such file or directory

Looks like Justin built this on his own machine :).
Huge kudos for the work, but while the batch file wrappers work, all built-in shell wrappers are broken. Unfortunately, Windows now sometimes has a bash as well :(

With ruby in the PATH replacing all #! with
#!ruby.exe

provides a workaround.

Duplicate of #317


set host header

Current coverage is 92.53% (diff: 100%)

Merging #143 into master will not change coverage

@@             master       #143   diff @@
==========================================
  Files            26         26
  Lines          2880       2880
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           2665       2665
  Misses          215        215
  Partials          0          0

Powered by Codecov. Last update 6432f0c...b195473


Fix datediff

"moment" - don't use what caused the error anymore.
format ('MM-DD') without a year cannot parse the date correctly (returns a string)

Thanks


Resolves: Add a CI pipeline with GitHub Actions

The pipeline runs:

CI

build and unit tests validation
debug assemblies and unit tests results generation
uploading artifacts to pipeline run (checkout the PR run of the pipeline for artifact download)

File changes:

Switched the places of the directives in src/Microsoft.AspNetCore.Mvc.Versioning/Versioning/ActionSelectionContext.cs, because of this error:

src\Microsoft.AspNetCore.Mvc.Versioning\Versioning\ActionSelectionContext.cs(5,5): error SA1210: Using directives should be ordered alphabetically by the namespaces

Additions:
We would like to add Continuous Deployment as well, however we know there are internal procedures often incorporated with Microsoft projects for the packaging, so we wanted to confirm first if what we have as an idea is desirable. The CD would include:

commit-based automated versioning
NuGet package generation and signing
deployment to NuGet.org
creation of GitHub Release

Please let us know if you'd like us to include that, if anything could be done better and/or if any other automation is required by the project! We would be happy to improve it to satisfactory completion 🙂
Resolves #768

I've provided a lot more context and feedback in #768. I'm fine to leave this for a bit until the process is flushed out. The PR build process never produces artifacts. The release process is always manual and doesn't occur often. I stopped doing automatic artifact publishing because I have no one to help verify output and I've made mistakes in the past. Once you publish to NuGet, it's forever. I manually do a sanity-check before publishing. Official releases are usually only a few times a year at this point, so handling it manually is manageable.
Adding a YAML build definition at this point would have no effect and, if properly detected in Azure DevOps, would likely break the existing builds. The proposed build script, however, could be the foundation of what's used after the move to the .NET Foundation.

I've provided a lot more context and feedback in #768. I'm fine to leave this for a bit until the process is flushed out. The PR build process never produces artifacts. The release process is always manual and doesn't occur often. I stopped doing automatic artifact publishing because I have no one to help verify output and I've made mistakes in the past. Once you publish to NuGet, it's forever. I manually do a sanity-check before publishing. Official releases are usually only a few times a year at this point, so handling it manually is manageable.
Adding a YAML build definition at this point would have no effect and, if properly detected in Azure DevOps, would likely break the existing builds. The proposed build script, however, could be the foundation of what's used after the move to the .NET Foundation.

Any MS signing is perfectly doable and secure within the GitHub ecosystem using the Secrets module and nuget CLI (and soon with .NET 6 even easier and more convenient with the dotnet CLI instead).
And now that the project's build/test processes are verified to work on Linux, the pipeline could be ran on Ubuntu instead of Windows, which would significantly increase the speed of its execution.
Whenever and whatever you decide on the pipeline, we'd be happy to contribute, just give us the heads up 🙂


Issue while nomad startup in the EC2 instance

When this script is running: https://github.com/hashicorp/terraform-aws-nomad/blob/master/examples/root-example/user-data-client.sh in the EC2 instance. The logs in /var/log/user_data.log show this:
2018-09-13 11:43:29 [INFO] [run-consul] Creating default Consul configuration
2018-09-13 11:43:29 [INFO] [run-consul] Installing Consul config file in /opt/consul/config/default.json
2018-09-13 11:43:29 [INFO] [run-consul] Creating Supervisor config file to run Consul in /etc/supervisor/conf.d/run-consul.conf
2018-09-13 11:43:29 [INFO] [run-consul] Reloading Supervisor config and starting Consul
consul: available
consul: added process group
2018-09-13 11:43:30 [INFO] [run-nomad] Looking up current Compute Instance name
2018-09-13 11:43:30 [INFO] [run-nomad] Looking up Metadata value at http://metadata.google.internal/computeMetadata/v1/instance/name
curl: (6) Could not resolve host: metadata.google.internal

This means, consul started successfully but nomad startup failed.
When I do nomad status on the instance.
This is the output Error querying jobs: Get http://<IP_ADDRESS>:4646/v1/jobs: dial tcp <IP_ADDRESS>:4646: connect: connection refused.

It looks like you're using the GCP version os fhte run-nomad script. The log output you're seeing comes from this function. You need to run the AWS version of that script as contained in this repo.

You need to use the modules from terraform-aws-nomad to deploy to AWS. You can set the version to install in the install script: https://github.com/hashicorp/terraform-aws-nomad/blob/master/modules/install-nomad/install-nomad#L29


Add Code blocks in pod-topology-spread-constraints.md

Add Code blocks in the Markdown spec to make it easy to read..

/approve


fix: make github revalidation cache time to 1 hour

What does this PR do?
Reduce cache time to 1 hour
Fixes #57

How should this be tested?

Test A
Test B

Checklist

Required

[x] Filled out the "How to test" section in this PR
[x] Read How we Code at oss.gg
[x] Self-reviewed my own code
[x] Commented on my code in hard-to-understand bits
[x] Ran pnpm build
[x] Checked for warnings, there are none
[x] Removed all console.logs
[x] Merged the latest changes from main onto my branch with git pull origin main
[x] My changes don't cause any responsiveness issues

Appreciated

[ ] If a UI change was made: Added a screen recording or screenshots to this PR
[ ] Updated the Formbricks Docs if changes were necessary

/award 100


Only one streaming key for each course

Motivation and Context

Closes #124
Currently, every time a lecturer starts a new self-stream, they have to go into their streaming software and change the stream server and key. This is a bit cumbersome as most lecturers only need to stream to one course, and therefore the credentials should be course-specific, instead of stream-specific.
Description

Each course now has it's own stream key, which is generated when the course is created. Every time a new stream is created, it's stream key will default to the course stream key.
The stream key of a course can be regenerated in the course -> settings tab. This might be used if the stream key is leaked, or to re-sync all the stream keys should they have been changed individually.
The stream key of a stream can be regenerated in the Edit Lecture tab on the course page, this might be used for hosting concurrent streams of a course. Here the stream key can also be restored to the course stream key.
Since the worker can no longer identify streams by their key, it now identifies a stream by key and time. This will cause problems if stream times overlap within 30 minutes.
Steps for Testing

Prerequisites:

1 Lecturer
1 Self-Stream setup

Log in
Navigate to a course or create a new one
Create some Live-streams, notice they will all have the same key
Press Edit Lecture -> Regenerate Key of a Stream, notice it will no longer use the same key as the other streams in that course
Navigate to the course settings tab and press Regenerate course wide stream keys, notice that all the stream keys will change and will once again all be the same
Regenerate Key of a Stream again
Press Edit Lecture -> Restore Key, notice it will once again use the same key as the other streams in that course

Screenshots

Changing the key of a specific stream

Changing the key of all stream in course

This PR is the same as #1242 but with a cleaned up git history

@Mjaethers Do you still want to merge this PR? If so please fix the pipeline errors so we can check and approve your PR.

Although I think we don't really need this feature anymore as @carlobortolan already implemented a first version of a proxy for the rtsp streams and also implemented a new streaming key system with that


Fix minor typo in examples

I noticed a minor typo in the examples for @bigtest/interactor under the new interactor (scope) section where button is spelled buttom. This change fixes that typo.
Screenshot of original typo

Nice catch 💯


Simplify array of objects to 2d array

Hi, how to convert the following array of objects to 2d array for simplification in Rust ?
here is the array of objects:
[
    {"town":"t1","area":16800,"population":1600},
    {"town":"t2","area":6400,"population":1800}
]

It is expected to be:
[
    ["town","area","population"],
    ["t1",16800,1600],
    ["t2", 6400, 1800]
]

It looks like you want to use CSV instead of JSON.

This is necessary in some cases, such as Charming (a popular rust graph library) are using 2d array json format:
https://github.com/yuankunzhang/charming/blob/main/gallery/asset/life-expectancy-table.json


ROCm 3.1 HSA_STATUS_ERROR_OUT_OF_RESOURCES

Hello! I have recently installed ROCm 3.1.0 on an Intel NUC machine and I am facing some trouble when trying to run rocminfo. The output I am getting is:
ROCk module is loaded
nuc is member of video group
hsa api call failure at: /data/jenkins-workspace/compute-rocm-rel-3.1/rocminfo/rocminfo.cc:1102
Call returned HSA_STATUS_ERROR_OUT_OF_RESOURCES: The runtime failed to allocate the necessary resources. This error may also occur when the core runtime library needs to spawn threads or create internal OS-specific events.

My Intel NUC specs:
Product: Intel® NUC 8 Mainstream-G mini PC (NUC8i7INH)
Board Number: NUC8i7INB
Board Form Factor: UCFF (4" x 4")
Socket: Soldered-down BGA
Internal Drive Form Factor: M.2 and 2.5" Drive

Processor: Intel® Core™ i7-8565U Processor (8M Cache, up to 4.60 GHz)
# Cores : 4
# Threads: 8

Memory: 8GB embedded or 8GB embedded + 16GB Intel® Optane™
Memory Types: LPDDR3-1866/2133

Graphics Processor: Intel® UHD Graphics 620
Integrated Graphics : No
Discrete Graphics: Radeon™ 540X, 2GB GDDR5

PCI Express Revision: Gen3
PCI Express Configuration: M.2 slot with PCIe X4 lanes
OS: Ubuntu 18.04

From my own  research, this GPU model would fall into this category:
https://www.techpowerup.com/gpu-specs/amd-polaris-23.g920
Which would make me believe it does in fact support ROCm.
Also, maybe it's worth mentioning that the Block Diagram shows the AMD Polaris 23 chipset being connected to the Whiskey Lake U intel SoC through PCIe x4.
I know this issue has been posted a couple of times, and from what I gather it has to do with the computer not supporting PCIe 3.0 AtomicOp, which indeed seems to be the case as it is shown by the outpu of dmesg:
[    3.889639] kfd kfd: skipped device 1002:6987, PCI rejects atomics
[    3.889629] [drm] PCIE atomic ops is not supported

However, my sudo lspci -vv output seems to indicate that atomics are available (judging from the '+' sign next to 32bit and 64bit for the DevCap2 parameter):
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa [Radeon 540X/550X/630 / RX 640 / E9171 MCM] (rev c3) (prog-if 00 [VGA controller])
	Subsystem: Intel Corporation Device 2079
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 139
	Region 0: Memory at a0000000 (64-bit, prefetchable) [size=256M]
	Region 2: Memory at b0000000 (64-bit, prefetchable) [size=2M]
	Region 4: I/O ports at 3000 [size=256]
	Region 5: Memory at b0400000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at b0440000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
		DevCtl:	CorrErr- NonFatalErr- FatalErr- UnsupReq-
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend-
		LnkCap:	Port #0, Speed 8GT/s, Width x8, ASPM L1, Exit Latency L1 <1us
			ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM L1 Enabled; RCB 64 bytes Disabled- CommClk+
			ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 8GT/s (ok), Width x4 (downgraded)
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Not Supported, TimeoutDis-, NROPrPrP-, LTR+
			 10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt+, EETLPPrefix+, MaxEETLPPrefixes 1
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS-
			 AtomicOpsCap: 32bit+ 64bit+ 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR+, OBFF Disabled
			 AtomicOpsCtl: ReqEn-
		LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance De-emphasis: -6dB
		LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete+, EqualizationPhase1+
			 EqualizationPhase2+, EqualizationPhase3+, LinkEqualizationRequest-
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee004b8  Data: 0000
	Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [150 v2] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
		AERCap:	First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
	Capabilities: [200 v1] Resizable BAR <?>
	Capabilities: [270 v1] Secondary PCI Express
		LnkCtl3: LnkEquIntrruptEn-, PerformEqu-
		LaneErrStat: 0
	Capabilities: [2b0 v1] Address Translation Service (ATS)
		ATSCap:	Invalidate Queue Depth: 00
		ATSCtl:	Enable-, Smallest Translation Unit: 00
	Capabilities: [2c0 v1] Page Request Interface (PRI)
		PRICtl: Enable- Reset-
		PRISta: RF- UPRGI- Stopped+
		Page Request Capacity: 00000020, Page Request Allocation: 00000000
	Capabilities: [2d0 v1] Process Address Space ID (PASID)
		PASIDCap: Exec+ Priv+, Max PASID Width: 10
		PASIDCtl: Enable- Exec- Priv-
	Capabilities: [320 v1] Latency Tolerance Reporting
		Max snoop latency: 3145728ns
		Max no snoop latency: 3145728ns
	Capabilities: [328 v1] Alternative Routing-ID Interpretation (ARI)
		ARICap:	MFVC- ACS-, Next Function: 1
		ARICtl:	MFVC- ACS-, Function Group: 0
	Capabilities: [370 v1] L1 PM Substates
		L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
			  PortCommonModeRestoreTime=0us PortTPowerOnTime=170us
		L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
			   T_CommonMode=0us LTR1.2_Threshold=81920ns
		L1SubCtl2: T_PwrOn=170us
	Kernel driver in use: amdgpu

I should probably also mention that after installing ROCm, running /opt/rocm/opencl/bin/x86_64/clinfo was just returning Number of platforms:     0. The fix I managed to find for that was to do an OpenCL only instalation from the amdgpu-pro proprietary driver. My clinfo output is now:
Number of platforms:				 1
  Platform Profile:				 FULL_PROFILE
  Platform Version:				 OpenCL 2.1 AMD-APP (3004.6)
  Platform Name:				 AMD Accelerated Parallel Processing
  Platform Vendor:				 Advanced Micro Devices, Inc.
  Platform Extensions:				 cl_khr_icd cl_amd_event_callback cl_amd_offline_devices

  Platform Name:				 AMD Accelerated Parallel Processing
Number of devices:				 1
  Device Type:					 CL_DEVICE_TYPE_GPU
  Vendor ID:					 1002h
  Board name:					 Radeon 540X Series
  Device Topology:				 PCI[ B#1, D#0, F#0 ]
  Max compute units:				 8
  Max work items dimensions:			 3
    Max work items[0]:				 1024
    Max work items[1]:				 1024
    Max work items[2]:				 1024
  Max work group size:				 256
  Preferred vector width char:			 4
  Preferred vector width short:			 2
  Preferred vector width int:			 1
  Preferred vector width long:			 1
  Preferred vector width float:			 1
  Preferred vector width double:		 1
  Native vector width char:			 4
  Native vector width short:			 2
  Native vector width int:			 1
  Native vector width long:			 1
  Native vector width float:			 1
  Native vector width double:			 1
  Max clock frequency:				 1211Mhz
  Address bits:					 64
  Max memory allocation:<PHONE_NUMBER>
  Image support:				 Yes
  Max number of images read arguments:		 128
  Max number of images write arguments:		 8
  Max image 2D width:				 16384
  Max image 2D height:				 16384
  Max image 3D width:				 2048
  Max image 3D height:				 2048
  Max image 3D depth:				 2048
  Max samplers within kernel:			 16
  Max size of kernel argument:			 1024
  Alignment (bits) of base address:		 2048
  Minimum alignment (bytes) for any datatype:	 128
  Single precision floating point capability
    Denorms:					 No
    Quiet NaNs:					 Yes
    Round to nearest even:			 Yes
    Round to zero:				 Yes
    Round to +ve and infinity:			 Yes
    IEEE754-2008 fused multiply-add:		 Yes
  Cache type:					 Read/Write
  Cache line size:				 64
  Cache size:					 16384
  Global memory size:<PHONE_NUMBER>
  Constant buffer size:<PHONE_NUMBER>
  Max number of constant args:			 8
  Local memory type:				 Scratchpad
  Local memory size:				 32768
  Max pipe arguments:				 0
  Max pipe active reservations:			 0
  Max pipe packet size:				 0
  Max global variable size:			 0
  Max global variable preferred total size:	 0
  Max read/write image args:			 0
  Max on device events:				 0
  Queue on device max size:			 0
  Max on device queues:				 0
  Queue on device preferred size:		 0
  SVM capabilities:
    Coarse grain buffer:			 No
    Fine grain buffer:				 No
    Fine grain system:				 No
    Atomics:					 No
  Preferred platform atomic alignment:		 0
  Preferred global atomic alignment:		 0
  Preferred local atomic alignment:		 0
  Kernel Preferred work group size multiple:	 64
  Error correction support:			 0
  Unified memory for Host and Device:		 0
  Profiling timer resolution:			 1
  Device endianess:				 Little
  Available:					 Yes
  Compiler available:				 Yes
  Execution capabilities:
    Execute OpenCL kernels:			 Yes
    Execute native function:			 No
  Queue on Host properties:
    Out-of-Order:				 No
    Profiling :					 Yes
  Queue on Device properties:
    Out-of-Order:				 No
    Profiling :					 No
  Platform ID:					 0x7f245de69e50
  Name:						 gfx804
  Vendor:					 Advanced Micro Devices, Inc.
  Device OpenCL C version:			 OpenCL C 1.2
  Driver version:				 3004.6
  Profile:					 FULL_PROFILE
  Version:					 OpenCL 1.2 AMD-APP (3004.6)
  Extensions:					 cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_gl_event

Any help or clarification would be much appreciated on this matter. Mostly, I'd like to know if my hardware does in fact support this distribution of ROCm or not.
Thank you for your time!

Thanks @Ryderxz4224 for reaching out.
This issue is no more observed with ROCm 4.1, which is the latest version. I recommend to try with the same.
Feel free to open a new issue, if any, for quick resolution.
Thank you.


”DEVA” is listed in the drop-down menu

Description:
"DEVA" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "DEVA" in the search bar.

Expected results
The location is listed in the drop-down menu as "Municipiul DEVA, HUNEDOARA".

ENVIROMENT: ui.orase
URL: https://peviitor-ro.github.io/ui.orase/
Browser: Google Chrome
Device: Laptop
OS: Windows 10
STEPS TO REPRODUCE:
Open URL in browser
Type "DEVA" in the search bar.
EXPECTED RESULTS:
The location is listed in the drop-down menu as "Municipiul DEVA, HUNEDOARA"
ACTUAL RESULTS:
"Municipiul DEVA, HUNEDOARA" is missing

Fixed! Poti sa retestezi.


Mandatory property in OptionAttribute.

Hi I want to add IsMandatory property, to write generic function for model validation on the base of this property value.
I am trying like this but its not working in my custom scaffolding
public class MyCustomAttribute : OptionAttribute
{
    public bool IsMandatory { get; set; }
}

Is their a way to achieve this ? @prafullbhosale

I am not sure I fully understand the question here. Is this attribute going to be used for decorating the properties of the model that will be used for scaffolding?
If so, there is an existing attribute [Required] which specifies the same thing.

Thanks. It worked.

Closing this.


add inet_ntop() call: IPv6 support

This will be useful for all networking one-liners/scripts. See the man page for inet_ntop(3), but maybe we should just call it ntop() for short (or something else).
Both of these should work, and print "<IP_ADDRESS>" and "::1":
bpftrace -e 'BEGIN { print("%s\n", ntop(AF_INET, 1)); }'
bpftrace -e 'BEGIN { print("%s\n", ntop(AF_INET6, 1)); }'

IPv4 should be shown as a dotted-quad, and IPV6 as a most-shortened address representation:   https://tools.ietf.org/html/rfc5952

With https://github.com/iovisor/bpftrace/pull/262 merged, I now have a practical reason to implement this support so I'm going to take a crack at it. My early attempts are crashing, I suspect a bug in codegen. Down the rabbit hole I go :rabbit: .
I noticed that bpftrace supports bitwise operations, but not hex literals (as far as I can tell). A quick and dirty way to translate the existing (now parsable) struct members such as sk->__sk_common.skc_rcv_addr which contain AF_INET addresses would be to just leverage bit-shifting to extract each bit of at least at ipv4 address for printing. As a work-around, I'm just printing hex values for now, though ports are thankfully simple integers and are easier to work with.
The implementation specified above would also probably need to specify the literal decimal 2 instead of AF_INET, as the current header parsing doesn't parse #define macros (though I suspect the support is there in clang to do so). I suspect that based on the buffer size, we could just infer whether an address is ipv4 or ipv6 though, so perhaps specifying the address type is an unnecessary part of the API.

I noticed in https://github.com/iovisor/bpftrace/issues/59 that hex literals are permitted, I guess they just have to be declared as a variable explicitly.
I was able to put together a way to print ipv4 addresses, but uses up 4 printf fields, so it'll mean using multiple printfs per line, but it'll get the job done in the meantime as a reasonable workaround:
  $sk->__sk_common.skc_rcv_daddr
  $mask1 = 0x000000FF;
  $mask2 = 0x0000FF00;
  $mask3 = 0x00FF0000;
  $mask4 = 0xFF000000;

  $q1 = ($daddr & $mask1) >> 0;
  $q2 = ($daddr & $mask2) >> 8;
  $q3 = ($daddr & $mask3) >> 16;
  $q4 = ($daddr & $mask4) >> 24;
  printf("%d.%d.%d.%d\n", $q1, $q2, $q3, $q4);

Sample output:
bpftrace -e 'BEGIN { $daddr = 0x08B2940A; $mask1 = 0x000000FF;  $mask2 = 0x0000FF00; $mask3 = 0x00FF0000; $mask4 = 0xFF000000; $q1 = ($daddr & $mask1) >> 0; $q2 = ($daddr & $mask2) >> 8; $q3 = ($daddr & $mask3) >> 16; $q4 = ($daddr & $mask4) >> 24; printf("%d.%d.%d.%d\n", $q1, $q2, $q3, $q4);}'
Attaching 1 probe...
<IP_ADDRESS>

Hex literals are meant to be fully supported in bpftrace - this program works for me without first assigning to variables:
BEGIN { printf("%x\n", 0x4567 & 0xff) }

@ajor hmm yes you seem to be right. I was getting a syntax error earlier but it might have due to the syntax I used for the bitwise operators, and when I switched to variables it was fine. Perhaps I was on an old branch of bpftrace?
Either way, yes you're correct, hex literals seem to be working just fine.

Accessing ipv6 addresses in the kernel is going to be a bit tricky https://github.com/iovisor/bpftrace/issues/268#issuecomment-441787339

I've completed an initial implementation of this in my PR #269, which I think is now ready for review.

In #275 I indicate a possible approach for handling array types, which is the issue with ipv6 addresses right now.
This would also allow for accepting Type::array as the second field to the ntop function in the semantic analyzer, which could then just copy the bytes down to resolve_inet directly, and I think is the cleanest way to get ipv6 support.

About IPv6: passing a 128 bit integer is one way to do it, but did you try passing it as 2 x 64 bit integers? I did such packing with usym(), for example:
  else if (call.func == "usym")
  {
    // store uint64_t[2] with: [0]: (uint64_t)addr, [1]: (uint64_t)pid
    AllocaInst *buf = b_.CreateAllocaBPF(call.type, "usym");
    b_.CreateMemSet(buf, b_.getInt8(0), call.type.size, 1);
    Value *pid = b_.CreateLShr(b_.CreateGetPidTgid(), 32);
    Value *addr_offset = b_.CreateGEP(buf, b_.getInt64(0));
    Value *pid_offset = b_.CreateGEP(buf, {b_.getInt64(0), b_.getInt64(8)});
    call.vargs->front()->accept(*this);
    b_.CreateStore(expr_, addr_offset);
    b_.CreateStore(pid, pid_offset);
    expr_ = buf;
  }

Changed title to adding IPv6 support.
Was just talking to @jasonk000 who might try coding it.
User space needs to take the bytes and format it. I did the code for bcc: https://github.com/iovisor/bcc/commit/9e0b087fceda18641eadbd567d3823c69d5f89a8
I think there's at least two approaches:

A) pass by value: this probably needs #284, so we can have a 128-bit integer as the argument.
B) pass by reference: this probably needs #275, so merging of #285.

Here's an example address (needs Linux 4.16+ for this tracepoint):
# bpftrace -lv t:sock:inet_sock_set_state
tracepoint:sock:inet_sock_set_state
    const void * skaddr;
    int oldstate;
    int newstate;
    __u16 sport;
    __u16 dport;
    __u16 family;
    __u8 protocol;
    __u8 saddr[4];
    __u8 daddr[4];
    __u8 saddr_v6[16];
    __u8 daddr_v6[16];

Hmmm. How would the code to either (A) or (B) look? I'm not sure. Maybe for (A):
bpftrace -e 'BEGIN { print("%s\n", ntop(AF_INET6, args->saddr_v6[0])); }'
# or
bpftrace -e 'BEGIN { print("%s\n", ntop(AF_INET6, (u128)args->saddr_v6[0])); }'

The first may not work since ntop() may only see the u8 and not the address. The second might be a way to cast it as a 128-bit int, but we'd need int casts first (#554) and it just may not make sense with the parser anyway -- since it may end up casing the u8 as a u128 and not getting the rest of the bits.
Hence (B):
bpftrace -e 'BEGIN { print("%s\n", ntop(AF_INET6, &args->saddr_v6[0])); }'

This will need #553. It probably makes the most sense.
It begs the question: do we change the ntop() API? For AF_INET, do we switch that to pass-by-reference for consistency, or leave it as pass-by-value since it's a 32-bit? I don't feel strongly. Consistency sounds good, if it works.
Fixing should fix #521 as a side effect.

While working on #553 I ended up implementing this (sort of) and #521. The only problem is, inet_ntop doesn't seem to support IPv6 yet:
$ bpftrace -e 'tracepoint:tcp:tcp_set_state { printf("%s\n", ntop(10, args->saddr_v6))  }'
Attaching 1 probe...
ntop() currently only supports AF_INET (IPv4); IPv6 will be supported in the future.

ntop() currently only supports AF_INET (IPv4); IPv6 will be supported in the future.

ntop() currently only supports AF_INET (IPv4); IPv6 will be supported in the future.

ntop() currently only supports AF_INET (IPv4); IPv6 will be supported in the future.

ntop() currently only supports AF_INET (IPv4); IPv6 will be supported in the future.

But maybe it's my Kernel version? I'll try with a newer kernel soon.

@mmarchini that message is internal to bpftrace https://github.com/iovisor/bpftrace/blob/48619f43e06c59c4454f80c114ddf3f97e8a78da/src/bpftrace.cpp#L1618-L1631
it is hardcoded to not work with the IPV6 addr family as there is currently no way to pass 128 bit types by value (or at least, there wasn't when we added the ipv4 functionality)
What you are passing there I think is stored as a constant array, and we need to either:

Cast it to a 128 bit type to pass to ntop (there is already space allocated for this in the call, we just have no way to load it). This is the "by-value" approach @brendangregg mentions
Get the address of the constant array, and store it in its own variable to pass by reference to ntop, changing the ntop api. This is the "by-reference" approach.

Cast it to a 128 bit type to pass to ntop (there is already space allocated for this in the call, we just have no way to load it). This is the "by-value" approach @brendangregg mentions

I went essentially with this approach. https://github.com/iovisor/bpftrace/pull/566 should fix this and #553.

Awesome!!! Reading through it now, it looks great on first glance


Calling method from C causes segfault

I have this in a C code to find out the name of the function that the mruby script is calling, from inside of it:
mrb_value kernel = mrb_class_find_path(mrb, mrb->kernel_module);
mrb_value fun_name_val = mrb_funcall(mrb, kernel, "__method__", 0);

This was working fine with mruby 3.0.0, but switching to 3.1.0 or to master gives me a segfault in the second line.
I also tried this:
mrb_value obj = mrb_obj_new(mrb, mrb->object_class, 0, NULL);
mrb_value fun_name_val = mrb_funcall(mrb, obj, "__method__", 0);

And also get a segfault.
In both cases, the lldb debugger gives me this error:
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x28)
    frame #0: 0x000000010010fcc0 test-function`mrb_f_method(mrb=0x0000000100809e00, self=(w = 0)) at kernel.c:82:19 [opt]
   79  	{
   80  	  mrb_callinfo *ci = mrb->c->ci;
   81  	  ci--;
-> 82  	  if (ci->proc->e.env->tt == MRB_TT_ENV && ci->proc->e.env->mid)
   83  	    return mrb_symbol_value(ci->proc->e.env->mid);
   84  	  else if (ci->mid)
   85  	    return mrb_symbol_value(ci->mid);

And the following backtrace:
  * frame #0: 0x000000010010fcc0 test-function`mrb_f_method(mrb=0x0000000100809e00, self=(w = 0)) at kernel.c:82:19 [opt]
    frame #1: 0x00000001000af77f test-function`mrb_funcall_with_block(mrb=0x0000000100809e00, self=<unavailable>, mid=<unavailable>, argc=<unavailable>, argv=<unavailable>, blk=(w = 0)) at vm.c:568:13 [opt]
    frame #2: 0x00000001000aeb2c test-function`mrb_funcall [inlined] mrb_funcall_argv(mrb=0x0000000100809e00, self=(w = 0), mid=<unavailable>, argc=0, argv=0x00007ff7bfefa460) at vm.c:584:10 [opt]
    frame #3: 0x00000001000aeb19 test-function`mrb_funcall(mrb=0x0000000100809e00, self=(w = 0), name=<unavailable>, argc=0) at vm.c:390:10 [opt]
    frame #4: 0x0000000100008f72 test-function`mrbind17::function_overload_resolver(mrb_state*, mrb_value) + 258
    frame #5: 0x00000001000b632c test-function`mrb_vm_exec(mrb=0x0000000100809e00, proc=<unavailable>, pc="\a\U00000002\U00000002\U00000003") at vm.c:1652:18 [opt]
    frame #6: 0x00000001000b0f1d test-function`mrb_vm_run(mrb=0x0000000100809e00, proc=0x00000001004bf040, self=(w =<PHONE_NUMBER>), stack_keep=<unavailable>) at vm.c:1138:12 [opt]
    frame #7: 0x00000001000b018f test-function`mrb_top_run(mrb=<unavailable>, proc=<unavailable>, self=<unavailable>, stack_keep=<unavailable>) at vm.c:0 [opt] [artificial]
    frame #8: 0x00000001000f99ee test-function`mrb_load_exec(mrb=0x0000000100809e00, p=<unavailable>, c=0x0000000000000000) at parse.y:6891:7 [opt]

I also tried mrb_class_path instead of mrb_find_class_path and it works with 3.0.0, but again not with 3.1.0 or master.

I have tracked the problem down to mrb_f_method in the mruby-kernel-ext gem. This function has changed from mruby 3.0.0 to 3.1.0 and the added condition (working on a proc pointer) causes the segfault.
I found however that there is now a __callee__ method that has the same code as the old version of mrb_f_method. Calling __callee__ seems to work, however I ended with another segfault down the line trying to check that the returned value was a symbol (with mrb_symbol_p, which calls mrb_type). This led to this new issue: https://github.com/mruby/mruby/issues/5715

Here's what I noticed.

For the purpose of getting the method name, mrb_get_mid() is provided.
mrb_sym mid = mrb_get_mid(mrb);

Note: Strictly speaking, this function is equivalent to the __callee__ method, not the __method__.

If you want a Kernel module in the form mrb_value, use mrb_obj_value(mrb->kernel_module).
mrb_value kernel_val = mrb_obj_value(mrb->kernel_module);

mrb_class_find_path() returns a string object, not a module object. It is not a module object.
It is like the Kernel.name method in Ruby.

mrb_class_find_path() is not MRB_API qualified. Therefore, it is intended for internal implementation.

However, it may be necessary to correct mrb_class_find_path().


[Issue report] The partition size are fixed 2GB and didn't resize with the SD card.

Describe the bug or issue
A clear and concise description of what the bug is.
Describe your setup

Your Raspberry Pi model and spec variant, e.g. 4B with 2GB RAM
Your Chromium OS for Raspberry Pi release version, e.g. Chromium OS r77 r3
Your hardware configuration and setup, e.g. how you have wired the Pi board with any other peripheral connected to it

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behaviour
A clear and concise description of what you expected to happen.
Screenshots and/or hardware setup photos
If applicable, add screenshots to help explain your problem. If your problem is hardware related, it's much easier to include a photo of how your setup looks like.
Additional context
Add any other context about the problem here.

There were a lots of bugs in old release. We have fixed the bug in latest release.


docs: start the wiki

Is your feature request related to a problem? Please describe.
No one knows how to use it ...
Describe the solution you'd like
Start the wiki
Describe alternatives you've considered
None.

Where can I get an API key?

Okay, found it here.

The issue is obviously created for a reason ;)


SNI can't be used if upstream target definition using IP:Port

Is there an existing issue for this?

[x] I have searched the existing issues
Linked discussion:
https://github.com/Kong/kong/discussions/9247

Kong version ($ kong version)
2.8.1
Current Behavior
One of our applications is using Kong for HTTPS connection to external system. During the communication we also must send SNI hostname as a value which is CN/SAN value of the server certificate or a hostname which is covered by a CN/SAN of wildcard server certificate.
CN= Common Name
SAN=Subject Alternative Name

Problem: SNI based upstream target can not be used if upstream needs to be called based on ip-address and port

We cannot resolve the DNS name for the upstream partner (different company private network without possible DNS resolution on our side).
For this reason we need to use IP-address and port in upstream / target configuration to be able to use SNI based endpoint selection on the upstream partner side during TLS handshake a correct SNI value needs to be send correlating to the server certificate they use on their side.
(They also run on their side ingress controller which selects endpoint based on information of hostname / sni-name)
This is currently not possible in kong to configure it this way.
We tried to analyze current implementation of SNI and it looks only on upstream name and does not look for any sni configuration with or without client-certificate configurations.

SNI code which looks only on upstream
Expected Behavior
When we request a particular service with a configured route in kong it should look to the configured kong service which references the relevant upstream and finally upstream targets.
The upstream config needs to be extended with an optional value of “https_sni” which needs to be used during the TLS handshake with the upstream target host and port.
This SNI-name should be by default the name of the upstream object of kong.
If an optional value of “https_sni” is configured, this value needs to be used for the TLS handshake as SNI value.
Additional hint:
The possibility to configure “https_sni” on kong upstream objects is already existing for the “healthcheck” configuration possibility. But not for the upstream object and the configured targets behind the upstream config itself.
Steps To Reproduce
1.	Create service which will be looking on some service, e.g haproxy with nginx as background
- should have multiple server certificates listening to multiple hostnames. All hostnames need to use the same IP address.
2.	Create route /test-route in kong
3.	Configure service and upstream using ip address and port of the haproxy or nginx upstream server
Use the name “upstream-name.remote” for the upstream object in the kong configuration
4.		Run a curl or postman GET request to https://kong/test-route
6.	Check traffic sniffed output for SNI.
(There should be the name of the upstream object “upstream-name.remote” as value of SNI during the handshake be visible, which is not the case)

Anything else?
How it should work after implementation:

Create service which will be looking on some service, e.g haproxy with nginx as background should have multiple server certificates listening to multiple hostnames. All hostnames/certificates need to use the same ip-address:

default (should be default certificate)

upstream-name.remote

upstream-name.overwritten

These are the hostnames of upstream destination service which needs to be used for this test case.

Create route /test-route in kong
Configure service and upstream using IP address and Port of the haproxy or nginx upstream server
Use the name “upstream-name.remote” for the upstream object in the kong configuration
Configure for the upstream object “upstream-name.remote” the optional “https_sni” key to the value “upstream-name.overwritten”
Run some traffic sniff on kong instance, e.g tcpdump to capture a traffic
Run a curl or postman GET request to https://kong/test-route
Check traffic sniffed output for SNI.
(There should be the value of “upstream-name.overwritten” used as SNI name during the TLS handshake).

Hi @dmitriivoronov, thanks for reporting this; we have created an internal task to track this issue. KAG-129

Hi @mayocream
i think it is related to the last discussions in https://github.com/Kong/kong/issues/5580

Dear contributor,
We're closing this issue as there hasn't been any update to it for a long time. If the issue is still relevant in the latest version, please feel free to reopen it. We're more than happy to revisit it again.
Please have a look at our pledge to the community for more information.
Sincerely,
Kong Gateway Team


JavaScript Debug Terminal Doesn't Launch From Run And Debug Dropdown

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.73.1 (Universal)
OS Version: OSX Monterey 12.6.1

Steps to Reproduce:

Click "Run and Debug"

Select "JavaScript Debug Terminal" from dropdown

Click Green Start Arrow

The debugger indicates an attached terminal, as the debugger toolbar appears:

Likewise, the Status Bar indicates a terminal is active:

However, no JavaScript Debug Terminal actually launches in the IDE:

If you open the terminal view, is there a debug terminal there?

@roblourens It is not. It's a normal shell terminal (zsh in my case), and it doesn't attach to the debugger even after running a node process (yarn start) with Auto-Attach active.

The ID of the process being debugged in shown in the name in the Call Stack view. What is that process?

12594

same thing here, cannot start debugging a nest.js application, all the output says is /usr/local/bin/node

The only solution i've found was to install the latest vscode insiders version, it's the second time this problem happens this year (at least with me) on the base version of vs code.

@gianveloxbr Yes, this is the third time it's happened for me this year. The first two times, it seems to have eventually sorted itself out, but it's been over a week now and still no luck with this breakdown.
The workaround I've found is to set Auto-Attach to always  from the Command Palette (Cmd+Shift+P on OSX), then launch a JavaScript Debug Terminal  from the Command Palette and run a node command such as yarn start from there.
This does correctly attach the JavaScript Terminal for debugging!

12594

I was looking for what that process is actually executing. You can run a command like ps -eo pid,ppid,%mem,%cpu,args -r | grep <process id here> to check

@connor4312 My mistake!
Here's the output from my terminal, with the headless JavaScript Debug Terminal running:
68975  1374  0.0   0.7 grep 68837
68951 68837  0.1   0.0 /Users/<MY_NAME>/.asdf/installs/nodejs/16.17.1/bin/node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/watchdog.bundle.js
68837 67905  0.1   0.0 /Users/<MY_NAME>/.asdf/installs/nodejs/16.17.1/bin/node

Thanks. Unfortunately this looks like a regression that happened partially because I was not around last month to publish a stable release of js-debug. The good news is this should already be fixed in the nightly build of js-debug. If you install that, you should be good to go.
This will be fixed in the next release of VS Code in a couple weeks which will bundle the next stable revision of js-debug.

@connor4312 Amazing, thank you!!!


python311Packages.gspread: 5.9.0 -> 5.10.0

Diff: https://github.com/burnash/gspread/compare/refs/tags/v5.9.0...v5.10.0
Changelog: https://github.com/burnash/gspread/blob/v5.10.0/HISTORY.rst
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 251435 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.google_sheets
python310Packages.gspread
python310Packages.gspread.dist
python311Packages.gspread
python311Packages.gspread.dist


Why intellesense for installed node modules  is not showing in vs code until I press Ctrl + space for typescript in vs code version : 1.11.0

I upgraded to vs code version 1.11.0 and opened my project. When I try to use import statement in the code, code completion is not working for installed node module name until I press ctr + space. But previously (before upgrade) when I start type the node module name in (import {foo} from 'fo') I see suggestions. for foo file but now (after upgrade) it is not working.

VSCode Version: 1.11.0
OS Version: windows 10

Steps to Reproduce:

use vs code version 1.11.0
install a node module
Try to import the node module in a ts file or try to require the node module in js file.

import {foo} from 'foo'

or
let foo = require('foo');

Tracked as #23962


Add ktlint

Resolves #10
PR adds ktlint throught the ktlint-gradle plugin.
I've fixed all issues reported by the default rules (except import-ordering which is inconsistent with Android Studio). Let me know if you want any specific rules disabled.
I also updated all dependencies in a separate commit and cleaned up unused ones.
Update: I'll do this in a separate PR as suggested.
Tested with ./gradlew assemble check.
There are still a bunch of kotlin compiler warnings e.g. missing @ExperimentalCoroutinesApi annotations which I can address in a separate PR.

I signed the CLA.

amazing, thank you!
can we add whatever check to the circle configuration as well so that we don't break this again.
Also, might be good to clear spotless or just limit it to copyright check?

I saw #5 and thought you might be switching to travis soon. But I'll update the circle ci config anyway.
Re. spotless I'll wait and see what @digitalbuddha thinks.

@yarivkenan Thanks for the PR, would you mind splitting up "Add ktlint" and "Update dependencies" into separate PRs?
For the "Add ktlin" PR, can you update https://github.com/dropbox/Store/blob/master/CONTRIBUTING.md#coding-style to ask contributors to to apply Ktlint to either IntelliJ or githooks (i'm not sure which is better)
https://github.com/JLLeitschuh/ktlint-gradle#additional-helper-tasks

Thank you for the contribution!

Rebased with the following changes:

reverted dependency updates (will create a separate PR)
added instruction for generating IDE style files for ktlint
applied ktlint plugin to allprojects instead of subprojects as ktlintApplyToIdea task is only added to the root project.

Do you mind doing the other diff you had as well? We can use some upgrades of dependencies :-)

yep, hang on for a minute.


UI of Yoga Therapy page

To maintain the similarity, I would like to improve the UI of the Yoga Therapy page by making it similar to the other pages.

@Vanshiii203 Show me the UI after having a sketch in Figma or Canva or whatever you prefer. I don't want to reject your PR later on if it doen't look good.

Is this issue still in progress or should I showcase the design I have in mind for the page?

@MridulTi Wait for some more days to get assigned. I'll assign you if @Vanshiii203 fails to comment here within the next 10 days

sure

are u interested to work on this @MridulTi ,reply or i will have to close issue

are u interested to work on this @MridulTi ,reply or i will have to close issue

I am Interested in working on it but I would need some time for it as it is a whole page I have to work on


core: add option to run command from other namespace

Earlier, rook-ceph namespace was hardcoded.
Now, we have the option to run commands from any namespace.

[x] test the changes
[x] update CI

Closes: https://github.com/rook/kubectl-rook-ceph/issues/5
Signed-off-by: subhamkrai<EMAIL_ADDRESS>

with #14 we can run commands in another namespace. I'll close. Thanks for the reviews


Modernize licenser's interactions with gradle

This is the beginnings of work to modernize the licenser plugin so that it's a better Gradle citizen and supports new features that they add.
So far, this:

Switches to lazy task registration for licenser tasks
Adds support for the configuration cache (#14)
Makes the functional tests run on a variety of Gradle versions
Update functional tests to use new Property-based API
Expand use of lazy properties and refactor plugin init so that licenser tasks can be registered as soon as the associated source sets are created, rather than in an afterEvaluate block (#16)
Sort out line endings issues in functional tests (project is checked out as LF, licenser uses system line endings by default) (#24)

Further items to work on are:

Ensure binary compatibility with Groovy's auto-generated methods
Work on making sure the newly chosen names aren't too silly

Alright, I think I'm satisfied with where this PR is now. I've tested it across one or two of my projects as well, and all seems fine so far.

Thanks for all your effort @zml2008. I cannot really comment much on the actual changes, since I haven't followed Gradle development for a while. I think I'll just trust your word that you're using the Gradle API correctly now. :)
Regarding the changes in the test code: @joschi, maybe you would like to take a quick since you wrote most of it?

I think we're good to go here then, @zml2008?
With regards to splitting up the tests, that sounds like a good pull request in of itself.

I think the last thing was looking at that charset property note -- I'll fix that up real quick and should be good to go then.

Merged with https://github.com/CadixDev/licenser/commit/c39ef21c7ffa1b506560c360d2760c875786af02.


[BUG] Single path to logo files

Describe the bug

The path of logo files should be consistenly from a single source. I've found logo files are duplicated (and renamed) in the front-end or using a remote URL in the documentation.
How To Reproduce

Front-end (still uses the old logo)
Docs (still uses the old logo)

Expected behaviour

All resources use the same source for logo files.
Environment (generate for Linux, macOS and 64-bit Windows)

N/A
Additional information

Ah that's why it didn't change haha

To fix this in the frontend, we'll need to get GH actions to copy the images into the frontend/src in the same way as is done for the json catalogs


Crashes when having a UST loaded

Describe the bug
Sometimes having a UST loaded causes strange crashes at different points. When using just USTManager, it often will crash when trying to exit a level from the pause menu (though not consistently). The bug gets worse if AngryLevelLoader is installed, where it will crash when just trying to load a level (including both regular and angry levels).
To Reproduce
Steps to reproduce the behavior (just USTManager):

Load a level that has a UST replacement (in my case it was 0-2).
Load the UST from the pause menu.
Exit and re-enter the level, repeat until crash happens.

Expected behavior
The game shouldn't be crashing. The same .ust file used worked as intended in the previous version.
Desktop (please complete the following information):

OS: Windows 10
Mod version: 1.4.3

Can you please give me the logs?

Nothing seems wrong? It just... stopped working randomly? Can you try doing the same thing and see if it happens again? It could just be BepInEx or something else. It does happen to me randomly with any mod when I'm testing, typically when i first add a mod

I had it happen multiple times while the console was open and it never printed anything useful before or after the crash handler appears. I saw someone in NBDS say they had a similar crash while using it so I don't think it's a problem on my side.

I have been having the same error, in fact, while playing 6-1 with a UST loaded it crash in the final room

Could it be my Awake patch doing that somehow? I'll have to check tomorrow

Something is probably up with the patch considering using other mods alongside it seem to always make the issue worse, even if they don't mess with sound at all (like EasyPZ causing consistent crashes on level loads).

I'm really wondering how this happens. I'll try something
Le mar. 6 févr. 2024, 11:54, winterviola @.***> a
écrit :

Something is probably up with the patch considering using other mods
alongside it seem to always make the issue worse, even if they don't mess
with sound at all (like EasyPZ causing consistent crashes on level loads).
—
Reply to this email directly, view it on GitHub
https://github.com/ZedDevStuff/USTManager/issues/16#issuecomment-1929361497,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXO6VSUUBZGKWWK2TOFDQTDYSIKW5AVCNFSM6AAAAABCWGFECWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZGM3DCNBZG4
.
You are receiving this because you commented.Message ID:
@.***>

Should be fixed by 1.5.0


Always use datashader for UMAP plots

Datashader is faster to plot, provides a more accurate plot in the end, and this also avoids ending up with SVG files that are too complex to open. I just copied umap.plot.points into the package, removing some of the options we should never change.

I think after this we can stop saving the figures as png, because this will be a good balance of vector art everywhere but this one problematic place.

@aarmey the plots are very difficult to see, even when changing the alpha term. Are you seeing the same issues?

@andrewram4287 this is because data shader is making sure that it displays the data properly. There are points that are very close together, and so it is making the points really small so that you can see the relative densities still.
I think this should get better if you change the min_dist setting in UMAP to spread apart those points a bit.


Adopt semver

I think REST Assured is excellent and use it regularly. However, I have found the library's use of version numbers confusing and inconsistent with other open source libraries.
Please considering adopting Semantic Versioning for future releases. This allows your users to recognise just from the version number when breaking changes have been made.

I try to adhere to semantic versioning but not 100% so the point is taken. Sometimes I have indeed made breaking changes that I suspect wouldn't affect many users. But it's always documented in the changelog and release notes.


The text on /apply page should be changed

"First of all, congrats on cracking that piece of code. We're excited to know that you are curious and willing to explore. We are always looking for a motivated and determined person to join our team. " - there's no code to crack anymore- the page is linked to from /team page.

"APPLY_WELCOME": "Hi there, stranger",
"APPLY_TEXT_1": "Thanks for dropping by. We're excited to know that you are curious and willing to explore. We are always looking for a motivated and determined person to join our team." ?

Yeah, I think it's good.
On 02/13/2015 01:13 AM, Dan Mindru wrote:

"APPLY_WELCOME": "Hi there, stranger",
"APPLY_TEXT_1": "Thanks for dropping by. We're excited to know that
you are curious and willing to explore. We are always looking for a
motivated and determined person to join our team." ?
—
Reply to this email directly or view it on GitHub
https://github.com/fadeit/fadeitdk/issues/31#issuecomment-74181363.


Fix evaluation of cabal2nix

cabal2nix fails to evaluate due to attempting to
evaluate pkgs.haskellPackages.hackage-db_2_1_0, which
does not exist.  However, the default
pkgs.haskellPackages.hackage-db is already version 2.1.0,
so the fix is simple: go back to using the default version.

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Thanks.

@jtojnar: You're welcome! :slightly_smiling_face:


Workshop: Introducing to Zombinet & Chopstick

Here is the slide for this one https://docs.google.com/presentation/d/1GtSGCe3bLu92_UjfMf0RraopJaaSS3D58N5yzHIJ6EA/edit?usp=sharing


Migrate from v4.3.1 to v4.3.2

From version v4.3.2 the config parameter "secret_iv" is required. I've used the NzoUrlEncryptorBundle without a "secret_iv" in the past. How can I migrate to v4.3.2 without losing my data?
So my current configuration basically is just:
nzo_url_encryptor:
  secret_key: ************```

Unfortunately there is no straight forward way to do that, unless you re-enter your data again after setting the iv secret.
The secret_iv is required to guarantee more security to the encrypted data.

Thank for your quick response.
Would it not be possible to include some functionality to allow people to still decrypt those values? Something like the following:
/**
 * Decrypt values created without Iv
 *
 * @param string $encrypted
 * @return string
 * @deprecated
 */
public function decryptWithoutIv($encrypted)
{
	$decrypted = openssl_decrypt(
		$this->base64UrlDecode($encrypted),
		$this->cipherAlgorithm,
		$this->secretKey,
		0,
		substr(hash(self::HASH_ALGORITHM, $this->secretKey), 0, 16)
	);

	return trim($decrypted);
}

This will make maintaining the bundle more harder and less secure !
On your own risk you can still be using the v4.3.1 but it's not recommended.

I understand that part. However I'm afraid that this way people are forced into using an old version just because there's basically no way to simply upgrade. People staying indefinitely at an old version feels like even a bigger security risk.
Either way I think that most people would assume that a patch version change would not lead to backward incompatibility. Add the issue that there's basically no way to migrate from 4.3.1 to 4.3.2 for this use case I would say it would be worth it to add some functionality to help people out.
I assume this could be a special version number designed for migration to prevent such code in the normal releases I guess.

I see your point, but it is the pupose of the security patch. There is no meaning in having a speacial version if the changes are the same as the old version. This will lead to more confusion !
There is only two cases here:

1: staying with old version but with security risks.
2: upgrading to the new version and make the needed changes.
There is no other option I'm afraid.


Hover tooltip for full address balance in the main panel.

[ ] On the right-hand side display the hover tooltip with copy button for address full balance
[ ] Add "~" before rounded address balance on the right-hand side.

Design:
https://zpl.io/boxM9WW

Done


Upgrade @kiwicom/eslint to latest version

Maybe I am missing something, but shouldn't we update the dependency as well somewhere? Or where are we getting the latest version.

Yeah, that probably explains why the lint failed on the CI, I didn't even notice, seems my package.json was not committed 😱

@aalises 🚀


[imager] Add restore cmd to expose cleanup workflow

This exposes the cleanup workflow via a new restore cmd. Particularly handy when re-running such workflow is needed (e.g., after workflow failure).
Related to #79.

/cc @jc-rh

/approve


Remove log_message from Email::__construct

The practice of logging a "Some Class Initialized" message is a remnant of earlier versions of CI.
It's not being done in V4.

Agreed. Also, so glad to see this gone! With the nuanced logging levels in CI4 it's not really an issue but it was a bugger in CI3.


Two-factor authentication

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


An invalid or out-of-range value was supplied for the input parameter.

After running the CFN template and when we goto Amazon SES under Verified Identities Click on Email and Notifications, it is giving error  An invalid or out-of-range value was supplied for the input parameter when we select the SNS topic created by CFN

I'm also receiving this error for a topic that was previously configured and working for feedback notifications.  Any updates on this?

Which region? Is the SNS topic created in the same region as SES is running? Any more details you can provide?

The region is us-west-2.  The topic and SES are in the same region.  The topic was working just fine until I randomly received an email from AWS:
"An error occurred while trying to publish a notification of type "Bounce" to Amazon SNS topic "arn:aws:sns:us-west-2:123456789:my-topic-name".
Your Amazon SNS notification configuration for notification type "Bounce" with identity<EMAIL_ADDRESS>has been removed and forwarding of feedback by email has been re-enabled."
I have a support case open but this is really odd since it was configured and working just fine.  Now when I try to reconfigure the bounce notifications I get the following error:
An invalid or out-of-range value was supplied for the input parameter.
SNS topic arn:aws:sns:us-west-2:123456789:my-topic-name is invalid.

SNS KMS encryption is supported by SES. You just need to grant the necessary KMS permissions to the SES service.
https://repost.aws/knowledge-center/ses-resolve-sns-bounce-notifications


Static ui

All responsive and almost ready to go! Index.html and About.html just need to be copied over into corresponding .html files in templates/ folder (then delete original index.html and about.html files?) cc/ @lyzidiamond
*You may want to test UI while running the full app with real data e.g. I can't view what Index.html looks like you enter an address and the json displays below the input field. Or what it looks like when you upload a file. LMK if additional changes are needed there.
Opened PR to merge with lex-deploy, is this the correct branch? Go team <3

Merged in #71


fix: use ResizeObserver API  for container size changes

Replace the resize event with the ResizeObserver API, as the container's size may depend on factors beyond just the window size, such as changes in other DOM elements like opening & closing a sidebar.

Great!


Generate base models with items

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
18.9.0
Amplify CLI Version
10.7.3
What operating system are you using?
Mac
Amplify Codegen Command
codegen models
Describe the bug
I'd like to be able to generate typescript models such that they are as they would be when using the API from aws-amplify.
Basically, just creates the base typescript models without lazy models, inits, etc.
Right now it doesn't even create arrays with the items member and nextToken.
Expected behavior
Create typescript models with the structure that the GraphQL API returns.
Reproduction steps
amplify codegen models  for any schema
GraphQL schema(s)

# Put schemas below this line

Log output

# Put your logs below this line

Additional information
No response

Hi @charlesfayal - Thank you for submitting. Marking this as a feature request, and we'll update this ticket as we consider updating the DX for Datastore in the future.


[Feature Request] Add validatorExists() method

There's no official way to check if validator exists (we can only use "private" _underscored methods, but this is not a reliable way because they're not a part of the official API). When the Parsley.addValidator() method is called and validator already exists, then a Validator "${validatorName}" is already defined warning is shown in the console.
So it would be great if there was an additional Parsley.validatorExists() method.

Sure, we could do that.
Maybe a better possibility would be to allow adding the same validator multiple times without a warning. I.e. Only warn if the parameters given differ (string comparison) form the current validator.
Am I correct in presuming you get the warning because you're adding a the same validator more than once?

Am I correct in presuming you get the warning because you're adding a the same validator more than once?

Yes. I'm adding it more than once because I can't check if it was already added. Parsley instance is global, my code has a class that has multiple instances so each instance is trying to initialize Parsley validators.
This is more a cosmetic issue than a real issue. The only thing that's happening are these warnings in the console :)

I added hasValidator, since I don't know of an easy way to compare objects in javascript. sigh


Add files via upload

@juan-olaya First stage of verification passed, official domain is institutomerani.edu.co as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@juan-olaya Thank you for your patience while waiting for a review and processing your request. Pull request merged.


feat: port Data.PSigma.Order

mathlib3 SHA: 62a5626868683c104774de8d85b9855234ac807c

Hmm, notation3 doesn't accept docstrings so far.

Now it does

bors merge


Add missing png in jspm files declaration on 3.5.2

Fix #4094
This allows jspm to install the select2x2.png along with the other assets.

Thanks!

@kevin-brown hi, this PR has been merged, but there is not a release to fix the v3.
Is it possible to create a v3.5.5 to fix it ?

@JBustin Do we just need a new release off the stable/3.5 branch?  Thanks for bringing this to my attention.

@kevin-brown it's ok, i missed the stable/3.5, just see the 3.5.4.
Thanks

@kevin-brown just for information, i use jspm to load client module, and the slash is only supported in a beta version.
It's not the best with this package manager.
https://github.com/jspm/jspm-cli/issues/1871

I'm not @kevin-brown...

Effectively, you're not.
Sorry.

😁  well it looks like the last release of 3.5.x was on 2015-08-30, while this fix was merged on 2016-01-19.  So, it sounds like we do need a 3.5.5 release, then?

@alexweissman up
Thx


Client should not un-paginate large results. Should return a generator that does this for you.

Is there an existing issue for this?

[X] I have searched the existing issues

Is your feature request related to a problem? Please describe.
When fetching historical data, even simple queries (fetching all trades / quotes for a single symbol on a single day) can have very large result sets which are paginated by the API. The data client attempts to un-paginate these and load them all into a single return structure. This is very slow (probably the main cause for #204). It also means that the client consumer has no choice but to allow this process to run (single-threaded) until it completes, or potentially fails with an OOM or similar.
Describe the solution you'd like.
The client should return a data structure that gives easy access to the paginated results, without actually loading them. The consumer can then decide how to access these results - possibly by looping through them in a single-threaded manner, but potentially also by parallelizing this data-loading to make it more efficient. It would also give the consumer the option of serializing each page of results and so avoid the OOM issue of building very large data structures in memory.
A Python generator seems a natural way to provide this functionality. The client can return an object that contains a generator which will (when accessed) fetch the appropriate pages of data from the API. This might look something like:
client = StockHistoricalDataClient(...)

trades_request = StockTradesRequest(symbol_or_symbols='NVDA')
trades_resultset = client.get_stock_trades_resultset(trades_request)

for(page_data in trades_resultset):
    # do something with the data (summarize it, serialize it, etc.)

note here I'm assuming that trades_resultset is a generator
Describe an alternate solution.
Another way to address this is to provide a client method for fetching an individual page of results, something like:
client = StockHistoricalDataClient(...)

trades_request = StockTradesRequest(symbol_or_symbols='NVDA')
trades_resultset = client.get_stock_trades_resultset(trades_request)

for(page in trades_resultset.pages):
    page_data = client.get_stock_trades_data(trades_request, page)
    # do something with the data (summarize it, serialize it, etc.)

note in this example I'm assuming that trades_resultset is an object that contains a reference to an iterator over page symbols.
Anything else? (Additional Context)
Give the user the option of how to handle fetching large data. Don't force them to wait on a single-threaded and potentially failure-bound process.

PS - I am willing to prepare a PR on this (as soon as I can carve out some time).


zigbee2mqtt package & module

Motivation for this change
There was neither package nor module for zigbee2mqtt
Things done
Implemented nix package and NixOS module for https://www.zigbee2mqtt.io/

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I'm still looking forward to getting this merged.

cool,
new services are encouraged to have a test. I see that a full test would be somehow complicated for this. But maybe a simple curl/mqtt test to get the server version from the running daemon would be nice?
thanks for contributing though and sorry for the somewhat huge delay :)

@Lassulus
I'll look into writing a simple test
The problem is, i'm pretty sure zigbee2mqtt will not start if the zigbee usb device is not available.

I'm interested in this, maybe I could help you @sweber83 ?

@juaningan
Thanks for reminding me about this pr.
Today I implemented a really simple test, which just tests if zigbee2mqtt fails with the correct error message.
I thought about writing a more thorough test, but did not find the time yet.
Qemu provides a way to set up an emulated serial device which connects to a character device on the host (usb-serial), this could be used to talk to zigbee2mqtt and emulate the missing zigbee usb device.
There is only a small bit of information regarding this capability of Qemu in the docs: https://www.qemu.org/docs/master/system/usb.html
But there is a small example to be found in the mail archive: https://www.redhat.com/archives/libvir-list/2013-January/msg00053.html
The largest hurdle to a thorough test is probably the part of implementing some kind of server, which connects to the character device and talks to zigbee2mqtt over the serial connection.
If you have an idea on to how implement such a thorough test, or just some pointers on improving my minimal test, any help is appreciated!

thought about writing a more thorough test, but did not find the time yet.
Qemu provides a way to set up an emulated serial device which connects to a character device on the host (usb-serial), this could be used to talk to zigbee2mqtt and emulate the missing zigbee usb device.
There is only a small bit of information regarding this capability of Qemu in the docs: https://www.qemu.org/docs/master/system/usb.html
But there is a small example to be found in the mail archive: https://www.redhat.com/archives/libvir-list/2013-January/msg00053.html

Yikes. IMO such a complex test should not be a blocker for this pull request.

@Lassulus
I updated the PR today.
As you can see, I added a minimal test a few weeks back.
Since a more comprehensive test is pretty complicated to implement, I hope to get the PR merged as it is now.