Error on Step 27: Typography project in Responsive Web design

Describe the Issue
I am one of the students undertaking the freecodecamp curriculum. However, I am experiencing an error on step mentioned above. The hint says “You should have a new .lg selector” which according to the code i entered, everything is fine. Here is my code:
.lg {
height: 10px;
}
.lg, .md {
background-color: black;
}
Your support is highly appreciated.
Affected Page
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-typography-by-building-a-nutrition-label/step-27
Your code
.lg {
  height: 10px;
}
.lg, .md {
  background-color: black;
}

Expected behavior
The code should create an .lg selector with a height property set to 10px and a .lg, .md selector with background-color property of black.
Screenshots

System

Device: [e.g. iPhone 6, Laptop]
OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
Browser: [e.g. Chrome, Safari]
Version: [e.g. 22]

Additional context
No response

Thank you for reporting this issue.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "Get Help" button on the challenge on freeCodeCamp and choose the "Ask for help" option, which will help you create a question in the right part of the forum. Volunteers on the forum usually respond to questions within a few hours and can help determine if there is an issue with your code or the challenge's tests.
If the forum members determine there is nothing wrong with your code, you can request this issue to be reopened.
Thank you and happy coding.


Fix setemail bugs and change the command format of setemail

For issues: https://github.com/CS2103-AY1819S1-F10-2/main/issues/215 and https://github.com/CS2103-AY1819S1-F10-2/main/issues/195

Pull Request Test Coverage Report for Build 704

16 of 16 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.003%) to 92.692%

Totals

Change from base Build 698:
0.003%

Covered Lines:
2372

Relevant Lines:
2559

💛  - Coveralls


fix(mock-builder): keeps and mocks modules with providers properly #625

closes #625

v12.1.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.


Suggest to add metric option

Rationale. The most used SRID in my work, and I suppose for any one, is 4326 of the WGS 84 standard. In this context ST_Area and ST_Length returns "strange" radian values, the most "human readable" is a planar metric, by the flag use_spheroid of that functions.
Suggestion. Add more one parameter, PAR_use_spheroid boolean DEFAULT NULL, with (not so complex) default calculus:
PAR_use_spheroid := CASE
  WHEN PAR_use_spheroid IS NULL AND ST_SRID(PAR_geom)=4326 THEN true
  WHEN PAR_use_spheroid IS NOT NULL THEN PAR_use_spheroid
  ELSE false
END;

Simplest alternative, with no new parameter, but with no check of ST_SRID: use the signal of PAR_null_area as flag, positive is use_spheroid=false and  negative is  use_spheroid=true.

You got an interesting argument here about areas computed from geometries whose SRID is an unprojected lat/lon one: the result of ST_Area applied directly to such geometries does not make much sense.
Let me expose a couple of considerations though:

That use_spheroid parameter available with ST_Area used like you suggested will actually cause an implicit cast of your 4326 srid geometry to a geography type. Then, as per the specs, area computation will be performed on a spheroid with units in square meters, which I think is what you ultimately are after.

Storing geometries using 4326 SRID is not as common as you might think when it comes to specific cartography and applications that require a very high level of accuracy. It's true if you mostly interact with generic maps (e.g.: google maps) or globally dispersed datasets then 4326 makes sense, but at least in my experience, a projected coordinate reference system or at least the most appropriate geographical local realization (i.e.: 4258 =>ETRF2000, 4269 => NAD83, etc.) is almost certainly a more sensible choice whenever possible, especially considering the great steps forward that have been made regarding datum shit grids officially released by many authorities (do you remember the tiny and experimental dataset available with proj.4 only a few yeas back?).
What about all the other lat/lon srids then?

Nonetheless, I love your idea of providing a way to handle unprojected geometries/geographies, right now I am wondering how could I have not thought about this feature before!
I think the best and most flexible approach to deal with unprojected 4326 geometries and geographies a could be adding a new variant of the function which accepts a geography type (CREATE FUNCTION normalize_geometry(PAR_geog geography.....))
Everything you'd need to do in a case like yours is pre-casting your geometry to geography:
normalize_geometry(geom::geography, ....)
What do you think about this solution?

As for all the other unprojected lat/lon srids... that's a complicated matter, because if someone really and intentionally wants to store and treat some geometries in those unprojected reference systems, intending longitude and latitude  as x and y, then this function should allow him to do so.
My rule of thumb with unprojected data in all the other cases has always been:
transform to an appropriate projected srid (e.g.: UTM) --> perform the analysis/normalization --> eventually transform back to unprojected lat/lon.


nomachine-client hash mismatch

Describe the bug
Installing nomachine-client fails
To Reproduce
Steps to reproduce the behavior:

add nomachine-client to environment.systemPackages
nixos-rebuild switch

building Nix...
building the system configuration...
these derivations will be built:
  /nix/store/0w4gskzgbc0va9ajjx8f5816nq9zc7l5-nomachine_6.8.1_1_x86_64.tar.gz.drv
  /nix/store/814l72c37xgy0ff0ciix1dvjabkras8f-nomachine-client-6.8.1.drv
  /nix/store/ra5ydakg0q50550gxlnk34rsic72mb6n-system-path.drv
  /nix/store/z5f0igpj443qmwjw2k02qz1q4bwx2mzd-dbus-1.drv
  /nix/store/r5davzfif2p978idd4q4l6rnxjags7h0-unit-dbus.service.drv
  /nix/store/2w5k6l24qifym6zlbq0q3ml5xgkdvc94-user-units.drv
  /nix/store/2p6bm4nnh7vfrsfv97s08q0mj78kyzrn-unit-polkit.service.drv
  /nix/store/94087x3fga7pnm0s1xc82021vqfb7j8c-unit-systemd-fsck-.service.drv
  /nix/store/f9x61973h0v7rxn0yxwdsdrc275sd0zq-unit-dbus.service.drv
  /nix/store/70jnqik27vcipb28fdwi57gbp3kw3kv7-system-units.drv
  /nix/store/kzbvzjw989cmmiqi6annz8v74zziag2a-etc.drv
  /nix/store/1awc15mzbdsax3kjd6ff2bc9c1r2kzq0-nixos-system-nixos-20.03pre209840.a65f338ccbd.drv
building '/nix/store/0w4gskzgbc0va9ajjx8f5816nq9zc7l5-nomachine_6.8.1_1_x86_64.tar.gz.drv'...

trying https://download.nomachine.com/download/6.8/Linux/nomachine_6.8.1_1_x86_64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   261  100   261    0     0    269      0 --:--:-- --:--:-- --:--:--   269
100  108k    0  108k    0     0  38211      0 --:--:--  0:00:02 --:--:-- 76370
100  126k    0  126k    0     0  27215      0 --:--:--  0:00:04 --:--:--  148k
hash mismatch in fixed-output derivation '/nix/store/b0jdnjhcjb3liisxrhrgkpfzvxza9v4z-nomachine_6.8.1_1_x86_64.tar.gz':
  wanted: sha256:07330sxqjmzdn8kwxn9r49j28lsbp7mmrsxcyl8r32c3g355wskl
  got:    sha256:086i6pcz4prgcjlkh5s8s9587d2c76g6jg1dl5nddp8l51qmf0s2
cannot build derivation '/nix/store/814l72c37xgy0ff0ciix1dvjabkras8f-nomachine-client-6.8.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ra5ydakg0q50550gxlnk34rsic72mb6n-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/1awc15mzbdsax3kjd6ff2bc9c1r2kzq0-nixos-system-nixos-20.03pre209840.a65f338ccbd.drv': 1 dependencies couldn't be built
error: build of '/nix/store/1awc15mzbdsax3kjd6ff2bc9c1r2kzq0-nixos-system-nixos-20.03pre209840.a65f338ccbd.drv' failed

Expected behavior
It should build the derivation
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.97, NixOS, 20.03pre209840.a65f338ccbd (Markhor)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.2`
 - channels(root): `"nixos-20.03pre209840.a65f338ccbd"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

I tried overriding the hash (any tip on how to more properly do this would be appreciated), but still got build errors
in my configuration.nix under environment.systemPackages
    nomachine-client
      (pkgs.nomachine-client.overrideAttrs (old: {
        src = fetchurl {
          #url = "https://download.nomachine.com/download/${versionMajor}/Linux/nomachine_${version}_${versionBuild_x86_64}_x86_64.tar.gz";
          url = "https://download.nomachine.com/download/6.8/Linux/nomachine_6.8.1_1_x86_64.tar.gz";
          sha256 = "086i6pcz4prgcjlkh5s8s9587d2c76g6jg1dl5nddp8l51qmf0s2";
        };
    }))

result:
unpacking source archive /nix/store/b0jdnjhcjb3liisxrhrgkpfzvxza9v4z-nomachine_6.8.1_1_x86_64.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
do not know how to unpack source archive /nix/store/b0jdnjhcjb3liisxrhrgkpfzvxza9v4z-nomachine_6.8.1_1_x86_64.tar.gz
builder for '/nix/store/6iah2i4c7c6zggnnpd98gmz06vr60nn7-nomachine-client-6.8.1.drv' failed with exit code 1
cannot build derivation '/nix/store/qsihyalmkvzc2ryaszx4lpxwyvvmij9p-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ib8r74dnhz65dnp6qn291kg7bn2mkzsj-nixos-system-nixos-20.03pre209840.a65f338ccbd.drv': 1 dependencies couldn't be built
error: build of '/nix/store/ib8r74dnhz65dnp6qn291kg7bn2mkzsj-nixos-system-nixos-20.03pre209840.a65f338ccbd.drv' failed

There's a PR to upgrade nomachine-client: https://github.com/NixOS/nixpkgs/pull/87797
I added this to my confiuration.nix and it seems to be working for me:
  nixpkgs.overlays = [
    (self: super: {
      nomachine-client = (import (builtins.fetchTarball {
        url =
          "https://github.com/plumelo/nixpkgs/archive/feature/nomachine-client-6.10.12.tar.gz";
        sha256 = "0i881bzwagp4p36y51q97d6fdn74d0rzy1r3n5j59yy5qdanrhy0";
      }) { config = { allowUnfree = true; }; }).nomachine-client;
    })
  ];

Yep, this is because NoMachine removes each old release as soon as they make a new one. To combat this, I'll add archive.org to the sources list when the update is done.

I was finding at the time that even overriding with the latest URL and hash from the nomachine website, that it was failing to download the whole blob. I could do it from my browser, but it seemed to abort/not download the full size via nixos

Oh, that's strange.. Thankfully, it seems to work just fine now :)


Add interpreter to lift an IO to a MonadIO down the stack

In retrospect, we can just inline runNat @m liftIO wherever we'd want to put runIOInMonadIO @m


Sponsor Doc

You may want to add the sponsor doc to
http://16f.dubhacks.co/sponsor.pdf
Like done in:
http://15f.dubhacks.co/sponsor.pdf
http://14f.dubhacks.co/sponsor.pdf
Just add a sponsor.pdf to the root directory of the gh-pages branch.
I would also make gh-pages the default branch of this repo.
@mahirk

@grant we are still designing the doc :)


Refs #24474 -- Changed AdminSite.empty_value_display property to an attribute.

This was implemented with a property getter and setter when introduced in 0207bdd2d4157c542c981264c86706b78ca246e9.
There is nothing special occurring here though - a simple read from and assign to the underlying private attribute.
Extracted from #13532.

Thanks


Request for Update: PR Submission Pending for Three Weeks Without Admin Response

I wanted to follow up on the pull request I submitted three weeks ago. I haven't received any feedback or response yet Please check.
Your guidance would be greatly appreciated
here is the link of 3 PR's:
https://github.com/Anjaliavv51/Retro/pull/758
https://github.com/SurajPratap10/Imagine_AI/pull/1326
https://github.com/beRajeevKumar/Frontend_Mentor/pull/488

Hi @aslams2020 please check


fix: android table crash when invalid json

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


REFACTOR(client, tests_integ) Update tokio requirement from 0.2 to 1.0

Signed-off-by: pandaplusplus<EMAIL_ADDRESS>

There seems to be something wrong with CI network.

@pandaplusplus yes, the docker container in github seems has connection problem to crates.io recently.


Refreshing table leads to a runtime exception

After pulling down to refresh, an exception is raised in Bond+Arrays.swift
mutating func insert(element: T?, atIndex: Int) {
  array.insert(WeakBox(element), atIndex: atIndex) // EXC_BAD_ACCESS (code=1, address=0x178)
}

I think this should work now.

Does not happen. Might as well close this issue!


3D viewer implementation

preliminary notes, the geppetto canvas component is a good candidate.
in the test data provided I can see there are mtl files (material), not sure this is currently supported by the canvas component, to be taken into consideration for the estimates.

duplicate of https://app.zenhub.com/workspaces/yale-neuroscan--db-promoter-60749ce5c09a74000fe7ef74/issues/metacell/geppetto-neuroscan/41


Mimic Ajax requests with Supertest

This might be more of a Superagent question but thought I would start here.
I'm using Supertest (and thus Superagent) for some API testing on a Node.js project. I have a particular route that returns different content based on the type of request. Using expressJS's req.xhr, the code will return JSON if true or issue a redirect if false. I want to account for this in my tests but I'm struggling to get Superagent to mimic an XHR GET request.
According to ExpressJS documentation, it's looking for the X-Requested-With header in the request to be set to the value XMLHttpRequest. When I try to set this header using .set('X-Requested-With', 'XMLHttpRequest') I get
Unhandled rejection Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)

Odd thing is, I can set other headers, even before this one, just fine
.set('Accept', 'application/json'). If the headers have already been written, this should fail too, but it doesn't. Also, checking res.request.req._headers, it appears nothing else is setting X-Requested-With so it's not like something else gave it a value either.

Yes SuperAgent says this is more likely an issue with SuperTest

Try checking res.headersSent. A possibility is your request is being responding to prematurely somewhere before control actually reaches your intended response point.


@orta, @acjay: Initial work moving to Swift-based FRP library

These are very early stages, but I wanted to get this out there and get your reactions.
Some notes:

Currently depends on changes I've made to RxSwift. Once I finish transitioning Eidolon, there'll be some awesome pull requests. /cc @bontoJR
Take a look at Observable+Operators.swift for some neat things I'm doing with the type system. Going to be more of this soon, will likely end up in either RxSwift or a library of our own.
I'm keeping things on a develop branch for now, so we can easily make changes to our deployable master.

When either of you is cool with the changes, we can merge into the develop branch without CI or anything :sunglasses:

If @orta and @acjay are OK with the changes so far, I'd love to get this merged into develop.


Setting isoWeek() cousing bad year

moment().year(2015).isoWeek(10).isoWeekday(1).format()
and
moment().year(2016).isoWeek(10).isoWeekday(1).format()
gives the same result, for example 2015-03-02T13:37:42+01:00.
In fact, it happens 28 times in years 1900-2099.
Moment version: 2.11.0

You should use isoWeekYear() instead of year() setter.
> moment().isoWeekYear(2016).isoWeek(10).isoWeekday(1).format()
'2016-03-07T16:22:01+02:00'
> moment().isoWeekYear(2015).isoWeek(10).isoWeekday(1).format()
'2015-03-02T16:22:05+02:00'


Using the First semigroup with

As discussed near the end of #23, this is likely due to some version or dependency issues. I created a small test repo at https://github.com/bbarker/concur-ps-debug/ that demonstrates the issue; a live demo can be found at https://bbarker.github.io/concur-ps-debug/
~Unfortunately, I'm having some issues with my account and github pages due to heroku interference that I haven't been able to track down just yet, so to run it for now, it will need to be built locally.~
In more detail, with the specified testWidget code, copied below, I get this effect:

Whereas I should be seeing New Name updated as well.  Here is the testWidget:
testWidget :: forall a. Widget HTML a
testWidget = dyn $ loopS Nothing \oldNameMay -> D.div_ [] do
  instNameMay <- textInput Nothing
  -- If I remove the line below, then New Name is always Nothing
  instNameMay <- pure $ unwrap (First instNameMay <> First oldNameMay)
  display $ D.div' [D.text $ "Old Name: " <> (show oldNameMay)]
  display $ D.div' [D.text $ "New Name: " <> (show instNameMay)]
  pure instNameMay
  where
  textInput :: Maybe String -> Signal HTML (Maybe String)
  textInput ms = step ms do
    newTxt <- D.input [P.unsafeTargetValue <$> P.onChange]
    pure $ textInput (Just newTxt)

This alternative URL works https://cornellcac.github.io/concur-ps-debug/

Ah @bbarker I finally see what's wrong with your code! You are using Semigroup.First, but you need to use Maybe.First. Semigroup.First is like const in that it always returns its first argument.
To be specific, the difference is -
-- Semigroup.First
First x <> _ == First x

-- Maybe.First
First (Just x) <> _ == First (Just x)
First Nothing <> y == y

So in your example, you need to change -
import Data.Semigroup.First (First(..))
to
import Data.Maybe.First (First(..))
Let me know if that works.

Oh, yes, that is definitely the issue. It also seems less mysterious now that I'm looking at the correct First!


Include stdlib.h instead of malloc.h for portability.

This header does not exist on MacOS SDK.

thanks

This broke build here with VS2015
imguizmo.cpp(2204): error C3861: '_malloca': identifier not found
1>Done building project "imgui_editor_demo.vcxproj" -- FAILED.

Uploaded https://github.com/CedricGuillemet/ImGuizmo/pull/129 https://github.com/CedricGuillemet/ImGuizmo/pull/129 for this.
Okan

On Sep 24, 2020, at 9:26 AM, omar<EMAIL_ADDRESS>wrote:
This broke build here with VS2015
imguizmo.cpp(2204): error C3861: '_malloca': identifier not found
1>Done building project "imgui_editor_demo.vcxproj" -- FAILED.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/CedricGuillemet/ImGuizmo/pull/128#issuecomment-698450827, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA63G7ZLEBYPWYNCI4IFKQDSHNXMLANCNFSM4RXXUAVA.


Finish ValSet Pref Unbonding

Closes: #XXX
What is the purpose of the change
Finishes the val set pref unbonding PR, mainly adds test cases, minor refactoring and better code documentation included.
Note that this PR is pointed towards  dev/valset-pref-unbond-issues branch, not the main branch
Testing and Verifying
This change added tests
Documentation and Release Note

[ ] Does this pull request introduce a new feature or user-facing behavior changes?
[ ] Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

[ ] Specification (x/{module}/README.md)
[ ] Osmosis documentation site
[ ] Code comments?
[ ] N/A

Merging this, but going to transfer the comments about not reaching steps 5-7 / not testing them either, and will be a blocker for final merge. Thanks for getting this done!


Change nodejs8.10 to nodejs12.x as nodejs8.10 is no longer supported.

Currently, the cloudformation.template file has nodejs8.10 which is no longer supported for creating or updating AWS Lambda functions.
https://github.com/amazon-connect/amazon-connect-realtime-transcription/blob/67fe50fd19beba9b9607ffcfd035bcf294616427/deployment/cloudformation.template#L615

I did a full replacement in the cloudformation.template to replace nodejs8.0 to nodejs12.x and i didn't get the error.  But, sadly, the whole system refuses to create. No matter what I try, I cannot get this cloudformation template to actually DO the build.

I just updated the solution to NodeJS 12.x


abnormally monopolar protein localization to cell tip child?

should "abolished protein localization to non-growing cell tip"
be a child of: "abnormally monopolar protein localization to cell tip"?

Hmm. Are there any proteins that normally localize only to the non-growing tip? If so, localization of such a protein could be abolished and leave you with localization to no tips, not one.
So unless we can be sure that no protein is ever normally only found at the non-growing tip, it's not safe to add this link.

ah I see. I don't think it is safe to add it then, cheers.


Adding HangFire artifact creation to azure pipeline

Adding artifacts for HangFire pipeline

Updating azure pipeline to create zip files for both api and jobs.


contracts: Fix possible overflow in storage size calculation

Fixes #2672
For the reasons explained in the linked issue we replace unchecked and saturating math by checked math. Every contract call that tries to accumulate more storage than can be hold by the u32 type will be trapped.
It is extremely unlikely that such a large contract will be economically feasible.

bot merge

bot merge


Add visualization of data from the controllers (port )

In https://github.com/robotology/walking-controllers/blob/779b9faf5c8e62123074427f2741edd70c1460fb/src/WalkingModule/src/Module.cpp#L924-L994 @paolo-viceconte added the possibility to stream some internal data of the walking via port.
The structure of the message is defined in  https://github.com/ami-iit/bipedal-locomotion-framework/blob/c89d185edb5ca74beff2764e01b8962d41107961/src/YarpUtilities/thrifts/BipedalLocomotion/YarpUtilities/VectorsCollection.thrift (map is interpreted as a std::map and list<double> is interpreted as a vector<double>, see https://www.yarp.it/latest/thrift_tutorial.html)
Here the relevant issue: https://github.com/ami-iit/bipedal-locomotion-framework/issues/189
It would be interesting to visualize this kind of data
cc @GiulioRomualdi @nunoguedelha @traversaro

Originally posted by @S-Dafarra in https://github.com/ami-iit/component_ANA-Avatar-XPRIZE/issues/355#issuecomment-1004032587

The implementation can be split into the following steps:

[ ] Add the input port for reading the data from port /walking-coordinator/logger/data:o.
[ ] Verify the data format. This requires activating the port in simulation with Gazebo an the walking controller. Refer to https://github.com/ami-iit/yarp-openmct/issues/92#issuecomment-1027507735.
[ ] parse the data into a JSON object appendable to ICubTelemetry.prototype.state.
[ ] Propagate the dictionary to the open-mct visualizer client.
[ ] Generate the respective dictionary required by the open-mct visualizer for plotting the data.

Add the input port for reading the data from port /walking-coordinator/logger/data:o and verify the data format
We add the port configuration to the configuration file <root-path>/config/default.json:
        "walkingController.internalData": {
            "yarpName": "/walking-coordinator/logger/data:o",
            "localName": "${this.localYarpPortPrefix}/walking-coordinator-logger/data:i",
            "portType": "bottle"
        }

The port type is still "bottle" although it's a nested bottle. The bottle content is converted to an Array object as usual in
https://github.com/ami-iit/yarp-openmct/blob/68ad14a74247f904e4bbe94d4797131e0f851682/iCubTelemVizServer/iCubTelemVizServer.js#L86-L91
The array content is nested as expected and shown below:

Which will simplify the parsing.

Parse the data into ICubTelemetry.prototype.state
The parsing of sensorSample in https://github.com/ami-iit/yarp-openmct/blob/2fd6e628d6ea0f255c0c4d6e4ecd5f4131910ff9/iCubTelemVizServer/icubtelemetry.js#L123 is trivial:
<Array(30)>
   |___ <Array(2)>
   |         |____ <string> "com::position::desired"
   |         |____ <Array(3)> (0.0299999999999999988898 0.0 0.529899988757150275376)
   |___ <Array(2)>
   |         |____ <string> "com::position::desired_macumba"
   |         |____ <Array(3)> (0.0299582133856958268692 0.000636738510544524924893 0.529899988757150275376)
   |

sensorSample[0] is the top Array passed to the parsing function ICubTelemetry.prototype.parseVectorCollectionMap.
https://github.com/ami-iit/yarp-openmct/blob/2fd6e628d6ea0f255c0c4d6e4ecd5f4131910ff9/iCubTelemVizServer/icubtelemetry.js#L163-L165
https://github.com/ami-iit/yarp-openmct/blob/2fd6e628d6ea0f255c0c4d6e4ecd5f4131910ff9/iCubTelemVizServer/icubtelemetry.js#L171-L175
The keys (signal names) are given by sensorSample[0][x][0] where "x" is the index of a given signal.
The values are given by sensorSample[0][x][1].

For each signal x, we could have labelled "s0", "s1", "s2", ... its respective components by using the following code:
ICubTelemetry.prototype.parseVectorCollectionMap = function (id,signalMap) {
    signalMap.forEach(function (signal) {
        let signalObject = {};
        signal[1].forEach((value,index) => {
            signalObject["s"+index] = value;
        })
        this.state[id][signal[0]] = signalObject;
    },this);
}

But it is more efficient to keep the default Arrays keys "0", "1", "2". Both are properly flattened by the ICubTelemetry.prototype.flattenHelper.
https://github.com/ami-iit/yarp-openmct/blob/2fd6e628d6ea0f255c0c4d6e4ecd5f4131910ff9/iCubTelemVizServer/icubtelemetry.js#L107
https://github.com/ami-iit/yarp-openmct/blob/2fd6e628d6ea0f255c0c4d6e4ecd5f4131910ff9/iCubTelemVizServer/icubtelemetry.js#L188-L190

Add another root-level folder for the Walking Controller telemetry domain objects
We added a new root-level folder containing all the domain objects relative to the Walking Controller telemetry entries, i.e. the internal variable vectors published on the Walking Controller port /walking-coordinator/logger/data:o, sent to and read from port /yarpjs/walking-coordinator-logger/data:i by the telemetry visualizer server.

The original dictionary dictionary.json has been renamed to dictionaryIcubTelemetry.json.
The signal ID for the raw data published on the walking-coordinator/logger/data:o port, shared between the dictionary and the telemetry server is walkingController.logger.
The namespace and root-level folder key (e.g. respectively yarpopenmct.icubtelemetry and icubtelemetry) are retrieved dynamically from domainObject.identifier.namespace and dictionary.key in the functions objectProvider.get() and compositionProvider.load(), instead of using the hard-coded constants.
The constants defining the namespaces and domain object types are now defined in a separate script namespacesNtypes.js, which is run from the main index HTML file which installs the open-mct visualizer environment.const ICUBTELEMETRY_DOMAIN_OBJECTS_NAMESPACE = 'yarpopenmct.icubtelemetry';
const WALKINGCTRLTELEMETRY_DOMAIN_OBJECTS_NAMESPACE = 'yarpopenmct.walkingctrltelemetry';
const ICUBTELEMETRY_DOMAIN_OBJECTS_TYPE = 'yarpopenmct.sensormeas';
const WALKINGCTRLTELEMETRY_DOMAIN_OBJECTS_TYPE = 'yarpopenmct.dynvar';

...

WIP

The Implementation is complete and fully working. I just need to squash a bit the commits and document a bit more the changes here in order to prepare the PR.
@S-Dafarra , feel free to repeat the same test as yesterday, after building the walking controller with a few additional vectors, or a few vectors less in the same port /walking-coordinator/logger/data:o.
CC @traversaro @RiccardoGrieco

Get the parsed structure reference sample from the visualizer server and use it to generate the dictionary
When the dictionary related to the Walking Controller logger is required by the Domain Object Provider or the Composition Provider, it  shall be generated from a telemetry data sample (structured as a vector collection map, refer to https://github.com/ami-iit/yarp-openmct/issues/91#issuecomment-1028579495).

The dictionary is requested in
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/dictionary-plugin.js#L44
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/dictionary-plugin.js#L82
In getDictionary(identifier):
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/dictionary-plugin.js#L22-L33

We get the dictionary template dictionaryWalkingControllerTemplate.json through an HTTP request.
We request the latest telemetry sample the same way, and discard the "timestamp" and "id" elements.
We then generate the dictionary from that sample structure.
Note: both HTTP requests are handled through the promise/resolve pattern.

On Requesting the Latest Walking Controller Telemetry Sample

Function `requestLatestTelemetrySample(telemetryEntryKey)`
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/dictionary-plugin.js#L4-L13

We build the request URL as a "history" request, similar to the history request usually sent as the user clicks on a telemetry entry, and processed in function HistoryServer(device).
The URL has the format 'http://<server-address>:<server-port>/history/<telemetry-entry-key>/latest'.
The  is defined and set using a function closure:

The script local variable telemServerAddress
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/dictionary-plugin.js#L2
is defined in a function closure
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/dictionary-plugin.js#L94-L97
IT is updated from the server address and port passed through DictionaryPlugin(...) input parameters.

Function `HistoryServer(device)`
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/iCubTelemVizServer/history-server.js#L3-L15

Similar to router.get('/:pointId',...), we define a route for the history request ending with '/:pointId/latest', where pointId is a variable holding the string <telemetry-entry-key>. Such string ID is used to index the table of buffered samples from the device icubtelemetry
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/iCubTelemVizServer/iCubTelemVizServer.js#L39
Notes:

https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/iCubTelemVizServer/history-server.js#L7
This route handles requests with multiple keys. In such case, a concatenation of the results shall be returned.
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/iCubTelemVizServer/history-server.js#L8
ids is a table, and reduce is an iterator which callback parameter resp is the result of the previous iteration. The intent is to concatenate the results.
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/iCubTelemVizServer/history-server.js#L12
The table order here is aligned with
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/iCubTelemVizServer/icubtelemetry.js#L195
i.e. the latest sample is pushed at the end of the table.

On Generating the Dictionary from the Telemetry Sample
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/genDictFromWalkingCtrlPortDataStruct.js#L1-L8
The dictionary template used here is meant for all the entries (respective ports) under the "Walking Controller Internal Data Logging" folder. genDictFromWalkingCtrlPortDataStruct(...) function only processes, for now, the telemetry entry "Walking Controller Logger":

Init the dictionary from the template (we do a deep copy here but it is probably not required as the template variable is systematically overwritten by the HTTP request getting it, but this request repetition might change in a near future for optimization purposes).
Get the element of dictionary.telemetryEntries related to "walkingController.logger".
Get the references to the template signal components.
for each line in the telemetry sample, paste the template signal component to a new value entry telemetryEntry.values[index] and update it with the sample data.
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/genDictFromWalkingCtrlPortDataStruct.js#L22-L27
Push the timestamp ("utc") template component at the end of the values vector.

Notes on the Dictionary Template

The element telemetryEntries.values[1] is meant for the timestamp and is copied as is into the generated dictionary.
Each component of the plot Y axis configuration is initialised with the element telemetryEntries.values[0]. key and name are set from the key parsed from the telemetry sample. hints.range is incremented from 1 to N for a signal of dimension N.
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/dictionaryWalkingControllerTemplate.json#L9-L17
For instance, a line in the telemetry sample as follows:
https://github.com/ami-iit/yarp-openmct/blob/ba7ff65e9419f4c04a3b9b42d7ae83134c728f02/openmctStaticServer/walkingCtrlPortDataStruct.json#L2-L3
results in the components telemetryEntries.values[0] and telemetryEntries.values[1]:{
  "key": "value.com::position::desired.0",
  "name": "com::position::desired[0]",
  "units": "SI units",
  "format": "float",
  "hints": {
    "range": 1
  }
},
{
  "key": "value.com::position::desired.1",
  "name": "com::position::desired[1]",
  "units": "SI units",
  "format": "float",
  "hints": {
    "range": 2
  }
},

Resulting Visualizer Output

@traversaro @RiccardoGrieco, I've completed the documentation and set the PR to ready state. Please let me know if the documentation is clear, and has enough or too many details. I will tailor following ones accordingly. I was extensive in details focusing on some particularities of Javascript, and considering that you are not reading Javascript on a daily basis.


Use arrow functions to bind globals correctly in web scenarios

https://github.com/microsoft/vscode/issues/127700#issuecomment-889443607

@mjbvz I'm inclined to save this for 4.5 since the scenario (squiggles) won't work either way, but a lot of the risk is yours so I'd be interested to know what you think.


Heavy memory load when doing a large number of transactions using prepared statements

I'm doing approximately 2^20 transactions, each writing about 20 table rows, using a set of four small prepared statements. I'm doing this in parallel using four threads, on separate connections. For some reason, the memory load (in terms of RAM use) keeps climbing and climbing, even though I ensure that I commit all transactions as soon as I can. In fact, I've almost exhausted all 16G of RAM available on my machine trying this several times.
Is there some kind of hidden memory use this library has when using prepared statements or transactions, or is there a memory leak?

Since my transactions were updates, I didn't even capture the result. That is, instead of doing something like
result = execute(prepared_statement, [foo, bar, baz])

I just did
execute(prepared_statement, [foo, bar, baz])

And yes, the memory is on the Julia process (as confirmed by checking htop).

This is probably the reason, as https://github.com/invenia/LibPQ.jl/issues/25 isn't implemented yet. I recommend running clear!(execute(prepared_statement, [foo, bar, baz])) for now.

@iamed2 Thanks for clearing this up! Maybe we should leave this issue up until #25 gets resolved, so other people don't stumble into this problem.

Sure, I'm fine with that :)

Fixed by #40


Add section on binary compatibility checks to CONTRIBUTING

...as this does not seem to have been documented before.
This could serve as a reference for the contributors if they touch the public API.

@bot-gradle test and merge

I've triggered a build for you.


Does msal-react support to  sign-in users against private ADFS?

Issue

Please provide us with the following information:

Does msal-react support to  sign-in users against private ADFS?
I have to develop a react web app that connects to my company ADFS for user sign-in
ADFS team could not support me on how to communicate between my react app and ADFS.
So I would like to know that can I apply this example code and msal-react library to ADFS?
Or there is another method for ADFS. Please suggest me.
Thank you.
This issue is for the sample

    - [ /] 1-1) Sign-in with Azure AD
    - [ ] 1-2) Sign-in with Azure AD B2C
    - [ ] 2-1) Acquire a Token and call Microsoft Graph
    - [ ] 3-1) Protect and call a web API on Azure AD
    - [ ] 3-2) Protect and call a web API on Azure AD B2C
    - [ ] 4-1) Deploy to Azure Storage and App Service
    - [ ] 4-2) Deploy to Azure Static App Service
    - [ ] 5-1) Call a web API using App Roles
    - [ ] 5-2) Call a web API using Security Groups
    - [ ] 6-1) Call Microsoft Graph using on-behalf-of flow
    - [ ] 6-2) Call a web API using Proof of Possession tokens
    - [ ] 6-3) Call a web API using Conditional Access Auth Context

This issue is for a

    - [ ] bug report -> please search issues before submitting
    - [ /] question
    - [ ] feature request
    - [ ] documentation issue or request

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

Library version

Browser and version

Chrome, Edge, Firefox, Safari?

Mention any other details that might be useful

Thanks! We'll be in touch soon.

@pwangsom msal-browser/msal-react supports ADFS 2019, please see this doc. On principle the only difference is the authority string you pass to msal configuration. Unfortunately though, we don't have samples specifically targeting ADFS, but we would like to have some in future.


Node modules on the Lambda function is not built during amplify push on Amplify CLI version 10.8.0

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
18.0.0
Amplify CLI Version
10.8.0
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
Starting 10.8.0, function with node js runtime are build as like python functions and hence, node modules files are not generated during the push.
Expected behavior
Previous amplify cli version are building the node modules correctly.
Reproduction steps

Create an amplify backend running 'amplify init'
Create two Lambda functions with NodeJs and Python runtime (amplify add function)
Add any node modules to node js function src folder (e.g., npm install uuid)
Run 'amplify push'
Observe that the Node Js Lambda function is not deployed with node modules (e.g., uuid)

Project Identifier
No response
Log output
No response
Additional information
No response
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Can you please try to delete your node modules and reinstall. There was a change to dependency names in 10.8 that may not have been caught by updating.

Closing due to inactivity. @manickgm if you are still experiencing this issue please reply back to this thread and we can re-open to investigate further


Is it possible to set cookies for websocket connections?

Is it possible to set cookies for websocket connections?
By "HTTP Cookie Manager" or by set vars manually.

https://github.com/maciejzaleski/JMeter-WebSocketSampler/issues/28


Which license should be included in the footer?

In the footer section, we have the link about the license. According to the link, the license is CC BY-SA 3.0 US, but I think it would make more sense if it redirected to the license used by the Express package (MIT)

I think that MIT is the correct, but let's check with the team (cc: @expressjs/express-tc )


Dynamic ref pad

extends pad operator to handle dynamic input shapes
only handles computing the shape for adding constant padding to a dynamic shape

adds the padding to the min, max, and opt values (unless opt is 0, where it keeps it 0)
does not handle reflect padding with dynamic shapes

I don't think the pad_mode is used, may want to refactor later

I don't think the pad_mode is used, may want to refactor later
Can you open an issue to track?


Add script for performance testing

IO
CPU
Memory

https://www.ouestware.com/2024/05/28/tests-benchmark-headless-browser/


Numpy API consistency and immutability

I noticed in the readme that "arr.reshape({3, 3});" mutates the shape of arr inplace.
In numpy, such an operation would return a new view on the same data, and leave arr unmodified.
Personally, I much prefer the immutable behavior. Perhaps there is some additional overhead to setting up a new view that may be undesirable when working with tiny arrays or somesuch, but in numpy you can assign to the strides f.i. if you want to modify them inplace; and similiarly I could see there being a reshape_inplace/set_shape method in xtensor or somesuch. But id prefer methods to be pure, unless otherwise indicated in the name or syntax. Also, there is something to be said for sticking with numpy conventions, unless there is a strong need otherwise.
Your thoughts?

On a related note; I am really fond of the ability to flag numpy arrays as being immutable; and itd be cool if immutability was correctly conserved across the bindings.

Hi,
we're currently working on a new kind of view, the strided_view. This will be used for transpose very soon, and would also allow the kind of reshape view you're talking about very easily.
The PR for this is https://github.com/QuantStack/xtensor/pull/254
Potentially, we'll also implement diagonal and flip through this view, making both assignable.

Immutability in C++ is usually achieved via const-correctness. Making reshape methods returning a view on the data would be inconsistent with the resize methods of the other containers of the STL (and of most libraries that follow the same idioms), and really counter-intuitive for most of the C++ developpers.
It is true that xtensor aims to provide as much functionalities as Numpy does, but it is a C++ library and thus it follows the C++ idioms and practices. Besides, we'll soon provide binders for Julia, which may have different conventions from Python.
As @wolfv just mentioned it, he is currently working on a strided_view which may fit your needs.

@JohanMabille : I see the argument for STL compliance. As @wolfv alludes to, I can see there being another syntax/convention for operations that do return views of existing containers; if those operations exist and they form a clearly delineated pattern from the STL-style mutating methods, id be equally happy.

@SylvainCorlay : Without simulating C++'s overloading behavior, wouldnt it be possible to simply check at runtime if the mutability flags passed to and from numpy are consistent with the signature of the method being called, and raise an exception otherwise? Though i imagine this might require changes at the pybind11 level; never looked into what it looks like under the hood, perhaps even this is pushing C++'s introspection capabilities too far?

pybind arrays have two accessors for mutable and unmutable with different names, so when you call mutable_at, you get the check for mutability flag. The former is non-const, and the latter is const. So at runtime, when you call mutable_at, they throw an exception when the mutability flag is set to unmutable.

even with this method, if the mutability flag, you can get weird behaviors. For example, in the following scenario: call mutable_at to obtain a non-const reference, set the flag to non-mutable, and use the non-const reference to modify the array without any issue.

when you want to offer STL APIs, we cannot have two different names for the mutable and unmutable accessors. Only e.g. operator[], with const and non-const overloads. As soon as your object is non-const, you call the non-const flavor, which in the case where the mutability flag is set to non-mutable, will always throw... The pybind method forbids the use of any STL compliant algorithm on their arrays...

In my opinion, trying to use the numpy mutability flag is a bad idea. Instead, try making things const whenever possible...

Ah cool; so basically the functionality that I mused about is already there; RTFM :)

Closing!

Maybe it would be possible to check for constness during casting from numpy
to xtensor? Such that an immutable numpy array can only be casted to a
const reference?
On Apr 12, 2017 9:28 AM, "Sylvain Corlay"<EMAIL_ADDRESS>wrote:

Closed #263 https://github.com/QuantStack/xtensor/issues/263.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/QuantStack/xtensor/issues/263#event-1040483165, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA2BPkhpsEj2SBm3ieiCqd2--6-R8RSdks5rvPu3gaJpZM4M7Djl
.

Possibly, but would could not account for changes in that value.


TraceIds feature for a Request tarvelling across, doesn't seem working. TraceIds are different across a travelling request

We have updated springboot to version 2.7.14 and org.springframework.cloud:spring-cloud-dependencies to version 2021.0.3.
Post that, we noticed that the traceIds for a travelling request are different.
For example, if UI hits /a api of service-A and /a api of service-A hits /b api of service-B(using HttpClient or Webclient), then the traceIds for requests /a and /b are different.
we use spring sleuth to transfer traceIds between microservice calls and it seems to be broken.
We tried with all versions of spring-cloud-dependencies from 2021.0.3(sleuth version 3.1.3) to 2021.0.8(sleuth version 3.1.9) and couldn't see it working.
Can someone pls help on the same.
Here are the sample code snippets:
(pasting a sample code as pasting original Project src code is not allowed)
Service-A: (runs on 8082)
@GetMapping(value = "/sampleAsset")
public ResponseEntity getSample() throws DataSetWorkflowException {
WebClient.Builder webClientBuilder = WebClient.builder();
webClientBuilder
.build().get().uri("http://localhost:8081/activity/acceptanceTestSync/pubSubGroupId")
.retrieve().bodyToMono(Object.class).block();
return ResponseEntity.status(HttpStatus.OK).body("{}");
}
It internally hits an api /pubSubGroupId of another Service-B running on 8081
When I hit, the api http://localhost.ms.com:8082/sampleAsset from postman,
Here are the logs in both Services:
Service-A:
2023-12-12 14:02:34.146 DEBUG [Service-A,423e8153db602879,423e8153db602879] [profile=test] 27192 --- [nio-8082-exec-1] o.s.w.f.CommonsRequestLoggingFilter      : Before request [GET /sampleAsset, client=<IP_ADDRESS>]
2023-12-12 14:02:34.492 DEBUG [Service-A,423e8153db602879,423e8153db602879] [profile=test] 27192 --- [nio-8082-exec-1] o.s.w.f.CommonsRequestLoggingFilter      : REQUEST DATA : GET /sampleAsset, client=<IP_ADDRESS>]
Service-B:
[fdc_activities,e7ef8e8bb2225736,e7ef8e8bb2225736] 33232 --- [nio-8081-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 3 ms
2023-12-12 14:02:34.368  INFO [Service-B,e7ef8e8bb2225736,e7ef8e8bb2225736] 33232 --- [nio-8081-exec-1] .AcceptanceTestSynchronizationController : Received request GET PubSubGroupId, which is set to: PubSubGroupId(id=sghjhg)
The traceIds which are supposed to be same, are different.
Can someone pls help me on this.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.


Fix a NPE issue in GpuRand

close https://github.com/NVIDIA/spark-rapids/issues/11646
curXORShiftRandomSeed  is marked as transient, so it will be null on executors without retry-restore context, leading to this NPE.
This fix removes the transient for curXORShiftRandomSeed, seed and previousPartition that will be used by the computation on executors.
I verified it by the customer case, and it works well. The fix is simple so i don't add any tests.

build

I spoke with @jlowe and I think we really want to understand this better. https://github.com/NVIDIA/spark-rapids/issues/11649
The problem is that if a retry happens and it is not in a checkpoint/restore, then we will technically get data corruption. It is not 100% data corruption because it is a random, so we get a slightly different random number compared to Spark on the CPU, which is the only reason I am not blocking this from going in. But I really want to understand the situation where this happened.


Latest release does not support sandbox

The latest code is not yet released.
sandbox variable is not being passed to the PaddleClient in v0.1.2
https://github.com/paddle-python/dj-paddle/blob/8945137c9ff70ae00d519625f81b10d1bc6bf071/djpaddle/models.py#L21

Temp workaround in requirements.txt:
-e git+https://github.com/paddle-python/dj-paddle.git@8945137c9ff70ae00d519625f81b10d1bc6bf071#egg=dj-paddle


Knex v2.0.0?

Hi there!
The new Knex 2.0.0 version was released recently. Would be nice to have connect-session-knex updated to the new Knex version. It looks like it is mostly backward compatible so maybe there's no changes required at all.
Thank you for the great library and good luck!

Sounds good. 3.0.0 released.

Wow!! That sounds great too! Thank you! ;)


'Back' link doesn't work in organisation pages, Promotional Feature

The 'Back' link when editing a Promotional Feature on the Promotional Features section of an organisation page isn't working. I'm experiencing this on the No.10 page. The link is pointing to /government/admin/organisations/prime-ministers-office-10-downing-street/promotional_features/admin%20Prime%20Minister's%20Office,%2010%20Downing%20Street%20PromotionalFeature but should point to /government/admin/organisations/prime-ministers-office-10-downing-street/promotional_features.
Have experienced this on staging and integration. It's quite a blocker because to get back to editing the main part of the organisation page you have to navigate to it from scratch (More -> Departments, find the right one).

@andysellick if no one is working on this, can I take up this issue?

Should be fixed by #9230.


Expecto Build fails when there are spaces in the project path

https://github.com/ionide/ionide-vscode-fsharp/blob/212312f4895de8d26eadee94509bda0eb8115f7d/src/Components/Expecto.fs#L242
Having my project in the following path fails: C:/Source Code/Project
If I switch it to C:/SourceCode/Project then it works fine.
Output:
MSBUILD : error MSB1008: Only one project can be specified.
This seems to be the case because the project path is not being quoted during the call to msbuild.

Should be fairly simple fix, marking as up-for-grabs


Update model-stealing-demo.ipynb

API compatibility for adversarial-robustness-toolbox v1.14.1 and TensorFlow v2.12.0.
Description
Please include a summary of the change, motivation and which issue is fixed. Any dependencies changes should also be included.
Fixes # (issue)
Type of change
Please check all relevant options.

[ ] Improvement (non-breaking)
[ ] Bug fix (non-breaking)
[ ] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

[ ] Test A
[ ] Test B

Test Configuration:

OS
Python version
ART version or commit number
TensorFlow / Keras / PyTorch / MXNet version

Checklist

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented on my code
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Codecov Report

Merging #2136 (7d6a815) into main (d835ef3) will decrease coverage by 61.46%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff             @@
##             main    #2136       +/-   ##
===========================================
- Coverage   85.63%   24.17%   -61.46%
===========================================
  Files         297      297
  Lines       26521    26520        -1
  Branches     4864     4807       -57
===========================================
- Hits        22712     6412    -16300
- Misses       2571    19926    +17355
+ Partials     1238      182     -1056

see 235 files with indirect coverage changes

Achievement unlocked!! 🎉🥳
Best,
Devharsh.
On May 22, 2023, at 10:51 AM, Beat Buesser @.***> wrote:

@beat-buesser approved this pull request.
Hi @devharshhttps://github.com/devharsh Thank you very much and congratulations to your first pull request to ART!
—
Reply to this email directly, view it on GitHubhttps://github.com/Trusted-AI/adversarial-robustness-toolbox/pull/2136#pullrequestreview-1436815430, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AATLUPRTO4TEDQ7M2W3G353XHN4PLANCNFSM6AAAAAAXXRPSPY.
You are receiving this because you were mentioned.Message ID: @.***>


Events:  enhancements tracker

What's your idea?
Actionbar Enhancement

[x] https://github.com/EthanThatOneKid/acmcsuf.com/issues/281
[x] #312
[x] #317
[x] #327

Related Bugs/Enhancements

[x] https://github.com/EthanThatOneKid/acmcsuf.com/issues/309
[x] https://github.com/EthanThatOneKid/acmcsuf.com/issues/313
[x] #330
[x] #334
[x] #346
[x] #422

Future enhancements

[ ] #181
[ ] #339

This umbrella has been ready to resolve since v3.0.


Cannot access to sentry-youtrack configuration page after configuring a wrong youtrack URL

After configuring a wrong youtrack URL for sentry-youtrack plugin, I cannot access to sentry-youtrack configuration page to update that URL.
When selecting the Youtrack tab of that project, I got below error:
 Oops! Something went wrong
It looks like you've hit an issue in our server API. Don't worry though! We use Sentry to monitor Sentry and it's likely we're already looking into this!
If you're daring, you may want to try the following:
Give it a few seconds and reload the page.

In the log:
sentry[14332] ERROR django.request base.handle_uncaught_exception:224 Internal Server Error: /team/project/settings/plugins/youtrack/
    Traceback (most recent call last):
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/../django/core/handlers/base.py", line 112, in get_response
        response = wrapped_callback(request, *callback_args, **callback_kwargs)
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/../django/views/generic/base.py", line 69, in view
        return self.dispatch(request, *args, **kwargs)
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/../django/utils/decorators.py", line 29, in _wrapper
        return bound_func(*args, **kwargs)
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/../django/utils/decorators.py", line 99, in _wrapped_view
        response = view_func(request, *args, **kwargs)
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/../django/utils/decorators.py", line 25, in bound_func
        return func(self, *args2, **kwargs2)
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/web/frontend/base.py", line 172, in dispatch
        return self.handle(request, *args, **kwargs)
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/web/frontend/project_plugin_configure.py", line 22, in handle
        view = plugin.configure(request, project=project)
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/plugins/base/v1.py", line 472, in configure
        return default_plugin_config(self, project, request)
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/plugins/base/configuration.py", line 37, in default_plugin_config
        prefix=plugin_key,
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/../sentry_youtrack/forms.py", line 194, in __init__
        for project in client.get_projects():
      File "/usr/local/sentry/local/lib/python2.7/site-packages/sentry/../sentry_youtrack/youtrack.py", line 157, in get_projects
        for project in BeautifulSoup(response.text, 'xml').projects:
    TypeError: 'NoneType' object is not iterable

I tried to disable sentry-youtrack plugin and enable it again but it did not help.
sentry version: 8.4.0
sentry-youtrack plugin version: 0.3.1
YouTrack version: youtrack-6.5.17105
beautifulsoup4: 4.5.1
thanks & best regards.

Version 0.3.4 handles errors on the plugin configuration page.


Resolve access token related issues

Resolve https://github.com/wso2/product-apim/issues/11979 and https://github.com/wso2/product-apim/issues/12019

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Memory error when plotting simple time series

This crashes:
import pandas as pd
index = pd.timedelta_range(start="06:00:01", end="12:00:00", freq='S')
pd.Series(range(index.size), index=index).plot()

Traceback at https://gist.github.com/andreabedini/074d529ff63356312ce6
So far I have figured out that _get_default_locs gets called with completely bogus vmin an vmax.

dupe of #8711

Thanks @jreback


Add String#delete_{prefix,suffix} to Lint/Void cop

These methods were added in Ruby 2.5: https://ruby-doc.org/core-2.5.0/String.html#method-i-delete_prefix

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

Thanks!


Update tests for modal and form components to use correct methods for element retrieval

This pull request updates the tests for several components in client/src/app/tests to use the correct methods for retrieving elements. Specifically, it replaces the non-existent getByTagName method with getByRole and querySelector to correctly retrieve elements in the following files:

SignInModal.test.tsx
SigninButton.test.tsx
SignUpButton.test.tsx
QuizForm.test.tsx

Changes:

Created the test files
Updated tests to correctly assert the presence of elements

Tests:
All tests in the above files have been updated and are passing.

Files Created :

client/src/app/tests/SignInModal.test.tsx
client/src/app/tests/SigninButton.test.tsx
client/src/app/tests/SignUpButton.test.tsx
client/src/app/tests/QuizForm.test.tsx

Reviewed and ran the Jest test suite for the SignInButton, SignUpButton, SignInModal, and QuizForm components. All tests passed successfully, with 4 test suites and 12 tests in total. The coverage thoroughly verifies each component's behavior, including rendering, interactivity, and modal functionality. Also the getByRole and querySelector methods are correctly used and implemented


workbox-webpack-plugin doesn't add an entry in the array for my index.html

Library Affected:
workbox-webpack-plugin
Browser & Platform:
irrelevant
Issue or Feature Request Description:
When I use workbox-webpack-plugin's injectmanifest command in Webpack 3 and inspect the generated file, the output looks something like this:
self.__precacheManifest = [
  {
    "revision": "c6de43433d90181622aa",
    "url": "bundle.js"
  },
  {
    "revision": "33299ea0bd8e99ac4c4def3e01ee859a",
    "url": "bundle.css"
  }
];

The problem is that webpack doesn't cache my index.html despite being specified in the webpack.config.js file.
Reproduction steps:
Step 1: Cloning
The source code is here on GitHub but you can reproduce it locally by running:
git clone https://github.com/Richienb/richienb.github.io.git
git checkout 89bf8314fee14a8f994915d26db3a80b6df0589a .

Step 2: Navigate to directory
Fairly simple:
cd richienb.github.io
cd src

Step 3: Installation
This repository uses yarn so for this step, install yarn then install all the packages in a development environment
npm install -g yarn
yarn install --production false

Step 4: Locally host the site
In this step, tell webpack-dev-server to host a local server of the site
npm start

Step 5: Find the generated file
Inspect the command line output and find the file starting with precache-manifest. An example is pointed out below:
Project is running at http://localhost:8080/
webpack output is served from /
Hash: 47d2479a673bec7d5643
Version: webpack 3.12.0
Time: 34762ms
                                                Asset       Size  Chunks             Chunk Names
                                           bundle.css     118 kB          [emitted]
                                            bundle.js     245 kB       0  [emitted]  main
precache-manifest.15dc3d014eed9db2538054395c7d9c0b.js  186 bytes          [emitted]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                    service-worker.js       1 kB          [emitted]
   [7]<EMAIL_ADDRESS>20.2 kB {0} [built]

Step 6: Navigate to the site
Navigate to the generated file. For the example above, you would navigate to <IP_ADDRESS>/precache-manifest.15dc3d014eed9db2538054395c7d9c0b.js.
Step 7: View the resulting file
The file will look similar to this:
self.__precacheManifest = [
  {
    "revision": "c6de43433d90181622aa",
    "url": "bundle.js"
  },
  {
    "revision": "33299ea0bd8e99ac4c4def3e01ee859a",
    "url": "bundle.css"
  }
];

As you can see, an entry for index.html clearly does not exist but in the webpack.config.js it is clearly declared. That is the problem.

I've resolved my issue, it was to do with the ordering of webpack plugins, it seems the Workbox plugin must be last for it to pick up on some files. Hope this helps with your issue.

Hey @Richienb
can you please show your webpack configuration?

All of the code including the Webpack configuration was given in the original comment

Oh true I didn't see the GitHub repo
I'll take a look soon and let you know

git checkout 89bf8314fee14a8f994915d26db3a80b6df0589a .
is the . (dot) at the end intentional?
I've tried with it, ended up with a state that has a webpack.config.js but running npm run build shows that index.html is part of the precache manifest

and I've tried running:
git checkout 89bf8314fee14a8f994915d26db3a80b6df0589a (without the .) which brought me to  an older version of the project with no webpack.config.js
Can you please double check step 1 and let me know?
Thanks!

Given that the steps in https://github.com/GoogleChrome/workbox/issues/1692#issuecomment-439530539 were not able to reproduce the issue, I'm going to close this for now.
If there are a different set of steps that can reproduce the issue, please let us know and I'll reopen.

Yes this is painfull.
I worked out previously in the same issue and i fixed this problème by different methods :

Inject a HTML balise <meta name="hash" content="<%= webpack.hash %>" /> (work with webpack 4.29.0and html-webpack-plugin 3.2.0).
This will force your template to change every build and workbox.injectManifest to trigger it with correct revision hash change.

// htmlWebpackPlugin options used
{
  template: 'src/index.ejs',
  filename: 'index.html',
  minify: true,
  xhtml: true,
  ...
}

This fixed my injectManifest plugin and trigger nicely the index.html update with the service-worker in production.
To make your template with other extension https://github.com/jantimon/html-webpack-plugin/blob/master/docs/template-option.md

Thanks @blephy , I've been searching for days and adding the meta tag to my index.html fixed by problem with workbox v4 serving outdated precached files.
For anyone else running into this issue, I'm using GenerateSW with webpack v4 and workbox 4.3.1.

I have the same issue with html-webpack-plugin. There is a naiver solution using the additionalManifestEntries parameter. Though, I don't know how to generate the hash, so I used the current time for the revision.

I have the same issue with html-webpack-plugin. There is a naiver solution using the additionalManifestEntries parameter. Though, I don't know how to generate the hash, so I used the current time for the revision.

Yep, you can use this https://github.com/GoogleChrome/workbox/issues/2299#issuecomment-826918658

@blephy thank you, that was the missing link for me. I had to adjust for webpack5, but you got me close enough I could connect the dots from there.
For anyone visiting this using webpack5 and htmlWebpackPlugin 5.x the setup is a little different to access the hash in your template now as the options have changed a fair bit and you need to inject the hash using customized templateParameters:
new HtmlWebpackPlugin({
    template: `${sourcePath}/index.html`,
    filename: 'index.html',
    title: siteTitle,
    templateParameters: (
        compilation,
        assets,
        assetTags,
        options
    ) => {
        return {
            compilation,
            webpackConfig: compilation.options,
            htmlWebpackPlugin: {
                tags: assetTags,
                files: assets,
                options,
            },
            hash: compilation.getStats().hash,
        };
    },
    inject: true,
    hash: true,
    minimize: true,
}

    <meta name="hash" content="<%= hash %>" />


Feat: Add the option to use shell with the metaflow python Runner

Hi,
Raising a pr to allow the subprocesses to be executed directly through the shell.
Locally this had a massive performance improvement for an extreamly lightweight flow for me.
18.618823051452637
to
3.2076590061187744
I'm not 100% on where the increase comes from. I suspect this is as the shell is caching python instead of directly executing it each time.
Thank you

@HarryAnkers, do you have a reproducible example that demonstrates the speed-up? We don't set shell=True for many reasons (security, portability, etc.), and I am curious to dig into what is actually causing the slowdown/speedup. That will help us understand whether this PR is in the right direction or not.

@savingoyal thanks for the reply.
Yes here's a two file setup that shows this issue
test.py
import json
import os
import subprocess
import tempfile
import time
from typing import Any

from metaflow import Runner

def test_a(
    workflow_module_path: str,
    workflow_params: dict[str, Any],
    workflow_input_payload: str,
) -> None:
    start_time = time.time()
    print(f"Starting runner execution_time={time.time() - start_time}")
    with Runner(workflow_module_path, pylint=False) as runner:
        running = runner.run(**workflow_params, input_payload=workflow_input_payload)
        print(f"Runner run execution_time={time.time() - start_time}")

        if running.status == "successful":
            print(f"Runner completed execution_time={time.time() - start_time}")

def test_b(
    workflow_module_path: str,
    workflow_params: dict[str, Any],
    workflow_input_payload: str,
) -> None:
    start_time = time.time()
    print(f"Starting runner workaround execution_time={time.time() - start_time}")
    with tempfile.TemporaryDirectory(dir="/tmp") as temp_dir:
        tfp_runner_attribute = tempfile.NamedTemporaryFile(dir=temp_dir, delete=False)

        print(f"Started runner execution_time={time.time() - start_time}")
        subprocess.run(
            f"python {workflow_module_path} --no-pylint run --runner-attribute-file '{tfp_runner_attribute.name}' --input_payload '{workflow_input_payload}'",
            shell=True,
        )
        print(f"Runner workaround completed execution_time={time.time() - start_time}")

if __name__ == "__main__":
    cwd = os.path.dirname(os.path.abspath(__file__))
    workflow_module_path = os.path.join(cwd, "workflow.py")

    workflow_input_payload = json.dumps(
        {"request_id": "5c76e196-5ef2-443d-a036-25755a9a5fdd"}
    )

    workflow_params = {"some_key_1": "key_1", "some_key_2": "key_2"}
    print(
        f"Following both test implementations with workflow_module_path={workflow_module_path}"
    )
    test_a(
        workflow_module_path,
        workflow_params,
        workflow_input_payload,
    )

    test_b(
        workflow_module_path,
        workflow_params,
        workflow_input_payload,
    )

workflow.py
from metaflow import FlowSpec, JSONType, Parameter, step

from appraisal_api.domain.workflows.metaflow.io_schemas import (
    SampleFlowResponse,
    SampleFlowResult,
)

class SimpleFlow(FlowSpec):
    input_payload = Parameter(
        "input_payload",
        help="The payload containing the images to be processed.",
        required=True,
        type=JSONType,
    )

    some_key_1 = Parameter(
        "some_key_1",
        help="Some Extra Parameter provided to the workflow",
        type=str,
        default="key_1",
    )

    some_key_2 = Parameter(
        "some_key_2",
        help="Some Extra Parameter provided to the workflow",
        type=str,
        default="key_2",
    )

    @step
    def start(self) -> None:
        print("This is the start step.")
        self.next(self.process_data)

    @step
    def process_data(self) -> None:
        print("This is the data processing step.")
        self.next(self.end)

    @step
    def end(self) -> None:
        result = SampleFlowResult(img_path="path/to/image.jpg", result="success")
        self.output_payload = SampleFlowResponse(
            operation="sample_flow",
            response=[result],
        )
        print("This is the end step.")

if __name__ == "__main__":
    SimpleFlow()

To run this setup run test.py


Workspace/projects?

Hey,
is there a way to sort multiple projects/workspaces in this project?
Love the deisgn other than this little detail!
Thanks for this!

Thanks for asking! Can you please share the use cases you had in mind? As
much details  as possible.
Not sure if relevant, but I actually have two "workplaces" on the same
computer, one for tracking paid work and one for video games. The trick is
to use a separate browser profile for each.
On Sun, Jan 30, 2022, 15:42 Hugo Schmitt @.***> wrote:

Hey,
is there a way to sort multiple projects/workspaces in this project?
Love the deisgn other than this little detail!
Thanks for this!
—
Reply to this email directly, view it on GitHub
https://github.com/Klaster1/timer-5/issues/13, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAULJDUL4EFORVBZH7OJDZ3UYUW2PANCNFSM5NEGP2RA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@hugows sorry for the very late reply. My idea for the app was to have a very narrow scope of features and maybe a well-defined external interface, similar to the UNIX philosophy. As it stands now, localstorage can serve as such an API you can integrate with. Adding workspaces turned out very simple with a basic userscript - swap the current stored dataset and reload the app. Feel free to extend as needed.
// ==UserScript==
// @name     Timer workspace proof of concept
// @version  1
// @grant    none
// @match    https://klaster1.github.io/timer-5/*
//
// ==/UserScript==

const button = document.createElement('button');
button.textContent = 'Switch workspace';
button.setAttribute('type', 'button');
button.style.position = 'fixed';
button.style.bottom = '20px';
button.style.right = '20px';
button.style.zIndex = '1000';
button.addEventListener('click', (event) => {
  const tasks = localStorage.getItem('tasks');
  const otherTasks = localStorage.getItem('otherTasks') ?? JSON.stringify({version: 1, value: []});
  localStorage.setItem('tasks', otherTasks);
  localStorage.setItem('otherTasks', tasks);
  location.reload();
});
document.body.appendChild(button);


Are videos to mp3 format above 128kbs possible?

Are videos to mp3 format above 128kbs possible?

Yes, of course. The ffmpeg_command can be modified to include any arguments that ffmpeg recognizes.
For example,  to convert videos to mp3 at 192kbps, replace inside the configuration file the value of ffmpeg_command with "ffmpeg -i %s -y -vn -ac 2 -ab 192K -ar 48000 %s".


Extension keyboard not working with IOS 16

Describe the bug
I have a basic keyboard extension that was working with IOS 15 before updating my phone to IOS 16.1 .
The keyboard has a WKWebView that renders a basic HTML page with some text in it (code sample below)
When running on the simulator with IOS 16 everything loads perfectly.
The problem appears when I'm trying to run the application on an actual device, there I am stuck in a white screen (WKWebView loads, but the content is not loading) and a lot of errors ( log : https://pastebin.com/jC62Mwgd ). NOTE: the log was taken from a test run of the keyboard in 'Notes' application
`func makeViewConfiguration() -> WKWebViewConfiguration  {
let configuration = WKWebViewConfiguration()
let dropSharedWorkersScript = WKUserScript(source: "delete window.SharedWorker;", injectionTime:
WKUserScriptInjectionTime.atDocumentStart, forMainFrameOnly: false)
configuration.userContentController.addUserScript(dropSharedWorkersScript)
return configuration
}
override func viewDidLoad() {
super.viewDidLoad()
popup = UIView()
popup.autoresizingMask = [.flexibleWidth, .flexibleHeight]
    webView = WKWebView(frame: CGRect(x:100, y:100, width:100, height:350), configuration: makeViewConfiguration())
    webView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
    webView.frame = CGRect(origin: CGPoint.zero, size: popup.frame.size)
    webView.backgroundColor = UIColor.white
    webView.uiDelegate = self

    let contentController = webView.configuration.userContentController
    contentController.add(self, name: "toggleMessageHandler")

    popup.addSubview(webView)

    webView.loadHTMLString("
Hello!
", baseURL: nil)

    popup.backgroundColor = UIColor.cyan;

    self.view.addSubview(popup)

}`

Already tried but nothing changed:

to disable shared workers
to enable RequestOpenAccess,
to enable AllowArbitraryLoads

Expected behavior
The keyboard must work as it is working on iOS 14 to iOS 15.6 versions.
Environment

OS: macOS Monterey version 12.6
Xcode Version:  Version 14.0.1 (14A400)

Issues developing macOS or iOS applications should be sent to Apple's Feedback Assistant.  This forum is only for issues specifically related to the Swift compiler and runtime.  There's nothing in here that obviously looks like a Swift compiler or runtime bug.  (If you find anything that does make it look like a Swift compiler or runtime bug, please feel free to re-open this bug.)

Apple's Feedback Assistant


Few required DNS entries are missing in the doc:

[Enter feedback here]
For Redis Cache:
the CRL and OCSP URLs listed below to the outbound rules
Cacerts.digicert.com
Crl3.digicert.com
www.microsoft.com
oneocsp.microsoft.com
ocsp.msocsp.com
mscrl.microsoft.com
crl.microsoft.com
Please refer IcM: 211105827

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

ID: b3c4368c-82a4-f82e-b1a7-41cfa694fa58
Version Independent ID: 60a94729-02ad-0ef1-a642-63351d0171ea
Content: Azure TLS Certificate Changes
Content Source: articles/security/fundamentals/tls-certificate-changes.md
Service: security
Sub-service: security-fundamentals
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

@JackyChiou Thank you for sharing this. We will have this reviewed and get the document updated as needed.

@JackyChiou I have verified the details from the internal bug and a change has been initiated . The document should have the new URLs in the next 24-48 hours after approval . we will close this issue now.
Thank you.


turn on air conditionner

HI guys
thanks for the job...do you know if we can have the sensor to turn on the air conditoner of the car on HA like on the app MYTOYOTA??
Very usefull in winter ;)

Agree 👍🙂 that would be great feature.


add 'its(:property)' syntax to test property of Solaris service

Add 'its(:property)' syntax to test property of Solaris service like below.
describe service('apache22') do
  its(:property) { should include('httpd/enable_64bit' => 'true', 'httpd/server_type' => 'worker' ) }
end

This pull request requires serverspec/specinfra#352

Thanks!

Released as v2.12.0.


Add an option to refresh tournament data

A convenience feature, removes the need to copy and paste the tournament ID from one place on the dashboard to another.
Should remember what event was picked when importing from Smash.gg.

Will be resolved in 4.1.0 (Commit)


Confused about using multiple versions at the same time

This is more of a question than an issue.  If I wanted to use draft-04, 06 and 07 at the same time, would this be the correct way to do it ?
var ajv = new Ajv({schemaId: 'auto'});
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json'))
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'))
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-07.json'))

Also, if id or $id is not defined in the schema, which version will it validate against by default ?
Thanks !

The above should work. Meta-schema to validate against is determined by $schema, not by $id. The default is draft-07 (and you don't need to add it explicitly, it's added automatically).

Thanks a lot !


20240123 add compile from text base

Start adding a "compile" entrypoint which compiles from source rather than a path name.
Add a test entry point for this facility and fit to current api.  It's likely that there'll be a couple more commits on here to merge
the filename and source code compile entrypoints from python.
This was envisioned by @richardkiss https://github.com/richardkiss/clvm_tools_rs/commit/6f95cef9e049afff43801b7c86bb9972718dc913

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.004%) to 83.101%

Totals

Change from base Build<PHONE_NUMBER>:
-0.004%

Covered Lines:
14851

Relevant Lines:
17871

💛  - Coveralls

Added one more commit to consolidate error formatting and added tests.


Question: should issues in extensions be posted here or in the relevant extension repo?

Dear devs,
I have submitted an issue in the properties extension and was wondering is it is the proper way to do.
Regards,
Yannick

Yes, you can report issues both there and here.

Thanks!


Throw the original exception

Throw the original exception so you can find out where it originated.   Currently, it's a pain to track down and fix the source of exceptions even if 'throw' is set, because they only include the message.

This would break current installations that catches the custom exception. I think the full error would still be on laravel log file and you can track it from there?

Got it. Thanks, @yajra!🙂


Update README.md

Set up your API key for Generative AI by Google

Hey @m-asadullah thanks for flagging the issue and sending a fix! I made one suggestion, make the link point to the page rather than to a particular header, but other than that, it looks good to me.

Hi @m-asadullah I saw you resolved the conversation but the code remains the same. Once you've updated it, please re-request that I review the PR to get it in. Thanks!

Once again, thanks for the contribution. I'm merging the changes to the main branch.


Option to not use underscores in folder names?

I'm submitting a ...

[ ] bug report
[x] feature request
[ ] support request

What is the current behavior?
Hi! Reso Coder uses names like datasources and usecases, while this plugin uses names like data_sources and use_cases.

What is the expected behavior?
Could there be an option to choose the naming sceme?

What is the motivation / use case for changing the behavior?
I (and probaby others) prefer the former style.

Please tell us about your environment:

Version: v1.1.0
Platform: IntelliJ IDEA 2020.3 EAP (Ultimate Edition) build #IU-203.4449.2
Subsystem: IU

Hi thanks for the feedback.
To be honest, I found it weird that Reso writes those names in this style, but I can understand, that one is used to this and likes it where I am not. So I looked into a way to let you set custom names, but this is not a trivial matter. I made some progress with serializing custom folder names and implemented a bloc generation on the way, but the UI, to define custom names, is still an issue and I lack the time right now to look further into this.
I will come back to it, when I have more time in the near future.

Great! Thanks for your efforts.


[Doc] Update screenshot of Managed API UI

Not fulfilling checklist items:
Help and Documentation - Is the content upto date and accurate
Related task:
Create API
Issue:
Update screenshot of Managed API UI
Doc Link:
[1] https://docs.wso2.com/display/AM220/Quick+Start+Guide#QuickStartGuide-MonitoringAPIsandviewingstatistics#QuickStartGuide-CreatinganAPIfromscratch
Suggested Labels:
Docs, Improvement
Affected Product Version:
2.2.0

We will not be fixing this as this issue is based on an older version of the product.


⚠ Bofrost.de has degraded performance

In 0833b90, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 974 ms

Resolved: Bofrost.de performance has improved in d32ec60.


custom masks

Has anyone managed to train using custom masks instead of making the script generate random ones?

HI! Could you please clarify you question? Pre-generated masks are not used to train LaMa - masks are generated on the fly. Readme notes "generate masks" in context of generating masks and fixing them for validation purposes.

I was referring to training with user supplied masks. but I just gave a second look and found what I was searching for is already there. my bad.

Sorry for asking, but how did you manage to train on user supplied masks?

I have been thinking about this problem, have you solved it？

@improgress Unfortunately not (yet). But I'll look more into it soon.

OK thanks. look forward to your good news！
发自我的iPhone
------------------ Original ------------------
From: Nils Bochow @.>
Date: Tue,Aug 16,2022 6:04 PM
To: saic-mdal/lama @.>
Cc: improgress @.>, Mention @.>
Subject: Re: [saic-mdal/lama] custom masks (Issue #119)

@improgress I managed to train with custom masks. If you are interested in my solution, contact me.

sure! an interesting job! im willing to learning your solution!
------------------ 原始邮件 ------------------
发件人: "Nils @.>;
发送时间: 2022年8月25日(星期四) 下午3:35
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [saic-mdal/lama] custom masks (Issue #119)
@improgress I managed to train with custom masks. If you are interested in my solution, contact me.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@NilsBochow Thank you!


Add support for @PostMapping("/path") to pub/sub topic subscriptions

Description
I've updated the DaprBeanPostProcessor class so it supports @PostMapping("/path") like annotations. Also, I've added tests for the DaprBeanPostProcessor class.
Issue reference
This PR will close issue #575.
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[X] Code compiles correctly
[X] Created/updated tests
[ ] Extended the documentation

The integration test code is not in the PR yet.

The integration test code is not in the PR yet. I will give it another look afterwards. Thanks.

I've already updated sdk-tests/src/test/java/io/dapr/it/pubsub/http/SubscriberController.java: one out of the many @PostMapping annotated methods there no longer specifies the path argument. All tests that depend on that controller method are still green, which I would consider a proof that the changes have the intended effect.
If you feel that the changes need more tests, could you please elaborate on what kind of test you'd like to see?


Handle unexpected positional argument in KwArgs

Fixes bug found by @adrian17
A function defined as:
fn list_sort(zelf: PyListRef, kwargs: KwArgs, vm: &mut VirtualMachine) -> PyResult {

was allowing: [].sort(True)
It is now rejected.

Codecov Report

Merging #690 into master will decrease coverage by <.01%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master     #690      +/-   ##
==========================================
- Coverage   40.75%   40.75%   -0.01%
==========================================
  Files          80       80
  Lines       17579    17589      +10
  Branches     4501     4502       +1
==========================================
+ Hits         7165     7169       +4
- Misses       8575     8579       +4
- Partials     1839     1841       +2

Impacted Files
Coverage Δ

vm/src/function.rs
51.87% <33.33%> (-0.8%)
: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 a32ebd5...60ed1bd. Read the comment docs.


Selecting right div to plot chart

I was studying your code and it did not work right at first run. Then, I realize that it was just a matter of calling the right place to plot the chart that it was not pre-set.

Good catch, cheers


Define HZ_ENABLE_ASSERTS in Core.h [TRACK]

Issue opened to keep track of the process of defining HZ_ENABLE_ASSERTS

[x] Define HZ_ENABLE_ASSERTS in Core.h

implemented in #48


Applications

4 notebooks: image similarity, image retrieval with prompts, image classification and clustering

Add "faiss-gpu" in the pip call for the clustering book and in all notebooks might be worth mentioning to use faiss-cpu if the person doesn't have a gpu. I also find the clustering visualisation confusing, not really sure what it's meant to be showing. One idea that I have for that part is to show an m by n grid with m clusters and n images per cluster?


some op frequently disappears in the log of tfprof

Please go to Stack Overflow for help and support:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Red Hat 4.8.3-9
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 1.0
Bazel version (if compiling from source): 0.4.5
CUDA/cuDNN version: N.A   the code is runned with CPU
GPU model and memory: N.A
Exact command to reproduce: python the_source_code.py

You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the problem
I tried to use the scripts below to profile the running time of tf.matmul(). But, with each different runs, some ops frequently disappear from the log of tfprof. I tried to add time stamp in the Compute() method of the underlying op, and it shows that the running time is quite stable for different runs. The same problem also happens with larger networks. I'm using CPU other than GPU in this case.
sometimes the log is like this, MatMul reports 0us, which is definitely not true:
==================Model Analysis Report======================
_TFProfRoot (0B/47.32MB, 0us/104.00ms)
MatMul (6.76MB/6.76MB, 0us/0us)
random_normal (6.76MB/20.28MB, 1.20ms/52.71ms)
random_normal/RandomStandardNormal (6.76MB/6.76MB, 50.20ms/50.20ms)
random_normal/mean (4B/4B, 0us/0us)
random_normal/mul (6.76MB/6.76MB, 1.30ms/1.30ms)
random_normal/shape (8B/8B, 2us/2us)
random_normal/stddev (4B/4B, 0us/0us)
random_normal_1 (6.76MB/20.28MB, 0us/51.29ms)
random_normal_1/RandomStandardNormal (6.76MB/6.76MB, 51.29ms/51.29ms)
random_normal_1/mean (0B/0B, 0us/0us)
random_normal_1/mul (6.76MB/6.76MB, 0us/0us)
random_normal_1/shape (0B/0B, 0us/0us)
random_normal_1/stddev (0B/0B, 0us/0us)
some times like this, which is expected:
==================Model Analysis Report======================
_TFProfRoot (0B/47.32MB, 0us/82.61ms)
MatMul (6.76MB/6.76MB, 36.83ms/36.83ms)
random_normal (6.76MB/20.28MB, 2.21ms/41.42ms)
random_normal/RandomStandardNormal (6.76MB/6.76MB, 37.09ms/37.09ms)
random_normal/mean (4B/4B, 0us/0us)
random_normal/mul (6.76MB/6.76MB, 2.13ms/2.13ms)
random_normal/shape (8B/8B, 0us/0us)
random_normal/stddev (4B/4B, 0us/0us)
random_normal_1 (6.76MB/20.28MB, 2.17ms/4.36ms)
random_normal_1/RandomStandardNormal (6.76MB/6.76MB, 0us/0us)
random_normal_1/mean (0B/0B, 0us/0us)
random_normal_1/mul (6.76MB/6.76MB, 2.19ms/2.19ms)
random_normal_1/shape (0B/0B, 0us/0us)
random_normal_1/stddev (0B/0B, 0us/0us)
Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
import tensorflow as tf
import time

size = 1300

def main():
  x = tf.random_normal(shape = [1, size])
  w = tf.random_normal(shape = [size, 2*size])
  y = tf.matmul(x,w)

  with tf.Session(config=tf.ConfigProto(device_count={'GPU': 0, 'CPU': 1}, \
    inter_op_parallelism_threads = 1, intra_op_parallelism_threads = 1, \
    log_device_placement=True)) as sess:

    run_metadata = tf.RunMetadata()
    opts = tf.contrib.tfprof.model_analyzer.PRINT_ALL_TIMING_MEMORY
    opts['min_micros'] = 0
    opts['min_bytes'] = 0
    predictions = sess.run(y,
                         options=tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE),
                         run_metadata=run_metadata)
    tf.contrib.tfprof.model_analyzer.print_model_analysis(
                        tf.get_default_graph(),
                        run_meta=run_metadata,
                        tfprof_options=opts)

if __name__ == '__main__':
  main()

I also met for this problem. Sometimes the most time-consuming operations in theory are always 0us in tfprof.

@linearhit thanks for reporting the issue.
Do you mean tfprof shows non-deterministic behaior? The code you provided sometimes shows 0 MatMul time, while other times shows >0 MatMul time?

@wangsiyu I would be great if you could give me a sample.

@linearhit
Looks like you are running in CPU?
I run the following test for 100 times without failure. Could you give me more information?
def testGithubIssue10518(self):
x = tf.random_normal(shape = [1, 1300])
w = tf.random_normal(shape = [1300, 2*1300])
y = tf.matmul(x,w)
with tf.Session(config=tf.ConfigProto(device_count={'GPU': 0, 'CPU': 1}, \
  inter_op_parallelism_threads = 1, intra_op_parallelism_threads = 1, \
  log_device_placement=True)) as sess:

  run_metadata = tf.RunMetadata()
  opts = tf.contrib.tfprof.model_analyzer.PRINT_ALL_TIMING_MEMORY
  opts['min_micros'] = 0
  opts['min_bytes'] = 0
  _ = sess.run(y,
               options=tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE),
               run_metadata=run_metadata)
  tfprof_node = model_analyzer.print_model_analysis(
        tf.get_default_graph(),
        run_meta=run_metadata,
        tfprof_options=opts)

  self.assertEqual(tfprof_node.children[0].name, 'MatMul')
  self.assertGreater(tfprof_node.children[0].exec_micros, 100)

Also tried GPU
  def testGithubIssue10518(self):
    size = 1300

    with tf.device('/gpu:0'):
      x = tf.random_normal(shape = [1, size])
      w = tf.random_normal(shape = [size, 2 * size])
      y = tf.matmul(x,w)

    with tf.Session(config=tf.ConfigProto(
        inter_op_parallelism_threads = 1,
        intra_op_parallelism_threads = 1,
        log_device_placement=True)) as sess:

      run_metadata = tf.RunMetadata()
      opts = tf.contrib.tfprof.model_analyzer.PRINT_ALL_TIMING_MEMORY
      opts['min_micros'] = 0
      opts['min_bytes'] = 0
      _ = sess.run(y,
                   options=tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE),
                   run_metadata=run_metadata)
      tfprof_node = model_analyzer.print_model_analysis(
            tf.get_default_graph(),
            run_meta=run_metadata,
            tfprof_options=opts)

      self.assertEqual(tfprof_node.children[0].name, 'MatMul')
      self.assertGreater(tfprof_node.children[0].exec_micros, 10)

Do you mean tfprof shows non-deterministic behaior? The code you provided sometimes shows 0 MatMul time, while other times shows >0 MatMul time?
@panyx0718 , yes, this is what i observed.
With half the probability it reports 0us.  I'm running it on CPU.
Please let me know what else information do you need, thanks.

@linearhit
Could use share the RunMetadata file and the GraphDef with me?


Add support for 'com.android.library' project

https://github.com/bugsnag/bugsnag-android-gradle-plugin/issues/41

Thank you for the report and the contribution, @CAMOBAP795. I'm a little unclear on the usage for this -- how do you use proguard upload tasks from a library instead of an app?

how do you use proguard upload tasks from a library instead of an app?
I'm working on SDK for Android which may be used in many different applications

Currently we already have account in https://app.bugsnag.com and it works good except stack trace  'symbolication', it's expectable because we provide pro-guarded version of library for our clients

Gotcha! That makes sense.

@kattrali
I just looked in com.bugsnag.android.Bugsnag and it looks like it may not work for some cases. Example:

in my XXX library I use `com.bugsnag.android.Bugsnag.init(context, "xxxxxxxxx")
my client integrate my XXX and it integrate bugsnag also for his own crash reporting
client's code calls `com.bugsnag.android.Bugsnag.init(context, "yyyyyyyy")
Expected result:
both my reporting (as XXX library developer) and client's reporting should works
Observed result:
depends on who called com.bugsnag.android.Bugsnag.init last, it will be 'a winner in this battle'

I know that implementation of such feature isn't easy and will take valuable resources as on SDK side and on Service side also
I just wanna to know do you have any plans to implement this?

Regarding my PR what is the next steps, it will be reviewed someone? how soon I may get some feedback?

I think it wouldn't be too difficult actually, but it would require allowing the exception handler to be chained instead of replaced in the case that its recognized to be a bugsnag handler. Here is the relevant code. For your case, instead of calling Bugsnag.init, it may make more sense to instantiate a Client object directly, so a user's initialization won't override your own (given the changes described earlier are made to the exception handler behavior).

I just wanna to know do you have any plans to implement this?
Regarding my PR what is the next steps, it will be reviewed someone? how soon I may get some feedback?

I think its feasible and useful for similar cases where Bugsnag is being used in an SDK, just not a high priority at the moment. It'll probably be days before a review.

Hi @kattrali, any update about original topic?

 Add support for 'com.android.library' project

Hi @CAMOBAP795 thanks for the PR. This looks good but I think we'll need to find a replacement for variantOutput.packageLibrary as it's deprecated. I'll see if I can find a workaround for this.

@fractalwrench thanks, do you need some help/info from my side?

@CAMOBAP795 if you happen to know of an alternative to variantOutput.packageLibrary that would be helpful - otherwise I can investigate which task will work for both applications and libraries.

@fractalwrench sorry cannot help with this

@CAMOBAP795 no problem. I've got a feeling that it should be possible to use build.finalizedBy for this, so will try that out.

Closing in favour of #61, as there have been substantial changes to the plugin since this PR was opened.


Updates blog posts

What type of PR is this:

/kind documentation
What does this PR do / why we need it:
Changes:

Updates the blog posts so it's more consistent with the file names
Updates the links to avatars so it's more consistent, uses the .png
feature of github.com's author image links
Changes the wording of the "breaking changes" to "backwards
incompatible" which is less harsh and portrays more stability in the odo
software, rather than us breaking things all the time.

Which issue(s) this PR fixes:

N/A
PR acceptance criteria:

[X] Unit test

[X] Integration test

[X] Documentation

How to test changes / Special notes to the reviewer:
View the site :)
Signed-off-by: Charlie Drage<EMAIL_ADDRESS>

/lgtm
/approve