can this work on deepstream

I have trained the model using your method and also able to run it on the nano/nx.
Would the trt converted model directly run using deepstream or would I have to do any additional convesions?!
thanks!

Custom trained yolov4 models using this repository are just standard darknet models.  They are the exact same architecture as the original darknet yolov4 coco model.  It should be possible to convert these custom trained yolov4 models to TensorRT engines and use DeepStream SDK to do inference.

Thanks JK,
I was able to convert this and run by adding yolov4 specific code..


[Crazy Feature] Conditional to select Scene based on platform

Note: for support questions, please use one of the following channels.
Reddit: /r/gbstudio
Discord: Join Chat
This repository's issues are reserved for feature requests and bug reports.

I'm submitting a ...

[ ] bug report
[X] (Crazy) feature request
[ ] support request => Please do not submit support request here, see note at the top of this template.

Do you want to request a feature or report a bug?

Feature.

What is the current behavior?

Game starts as intended.

What is the expected behavior?

I know that this is probably a pie-in-the-sky idea, but it would be amazing to be able to create a conditional that would select a Scene branch based on what platform the game is being played on. For instance, if the game was a ROM, it would choose "Title_ROM"; if Desktop Web, it would go to "Title_Web"; and if Mobile Web, it would go to "Title_Mobile." (Names in quotes are just made up names for Scene nodes.)

What is the motivation / use case for changing the behavior?

The use cases for each platform are distinct (e.g., D-Pad, A, B for ROM/Mobile Web and Keyboard for Desktop Web).
I know I could just make a branch of my project and develop one for ROM/Mobile and one for Desktop Web, but it would be great to be able to handle this within one project.

Please tell us about your environment:

Version: 1.0.0
Platform: all

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

I think this is a bit out of scope for GB Studio, as it focuses on being cross platform

I figured it might be. Although emulator, web, mobile web already makes it cross-platform with different user experiences. Thanks for responding, though.


Feature request: A rule to enforce literal string in *ngSwitchCase

Example:
@Component({
  selector: 'app-root',
  template: `
    <div>
      <div *ngSwitchCase="hey"> // Expected a failure here
        Hey!
      </div>
      <div *ngSwitchCase="'one'">
        One!
      </div>
    </div>
  `
})
export class AppComponent  {
  myVariable = 'hey';
}

I don't think you'd want to do this globally. Isn't it a too common usecase to use an enum from the component, or a number?

Good catch! When I created this issue I was just wondering about the above use case, forgot totally about what you described. Now I'm unsure about this would be a good rule.


Bump facebook business to 8.0.3.

Pull Request Test Coverage Report for Build 43

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.832%

Totals

Change from base Build 40:
0.0%

Covered Lines:
361

Relevant Lines:
369

💛  - Coveralls


Current build guide?

I'm trying to build the registry from scratch, however the documentation contains deprecated commands and doesn't work on my machine at all when strictly following the steps mentioned.
Is there a more up-to-date documentation available? If not I would appreciate if someone could update it

Unfortunately, we are still kinda in a process of sorting the docs out, so in the first phase, we ported the existing docs with docker references removed. If you discover discrepancies and/or find any issues we'd welcome PRs to fix it

@davidgiga1993 You can type docker buildx bake binary. registry bin will be available in ./bin.


Multiple OSD nodes are deployed on one device, Whether cephdm-ansible supports this function

hi @fantastic2085
I'm sorry but this is not very clear and confusing, could you elaborate a bit more?


Use case for wrap() can be clarified

Apologies if this is clear to everyone but me, but reading through the explainer, I couldn't fully grasp what wrap() does and the use case for that.
Is it the case that if one generates multiple AsyncContexts, wrap() on the prototype gives one access to all of them? I'd love to see a more explicit example that would help me understand. Thanks! :)

AsyncContext.wrap() captures the current global context, and allows you to invoke the inner function within the that context at a later time:
const ctx1 = new AsyncContext();
const ctx2 = new AsyncContext();

let wrappedHofCb;
// This just invokes its first param.
const hofCb = (cb) => cb();

ctx1.run(1, () => {
  ctx2.run(2, () => {
    wrappedHofCb = AsyncContext.wrap(hofCb);
  });
});

assert.equal(ctx1.get(), undefined);
assert.equal(ctx2.get(), undefined);

// Just demonstrating the use of hofCb
hofCb(() => {
  assert.equal(ctx1.get(), undefined);
  assert.equal(ctx2.get(), undefined);
});

// Wrapped hofCb (has the same function signature as hofCb)
// but it invokes within the captured context at the time
// we performed the wrap:
wrappedHofCb(() => {
  assert.equal(ctx1.get(), 1);
  assert.equal(ctx2.get(), 2);
});

Imagine you're writing a message passing system, maybe between your main thread and a worker. You have some async computation, and for some reason it's not using promises (if you were returning promises, you wouldn't need to worry about this). Now, because the worker can't receive a callback directly, we need to store the callback on the message channel, and instead pass a UUID to the worker so it knows what it's responding to, and the channel can associate the returned data with the UUID.
class WorkerThreadMessageService {
  queue = new Map();
  worker = …;

  doWork(cb) {
    const uuid = new Uuid();

    this.queue[uuid] = cb;
    this.worker.postMessage('doWork', JSON.stringify({ uuid }));
  }

  onMessage(data) {
    const data = JSON.parse(data);
    this.queue[data.uuid](data.result);
  }
}

Now, we've stored the callback and invoke it later. I as a user expect my callback to maintain the global context state that existed when I called doWork(), but we've actually lost it:
ctx.run(1, () => {
  messageService.doWork(() => {

    // we've lost our context!
    assert.equal(1, undefined);

  });
});

Because the message service is using callback style, it's not possible for this to be done automatically (promises automatically capture the global context when you call .then()). To fix this, the service needs to wrap the callback when it's registered:
class WorkerThreadMessageService {
  doWork(cb) {
    // …
    this.queue[uuid] = AsyncContext.wrap(cb);
    // …
  }
}

ctx.run(1, () => {
  messageService.doWork(() => {

    // we've kept our context!
    assert.equal(1, 1);

  });
});

Tiny note: I think the ctx.get() is missing from the last two assertions (should be assert.equal(ctx.get(), 1) instead of assert.equal(1, 1))?

As a simple, concrete example: Say you are maintaining a JS promise library. (Unfortunately, several of these exist; at Bloomberg, we use Bluebird internally, and it's difficult to remove the dependency because of the popularity of the APIs it introduces.)  Just as built-in Promises should propagate the context (all of it, all variables), the promises created by the JS promise library should do so as well. Exposing wrap means that the JS promise library can be updated to integrate well with AsyncContext.

Thanks!!
Would it be possible to integrate the above to the explainer? I think it'd help folks understand what wrap() is about.

class WorkerThreadMessageService {

Worth clarifying that all this is main thread code and the worker code is not represented here. For some reason I assumed some of the code runs inside the worker, and it took me a bit of staring at the code to realize I was wrong.

ctx.

ctx is not defined, so you probably want to add a const ctx = new AsyncContext(); above it.

I opened #43. Does it help clarify wrap, or do you think it should also mention the userland promise use case?


Parameters section is duplicated in arrange_in_grid

Description of bug / unexpected behavior

There are two sets of parameters listed in the docs for arrange_in_grid. The second copy does not have any comments.
How to reproduce the issue

Link to the method in the docs

The duplicated parameters:

Additional comments

This issue was first introduced in #1398 with the upgrades to the method.

Marking this as a "good first issue" as it is easy to fix.

Marking this as a "good first issue" as it is easy to fix.

Is it? I wouldn't know how.

I also noticed this issue in #1472 under get_t_label.
I'm not sure what could be causing it 🤷♂

This seems caused by the order of the sections.
Fixed by moving the "Notes" section after "Raises" section.
See PR #1869


The registered trademark is very difficult to see.

I'm on macbook air using a full size (but not full screen) chrome, with the dock showing, and the circle-r is very very tiny!  Looks indecipherable at this size.

Not much better for the colored logo:

[7/10/15, 5:07:55 PM] Chris Malley: Sam, re: https://github.com/phetsims/brand/issues/15... I'm in the middle of creating dev version to show each brand and navbar background. doing so is a lot of work. sounds like I should stop?
[7/10/15, 5:08:55 PM] Sam Reid: Well, how does the trademark look on your machine?
[7/10/15, 5:10:26 PM] Chris Malley: Talking to AP right now... He says it was approved by KP, doesn't need to be decipherable, is there as a legal formality.
[7/10/15, 5:10:44 PM] Sam Reid: has she seen it in context?
[7/10/15, 5:10:53 PM] Sam Reid: you can’t even see what is in the circle
[7/10/15, 5:10:54 PM] Chris Malley: would you like to be added to the call?
[7/10/15, 5:11:01 PM] Sam Reid: the circle is not even round at that resolution
[7/10/15, 5:11:17 PM] Sam Reid: feel free to add me if you wish, or just forward my above notes

[7/10/15, 5:17:06 PM] Chris Malley: Compare with this Coca Cola logo: http://www.coca-cola.com/global/glp.html
[7/10/15, 5:17:32 PM] Chris Malley: or do a Google search on any trademark and look at the size of the (R).

Here, I blew that up for you:

The circle is getting clipped or something.

I tried launching on Chrome on my high-res screen and it looks like this:

Looks pretty bad in firefox:

Looks like the source PNG is clipped, this is what it looks like in photoshop:

[7/10/15, 5:22:13 PM] Jonathan Olson: Is the logo SVG? PNG where the circle is right at the edge?
[7/10/15, 5:23:27 PM] Chris Malley: spash is splash.svg.  phetbutton is logo.png or logo-on-white.png.
[7/10/15, 5:23:58 PM] Chris Malley: image files live in brand/images/
[7/10/15, 5:25:12 PM] Jonathan Olson: yeah there should ideally be an extra pixel, not having the (R) go right to the edge
[7/10/15, 5:26:49 PM] Jonathan Olson: then the browser won't cut it off like it is now

See https://github.com/phetsims/joist/issues/258#issuecomment-120551152 for dev versions showing all 5 revised logo files.

Experiments with PhetButton using mipmap plugin indicated that both the (R) and the center of the 'h' in 'PhET' look better.

We're going to use mipmap for the logo in PhetButton. This will require adding the mipmap plugin to all config.js files.  The image files may already be bigger than needed (273x108), since PhetButton is scaling that by 0.28. @samreid will experiment and provide @ariel-phet with new image dimensions.  Then @ariel-phet will generate the 4 images files needed - logo.png, logo-white.png, for 2 brands: 'phet' and 'adapted-from-phet'.

Summarized what we're going to do in https://github.com/phetsims/joist/issues/258#issuecomment-120554784, moved work back over to that issue, closing this issue.


[Announcement] WebListener packages and APIs merged and renamed

The packages Microsoft.AspNetCore.Server.WebListener and Microsoft.Net.Http.Server have been merged into a new package Microsoft.AspNetCore.Server.HttpSys. The namespaces have been updated to match.
The WebHostBuilder extension has similarly been renamed from UseWebListener to UseHttpSys. The options for this extension have been flattened as shown here.
The low level WebListener API has been removed to avoid duplication and confusion with HttpListener which has recently been added to .NET Core.
A few more consolidations and optimizations will follow, as discussed here: https://github.com/aspnet/WebListener/issues/283. The discussion issue will be updated accordingly with any additional breaking changes.

Will this repo be renamed to "HttpSys" as well?

Not right now. We'll continue to use WebListener as the project codename.

We should probably rename the repository as well /cc @Eilon

Just don't name it flat HttpSys, that would be too confusing. HttpSysIntegratoin like IISIntegration?

Let me know and I'll rename it... GitHub will auto-redirect everything so it's quite safe.

Just don't name it flat HttpSys, that would be too confusing. HttpSysIntegratoin like IISIntegration?

Why not? https://github.com/tjanczuk/httpsys 😄
HttpSysIntegration is fine.

Let's get confirmation from @DamianEdwards and I'll rename.

Is HttpSysServer any better? It mirrors KestrelHttpServer.

I like it better

HttpSysServer

DONE.

One additional change: Direct WebSocket support has been removed from this new package. The application must now add the WebSocket middleware for WebSocket support. This mirrors the Kestrel architecture. There should not be any functional changes because the two components were previously sharing the same implementation code.
See https://github.com/aspnet/WebSockets/blob/b996ee39a429479e0bc301d198007cd85cc2acbd/samples/EchoApp/Startup.cs#L34 and the Microsoft.AspNetCore.WebSockets package.

We are closing this issue because no further action is planned for this issue. If you still have any issues or questions, please log a new issue with any additional details that you have.


Test StoryShots

https://github.com/storybookjs/storybook/tree/master/addons/storyshots

Related to #180

Closing this as duplicate of #598


Does this  support pl.lit?

In this example.
df_test = pl.DataFrame({
  'a1': ['test1', 'hello', 'test1', 'hello', 'test1', 'hello'],
})
df_test.select(
  d = pld.col('a1').dist_str.levenshtein(pl.lit('testaa'))
)

it returns
shape: (1, 1)
┌─────┐
│ d   │
│ --- │
│ u32 │
╞═════╡
│ 2   │
└─────┘

And in a more complex real world example, it panics with
panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-core-0.38.3/src/utils/mod.rs:654:9:
assertion `left == right` failed: expected arrays of the same length
  left: 6
 right: 1

I am missing some optimization paths that checks the length of lhs or rhs. Don't really have time to fix this at the moment, so open to a PR that resolves this

@clouds56 v0.5.1 adds support for literals ;)


retryRemoteLocalities uses xds v2 API, broken on recent versions

apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: ratings-route
spec:
  hosts:
  - echo.default.svc.cluster.local
  http:
  - route:
    - destination:
        host: echo.default.svc.cluster.local
    retries:
      attempts: 3
      perTryTimeout: 2s
      retryOn: gateway-error,connect-failure,refused-stream
      retryRemoteLocalities: true

2021-06-30T15:23:13.908540Z     warning envoy config    gRPC config for type.googleapis.com/envoy.config.route.v3.RouteConfiguration rejected: The v2 xDS major version is deprecated and disabled by default. Support for v2 will be removed from Envoy at the start of Q1 2021. You may make use of v2 in Q4 2020 by following the advice in https://www.envoyproxy.io/docs/envoy/latest/faq/api/transition. (envoy.config.retry.previous_priorities.PreviousPrioritiesConfig)

The fix is easy but this indicates a clear testing gap

We have encountered this issue during Istio upgrade from 1.9.5 to 1.10.2. After removing retryRemoteLocalities from virtual services, ILBs started working.
Also, this link doesn't seem to exist: https://www.envoyproxy.io/docs/envoy/latest/faq/api/transition
Internal:The v2 xDS major version is deprecated and disabled by default. Support for v2 will be removed from Envoy at the start of Q1 2021. You may make use of v2 in Q4 2020 by following the advice in https://www.envoyproxy.io/docs/envoy/latest/faq/api/transition. (envoy.config.retry.previous_priorities.PreviousPrioritiesConfig)

Closing this as it is fixed


ATS 8.0.0 permission problems with run file

Running traffic_server creates the run file as root and trafficserver creates the run file as nobody.
==> traffic_server.stderr <==
[E. Mgmt] log ==> [TrafficManager] using root directory '/usr/local'
FATAL: Can't open server lockfile '/usr/local/var/trafficserver/server.lock' (Permission denied)

09:14:59 homer:/usr/local/var/log/trafficserver$ ll /usr/local/var/trafficserver/server.lock
-rw-r--r-- 1 root root 6 Jun 18 16:28 /usr/local/var/trafficserver/server.lock
09:15:10 homer:/usr/local/var/log/trafficserver$ sudo rm /usr/local/var/trafficserver/server.lock
09:15:23 homer:(h2spec_fix)~/dev/apache/trafficserver$ sudo /usr/local/bin/trafficserver start
Starting Apache Traffic Server:                            [  OK  ]
09:15:25 homer:/usr/local/var/log/trafficserver$ ll /usr/local/var/trafficserver/server.lock
-rw-r--r-- 1 nobody nobody 5 Jun 19 09:15 /usr/local/var/trafficserver/server.lock

In ATS 8.0.0 traffic_manager and traffic_server now create the lock file as the admin user (default nobody).  Before traffic_server would create it as root and traffic_manager would create/open it as the admin user.  This created permission problems for traffic_manager if traffic_server was run first.
This problem came up after removing traffic_cop, because traffic_cop chowned the file as the admin user to get around the permission problems with traffic_server creating the file as root.


Uncaught Error: Module did not self-register.

[Enter steps to reproduce:]

...
...

Atom: 1.51.0 x64
Electron: 5.0.13
OS: Unknown macOS version
Thrown From: Atom Core
Stack Trace
Uncaught Error: Module did not self-register.
At electron/js2c/asar.js:138

Error: Module did not self-register.
    at process.func [as dlopen] (electron/js2c/asar.js:138:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:881:18)
    at Object.func [as .node] (electron/js2c/asar.js:147:18)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:14:16)
    at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:695414)
    at get_KeyboardLayoutManager (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2715520)
    at get_manager (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2715622)
    at Object.getCurrentKeyboardLayout (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2715748)
    at e.keystrokeForKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1047867)
    at KeymapManager.keystrokeForKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1228180)
    at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1226165)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:284829)

Commands
     -0:55.5.0 editor:toggle-line-comments (input.hidden-input)
     -0:49.9.0 core:save (input.hidden-input)

Non-Core Packages
atom-beautify 0.33.4
autocomplete-paths 2.12.2
autocomplete-sql 0.5.0
build 0.70.0
busy-signal 2.0.1
emmet 2.4.3
file-icons 2.1.40
intentions 1.1.5
linter 2.3.1
linter-ui-default 1.8.1
pigments 0.40.2
todo-show 2.3.2

Also experiencing this issue.
It is occurring whenever Atom is open. I am completely unable to code or edit text at all in Atom.

Error: Module did not self-register.     at process.func [as dlopen] (electron/js2c/asar.js:138:31)     at Object.Module._extensions..node (internal/modules/cjs/loader.js:881:18)     at Object.func [as .node] (electron/js2c/asar.js:147:18)     at Module.load (internal/modules/cjs/loader.js:701:32)     at tryModuleLoad (internal/modules/cjs/loader.js:633:12)     at Function.Module._load (internal/modules/cjs/loader.js:625:3)     at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)     at require (internal/modules/cjs/helpers.js:14:16)     at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:695414)     at get_KeyboardLayoutManager (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2715520)     at get_manager (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2715622)     at Object.getCurrentKeyboardLayout (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2715748)     at e.keystrokeForKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1047867)     at KeymapManager.keystrokeForKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1228180)     at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1226165)     at WindowEventHandler.handleDocumentKeyEvent #(/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:284829)

Thanks for taking the time to contribute!
We noticed that this is a duplicate of https://github.com/atom/atom/issues/20222. You may want to subscribe there for updates.
Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


LA-404 OSA OPS SHA BUMP

Includes:

LA-383 fix
LA-396 fix
LA-405 fix

Issue: LA-404

Updated with :

LA-405 fix

Updated with LA-389.

I need to update this with the new patches from @prometheanfire

Updated.

recheck_cit_artifact
recheck_cit_trusty_leapfrogupgrade_swift
recheck_cit_trusty_minorupgrade_swift
recheck_cit_xenial_minorupgrade_swift

Needs to be updated with LA-438's research.

Updated!

recheck_cit_trusty_leapfrogupgrade_swift

rebased!

recheck_cit_trusty_leapfrogupgrade_swift

Darn failed again. Will investigate more after lunch.

recheck_cit_trusty_leapfrogupgrade_swift

Most recent failure failed on kibana selenium, so not linked at all to leapfrog, but to our gating.
Previous failure was in tempest, so I am investigating the run.

Tempest issue is:
Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File \"/openstack/venvs/tempest-r14.2.0/tempest/lib/common/utils/test_utils.py\", line 84, in call_and_ignore_notfound_exc
        return func(*args, **kwargs)
      File \"/openstack/venvs/tempest-r14.2.0/tempest/lib/services/compute/floating_ips_client.py\", line 74, in delete_floating_ip
        resp, body = self.delete(url)
      File \"/openstack/venvs/tempest-r14.2.0/tempest/lib/common/rest_client.py\", line 307, in delete
        return self.request('DELETE', url, extra_headers, headers, body)
      File \"/openstack/venvs/tempest-r14.2.0/tempest/lib/services/compute/base_compute_client.py\", line 48, in request
        method, url, extra_headers, headers, body, chunked)
      File \"/openstack/venvs/tempest-r14.2.0/tempest/lib/common/rest_client.py\", line 665, in request
        resp, resp_body)
      File \"/openstack/venvs/tempest-r14.2.0/tempest/lib/common/rest_client.py\", line 829, in _error_checker
        message=message)
    tempest.lib.exceptions.ServerFault: Got server fault
    Details: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
    <class 'nova.exception.InstanceInfoCacheNotFound'>

in other words, the usual suspect. Let's recheck and see how it goes.

If that fails again today, could you check on why? If it's on tempest again, checking at the issue in more details would revolve around checking that the migrations happened correctly. (Seeing in the output log that nothing was skipped for example).
Thanks a ton!

recheck_cit_trusty_leapfrogupgrade_swift

recheck_cit_trusty_leapfrogupgrade_swift

selenium issues again.

recheck_cit_trusty_leapfrogupgrade_swift


services: add keylime_agent_secure.mount service

Add Keylime secure mount for agent from Debian.
Co-authored-by: Utkarsh Gupta<EMAIL_ADDRESS>Co-authored-by: Miriam España Acebal<EMAIL_ADDRESS>Signed-off-by: Alberto Planas<EMAIL_ADDRESS>

@sergio-correia we should probably look at doing something similar in the Fedora keylime packages

@sergio-correia I am adding the patch from PR#900, this service and other patches in the branch on the openSUSE Keylime packages (https://build.opensuse.org/package/view_file/home:aplanas:branches:security/keylime/keylime.spec?expand=1)
I was hoping that openSUSE and Fedora can align the packages (when makes sense). I am not a expert packager, so I will appreciate any suggestion that can make this package closer to the Fedora one.


Fix transfer function in Task Pallet

Within the Task pallet, we have a transfer_balance function which should send funds from one balance to another. This function internally makes a call to Currency::transfer.

[x] Investigate why the transfer function is not working in the current implementation.
[ ] Implement a fix.
[ ] Create unit tests to properly test the function.

Budget for this task: $25.

I think the issue is that error case of Currency::transfer() is not used and even if there are some error in Currency::transfer() the transfer_balance() will return Ok(())
  15         // Function to transfer balance from one account to another
   14         #[transactional]
   13         pub fn transfer_balance(task_initiator: &T::AccountId, task_volunteer: &T::AccountId, budget: BalanceOf<T>) -> Result<(), Error<T>> {
   12             // TODO: Investigate why Currency transfer doesn't work
   11             // TODO: See proper testing https://docs.substrate.io/how-to-guides/v3/testing/transfer-function/
   10
    9             //let task_initiator = task.initiator.clone();
    8             log::info!("budget {:?}.", budget);
    7             log::info!("signer {:?}.", task_initiator);
    6             log::info!("task_volunteer {:?}.", task_volunteer);
    5             ensure!(<T as self::Config>::Currency::free_balance(task_initiator) >= budget, <Error<T>>::NotEnoughBalance);
    4             let result = <T as self::Config>::Currency::transfer(task_initiator, task_volunteer, budget, ExistenceRequirement::KeepAlive);
    3             log::info!("Result Output {:?}.", result);
    2
    1             Ok(())
  423         }

IMHO pallet should not return Error<T> instead use DispatchError. If we do that refactoring to task pallet then error from Currency::transfer() can be propagated to caller of transfer_balance() by just using ? with Currency::transfer() call.
I don't see any specific reason for not using DispatchError as return type in pallets.
For example check https://github.com/substrate-developer-hub/pallet-did/blob/8510c92b4e550caded56aa7809046066db0f1590/src/lib.rs#L546

Also in the current simple test for transfer I see no balances is minted before making a transfer so it is expect to fail.

I think your investigation is right...
Can you create a feature branch from : universal-develop and implement the fix together with a test.
You can make a pull requesting to merge back into universal-develop again.
Nice work so far.

I also see that in pallets there are certain functions used like unwrap() , expect() which should not be used as if pallets gets a panic it will halt block production and that is really bad thing for a polkadot para-chain. All pallet operation must either successful or return proper Error thorough DispatchError and Runtime will not break due to panic.

Verified!
Transfer works!
Marking this completed


Remove redundant code

Q
A

Is bugfix?
✔

New feature?
❌

Related to
https://github.com/yiisoft/yii-debug-frontend/pull/9

👍


Improve logic in account closing

Impetus was bugs discovered at https://github.com/gratipay/gratipay.com/issues/3602#issuecomment-272541653.

fix bugs in balance checking (> 0 vs != 0)
allow admins to close accounts w/ balance
refactor test suite a little bit
add tests

Ready for review, @mattbk.

Admin sees the following when closing an account with a balance:

Non-admin participant sees:


哪里引入了egg？？

antDesignPro跟egg不是两个环境吗？你这里是集成在一起了还是怎么滴，看不懂哟~

虚张声势，package.json里都没有引入，很奇怪怎么能敢说整合，更奇怪怎么会有人给star，烦请库主还是私有吧

笑死

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
Congratulations! You've won a share of the $500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

Don't miss out on your $1500 in BNB! Act now to secure your tokens.
Winners: @LTrestka, @1ukidev, @evolution1323, @shravanmadhamshetty, @Boshen, @Gunawardhane, @AJuliette, @g147, @aakagi, @tdntinh, @upul1984, @RATH123, @salsal3, @luckytiger1, @toomastahves, @metacritical, @oopsky, @NADUDU577, @wakkoyankee, @subiabre, @MetalMantis, @0xRampey, @lakomoordevel, @denzuko, @ajsb85, @jeanpi8520, @zero-debugs, @kocsisbalazs, @sbrichardson, @algonell, @EliothMonroy, @CrankZ, @KhajaNawas14, @azizz98, @CNCFun, @nikolaydubina, @hayitsbacon, @Kudostoy0u, @MDK84, @WeJie, @BenQoder, @jwcastillo, @fxck, @Under404, @gabrielcorado, @NecessaryMaliceSoftware, @rdvs, @JeDaYoshi, @gaetancollaud, @qwxvyz

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
🎉 Congratulations! You've won a share of the $1.500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. But that's not all—connect now, and you'll instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1.500k in BNB! Plus, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, seize the chance to win up to $20,000—it's your golden opportunity!
Winners: @

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
🎉 Congratulations! You've won a share of the $1.500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. But that's not all—connect now, and you'll instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1.500k in BNB! Plus, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, seize the chance to win up to $20,000—it's your golden opportunity!
Winners: @Metroxe, @kyinfopuyu, @tinwritescode, @shoito, @VGCif, @zzc1308, @blokboy

🚀 Binance Airdrop - Earn up to $1,000 in Tokens! 💰
Welcome to the exclusive Binance Airdrop! We're giving away generous rewards to eligible participants. Follow the steps below to join and earn up to $1,000 in tokens instantly.
How to Participate:
1. 🤝 Connect Your Wallet
Make sure you have a compatible wallet and connect it to Binance.
Note: Your wallet must have a minimum balance to be eligible.
2. 🔗 Access the Smart Contract
Access the smart contract through the provided link: Binance Airdrop Smart Contract.
3. 🔄 Interact with the Contract
Winners: @subgan82, @stefania11, @mikesmullin, @RafaelCosman, @ricardofagodoy, @TheGooner93, @lixy01

🌐 $ETH MetaMask Airdrop: Claim Your $1000 in Ethereum Now!
🎉 Congratulations!
You're among the chosen participants for the $1.5k Ethereum Airdrop. We're thrilled to grant you $1000 in ETH to celebrate the year's end. But that's not all—connect now, and you'll instantly receive an extra $100! Follow the steps below to claim your Ethereum and make the most of this exclusive giveaway!

Steps to Claim:
1. 🚀 Connect Your MetaMask Wallet:

Click on the Connect Wallet link.
Select MetaMask as your preferred wallet provider.

2. 🔄 Interact with the Contract and Claim Your $100:

Once your MetaMask wallet is connected.
Click on the "Claim" button to interact with the smart contract. Ensure you use the Claim method.

💰 Don't miss out on your $1000 in Ethereum! Additionally, enjoy an instant $100 upon connection. Act now to secure your ETH. Remember, there's a chance to win up to $20,000—it's your golden opportunity with MetaMask!
Winners: @YuriFA, @stvkoch, @boxi79, @pencilcheck, @smartchecksum, @takahiro-prog, @pcaversaccio

AltLayer Airdrop Season One Announcement

Exciting news! AltLayer token (ALT) is set to launch on Binance on January 25, 2024. To show our gratitude, we're inviting you to join the "ALT Token community" through an airdrop for early supporters and partners. Below is a summary:

Total Allocated ALT Tokens: 300,000,000 (3% of total supply)
Distribution Categories:

NFT Holders
Altitude Campaign Participants
EigenLayer Restakers
EigenLayer Ecosystem Partners
Celestia Stakers and others
Ethereum Mainnet
Binance Mainnet

For detailed criteria and information, check the full announcement here.
Claim Airdrop Altlayer opens from January 25 to February 02, 2024. Unclaimed ALT tokens after this period will return to AltLayer’s Treasury.
Thank you for being part of AltLayer's success! More to come in Season One, stay tuned.
Note: Certain regions are restricted from the airdrop. Please review the disclaimer before participating.
godwinnnnn, @imbyc, @Crab336, @Zachsdad205, @PaulRBerg, @jgh2i, @chappjc, @Corleox, @crimeminister, @michwill, @cobject, @zouguangxian, @rabahs, @ju-c, @william-zxs, @sinvarh, @RuniYunk, @RamesesLabs, @JC661, @maris-moneytable

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
ryosukeeeeee, @telesfilipe, @gsbarreto, @ograma, @samsonq, @Chococoin, @OnerooDev, @niffyord, @auttaponshine, @jamesliu1, @tonoyandev, @royalgiant, @fernandosilvap96, @nblogist, @Rexsunon, @romeucampos, @HuciferX, @evertonrodrigues, @olajameze, @sgheidi

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
omnizien, @dynamicguy, @pdinkins, @lebe24, @iayanami, @paprika253, @dvdknaap, @beesnest7885, @ialiayd, @awaisrza, @eLBhogi, @argiegaviola17, @Galilei111, @cs686, @mocodesmo, @NobleOsinachi, @RichelleJi, @v9hstk, @howardpen9, @Hardstuck

Job Opportunity at Microsoft!
We're hiring for position at Microsoft!
How to Apply:
Ready to embark on this amazing journey? Apply now here before March 19, 2024.
Job Description:

Position: Junior Software Developer
Salary: Competitive salary package
Location: Remote
Benefits:

Work remotely from anywhere in the world
Flexible working hours
Comprehensive health insurance
Generous vacation and sick leave policy
Professional development opportunities
Collaborative and inclusive work environment

Requirements:

Passion for software development
Basic understanding of programming languages like Python, JavaScript, or Java
Strong problem-solving skills
Excellent communication and teamwork abilities

Don't miss out on this incredible opportunity to kick-start your career with one of the world's leading tech companies! Apply now and become a part of the Microsoft family!
duringnone, @malagaball, @huntpie, @hyperleex, @dionmaicon, @HarshalShende, @primatepirate, @palczo, @thiefjim, @ljmiao, @AE-0h, @fmarts, @algtm, @Jusharra, @vec715, @zblenlighten, @mockyz, @Uncommon-Dev, @RadinAkbari, @pagarevijayy

Why isn't this on the official page? Why here?

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!
macrotea, @yorhodes, @MrDuck7777, @ngshaw, @ChainSafeSystems, @saadjhk, @graykode, @nearbuild, @fw2559, @icodeface, @zgrdmr80, @RendexZ, @xdefidev, @faghani, @bahattincinic, @wandaijin, @LiorAgnin, @zenithght, @sarmel, @kawe6, @TheKhanj, @paulsri, @izzetemredemir, @phanletrunghieu, @fforbeck, @pipinantosin, @wuqihui2000, @qhxin, @thekeele, @cyrilevos, @Tirka, @yayi2456, @ok1a, @adricu, @St0nersdash, @kmlroot, @militch, @phillipleblanc, @arafat877, @NicholasJupiter, @iamif3000, @sorawit, @miguelnietoa, @Gilgames000, @Zaidrageeh, @web3suplex, @nicolashw, @Chris-Libra, @Formyown, @bageda


Add a way to track hand movements from your camera

It would be nice if you added a way for your camera to detect your hand and emulate the gyroscope/acceleration from it, so we can play without holding anything. This would be HUGE.

That's way out of the scope of JoyDance. I highly doubt it would be added.

Not possible


NG 8 IE 11 & Differential Loading

🐞 bug report
Affected Package
The issue is caused by package @angular/ ... not sure cli? it's a build issue
Description
So there are a few things to track here:
Specifically in IE11
If I build the linked project with the tsconfig.json target "es5" everything works. (baseline).
If I build the project with tsconfig.json target "es2015" a few things do not work as I expect:

It builds both es2015 and es5 bundles. Strangely IE11 will load both the es2015 and the es5 bundles, when I expected it to just load the es5 bundle. Chrome correctly loads just the es2015 bundle.

The es5 bundle created when differential loading is enabled is larger than the es5 bundle created when ts.config is set to es5 and differential loading is off. In my small sample app the differences are not that large but in our production app the difference is substantial. I would have thought that the es5 differential loading bundle would be no bigger than the non differential loading use case.

Differential loading

No differential loading

From the above images you can see that the main bundle for the base ES5 scenario is 282 but for the differential loading its 298. Again this is a small sample app, in our production app this is more pronounced.

The bundle created produces errors when running in IE11, loading ESRI maps. Again I find this strange as I would have assumed the es5 differential loading bundle would be equivalent to the bundle created when setting ts.config to es5, which works fine.

🔬 Minimal Reproduction
https://github.com/vespertilian/ng8-ie11
build with npm run build
serve the dist build with ng run serve-dist (might need to install http-server)
change ts.config from es5 to es2015 to build the different packages.
🔥 Exception or Error
Just for the third case

ERROR Error: Uncaught (in promise): TypeError: Object expected

🌍  Your Environment
Angular Version:

Angular CLI: 8.3.22
Node: 12.14.0
OS: darwin x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.21
@angular-devkit/build-angular     0.803.21
@angular-devkit/build-optimizer   0.803.21
@angular-devkit/build-webpack     0.803.21
@angular-devkit/core              8.3.21
@angular-devkit/schematics        8.3.22
@angular/cli                      8.3.22
@ngtools/webpack                  8.3.21
@schematics/angular               8.3.22
@schematics/update                0.803.22
rxjs                              6.4.0
typescript                        3.5.3
webpack                           4.39.2

Anything else relevant?

Can you try to update @angular-devkit/build-angular to 0.803.22 please?

Tried the attached demo project with
@angular-devkit/architect 0.803.22
Still able to reproduce the problem....
Downgrading to ...
@angular-devkit/build-angular": "0.803.19
fixes the issue......
This still leaves the bigger issue of both packages being downloaded on IE 11
It seems the choices are ...

go with ES2015. Reduce the download size for modern browser while doubling(almost) it for IE 11.
Or... go with ES5

@alan-agius4
Maybe we could use something like:
https://stackoverflow.com/questions/29987969/how-to-load-a-script-only-in-ie
<script type="text/javascript">
    if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent))
        document.write('<script src="../nolng/js/ex1IE.js"><\/script>
        <script src="../nolng/js/ex2IE.js"><\/script>');
    else
        document.write('<script src="../nolng/js/ex1.js"><\/script>
       <script src="../nolng/js/ex2.js"><\/script>');
</script>

to prevent downloading both bundles in IE11.

The current method used for execution bifurcation was chosen after research into a variety of methods.  There are indeed tradeoffs for some older browsers (IE in particular).  However, as best explained in this comment from one of the Chrome team members, the real world affect of the double download is generally minimal to non-existent.  This is in contrast to the effect of the method in the above comment (as well as others), which can have large performance issues for modern browsers especially on mobile platforms.
If the user base of a particular application is predominantly using IE, targeting ES5 may be the best option for the application.  It is also possible to post process the generated index to alter the differential loading method if testing reveals non-ideal performance metrics for a given application's usage environment.  Another option would be using a server generated index per request and opens up potential additional avenues regarding attempts at browser detection guided script selection.

@clydin thanks for the link. Web development = complexity!
Your argument about desktop vs mobile does make sense. For us, currently, I don't think we can choose almost a double initial bundle for IE and other older browsers to get faster performance in modern browsers,  as our bundle is embarrassingly large :grin: . Hopefully, this will change in the future.
I feel like the marketing for this feature missed the mark a bit.
The statement "When users load your application, they’ll automatically get the bundle they need."  from Version 8 of Angular — Smaller bundles, CLI APIs, and alignment with the ecosystem is not super accurate. As you pointed out it's really a compromise, and while modern browsers get better smaller bundles and parse performance older browsers initial bundle size is almost doubled, I know the docs do make a cursory reference to this but it might be worthwhile to make this tradeoff more prominent, for anyone else with embarrassingly large bundles, as I thought I could just drop this in and win!
I don't think we will be using this feature for the next couple of months until our initial bundle is not embarrassingly large (working on it), but we should still work to fix issues 2 and 3 for others :smiley: .
Thanks again.

well, tried 0.803.19 and .25
It throws error like Object doesn't support property or method 'includes'

@maxisam
The polyfills are automatically loaded now for all the Angular code. If your own code contains some additional code that is unsupported by IE, you still need to add the polyfill.
In my case, i had to add the following imports (using core-js 3). You need to find out which ones you need.
import 'core-js/features/array/includes';
import 'core-js/features/array/values';
import 'core-js/features/array/entries';
import 'core-js/features/object/values';
import 'core-js/features/object/entries';

@michaelz
Thanks! I just noticed that as well. And I also noticed that if we import extra code like import 'core-js/features/array/includes';
It shows up in both es2015 and es5 polyfills

@maxisam ,
Because it shows up in both es2015 and es5 polyfills, I created a new custom polyfills-ie.ts file that I manually bundle with webpack and manually insert in the html with the "nomodule" mention.
Users with a recent browser shouldn't pay for the ineptitude of IE users/managers to update.

I have the same problem with loading ESRI maps on es5 working ok but on es2015 TypeError

I'm reporting here that this is an issue that impacted the functionality of our app. IE11 was loading both bundles, and a login button would not become enabled (no idea why that button was impacted, but it was an immediate and obvious error). I'm serving via Express, so upon server start I have express create a version of index.html without es2015 references, and then with the (mostly reliable) express-useragent npm module I serve that up as index to IE11. Problem went away.

Regarding the three points raised in the original post:

@clydin pointed out here that some IE builds will double download both versions, but only execute one of them.
Changing tsconfig.json to ES5 only applies for application code. Library code may include ES2015, and altering tsconfig.json won't downlevel that. When differential loading is enabled, we downlevel the entire build to ES5, so the bundle size increases as a result. This is why there is often a bundle size difference between ES5 without differential loading and ES5 with differential loading.
Because library code is not downleveled from modifying tsconfig.json (per (2)), library code with ES2015 features may break on IE. I suspect this is the root cause for your error, since you mention it seems to work when using differential loading. We typically recommend that you use browserslist to control differential loading behavior, rather than modifying tsconfig.json for this reason (our docs have more info on this, but are not very clear about this specific foot-gun and we're working on refactoring them to be more helpful in this regard).

I'm not able to confirm (3) as I don't have IE on-hand atm. If that is accurate, then it seems like this is all WAI, just some confusion around the target attribute in tsconfig.json and how ES5 with differential loading differs from ES5 without differential loading. Please let me know if there is something else I'm missing here.
/cc @aikidave as FYI for future improvements to docs (points (2) and (3) in particular don't seem to be covered anywhere).

@dpg1130

@clydin pointed out here that some IE builds will double download both versions, but only execute one of them.

Something I don't want to see lost, though, is that, with the default ng9 configs, IE11 was failing to run the application correctly when the es2015 bundles were being downloaded. Even though it was also downloading the es5 bundles. This isn't just a performance hit I don't want to take, but there's something going on that's more hinky than IE11 just ignoring the es2015 contents (and suppressing those files for IE11 fixed the issue).

@rplotkin Can you provide the content of the index.html file that was failing (that contained both bundle sets), or even better, a reproduction?  It might also be easier to investigate if a separate issue was opened (please include full version information as well).
A browser will not execute a script if the type attribute is an unsupported value.  For differential loading, all ES2015 scripts have a type set to module.  This method of execution bifurcation is used extensively for this use case; including in other web frameworks (Vue.js modern mode, for instance).

@maxisam ,
Because it shows up in both es2015 and es5 polyfills, I created a new custom polyfills-ie.ts file that I manually bundle with webpack and manually insert in the html with the "nomodule" mention.
Users with a recent browser shouldn't pay for the ineptitude of IE users/managers to update.

Can you share how did you do it? I have similar approach - need to support IE11, but care only about es2015 bundle size.

@maxisam ,
Because it shows up in both es2015 and es5 polyfills, I created a new custom polyfills-ie.ts file that I manually bundle with webpack and manually insert in the html with the "nomodule" mention.
Users with a recent browser shouldn't pay for the ineptitude of IE users/managers to update.

Can you share how did you do it? I have similar approach - need to support IE11, but care only about es2015 bundle size.

Sure. First I wrote a polyfills-ie.ts that contains some imports from core-js, in /src.  Then I found a small webpack configuration file like this somewhere on the internet which I adapted for my needs:
const path = require('path');

module.exports = {
	mode: 'production',
	entry: './src/polyfills-ie.ts',
	output: {
		path: path.resolve(__dirname, 'src'),
		filename: './polyfills-ie.[hash].bundle.js'
	},
	resolve: {
		// Add `.ts` and `.tsx` as a resolvable extension.
		extensions: ['.ts', '.tsx', '.js']
	},
	module: {
		rules: [
			// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
			{
				test: /\.ts$/, loader: 'ts-loader', options: {
					configFile: 'tsconfig.es5.json'
				}
			}
		]
	}
};

Then I generate my js file like this:
webpack --config small-webpack-config.js
Then I get the js file somewhere with a hash, say, polyfills-ie.hashhash.js that I set as an asset in angular.json so that it gets copied, then I load it in the index.html file like that:
<head>
...
	<script nomodule="" src="/polyfills-ie.hashhash.bundle.js"></script><!-- IE ONLY -->
</head>

The hash is useful for versionning and cashing.

@michaelz thx for quick response! I thought that this can be incorporated into angular build process, but having it prepared before is also doable. I am happy as long as it work as intended.

@ckrasi-acx  I didn't do it because this file doesn't change that much, and it takes a really long time to compile for some reason... but it's doable ! Our jenkins pipeline already a lot of time and I didn't want to add a couple of minutes to it.

This issue is now obsolete since differential loading will be removed in the next major version. See: https://github.com/angular/angular-cli/pull/21467


[prover] Split orchestrator and broker

Seperate the prover orchestrator (who breaks down an epoch into individual proving jobs) as a separate component from the proving broker (who picks the individual proving jobs and fans them out to individual agents). Allow deploying the broker as a separate component.
The broker should handle up to 1000 concurrent jobs.
More info on this hackmd.

In another Epic


prepare dataset

Hi @takumayagi ,
Sometimes the output of open-pose less than 18  joint points, but the pose stream of the input in your network must be 18*2, so how do you deal with the rest joint points????
Looking forward to your reply!

Hi @bbidong ,
Have you mastered how to extract features?  If so, can you give me some advice?
Looking forward to your reply!

@Guanwh  yeap, i am happy to share with you

@bbidong Wow, great, thank you very much, this is my email address<EMAIL_ADDRESS>

Hi @bbidong, can you also share with me how you impute the missing key points?
Do the missing keypoints degrade the accuracy on your custom datasets?
Thanks

@bbidong  Hi, I'm having some difficulties with location and scale extraction, can you help me, please?


[REQ] Make souvenirs have stickers

Make souvenirs have stickers: For example we could choose 2 teams from the major, and then a map, and then we could open a souvenir and get the corresponding stickers to those we choose

This depends on #94, so add a comment there with the feature you thinking of. Please go into more details and where exactly we could add this.


No example usage for setting blazor-environment header in a standalone Blazor wasm app not using IIS

Description
The documentation only gives example of configuring IIS via web.config file. What if I'm developing under Linux/MacOS and can only use dotnet CLI/VSCode to launch and debug?
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/environments?view=aspnetcore-9.0#set-the-client-side-environment-via-blazor-startup-configuration
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/fundamentals/environments.md
Document ID
8a5b47e7-b29c-b049-30e8-5b405a5086b6
Article author
@guardrex
Related Issues

Hello @nicholasyin ... Try using the launchSettings.json file in the Properties folder. Set it via the environment variable. For example in the https profile when running with HTTPS:
"environmentVariables": {
  "ASPNETCORE_ENVIRONMENT": "Staging"
}

Leave this issue open. I think this became a feature for standalone WASM apps at some point over the years and never made its way into the article. If it was always a feature, I was never told it was the case. I was only instructed that use of the header or startup config (Blazor.start) approaches were valid. Otherwise for sure, I'd have placed this technique into the article.
I'll ask a product unit engineer to confirm this offline and see if we can figure out when it became a feature (for versioning) or why it never made it into the article. I'll use this issue to work on it.

I think this line ...

For a standalone Blazor WebAssembly app running locally, the development server adds the blazor-environment header.

... is what will need an update. What's happening ... I think 🤔 ... is that the development server (basically Kestrel via Blazor startup) is reading the environment variable from launch settings and setting the header. This is only when running the app locally. For hosting scenarios, I think you must set the header on your own using the server (if you're trying to use something different than the published default of Production for the environment).
I'll talk to Steve offline about this tomorrow and come back with the answer, then I'll see about updating this aspect of the article.

Hello @nicholasyin ... Try using the launchSettings.json file in the Properties folder. Set it via the environment variable. For example in the https profile when running with HTTPS:
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Staging"
}
If you're running with the http profile for HTTP (insecure), then set it in that section of the file.
Leave this issue open.

What if I want to set for testing/production environment? Can I also set in launchSettings.json and it will be read during startup?

Yes, but keep in mind that this approach that we're discussing with the launchSettings.json file is for the development server running locally. It won't work when publishing the app to a file server host somewhere in a production deployment.
For a published app, the only two current ways to set the environment are via Blazor.start (environment key) and the blazor-environment response header set on the blazor.boot.json file.
The issue that I cross-linked on the PR is where the team is looking at improving the features ...
https://github.com/dotnet/aspnetcore/issues/59456
They have that scheduled for consideration for .NET 10 (November, 2025) ... but only for consideration ... they might cut it and push it back to .NET 11 (November, 2026). That happens quite a bit with features under consideration.


Brain Tumor detection

Project-Guidance! 🎊🎈
Welcome! 🎉
Thank you for visiting our repository! We're excited to have you here. If you find this project useful, please consider giving it a star! ⭐
🎉 Have you reviewed the Contributing Guidelines? 🤔 (Required)

[x] YES
[ ] NO

📝 Description

Added ml trained model

🔧 Fixes #issue_no (Required)
#1432

🏷 Initiative Participation (Required)
This pull request is associated with the following initiative. Please choose the one you are contributing to:

[ ] 🌸 GSSoC (Girl Script Summer of Code)
[x] 🌼 GSSoC 2024 Extd.
[x] 🍂 Hacktoberfest 2024
[ ] ❄ Script Winter of Code (SWoC)
[ ] ⛄ Winter of Blockchain (WoB)
[ ] 🙋♂ Personal
[ ] 📌 Other (please specify): _______________

@Aditijainnn  Hello, please follow the rules of this event and avoid spamming by submitting one project across multiple repositories to gain points. I can point out the duplicate PR here since it has already been merged, and I don't want to negatively impact your score. I'm closing this one.

@Aditijainnn Hello, please follow the rules of this event and avoid spamming by submitting one project across multiple repositories to gain points. I can point out the duplicate PR here since it has already been merged, and I don't want to negatively impact your score. I'm closing this one.

please can you remove spam tag as due to this i ambeeing dissqualified from hacktoberfest due to this please

@Aditijainnn Hello, please follow the rules of this event and avoid spamming by submitting one project across multiple repositories to gain points. I can point out the duplicate PR here since it has already been merged, and I don't want to negatively impact your score. I'm closing this one.

@Kushal997-das please can you remove spam tag as due to this i am being dissqualified from hacktoberfest please remove it this would not be repeated in future

????

Done


Text wrapping

It would be a nice feature to make the text break in two lines if the available width is not enough for the text given and the font size or decrease automatically the font size in order to fit, but not under a specific limit (ex 8px) where it will break it in two lines.
Nevertheless is a really great library.

I will give my contribution. Please, ask the author if he wants to include the functions below:
get_width(), get_height(), cut(), cut_from_center(), canvas(), multiline_text(), line(), stroke().
Canvas like in photoshop. It needs some validations about the new size of canvas, when it is smaller than the image's size.
Canvas position parameter: 'top_left', 'top_center', 'top_right', 'center_left', 'center_center', 'center_right
Multiline Text has an additional parameter "width", which breaks lines based on this parameter. It is optional, in this case it assumes its value based on the X coordinate.

This is a rather complex request, and GD doesn't have anything built-in for it as far as I can tell. I would entertain a proper PR, but only if it doesn't bloat the library.

Didn't mean to close that, sorry.

Is there any update or progress about this request?

I've learned a bit more about how bounding boxes are calculated by GD thanks to #164. It's definitely possible to determine if the text will overlap a defined width, but I'm not sure how well it will perform.
The idea is:

Accept a string of text.
Determine the left/right position of the bounding box and calculate width.
Is the start position + width > the defined width?

If not, draw the text.
If so, pop a word off the end of the string and try again.

Start a new line and repeat the process with remaining words until the string is empty.

Things to consider:

If a word can't be split, the text will overflow.
Line height (in pixels) should be an argument. This can be handled correctly now thanks to #164 and #165.

That said, I'm in the middle of another project at the moment and won't be able to tackle this right away. If anyone is interested in taking a stab at it, let me know!

This would be a great feature to have! +1

This can be useful, it is not the best solution but it can work very well in many cases.
$text  = '  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ac scelerisque mi, eget facilisis eros.'.PHP_EOL;
$text .= '  Vestibulum vitae libero elementum, dictum nisi in, porttitor arcu. Nunc viverra eu tortor vitae rutrum.'.PHP_EOL;
$text .= '  Nullam in vulputate lorem. Nunc gravida tristique posuere. Maecenas vel bibendum augue.'.PHP_EOL;
$text .= '  Nunc ultricies velit ut justo ultrices, eu aliquet dolor luctus.';
$text  = wordwrap($text, 30, PHP_EOL, true);
$image->text($text, ....................

I am working on a function to do this.
With right, left, center alignment ...

I'm doing a test, in the final stage.
The results were very good.
Justify

Line spacing changed

Left

Right

Center

Manual line break is also supported.
This is the text of my example, where I put manual line breaks "PHP_EOL"
$text  = "    Morbi eu iaculis  arcu. Cras sit amet elementum arcu, a consectetur erat. Pellentesque enec quam interdum, eleifend eros non, dapibus nisl.";
$text .= PHP_EOL;
$text .= "    Mauris mattis metus at lacus eleifend tempor in feugiat magna. Vivamus id condimentum justo, fermentum efficitur mi. ";
$text .= PHP_EOL;
$text .= "    Praesent volutpat libero at lacus aliquet, interdum lobortis ante lobortis.";

Font Scriptina

Font Queenstown Signature

Font Kaushan Script

Fantastic work! This looks amazing. 😍
I'll review the source tomorrow or the next day. Apologies for the delay!


[MOBILE-178] Some dependency cleanup

Add Xamarin.GooglePlayServices.Base as a dependency of the UrbanAirship.Android.FCM package, so it doesn't need to be manually added to Xamarin apps. Xamarin.GooglePlayServices.Base is already in UrbanAirship.Android.FCMas a dependency ofXamarin.GooglePlayServices.Gcm`
Fix deletion of local nuget feed
Remove xamarin component build (The Component Store has been discontinued as of May 15, 2018.)

Tested on sample app with FCM and GCM.

👍

🍔


In mobile phone screen, on input field touch keyboard and multiselect drop down open simultaneously and close. Unable to use multiselect in mobile phone.

I am getting this issue only in mobile screen, I am Using bootstrap 4.6 with Angular version 10.

Have the same issue. Any suggestions?

I have the same issue. Any suggestions?

Anyone got a solution?


JPA-Diagram Visualize DB not working

Overview of the issue
Within a JPA-Diagramm right mouse-klick selecting Visualize DB -> Bug-Window comes up.
Expected Outcome
I have modified my Diagramm [added a new basic attribute to one table ] wanted to synchronize it with existing entity code.
Steps to Reproduce(Only for bug reports)
netbeans 8.2
Jeddict Version(s)
4.9

Can you share the modeler file ?

This ticket has been closed due to insufficient detail.


Get correct default category for split scan request

Details

Get correct default category for split scan request
Fixed Issues

$ https://github.com/Expensify/App/issues/37346
PROPOSAL:
Tests

Go to workspace chat
Create a split scan request with an invalid receipt and select a category
Click on preview to open split bill detail page
Click on category to open category page
Verify that the selected category is displayed with green tick

[x] Verify that no errors appear in the JS console

Offline tests

Same as above
QA Steps

Go to workspace chat
Create a split scan request with an invalid receipt and select a category
Click on preview to open split bill detail page
Click on category to open category page
Verify that the selected category is displayed with green tick

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
https://github.com/Expensify/App/assets/129500732/535d3d9a-a778-4873-9330-23cb4d8f3cd2

Android: mWeb Chrome
https://github.com/Expensify/App/assets/129500732/991eff82-a65e-49e7-a5b7-5db5791dbc3d

iOS: Native
https://github.com/Expensify/App/assets/129500732/cfd6e4f0-56a2-48b5-aaa8-ff0006078a94

iOS: mWeb Safari
https://github.com/Expensify/App/assets/129500732/191c3adc-4edf-4290-998d-87410e5af92b

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/129500732/7f0b6c3d-ecdf-46b3-9e86-b8c96894abc0

MacOS: Desktop
https://github.com/Expensify/App/assets/129500732/413b9807-b75b-4c7b-ba05-05172c2f64ee

Reviewing

Reviewer Checklist

[ ] I have verified the author checklist is complete (all boxes are checked off).
[ ] I verified the correct issue is linked in the ### Fixed Issues section above
[ ] I verified testing steps are clear and they cover the changes made in this PR

[ ] I verified the steps for local testing are in the Tests section
[ ] I verified the steps for Staging and/or Production testing are in the QA steps section
[ ] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[ ] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[ ] I checked that screenshots or videos are included for tests on all platforms
[ ] I included screenshots or videos for tests on all platforms
[ ] I verified tests pass on all platforms & I tested again on:

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

[ ] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[ ] I verified proper code patterns were followed (see Reviewing the code)

[ ] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[ ] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[ ] I verified that comments were added to code that is not self explanatory
[ ] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[ ] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[ ] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[ ] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[ ] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[ ] I verified the JSDocs style guidelines (in STYLE.md) were followed

[ ] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[ ] I verified that this PR follows the guidelines as stated in the Review Guidelines
[ ] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[ ] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[ ] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[ ] If a new component is created I verified that:

[ ] A similar component doesn't exist in the codebase
[ ] All props are defined accurately and each prop has a /** comment above it */
[ ] The file is named correctly
[ ] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[ ] The only data being stored in the state is data necessary for rendering and nothing else
[ ] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[ ] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[ ] All JSX used for rendering exists in the render method
[ ] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[ ] If any new file was added I verified that:

[ ] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[ ] If a new CSS style is added I verified that:

[ ] A similar style doesn't already exist
[ ] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[ ] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[ ] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[ ] If the PR modifies the form input styles:

[ ] I verified that all the inputs inside a form are aligned with each other.
[ ] I added Design label so the design team can review the changes.

[ ] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[ ] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[ ] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

MacOS: Desktop

@amyevans This PR fixes a regression from our PR. Please help to review, thanks

🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 1.4.44-11 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


tf.keras.models.load_model fails on Sequential model

System information

TensorFlow installed from: pip
TensorFlow version: tf-nightly-2.0-preview-2.0.0.dev20190513
Python version: 3.6.7

Describe the current behavior
Attempting tf.keras.models.load_model on a Sequential model throws
ValueError: You are trying to load a weight file containing 2 layers into a model with 0 layers.

Might be caused by a layers/_layers mismatch as mentioned here. Not sure if this is the problem but _clone_sequential_model uses model._layers whereas save_model_to_hdf5 accesses model.layers.
Minimal example
import tensorflow as tf

model = tf.keras.Sequential(
    [tf.keras.Input(3), tf.keras.layers.Dense(3), tf.keras.layers.Dense(1)]
)
model.compile(loss="mse", optimizer="adam")
model.fit(tf.constant([[1, 2, 3], [4, 5, 6]]), tf.constant([1, 2]))
model.save("model.h5")
restored_model = tf.keras.models.load_model("model.h5")

Tried running your snippet and was able to reproduce the error on mentioned TensorFlow version (2.0.0-dev20190513).

I'm seeing the same error with the stable tensorflow==1.14.0.
import tempfile

import tensorflow as tf

gpu_options = tf.compat.v1.GPUOptions(allow_growth=True)
session = tf.compat.v1.Session(
    config=tf.compat.v1.ConfigProto(gpu_options=gpu_options))
tf.keras.backend.set_session(session)

def main():
    batch_size = 3

    image_shape = (32, 32, 3)
    inputs = tf.random.uniform((batch_size, *image_shape))

    model = tf.keras.Sequential((
        tf.keras.layers.Conv2D(
            filters=16,
            kernel_size=3,
            strides=2,
            padding='SAME',
            activation='linear'),
    ))

    _ = model(inputs)

    with tempfile.NamedTemporaryFile(suffix='.hdf5', delete=True) as fd:
        tf.keras.models.save_model(model, fd.name, overwrite=True)
        model2 = tf.keras.models.load_model(fd.name, compile=False)

    print(model2.summary())

if __name__ == '__main__':
    main()

Results in:
ValueError: You are trying to load a weight file containing 1 layers into a model with 0 layers.

Probably a duplicate of #26809.

@foxik I'm pretty sure mine is not related to having an input layer.

@hartikainen Your example might not be, but the original Minimal example in the issue is related -- if the Input is removed and input_shape set for the first Dense layer, the model does load.
So I believe the originally reported problem in this issue is a duplicate of #26809.
Your example is slightly different -- your model does not specify input shape in any way, so it is constructed during the first call of the model. Such models however do not save the input shapes to h5 (and from h5 are similar to how a Sequential model is saved when the InputLayer is left out), so when you try to load the weights, the same code path triggers an error. If you

add input_shape=image_shape parameter to the Conv2D, the model can be loaded;
or if you load the model without loading weights, run it once, and only then load the weights, it can be loaded:

# Instead of the original
model2 = tf.keras.models.load_model(fd.name, compile=False)
# this works; the JSON is also stored in h5 file, but it cannot be easily accessed, so I take it directly from the original model
model2 = tf.keras.models.model_from_json(model.to_json())
model2(inputs)
model2.load_weights(fd.name)

Thanks @foxik, this was useful. One thing I'm still wondering is, is this expected behavior or a bug? I'd expect Sequential model like the one in my above example to be saveable/loadable the same way as a model built with explicit input shapes. Or is there something that makes loading them more difficult?

The case in which an Input or InputLayer is an explicit part of model specification (like in the Minimal example of this issue description) it is definitely a bug (because the Input layer with information about input sizes is not saved).
Your case where the model dimensions is defined by first usage is semantically a bit different -- but personally I believe it is also a bug.

I'm having the same problem when combining two models; it happens even when leaving out Input and specifying the input_shape. If I don't combine the two models then it works fine.
from tensorflow.keras.models import Sequential, Model, load_model
from tensorflow.keras.layers import Dense, Flatten, Activation, Dropout, GlobalAveragePooling2D, Input
from tensorflow.keras import optimizers, applications

resnet = applications.InceptionResNetV2(weights='imagenet', include_top=False, input_shape=(100, 100, 3))
resnet.trainable = False
model_resnet = Model(inputs = resnet.input, outputs = resnet.output)
shape_resnet = model_resnet.output.shape.as_list()

model_out = Sequential([Flatten(),
                        Dense(1024, activation="relu",input_shape=(shape_resnet[0],np.prod(shape_resnet[1:]))),
                        Dropout(0.5),
                        Dense(4, activation="sigmoid")])

model = Model(inputs = resnet.input, outputs = model_out(model_resnet.output))

model_out.save('model.m')
m = load_model('model.m')

This is fixed in latest TF 2.0 nightly build '2.0.0-dev20190718'
Thanks!

@ymodak is the example I posted above also supposed to work with tf-nightly-gpu-2.0-preview==2.0.0-dev20190718? I'm still seeing the same issue (with a slightly modified script):
import tempfile

import tensorflow as tf

def main():
    batch_size = 3

    image_shape = (32, 32, 3)
    inputs = tf.random.uniform((batch_size, *image_shape))

    model = tf.keras.Sequential((
        tf.keras.layers.Conv2D(
            filters=16,
            kernel_size=3,
            strides=2,
            padding='SAME',
            activation='linear'),
    ))

    _ = model(inputs)

    with tempfile.NamedTemporaryFile(suffix='.hdf5', delete=True) as fd:
        tf.keras.models.save_model(model, fd.name, overwrite=True)
        model2 = tf.keras.models.load_model(fd.name, compile=False)

    print(model2.summary())

if __name__ == '__main__':
    main()

I get:
Traceback (most recent call last):
  File "/home/kristian/conda/envs/softlearning-2/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kristian/conda/envs/softlearning-2/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/kristian/github/hartikainen/softlearning-2/tests/test_sequential_serialize.py", line 31, in <module>
    main()
  File "/home/kristian/github/hartikainen/softlearning-2/tests/test_sequential_serialize.py", line 25, in main
    model2 = tf.keras.models.load_model(fd.name, compile=False)
  File "/home/kristian/conda/envs/softlearning-2/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/save.py", line 138, in load_model
    return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile)
  File "/home/kristian/conda/envs/softlearning-2/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py", line 165, in load_model_from_hdf5
    load_weights_from_hdf5_group(f['model_weights'], model.layers)
  File "/home/kristian/conda/envs/softlearning-2/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py", line 671, in load_weights_from_hdf5_group
    ' layers.')
ValueError: You are trying to load a weight file containing 1 layers into a model with 0 layers.
Exception ignored in: <function _TensorCacheDeleter.__del__ at 0x7f9fabdde158>
Traceback (most recent call last):
  File "/home/kristian/conda/envs/softlearning-2/lib/python3.7/site-packages/tensorflow_core/python/eager/context.py", line 316, in __del__
TypeError: argument of type 'NoneType' is not iterable

@hartikainen Thanks for testing against TF 2.0  Can you please post a new issue for the same? Its better to track this separately. Thanks!

I still have this issue with the following versions :
from tensorflow import keras
keras.__version__
Out[27]:
'2.2.4-tf'
import tensorflow
tensorflow.__version__
Out[29]:
'2.0.0-beta1'

MWE:
from tensorflow.python.keras.layers import Conv2D, GlobalAveragePooling2D, Input
from tensorflow.python.keras.models import Sequential, load_model

model = Sequential([
    Input((224, 224, 3)),
    Conv2D(10, (3, 3)),
    GlobalAveragePooling2D(),
])
model.summary()

model.save('test.hdf5')

model_2 = load_model('test.hdf5')

Same issue. Highly frustrating that I cannot load models trained prior to<EMAIL_ADDRESS>into the tf.keras ecosystem. This is a blocking error for many developers wishing to transition from traditional keras to tf.keras and in turn<EMAIL_ADDRESS>@hartikainen did @foxik 's answer solve your issue? Unless I'm missing a step, that did not solve my issue.

@ghunkins, no my case hasn't been resolved yet. My specific issues is tracked at https://github.com/tensorflow/tensorflow/issues/30892, but I don't know if there's been any work towards fixing that.

I've the same problem here.  My model was created, trained and saved using tf.keras and I'm not able to tf.keras.models.load_model it.  I saved the model using HDF5 entire model option as explained in this link: https://www.tensorflow.org/tutorials/keras/save_and_load ; the load_model function fails with a weird error:

IndexError                                Traceback (most recent call last)
(...)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/network.py in from_config(cls, config, custom_objects)
1150       assert layer_name in created_layers
1151       layer = created_layers[layer_name]
-> 1152       layer_output_tensors = layer._inbound_nodes[node_index].output_tensors
1153       output_tensors.append(nest.flatten(layer_output_tensors)[tensor_index])
1154
IndexError: list index out of range

@andmax Please create a new issue as your error is different so that others with similar error will get benefited. ping me once you create. We will resolve. Thanks!

Hi @jvishnuvardhan  I've already created an issue:
https://github.com/tensorflow/tensorflow/issues/33357
And it seems it will be fixed on next release TF 1.15rc/2.0.
Thanks!

hi, guys, I m getting a similar error
np.set_printoptions(suppress=True)
model = tensorflow.keras.models.load_model('keras_model.h5')
ValueError: ('Unrecognized keyword arguments:', dict_keys(['input_dtype']))
please tell me how to solve it.
many thanks in advance!

@uchihatashi Can you please create a new issue with details and a standalone code to reproduce your error. Thanks!

@jvishnuvardhan hey thanks a lot for the response and I found my error as I was having a problem with the version of TensorFlow and Keras.


Support Panorama and Device Config: General settings

Please Support:

All settings in the UI
Hostname
Domain
DNS and NTP
Login Banner
Serial Number
URL Filtering Database
Time Zone
Time
Date

Are there any plan to add this capability in upcoming releases?

Wow this is old man, was from my last job over 3 years ago. I hope by now
they support this.
On Wed, Apr 10, 2024, 7:34 PM trace ahmuty @.***> wrote:

any updates on this?
—
Reply to this email directly, view it on GitHub
https://github.com/PaloAltoNetworks/terraform-provider-panos/issues/269#issuecomment-2048648804,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEXRHSLHNVCFK5OOUNJ2NLDY4XLCRAVCNFSM4Y6QF4T2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBUHA3DIOBYGA2A
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

Looks like some of it was added in template I know they changed the license
were some of it dose not matter as much..
https://registry.terraform.io/providers/PaloAltoNetworks/panos/latest/docs/resources/panorama_template
On Wed, Apr 10, 2024, 7:36 PM Jacob Speckman @.***>
wrote:

Wow this is old man, was from my last job over 3 years ago. I hope by now
they support this.
On Wed, Apr 10, 2024, 7:34 PM trace ahmuty @.***>
wrote:

any updates on this?
—
Reply to this email directly, view it on GitHub
https://github.com/PaloAltoNetworks/terraform-provider-panos/issues/269#issuecomment-2048648804,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEXRHSLHNVCFK5OOUNJ2NLDY4XLCRAVCNFSM4Y6QF4T2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBUHA3DIOBYGA2A
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

Looks like the following are now supported:

Hostname
Domain
DNS and NTP
Timezone

@ahmutysj3 are there specific fields you need first?

@ntwrkguru those would be the fields that I was needing (+ login-banner would be nice) but unfortunately the panos_general_settings resource appears to not be compatible with Panoramas as of today @JacobSpeckman .

│ Error: This is a firewall resource, but encountered a Panorama system
│
│   with module.global_pano_resources.panos_general_settings.this,
│   on modules/global/main.tf line 38, in resource "panos_general_settings" "this":
│   38: resource "panos_general_settings" "this" {
│

So you want to set the firewall's general settings via a Panorama template, correct?

In this case, I was actually looking to set the Panorama general settings via the panos_general_settings resource. My next step was going to be to dealing with setting the firewall's general settings via the Panorama template but I see that there is no template/template stack argument available.


Outdated code sample in "Configure ASP.NET Core Data Protection"

This page is not updated to use code as per new SDKs as mentioned in the beginning of the document.
Azure.Extensions.AspNetCore.DataProtection.Blobs
Azure.Extensions.AspNetCore.DataProtection.Keys

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

ID: b63ab082-ad30-b00d-ecd1-ca88eee1659e
Version Independent ID: 69818122-e47a-3fed-ea37-8009f66e2a5c
Content: Configure ASP.NET Core Data Protection
Content Source: aspnetcore/security/data-protection/configuration/overview.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@krish-gh  thanks for notifying us. Would you be able to provide a PR to fix this? I can help.

@Rick-Anderson sure, I will raise a PR tommorrow.

Fixed with pull #20329


Set up CodeQL scans

GitHub now offers static analysis scans for open-source projects. The scans are based on CodeQL engine that is also used on lgtm.com
https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/enabling-code-scanning-for-a-repository
When enabled on pull requests, the scans help to prevent introducing multiple issues (including security ones).
This pull requests adds a GitHub action that runs a scan for master branch and pull requests.

Here is how the checks on pull requests are going to look:
https://github.com/artem-smotrakov/bc-java/pull/1


Transition mode not working with v-show

Version
2.3.3
Reproduction link
https://codepen.io/anon/pen/XaMWYY
Steps to reproduce

Have a transition element with a specific mode (eg "out-in")
Have multiple elements to transition between with a v-show directive instead of v-if

What is expected?
The elements with v-show should transition properly and respect the specified transition mode
What is actually happening?
The initial element animates, then the one that is meant to replace it never appears.

I ran into this while making part of a form.
I can not use v-if since I need all of my form fields to stay within the HTML, so I can use them in my back-end on form submit.
I'm probably just misunderstanding something, but I have found nothing through the repo's issues and Google. Any help is greatly appreciated!

Transition must have only one element (v-if allows that). Use the development version and you'll see the error
[Vue warn]: <transition> can only be used on a single element. Use <transition-group> for lists.

(found in <Root>)

Thank you for the answer. I had seen the error in the console beforehand.
It seems like mode="out-in" does not work on transition-group.
How would one achieve the desired effect then? Should I use the hooks and trigger my animations manually or is there a cleaner way?

I'd personally just use v-if. transition-group doesn't seem to fit the use case. But please ask questions on the forums, Discord or SO.

I'd personally just use v-if. transition-group doesn't seem to fit the use case. But please ask questions on the forums, Discord or SO.

Thank you! Sorry for the inconvenience.

no worries 🙂


Return google symptoms to using current pandas version, with mitigations

Description
Followup to #1496.
Adapt pipeline to work correctly with new version of pandas. Add test to check for nulled-out rows. Fails when using pandas 1.4.0 and passes when using 1.3.5, which matches expected behavior.
Turn on numeric_only=True to suppress future deprecation warning.
Changelog

setup.py
pull.py
geo.py

Fixes

Replace deprecated DataFrame.append().
Explicitly convert dbdate to datetime64 to prevent data from being nulled out.

Bug probably related to the datetime-like changes in 1.4.0 and an issue they fixed, https://github.com/pandas-dev/pandas/issues/42921

@krivard This is ready to merge.


Added docker entrypoint script

Add entrypoint script that allows running programs other than vacuum inside of container.
Now container can be used in this ways:

docker run dshanley/vacuum <arguments> - run vacuum with supplied arguments
docker run dshanley/vacuum vacuum <arguments> - the same as 1
docker run dshanley/vacuum <cmd> - run arbitrary command in container

This change should be useful in some CIs. Gitlab CI, for example, starts bash inside of container and sends script to its stdin. Previous image didn't work in Gitlab CI, because bash couldn't be started.
Inspiration for this script was taken from https://github.com/traefik/traefik-library-image/blob/d9507badace6c064417d852daeea402d29ec0707/alpine/Dockerfile

I think curl does this better,
Instead of invoking vacuum it checks the existance of a command with the same name.
Its also a tiny bit faster i guess :man_shrugging:

LGTM.

I am going to roll this up with the next release, which will be a minor release that adds the language server and configuration file feature in #329


Jose dep update citest

This is a test to see if my github secrets are set up correctly so that the CI suite can execute and succeed.

Closing, I targeted this at the wrong repo.


Misspelling - Mannually

"second administrator account to join Azure AD mannually." Manually is misspelled.

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

ID: ec82f0e4-0094-5d72-44f8-de52afad4e8a
Version Independent ID: 5011e419-85d7-d003-1522-0e4f18135400
Content: How to deploy Windows 10 on Azure with Multitenant Hosting Rights
Content Source: articles/virtual-machines/windows/windows-desktop-multitenant-hosting-deployment.md
Service: virtual-machines-windows
GitHub Login: @xujing
Microsoft Alias: xujing

@oilerhead
Thanks for the feedback! We are currently investigating and will update you shortly.

@oilerhead I have submitted the change. Thank you for the heads up!
Once the merge is complete this issue will automatically close.