Limit per-user metric cardinality

Even just by accident, it's really easy for a user to overload or hotspot an ingester right now, by either sending too many series with the same metric name, or just too many time series in general (especially when accidentally misusing a label with unbounded value cardinality).
We should have some way of limiting the user's number of series.

There's a question here of whether we want to limit the total number of series per user or per ingester. Maybe both.
From a system safety perspective, we'll want to limit the number of series per ingester. But that is hard to communicate to the user. They will want to know how many series they can create overall, because they don't understand the uneven distribution of their series over ingesters (similarly to how we stumbled over Dynamo table throughput issues with uneven table shards).
Limiting the per-user series on each ingester would be technically easiest though, because the necessary state is readily available. Given that this is necessary for basic safety, we will want to have some limit here in any case, even if it's pretty high.
I'm not sure how we would track the total number of series for a user as another limit. The distributor would either have to get stats from the ingesters on every append (probably infeasible) or the distributor would have to track metric cardinality itself. Doing full cardinality tracking in the distributor would use too many resources, but maybe it could be done approximately with HyperLogLog.

Limiting the per-user series on each ingester would be technically easiest though, because the necessary state is readily available. Given that this is necessary for basic safety, we will want to have some limit here in any case, even if it's pretty high.

Yes, I think this is the best place to start.  We can always offer users this limit as a lower bound.

Doing full cardinality tracking in the distributor would use too many resources, but maybe it could be done approximately with HyperLogLog.

Thats an interesting idea; it would need some kind of moving average as well, as cardinality over time can be virtually unlimited - we close inactive series after 1h.

What are we proposing to do when the limit is exceeded? Throw away the data cortex has received? How will a user know that (and why) this is happening?

@rade Throw away the samples and return an error to the user. For the rate-limiting case, we do the same and return a 429 Too Many Requests, which wouldn't be fully accurate here. I don't know what the best HTTP response code would be, maybe 418 I'm a teapot :)
At first, this would require a user to meta-monitor their Prometheus scraper for failed remote writes, but eventually we could notify users automatically when we see that they are being continuously denied.

We need to make it clear thats its the product of the label cardinality for a given metric thats problematic for us.  If we detect such a metric, we should black list it, but not drop the entire batch.

Getting something to show up in the Weave Cloud cortex UI would be nice. And, going totally meta... feed a metric into the instance's cortex, which the user can set an alert on :)

This is all post MVP, obviously. Let's be safe before being nice.

We could still store other samples, but should still return an HTTP error, because a 200 would not seem ok in that case. Then the user doesn't know which samples were stored, but I don't think we can do better.
Yeah, in the future we can have nice UI features and meta-metrics for this.

Then the user doesn't know which samples were stored, but I don't think we can do better.

We can say what did/didn't happen in the response body. That won't be easy for the user to track down (would the sending prom even log it?), but it's better than nothing.

The Prometheus server doesn't look at the response body at all, but yeah, theoretically a user could tcpdump it. It would not be super useful, since the series that were rejected are not special in any way, they just happened to be the first ones that were "one too much".
On a technical level, reporting these details back would require changing the gRPC response from the ingesters to include this information and the distributor to then merge it and send the failed series back to the user. Since I don't believe it'll ever be even seen by anyone, I doubt the value of that.

The Prometheus server doesn't look at the response body at all

That seems wrong. Surely it should log any errors it gets back.

the series that were rejected are not special in any way, they just happened to be the first ones that were "one too much".

What makes them special is that cortex has thrown away some of the data. And that is of interest to users, I would have thought.

On a technical level, (it's complicated)

Fair enough. Not part of the MVP them. As I said, let's be safe before being nice.

The Prometheus server doesn't look at the response body at all
That seems wrong. Surely it should log any errors it gets back.

It logs the remote write send failure based on the HTTP status code, but does not inspect the response body, or expect anything to be in it.

What makes them special is that cortex has thrown away some of the data. And that is of interest to users, I would have thought.

True. Though if they hit this situation, they will be more interested in finding out which metric of theirs is currently causing the blowup.

Fair enough. Not part of the MVP them. As I said, let's be safe before being nice.

Yup.

(prometheus) does not inspect the (error) response body, or expect anything to be in it.

That's what I meant by "wrong" :)

(prometheus) does not inspect the (error) response body, or expect anything to be in it.

That's what I meant by "wrong" :)

Well, it's not part of our generic write protocol to return anything in the response body... but anyways :)

https://github.com/weaveworks/cortex/pull/273 implemented a total series limit per user and ingester. Tom suggested also limiting the per-metric cardinality, which I'm looking at next.

@tom for checking the current number of series for a metric, the index has a nested map map[model.LabelName]map[model.LabelValue][]model.Fingerprint (https://github.com/weaveworks/cortex/blob/master/ingester/index.go#L13), but I think it'd be unwise to iterate through it and add up the number of fingerprints at the leaves for every sample we ingest. So I propose adding another seriesPerMetric map[model.LabelName]int map to the index that just tracks how many series there currently are for which metric. Sounds good?

+1
On Tue, Feb 7, 2017 at 4:25 PM, Julius Volz<EMAIL_ADDRESS>wrote:

@tom https://github.com/tom for checking the current number of series
for a metric, the index has a nested map map[model.LabelName]map[model.
LabelValue][]model.Fingerprint (https://github.com/
weaveworks/cortex/blob/master/ingester/index.go#L13), but I think it'd be
unwise to iterate through it and add up the number of fingerprints at the
leaves for every sample we ingest. So I propose adding another seriesPerMetric
map[model.LabelName]int map to the index that just tracks how many series
there currently are for which metric. Sounds good?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/weaveworks/cortex/issues/47#issuecomment-278052330,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAbGhXiVXylqy-fp_L-LW_AbLlzm2-8kks5raJrdgaJpZM4KT3Hx
.


Fix sending emails to default_recipient when it's a group

E-Mailtemplates can have default recipients their emails are sent to during the automatic email triggers. this was broken in a way that only the first user in the list of groups would get the email. This change fixes it.
the PR also has some small changes to make the project Django 4.0 compatible.

This is partly a duplicate of #388. You found more cases though. (I haven't had a closer look).
We really have to find a way to avoid duplicate work. Someone has to take care of reviewing pull requests!

@xi Oh, you're right. I completely missed that. I'll try to be more on top of reviewing pull requests again.
I merged your PR in and then fixed the conflicts with this branch, so it should now hopefully be correct


Truma LevelControl (gas level) support?

Hi Magnus!
I have a Truma LevelControl attached to my gas bottle and can view the gas level in the Truma app (only when the iNet box is connected, which communicates with the LevelControl via Bluetooth) or in the LevelControl app (also from Truma) that communicates with the LevelControl also via Bluetooth, but directly from the mobile device, i.e. without the need of the iNet box.
Since the ESP32 is fitted with Bluetooth, too, I wonder what it takes to add support for the LevelControl.
Do you maybe have some advice how I could sniff the (Bluetooth) data traffic between the LevelControl and a) my mobile, or b) my ESP32? Or is there something else to be done to find out more about it?
Thanks for sharing your thoughts!

On iOS i use nRF Connect... for Android there should be similiar apps. You should try to scan with LevelControl in range to get first details like MAC, Manufacturer Data and after connecting to the device the advertised Services.

the uuids are not secrets, on the contrary, they describe the various services offered, please provide also them...
FYI:
R: Read Value
W: Write Value
N: Notification
I: Indication

ok, looks good... as you can see the 128bit UUIDs are quite generic chosen for the advertised services... keen to see the data behind the services... please try to read for every uuid.
P.S.: I am tomorrow on our camper yard, seems i will try to scan surroundings for LevelControls ;-)

Would be good to have a screenshot from the official app at the same time. I don’t know what kind of data is provided? Is it just level or maybe some more data? What can be configured in the app?
There are writable services… do the value change if you change something within the app?

I mean official Truma app

we will also need some more data points to see when, what data changes... Static view is quite complicated for reverse engineering

Yes, makes sense… if you cross check with Mopeka implementation there may be much calculation needed to do. Not sure how successful we will be

Hi. Just wondering if anyone has any update on LevelControl? That would be a nice addition to this project - to receive an alarm on low gas level with no Truma App, etc required......


Tests for AnagramControllerSpec adding multiple words

The only test for adding multiple words in AnagramControllerSpec is  commented out, we need to check to make sure when we add multiple words that they are added correctly. The test that is commented out does not actually check to see if the words that are entered into the db are correct, it just checks that the http status is okay.
I suspect the issue with this is not knowing how to get the id's out of the context when they are passed back through the context

This is still an issue as of 11/28. The test is called addListWords()


Release proposal: v1.36.0

It's been a little over a month, and it seems like it would be good to get https://github.com/libuv/libuv/pull/2786 out the door. I should have time to do this today if no one objects.

Notable changes:

gyp support has been removed.
recvmmsg messages are returned in the correct order.
IBMi cmake support has been added.
uv_fs_lutime() has been added.

CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/1855/
libuv + Node.js Integration CI: https://ci.nodejs.org/view/libuv/job/libuv-in-node/131/

It looks like the libuv-in-node job needs some work. It's currently failing across the board. I'm guessing it's related to libuv removing gyp support.

It looks like the libuv-in-node job needs some work. It's currently failing across the board. I'm guessing it's related to libuv removing gyp support.

For posterity, here's an example failure:
https://ci.nodejs.org/job/node-test-commit-linux/34305/nodes=centos7-64-gcc8/console
01:58:15 + make run-ci -j 2 V=1
01:58:16 python ./configure --verbose
01:58:21 gyp: /home/iojs/build/workspace/node-test-commit-linux/nodes/centos7-64-gcc8/deps/uv/uv.gyp not found (cwd: /home/iojs/build/workspace/node-test-commit-linux/nodes/centos7-64-gcc8) while loading dependencies of /home/iojs/build/workspace/node-test-commit-linux/nodes/centos7-64-gcc8/deps/uvwasi/uvwasi.gyp while loading dependencies of /home/iojs/build/workspace/node-test-commit-linux/nodes/centos7-64-gcc8/node.gyp while trying to load /home/iojs/build/workspace/node-test-commit-linux/nodes/centos7-64-gcc8/node.gyp
...

The job currently rips out the deps/uv folder and replaces it with a libuv checkout so (as it stands) is going to lose the uv.gyp file:
git rm -rf -- deps/uv/
rm -rf deps/uv/ # to delete deps/uv/.git
mkdir deps/uv/
cd deps/uv/
git init
git fetch --depth=1 --progress "https://github.com/${LIBUV_REPOSITORY}.git" +${LIBUV_REFERENCE}:refs/remotes/origin/_jenkins_local_branch
git checkout refs/remotes/origin/_jenkins_local_branch
rm -rf .git
cd ../../

git add -- deps/uv/

I've updated the job so that it copies out the gyp files before the libuv update and then moves them back in again:
mkdir deps/uv-tmp
cp deps/uv/*.gyp deps/uv/*.gypi deps/uv-tmp/ # save gyp files
git rm -rf -- deps/uv/
rm -rf deps/uv/ # to delete deps/uv/.git
mkdir deps/uv/
cd deps/uv/
git init
git fetch --depth=1 --progress "https://github.com/${LIBUV_REPOSITORY}.git" +${LIBUV_REFERENCE}:refs/remotes/origin/_jenkins_local_branch
git checkout refs/remotes/origin/_jenkins_local_branch
rm -rf .git
cd ../../
mv deps/uv-tmp/* deps/uv/ # restore gyp files
rmdir deps/uv-tmp
git add -- deps/uv/

One thing to watch out for for future libuv releases is if files are added/removed which would require updates to the gyp files in Node.js. To use the job in that scenario one option would be to run with NODE_REPOSITORY/NODE_REFERENCE pointing at a fork/branch of Node.js with the updated gyp files:
libuv + Node.js Integration CI: https://ci.nodejs.org/view/libuv/job/libuv-in-node/133/

Thank you for updating the job @richardlau.
node-test-commit-linux-containered still failed, but I'm comfortable moving forward with the release now.


Feature Request: CSS Code Splitting

Greetings. Fantastic job and well respected repo.
I would like to open a discussion about CSS code splitting based on actually used classes by JS files. The split CSS files can be named after their corresponding JS files.
This will allow for better performance on initial and later page loading.
It would be also great if this is integrated with Webpack workflow through a separate plugin.
Thank you.

Anyone interested to discuss the feature?

No plans to implement this in Tailwind itself as I think it's sort of outside the scope of this project. Seems like something better handled by a general-purpose tool for splitting any CSS based on usage in your templates. Thanks for the suggestion!


KAFKA-6004: Allow authentication providers to override error message

@ijuma Can you review please, thanks.

@ijuma Thank you for the review. Have updated the code and added upgrade note.

@ijuma Thank you for the review, will merge when builds pass.


Distinguish movable vs unmovable ~/.aws paths

After following the existing instructions for ~/.aws I still got the same help because the un-movable ~/.aws/cli and sso still existed. This PR gives more specific instructions/info for the different paths.

Thank you!


Calculate weight of a person

This script calculates the weight of a user by taking the input mass of a person on any one of 9 planets.

You are now blessed with Open Source Super Powers!


Template changes to keep dependencies out of source control

Moves concatenated Capital Framework Less to
/src/vendor/capital-framework/capital-framework.less
Updates grunt:bower task to collect static assets from Bower
dependencies in a static folder within /src/vendor
Adds a grunt:copy subtask for copying stuff from
/src/vendor/static/ to /dist/static/

Closes #55

Thank you!

Can I get one more :+1: on this, please?

:+1:


Provide hint to user that service worker has new updates

We should really be doing something with the service worker when cached items are updated, see https://github.com/GoogleChrome/sw-precache/blob/7688ee8ccdaddd9171af352384d04d16d712f9d3/demo/app/js/service-worker-registration.js#L51 and the 3rd bullet here https://github.com/GoogleChrome/sw-precache#considerations.

http://stackoverflow.com/questions/41422474/new-version-available-with-service-worker-and-sw-precache might be good to know too.

Fixed in https://github.com/mozilla/brackets/pull/691


implement brute filter

this is one brute filter for icons. need change for use react component

this not working yet.

to use the filter I created one gist


Stop using a git dependency for cw-multitest

I saw that the cargo audit build was breaking, and that we also couldn't cargo update on main:
Updating crates.io index
    Updating git repository `[https://github.com/CosmWasm/cw-plus`](https://github.com/CosmWasm/cw-plus%60)
error: failed to select a version for `cosmwasm-std`.
    ... required by package `cw-multi-test v0.14.0 (https://github.com/CosmWasm/cw-plus?branch=main#24af1b9b)`
    ... which satisfies git dependency `cw-multi-test` of package `cw-core v0.2.0 (/home/runner/work/dao-contracts/dao-contracts/contracts/cw-core)`
    ... which satisfies path dependency `cw-core` of package `cw-admin-factory v0.2.0 (/home/runner/work/dao-contracts/dao-contracts/contracts/cw-admin-factory)`
versions that meet the requirements `^1.1.0-rc.1` are: 1.1.0-rc.2, 1.1.0-rc.1

all possible versions conflict with previously selected packages.

  previously selected package `cosmwasm-std v1.0.0`
    ... which satisfies dependency `cosmwasm-std = "^1.0.0"` of package `cosmwasm-storage v1.0.0`
    ... which satisfies dependency `cosmwasm-storage = "^1.0.0"` of package `cw-admin-factory v0.2.0 (/home/runner/work/dao-contracts/dao-contracts/contracts/cw-admin-factory)`

failed to select a version for `cosmwasm-std` which could resolve this conflict

This is because we were using a git dependency for this dev dependency and a breaking change was merged.
After fixing this, I also did a cargo update and pushed the most recent lock file.

Codecov Report

Merging #476 (2038dad) into main (17f0488) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #476   +/-   ##
=======================================
  Coverage   95.92%   95.92%
=======================================
  Files          34       34
  Lines        5477     5477
=======================================
  Hits         5254     5254
  Misses        223      223

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


compat: selection list not working in compatibility mode

Fixes the selection list not working in M1 compatibility mode.
Fixes #6746.

Addressed the feedback @jelbourn.


find-bugs: Fix KeyError: 'microshift'

This kind of advisory doesn't exist prior to 4.12. Needs to skip if it doesn't exist in a release.

/lgtm


How does browser identification work under dovekey for frequency-capping purposes?

That is, how is a Dovekey server able to count that a particular browser instance has seen an ad too many times? It seems that browsers will be required to provide a strong signal, albeit an encrypted one, that distinguishes one browser from another.

Thank you for your question.
The details need to be worked out with browser vendors. The high level idea is that, whenever an ad is rendered, the ad tells the browser its associated FCAP ID and FCAP rules. For each FCAP ID, The browser looks back the most recent N minutes/hours/days defined by the FCAP rule, and counts the number of times that ads were rendered with the FCAP ID.
For details please see Section Frequency capping (FCAP).


OS: Added CoreMidi Support

Hello! This currently builds the qtplaysmf demo, though I'm otherwise unable to test this for now with my Mac. Besides only supporting normal midi messages for
QMidiIn, this should add full support for CoreMIDI in QMidi.

At last! This has been on the wishlist since 2013 when I first posted this library. Thanks!

No problem! I wanted to learn a bit more about MIDI anyway! :D

Hey @waddlesplash! While this should be functional now, sadly, some APIs in CoreMIDI that I was using for MIDI handling is going to deprecated in the next version of apple’s operating systems (Revealed today actually, the irony :D). Should I try to prepare for these new APIs? (The APIs are still in beta however)

Well, for now, let's leave this as-is.


EnableFiltering: false just for some columns messes up the cell

I'm using  ui-grid - v3.0.0-rc.21 - 2015-04-28
I have made the background of the header dark, by adding the css:
.ui-grid-header-cell .sortable {
background:#3E3E3E;
}
I have enabled filtering in all columns but one (which also has a string of spaces for the name because I didn't want a name displayed, not ideal, but it works). The filtering capability disappears, but I get a white box on the cell, instead of being dark like the rest of the cell.
$scope.gridOptions = {
data: 'data',
enableColResize: true,
enableSorting: true,
enableCellEdit: false,
enableFiltering: true
};
$scope.gridOptions.columnDefs= [ {
field: "subject",
name: "Subject",
}, {
name: "   ",
enableFiltering: false
}, {
field: "id",
name: "Id",
}];
A similar thing happens when I set enableSorting: false, the top portion of the cell goes white, ignoring the modifications i made to the css.
Not sure if I am doing something wrong, or how to solve this issue. Any help would be much appreciated. Thanks!

@SalasSanchez Just a note: properly formatting your code when filing an issue really makes it about 1000x easier to read and understand.
I went ahead and edited this one for you but you can check out how to set up syntax coloring and so on here: https://guides.github.com/features/mastering-markdown/
Hope that helps!

Also, would you be able to set up a quick plunker demonstrating the issue? All that it would need is the column header styles set up as you describe.

Good point, sorry about that.
I am trying to reproduce the issue on plunker. Will update when/if I manage.

Ok, here we go. (First time doing this, so let me know if this link does not work for you)
http://plnkr.co/edit/wSNgs0cZvjmEoAI8wvwi?p=preview

If you uncomment the "enableFiltering: false" on the column defs you will see what i mean. Similar thing if you uncomment "enableSorting: false".
Thanks a lot!

@SalasSanchez So do you just want the header to be dark?  Will this not work?
.ui-grid-header-cell {
    background:#3E3E3E;
}

Hah. I could wear I had tried this. Ok, great. Thanks!


Build containers for master using ubi[8-9]/python311

https://catalog.redhat.com/software/containers/ubi9/python-311/63f764b03f0b02a2e2d63fff

Make sure this happens automatically in the future based on the product config, similar to how it's done for the el version
apply this for iso and OSS
make sure that master (on both repos) has el9 first in the list (first is used to build docker images)

Closed by:

https://github.com/inmanta/inmanta/pull/118
https://github.com/inmanta/inmanta-service-orchestrator/pull/432
https://github.com/inmanta/irt/pull/1769


Missing encoding in pythonhighlight-style

By default, it depends the machine...
Accents does not work in utf8econding on windows PC.

All machines use utf8 nowadays. There is nothing much more to add in the package to declare that one is using utf8, as far as I know. It would help if you gave some minimal working example showing the problem.

line 98 in your file

It was actually prepared in my local version, I had forgotten about it. Good call. 👍
Fixed in 2fa0ef5.


Adaptive Card Viewer - Doesn't show AdaptiveCard JSON

Info
Platform: MacOS
VS Code: 1.35.1
Extension: Adaptive Card Viewer v1.1.3
Issue
VS Code: Copy/paste Adaptive Card example JSON in new document
VS Code: Save as card.json
Language: JSON (auto-detected)
Press CTRL-V then A:  Nothing happens
Change language to: JSON with comments (jsonc)
Press CTRL-V then A:  Error:

Active editor doesn't show a AdaptiveCard JSON document.

Is there, besides installing the "Adaptive Cards Viewer" plugin anything else I have to do to make it work/recognize adaptive card json?

@matthidinger do you have ownership of the VS Code extension?

@matthidinger another one around the AC Viewer VS extension/plugin!

The extension actually lives in our repo, ~/source/vscode
I just realized it uses the old microsoft-adaptivecards rendering library, and the publisher is tomlm, so we'd have to do some research on how to update that with the store.

This should be fixed with the v2.0.0 Extension, please let us know if it's still happening!


Entrypoint test does not test what it needs too

Expected Behavior
The test should check that something specific is actually showing up on the entry-point.
Current Behavior
#54
The test calls the Django WSGI layers directly and attempts to test the HTTP connection with it, instead of checking the page view.
Acceptance Criteria
The test should test the actual logic of the page (input\output\what is shown).
Failure Information (for bugs)
The test does should test the actual logic of the page.
##BTW
It was I who merged this PR, sorry about the mess but I'll need you to fix it.

@Omeramsc i think you can close that issue


login issues

Describe your problem and - if possible - how to reproduce it
every time that I try to login, I get a message that says "oops. Something has gone wrong"
Add a Link to the page with the problem
www.freecodecamp.org
Tell us about your browser and operating system

Browser Name: Google chrome
Browser Version:
Operating System: Windows 10

If possible, add a screenshot here

@wesgray76 It will be helpful if you attach a screenshot or provide some more details about how this issue can be reproduced otherwise it will be difficult to solve this issue.

I have been fighting this all day

Did you try the other option : "If you previously signed in ....twitter or linkedin....add email address" ?

keeps kicking me back saying something went wrong

this is what happened when I tried to login via twitter

I really don't know what's wrong. I am able to sign in and sign out. Hopefully someone else will look into it soon.

Why did you enter another email-id ?

to double check to see if it was an email issue.

the weird thing is, I can access it on my Android phone. However, it is difficult to complete the exercises.

So that should mean that you can't create a new account or can't login to any account if you have multiple accounts.

Look into issue #17475 . Hopefully @raisedadead can fix your account.

cleared the cookies. Did not work.

is there anyway I can bring this issue to his attention without creating a new issue?

He will get a notification whenever he will open github. You can also mail him regarding your problem at<EMAIL_ADDRESS>. I thought you could find his email-id in his comment on the issue #17475 .

I did email him. Thank you for your help.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: mpmaan<EMAIL_ADDRESS>Sent: Monday, June 18, 2018 2:46:30 AM
To: freeCodeCamp/freeCodeCamp
Cc: Wes Gray; Mention
Subject: Re: [freeCodeCamp/freeCodeCamp] login issues (#17614)
He will get a notification whenever he will open github. You can also mail him regarding your problem at mrugesh<EMAIL_ADDRESS>. I thought you could find his email-id in his comment on the issue #17475https://github.com/freeCodeCamp/freeCodeCamp/issues/17475 .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/freeCodeCamp/freeCodeCamp/issues/17614#issuecomment-397968272, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbhG3hE_r9D5DpgAKOBAT16OpJNU8qr-ks5t91rWgaJpZM4UrFI-.

@freeCodeCamp/moderators Can someone please assist ?

@wesgray76 are you using an VPN? Can you try logging in from another device on the same network and see if the problem persists? When it comes to network issues it can be extremely hard to debug exactly what’s going wrong, but there are a few things you can try.

shut down machine and restart it
if you’re using WiFi try using Ethernet instead (and vice versa if you’re already using Ethernet)
restart router

Aside from this, your problem could quite possibly be a bad server. There is never 100% up time so it could’ve just been an unlucky coincidence.
Also maybe just give it 24hours and it’ll fix itself (or someone will fix your FreeCodeCamp account).

I don't know what a VPN is. I am able to access FCC from my Android phone. However, the text is so small that I have a hard time doing the challenges.

 A problem was found and fixed. However, I still wasn't able to login.

Hi @wesgray76 thanks for the issue report. Sorry about the delay, I just returned from a long weekend. Looking into this. I'll revert on your email.

@Ethan-Arrowood @mstellaluna @mpmaan Thanks a lot for pitching in.


Github Actions-like CI/CD files

Hi
Recently I discovered https://github.com/nektos/act which tries to parse and execute github actions files (.github/workflows).
The tool is written in Go
Thought about using github actions workflows within gitea similarily they do in github, so here I am creating feature issue for this :)
Example screenshots
gitea:

github:

--

Thanks for this request. Currently we are attempting to keep the scope of gitea limited as we only have so much developer capacity for the project and recommend utilizing a purpose built CI/CD tool (there are several that support Gitea listed here: https://docs.gitea.io/en-us/ci-cd/). We are very happy with Drone specifically and use it for the Gitea project itself (some Gitea contributors also contribute to drone)
Perhaps we will revisit this in future, but for now I will close this.


Add an id for the re-frame-trace div

This will allow you to grab it later on when re-rendering it if you're developing re-frame-trace. The id should be sufficiently unique to be unlikely to collide with anything else.

Fixed in #25.


setting Fps to 10, Output Fps is still 30

I am using master branch demo.
Then I added in the demo:
    rtmpStream.videoSettings = [
        "width" : 120,
        "height" : 160,
        "fps" : 10,
    ]

And then I play the output with rtmp://<IP_ADDRESS>:14000/hls/movie
Unfortunately the output Video is still 30 fps

fps not supported yet.
I changed api. see https://github.com/shogo4405/lf.swift/commit/9c6c9bb4a7610605388bd3873e6ff6080306ee93 debugging now.
rtmpStream.captureSettings = [
    "fps" : 15,  // 29.97
]

9c6c9bb
oops. Wowza Error.
Zero sized function (client:1671870522:FME/3.0 (compatible; FMSc/1.0)): type:20 size:0:

released 0.3.1


I want you to the mouse cursor to be a pointer when hovering a desktop app

its not pointer in real win11


hebi_cpp_api_ros: 2.0.1-1 in 'kinetic/distribution.yaml'

Increasing version of package(s) in repository hebi_cpp_api_ros to 2.0.1-1:
upstream repository: https://github.com/HebiRobotics/hebi_cpp_api_ros.git
release repository: https://github.com/HebiRobotics/hebi_cpp_api_ros-release.git
distro file: kinetic/distribution.yaml

hebi_cpp_api

Updated to correctly set aarch64, armhf, and i386 library path on ROS buildfarm
Contributors: Matthew Tesch

Sorry - v2.0.1-0 had failed for aarch64, armhf, and i386, so this is a quick patch for that.  Fixed by querying CMAKE_LIBRARY_ARCHITECTURE


[Usage] Error occurs on WebServer startup: "Exception in ASGI application"

When did you clone our code?
I cloned the code base after 5/1/23
Describe the issue
Issue:
In my environment (Arch Linux and Windows 11), when I start the Web server and access it from the browser, I encounter the following error. As a result, the chat window doesn't display, and I cannot use it properly.
To address this issue, I manually installed gradio_client based on information found online, and now it works fine. Perhaps the definition in pyproject.toml might be incomplete.
pip install gradio_client==0.2.7

I also tried both the latest commit 6cea223 and the commit before Release v1.0.0 7ace501, but encountered the same error.
Command:
python -m llava.serve.gradio_web_server --controller http://localhost:10000 --model-list-mode reload --port 7862

Log:
python -m llava.serve.gradio_web_server --controller http://localhost:10000 --model-list-mode reload --port 7862
[2023-07-21 13:29:47,707] [INFO] [real_accelerator.py:110:get_accelerator] Setting ds_accelerator to cuda (auto detect)
2023-07-21 13:29:48 | INFO | gradio_web_server | args: Namespace(host='<IP_ADDRESS>', port=7862, controller_url='http://localhost:10000', concurrency_count=8, model_list_mode='reload', share=False, moderate=False, embed=False)
2023-07-21 13:29:48 | INFO | gradio_web_server | Models: ['LLaVa-7B-v0']
2023-07-21 13:29:48 | INFO | gradio_web_server | Namespace(host='<IP_ADDRESS>', port=7862, controller_url='http://localhost:10000', concurrency_count=8, model_list_mode='reload', share=False, moderate=False, embed=False)
channel 3: open failed: connect failed: Connection refused
2023-07-21 13:29:50 | INFO | stdout | Running on local URL:  http://<IP_ADDRESS>:7862
2023-07-21 13:29:50 | INFO | stdout |
2023-07-21 13:29:50 | INFO | stdout | To create a public link, set `share=True` in `launch()`.
2023-07-21 13:29:50 | ERROR | stderr | ERROR:    Exception in ASGI application
2023-07-21 13:29:50 | ERROR | stderr | Traceback (most recent call last):
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
2023-07-21 13:29:50 | ERROR | stderr |     result = await app(  # type: ignore[func-returns-value]
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     return await self.app(scope, receive, send)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/fastapi/applications.py", line 289, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     await super().__call__(scope, receive, send)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     await self.middleware_stack(scope, receive, send)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     raise exc
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     await self.app(scope, receive, _send)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/middleware/cors.py", line 83, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     await self.app(scope, receive, send)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     raise exc
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     await self.app(scope, receive, sender)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     raise e
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     await self.app(scope, receive, send)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
2023-07-21 13:29:50 | ERROR | stderr |     await route.handle(scope, receive, send)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
2023-07-21 13:29:50 | ERROR | stderr |     await self.app(scope, receive, send)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
2023-07-21 13:29:50 | ERROR | stderr |     response = await func(request)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/fastapi/routing.py", line 273, in app
2023-07-21 13:29:50 | ERROR | stderr |     raw_response = await run_endpoint_function(
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
2023-07-21 13:29:50 | ERROR | stderr |     return await run_in_threadpool(dependant.call, **values)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
2023-07-21 13:29:50 | ERROR | stderr |     return await anyio.to_thread.run_sync(func, *args)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
2023-07-21 13:29:50 | ERROR | stderr |     return await get_asynclib().run_sync_in_worker_thread(
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
2023-07-21 13:29:50 | ERROR | stderr |     return await future
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
2023-07-21 13:29:50 | ERROR | stderr |     result = context.run(func, *args)
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/gradio/routes.py", line 289, in api_info
2023-07-21 13:29:50 | ERROR | stderr |     return gradio.blocks.get_api_info(config, serialize)  # type: ignore
2023-07-21 13:29:50 | ERROR | stderr |   File "/home/kznrluk/.conda/envs/llava/lib/python3.10/site-packages/gradio/blocks.py", line 518, in get_api_info
2023-07-21 13:29:50 | ERROR | stderr |     serializer = serializing.COMPONENT_MAPPING[type]()
2023-07-21 13:29:50 | ERROR | stderr | KeyError: 'dataset'

After re-cloning the repository and recreating the conda environment, I added gradio_client==0.2.7 to pyproject.toml. Following the instructions in README.md, everything now starts up without any issues. I have submitted a pull request, so please review it at your convenience.
https://github.com/haotian-liu/LLaVA/pull/287

Thanks for your feedback! I'll close this issue for now, and we can discuss in the thread within your PR. Thanks!


Use automatic module mappings in Openstack provider

This PR changes the provider to use automatic module mappings and fixes a few module names.
fixes https://github.com/pulumi/pulumi-openstack/issues/690

@VenelinMartinov It looks like you need to regenerate the python SDK.


KAFKA-5561: Rewrite TopicCommand using the new Admin client (** WIP do not merge **)

Start on porting TopicCommand from Scala to Java using Admin Client API as well
Please do not merge it's just for evaluation with other contributors and committers as starting point for a migration from Scala to Java for tools. Other considerations here :
https://issues.apache.org/jira/browse/KAFKA-5536

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6010/
Test FAILed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5995/
Test FAILed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6010/
Test FAILed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6025/
Test FAILed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6012/
Test FAILed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6027/
Test FAILed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6013/
Test FAILed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6028/
Test FAILed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6029/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6014/
Test PASSed (JDK 8 and Scala 2.12).

@ijuma do you have any comments on this ? I'd like to continue having your "ok" as the way that we could apply for the other tools to migrate from Scala to Java.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6046/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6061/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6122/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6107/
Test PASSed (JDK 8 and Scala 2.12).

@ppatierno do you have any updates on this? What's remaining on removing the WIP status? Is there anything I can help with?

@viktorsomogyi the work for providing common classes for Java command line tools is in the #3453
I hope that after the latest huge release, @ijuma or other committers will find time to review the PR another time after my latest requested changes. After got that PR merged I can move on using that stuff for continuing this PR.

FAILURE
7942 tests run, 5 skipped, 1 failed.
--none--

SUCCESS
8050 tests run, 5 skipped, 0 failed.
--none--

This has been done in https://github.com/apache/kafka/commit/9af1e74b5e94536ebf2526af82d9d585a0e1e820. Closing


[core] Bump React to 18.3.1

Cherry-pick of https://github.com/mui/material-ui/pull/42047 + bump of @testing-library/dom and @testing-library/react.
We're backporting all changes to support React 18.3.1 from next to master. Changes to backport from next to be able to merge this PR:

[x] https://github.com/mui/material-ui/pull/42847 (original PR)
[x] https://github.com/mui/material-ui/pull/42849 (original PR)
[x] https://github.com/mui/material-ui/pull/42850 (original PR)
[x] https://github.com/mui/material-ui/pull/42853 (original PR)
[x] https://github.com/mui/material-ui/pull/42851 (original PR)
[x] https://github.com/mui/material-ui/pull/42852 (original PR)
[x] https://github.com/mui/material-ui/pull/42813 (original PR)
[x] mui-joy/Input.tsx proptypes TS issue. Included in this PR (see CI log).
[x] Update react-simple-code-editor to 0.14.1 to avoid defaultProptypes warning. Included in this PR.
[x] Fix spread key warnings

[x] https://github.com/mui/material-ui/pull/42854 (original PR)
[x] https://github.com/mui/material-ui/pull/42855 (original PR)
[x] https://github.com/mui/material-ui/pull/42856 (original PR)

Finally a bump of @testing-library/dom and @testing-library/react was required to have a compatible React 18.3.1 testing setup, otherwise tests would fail due to some wrong types.


Fix problem in variant annotation export

Describe the bug
Variant annotation export can crash on empty attributes.
To Reproduce
See screenshots.
Expected behavior
Render page / ignore empty fields.
Screenshots

Additional context
N/A

Not resolved yet.


PartyTown support

Request / Idea
Page speed insights is complaining about Google Analytics module blocking the main thread. I figured that Partytown web worker can help avoid blocking the main thread when using analytics.
Is there any chance it could be supported out of the box?
Additional Context
Adding a new property to tell the set up to use partytown.
https://partytown.builder.io

I suggest checking out the repo / create a fork with PR and explore if it is possible.
If you found any solution, you can open a PR in this or the core repo

I just read the source code and found this
Pass a scriptType field to the options with text/partytown

I just read the source code and found this
Pass a scriptType field to the options with text/partytown

Does this mean it can be closed?

It seems so. But I first should try it. I honestly forgot about this and don't have all the details on my head.


Feat: API endpoint for creating users (POST /users)

Feature Description
It would be great to have an api endpoint for registering new users via the API.
We're particularily interested in adding users from an external OIDC service programatically as we use gitea as an internal backend-like service and can't require users to click the "Complete Account" Button in the UI after logging in for the first time.
Screenshots
No response

Maybe POST /admin/users can help?

How come I did not see this endpoint? Never mind, that's what I was looking for!
Thanks!


When this package usefull

Hi , Im actually working on the site with app, i have created a laravel backend with domain api.something.com, and my website is on the www.something.com and an app for this also. For xsrf anit attack laravel has a way as documented here   ... So im trying o get the cookie from api.something.com and setting the XSRF header while sending post request to api.something.com but its not working because cookies of api.something.com can be accessed by only the same domain so its not working, then really im worry that what is the use of this package. I mean which header to be set from where.

Hi Pavan, I'm still confused what your question is?

Hi @pasupulaphani , please give a use case of this package.


Part I and Part II of "Hello, Xamarin.Forms" don't match

In "Part 1: Quickstart", you build a notes app.  However, when you continue on to "Part 2: Deep Dive", it begins with "In the Xamarin.Forms Quickstart, the Phoneword application was built", and continues to talk about a completely different app from the one in Part I.

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

ID: 540c35eb-3db5-7e73-e6eb-07c4b70df1b0
Version Independent ID: d8bd33e1-164d-2b2a-75de-42a95c75e6ad
Content: Xamarin.Forms Deep Dive - Xamarin
Content Source: docs/xamarin-forms/get-started/hello-xamarin-forms/deepdive.md
Product: xamarin
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Thanks for your feedback, @bpechkis. We are in the process of rolling out a completely new tutorial based on the Notes app (which will completely replace Phoneword). The new part 2 page will be published early in the new year. I hope you found the Notes page and sample useful?


Preview window doesn't render XML file correctly

Microsoft PowerToys version
0.64.1
Installation method
GitHub
Running as admin
No
Area(s) with issue?
File Explorer: Preview Pane
Steps to reproduce
When you try to preview this file (https://file.io/s9rHE0tTOVLg), you get a preview like in the screenshot below.

Setup is as follows:

✔ Expected Behavior
Beautiful syntax highlighting
❌ Actual Behavior
No syntax highlighting and replacement characters
Other Software
No response

First quick thought is the encoding. Maybe @Aaron-Junker can explain better

@aerodynamica Thank you for this bug report. What encoding uses this xml file? Do other files work?
/needinfo

The encoding is UTF-16 LE.
When I open the file with Visual Studio code it shows the syntax highlighting just fine.

@aerodynamica Do any of the optional settings (the checkboxes) influence the rendering?

@Jay-o-Way I tested with a file where all the content is on a single line.
The first checkbox influences the rendering by removing the vertical scrollbar and going to the next line when the line is filled. It doesn't solve the problem of the replacement characters.
The second checkbox doens't influence the rendering. It also doesn't solve the problem of the replacement chararcters.

The work associated with this issue has been released as part of the 0.76 sprint. Please update PowerToys to the latest. https://github.com/microsoft/PowerToys/releases


Remove, hide or unstablize deprecated API

Removed all deprecated API if possible.
Hid all deprecated API if possible.
Some notable changes worth mentioning:

DefaultHttp{Request,Response} has been moved to internal.common.
Renamed DefaultRpcResponse to CompletableRpcResponse and left only
the default constructor.
Removed http from RequestContextExporter and its related classes,
e.g. httpRequestHeaders -> requestHeaders
Fixed bugs where RequestContextAware{Future,Promise,ProgressivePromise}
does not return itself but its delegate.

removeListener(s) now throws UnsupportedOperationException,
because there's no way to remove the wrapped listener by reference.

Moved RequestContext.makeContextAware(GenericFutureListener) to
RequestContextAwareFutureListener and RequestContextAwareProgressiveFutureListener.
Fixed a bug where RequestContextExporter.attributes() throws an exception or a map with incorrect aliases.

Note that I did not remove:

*RequestContext.set*Timeout*() because we might undeprecate them soon.
MoreNamingConventions to give users more time to migrate.

Still LGTM :-)

Thanks for reviewing!


dnd issue

Hello!
I am using the dnd plugin.
Here's the problem I am having...
The check_callback function triggers all the time even if I am draging over the same node.
Is it possible to detect if the node, I drag over, has changed?

Also I know that check_callback should return true or false. But now I need to decide it on the server side, so I have to send an ajax request inside check_callback and return what the server responses. How do I do that?

check_callback can not be used with ajax - it needs a sync response. Complex rules can be evaluated when the server receives the move_node request, if the complex rules fail - return an error and refresh the tree.
As for multiple triggers - you can process that in your callback - remember the last node and if it is the same node - return the previous return value.


Support --no-sanbox Dev Options

Clear and concise description of the problem
I got the following error message when running "npm run dev" command in linux OS.
The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.
Suggested solution
It should be great if there is a way to pass "--no-sandbox" option to "electron" process.
Alternative
No response
Additional context
No response
Validations

[X] Follow the Code of Conduct.
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

@khoetran This option(--noSandbox) will be supported in the next version soon. https://github.com/alex8088/electron-vite/commit/7369960b998cfb13cc7a46aa2d540956c28a379e

new ver 1.0.29 is out 🎉


Add support of Azure Open AI for Paste with ai

Description of the new feature / enhancement
Add support for in Azure deployed Azure open ai Instances. This would require the configuration of an endpoint (*.openai.azure.com) and a "deployment name" additionaly to the API Key.
Scenario when this would be used?
When you are using a deployed version of Azure OpenAI and possibly don't have a OpenAI pro license. This would also enable for a Pay as you go - billing
Supporting information
https://learn.microsoft.com/en-us/azure/ai-services/openai/
To my knowledge the existing OpenAI SDKs should also support the Azure Open AI instances with according configuration so this might be a easy improvment to ship.

/dup #32960


Debugging Azure function Failed to attach (System.Private.CoreLib: The given key 'LogType' was not present in the dictionary)

I am implementing a simple Azure function in VS Code using BlobTrigger and using Python 3.7.3.
The function is just the default created by VS Code.
I am not able to run it since VS Code gives
An unhandled exception has occurred. Host is shutting down.
System.Private.CoreLib: The given key 'LogType' was not present in the dictionary.

VS Code also opens a popup Failed to attach (connect ECONNREFUSED <IP_ADDRESS>:9091)
Here is the output from terminal
> Executing task: .venv\Scripts\python -m pip install -r requirements.txt <

Requirement already satisfied: azure-functions in d:\epiq\code\functions\blob_trigger_add\.venv\lib\site-packages (from -r requirements.txt (line 1)) (1.0.5)

Terminal will be reused by tasks, press any key to close it.

> Executing task: .venv\Scripts\activate ; func host start <

Found Python version 3.7.3 (python).

                  %%%%%%
                 %%%%%%
            @   %%%%%%    @
          @@   %%%%%%      @@
       @@@    %%%%%%%%%%%    @@@
     @@      %%%%%%%%%%        @@
       @@         %%%%       @@
         @@      %%%       @@
           @@    %%      @@
                %%
                %

Azure Functions Core Tools (2.7.1948 Commit hash: 29a0626ded3ae99c4111f66763f27bb9fb564103)
Function Runtime Version: 2.0.12888.0
[29/11/2019 22:31:27] Building host: startup suppressed: 'False', configuration suppressed: 'False', startup operation id: '8c02ca7a-5153-434e-bbb8-21e89b582f6c'
[29/11/2019 22:31:27] Reading host configuration file 'D:\Epiq\Code\functions\blob_trigger_add\host.json'
[29/11/2019 22:31:27] Host configuration file read:
[29/11/2019 22:31:27] {
[29/11/2019 22:31:27]   "version": "2.0",
[29/11/2019 22:31:27]   "extensionBundle": {
[29/11/2019 22:31:27]     "id": "Microsoft.Azure.Functions.ExtensionBundle",
[29/11/2019 22:31:27]     "version": "[1.*, 2.0.0)"
[29/11/2019 22:31:27]   }
[29/11/2019 22:31:27] }
[29/11/2019 22:31:27] Looking for extension bundle Microsoft.Azure.Functions.ExtensionBundle at C:\Users\zorzi\AppData\Local\Temp\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle
[29/11/2019 22:31:27] Found a matching extension bundle at C:\Users\zorzi\AppData\Local\Temp\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle\1.1.1
[29/11/2019 22:31:27] Fetching information on versions of extension bundle Microsoft.Azure.Functions.ExtensionBundle available on https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index.json
[29/11/2019 22:31:27] Skipping bundle download since it already exists at path C:\Users\zorzi\AppData\Local\Temp\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle\1.1.1
[29/11/2019 22:31:27] Loading Extention bundle from C:\Users\zorzi\AppData\Local\Temp\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle\1.1.1
[29/11/2019 22:31:27] Reading functions metadata
[29/11/2019 22:31:27] 1 functions found
[29/11/2019 22:31:27] Loading startup extension 'AzureStorage'
[29/11/2019 22:31:27] Loaded extension 'AzureStorage' (<IP_ADDRESS>)
[29/11/2019 22:31:28] Initializing Warmup Extension.
[29/11/2019 22:31:28] Initializing Host. OperationId: '8c02ca7a-5153-434e-bbb8-21e89b582f6c'.
[29/11/2019 22:31:28] Host initialization: ConsecutiveErrors=0, StartupCount=1, OperationId=8c02ca7a-5153-434e-bbb8-21e89b582f6c
[29/11/2019 22:31:28] LoggerFilterOptions
[29/11/2019 22:31:28] {
[29/11/2019 22:31:28]   "MinLevel": "None",
[29/11/2019 22:31:28]   "Rules": [
[29/11/2019 22:31:28]     {
[29/11/2019 22:31:28]       "ProviderName": null,
[29/11/2019 22:31:28]       "CategoryName": null,
[29/11/2019 22:31:28]       "LogLevel": null,
[29/11/2019 22:31:28]       "Filter": "<AddFilter>b__0"
[29/11/2019 22:31:28]     },
[29/11/2019 22:31:28]     {
[29/11/2019 22:31:28]       "ProviderName": "Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider",
[29/11/2019 22:31:28]       "CategoryName": null,
[29/11/2019 22:31:28]       "LogLevel": "None",
[29/11/2019 22:31:28]       "Filter": null
[29/11/2019 22:31:28]     },
[29/11/2019 22:31:28]     {
[29/11/2019 22:31:28]       "ProviderName": "Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider",
[29/11/2019 22:31:28]       "CategoryName": null,
[29/11/2019 22:31:28]       "LogLevel": null,
[29/11/2019 22:31:28]       "Filter": "<AddFilter>b__0"
[29/11/2019 22:31:28]     }
[29/11/2019 22:31:28]   ]
[29/11/2019 22:31:28] }
[29/11/2019 22:31:28] FunctionResultAggregatorOptions
[29/11/2019 22:31:28] {
[29/11/2019 22:31:28]   "BatchSize": 1000,
[29/11/2019 22:31:28]   "FlushTimeout": "00:00:30",
[29/11/2019 22:31:28]   "IsEnabled": true
[29/11/2019 22:31:28] }
[29/11/2019 22:31:28] SingletonOptions
[29/11/2019 22:31:28] {
[29/11/2019 22:31:28]   "LockPeriod": "00:00:15",
[29/11/2019 22:31:28]   "ListenerLockPeriod": "00:00:15",
[29/11/2019 22:31:28]   "LockAcquisitionTimeout": "10675199.02:48:05.4775807",
[29/11/2019 22:31:28]   "LockAcquisitionPollingInterval": "00:00:05",
[29/11/2019 22:31:28]   "ListenerLockRecoveryPollingInterval": "00:01:00"
[29/11/2019 22:31:28] }
[29/11/2019 22:31:28] QueuesOptions
[29/11/2019 22:31:28] {
[29/11/2019 22:31:28]   "BatchSize": 16,
[29/11/2019 22:31:28]   "NewBatchThreshold": 8,
[29/11/2019 22:31:28]   "MaxPollingInterval": "00:00:02",
[29/11/2019 22:31:28]   "MaxDequeueCount": 5,
[29/11/2019 22:31:28]   "VisibilityTimeout": "00:00:00"
[29/11/2019 22:31:28] }
[29/11/2019 22:31:28] BlobsOptions
[29/11/2019 22:31:28] {
[29/11/2019 22:31:28]   "CentralizedPoisonQueue": false
[29/11/2019 22:31:28] }
[29/11/2019 22:31:28] HttpOptions
[29/11/2019 22:31:28] {
[29/11/2019 22:31:28]   "DynamicThrottlesEnabled": false,
[29/11/2019 22:31:28]   "MaxConcurrentRequests": -1,
[29/11/2019 22:31:28]   "MaxOutstandingRequests": -1,
[29/11/2019 22:31:28]   "RoutePrefix": "api"
[29/11/2019 22:31:28] }
[29/11/2019 22:31:28] Starting JobHost
[29/11/2019 22:31:28] Starting Host (HostId=gz-1173307470, InstanceId=852e14a5-2d40-4282-9eed-2ce865b65d40, Version=2.0.12888.0, ProcessId=6632, AppDomainId=1, InDebugMode=False, InDiagnosticMode=False, FunctionsExtensionVersion=(null))
[29/11/2019 22:31:28] Loading functions metadata
[29/11/2019 22:31:28] 1 functions loaded
[29/11/2019 22:31:28] Loading proxies metadata
[29/11/2019 22:31:28] Initializing Azure Function proxies
[29/11/2019 22:31:28] 0 proxies loaded
[29/11/2019 22:31:28] Starting worker process:python  c:/Users/zorzi/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/ptvsd_launcher.py --default --host <IP_ADDRESS> --port 9091 --wait "C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\workers\python\3.7/WINDOWS/X64/worker.py" --host <IP_ADDRESS> --port 54169 --workerId 3f86bcde-7b97-4963-bcc8-314eb272eac0 --requestId 1b7983b6-0853-406d-8d18-739105be4185 --grpcMaxMessageLength 134217728
[29/11/2019 22:31:28] python process with Id=14380 started
[29/11/2019 22:31:28] Generating 1 job function(s)
[29/11/2019 22:31:28] Found the following functions:
[29/11/2019 22:31:28] Host.Functions.BlobTrigger
[29/11/2019 22:31:28]
[29/11/2019 22:31:29] Initializing function HTTP routes
[29/11/2019 22:31:29] No HTTP routes mapped
[29/11/2019 22:31:29]
[29/11/2019 22:31:29] Host initialized (1471ms)
[29/11/2019 22:31:29] Host started (1574ms)
[29/11/2019 22:31:29] Job host started
Hosting environment: Production
Content root path: D:\Epiq\Code\functions\blob_trigger_add
Now listening on: http://<IP_ADDRESS>:7071
Application started. Press Ctrl+C to shut down.
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/txt3.txt', Id=1edf4271-8d73-446e-b8c1-a4bc26abcc33)
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/txt5.txt', Id=42b63fca-d5bc-4501-9a54-1c33d8f8aa5e)
[29/11/2019 22:31:31] An unhandled exception has occurred. Host is shutting down.
[29/11/2019 22:31:31] System.Private.CoreLib: The given key 'LogType' was not present in the dictionary.
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/lv1/lv2', Id=aaac3e94-70ef-4d79-a29e-4f5c98519b66)
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/corrupted', Id=0ee6405d-0810-490f-94f9-f44e9e33d74d)
[29/11/2019 22:31:31] Stopping host...
[29/11/2019 22:31:31] Stopping JobHost
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/lv1', Id=fe567f48-a365-4ee2-8867-62e2cb6fadab)
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/corrupted/Corrupted.pdf', Id=b354108f-3d22-4330-875e-ce833898f839)
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/txt2.txt', Id=f8203703-fecf-4939-8e05-c252639cde00)
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/txt.txt', Id=7cf5eac0-124e-46c9-99f7-cc44fba2af42)
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/txta.txt', Id=ce10af86-bc8f-4998-a6f8-35a55550ce39)
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/new_blob', Id=1fb4a086-2e67-40ab-942c-5470bc3d8efa)
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/txt1.txt', Id=afef3fb8-6861-4aa5-b115-1718b32db6ad)
[29/11/2019 22:31:31] Executing 'Functions.BlobTrigger' (Reason='New blob detected: container/lv1/lv2/ocrscan.pdf', Id=ec578ab3-4159-4ad0-becd-f9011b4d7308)
[29/11/2019 22:31:36] Host did not shutdown within its allotted time.
Application is shutting down...

Terminal will be reused by tasks, press any key to close it.

I tried to reproduce and ran into this issue: https://github.com/Microsoft/vscode-python/issues/8685
I don't see the exact same error in your logs, but perhaps it's related? You can wait for them to release the fix or try downgrading to an older version of the Python extension with the command palette

This is the version I'm on where it works:

Thanks @EricJizbaMSFT for the help.
Unfortunately downgrading the Python extension to 2019.10.44104 did not help. VS Code is still giving the same error as before

Have you modified the blob trigger? If so, can you paste the contents here?
Maybe try creating a fresh new project and using an empty storage account to see if that still reproduces

Thanks @EricJizbaMSFT for the suggestions.
I tried creating a new project using a newly created storage account (StorageV2 with Hierarchical Namespace enabled). Started debugging and everything was working for a couple of minutes. I uploaded some blobs and the function would be triggered.  After that, the same error as before.
An unhandled exception has occurred. Host is shutting down.
System.Private.CoreLib: The given key 'LogType' was not present in the dictionary.

I tried repeating the same process again but leaving disabled the Hierarchical namespace option and now the function has been running for about 20 min with no errors thrown (I also uploaded some blobs and the function got triggered correctly).
So I guess this has somehow something to do with the error?
The function that I am using is the default one that gets created by the VS Code extension for Azure functions when using blob triggers (no modifications from the original).

And this only causes problems when debugging, correct? Not when you deploy it to Azure?
I'm not that familiar with the func cli, which is actually running the Azure Functions host on your local machine. It's possible they have a bug with Hierarchical Namespace. You would probably have better luck filing an issue here: https://github.com/Azure/azure-functions-core-tools

@zorzigio we had just started seeing this error message over the past couple weeks, and it was crashing our Functions as well. We were also using Storage v2 w/ HNS enabled. Switching back to Storage v1 fixed it for us (I imagine v2 w/o HNS should work as well, but we didn't try that).
Thanks for posting here, otherwise we probably wouldn't have figured out what was causing it.

seeing the same thing in visual studio using Storage v2 w/ HNS enabled on any blob trigger, both local and on azure.  Tried various versions 2 and 3 of the function framework.  No solution yet.

Any update on this issue?


TranslateLoader is not being provided

When translateService.use(userLang); is called I get a getTranslation of null exception. It seems that the  currentLoader is undefined thus not being provided properly.
Here's my App.ts component:
const PREFIX = 'assets/i18n/';
const SUFFIX = '.json';

@Component({
    templateUrl: 'build/app.html',
    providers: [
        {
            provide: TranslateLoader,
            userFactory: (http: Http) => new TranslateStaticLoader(http, PREFIX, SUFFIX),
            deps: [Http]
        },
        TranslateService
    ]
})

And here's the initialization method which is called in the ctor:
    initializeTranslateServiceConfig() {
        let userLang = navigator.language.split('-')[0];
        userLang = /(en|fr|es)/gi.test(userLang) ? userLang : 'en';

        this.translate.setDefaultLang('en');
        console.log(`User language: ${userLang}`); // OK
        this.translate.use(userLang); // <-- getTranslation of null, currentLoader is undefined
    }

I'm using Ionic2 and I also tried to add the provider to the ionicBootstrap(...) method without success. Am I missing anything?

Problem solved. The provider wasn't properly set in ionicBootstrap() the first time I tried it. It should have been:
In app.ts:
ionicBootstrap(MyApp, [
    PROVIDERS,
    [
        {
            provide: TranslateLoader,
            useFactory: (http: Http) => new TranslateStaticLoader(http, 'assets/i18n', '.json'),
            deps: [Http]
        },
        TranslateService
    ]
]);

@Elrhino Hi, can you tell me what's the import for the keyword PROVIDERS please ?


Hybridization for Lagrange multipliers?

Hi
I'm a beginner to MFEM  and try to use it for electromagnetic modelling.
I'm struggling to find a way to impose constraints, such as the the sum of current density in a domain is equal to the given total current :  ∫Jds=I.
I'm trying to use the Hybridization to add the Lagrange multiplier to add this constraint :
[A   Ct]  [J]       [ f ]
[C   0 ]  [λ]    = [ I ]
However, it seems the Hybridization class in MFEM forces the RHS part I to be zero, and the RHS cannot be edited, as in https://arxiv.org/abs/1801.08914., 2.3 :
[A   Ct]  [x]       [ f ]
[C   0 ]   [λ]    = [ 0 ]
Did I understand it correctly ? If yes, how could I add constraints to the LHS variables  like that ?
Thanks very much !

@chakshinglee, do you think you can help with this issue?

The Hybridization class in MFEM is intended to impose continuity constraints for basis functions on element interface. For example, for a basis function ``v" in the Raviart Thomas FE space that is supported in two elements, we split it into two parts (v1 and v2) and each of which is supported only in one element, and then the matrix C enforces a certain constraint on the element interface that effectively combines the two to restore v.
For example, NormalTraceJumpIntegrator in ex4p is an implementation of Example 2.2 in https://arxiv.org/abs/1801.08914. While you have the flexibility to implement another constraint, however, the constraint is supposed to enforce continuity of basis functions between neighboring elements.
Therefore, the Hybridization class is not suitable for enforcing the constraint on sum of current density.
Now, in order to obtain the system that you described, I suggest to make use of BlockOperator as in ex5p. That is, you assemble A and C separately, and then put them into a block system. I guess you already know how to assemble A. For C, if you don't want to implement a new class, you probably can first assemble a mass matrix using VectorFEMassIntegrator, and then its column sum (1 by n matrix) should be the constraint matrix.

Many thanks for your explanation regarding the Hybridization class.  It really clarifies the difference between the constraints for continuity on the element interfaces and the "macroscale" constraints I'm looking for.  I'll try to use the block system to implement my constraints and then come back when it works.
Thanks !

Closing this issue for now. Feel free to reopen if you have any further questions.


Display question feature

This PR is for the display question feature.
it includes changes in the URLs, views, models, and a new HTML file for this feature.
also added CSS file for all the needed classes.
Also added tests to tests.py using Pytest
fix #44
fix #69

I think it's a better practice to add the "status/in progress" label instead of writing "wip" in the PR headline.

LGTM

@ifireball , @AviadP the PR is ready for re-review, please

You need to rebase this PR - it has conflicts - please don't leave it up to me to tell you this, you can look at the PR screen and scroll down just like I can.

see comments in the code
@ifireball @AviadP
Fixed all the comments and ready for review


Handle overlay overflow as a scrollable element

Update regex used in isScrollable, to consider element with overflow: overlay as a scrollable element.

Thanks!


Add some notes/caveats in WorkStealingDeque docs

Codecov Report

Merging #49 (e5ec72b) into master (dca80c7) will decrease coverage by 15.37%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master      #49       +/-   ##
===========================================
- Coverage   89.04%   73.66%   -15.38%
===========================================
  Files          14       14
  Lines        1433     1428        -5
===========================================
- Hits         1276     1052      -224
- Misses        157      376      +219

Flag
Coverage Δ

unittests
73.66% <ø> (-15.38%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/promise.jl
0.00% <0.00%> (-88.89%)
:arrow_down:

src/utils.jl
38.70% <0.00%> (-31.46%)
:arrow_down:

src/lcrq.jl
73.83% <0.00%> (-19.19%)
:arrow_down:

src/dict.jl
71.31% <0.00%> (-18.30%)
:arrow_down:

src/msqueue.jl
72.91% <0.00%> (-14.59%)
:arrow_down:

src/ssqueue.jl
86.52% <0.00%> (-9.93%)
:arrow_down:

src/dlcrq.jl
80.86% <0.00%> (-8.41%)
:arrow_down:

src/stack.jl
89.28% <0.00%> (-7.15%)
:arrow_down:

src/workstealing.jl
90.17% <0.00%> (-1.79%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dca80c7...e5ec72b. Read the comment docs.


html-test is broken on the ghc-8.6 branch

≻ cabal new-test -w ghc-8.6.1 html-test --allow-newer
Build profile: -w ghc-<IP_ADDRESS>80620 -O1
In order, the following will be built (use -v for more details):
 - haddock-2.20.0 (test:html-test) (first run)
Preprocessing test suite 'html-test' for haddock-2.20.0..
Building test suite 'html-test' for haddock-2.20.0..
Running 1 test suites...
Test suite html-test: RUNNING...
Haddock version 2.20.0, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
<IP_ADDRESS>80620

html-test/src/BundledPatterns.hs:14:20: error:
    Operator applied to too few arguments: *
    With NoStarIsType (implied by TypeOperators), ‘*’ is treated as a regular type operator.
    Did you mean to use ‘Type’ from Data.Kind instead?
   |
14 | data Vec :: Nat -> * -> * where
   |                    ^
Failed to run Haddock on specified test files
Generating documentation...
Test suite html-test: FAIL
Test suite logged to:
/home/simon/src/haddock/dist-newstyle/build/x86_64-linux/ghc-<IP_ADDRESS>80620/haddock-2.20.0/t/html-test/test/haddock-2.20.0-html-test.log
0 of 1 test suites (0 of 1 test cases) passed.
cabal: Tests failed for test:html-test from haddock-2.20.0.

Presumably it's broken on ghc-head too.

See https://github.com/haskell/haddock/pull/860. We should hold off on changes for the moment - it looks like the GHC proposal may be amended (and we won't need to change the tests).


cargo-apk should be in its own repository

This is mainly stylistic, but it does serve a purpose. I'm in the process of making an AUR package for cargo-apk (Because cargo really shouldn't be used as a software manager in the sense that a lot of people are using it as), and versions are uniquely identified by the commit the repo is cloned at. At the moment, cargo-apk commits can't be distinguished from commits to the rest of the library, so there may be people who update the package for no reason.

Cargo-apk is heavily tied to the rest of the repo. Anything in glue needs direct support from cargo-apk in order to work. Since glue aims to provide only the minimum possible low-level features required for Android support, updates that touch the glue alone are rare and will remain rare.


s3 file upload Error while putting Object  Unable to connect to endpoint

Hi
I am getting this error while uploading a file.
Error: s3 file upload Error while putting Object  Unable to connect to endpoint
My jpeg file size was 294 KB.
I tried the solution in this link but no improvement,
http://stackoverflow.com/questions/38647444/aws-c-s3-sdk-putobjectrequest-unable-to-connect-to-endpoint.
Please help me to fix this one.
My code below.
static const char* KEY = "aws_cpp_sdk_upload_test"; // "s3_cpp_sample_key";
static const char* BUCKET = "emojiface-photobooth"; // "s3-cpp-sample-bucket";
int main()
{
Aws::Client::ClientConfiguration clientConfig;
clientConfig.scheme = Aws::Http::Scheme::HTTPS;
clientConfig.region = Aws::Region::US_EAST_1;
clientConfig.connectTimeoutMs = 30000;
Aws::SDKOptions options;
Aws::InitAPI(options);
S3Client client(clientConfig);

//first put an object into s3
PutObjectRequest putObjectRequest;
putObjectRequest.WithKey(KEY)
	.WithBucket(BUCKET);

string filePATH = "planets.jpg";

std::shared_ptr<Aws::FStream> fileToUpload = Aws::MakeShared<Aws::FStream>("OCRFile", filePATH, ios::in | ios::binary | ios::trunc);

std::streampos fsize = 0;
std::ifstream file(filePATH, std::ios::binary);

fsize = file.tellg();
file.seekg(0, std::ios::end);
fsize = file.tellg() - fsize;
file.close();

putObjectRequest.SetBody(fileToUpload);

putObjectRequest.GetBody()->seekg(0, std::ios::end);

putObjectRequest.SetContentType("image/jpeg");
putObjectRequest.SetContentLength(static_cast<long>(fsize));

std::cout << "Entering into PutObject\n" << std::endl;

auto putObjectOutcome = client.PutObject(putObjectRequest);

if (putObjectOutcome.IsSuccess())
{
	std::cout << "Put object succeeded" << std::endl;
}
else
{
	std::cout << "Error while putting Object " << putObjectOutcome.GetError().GetExceptionName() <<
		" " << putObjectOutcome.GetError().GetMessage() << std::endl;
}

//now get the object back out of s3. The response stream can be overridden here if you want it to go directly to
// a file. In this case the default string buf is exactly what we want.
GetObjectRequest getObjectRequest;
getObjectRequest.WithBucket(BUCKET)
	.WithKey(KEY);

auto getObjectOutcome = client.GetObject(getObjectRequest);

if (getObjectOutcome.IsSuccess())
{
	std::cout << "Successfully retrieved object from s3 with value: " << std::endl;
	//std::cout << getObjectOutcome.GetResult().GetBody().rdbuf() << std::endl << std::endl;;
}
else
{
	std::cout << "Error while getting object " << getObjectOutcome.GetError().GetExceptionName() <<
		" " << getObjectOutcome.GetError().GetMessage() << std::endl;
}

Aws::ShutdownAPI(options);
return 0;

}

I'm having the same problem. I can upload a string but not an image. Has anyone else had issues uploading images to S3?

I'm getting the same issue just trying to do a HEAD request on an object. Debug log has this repeatedly as it retries (#REDACTED# is me replacing hashes and info)
[DEBUG] 2016-10-18 07:06:51 AWSAuthV4Signer [140700699002688] Note: Http payloads are not being signed. signPayloads=0 http scheme=https
[DEBUG] 2016-10-18 07:06:51 AWSAuthV4Signer [140700699002688] Canonical Header String: content-type:application/xml
host:s3.amazonaws.com
user-agent:aws-sdk-cpp/1.0.7 Linux/4.4.24-moby x86_64
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20161018T070651Z

[DEBUG] 2016-10-18 07:06:51 AWSAuthV4Signer [140700699002688] Signed Headers value:content-type;host;user-agent;x-amz-content-sha256;x-amz-date
[DEBUG] 2016-10-18 07:06:51 AWSAuthV4Signer [140700699002688] Canonical Request String: HEAD
#REDACTED#

content-type:application/xml
host:s3.amazonaws.com
user-agent:aws-sdk-cpp/1.0.7 Linux/4.4.24-moby x86_64
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20161018T070651Z

content-type;host;user-agent;x-amz-content-sha256;x-amz-date
UNSIGNED-PAYLOAD
[DEBUG] 2016-10-18 07:06:51 AWSAuthV4Signer [140700699002688] Final String to sign: AWS4-HMAC-SHA256
20161018T070651Z
20161018/us-east-1/s3/aws4_request
#REDACTED#
[DEBUG] 2016-10-18 07:06:51 AWSAuthV4Signer [140700699002688] Final computed signing hash: #REDACTED#
[DEBUG] 2016-10-18 07:06:51 AWSAuthV4Signer [140700699002688] Signing request with: AWS4-HMAC-SHA256 Credential=#REDACTED#/20161018/us-east-1/s3/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date, Signature=#REDACTED#
[DEBUG] 2016-10-18 07:06:51 AWSClient [140700699002688] Request Successfully signed
[DEBUG] 2016-10-18 07:06:51 CurlHandleContainer [140700699002688] Attempting to acquire curl connection.
[INFO] 2016-10-18 07:06:51 CurlHandleContainer [140700699002688] Connection has been released. Continuing.
[DEBUG] 2016-10-18 07:06:51 CurlHandleContainer [140700699002688] Returning connection handle 0x242bf10
[DEBUG] 2016-10-18 07:06:51 CurlHttpClient [140700699002688] Obtained connection handle 0x242bf10
[ERROR] 2016-10-18 07:06:52 CurlHttpClient [140700699002688] Curl returned error code 28
[DEBUG] 2016-10-18 07:06:52 CurlHandleContainer [140700699002688] Releasing curl handle 0x242bf10
[DEBUG] 2016-10-18 07:06:52 CurlHandleContainer [140700699002688] Notified waiting threads.
[DEBUG] 2016-10-18 07:06:52 AWSClient [140700699002688] Request returned error. Attempting to generate appropriate error codes from response
[WARN] 2016-10-18 07:06:52 AWSClient [140700699002688] Request failed, now waiting 400 ms before attempting again.

To the original poster, can you post your log of a failing request?

Hi
From my previous code i did two changes

clientConfig.requestTimeoutMs = 30000;
tried uploading a Readme.txt file instead of jpg
added 	options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;

Logs below:
aws_sdk_2016-10-18-19_txt.log.txt

Reading through the code, you seek to the end of the body stream and then never reset it.  Rather than two streams, you should just be able to use one.  For a working example, see BucketAndObjectOperationTest.cpp:450 (the TestObjectOperations test in the s3 integration tests).

Hi
Please refer this one, i changed the computation as per this suggestion.
Also BucketAndObjectOperationTest.cpp:450 has only string upload, not the file upload

Can you make a new issue that includes the full code sample as well as the resulting log?  Cross referencing across issues for logs and (possibly modified) code is too confusing to reason with certainty about.

just to clarify
    std::shared_ptr<Aws::IOStream> objectStream = Aws::MakeShared<Aws::StringStream>("BucketAndObjectOperationTest");
    *objectStream << "Test Object";
    objectStream->flush();
    putObjectRequest.SetBody(objectStream);
    putObjectRequest.SetContentLength(static_cast<long>(putObjectRequest.GetBody()->tellp()));

the putObjectRequest.GetBody()->tellp() returned wrong number, #310 helped to fix it, but stuck with #311 now

my present code (cleaned one)
int main()
{
Aws::Client::ClientConfiguration clientConfig;
clientConfig.scheme = Aws::Http::Scheme::HTTPS;
clientConfig.region = Aws::Region::US_EAST_1;
clientConfig.requestTimeoutMs = 30000;
clientConfig.connectTimeoutMs = 30000;
Aws::SDKOptions options;
options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;

Aws::InitAPI(options);
S3Client client(clientConfig);

//first put an object into s3
PutObjectRequest putObjectRequest;
putObjectRequest.WithKey(KEY)
	.WithBucket(BUCKET);

string filePATH = "Readme.txt";

std::ifstream file(filePATH, std::ios::binary);
std::streampos fsize = file.tellg();

file.seekg(0, std::ios::end);
fsize = file.tellg() - fsize;

file.close();
std::cout << "file size = " << fsize << "\n" << std::endl;

std::shared_ptr<Aws::FStream> fileToUpload = Aws::MakeShared<Aws::FStream>("OCRFile", filePATH, ios::in | ios::binary | ios::trunc);
putObjectRequest.SetBody(fileToUpload);

putObjectRequest.SetContentType("text/plain");
putObjectRequest.SetContentLength(static_cast<long>(fsize));

std::cout << "Entering into PutObject\n" << std::endl;

auto putObjectOutcome = client.PutObject(putObjectRequest);

if (putObjectOutcome.IsSuccess())
{
	std::cout << "Put object succeeded" << std::endl;
}
else
{
	std::cout << "Error while putting Object " << putObjectOutcome.GetError().GetExceptionName() <<
		" " << putObjectOutcome.GetError().GetMessage() << std::endl;
}

....

My Readme.txt has the below contents
aws s3 file transfer test

The command window contents below:
file size = 25
Entering into PutObject
Error while putting Object RequestTimeout Unable to parse ExceptionName: RequestTimeout Message: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
Also attached the logs.
aws_sdk_2016-10-18-22.log.txt

After seeking to the end you need to seek back to the beginning. You also can just not set content length manually and we will handle it for you.
Sent from my iPhone

On Oct 18, 2016, at 9:51 AM, Gopi Jayaraman<EMAIL_ADDRESS>wrote:
my present code (cleaned one)
int main()
{
Aws::Client::ClientConfiguration clientConfig;
clientConfig.scheme = Aws::Http::Scheme::HTTPS;
clientConfig.region = Aws::Region::US_EAST_1;
clientConfig.requestTimeoutMs = 30000;
clientConfig.connectTimeoutMs = 30000;
Aws::SDKOptions options;
options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;
Aws::InitAPI(options);
S3Client client(clientConfig);
//first put an object into s3
PutObjectRequest putObjectRequest;
putObjectRequest.WithKey(KEY)
.WithBucket(BUCKET);
string filePATH = "Readme.txt";
std::ifstream file(filePATH, std::ios::binary);
std::streampos fsize = file.tellg();
file.seekg(0, std::ios::end);
fsize = file.tellg() - fsize;
file.close();
std::cout << "file size = " << fsize << "\n" << std::endl;
std::shared_ptrAws::FStream fileToUpload = Aws::MakeSharedAws::FStream("OCRFile", filePATH, ios::in | ios::binary | ios::trunc);
putObjectRequest.SetBody(fileToUpload);
putObjectRequest.SetContentType("text/plain");
putObjectRequest.SetContentLength(static_cast(fsize));
std::cout << "Entering into PutObject\n" << std::endl;
auto putObjectOutcome = client.PutObject(putObjectRequest);
if (putObjectOutcome.IsSuccess())
{
std::cout << "Put object succeeded" << std::endl;
}
else
{
std::cout << "Error while putting Object " << putObjectOutcome.GetError().GetExceptionName() <<
" " << putObjectOutcome.GetError().GetMessage() << std::endl;
}
....
My Readme.txt has the below contents
aws s3 file transfer test
The command window contents below:
file size = 25
Entering into PutObject
Error while putting Object RequestTimeout Unable to parse ExceptionName: RequestTimeout Message: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
Also attached the logs.
aws_sdk_2016-10-18-22.log.txt
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Is it possible to modify my code & show the example ? (few important lines are enough)

I'm on my way into the office at the moment, will respond when I arrive.
Sent from my iPhone

On Oct 18, 2016, at 10:04 AM, Gopi Jayaraman<EMAIL_ADDRESS>wrote:
Is it possible to modify my code & show the example ? (few important lines are enough)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

What happens when you drop std::ios::binary | std::ios::trunc from fileToUpload?

dropping std::ios::binary | std::ios::trunc from fileToUpload helps in successful upload of Readme.txt file. Thanks.
But still fails to upload jpeg files.
Code below.
string filePATH = "planets.jpg";

std::shared_ptr<Aws::FStream> fileToUpload = Aws::MakeShared<Aws::FStream>("OCRFile", filePATH, ios::in);
putObjectRequest.SetBody(fileToUpload);

putObjectRequest.SetContentType("image/jpeg");

ok added binary word & works now.
std::shared_ptrAws::FStream fileToUpload = Aws::MakeSharedAws::FStream("OCRFile", filePATH, ios::in | std::ios::binary);

Sounds like everything's working now, so I'll go ahead and close this.

Thanks a lot for your support, yes good to close it :)


Issue #000 feat: Merge offline-kp implementation

@PradyumnaNagendra I think these changes are already merged to 2.8, isn't it?


[SOSS TASK FORCE] - Create security Skills for Developers

Create a “Security Skills for Developers” document that lists key skills job applicants should have, along with ways to acquire those skills/credentials, and evangelize to academia and to developers

You might find my brief introduction slides helpful: A Brief Introduction to Developing Secure Software
Basically, turn some of those points into criteria.
For example, the implementation slide notes:

Most vulnerabilities are common mistakes
Learn what they are & how to avoid them
Two helpful lists: OWASP Top 10 (for web apps); CWE Top 25

That could be turned in to:
Developer must know the most common types of mistakes that lead to vulnerabilities, along with how to avoid them. This at least includes those identified in the OWASP Top 10 and the CWE top 25.


Research the state of Nostr clients

OD Hack
This issue is part of ODHack 4.0:

description - https://x.com/OnlyDust_com/status/1791035111992934563
guidelines - https://onlydust.notion.site/ODHack-Common-Guidelines-Project-leads-5e21836f85ad493f9ca429770af0ad40

Task
Research the state of Nostr clients. Try to find a Nostr client that just works, which means:

you can easily open/install it
it does not stall
lose you data
it does not behave in a way that you do not understand.

The result of the research should have a form of table comparing 3 best mobile and 3 best web and 3 desktop clients and a recommendation which one to use for development and which for everyday use. Part of the task is to present recommended clients on the community call (no more than 20mins) on the 3rd of July.
References

https://nostr.com/clients

Communication
https://t.me/JoyboyStarknet/949
May the Joy be with you!

z

Can I hop on this issue?

Hi @maciejka can I be assigned this?

Hello good evening @maciejka  my name is Ugonna from Nigeria and I am a full-stack developer. I have worked on quite some projects before now, including previous OD hacks. You can check my profile to see my contributions. I am very swift and effective in handling tasks.
Please can I be assigned this issue?

This is my first time and i'll like to contibute on this @MSghais

Please follow the ODHack guidelines:

Contributors: Note that we highly recommend that you comment on the issue by introducing yourself and how
you plan on tackling the issue! Just saying you want an issue is not helpful.  This will help with assigning tasks,
especially if many comment.

sorry about it, im going to fix it @maciejka

Hello @maciejka,
My name is Collins, and I am a fullstack developer. I'd like to take on this task. Here's my approach:
Research: Explore the provided list of Nostr clients and additional sources to identify potential clients for comparison.
Evaluation Criteria: Assess each client based on:

Ease of installation

Stability

Data integrity

User-friendliness

Comparison Table: Create a comparison table for the top 3 clients in each category (mobile, web, and desktop).
Recommendations: Highlight the best clients for development and everyday use, explaining why they are recommended.

Looking forward to contributing

Hello @maciejka im a full stack developer with vast knowledge on these things. I need 3 days to complete this project correctly. When I’m assigned this issue, below are the approaches I’d take:

Define Evaluation Criteria
Identify Nostr Clients
Conduct Research
Create Comparison Tables
Please this is my first time contributing in Starknet ecosystem and I’d love to be given the opportunity, I promise to deliver with the time frame mentioned below.

@devcollinss @od-hunter how about sharing the issue? You cooperate on defining evaluation criteria, then somehow split the work between you?

I agree, I will work it out with @devcollinss

Sure, @od-hunter. Let's work together.

So in the end, it was done by both of you: @od-hunter, @devcollinss?

So in the end, it was done by both of you: @od-hunter, @devcollinss?

Yes sir

So in the end, it was done by both of you: @od-hunter, @devcollinss?

Yes sir.

50/50 split?

50/50 split?

Yes sir

50/50 split?

Yes sir


INLINE_RUNTIME_CHUNK not removing chunk inlining

Is this a bug report?
Yes, I think so.
Environment
System:
OS: macOS 10.14
CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Binaries:
Node: 10.11.0 - ~/.nvm/versions/node/v10.11.0/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.11.0/bin/npm
Browsers:
Chrome: 69.0.3497.100
Firefox: 62.0.3
Safari: 12.0
npmPackages:
react: 16.5.2 => 16.5.2
react-dom: 16.5.2 => 16.5.2
react-scripts: ^2.0.3 => 2.0.3
npmGlobalPackages:
create-react-app: Not Found
Steps to Reproduce

create an empty create-react-app project via npx create-react-app runtime-chunk-test (or yarn create react-app runtime-chunk-test)
call INLINE_RUNTIME_CHUNK=false npm run build or add INLINE_RUNTIME_CHUNK=false to a new .env file

Expected Behavior
The generated build/index.html file should not contain the inlined runtime chunk, as explained in https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#advanced-configuration
Actual Behavior
The generated build/index.html file still contains the inline runtime chunk

Reproducible Demo
https://github.com/mdugue/cra-runtime-chunks
Assumption
Looking at an ejected versions webpack.config.prod.js I wondered if this wouldn't need to be changed:

actually, if my assumption is right, I'd be more than happy to provide a PR to fix it!

This feature isn't released yet, it will be soon!


Failed building wheel for dm_control

I am getting a failed wheel build error when trying to install via pip.
...
File "setup.py", line 135, in run
          self.reinitialize_command('build_mjbindings',
      TypeError: Command.reinitialize_command() got an unexpected keyword argument 'inplace'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for dm_control
Failed to build dm_control
ERROR: Could not build wheels for dm_control, which is required to install pyproject.toml-based projects

Ubuntu 22.04 (5.15.0-41-generic)
Python 3.10.4
Package                Version
---------------------- -------------
absl-py                1.2.0
apturl                 0.5.2
blinker                1.4
Brlapi                 0.8.3
certifi                2020.6.20
chardet                4.0.0
click                  8.0.3
colorama               0.4.4
command-not-found      0.3
cryptography           3.4.8
cupshelpers            1.0
dbus-python            1.2.18
defer                  1.0.6
distro                 1.7.0
distro-info            1.1build1
dm-tree                0.1.7
glfw                   2.5.3
httplib2               0.20.2
idna                   3.3
imageio                2.19.5
importlib-metadata     4.6.4
jeepney                0.7.1
keyring                23.5.0
language-selector      0.1
launchpadlib           1.10.16
lazr.restfulclient     0.14.4
lazr.uri               1.0.6
louis                  3.20.0
macaroonbakery         1.3.1
more-itertools         8.10.0
mujoco                 2.2.1
mujoco-python-viewer   0.0.4
netifaces              0.11.0
numpy                  1.23.1
oauthlib               3.2.0
olefile                0.46
pexpect                4.8.0
Pillow                 9.0.1
pip                    22.0.2
protobuf               3.12.4
ptyprocess             0.7.0
pycairo                1.20.1
pycups                 2.0.1
PyGObject              3.42.0
PyJWT                  2.4.0
pymacaroons            0.13.0
PyNaCl                 1.5.0
PyOpenGL               3.1.6
pyparsing              2.4.7
pyRFC3339              1.1
python-apt             2.3.0+ubuntu2
python-dateutil        2.8.1
python-debian          0.1.43ubuntu1
pytz                   2022.1
pyxdg                  0.27
PyYAML                 5.4.1
reportlab              3.6.8
requests               2.25.1
SecretStorage          3.3.1
setuptools             59.6.0
six                    1.16.0
systemd-python         234
ubuntu-advantage-tools 27.9
ubuntu-drivers-common  0.0.0
ufw                    0.36.1
unattended-upgrades    0.1
urllib3                1.26.5
wadllib                1.3.6
wheel                  0.37.1
xdg                    5
xkit                   0.0.0
zipp                   1.0.0

Python 3.10.4 is too new for dm-control 1.0.4.
Rolled back to 3.8.13 and installation worked.


Http failure response for http://localhost...

@rezaee commented on Sat Jun 15 2019
I am a new learner of NativeScript. I am following a video tutorial on Coursera to create an Android project using NativeScript, and I got the above error that is made by this part of my code:
process-httpmsg.service.ts :
import { Injectable } from '@angular/core';

import { throwError } from 'rxjs';
import { HttpErrorResponse } from '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class ProcessHTTPMsgService {

  constructor() { }

  public handleError(error: HttpErrorResponse | any) {
    let errMsg: string;

    if (error.error instanceof HttpErrorResponse) {
      errMsg = error.error.message;
    } else {
      errMsg = `${error.status} - ${error.statusText || ''} ${error.message}`;
    }

    return throwError(errMsg);
  }
}

dish.services.ts:
import { Injectable } from '@angular/core';
import { Dish } from '../shared/dish';

import { Observable } from 'rxjs';
import { map, catchError } from 'rxjs/operators';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { baseURL } from '../shared/baseurl';
import { ProcessHTTPMsgService } from './process-httpmsg.service';

@Injectable({
  providedIn: 'root'
})
export class DishService {

  constructor(private http: HttpClient,
    private processHTTPMsgService: ProcessHTTPMsgService) { }

  getDishes(): Observable<Dish[]> {
    return this.http.get<Dish[]>(baseURL + 'dishes')
      .pipe(catchError(this.processHTTPMsgService.handleError));
  }

  getDish(id: string): Observable<Dish> {
    return this.http.get<Dish>(baseURL + 'dishes/' + id)
      .pipe(catchError(this.processHTTPMsgService.handleError));
  }

  getFeaturedDish(): Observable<Dish> {
    return this.http.get<Dish[]>(baseURL + 'dishes?featured=true').pipe(map(dishes => dishes[0]))
      .pipe(catchError(this.processHTTPMsgService.handleError));
  }
}

menu.component.html:
<ActionBar title="Menu" class="action-bar">
</ActionBar>
<StackLayout class="page">
    <ListView [items]="dishes" class="list-group" *ngIf="dishes">
        <ng-template let-dish="item">
            <StackLayout orientation="horizontal" class="list-group-item">
                <Image row="0" col="0" rowSpan="2" height="108" width="108"  [src]="BaseURL + dish.image" class="thumb p-16"></Image>
                <GridLayout class="list-group-item" rows="auto *" columns="*">

                </GridLayout>
            </StackLayout>
        </ng-template>
    </ListView>
    <ActivityIndicator busy="true"  *ngIf="!(dishes || errMess)" width="50" height="50" class="activity-indicator"></ActivityIndicator>

</StackLayout>

menu.component.ts:
import { Component, OnInit, Inject } from '@angular/core';
import { Dish } from '../shared/dish';
import { DishService } from '../services/dish.service';

@Component({
  selector: 'app-menu',
  moduleId: module.id,
  templateUrl: './menu.component.html',
  styleUrls: ['./menu.component.css']
})
export class MenuComponent implements OnInit {

  dishes: Dish[];
  errMess: string;

  constructor(private dishService: DishService,
    @Inject('baseURL') private baseURL) { }

  ngOnInit() {
    this.dishService.getDishes()
      .subscribe(dishes => this.dishes = dishes,
        errmess => this.errMess = <any>errmess);
  }

}

My server is running and accessable by my browser in http://localhost:3000 and other paths work well, but don't know why I see the error in the screen of the mobile AVD?
I also tried export const baseURL = "http://<IP_ADDRESS>:3000/"; for my baseURL but again the same error!

@rezaee localhost is not the proper loopback address when working through the emulators VM. Local IP addresses (e.g. like that starting with 192.168.x.x) won't work as well for the very same reason.
See this thread for more details on what loopback to use instead of localhost when working with AVDs.

I tried <IP_ADDRESS>:3000/ but didn't work and I get the same error as before!

@rezaee you still need to add the http:// prefix to your baseURL

@rezaee you still need to add the http:// prefix to your baseURL

I added it but no difference! I get the same error :(

I have uploaded my project here, maybe it helps: https://github.com/rezaee/conFusion

Please open this thread maybe someone could help me!