bazel: replace patch with patchShebangs and substituteInPlace

Motivation for this change
Stop using /usr/bin/env and instead refer directly to the binaries in bash and coreutils.
Things done

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

[X] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

This patch broke bazel for me.
ERROR: /.../src/BUILD:1:1: Executing genrule //src:hello failed: bash failed: error executing command /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; echo Hello World > bazel-out/local-fastbuild/genfiles/src/hello_world.txt': com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
process-wrapper: execvp("/bin/bash", ...): No such file or directory
Target //src:hello failed to build

Argh.  We've got some more hacking to do if we want bazel to actually be usable without a FHS chroot.

@layus, can you give some context on how to reproduce that?  Is that Darwin?

No its /nix/store/0hpb36bywgwxwycxj3qd5qk4kvfk07jm-bazel-0.4.4/bin/bazel (built from c2d4b14637) on NixOS.
Strange thing is, I was able to get it working at some point in time, but not anymore.
$ cat src/BUILD
genrule(
    name = "hello",
    outs = ["hello_world.txt"],
    cmd = "echo Hello World > $@",
    local = 1,
)

$ bazel build //src:hello  --verbose_failures
INFO: Found 1 target...
ERROR: /home/gmaudoux/releng/workspace/survey/bazel/src/BUILD:1:1: Executing genrule //src:hello failed: bash failed: error executing command
  (cd /home/gmaudoux/.cache/bazel/_bazel_gmaudoux/a9cb2f22b8c4959768b7ee711562e6a5/execroot/bazel && \
  exec env - \
    LD_LIBRARY_PATH=/run/opengl-driver/lib:/nix/store/blfi57w6szqpq21fkzlc08vyp5dz0ajk-gcc-5.4.0-lib/lib \
    PATH=/home/gmaudoux/bin:/run/wrappers/bin:/home/gmaudoux/.nix-profile/bin:/home/gmaudoux/.nix-profile/sbin:/home/gmaudoux/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/run/current-system/sw/bin:/run/current-system/sw/sbin:/run/current-system/sw/lib/kde4/libexec:/home/gmaudoux/lvl/tools/cadp/com:/home/gmaudoux/lvl/tools/cadp/bin.x64:/home/gmaudoux/.cabal/bin:/sbin:/usr/sbin:/nix/store/kqgsxnw8zgpy4r5jcdr9hfjhn0nzh5nn-openjdk-8u121b13/bin:/nix/store/ws967rii65nbzvabprpr3k6lpm744n6s-gcc-5.4.0/bin \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; echo Hello World > bazel-out/local-fastbuild/genfiles/src/hello_world.txt'): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
process-wrapper: execvp("/bin/bash", ...): No such file or directory
Target //src:hello failed to build
INFO: Elapsed time: 1.416s, Critical Path: 0.01s

@layus, can you see if this fixes the problem for you?
https://github.com/NixOS/nixpkgs/pull/23385

@izuk Yes, it works for me. I guess it also fixes #23288, but I was unable to reproduce in the meantime.


Native function calls.

Implement a way to call native c functions.

Basic infrastructure implemented. Closing.


Do not use es6 'default function parameters' so we can uglify

I'm currently using a preconfigured webpack i.e. create-react-app, next.js which doesn't allow transpiling from node_modules dependencies directly by default unless you eject. This PR moves setting of default argument values inside function bodies.

That is indeed an issue with the pre-configured solution. Imagine you had to do this kind of PR for every package that is using ES6 syntax.
Considering that the majority of the users have ES6-compatible runtimes, maybe you don't need to do this at all: https://medium.freecodecamp.com/you-might-not-need-to-transpile-your-javascript-4d5e0a438ca
Nevertheless, if you insist, you are welcome to fork this project and apply your changes and then directly refer to it in your package.json as discussed here.

The proper solution would be to add babel to this project and directly support a "browser" field in the package.json but I don't have time for that right now.


Archive Node: Duplicated entries in the zkapp_account_preconditions table

Paul have found an archive node issue on TW2.
When trying to patch the archive dbs with missing blocks, He got errors because there were multiple entries in the zkapp_account_preconditions table that are identical except for the id field.
That may have happened because there were distinct rows that became identical after the receipt_chain_hash field was patched. The duplicates are an issue because Zkapp_account_precondition.add_if_doesn't_exist function checks if a unique value exists, and return an error if there is more than one.
Probably the table should have a UNIQUE constraint on all the fields except id. The solution might be to find the duplicates, delete the extra ones, and fixup the references to the duplicates.
For the "1" db, there are 80 entries with duplicates in zkapp_account_precondition, and in support of Paul theory of why there are duplicates, all have non-NULL entries for receipt_chain_hash.

Steps to reproduce:

Download dump from archive-2-postgresql-0 (--namespace testworld-2-0) at 03JAN2024
Download precomputed block: testworld-2-0-20693-3NKKDYxkPEz9vhDjpGvTjKFJ3djuA58R5zUyPB3J2nLTTcgW9Kq3.json
run archive_block application from rampup with arguments:
mina-archive-blocks --archive-uri <uri> -precomputed testworld-2-0-20693-3NKKDYxkPEz9vhDjpGvTjKFJ3djuA58R5zUyPB3J2nLTTcgW9Kq3.json
Observe error:

12-23"},"message":"Error when adding block data to the database, rolling back transaction: $error","metadata":{"error":"Unexpected result from <postgres://postgres:_@<IP_ADDRESS>:5432/archive2>: Received 2 tuples, expected at most one.


VS Code Is Pasting Garbage on Save

VSCode Version: 1.51.1
OS Version: Windows 10.0.19041

Every time I save my HTML document when I open it again I get the following.  I have no extensions installed and I've tried completely uninstalling and reinstalling.  I've installed on two different machines and I get the same problem.  It doesn't matter if I delete the garbage code and save when I close and open the document again the garbage appears.
Before save

after I save

You said you tried on two different machines. Is the file stored on a network drive?
Or do you see it with two different files of the same content? If yes, can you attach the file?

It is stored on a networked drive.  Would having the file on a network
drive cause the issue?
On Thu, Nov 26, 2020 at 3:30 AM Martin Aeschlimann<EMAIL_ADDRESS>wrote:

You said you tried on two different machines. Is the file stored on a
network drive?
Or do you see it with two different files of the same content? If yes, can
you attach the file?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/111333#issuecomment-734152121,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AR4TASOQDCVOEM4EOYYOHULSRYGZ3ANCNFSM4UDCLEWA
.

When I work on the file locally it doesn't happen even with extensions installed.  I guess that's the problem.


Fix broken tests

This fixes the broken tests. We should make sure to not push up breaking changes, I think the best way to do that is to go through pull requests always and never commit directly.

:+1: always we should use PR


fix: package path for build target

What type of PR is this?
Bug

/override ci/prow/operator-e2e
Changes to package makefile target, doesn't concern e2e

/lgtm


Feature request: allow to dump config to dict

It'd be nice to allow casting config to dict.. .
from decouple import config
dict_config = dict(config)  # or other way of getting this result
assert dict_config['SECRET_KEY'] == config('SECRET_KEY')

Then one could easily load it to flask:
https://github.com/pallets/flask/blob/f18fe15e6d9b02631e9ff24ab3c1660b8ba28f94/flask/config.py#L198

Hi, @henriquebastos .
May be do it like so:
class RepositoryIni:
    ...
    def items(self):
        return self.parser.items(self.SECTION)

class AutoConfig:
    ...
    to_dict(self):
        items = self.repostiory.items()
        return {k.upper(): v for k,v in items}

Could it work?

It's important to be consistent across repositories.
Also, the repositories are already similar to key/value stores. So it seems
better for items function to return a tuple of tuples on the form: ((k1,
v1), (k2, v2), (kn, vn))
So we wouldn't need the to_dict funcion and could simply
dict(config.items()).
Em 1 de fev de 2018 15:17, "Igor Nikolaev"<EMAIL_ADDRESS>escreveu:

Hi, @henriquebastos https://github.com/henriquebastos .
May be do it like so:
class RepositoryIni:
...
def items(self):
return self.parser.items(self.SECTION)
class AutoConfig:
...
to_dict(self):
items = self.repostiory.items()
return {k.upper(): v for k,v in items}
Could it work?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/henriquebastos/python-decouple/issues/55#issuecomment-362337499,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAvIkmpvwrArN-UY-i6Gt9ORgIaH_Xwks5tQfGWgaJpZM4QnPKc
.

I tried to play with your PR, however you're only testing against string values.
What would happen in the case of a bool?
For exemple:
assert dict(config.items())['KeyTrue'] == 'True'

Would you expect the above value to be the string 'True' or the boolean value True?
The former is not possible without calling config.
This makes this feature a no go.
If you need to retrieve many keys as a dict you can simply do:
d = {k: config(k) for k in ('Key1', 'Key2', 'Key3', 'KeyN')}

If you have any other consideration, I'll be happy to read. For now I'm closing the issue.


Align Action methods with coupler methods

The task went a bit sideways so the original title and description are wrong.   The work done is associated with the original title, but the specific actions were handled in a separate PR.

I'm...not sure about this one. I mean, I see a lot of commits that reference the issue, so maybe it's done?


Upgrade to latest build-tools.

Changelog:

Better support of CentOS,
Better support of Kubernetes 1.6 (default: 1.6.1),
Make Docker installation role configurable.

See also: weaveworks/build-tools/pull/84

LGTM.

Thank you very much!
Mind merging it to master too?


fix: reduce white space after last column

Change width of columns so last column always will be "pressed" to table border
Before changes:

After changes:

 Reduce white space after last table column (1d)


Experiencing Extreme (10s+) Latencies with Pub/Sub

I described my situation in this GCP Pub/Sub forum post:
https://groups.google.com/forum/#!topic/cloud-pubsub-discuss/xhDvw63IVI8

I'm using (or trying to) GCP Pub/Sub by publishes a message on an existing subscription and topic every 5 minute and then acknowledging it on the same topic. I get monitoring alerts that the process is failing after waiting for 10 seconds and timing out a few times a day. My monitoring reports that there have been 109 timeouts over the past 24 hours. I think 10 seconds is a very high threshold for waiting for a message and would love to know what is causing this.

Kamal Aboul-Hosn said to create an issue on this repo and commented that it may be a perf issue. Here's what he said:

It looks like the Node.js Pub/Sub library has a performance issue. The way it looks to work is that it creates a pull request, waits for a response for that request, and then 10 milliseconds later creates a new pull request. This is not going to be the best way to minimize message end-to-end latency. To minimize that, one needs to have multiple outstanding pull requests simultaneously. As soon as a response comes, another request needs to be created.  I recommend entering an issue in the google-cloud-node Github repository.
Even with that change, I expect that you will still occasionally see 10-second latencies for some messages.

Environment details

OS: Debian 8
Node.js version: 6.9.5
npm version: 4.x.x
google-cloud-node version: 0.8.0

Steps to reproduce

require @google-cloud/pubsub
create topic
create subscription
send a message on topic created above (this happens every 5 minutes)
immediately try to receive the same message on the same host
randomly experience 10s+ timeouts

Image from monitoring tool showing frequency of timeouts over the past 24 hours:

one needs to have multiple outstanding pull requests simultaneously.

@tmatsuo can you confirm we should be firing multiple pull requests when a user registers a message event (subscription.on('message', function(msg) {}))? And if so, is there any additional logic to consider, e.g. the amount of simultaneous requests?

As soon as a response comes, another request needs to be created.

This is the current behavior, with the exception of the 10 millisecond timeout. This can be changed:
var subscription = topic.subscription('sub-name', { timeout: 0 })

can you confirm we should be firing multiple pull requests when a user registers a message event (subscription.on('message', function(msg) {}))? And if so, is there any additional logic to consider, e.g. the amount of simultaneous requests?

Developer on the Cloud Pub/Sub team here. I can confirm that multiple outstanding pull requests is the correct behavior. The number of concurrent requests would have to grow fairly large before it would be an issue on the server side. 5-10 simultaneous pull requests would be reasonable.

This is still a significant problem for us (beyond performance). Is there an ETA on a fix? I'm not sure how GCP bugs are prioritized and do realize the API is Alpha quality.

On it!

@MarkHerhold could you give this a try:
$ npm install --save<EMAIL_ADDRESS>

The good news is that Pub/Sub is way more consistent now. The bad news is that nearly everything is timing out. I'll poke around the code to see if we are doing something wrong.

@stephenplusplus Yeah, it breaks after a few sequential publish/subscribes. This isn't the most elegant test script, but it reproduces the problem for me, usually sometime after the 10th iteration. 🤔
const pubsub = require('@google-cloud/pubsub');
const client = pubsub(/* secret here */);

async function go() {

    const topic = (await client.createTopic('sometopic' + Math.floor(Math.random() * 2000)))[0];
    const subscription = (await topic.subscribe({
            ackDeadlineSeconds: 10,
            autoAck: false
        }))[0];

    for (let i = 0; i < 20; i++) {
        const start = Date.now();
        await new Promise(function(resolve, reject) {
            function onMessage(message) {
                if (message.data === 'test') {
                    subscription.removeListener('message', onMessage);
                    message.ack().then(resolve).catch(reject);
                }
            }

            subscription.on('message', onMessage);

            topic.publish('test');

            setTimeout(function() {
                subscription.removeListener('message', onMessage);
                reject('Pub/Sub timed out after ' + 10000 + ' ms');
            }, 10000);
        }).then(function() {
            console.log(`Pub/Sub resolved in ${Date.now() - start} ms`);
        }).catch(function(err) {
            console.error(err);
        });
    }
}

try {
    go();
} catch (err) {
    console.error(err);
}

@MarkHerhold I think that maybe your issue is similar to mine. The message counts as pulled, but can't be acked for some reason, then you have to wait until the ackDeadlineSecond time passes in order to try to receive it again...

Can I have a rough ballpark estimate of when this can be looked at/fixed? An estimate would really help me plan my own features. Thank you!

Thanks for your patience on this. The Pub/Sub team reviewed our API and had a lot of feedback for us, which could see us re-designing big parts of how our API works. These changes will probably roll out over the next few weeks (no guarantee), but would likely address this issue at the same time.
Given the big changes ahead, I'm hesitant to perfect a solution (i.e., what #2006 was meant to evolve into), when the feedback from the API team could squash it. If this isn't explicitly covered from their feedback, we will make sure it's addressed after the bigger changes we make to the API.

@stephenplusplus Ok, thanks for the insight!

OK, that's really good to know. We've been having a lot of issues with PubSub, especially when writing tests for it. I'm looking forward to major improvements to the NodeJS lib for it :)

Thanks to both of you for your help along the way!

@stephenplusplus Hey, was there a change last night? My latency for first request went from 70s+ to 2s+

No change last night. I would love to know what your new node modules are.
In particular, did your grpc dependencies update?

Hey, any ETA on updates to pubsub here?

I am pulling together a design proposal, and will be assigning it sometime in the next couple weeks.

@lukesneeringer @stephenplusplus
Any progress or new estimates?

A redesign is currently in progress. Expect a PR within the coming week or so.

I'm going to close as the new PR is about to be sent. The Pub/Sub team was behind the entire redesign, so it will be using the best practices, following their recommendations.

What's the PR #?

The PR has been sent: #2380. Thanks for your patience, everyone.

Awesome that the PR is here! But it seems premature to close this as the PR still has a number of TODOs and a 'do not merge' tag. Thanks for your hard work on this issue and it's great news that the Pub/Sub team was involved!

I agree with @Splaktar . It is unfair to customers when issues get closed before they are actually resolved. Please consider keeping this open until the PR is merged for tracking and visibility purposes.

Thanks for the feedback! I will re-open, with a quick explanation. Our APIs are shifting towards using a generated layer, meaning it would be the fault of that, or a child layer if this problem persisted. Keeping this open makes a lot of sense, and closing it wouldn't guarantee a resolution. Thanks for keeping us doing the right things-- always feel free to speak your mind if we head down the wrong road again.

@MarkHerhold we were seeing the same exact behavior in our pub/sub POC. I can confirm that so far https://github.com/GoogleCloudPlatform/google-cloud-node/pull/2380 has resolved the random 10s+ delay.

The new release is out! Please upgrade to<EMAIL_ADDRESS>if you haven't already. If there are any issues remaining, please let us know.

@stephenplusplus If i was using subscription.pull({ returnImmediately: true }) earlier, is there some guidance on how i should do it instead with the api re-design. Thanks


Create build matrix in Travis CI and clarify supported versions

This PR has three commits.

The first one tests all Ruby and Rails versions supported by Camaleon. This includes a test for upcoming versions. This last test is for informational purposes and is allowed to fail without the whole build failing. (It's actually failing now; RSpec doesn't get along with Rails 6 yet)

The second commit removes support for old Ruby/Rails versions as discussed in #813. These unsupported versions are not tested in the Travis matrix.

The third commit adds Rubocop as a development dependency. The reason for doing this is to check for syntax errors (all style linting is currently disabled). This is how I discovered that Camaleon is using features not present in Ruby 1.9. I have set Rubocop to target Ruby 2.2, so any syntax that is not valid in that version will cause the Travis build to fail.

Together these commits should give us more confidence that Camaleon works well on all the versions that we say it does.

I see one of the tests failed on a couple of jobs. This has been happening to me intermittently. If you re-run those jobs they should pass.


Couldn't load details for Job Error

Couldn't load details for Job 908df14c-e07f-42fd-92eb-0d5d23dd521c

When I select the tab, and jobs display I immediately get a flurry of toasts looking like the above.
It's unclear if the functionality is impacted as it seems to still display details.

I think I know what's causing this but I'll have to dig a little deeper. Hope to have an update for you soon. Thanks for reporting!

I am also troubled by this. I hope it will be fixed.

Sorry for the delay here. I have seen this behavior myself, but it's inconsistent enough that I haven't been able to identify the cause. But since that error message is pretty annoying I've made error catching more granular in this area, and hopefully this will stop the error message from repeatedly showing up (though if you check in the Debug Console the errors will still show there). Once you're on v0.2.1 let me know if you still get this same behavior. 🙏

With v0.2.1 although my circle view is working, I am seeing constant spam messages of this type all the time that the extension is running. New messages appear more than once per second.

Our workflow is quite busy, at the time I disabled the extension it had 30+ branches running the workflow.

@jodyheavener still seeing the pop-ups with the latest build. Could it be a proxy or SSL TLS issue?

@jodyheavener still seeing the pop-ups with the latest build. Could it be a proxy or SSL TLS issue?

Oh, this is crashing my editor. We have ~20 jobs per workflow. We also constantly push to CI (but auto-cancel previous builds).
This is causing 100+ notifications on what seems to be an interval timer.
Besides this, the initial impressions of the extensions were 4/5. Hope to see take off in the future. :)

Oh, this is crashing my editor. We have ~20 jobs per workflow. We also constantly push to CI (but auto-cancel previous builds).
This is causing 100+ notifications on what seems to be an interval timer.
Besides this, the initial impressions of the extensions were 4/5. Hope to see take off in the future. :)

I just pushed up a new version (0.2.2) that disables that specific error message altogether. It doesn't fix the issue so I'm going to leave this open, but it should at least prevent the plugin from spamming you with the notifications until I have more time to look into this.

I just pushed up a new version (0.2.2) that disables that specific error message altogether. It doesn't fix the issue so I'm going to leave this open, but it should at least prevent the plugin from spamming you with the notifications until I have more time to look into this.


SchemaRegistry with SSL and certificate

Description
I have a kafka+schemaregistry both with strong SSL authentication (certificate)
Kafka SSL setup is well documented and works but when trying to communicate with schema registry URL my consumer and producer are failing.
is this possible ?
there is any doc or sample available ?
Checklist
Please provide the following information:

[ ] A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
[ 1.2.0] Confluent.Kafka nuget version.
[ ] Apache Kafka version.
[ ] Client configuration.
[ RedHat] Operating system.
[ ] Provide logs (with "debug" : "..." as necessary in configuration).
[ ] Provide broker log excerpts.
[ ] Critical issue.

this is currently not supported by the .net client. it's a fairly common request - we do want to do it. i had a quick look into it, and it seems pretty doable, but i'm not familiar with the SSL APIs enough to do it quickly. pull requests definitely accepted on this one!

Guys, I'm working on this Issue, creating the possibility to connect in Schema Registry using SSL args. When everything is done and tested I will create a Pull Request.

I have a solution working already, but it is not possible for me to push the code as it is inside my client's private network. I could reproduce it but I needs a proper kafka+schemaregistry setup with SSL and certs which could take some more time to me, sorry...
I explain the idea I have used:

Right now we are setting the path to cert and private key for librdkafka as two separate files. But for dotnet class X509Certificate2, the only way I found so far to deal with cert+privkey is using a PFX file: cert and key merged in one single file using openssl.
Then I have added an extra key to config with path to PFX file.
In code, I have a new constructor for RestService as:

public RestService(string schemaRegistryUrl, int timeoutMs, string certfificatePath)
{
    var webRH = new WebRequestHandler();
    webRH.ClientCertificates.Add(new X509Certificate2(certfificatePath, "", X509KeyStorageFlags.DefaultKeySet)); // second param is the priv key password, to add if need

    this.clients = schemaRegistryUrl
        .Split(',')
        .Select(SanitizeUri)// need https here
        .Select(uri =>
        {
            var client = new HttpClient(webRH) { BaseAddress = new Uri(uri, UriKind.Absolute), Timeout = TimeSpan.FromMilliseconds(timeoutMs) };
             return client;
        })
        .ToList();
}

Then add an extra code on constructor of CachedSchemaRegistryClient() to read the PFX path from config and call the appropiate constructor of RestService.
I'm trying to build the PFX file on the fly in code from cert and privkey. I found an interesting code here that could do the job:
https://github.com/StefH/OpenSSL-X509Certificate2-Provider/blob/master/src/OpenSSL-X509Certificate2-Provider/CertificateFromFileProvider.cs
didnt try yet.
waiting to see the solution from rlanhellas...

@alfhv thanks for help, will be very useful. I will keep you up-to-date.

I have been working on a ssl implementation for schema registry, as soon as possible I will contribute, possible in january

thanks for the input everyone, this is promising!

Hi All,
Checking in to see what progress has been made on this.
We have a situation in our organization where we have a subset of applications using the confluent-kafka-dotnet API so we're unable to implement https/client auth with Schema Registry at the moment. Have thought about moving to BASIC AUTH in the meantime, but curious what the potential time line is looking on this support.
Thanks!
Anthony

Hi All,
I have just opened a PR
Let's see how it goes

thanks @dinegri - we'll target the release after v1.4, which will also include a bunch of other changes related to schema registry. after a quick glance, looks good!

Can this be closed now that it has been merged?

yep


refactor(parser): correct comment

Current dependencies on/for this PR:

main

PR #2441   👈

This stack of pull requests is managed by Graphite.


Broken HTML on website (https://code.visualstudio.com/insiders)

See the bottom just above the footer.

Moved to vscode-website repo #109

@hashhar we aren't able to reproduce this. Can you point out the specific page you are seeing this on and what your OS / browser configuration is?

Ah nevermind I found it - http://code.visualstudio.com/insiders


Update buildToolsVersion  at build.gradle file

I think it's rare case. Only if you add react-native to exist native project.


Only Gives Some Cosmetics

The Cosmetx mods only gives me finger painter and purple eyes

I will fix it later

ok thank you, I have been trying to find a fixed video for videos


In annotations view for graders, the "Notes" link seems to be broken.

In annotations view for graders, the "Notes" link seems to be broken.
** This issue comes up when working on the local server (not sandbox)
it may be a rails 3 issue
steps to reproduce:

log into admin
go to assignments
add a new assignment
change the due date to be aproximately 5 minutes from your current time
log in as a student and submit a file before the due date
log back in as admin
now go to the assignment, check submittions
Go to the annotation page for the file that was submitted

ISSUE:
at the top of the page you will see Notes(0")
Also, when this link is clicked, the Notes window will not show up-- this may be because of an issue with the link to the javascript that renders the notes popup window.

@seanbud, @aimenk  and i are working on this issue at the moment. We think it may be a Rails3 issue. We fixed <span id="..... display so now it just shows "Notes(0)" instead of " Notes(0)". But we're working on fixing the link that runs the javascript once you click on Notes. So can someone verify, confirm and assign this issue to us. Thanks.

We also fixed the Viewing Revision Display from "Viewing Revision: #2 ( January 28, 2012: 05:14pm )"
to
"Viewing Revision: #2 ( January 28, 2012: 05:14pm )"


Create Logo Screen Scene

Create the logo screen of the game, with the final art and a transition between screens implemented

[x] Logo final art
[x] Transition

EXPECTED RESULT:
A Scene named Logo Screen that shows and animation with the Logo of RaptorSoft.

Implemented in commit https://github.com/RyuuSukeChan/ProjectDungeon/commit/2eccb69e4108c57a723465694be8f291ea2ed550


JOSHUA-265 Major refactoring of features/rules/grammars in Joshua

Major refactoring of core decoder components (Rule.java, FeatureVector.java and grammars). The core idea of this change is to simplify feature handling inside Joshua. Please note that this change is NOT backwards compatible. The following changes were made:

No distinction between sparse and dense features inside the decoder anymore. Each feature stored at the rule is 'owned' by the grammar that contains the rule. An 'owned' feature simply means that its name is prepended with the owner string: 0=0.2 becomes 0=0.2. This applies to both dense features (features that occur at every rule), as well as sparse features. Please note that the old prefix 'tm' is no longer used.
Having only one type of feature, a revised version of FeatureVector.java was built that is greatly simplified. It is basically a HashMap of FeatureId (typed as ints) to feature values. FeatureIds are created/hashed by the new global mapping FeatureMap.java, which maintains a bidirectional mapping between feature ids and feature names. This also allowed getting rid of storing feature names in the vocabulary.
The simplified FeatureVector cause removal of all 'reportDenseFeatures'/'getNumDenseFeatures' method in the decoder and the grammar interface.
The tradition but very obscure way of flipping the sign of dense features but not sparse features was removed. The feature value in the decoder is now just the value as you see it stored at the rule.
The Rule class was changed to adhere to object-oriented principles. It now has only one constructor that requires all of its dependencies and these can not be changed later. This forces Rule creators to finalize the dependencies (deciding on an owner of the rule and the hashing of the feature vector).
Also the unused concept of the precomputableCost in a rule was removed. Rules still 'cache' their estimated cost.
The various Grammar and MemoryBasedBatchGrammar constructors were unified and a lot of old obscure code was removed.
Due to the change above, the PhraseModel feature function that fires feature values for features stored at rules is greatly simplified.
As featureVectors at Rules are final and have to have an owner, feature sharing across multiple grammars would need to be handled by a separate feature function implementation which is transparent.

This commit also updates all existing (and enabled) Unit tests which also pass. Existing regression tests do NOT work in this commit since many of the grammars are packed and would need to be re-packed.

This looks great. I put it on a new branch off 7 so that we can Travis-CI it (on the idea that 7 is its own master). Once we get all the regression tests removed and merged in from master, I'll merge this back into 7.
Tagging this on JOSHUA-265 and JOSHUA-273.


[BUG] Import rule functionality of Security Analytics not working

What is the bug?
Import rule functionality of Security Analytics not working properly.
How can one reproduce the bug?
Steps to reproduce the behavior:

Go to the 'Security Analytics' plugin's rule section under the OpenSearch dashboard.
Click on 'Import rule'.
Select or drag yml file containing Sigma rules from the local file system.
See the error Error: Only yaml files are accepted

What is the expected behavior?
Import rule functionality should accept yaml (.yml extension) files including rule fields and detection queries.
What is your host/environment?

OS: Windows
Version: OpenSearch 2.6x
Plugins: Security Analytics Plugin (SAP)

Do you have any screenshots?

hi @jinalp-crest , can you please share the yml file content so that i can retest it.

For reference, the security analytics frontend does have logic to validate the YAML content (link).
That specific error message seems to be coming from this line which suggests the file may not align with the type requirement application/x-yaml referenced on this line.
@jinalp-crest , if you could provide us with an example file that results in this error, we can troubleshoot further.


Update how to generate Block Kit Builder URL in demo page

Resolves #168. We will remove a limitation of the length for preview URL.
The classic URL query could not preview the huge generated JSON in jsx-slack demo because Slack returns 414 error. (e.g. https://speee-jsx-slack.netlify.app/#modalListOfInformationTicketApp)

New Block Kit Builder allows passing JSON through hash (#xxx) as same as our demo. It won't be prevented preview even if to pass too long URI.

Confirmed that https://deploy-preview-172--speee-jsx-slack.netlify.app/#modalListOfInformationTicketApp lets preview button work completely 😄


Update of handling of binary and percentage type KNX values

The use of 0/1 for binary objects depends on installation, a contact
sensor can have contact=1 or open=1
The same applies to percentages:  a window can be 100% closed or 100%
open.
For a more general usage of reversed values, a suffix ("R") can now be
attached to all DPT1 and DPT5 group addresses.
Please see updated KNX.md for examples and details.
Note: outdated characteristic-workaround throw an exception at boot-up:

ContactSensorStateContact1
LockCurrentStateSecured0
LockTargetStateSecured0
Please see error message and KNX.md for reference.

Thanks!


main landing page implmentation

claimed

Nice Job Alex,  I merged that into my jet-general branch then PRed and merged to main .
Need to do mobile responsiveness


Provide Arc-based constructor for parquet::util::cursor::SliceableCursor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As a user of arrow-rs, I would like to be able to inspect a parquet file stream that I have just created (e.g. to extract ParquetMetadata) before storing data to disk / cloud / anywhere else. To do so, I construct a SliceableCursor which I then feed into a SerializedFileReader. However, SliceableCursor takes its content as Vec<u8> even though it just uses an Arc<Vec<u8>> internally, so I'm required to copy the parquet data (Vec<u8>) just to inspect it.
Describe the solution you'd like
Allow SliceableCursor to be constructed from an Arc directly.
Describe alternatives you've considered
None.
Additional context
Downstream user is IOx, see here. This issue affects arrow-rs commit 94a82cd5512a9cf9bc341100b862f2ff7f3ab159.

I'm claiming this issue.


Add new setting for playing video in loop

Usage:
VideoPlayout(
          desiredState: PlayerState.PAUSED,
          showPlayerControls: true,
          aspectRatio: 9 / 16,
          loop: true, // this is new setting for loop mode
          url: "https://example.com/my-video.m3u8"
      ),

Thanks for merging 👍

Thanks for the contribution. I've pushed this to version 1.0.42


Add blackbox-exporter to apiserver and prometheus

Using blackbox-exporter we can test various networking resources. This adds the possibility to check if the VPN connection from the api-server and prometheus is running.

/cc @vlpanov


Error while running the report

Hello,
Sorry for very late responds, I have hooked up some other project. Alright, here we go, I used the classic version of the run.py and I end up with below error
[ error ]
Traceback (most recent call last):
File "src/make_xlsx.py", line 630, in
main(name)
File "src/make_xlsx.py", line 612, in main
gen_weekly_variations(workbook, header_format, val_format)
File "src/make_xlsx.py", line 201, in gen_weekly_variations
with open(IN_ABSOLUTE_COST_PER_MONTH) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'out/absolute.csv'
Any suggestions would be of great help.

I get similar error when running the script. Can you please tell me what to enter "--billing profile_name". When I ran the script with --billing default i get the same error message.
Generating xlsx file...
Traceback (most recent call last):
File "src/make_xlsx.py", line 630, in
main(name)
File "src/make_xlsx.py", line 612, in main
gen_weekly_variations(workbook, header_format, val_format)
File "src/make_xlsx.py", line 201, in gen_weekly_variations
with open(IN_ABSOLUTE_COST_PER_MONTH) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'out/absolute.csv'

Hello,
$> ./run.py --billing profile_name billing-bucket-name prefix

profile_name is default or another profile available in ~/.aws/credentials.
billing_bucket_name is you billing bucket. It has to be configured here as following:

prefix is prefix put in report config, you can get it by clicking on a report here:

Prefix here would be bills, billing being the report name.

Thanks.

I can see the same error while running the reports, can you please suggest where it's going wrong.
Command I am running-
./run.py --billing EBS esg-ebs-costing ebs-nv --ec2 EBS --xlsx-name EBS
MyError
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "src/get_ec2_data.py", line 73, in
compute_instance_costs = json.load(f)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "src/get_ec2_data.py", line 73, in
compute_instance_costs = json.load(f)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "src/get_ec2_data.py", line 73, in
compute_instance_costs = json.load(f)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "src/get_ec2_data.py", line 73, in
compute_instance_costs = json.load(f)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "src/get_ec2_data.py", line 73, in
compute_instance_costs = json.load(f)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "src/get_ec2_data.py", line 73, in
compute_instance_costs = json.load(f)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "src/get_ec2_data.py", line 73, in
compute_instance_costs = json.load(f)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "src/get_ec2_data.py", line 73, in
compute_instance_costs = json.load(f)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "src/get_ec2_data.py", line 73, in
compute_instance_costs = json.load(f)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Fetched ec2 data for all accounts in eu-north-1
Fetched ec2 data for all accounts in ap-south-1
Fetched ec2 data for all accounts in eu-west-3
Fetched ec2 data for all accounts in eu-west-2
Fetched ec2 data for all accounts in eu-west-1
Fetched ec2 data for all accounts in ap-northeast-2
Fetched ec2 data for all accounts in ap-northeast-1
Fetched ec2 data for all accounts in sa-east-1
Fetched ec2 data for all accounts in ca-central-1
Fetched ec2 data for all accounts in ap-southeast-1
Fetched ec2 data for all accounts in ap-southeast-2
Fetched ec2 data for all accounts in eu-central-1
Fetched ec2 data for all accounts in us-east-1
Fetched ec2 data for all accounts in us-east-2
Fetched ec2 data for all accounts in us-west-1
Fetched ec2 data for all accounts in us-west-2
Fetching ec2 metadata for EBS in eu-north-1...
Fetching ec2 metadata for EBS in ap-south-1...
Fetching ec2 metadata for EBS in eu-west-3...
Fetching ec2 metadata for EBS in eu-west-2...
Fetching ec2 metadata for EBS in eu-west-1...
Fetching ec2 metadata for EBS in ap-northeast-2...
Fetching ec2 metadata for EBS in ap-northeast-1...
Fetching ec2 metadata for EBS in sa-east-1...
Fetching ec2 metadata for EBS in ca-central-1...
Fetching ec2 metadata for EBS in ap-southeast-1...
Fetching ec2 metadata for EBS in ap-southeast-2...
Fetching ec2 metadata for EBS in eu-central-1...
Fetching ec2 metadata for EBS in us-east-1...
Fetching ec2 metadata for EBS in us-east-2...
Fetching ec2 metadata for EBS in us-west-1...
Fetching ec2 metadata for EBS in us-west-2...
[954326812311 - eu-north-1] Getting instances metadata...
[954326812311 - ap-south-1] Getting instances metadata...
[954326812311 - eu-west-3] Getting instances metadata...
[954326812311 - eu-north-1] Done!
[954326812311 - eu-west-2] Getting instances metadata...
[954326812311 - eu-west-1] Getting instances metadata...
[954326812311 - eu-west-3] Done!
[954326812311 - ap-south-1] Done!
[954326812311 - ap-northeast-1] Getting instances metadata...
[954326812311 - eu-west-2] Done!
[954326812311 - eu-west-1] Done!
Fetched ec2 metadata for EBS in eu-north-1
[954326812311 - ap-northeast-2] Getting instances metadata...
[954326812311 - sa-east-1] Getting instances metadata...
[954326812311 - ca-central-1] Getting instances metadata...
Fetched ec2 metadata for EBS in ap-south-1
Fetched ec2 metadata for EBS in eu-west-3
[954326812311 - ap-southeast-1] Getting instances metadata...
Fetched ec2 metadata for EBS in eu-west-2
Fetched ec2 metadata for EBS in eu-west-1
[954326812311 - ap-southeast-2] Getting instances metadata...
[954326812311 - ca-central-1] Done!
[954326812311 - ap-northeast-1] Done!
[954326812311 - eu-central-1] Getting instances metadata...
[954326812311 - sa-east-1] Done!
[954326812311 - us-east-1] Getting instances metadata...
[954326812311 - ap-northeast-2] Done!
[954326812311 - us-east-2] Getting instances metadata...
[954326812311 - us-west-1] Getting instances metadata...
[954326812311 - us-west-2] Getting instances metadata...
Fetched ec2 metadata for EBS in ap-northeast-2
Fetched ec2 metadata for EBS in ap-northeast-1
Fetched ec2 metadata for EBS in sa-east-1
Fetched ec2 metadata for EBS in ca-central-1
[954326812311 - us-east-2] Done!
[954326812311 - eu-central-1] Done!
[954326812311 - us-east-1] Done!
[954326812311 - ap-southeast-2] Done!
[954326812311 - us-west-1] Done!
[954326812311 - ap-southeast-1] Done!
[954326812311 - us-west-2] Done!
Fetched ec2 metadata for EBS in ap-southeast-1
Fetched ec2 metadata for EBS in ap-southeast-2
Fetched ec2 metadata for EBS in eu-central-1
Fetched ec2 metadata for EBS in us-east-1
Fetched ec2 metadata for EBS in us-east-2
Fetched ec2 metadata for EBS in us-west-1
Fetched ec2 metadata for EBS in us-west-2
Processing billing data (1/5 - billing diff)...
Traceback (most recent call last):
File "src/get_bill_diff.py", line 65, in
first_month = preserved_months[0]
IndexError: list index out of range
Processing billing data (2/5 - instance history)...
Processing billing data (3/5 - ec2 last month)...
Processing billing data (4/5 - ebs last month)...
Processing billing data (5/5 - s3 cost)...
Generating xlsx file...
Traceback (most recent call last):
File "src/make_xlsx.py", line 630, in
main(name)
File "src/make_xlsx.py", line 612, in main
gen_weekly_variations(workbook, header_format, val_format)
File "src/make_xlsx.py", line 201, in gen_weekly_variations
with open(IN_ABSOLUTE_COST_PER_MONTH) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'out/absolute.csv'


Adding SSL support to eventsource

Hi,
I have added ssl support for the eventsource to solve insecure errors, if the website is running on https.
Please check. Thanks a lot.
Regards,
Olaf

Thanks for the pull request! We don't actually use this service anymore, instead leveraging the nginx-push-stream-module with Nginx (which were already using for TLS termination). Here's an example conf: https://github.com/BotBotMe/botbot-web/blob/master/nginx.conf.example