App doesn't load due to Cross Origin Embedder Policy change in Helmet v5

Steps to reproduce

Clone repo (crow branch)
npm install
npm run dev
Open browser on http://localhost:3030

Expected behavior
The chat app login page should display in the browser.
Actual behavior
The browser shows a completely blank page. The browser console shows multiple instances of the error:
Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep

System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
The part we really care about here is<EMAIL_ADDRESS>But for completeness, Feathers components from npm list:
├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>
NodeJS version: 14.18.2
Operating System: Amazon Linux 2
Browser Version: Chrome Linux 99.0.4844.74
React Native Version: N/A
Module Loader: N/A
Analysis

None of the external (cross-origin) resources that the chat app uses are allowed to load. So that includes base.css, chat.css, moment.js, and feathers.js. This causes an immediate exception running client.js because feathers is undefined.
Note that the inability to load external resources also extends to images like the Feathers logo and Gravatars. But those don't load until later.
The problem is that Helmet v5 has some pretty major breaking changes in their default settings. (See https://github.com/helmetjs/helmet/blob/main/CHANGELOG.md) They've increased their default security posture across the board. But the key issue that causes the above error is that they changed the Cross Origin Embedder Policy to Cross-Origin-Embedder-Policy: require-corp, which means that index.html can only load resources from the same origin or resources explicitly marked as loadable from another origin. (See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy for more info on COEP)

Suggested fixes
I see two possible fixes. If you let me know your preference, I'm happy to submit a PR.

Accept the increase in security from helmet and correctly mark all external resources using the crossorigin attribute or using the Cross-Origin-Resource-Policy header on requests. This is definitely the more correct, secure, and "let's teach good practices" option. However, this choice is likely to frustrate all but the most experienced web developers as soon as they add an <img> tag with an external origin or try to fetch any external resource. I certainly didn't know immediately what the Chrome error meant or how to fix it.

Relax (only) the COEP policy on helmet back to the previous default state by passing crossOriginEmbedderPolicy: false to helmet. This is less secure but definitely more developer friendly. This is the option I'd suggest, possibly with a note in the README about security that points out this option and also points toward the helmet website. (If you want me to submit this as a PR, let me know if you want the README change too.)

Proper cross origin configuration should now be available in the latest version which has been moved to https://github.com/feathersjs/feathers-chat/


Outdated Android plugin version

It even uses a pre-release version!
3.1.1 should be used.

This project is not maintained anymore. Use transform api for byte code
manipulation on android.
2018-04-15 0:06 GMT-07:00 Kaeptm Blaubaer<EMAIL_ADDRESS>
It even uses a pre-release version!
3.1.1 should be used.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/stephanenicolas/morpheus/issues/6, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABv33W_9wV1vZIbM2fvWOqn5P4ZeT4_Gks5tovFzgaJpZM4TVXTl
.


Rename toofz.NecroDancer.Leaderboards.Services to toofz.Services

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #10   +/-   ##
======================================
  Coverage    5.71%   5.71%
======================================
  Files           5       5
  Lines         140     140
  Branches       18      18
======================================
  Hits            8       8
  Misses        132     132

Impacted Files
Coverage Δ

toofz.Services/WorkerRoleBase.Designer.cs
0% <ø> (ø)

toofz.Services/ArgsParser.cs
16.32% <ø> (ø)

toofz.Services/Idle.cs
0% <ø> (ø)

toofz.Services/Application.cs
0% <ø> (ø)

toofz.Services/WorkerRoleBase.cs
0% <ø> (ø)

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 0ef4987...b4555a0. Read the comment docs.


Custom tag-name on custom elements (Green Core)

Description
Custom elements (Green Core) get a VER_SUFFIX added to them. Having an element name that changes over time does not play along nicely with some other tools.
Context: seb.se
For example Optimizely Experimentation (AB-tests). Their visual editor uses the tagname when selcting an element - which causes the test to fail in case we make a release that changes the version suffix during the test period.
We need to have the version suffix enabled to avoid conflicts with MFE:s using green, but we could perhaps work around the issue if we can specify a custom, but static version suffix.
Eg. pw, so gds-button-4ffa29 becomes gds-button-pw
Who will benefit from this feature?
Shell applications (seb.se)
Anything else?
No response

An alternative which should be possible since 1.44.0 is to re-register a subclass under a different name. Like this:
// Create a subclass of a Gds component
class MyButton extends GdsButton {}

// Register under a custom name
window.customElementRegistry.define("my-button", MyButton);

Not as seamless as a custom suffix since it would need to be done for each used component, but on the other hand offers more granularity.
What's your thoughts on this approach?

Cool, at this moment the need is mainly for buttons, so this could work fine! 😄👍

I'm closing this one now, since it seems like the custom registration solved the problem.
One addendum to the targeting concerns though, is that there are some places in the code that checks if a slotted element name starts with gds. This is necessary in some cases, since the [gds-element] attribute won't exist until the slotted child has initialized. So as a best practice, it would be safest to only change the suffix of the name.
So:

Don't: xyz-button
Do: gds-button-xyz


Update microsoft-azure.md

Replace dead link for Mobile Services
http://azure.microsoft.com/en-us/documentation/articles/store-sendgrid-mobile-services-send-email-scripts/
with
https://docs.microsoft.com/en-us/azure/sendgrid-dotnet-how-to-send-email
Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @dharmendra-lingaiah,Thanks again for the PR! It's HACKTOBERFEST! We want to show our appreciation by sending                                              you some special Hacktoberfest swag. If you have not already, could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX


Sort

Enable user to sort projects in chronological or reverse order

Codecov Report

Merging #108 (d844541) into master (3e47cc5) will decrease coverage by 0.66%.
The diff coverage is 10.71%.

@@             Coverage Diff              @@
##             master     #108      +/-   ##
============================================
- Coverage     42.95%   42.29%   -0.67%
- Complexity      454      456       +2
============================================
  Files           125      126       +1
  Lines          2393     2445      +52
  Branches        276      279       +3
============================================
+ Hits           1028     1034       +6
- Misses         1277     1323      +46
  Partials         88       88

Impacted Files
Coverage Δ

...rc/main/java/seedu/address/logic/LogicManager.java
53.33% <0.00%> (-1.84%)
:arrow_down:

...ess/logic/commands/project/SortProjectCommand.java
0.00% <0.00%> (ø)

...in/java/seedu/address/logic/parser/ParserUtil.java
67.77% <0.00%> (-3.99%)
:arrow_down:

...edu/address/logic/parser/ProjectCommandParser.java
38.09% <0.00%> (-5.55%)
:arrow_down:

src/main/java/seedu/address/model/Deadline.java
39.13% <0.00%> (-10.87%)
:arrow_down:

src/main/java/seedu/address/model/Model.java
100.00% <ø> (ø)

...ava/seedu/address/model/list/UniqueEntityList.java
78.00% <0.00%> (-1.60%)
:arrow_down:

src/main/java/seedu/address/ui/MainWindow.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/ui/UiManager.java
0.00% <0.00%> (ø)

...rc/main/java/seedu/address/model/ModelManager.java
43.47% <12.50%> (-2.32%)
:arrow_down:

... and 1 more

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

#103


Logout should show a confirm dialog

Now logout button does not show any confirm, it directly logout user. We should probably add a confirm dialog

done: https://github.com/hackjutsu/Lepton/commit/6189b237037d3aea8539d8fdcc74ad8af6015d29


Random Uniform distribution cannot have Batch as a dimension

tf.random_uniform((None, 10))
Results in an error
TypeError: Expected binary or unicode string, got (None, 10)
Likewise
tf.random_uniform((-1, 10))
Results in an error
ValueError: Dimension -1 must be >= 0
Although you could pass the random matrix in as a placeholder, this is awkward..

The shape argument to tf.random_uniform() can be any arbitrary 1-D tensor, so you can use a tf.placeholder() as the shape (or for some component of the shape):
shape = tf.placeholder(tf.int32, shape=[None])  # `shape` is a 1-D tensor.
random_t = tf.random_uniform(shape)

sess.run(random_t, feed_dict={shape: [5, 10]})
sess.run(random_t, feed_dict={shape: [3, 37]})

# Or, if you just want to vary the 0th dimension, which let's call `batch_size`...
batch_size = tf.placeholder(tf.int32, shape=[])  # `batch_size` is a scalar (0-D tensor).
random_t = tf.random_uniform([batch_size, 10])

sess.run(random_t, feed_dict={batch_size: 5})
sess.run(random_t, feed_dict={batch_size: 17})

I am having a similar issue but while trying to add dropout after my convolutional layers. The dropout documentation describes that noise_shape can have a shape like noise_shape = [k, 1, 1, n], but when this gets passed to random_uniform() in the dropout code I get the following error: "ValueError: Shape must be rank 1 but is rank 4 for 'conv_dropout/random_uniform/RandomUniform' (op: 'RandomUniform') with input shapes: [10,1,1,36]."
Here is the relevant part of the code:
        noise_shape = tf.placeholder(dtype=tf.int32, shape=[batch_size, 1, 1, output.get_shape().as_list()[3]])
        output_drop = tf.nn.dropout(x=output, keep_prob=0.7, noise_shape=noise_shape, name='conv_dropout')

Should I be defining or passing noise_shape differently?

@hannah-rae I think so. Try the following:
        noise_shape = tf.stack([batch_size, 1, 1, tf.shape(output)[3]])

Hooray! That worked. Thank you 👍

@el3ment:  you need to use square brackets for shape instead of (,)
Example:
shape=[2,2]
u=tf.random_uniform(shape,minval=0.,maxval=1., dtype= tf.float32)
print(sess.run(u))
[[ 0.47149575  0.78796875]
[ 0.76750052  0.41252744]]

I have a similar problem:
I want to create a random tensor of the same shape as the input my network. The input however has variable length, and is supplied by a queue. If I use the placeholder to pass the shape values, I have to evaluate the current input batch. The problem is that when I generate the input batch using sess.run then the queue will advance one step, and therefore the actual input to the network will be next batch, with a different size.
Any idea how to solve this?

Actually, never mind:  tf.shape(input) worked, no placeholder needed.

Actually, never mind: tf.shape(input) worked, no placeholder needed. I'm curious, why input.shape didn't work?

I think tf.shape(input) returns a tensor whose content can be determined later while input.shape returns an ordinary tuple and "dynamic" dimensions will have a None there.


⚠ ClamAV has degraded performance

In 8418382, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 196 ms

Resolved: ClamAV performance has improved in 9cf1aab.


only revalidate the flows whose actions are not drop.

phenomena
Briefly, the flows with drop actions are deleted by revalidator thread wrongly which causes all the
upcoming packets need to go to userspace and which wastes lots of time.
a) For example, there is a machine (A) running ovs with one configured one vxlan interface with
tunnel value 123,  then all the vxlan traffics destinate to this machine(A) will be dealt with the ovs.
b)  Although the ovs in machine A only configured with one vxlan tunnel (123), all the vxlan traffics
regardless the tunnel value is 123 or not, will be delivered to the vswitchd to do the slow path if
there is no flow tables found in the datapath.

c)   The vxlan configuration such as the configured vxlan tunnel valuse does not exist in
the datapath, so these packets will be sent to vswitchd process. (There is only one vxlan tunnel
with vni value 0 exist in the datapath’s vxlan configuration).

root cause analysis
a) For the unwanted packets(no vxlan tunnel configured for this case), the receiver will install the
drop-action flow to the datapath.
b)  when the revalidator thread is trying to age-out/clean-up the flows installed in step 1), they are
considered as invalidate by revalidator thread since the revalidator thread could not find the
xport for them. Hence the revalidator thread delete the them very soon.
c) That causes all the upcoming packets are sending to userspace again and  repeat the steps that
i) send to userspace, ii)) install drop-action flow table iii) the revalidator thread delete them.

3)) The fix is:
if the flow's action is drop, we only bank on the time age-out mechanism to clean them up and don't enforce the revalidate_ukey action for them.

I reviewed this on the mailing list: https://mail.openvswitch.org/pipermail/ovs-dev/2019-June/359486.html


Improve WPA-plugin installation process

Cloned by: https://linaro.atlassian.net/browse/WPERF-971
We can see now that new WPA can install plugins with PTIX package.
A PTIX package, identifiable by the .ptix file extension, encapsulates a single WPA plugin along with its associated metadata. This package allows WPA and other SDK drivers to install and manage plugins to a persisted repository. See:
windows performance analyzer plugins | Microsoft Learn.

DOD:

Provide WPA-plugin and WPA-plugin-etl proper PTIX Package.

This should be done for WPA-plugin and WPA-plugin-etl.
Maybe we can do it after we merge both.


RedirectToPage invokes previously-executed controller (when [Authorize] on redirected to page)

I have a form inside a Razor page (lets call it MyFirstPage.cshtml).
On form-submit, the code behind calls and executes action on another controller (UserController.PostRegisterUserAsync) followed by a call to RedirectToPage("/MySecondPage").
MySecondPage requires B2C authorization (it has [Authorize] attribute on it).
This correctly causes MySecondPage to load, but it also re-executes UserController (constructor) and UserController.PostRegisterUserAsync. If I remove [Authorize] attribute on MySecondPage, it works ok (there is no second call to UserController.PostRegisterUserAsync)
UserController:
[Route("api/[controller]")]
public class UserController : Controller
{
    public IHostingEnvironment _environment;
    private readonly ILogger _logger;

    public UserController(IHostingEnvironment env)
    {
        _logger = new LoggerFactory().CreateLogger<UserController>();
        _environment = env;
    }

    [HttpPost("register")]
    public async Task<IActionResult> PostRegisterUserAsync([FromBody]UserObject myUserObject,
    CancellationToken cancellationToken)
    {
        // process user registration
    }
}

in Startup.cs:
services.AddTransient<UserController, UserController>();
myFirstPage.cshtml.cs:
public class MyFirstPageModel : PageModel
{
    private UserController  _userController ;
    private UserObject _user;

    public MyFirstPageModel( UserController userController)
    {
         _userController = userController;
    }

    public async Task<IActionResult> OnPostMethodAsync(CancellationToken cancellationToken)
    {
        await _userController.PostRegisterUserAsync(_user, cancellationToken);
        return RedirectToPage("/mySecondPage");
    }
}

MySecondPage:
[Authorize]
public class MySecondPageModel : PageModel
{
    // code
}

How to prevent that second (unexpected) call to the UserController, without removing [Authorize] on MySecondPage?

What does the content for MySecondPage look like? There really isn't anything intrinsic in Razor Pages that cause it call unrelated controller methods.

Hi @tmandekic. Thanks for reporting the issue. Please provide us with a small repro project to investigate.

After lots of debugging, it turns out there is a handler in my authorization part that was invoking this controller. Closing the issue. Thank you.


feat(NODE-4059): ChangeStreamDocument not fully typed to specification

Description
What is changing?
ChangeStreamDocument had some errors and friction in type info. I've restructured it to be a descriminated union of the possible change stream events which lends itself well to TS.
This does introduce compilation changes since properties that used to be optional now do not exist depending on the change stream event type. We could consider mitigating this by bringing back the properties but typing them as something that indicates they shouldn't have been used with a particular event (for example delete has no fullDocument field)
What is the motivation for this change?
Type hinting on change stream documents helps sort through the variety of events that can occur.
Double check the following

[x] Ran npm run check:lint script
[x] Self-review completed using the steps outlined here
[x] PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
[x] Changes are covered by tests
[x] New TODOs have a related JIRA ticket

Hi, me again, hope it's okay. I'm actually really excited for this particular change as I've been using changestreams for a while, though looking at it, I do have a question: I think this change would break typescript validation if someone is trying to access to .fullDocument without first explicitly checking by type. Pretty sure the break is intended because this is technically more correct, but could it be done so that somehow the .watch can automatically limit the returned changeStream types? Maybe through an additional generic? I don't know if it's possible to dynamically pull based on the parameters, but I doubt it. It's just a weird developer experience if I specify to only listen to say chances and replacements and I have to additionally, in the execution logic, additionally specify it

Hi @PaulEndri always appreciate the feedback, something I hadn't originally considered when starting this work was the impact that the pipeline has on the change stream document as well, since currently the generic only controls the schema there isn't a way to account for a possible change like $addFields in the types. I've put this on the PR for the back burner for the moment while we consider how we could better support that possibility. It may come down to offering a new API that can capture the potential variability of the type. If we had something that better accounted for the pipeline then something like:
client.watchFor([{ $match: { operationType: 'insert' } }])

might be able to filter the actual change stream document type returned. Any ideas are welcome additions to the conversation 🙂

I'm proposing we add a second optional generic argument that can override the type of the whole change stream document. Unfortunately you can't skip arguments so the schema will need to be passed in first, but the second argument can be extended from our existing types making adding/omitting properties somewhat ergonomic.
The impact on users should still be the same as the change proposed so far where certain properties need narrowing to access. Those who want a solution that doesn't require runtime narrowing could use this second argument to strictly type their changes or pass in any removing all strictness.
type InsertChangeWithComment = ChangeStreamInsertDocument<Schema> & { comment: string };

const pipelineChangeStream = collection.watch<Schema, InsertChangeWithComment>([
  { $addFields: { comment: 'big changes' } },
  { $match: { operationType: 'insert' } },
]);

pipelineChangeStream.addListener('change', change => {
  expectType<string>(change.comment);
  // No need to narrow in code because the generics did that for us!
  expectType<Schema>(change.fullDocument);
});

Waiting on #3215 to slim this PR down


Feature: Exit nodes

Describe the solution you'd like
It would be great if you could implement exit nodes like Tailscale, which can be selected in the client.
https://tailscale.com/kb/1103/exit-nodes/
Many thanks for considering this :)

Agree. It's a bit odd that this is missing. The network routes section won't let you add a route smaller than a /7

duplicate of #289

Closing duplicate

you say this is a duplicate of #289 and that brings me to #723 and they are both closed and netbird still wont allow anything larger than a /7.
the use of a <IP_ADDRESS>/0 route especially with mobile devices might even solve the bug you have in the android client on #858 ?

Any update on this? I am evaluating a few solutions and I like netbird a lot. However, I need this functionality.

Any updates on this?

Having an Exit node can come in handy..

Is this a planned feature. It's the only thing stopping me using netbird as my primary (and only) VPN solution.

Any news on when exit node feature will come to Android/iOS clients? Looks like this is only feature, that keeping us from switching to NetBird.


ci: add automated ci pipeline

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add folder Structure

before: we had defined all the paths/routes and logic in the server's file
now: we have defined routes in individual files and moved the logic to its respective controller file
project starts correctly

Awsome, I had my thoughts mixed up about this.


[7.x] Fix double slashes with cached routes (#32228)

Fix discrepancy between routes and cached routes (#32228).
With this fix, url with many slashes at the begin (like http://<IP_ADDRESS>:8000//foo) will work consistently with routes cached or not.

http://<IP_ADDRESS>//foo is an incorrect url and shouldn't work in the first place tbh 🤷♂

Yeh, I think so too. It is a bug that is works when not cached.

Ok I agree, I did it the other way arround with #32252 to forbid this usage


test: unit tests for product service

updated few outdated images in docs

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

34 of 743 (4.58%)  changed or added relevant lines in 10 files are covered.
11 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.2%) to 9.522%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/api/v1beta1/billing_plan.go
0
1
0.0%

internal/api/v1beta1/billing_usage.go
0
1
0.0%

internal/store/postgres/billing_feature_repository.go
0
3
0.0%

internal/store/postgres/billing_price_repository.go
0
5
0.0%

billing/stripetest/mocks/backend.go
26
140
18.57%

billing/product/mocks/feature_repository.go
0
195
0.0%

billing/product/mocks/price_repository.go
0
195
0.0%

billing/product/mocks/repository.go
0
195
0.0%

Files with Coverage Reduction
New Missed Lines
%

internal/store/postgres/billing_price_repository.go
3
0.0%

internal/store/postgres/billing_feature_repository.go
8
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
10245

Relevant Lines:
107594

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

34 of 743 (4.58%)  changed or added relevant lines in 10 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 9.521%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/api/v1beta1/billing_plan.go
0
1
0.0%

internal/api/v1beta1/billing_usage.go
0
1
0.0%

internal/store/postgres/billing_feature_repository.go
0
3
0.0%

internal/store/postgres/billing_price_repository.go
0
5
0.0%

billing/stripetest/mocks/backend.go
26
140
18.57%

billing/product/mocks/feature_repository.go
0
195
0.0%

billing/product/mocks/price_repository.go
0
195
0.0%

billing/product/mocks/repository.go
0
195
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
10245

Relevant Lines:
107601

💛  - Coveralls


feat: nhl.com site

I was having trouble with the extant sites for this channel so I decided to add a source for the league's own guide. Unfortunately it's missing images since I don't know where they need to be hosted :(

Test passed.
Grabber worked.

I'm onto the EPG maintenance PR right now, if Arhey deems it good to go, so will I.


SAMZA-1229: Disk space monitor should only count data in use by the container

@santhoshvenkat1988 @vjagadish1989 Please take a look.


RPC Window remains open on shutdown.

Describe the issue
RPC Console remains open on shutdown.
Steps to reproduce

Start wallet.
Open RPC Console.
Close Wallet.

Expected behavior
RPC Console should close on shutdown.
Actual behavior
RPC Console remains open on shutdown.
What platform are you using (Linux, Windows, Mac)
El Capitan 10.11.6 OS X

PR #40 fixes this issue.


Fixed verification issue

Fixes #571

The issue was that you were using your "elastic email" account's username and password here. Instead you should click on "connect to smtp api" in the home page and then create a SMTP. You can then use the username and password from there to replace the "username" and "password" section here.
Note : Don't forget to verify you email address here and add the "From" part.
Test plan (OPTIONAL)
Clone the repo and fill in the "username" "password" and "from" details here.
Checklist

[x] I have mentioned related issue number in PR description.
[] I have added screenshots and related demo links of my changes..
[x] The title of my pull request is a short description of the requested changes.
[x] My code follows the code style of this project.
[] My change requires a change to the documentation.
[] I have updated the documentation accordingly.
[x] Open Source Program names(Hacktoberfest)

Let me know if something doesn't work


Feature#465v2

Cache added to the challenge microservice.

CacheConfig class created and configured to have an expiration time of 10 minutes.
@Cacheable added to all the methods on ChallengeServiceImp that have database queries.
@CacheEvict added to all the methods on ChallengeServiceImp that modify the database.
ChallengeServiceImplCacheTest class created checking that the cache is correctly implemented.
getSolutions method on ChallengeServiceImp corrected to return the correct expected List.
The list of the methods on UserSolutionServiceImp on the user microservice that are candidates to use cache and are commented with //@Cacheable:

getChallengeById
getChallengeStatistics
getBookmarkCountByIdChallenge
getChallengeUsersPercentage
getUserSolutions
getUserSolutionsChallenge

There is a conflicting file. Please review it ;)


initial attempt to always add listeners to warming list.

Signed-off-by: Jianfei Hu<EMAIL_ADDRESS>For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

Closing this since we'll proceed with checking worker_started_. Will send out separate PR to show config dump correctly.


docs(components): fix typo in components page menu

Change menu item incorrectly spelled as "Breadscrumbs" to the correct form "Breadcrumbs".

Thanks @polmauri!


Update custom WS URL for tests

This allows to have diffrent endpoints for each device using their UPNP identifier

LGTM


Add support for relational database-based queues

Similar to Anansi's crawl queue, this could be implemented as a fairly simple single-table schema.

Closing as it can be implemented elsewhere if required.


Add FCE & FMMT tool user guide (Bugzilla Bug 2765)

This issue was created automatically with bugzilla2github
Bugzilla Bug 2765
Date: 2020-05-22T11:38:03+00:00
From: nobody <>
To:   @dandanbi
CC:
Last updated: 2020-05-25T10:28:50+00:00

Comment 12674
Date: 2020-05-22 11:56:00 +0000
From: nobody <>
Created attachment 516
FMMT Guide
Attachment: BZ-516-FMMT_User_Guide.pdf

Comment 12673
Date: 2020-05-22 11:55:35 +0000
From: nobody <>
Created attachment 515
FCE Guide
Attachment: BZ-515-Intel Firmware Configuration Editor Quick Start Guide.pdf

Comment 12671
Date: 2020-05-22 11:38:03 +0000
From: nobody <>

Industry Specification: ---
Target OS: ---
Bugzilla Assignee(s): @dandanbi

FCE & FMMT tool user guide PDF version can be found in https://software.intel.com/content/www/us/en/develop/articles/unified-extensible-firmware-interface.html.
This request is to convert them as md style and upload them into source code directory.

Comment 12672
Date: 2020-05-22 11:38:35 +0000
From: nobody <>
Liming will take it.

Comment 12704
Date: 2020-05-25 10:28:50 +0000
From: nobody <>
Dandan will take it.


Windows?

Why can't we use Windows? Is Trump now being OS'ist!?!? xD. But seriously, please add support for Windows.

Hey kool601, incompatability with Windows is actually one of the "features" of TrumpScript.
See the README, In its raw form, TrumpScript is not compatible with Windows, because Trump isn't the type of guy to believe in PC.
However, if you want to run it on a Windows computer, you can just comment out line 33 in utils.py


What's the database for hasura?

I try to open the app, but when I want to create an account, it throws me this error:
no mutations exist

Hi,
I know about this issue, actually due to app being inactive for a while, the database got shut down
I'm thinking to migrate from Hasura to Firebase, and make this app come back to life.
Feel free to contribute

i hope this app migrate to firebase


Push unsigned all package with manifests

This allows us to use the aspnetcore-ci-dev feed for the .All metapackage in testing the runtime store.

Just realized this doesn't quite work. The reason being that coherence has already pushed the .All metapackage and here we are trying to push the same package to the same feed with the same version but different contents.

I see two alternatives:
A. we add an exclusion mechanism to Coherence that prevents pushing the .All package and push it later in the Coherence-PackageCache build.
B. we change the order of the Coherence and Coherence-PackageCache builds and run Coherence after the runtime store builds are complete
The problem with A is that we'll be missing the .All package in the ci-dev feed until the Coherence-PackageCache completes. This means that the packages on the ci-dev feeds are not completely "coherent". The problem with B is that we'll add another 24 minutes to our overall build time. cc @ryanbrandenburg due to the impact on builds.

This will need a bit more though on how the builds flow. Closing for now.


Connections to IMAP using Let's Encrypt certificates fail

RainLoop version, browser, OS:
RainLoop <IP_ADDRESS>
Firefox 50.0
Win8/Linux
Expected behavior and actual behavior:
Previously, my Cyrus IMAP server used a StartSSL certificate and Rainloop was able to connect to this server without any problems. After switching the certificates to Let's Encrypt, RainLoop fails to connect. When clicking the "Test" button in the admin panel, it show the following error:

stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

In my opinion, Cyrus is configured correctly. For example, other IMAP clients, such as Thunderbird, connect without any problems and additionally the CA chain looks correct:
# openssl s_client -connect server.example.com:993 -CAfile /etc/letsencrypt/live/server.example.com/chain.pem
depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify return:1
depth=0 CN = server.example.com
verify return:1
CONNECTED(00000003)
---
Certificate chain
 0 s:/CN=server.example.com
   i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
---
...

Steps to reproduce the problem:

Set up Cyrus IMAPd with Let's encrypt certificates in /etc/imapd.conf:

tls_key_file: /etc/letsencrypt/live/server.example.com/privkey.pem
tls_cert_file: /etc/letsencrypt/live/server.example.com/cert.pem
tls_cacert_file: /etc/letsencrypt/live/server.example.com/fullchain.pem

Configure RainLoop to connect to port 993 using SSL/TLS to the IMAP server.
Configure the RainLoop application.ini to use the Let's encrypt CA file:
cafile = "/etc/letsencrypt/live/server.example.com/chain.pem"
Log ins fail. In the admin panel, clicking the "Test" button in the domain settings, show the error above.

Additional information:

Cyrus logs on a failed try:

Nov 26 01:49:55 server imaps[8988]: imaps TLS negotiation failed: server.example.com [<IP_ADDRESS>]
Nov 26 01:49:55 server imaps[8988]: Fatal error: tls_start_servertls() failed

Disabling "verify_certificate" in the application.ini is a workaround. However, it makes no sense to disable this and allow MITM attacks.

I think the SSL-verification is done by standard PHP-libraries and not by rainloop itself. So maybe your PHP-version just does not accept Let's encrypt certificates. What' your PHP version?

do u fix it? I got same error


Import Hetzner aarch64-linux builder config into delft/

So that everyone else in core-infra can access it, deploy changes, and fix issues.
Possibly blocked on #324?

(Alternatively, if you don't have the time to actually do the work integrating this into delft/, feel free to just dump the existing config here or in a gist or something, and someone else can take a look later.)

It was a quick copy&paste of various bits:
{ config, pkgs, lib, ... }:

with (import ./common-let.nix pkgs);
{
  environment.systemPackages = with pkgs; [
    atop lm_sensors
    git fish
    # nvme smart-log -H /dev/nvme0
    smartmontools nvme-cli
  ];

  fileSystems = with fsOpts; {
    "/".options = btrfs_new ++ [ "commit=300" ];
  };

  hardware.enableRedistributableFirmware = true;
  #hardware.rasdaemon.enable = true; # ??

  networking = {
    firewall.allowPing = true;
  };

  #nix.package = pkgs.nixVersions.nix_2_13; # hope for GC with fewer errors
  nix.settings = {
    auto-optimise-store = true; # good on SSD
    experimental-features = "nix-command";
  };

  # ??
  # Better default than what's generated into ./hardware-configuration.nix
  powerManagement.cpuFreqGovernor = lib.mkForce "schedutil";

  services = {
    # TODO: ?
    #journald.extraConfig = "SystemMaxUse=1G";

    fstrim.enable = lib.mkDefault true; # good, probably?

    openssh = {
      enable = true;
      settings.PasswordAuthentication = false;
    };
  };

  time.timeZone = "Europe/Prague";

  users = {
    mutableUsers = false;
    extraUsers.root.openssh.authorizedKeys.keys = with sshKeys; [
      vcunat.zazen vcunat.nics vcunat.hime
      hydra.farm ''command="nix-store --serve --write" ${hydra.queue}''
    ];
  };

  zramSwap.enable = true;

  ### Various tweaks, from:
  ### https://github.com/NixOS/nixos-org-configurations/blob/master/delft/common.nix

  # Bump the open files limit so that non-root users can run NixOS VM
  # tests (Samba opens lot of files).
  security.pam.loginLimits =
    [ { domain = "*"; item = "nofile"; type = "-"; value = "16384"; }
    ];

  # Enable Kernel Samepage Merging (reduces memory footprint of VMs).
  systemd.services."enable-ksm" =
    { description = "Enable Kernel Same-Page Merging";
      wantedBy = [ "multi-user.target" ];
      after = [ "systemd-udev-settle.service" ];
      script =
        ''
          if [ -e /sys/kernel/mm/ksm ]; then
            echo 1 > /sys/kernel/mm/ksm/run
          fi
        '';
    };

  # Disable the systemd-journald watchdog. The default timeout (1min)
  # can easily be triggered on our slow, heavily-loaded disks. And
  # that may cause services writing to the journal to fail until
  # they're restarted.
  systemd.services.systemd-journald.serviceConfig.WatchdogSec = 0;

  ### Garbage collection   FIXME: improve? A custom script perhaps?
  # https://github.com/NixOS/nixos-org-configurations/blob/master/delft/build-machines-common.nix
  # Decreased interval, as the collected amounts tended to be rather low.
  nix.gc = {
    automatic = true;
    dates = "03,15:15";
    randomizedDelaySec = "1h"; # don't block all build machines at the same time.
  };
}

# Do not modify this file!  It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations.  Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/installer/scan/not-detected.nix")
    ];

  boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ ];
  boot.extraModulePackages = [ ];

  fileSystems."/" =
    { device = "/dev/disk/by-uuid/0f8cb540-99f0-4b71-8206-0fb813c2b0b0";
      fsType = "btrfs";
    };

  fileSystems."/boot" =
    { device = "/dev/disk/by-uuid/28C3-5AC2";
      fsType = "vfat";
    };

  swapDevices = [ ];

  # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
  # (the default) this is the recommended approach. When using systemd-networkd it's
  # still possible to use this option, but it's recommended to use it in conjunction
  # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
  networking.useDHCP = lib.mkDefault true;
  # networking.interfaces.eno1.useDHCP = lib.mkDefault true;
  # networking.interfaces.eno2.useDHCP = lib.mkDefault true;

  nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}

I'm not sure if there's much content worth salvaging.

By the way, there is an option for KSM: hardware.ksm.enable

Other option that @mweinelt suggested: we could make the Hetzner aarch64-linux builder boot from a similar iPXE image to what Packet uses, and make it netboot using the same image.
Sounds like a really good idea to me, actually.

Filed a support ticket to get a USB drive attached to the server so we can put on it:

An iPXE build with embedded script.
Secrets like the SSH host key (since we can't broker it via the Equinix Metal API).
Possibly: network config data since we don't have a DHCP.


Unable to run the app

(base) MacBook-Pro:~ deathcode$ log stream --source | grep "com.black-dragon74.ROG-HID-Driver"
2020-09-01 03:04:29.453721+0530 0x3ae1     Default     0xa45f               1255   0    <sysextd> sysextd: attempting to realize extension with identifier com.black-dragon74.ROG-HID-Driver
2020-09-01 03:04:29.470854+0530 0x3ae1     Default     0xa45f               1255   0    <sysextd> sysextd: staging extension with identifier com.black-dragon74.ROG-HID-Driver
2020-09-01 03:04:29.483828+0530 0x3ae1     Default     0xa45f               1255   0    <sysextd> sysextd: Making activation decision for extension with teamID teamID("LUPK75PW6Q"), identifier com.black-dragon74.ROG-HID-Driver
2020-09-01 03:04:29.484102+0530 0x3ae1     Default     0xa45f               1255   0    <sysextd> sysextd: validating extension with identifier com.black-dragon74.ROG-HID-Driver
2020-09-01 03:04:29.496246+0530 0x3ae1     Default     0xa45f               1255   0    <sysextd> sysextd: uninstalling invalid extension com.black-dragon74.ROG-HID-Driver
2020-09-01 03:04:29.499536+0530 0x3ae1     Default     0xa45f               1255   0    <sysextd> sysextd: finished uninstalling extension com.black-dragon74.ROG-HID-Driver
2020-09-01 03:04:29.499613+0530 0x3ae1     Default     0xa45f               1255   0    <sysextd> sysextd: waiting for external validation of extension with identifier com.black-dragon74.ROG-HID-Driver

Stucks on this and nothing happens thereafter
(base) MacBook-Pro:~ deathcode$ csrutil status
System Integrity Protection status: disabled.

tried disabling the SIP using clover configuration, recovery and different flags such as 0x67 for CsrActivateConfig but not luck

This has to do some misconfiguration on your end and has nothing to do with the functionality of this driver.


Fix PyQT5 on non-x64 platforms

Doesn't work, its not possible to install pyqt5 from source using pip

Make sure to delete the branch after closing a PR


Rever Stack

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Reverse a stack using recursion
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests

#5942


how to get m matrix from original raw/yaw/pitch?

anyone knows??

hi, which one file is the Encoder(E) and the Decoder(D)? Thank you

hi, which one file is the Encoder(E) and the Decoder(D)? Thank you

In my opinion,  it has no Decoder  or Encoder in original paper, and it has nothing to do with GAN

However, the author say their code works， only some areas need optimization，and if there is no E and D, how can his frame effect be obtained? So I am also confused. Do you have a better opinion on this project? Is it convenient to communicate?

anyone knows??

       # transform mesh
        s = pose_para[-1, 0]
        angles = pose_para[:3, 0]
        t = pose_para[3:6, 0]
        angles = np.asarray([angles[0], angles[1], angles[2]])
        matrix = mesh.transform.angle2matrix_3ddfa(angles)
        ortho_matrix = np.asarray([
            [1,0,0],
            [0,1,0]])
        t_matrix = np.asarray([[t[0]],[t[1]]])
        m = ortho_matrix.dot(matrix)
        m = s * m #----scale
        print("m.shape:\t", m.shape)
        #-----version 3------
        m = np.concatenate([m,t_matrix], axis=1).T
        vertices = vertices
        m = m.reshape(-1, 8)

hi, which one file is the Encoder(E) and the Decoder(D)? Thank you

In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN

hi,  I try to use the follow command to run this source code,but reporting errors.

[ ]

[ ]

hi, which one file is the Encoder(E) and the Decoder(D)? Thank you

In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN

hi, I try to use the follow command to run this source code,but reporting error.
the error as follow:
"NotFoundError: TF_newop/cuda_op_kenel_v2-sz224.so:cannot open shared object file:No such file or directory"
the command as follow
""python main_non_linear_3DMM.py --batch_size 128 --sample_size 128 --is_train True --learning_rate 0.001 --ouput_size 224
--gf_dim 32 --df_dim 32 --dfc_dim 320 --gfc_dim 320 --z_dim 20 --c_dim 3
--is_using_landmark True --shape_loss l2 --tex_loss l1
--is_using_recon False --is_using_frecon False --is_partbase_albedo False --is_using_symetry True
--is_albedo_supervision False --is_batchwise_white_shading True --is_const_albedo True --is_const_local_albedo True --is_smoothness True
--gpu 0,""
Have you encountered this situation before? If so, how did you solve it?

anyone knows??

       # transform mesh
        s = pose_para[-1, 0]
        angles = pose_para[:3, 0]
        t = pose_para[3:6, 0]
        angles = np.asarray([angles[0], angles[1], angles[2]])
        matrix = mesh.transform.angle2matrix_3ddfa(angles)
        ortho_matrix = np.asarray([
            [1,0,0],
            [0,1,0]])
        t_matrix = np.asarray([[t[0]],[t[1]]])
        m = ortho_matrix.dot(matrix)
        m = s * m #----scale
        print("m.shape:\t", m.shape)
        #-----version 3------
        m = np.concatenate([m,t_matrix], axis=1).T
        vertices = vertices
        m = m.reshape(-1, 8)

hi, which one file is the Encoder(E) and the Decoder(D)? Thank you

In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN

hi, I try to use the follow command to run this source code,but reporting errors.

[ ]
[ ]

hi, which one file is the Encoder(E) and the Decoder(D)? Thank you

In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN

hi, I try to use the follow command to run this source code,but reporting error.
the error as follow:
"NotFoundError: TF_newop/cuda_op_kenel_v2-sz224.so:cannot open shared object file:No such file or directory"
the command as follow
""python main_non_linear_3DMM.py --batch_size 128 --sample_size 128 --is_train True --learning_rate 0.001 --ouput_size 224
--gf_dim 32 --df_dim 32 --dfc_dim 320 --gfc_dim 320 --z_dim 20 --c_dim 3
--is_using_landmark True --shape_loss l2 --tex_loss l1
--is_using_recon False --is_using_frecon False --is_partbase_albedo False --is_using_symetry True
--is_albedo_supervision False --is_batchwise_white_shading True --is_const_albedo True --is_const_local_albedo True --is_smoothness True
--gpu 0,""
Have you encountered this situation before? If so, how did you solve it?
you need compile cuda_op_kenel_v2-sz224.so firstly.
and this repo seems a little difficult to reimplement

I did not find the "cuda_op_kenel_v2-sz224.so" under the "TF_newop" folder. so I want to ask where can I find the file? I use the follow command: ./compile_op_v2_sz224.sh, but it reporting error.
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2020年6月3日(星期三) 上午10:26
收件人<EMAIL_ADDRESS>抄送: "梦之泪"<995657906<EMAIL_ADDRESS>主题: Re: [tranluan/Nonlinear_Face_3DMM] how to get m matrix from original raw/yaw/pitch?  (#35)
anyone knows??
# transform mesh         s = pose_para[-1, 0]         angles = pose_para[:3, 0]         t = pose_para[3:6, 0]         angles = np.asarray([angles[0], angles[1], angles[2]])         matrix = mesh.transform.angle2matrix_3ddfa(angles)         ortho_matrix = np.asarray([             [1,0,0],             [0,1,0]])         t_matrix = np.asarray([[t[0]],[t[1]]])         m = ortho_matrix.dot(matrix)         m = s * m #----scale         print("m.shape:\t", m.shape)         #-----version 3------         m = np.concatenate([m,t_matrix], axis=1).T         vertices = vertices         m = m.reshape(-1, 8)
hi, which one file is the Encoder(E) and the Decoder(D)? Thank you
In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN
hi, I try to use the follow command to run this source code,but reporting errors.
[ ]
[ ]
hi, which one file is the Encoder(E) and the Decoder(D)? Thank you
In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN
hi, I try to use the follow command to run this source code,but reporting error.
the error as follow:
"NotFoundError: TF_newop/cuda_op_kenel_v2-sz224.so:cannot open shared object file:No such file or directory"
the command as follow
""python main_non_linear_3DMM.py --batch_size 128 --sample_size 128 --is_train True --learning_rate 0.001 --ouput_size 224
--gf_dim 32 --df_dim 32 --dfc_dim 320 --gfc_dim 320 --z_dim 20 --c_dim 3
--is_using_landmark True --shape_loss l2 --tex_loss l1
--is_using_recon False --is_using_frecon False --is_partbase_albedo False --is_using_symetry True
--is_albedo_supervision False --is_batchwise_white_shading True --is_const_albedo True --is_const_local_albedo True --is_smoothness True
--gpu 0,""
Have you encountered this situation before? If so, how did you solve it?
you need compile cuda_op_kenel_v2-sz224.so firstly.
and this repo seems a little difficult to reimplement
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

For the encoder module, how does it estimate the parameters? How do you understand? thanks for your answer.
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2020年6月3日(星期三) 上午10:26
收件人<EMAIL_ADDRESS>抄送: "梦之泪"<995657906<EMAIL_ADDRESS>主题: Re: [tranluan/Nonlinear_Face_3DMM] how to get m matrix from original raw/yaw/pitch?  (#35)
anyone knows??
# transform mesh         s = pose_para[-1, 0]         angles = pose_para[:3, 0]         t = pose_para[3:6, 0]         angles = np.asarray([angles[0], angles[1], angles[2]])         matrix = mesh.transform.angle2matrix_3ddfa(angles)         ortho_matrix = np.asarray([             [1,0,0],             [0,1,0]])         t_matrix = np.asarray([[t[0]],[t[1]]])         m = ortho_matrix.dot(matrix)         m = s * m #----scale         print("m.shape:\t", m.shape)         #-----version 3------         m = np.concatenate([m,t_matrix], axis=1).T         vertices = vertices         m = m.reshape(-1, 8)
hi, which one file is the Encoder(E) and the Decoder(D)? Thank you
In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN
hi, I try to use the follow command to run this source code,but reporting errors.
[ ]
[ ]
hi, which one file is the Encoder(E) and the Decoder(D)? Thank you
In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN
hi, I try to use the follow command to run this source code,but reporting error.
the error as follow:
"NotFoundError: TF_newop/cuda_op_kenel_v2-sz224.so:cannot open shared object file:No such file or directory"
the command as follow
""python main_non_linear_3DMM.py --batch_size 128 --sample_size 128 --is_train True --learning_rate 0.001 --ouput_size 224
--gf_dim 32 --df_dim 32 --dfc_dim 320 --gfc_dim 320 --z_dim 20 --c_dim 3
--is_using_landmark True --shape_loss l2 --tex_loss l1
--is_using_recon False --is_using_frecon False --is_partbase_albedo False --is_using_symetry True
--is_albedo_supervision False --is_batchwise_white_shading True --is_const_albedo True --is_const_local_albedo True --is_smoothness True
--gpu 0,""
Have you encountered this situation before? If so, how did you solve it?
you need compile cuda_op_kenel_v2-sz224.so firstly.
and this repo seems a little difficult to reimplement
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

For the encoder module, how does it estimate the parameters? How do you understand? thanks for your answer.
…
------------------ 原始邮件 ------------------ 发件人<EMAIL_ADDRESS>发送时间: 2020年6月3日(星期三) 上午10:26 收件人<EMAIL_ADDRESS>抄送: "梦之泪"<995657906<EMAIL_ADDRESS>主题: Re: [tranluan/Nonlinear_Face_3DMM] how to get m matrix from original raw/yaw/pitch? (#35) anyone knows?? # transform mesh s = pose_para[-1, 0] angles = pose_para[:3, 0] t = pose_para[3:6, 0] angles = np.asarray([angles[0], angles[1], angles[2]]) matrix = mesh.transform.angle2matrix_3ddfa(angles) ortho_matrix = np.asarray([ [1,0,0], [0,1,0]]) t_matrix = np.asarray([[t[0]],[t[1]]]) m = ortho_matrix.dot(matrix) m = s * m #----scale print("m.shape:\t", m.shape) #-----version 3------ m = np.concatenate([m,t_matrix], axis=1).T vertices = vertices m = m.reshape(-1, 8) hi, which one file is the Encoder(E) and the Decoder(D)? Thank you In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN hi, I try to use the follow command to run this source code,but reporting errors. [ ] [ ] hi, which one file is the Encoder(E) and the Decoder(D)? Thank you In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN hi, I try to use the follow command to run this source code,but reporting error. the error as follow: "NotFoundError: TF_newop/cuda_op_kenel_v2-sz224.so:cannot open shared object file:No such file or directory" the command as follow ""python main_non_linear_3DMM.py --batch_size 128 --sample_size 128 --is_train True --learning_rate 0.001 --ouput_size 224 --gf_dim 32 --df_dim 32 --dfc_dim 320 --gfc_dim 320 --z_dim 20 --c_dim 3 --is_using_landmark True --shape_loss l2 --tex_loss l1 --is_using_recon False --is_using_frecon False --is_partbase_albedo False --is_using_symetry True --is_albedo_supervision False --is_batchwise_white_shading True --is_const_albedo True --is_const_local_albedo True --is_smoothness True --gpu 0,"" Have you encountered this situation before? If so, how did you solve it? you need compile cuda_op_kenel_v2-sz224.so firstly. and this repo seems a little difficult to reimplement — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

this repo is very hard to reimplement,  and i quit it

For the encoder module, how does it estimate the parameters? How do you understand? thanks for your answer.
…
------------------ 原始邮件 ------------------ 发件人<EMAIL_ADDRESS>发送时间: 2020年6月3日(星期三) 上午10:26 收件人<EMAIL_ADDRESS>抄送: "梦之泪"<995657906<EMAIL_ADDRESS>主题: Re: [tranluan/Nonlinear_Face_3DMM] how to get m matrix from original raw/yaw/pitch? (#35) anyone knows?? # transform mesh s = pose_para[-1, 0] angles = pose_para[:3, 0] t = pose_para[3:6, 0] angles = np.asarray([angles[0], angles[1], angles[2]]) matrix = mesh.transform.angle2matrix_3ddfa(angles) ortho_matrix = np.asarray([ [1,0,0], [0,1,0]]) t_matrix = np.asarray([[t[0]],[t[1]]]) m = ortho_matrix.dot(matrix) m = s * m #----scale print("m.shape:\t", m.shape) #-----version 3------ m = np.concatenate([m,t_matrix], axis=1).T vertices = vertices m = m.reshape(-1, 8) hi, which one file is the Encoder(E) and the Decoder(D)? Thank you In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN hi, I try to use the follow command to run this source code,but reporting errors. [ ] [ ] hi, which one file is the Encoder(E) and the Decoder(D)? Thank you In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN hi, I try to use the follow command to run this source code,but reporting error. the error as follow: "NotFoundError: TF_newop/cuda_op_kenel_v2-sz224.so:cannot open shared object file:No such file or directory" the command as follow ""python main_non_linear_3DMM.py --batch_size 128 --sample_size 128 --is_train True --learning_rate 0.001 --ouput_size 224 --gf_dim 32 --df_dim 32 --dfc_dim 320 --gfc_dim 320 --z_dim 20 --c_dim 3 --is_using_landmark True --shape_loss l2 --tex_loss l1 --is_using_recon False --is_using_frecon False --is_partbase_albedo False --is_using_symetry True --is_albedo_supervision False --is_batchwise_white_shading True --is_const_albedo True --is_const_local_albedo True --is_smoothness True --gpu 0,"" Have you encountered this situation before? If so, how did you solve it? you need compile cuda_op_kenel_v2-sz224.so firstly. and this repo seems a little difficult to reimplement — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

this repo is very hard to reimplement, and i quit it

I compile cuda_op_kenel_v2-sz224.so firstly."host_defines.h is an internal header file and must not be used directly. The error happen" This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]"? Do you occur to the error?

For the encoder module, how does it estimate the parameters? How do you understand? thanks for your answer.
…
------------------ 原始邮件 ------------------ 发件人<EMAIL_ADDRESS>发送时间: 2020年6月3日(星期三) 上午10:26 收件人<EMAIL_ADDRESS>抄送: "梦之泪"<995657906<EMAIL_ADDRESS>主题: Re: [tranluan/Nonlinear_Face_3DMM] how to get m matrix from original raw/yaw/pitch? (#35) anyone knows?? # transform mesh s = pose_para[-1, 0] angles = pose_para[:3, 0] t = pose_para[3:6, 0] angles = np.asarray([angles[0], angles[1], angles[2]]) matrix = mesh.transform.angle2matrix_3ddfa(angles) ortho_matrix = np.asarray([ [1,0,0], [0,1,0]]) t_matrix = np.asarray([[t[0]],[t[1]]]) m = ortho_matrix.dot(matrix) m = s * m #----scale print("m.shape:\t", m.shape) #-----version 3------ m = np.concatenate([m,t_matrix], axis=1).T vertices = vertices m = m.reshape(-1, 8) hi, which one file is the Encoder(E) and the Decoder(D)? Thank you In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN hi, I try to use the follow command to run this source code,but reporting errors. [ ] [ ] hi, which one file is the Encoder(E) and the Decoder(D)? Thank you In my opinion, it has no Decoder or Encoder in original paper, and it has nothing to do with GAN hi, I try to use the follow command to run this source code,but reporting error. the error as follow: "NotFoundError: TF_newop/cuda_op_kenel_v2-sz224.so:cannot open shared object file:No such file or directory" the command as follow ""python main_non_linear_3DMM.py --batch_size 128 --sample_size 128 --is_train True --learning_rate 0.001 --ouput_size 224 --gf_dim 32 --df_dim 32 --dfc_dim 320 --gfc_dim 320 --z_dim 20 --c_dim 3 --is_using_landmark True --shape_loss l2 --tex_loss l1 --is_using_recon False --is_using_frecon False --is_partbase_albedo False --is_using_symetry True --is_albedo_supervision False --is_batchwise_white_shading True --is_const_albedo True --is_const_local_albedo True --is_smoothness True --gpu 0,"" Have you encountered this situation before? If so, how did you solve it? you need compile cuda_op_kenel_v2-sz224.so firstly. and this repo seems a little difficult to reimplement — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

this repo is very hard to reimplement, and i quit it

I compile cuda_op_kenel_v2-sz224.so firstly."host_defines.h is an internal header file and must not be used directly. The error happen" This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]"? Do you occur to the error?


Platform list platforms

https://www.docubricks.com/
Wikifab
thingiverse
github
gitlab
gitea
maker.pro
OSEG wiki
OSE wiki
(may be bullshit:) https://www.tinkercad.com/
https://projects.humanitarianmaking.org/
https://www.open-electronics.org/
https://learn.adafruit.com/guides/projects
https://www.latelierpaysan.org/Technical-drawings-tutorials

Please still add the following platforms to the analysis:

[ ] Wikifactory
[ ] Appropedia

Updated :)  Can you add the integration type for appropedia and wikifactory? @moedn
Thanks


⚠ Processors has degraded performance

In d088f5e, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 45 ms

Resolved: Processors performance has improved in e8513c2.


Disabled button to actually be disabled [JAWS]

No matter the button is a simpleHtml one or not. we always set the button as disabled via the proper attribute when needed.
We previously were setting it only in case of a simpleHTML button.
I am doing it all the time, there is no need is to check that waiAria is active.

We just need to double check that everything is fine on IE7 where we don't have a button.
It should be fine, but did not yet had time to test it.

@divdavem @fbasso All tests are green. Do you think we could merge it ?

_widgetMarkup should also be modified so that if the button is disabled, the initial markup contains the disabled attribute.

@divdavem I somehow reverted my change to keep in mind that when simpleHTML is true there is no frame. I also modified the _widgetMarkup() method accordingly.

:ok: c6bb070f9f086007bd4fc33f313ef168d7db3832 seems fine for me.


Why don't use sigmoid in the switch

I have checked the paper and code , in the SAC module, the switch function is a 1x1 conv layer,  when  you  get the switch feature map, you don't use the sigmoid function to activate the feature, but you set the weight value as  '1-switch'  and 'switch', if you don't use sigmoid, why compute '1-switch'? you can set the weight value as '-switch' and 'switch' directly.

Thanks for the great question. We have tried Sigmoid, but observed slight performance decrease. The problem was that we it was hard to initialize the weight before Sigmoid to make the models loaded from the pre-trained checkpoints have the same outputs with the models without SAC. For example, '-switch' and 'switch' will break the pre-trained models. So we chose to not have Sigmoid, despite that the model is less interpretable.

Thanks for reply, the idea of "w+delt w" is cool~


Shared Library Creation in Windows

Is there a reason not to allow the creation of a shared library in Windows?
# [option] BUILD_SHARED_LIBS (default: OFF)
# Build a shared library if set to ON. Build a static library regardlessly.
set(BUILD_SHARED_LIBS_STR "Build shared library")
option(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_STR} OFF)
if(WIN32 AND BUILD_SHARED_LIBS)
     message(FATAL_ERROR "On Windows only static build is supported; set `BUILD_SHARED_LIBS=OFF`")
endif()

Visual Studio 2019 error mesage
On Windows only static build is supported; set `BUILD_SHARED_LIBS=OFF`	SEAL

Because of the setting in <path_to_project>\out/build/x64-Debug (Standard)/_deps/seal-src/CMakeLists.txt, line 203.

With MSVC, symbols that aren't explicitly exported won't show up in the symbol table of the DLL. We didn't export any symbols explicitly. However, this is not a problem on Linux.

I see. I have a working Linux dev environment and I wanted to try and build my project (Client + DB components) under windows with Visual Studio Community Edition 2019. At some point I create DB components (PostgreSQL C-Extension functions) to use SEAL with PostgreSQL. The linking process requires a SEAL shared library for that.
Are there any future plans to export the symbols explicitly?

It hasn't been a high priority, but we'll consider it for the next release. For now, I think you could just disable the check from the CMake file and compile with a MSVC flag that exports all symbols.

Thank you and no rush at all, I have a fully working Linux dev environment.


Collectible bugs bundle fix

Fixes #487
Description
This PR addresses all the reproducible issues listed in #487 and a filtering issue:

~clearing collectible dropdown doesn't update the list~  Could not reproduce.
loading for up to 5 seconds on images with broken link, then shows the broken image icon.
undefined attributes are filtered out
back button on nft detail page redirects to inventory
'collectibles per page' as label
Search didn't work correctly when collection was not selected.

Test scenarios

Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have cleaned up the code in the areas my change touches
[x] My changes generate no new warnings
[ ] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings
[x] I have removed any unnecessary console messages
[ ] I have included all english text to the translation file and/or created a new issue with the required translations for the currently supported languages
[ ] I have tested for mobile functionality and responsiveness
[ ] I have added appropriate test coverage

viedo-loading.webm

it looks like 2 different icons are being displayed for images which don't load:

using account 0x13B745FC35b0BAC9bab9fD20B7C9f46668232607 to test


Fix UI homepage

Redesign "Get Starter" button on home page to align with the new design.
Add curly braces on the navigation when active.
Redesign "Success" page to align with the new design.

PS: This is still open. @Teek-tech
CC: @mide358


Allow Spring @Autowired dependency injections and Spring Boot integration

In case other users find it interesting you could include that in your Documentation:
I have created a BDDTest class that runs with Spectrum.java and also initializes Spring ApplicationContext
@RunWith(Spectrum.class)
@Ignore
@SpringBootTest
public class BDDTest {

    //global autowired objects
    @Autowired
    protected DbC conf;

    @Before
    public void beforeTest() {
        // do stuff
    }
    @After
    public void afterTest() {
        // do stuff
    }

    private TestContextManager testContextManager;

    public BDDTest() {
        try {
            this.testContextManager = new TestContextManager(getClass());
            this.testContextManager.prepareTestInstance(this);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}

classes that are BDD-style can extend BDDTest like that:
public class AttributeControllerTest extends BDDTest {
    @Autowired
    private IAttributeService attributeService;
    private MockMvc mockMvc;

    {
        beforeAll(() -> {
            this.graph = graphService.getGraph();
            mockMvc = MockMvcBuilders
                    .standaloneSetup(new AttributeController(attributeService))
                    .setControllerAdvice(new GlobalExceptionHandler())
                    .build();
        });

        describe("after creation of attribute", () -> {
            Attribute storedAttribute = attributeService.storeAndFetch(new Attribute());

            describe( "fetchByUuid", () -> {
                it("should return 200", () -> {
                    mockMvc.perform(get("/api/attribute/" + storedAttribute.getUuid())).andExpect(status().isOk());
             });
        });
   }
}

Haven't tried it yet but constructor Dependency Injection using @Autowired should work too
Hope someone finds this helpful!

Have a look at the SpectrumHelper.java class in https://github.com/cloudfoundry-incubator/credhub.  Also have a look at the many tests in the project which use it. There's probably a better way to do it, but we've been using Spectrum to write Spring tests for almost a year and it's worked for us so far.

Have a look at https://github.com/cloudfoundry-incubator/credhub. We've been using Spectrum to write Spring tests for almost a year, and now the project is open source so we can share this.  There's probably a better way to do it, but it's worked for us so far.

There are limitations of this approach which are overcome by the junitMixin feature that is in the latest version of Spectrum. Please see the docs and post any questions on this thread.

I suggest we close this as I believe junitMixin and the native @Rule support should now render it obsolete.


image/plane are stretched vertically in a-frame with image-tracking

Hi !
first of all thanks a lot for the awesome work !
I have been studying and implementing it in one of my open-source apps, do•doc, which is mostly used by kids and they love the face tracking feature. They draw masks and add them to do•doc, where they can see them mapped on their faces. Works great :)

Anyway, I’ve been trying to add image-tracking as well (kids take a picture of two drawings, one becomes the target of the other) and almost can get it to work.
However I get what looks like a bug : the projected image is stretched vertically at first, but this is fixed when I open the a-frame inspector. What could cause this ?
Two screenshots to show the problem, the only difference between them is that I opened the inspector :

My a-frame code (I’ve added height and width but this makes things worse…) :
        <a-scene
          :mindar-image="`imageTargetSrc: ${mind_and_results[0].mind}; filterMinCF:0.1; filterBeta: 10;`"
          vr-mode-ui="enabled: false"
          device-orientation-permission-ui="enabled: false"
          color-space="sRGB"
          renderer="colorManagement: true, physicallyCorrectLights"
        >
          <a-assets>
            <img id="result" :src="'/' + mind_and_results[0].result" />
          </a-assets>

          <a-camera position="0 0 0" look-controls="enabled: false"></a-camera>

          <a-entity mindar-image-target="targetIndex: 0">
            <a-plane
              src="#result"
              position="0 0 0"
              height="0.552"
              width="1"
              rotation="0 0 0"
            ></a-plane>
          </a-entity>
        </a-scene>

And in context, as a Vue.js component : https://github.com/l-atelier-des-chercheurs/dodoc/blob/dodoc2-dev/public/src/vue/components/publication_templates/subcomponents/ImageTrackingModule.vue
Thanks !

@louis-ev  The face mask from your student is really interesting!
You need to set height and width properly for your  <a-plane> according to the dimensions of your result image. Checkout the bottom tips on https://hiukim.github.io/mind-ar-js-doc/quick-start/webpage

Hi @hiukim, thank your for helping!
I actually read your docs, and set the width and height for this reason. I’ll get the actual image ratio later, for now I just tested values coming from your examples.
In my code you can see that height="0.552" is not taken into account until I open the inspector.
Here is another example with width and height set to 1. Same bug in Firefox and Chrome on macOS, and Safari on iOS.
<a-scene
          :mindar-image="`imageTargetSrc: ${mind_and_results[0].mind}; filterMinCF:0.1; filterBeta: 10;`"
          vr-mode-ui="enabled: false"
          device-orientation-permission-ui="enabled: false"
          color-space="sRGB"
          renderer="colorManagement: true, physicallyCorrectLights"
        >
          <a-camera position="0 0 0" look-controls="enabled: false"></a-camera>

          <a-entity mindar-image-target="targetIndex: 0">
            <a-plane
              position="0 0 0"
              height="1"
              width="1"
              rotation="0 0 0"
            ></a-plane>
          </a-entity>
        </a-scene>

After opening the aframe inspector :

Resizing the window doesnt work, it really seems to be the inspector that fixes the a-frame scene. I thought the bug could be with aframe but I couldn’t find anything on this on the web…

Hi @hiukim,
Do you think I should post this issue in the A-Frame repo?
It seems strange that I’m getting this bug with just a basic a-plane, and that pulling out the inspector fixes it…
Thank you for your time!

@louis-ev sometimes weird things like this happen, it could be a bug anywhere, or opening the inspector trigger some re-rendering.
looking from your code ${mind_and_results[0].mind}, it looks like you are using some kind of framework maybe react. I guess you have some additional logic instead of a plain html as in the example.
If that's the case, what I normally would do is to start from a working example first (e.g. the original example in the documentation). You can change height and width to see if there is any effect. If yes, then make gradual changes up to a point that doesn't work and we'll know the problem.


error

while using this command, i get this error
npx wrangler init my-worker
⛅ wrangler 2.0.5
Using npm as package manager.
✨ Created my-worker\wrangler.toml
X [ERROR] Command failed with exit code 1: git --version
'git' is not recognized as an internal or external command,
operable program or batch file.

Hmm, strange. That should have been fixed by https://github.com/cloudflare/wrangler2/commit/1caa5f764100156a8d8e25347036b05e2b0210f6


GeonBit references datatype.dll will not load in pipeline tool on mac

Hi Ronen,
Trying to build my project with the GeonBit ui in on Mac. Added the reference in the pipeline tool and project. The project will not build on XML files. How do we get the pipeline tool to recognise the datatype.dll on Mac?

Hi @beckylum0216
I never built it on Mac but I don't think your problem is related to the data types or geonbit at all, check out the error code: could not load xamarin.mac.
Looks like problem with monogame installation perhaps.  Are you able to build content that is not from geonbit.ui?

Hi Ronen,
Just opened an empty project and added assets. The pipeline built without any issue. The addition of GeonBit.UI to the project causes the same issue. For some reason it does not build xml files from GeonBit. I am aware that this is on a Mac, but I am required to develop on the the Mac platform. I am guessing that the content pipeline is not detecting Datatypes.dll at all. You help would be much appreciated.
Regards,
Rebecca Lim

Hi Rebecca,
I don't think its related because its just not the error you normally get if the DataTypes.dll is not recognized. If that was the issue you would get something like this:
C:/Projects/GeonBit.UI/GeonBit.UI/Content/GeonBit.UI/themes/lowres/textures/slider_fancy_md.xml : error : Importer 'XmlImporter' had unexpected failure!
**1>  System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.**
1>     at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
1>     at System.Reflection.Assembly.GetTypes()

I searched and found this issue:
https://github.com/MonoGame/MonoGame/issues/6509
Do you think its related?
Sorry I can't help you much, I just don't have a Mac so its hard for me to reproduce from my end. Maybe in the forum you'll get more help?
Please let me know if you find any hint..
Thanks,

I'm getting the same error as @beckylum0216 on Windows after installing GeonBit from Nuget.  This issue does seem to be related to the issue you linked in MonoGame but the problem is pretty critical since your framework doesn't work at all with this error.

@QuinnBast I don't think I ever fixed the issue. I could not get the framework to work on Mac. IIRC after I solved the Datatypes.dll issue other errors cropped up on Mac. In the end, we only ported it to Linux.

Leaving this here for reference but there appears to be a critical problem in MonoGame's content pipeline affecting any library that makes use of content pipeline references, which includes GeonBit.UI (and many other UI libraries). The only non-effeced UI library I've come across so far is Myra since it doesn't utilize content pipeline references.
https://github.com/MonoGame/MonoGame/issues/6676
Hopefully this gets resolved by MonoGame

Tried VS channel, Stable, and Preview versions of mono and still same problem.

Leaving this here for reference but there appears to be a critical problem in MonoGame's content pipeline affecting any library that makes use of content pipeline references, which includes GeonBit.UI (and many other UI libraries). The only non-effeced UI library I've come across so far is Myra since it doesn't utilize content pipeline references.
MonoGame/MonoGame#6676
Hopefully this gets resolved by MonoGame

I ran into the problem today but I figured out how to build the content with the pipeline.

Copy DataTypes.dll and GeonBit.UI.dll from ....\packages\GeonBit.UI.<IP_ADDRESS>\lib\geonbitui to the project containing the Content.mgcb file in your project

Open Content.mgcb in notepad and in the References section, add this line :
/reference:DataTypes.dll

The Content.mgcb should now build properly.

PS : I'm not sure if copying GeonBit.UI.dll was necessary, possibly I only needed to copy DataTypes.dll.
What got me thinking that this should work is when I opened the Content.mgcb file from the sample and found a link to the DataTypes.dll in the reference section.

Leaving this here for reference but there appears to be a critical problem in MonoGame's content pipeline affecting any library that makes use of content pipeline references, which includes GeonBit.UI (and many other UI libraries). The only non-effeced UI library I've come across so far is Myra since it doesn't utilize content pipeline references.
MonoGame/MonoGame#6676
Hopefully this gets resolved by MonoGame

I ran into the problem today but I figured out how to build the content with the pipeline.

Copy DataTypes.dll and GeonBit.UI.dll from ....\packages\GeonBit.UI.<IP_ADDRESS>\lib\geonbitui to the project containing the Content.mgcb file in your project
Open Content.mgcb in notepad and in the References section, add this line :
/reference:DataTypes.dll
The Content.mgcb should now build properly.

PS : I'm not sure if copying GeonBit.UI.dll was necessary, possibly I only needed to copy DataTypes.dll.
What got me thinking that this should work is when I opened the Content.mgcb file from the sample and found a link to the DataTypes.dll in the reference section.

Thanks for the tips, managed to build content after following your instructions.
There is no need to copy GeonBit.UI.dll, built was successful just by referencing DataTypes.dll

In last version I removed DataTypes completely and switched to regular XML files. Hope this solve all these issues.


Bureau of Labor Statistics data

Relates to #17
The BLS data that seems to fit this model include:

BLS 2010 Occupation Employment Statistics
BLS Current Population Survey (State level only)
BLS Occupational Employment Statistics Survey
BLS Consumer Price Indexes (CPI) Dataset

These seem to be good for places (except for the one that I noted)

Some notes:
there is a DOL API (sampler) and a BLS API.
The BLS API is pretty annoying because you need to know the series ID in order to retrieve data (the series ID specifies the statistic, geography type, geography id, etc). These series IDs follow patterns (for example, here's the series ID pattern for occupational employment statistics) but there is no way to retrieve all series IDs associated with a dataset. I spent some time trying to generate series IDs (using the codes in the documentation) to retrieve data, but this was largely unfruitful b/c many IDs are invalid...this takes a lot of guess & check.
For the DOL API, I'm unable to access the tables as documented (here's the DOL API documentation & the 2010 Occupational Employment Statistics documentation). I'll keep poking around. I found a python wrapper for the DOL API - looking into this.
Also, the DOL has DOL 2010 Occupational Employment Statistics Dataset & BLS Occupational Employment Statistics Survey (OES) DATASET as two distinct datasets. Uncertain what the relationship is between the two. Looks like the latter only has data for 2013, so I'm not sure if they are just the same data but different years.

I haven't successfully retrieved any data w/ the DOL API - not sure if the documentation is up to date. Python wrapper also didn't work.
Went back to the BLS API and after some more guess & check, was able to get data for annual wages by state (median, 25 percentile, 75 percentile) from the occupational employment statistics data.
Some notes on the OES data:

the geography types are N (national), M (metropolitan area), & S (state). It's not clear how metropolitan area is defined. I'm just gona start with state
for the wage data, only 2013 is available. I figure that's ok
there are breakdowns by industry & occupation, but there are a lot of codes, so I'm starting w/ figures for all industries & all occupations for each state. if there are particular breakdowns that are useful, though, lemme know & I can add them

here are the bls datasets: http://www.bls.gov/help/hlpforma.htm

@tthibo any word back on what datasets would be useful for this mancer?
Here's the full list: ttp://www.bls.gov/help/hlpforma.htm

Here are the ones that seem most immediately  useful:

State and Area Employment
State and County Employment and Wages
Local Area Unemployment Statistics
Geographic Profile (Nice to have, but the geographies might not match up.)
Consumer Price Index (This one would be great to have, but only a very few geographies are available, and some don’t correspond to anything we’re using.)

There are some geographies used by BLS that don't match anything we're currently using, and some of these values are available only for a tiny number of places. So, it's possible some of these won't work well as mancers.

unable to grab data (even the occupational employment data that I got before) from BLS right now (503 error). I'll try again later; hoping this is temporary...

didn't get 503 errors in the afternoon. some updates:

occupational employment statistics
this is what I already had in the bls mancer, w/ 2013 data. ran my code again and now 2013 data is unavailable, but 2014 data has been added, so I just changed the mancer to grab 2014 data. not sure why old data went missing...reached out to David Hiles at BLS & he's looking into it
state and area employment
some of the series (for example avg weekly hours) had no data available, but others (for example avg hourly earnings) did. also, there's only monthly data, not yearly averages, which might not be best for displaying in geomancer
state and county employment and wages (from quarterly census of employment & wages)
David Hiles directed me to http://www.bls.gov/cew/doc/access/csv_data_slices.htm - there are data slices by area, w/ unemployment & wage data (the BLS API only has about 5% of QCEW data b/c of design issues w/ their oracle publication database, but this will hold 100% of data going forward). this seems like it'd be great to add to geomancer, but I'm not sure how to get data slices by year instead of by quarter (I figure yearly will be better for geomancer). waiting to hear back from David
local area unemployment statistics
I'm able to get data, but it's monthly. QCEW will be a better source of unemployment data
geographic profile
I was able to get annual data by state, but data only exists for 1996, 1997, & 1998. probably not useful
consumer price index
this only exists by metropolitan area, which isn't a geography that we have defined in geomancer

tl;dr 1 is done, 3 is promising, 2/4/5/6 not so much

I've added annual data from the quarterly census of employment & wages to the BLS mancer: http://www.bls.gov/cew/doc/access/csv_data_slices.htm
These csv data slices were actually quite pleasant to work with - easier and better documented than the BLS API.
A note on the OES data I added before using the BLS API: apparently, when new OES data is uploaded, data from previous years is removed. this means that the code for grabbing OES data will break when 2015 data is uploaded next March, b/c I need to specify the year when grabbing data (it would take some hacking to just grab the data w/o specifying the year, figure out the year, and then update the column info).


No longer register a fetch handler for each Router by default

R: @addyosmani @gauntface
CC: @jakearchibald @surma
Fixes #721
This changes the default behavior of Router, as discussed in the proposal.

PTAL.


Cannot show the chart

When I was build the RN project , write code like sample, I just saw the red square.I don't know what's wrong. Hope you can save my time .Thanks. This is iOS screenshots:
￼

and the code is like that:
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import Chart from 'react-native-chart';

const styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: 'white',
    },
    chart: {
        width: 200,
        height: 200,
    },
});

const data = [
    [0, 1],
    [1, 3],
    [3, 7],
    [4, 9],
];

class testGraph extends Component {
    render() {
        return (
            <View style={styles.container}>
                <Chart
                    style={styles.chart}
                    data={data}
                    verticalGridStep={5}
                    type="line"
                 />
            </View>
        );
    }
}

export default testGraph;

￼

hmm I've seen this before on other modules. Has to do with linking, installation problems, some such thing. I'll get back to you shortly

Thanks for the reply. But I have to say I followed the steps that you've noticed, and double-check the steps, no results for this reason. That's spent much time.

You did link ReactART in Xcode, correct?

yes, there is a  problem?

Hmm not sure. Which version of the library are you on? Can you post the package.json item?

Please reopen with any new information.


Feat/statistic test evidence

Change description
Added statistic test evidence

Description here
Introduced new statistic test evidence. Example

{'type': 'statisticTest',
 'label': {'statistic_type': 'chisquared_contingency',
  'evaluator': 'ModelEquity',
  'sensitive_feature': 'sex'},
 'data': {'value': 3.6199763593380614,
  'significance_threshold': 0.02,
  'p_value': 0.057089684434827,
  'significant': False},
 'generated_at': '2023-01-13T01:38:01.603364',
 'metadata': {'evaluator': 'ModelEquity',
  'sensitive_feature': 'sex',
  'model_name': 'fake_regressor',
  'assessment_dataset_name': 'UCI-credit-default-test'}}

Linked to task: Chi-squares test statistic with p value
Type of change

[ ] Bug fix (fixes an issue)
[x] New feature (adds functionality)

Related issues

Fix #1

Checklists
Development

[ ] Lint rules pass locally
[ ] Application changes have been tested thoroughly
[ ] Automated tests covering modified code pass

Security

[ ] Security impact of change has been considered
[ ] Code follows company security practices and guidelines

Code review

[ ] Pull request has a descriptive title and context useful to a reviewer. Screenshots or screencasts are attached as necessary
[ ] "Ready for review" label attached and reviewers assigned
[ ] Changes have been reviewed by at least one other contributor
[ ] Pull request linked to task tracker where applicable

Can you also update the version of Lens?


fixadd log for resolve pending task

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run p0

run pipelinex_p0

run pipelinex_p0


Update dependencies

Hi @rjlopez2, while working on https://github.com/conda-forge/napari-omaas-feedstock/pull/2
We noticed that the following packages are used/imported in the source code but not listed as a requirement:

matplotlib
pandas
requests
scikit-image
scipy

Could this be fixed fo the next release?
Cheer 🚀 !

fixed for next release, thanks.


Handle multilingual 404 pages in docs site

What kind of changes does this PR include?

Changes or translations of Starlight docs site content

Description
We now have a couple of translated 404 pages (see #253 & #248). Netlify by default redirects all 404s to /404.html ignoring our translated /fr/404, /es/404 etc. This _redirects file tells it to use our custom language versions for 404s for URLs that start with the matching language code (e.g. /es/not-found).

size-limit report 📦

Path
Size

/index.html
13.16 KB (0%)

/_astro/*.js
16.22 KB (0%)

/_astro/*.css
8.46 KB (0%)


Update code coverage to 100%

Codecov Report
Base: 96.98% // Head: 100.00% // Increases project coverage by +3.01% :tada:

Coverage data is based on head (668887a) compared to base (6f275a7).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##             main        #3      +/-   ##
===========================================
+ Coverage   96.98%   100.00%   +3.01%
===========================================
  Files           4         4
  Lines         166       168       +2
===========================================
+ Hits          161       168       +7
+ Misses          5         0       -5

Impacted Files
Coverage Δ

Sources/Session+Methods.swift
100.00% <100.00%> (+7.46%)
:arrow_up:

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add support for internal Russian phone style (8 926 ... instead of +7 926 ...)

By some historical reasons the internal format for phone numbers is even more popular than the international format! And unfortunately it is completely unsupported by phony (and phony_rails) gem.
For example mobile number in international format '+7<PHONE_NUMBER>' a Russian citizen would likely write down as '8<PHONE_NUMBER>'.
The topic is discussed in Wikipedia article: https://en.wikipedia.org/wiki/Telephone_numbers_in_Russia
So instead of
Phony.plausible?('89261234567')
=> false
Phony.normalize('89261234567')
=> "89261234567"
PhonyRails.normalize_number('8<PHONE_NUMBER>', country_code: 'RU')
=> "+789261234567"

There should be something like this
Phony.plausible?('89261234567')
=> true
Phony.normalize('89261234567')
=> "79261234567"
PhonyRails.normalize_number('8<PHONE_NUMBER>', country_code: 'RU')
=> "+79261234567"

As it have done with '+7'
Phony.normalize('+79261234567')
=> "79261234567"
Phony.plausible?('+79265650852')
=> true
PhonyRails.normalize_number('7<PHONE_NUMBER>', country_code: 'RU')
=> "+79261234567"

Refer https://github.com/joost/phony_rails/issues/148

Hi @petRUShka!
Thanks for your entry. As for your two Phony-related cases:

Phony.plausible?('89261234567') This case cannot be handled by Phony – it could not identify the number as from the Russian Federation. However, it may be worth a try to make the following possible: rus = Phony["7"]; rus.plausible?("…")
Phony.normalize('89261234567') Similarly to 1., we could try to make rus = Phony["7"]; rus.normalize("…") possible.

So, without providing Phony with a country code, it can't do much, but once provided, it could be possible – would that help?

P.S: I can make the above work, but then 6 test cases added by earlier committers fail. Would you be happy to help with these?

Look, may be it is possible to understand that this is Russian phone number with 8.

It has 10 digits.
It has 8 at the beginning
It has allowed region code from list of Russian region codes. For example notation with 8 is mostly used together with mobile phones which is started from 9 and have limited number of options: e.g. 926, 903, 925...

For example it can be some option "try to recognize local Russian numbers". When it turned on the Phone can make a smart guess.
Yes, I can help. Which help do you have in mind?

@petRUShka Thanks! I've changed the options in the commit https://github.com/floere/phony/commit/9fe7cbfb5e9b29e77b9aab853c4089a70a9d64e8 so that your examples would work. However, this results in spec failures. Would you mind checking them out (literally and figuratively), and reason with me whether the specs should be changed or not? (The specs have been added by other Russians)
If you fork and pull master, then run rake, qed and rspec are run, and 6 error cases should result.


InputMenu component fast-deep-equal dependency issue

For what version of Nuxt UI are you asking this question?
v3-alpha
Description
When trying to use the InputMenu component I am running into this error:
client.mjs:42 SyntaxError: The requested module '/_nuxt/node_modules/fast-deep-equal/index.js?v=6d87a810' does not provide an export named 'default' (at InputMenu.vue:19:8)
This is after following the installation instructions in the documentation.
Any help would be appreciated!

Hi there, I am experiencing the same when trying to upgrade from 3.0.0-alpha.6 to 3.0.0-alpha.7. With alpha.6 it works fine. Can you try to manually install the alpha.6 version and see if that solves the issue? That would make it clear that it's indeed alpha.7 causing this not only for me.

Hi there, I am experiencing the same when trying to upgrade from 3.0.0-alpha.6 to 3.0.0-alpha.7. With alpha.6 it works fine. Can you try to manually install the alpha.6 version and see if that solves the issue? That would make it clear that it's indeed alpha.7 causing this not only for me.
Could be due to #2416 maybe?

Good call! Switching back to 3.0.0-alpha.6 resolved the error for me.

You can add this to your nuxt.config.ts as a temporary fix:
vite: {
    optimizeDeps: {
      include: ['fast-deep-equal']
    }
  }

You can add this to your nuxt.config.ts as a temporary fix:
vite: {
optimizeDeps: {
include: ['fast-deep-equal']
}
}

This did not help in my case but downgrading to alpha.6 did work...


Add user-defined propType.source for fallback cases

Currently the propType.source api only allows extracting values that Muban supports. There is no way for a user to extract something else.
If we allow for a user-defined function, we have an escape hatch for users, and if we see commonly used patterns, we can could include the as a default source type.
Proposal:
// still supports the `target` to access earlier defined refs
// if `target` is omitted, it will pass the component element
// the user function should be located inside the `options` to fit the current structure
propType.source({ target: 'refName', options: { fn: (element: HTMLElement) => T } });

// and/or
// a way simpler API, but loses access to the `ref`
propType.source((element: HTMLElement) => T);

// we could provide the resolved refs as a 2nd parameter?
propType.source((element: HTMLElement, refs: TypedRefs) => T);

@ThijsTyZ Any opinions / suggestions?

And perhaps change it to an options argument for the function so the order doesn't matter.

Unfortunately, most of your suggestions aren't really possible. I did update the generic version with an options object.

refs cannot be typed unfortunately (my bad), so they are just a plain Record.
in the extensive version, you either pass a target or it will fallback to the component element by default. There is no use for refs or an explicit componentElement.

Open question still:

Should the target/refs be resolved to HTMLElement(s) or stay wrapped in their ElementRef and such? – I probably prefer the unwrapping
Since we would allow all refs, we also allow "collections". So those refs/elements can sometimes be Arrays. Should we type them as a union?

It would then look something like this:
// still supports the `target` to access earlier defined refs
// if `target` is omitted, it will pass the component element
// the customSource function should be located inside the `options` to fit the current structure
propType.source({
  target: 'refName',
  options: {
    // `element` refers to the resolved `target`, or the "component root element" when no target is specified
    customSource: (element: HTMLElement | Array<HTMLElement> | undefined) => T
  }
});

// a way simpler API, but loses access to the `ref`, so all responsibility is for the implementor
// we can pass all the refs here, but they cannot be typed to match the ref definitions of the component.
propType.source(
  ({ componentElement: HTMLElement, refs: Record<string, HTMLElement | Array<HTMLElement>> }) => T
);


Ensure value is added to estree ast for ObjectTypeInternalSlot

While implementing support for new additions to Flow 0.72 in Prettier, I noticed value was missing from ObjectTypeInternalSlot.
/cc: @samwgoldman

Thanks @existentialism!


Inconsistent bytes/string in request path

Hey, I'm experimenting adding channels to my app by adding a basic chat room. The code I have is pretty simple:
def ws_connect(message):
    room = message['path']
    Group("chat" + room).add(message.reply_channel)

def ws_receive(message):
    data = json.loads(message['text'])
    room_label, text, user = data['room'], data['text'], data['user']
    Group("chat" + room_label).send({'text': text})

def ws_disconnect(message):
    room = message['path']
    Group("chat" + room).discard(message.reply_channel)

However on my system message["path"] is a string inside ws_connect but bytes inside ws_disconnect. For my co-worker it is always bytes.
What could be causing this? We are using the standard asgi_redis.RedisChannelLayer and not doing anything funky that I can see.

My apologies, it was a missed set of fixes in the new Daphne release. If you upgrade to daphne 0.11.2 all URL paths should now be url-decoded unicode.