Update LocalSeleniumCrawlerStrategy to resolve ChromeDriver version m…

…ismatch issue
This resolves the following error: selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Windows users are getting.

@ketonkss4 Very interesting I wasn't aware this. Anyway thank you for your contribution! We've incorporated your changes into our upcoming version branch (main-75) rather than merging directly into main. This allows us to include your fix in our next release while keeping our current version stable.


[1.4.0] Second module not added to graphcool.yml and deploy broken

Originally from @kbrandwijk
$ gc init
$ gc modules add ...../github
$ set CLIENT_ID=xxx
$ set CLIENT_SECRET=xxx
$ gc modules add ...../facebook

Manually added the facebook module and fixed the facebook code-paths.
$ gc deploy

graphcool module has been replaced by graphcool add-template: #720.


Zoom settings lost on close/refresh

Hello,
First off, thank you very much for this great tool.
I have used nativefier to create a desktop app for Trello, but I have a problem with zoom settings.
When I open Trello, I like to zoom out to have a better overview of all my lists/cards. In (regular) Chrome, the zoom settings remain the same when I close/open the page again
With the nativefier app, Trello opens with the default zoom settings, and I have to zoom out every time.
Is there any way to save the zoom settings so I can get them back when I open the app again?
Thanks!

Hi! It should be possible to save the state of the zoom when the app is exited

As a workaround until this feature is implemented, use --inject with a .js file like this:
document.body.style.zoom="75%";

I found that works with most apps.  Sometimes it's necessary to delay this a bit:
setTimeout(function() {document.body.style.zoom="75%";}, 3000);


bug:  stacked navigator don't work correctly

I have 4 pages and 1 menu as below:

Dashboard : routerLink="/dashboard" routerDirection="forward"

Time: routerLink="/time" routerDirection="forward"

Timesheet: routerLink="/timesheet" routerDirection="forward"

Payslip: routerLink="/payslip" routerDirection="forward"

When i click those item menu as steps:
dashboard -> time -> timesheet -> payslip.
Then i try to click the ion-back-button on these page, it navigate back well as:
payslip -> timesheet -> time -> dashboard
The problem is when i clicked the menu item as steps below:
dashboard -> time -> timesheet -> payslip -> time
It seem to remove two stacked navigator timesheet and payslip, so now i try to click ion-back-button it will ignore timesheet and payslip page. It will nevigate time page back to dashboard page. I expect the back button should return as:
time -> payslip -> timesheet-> time -> dashboard
Here is the stacked page when i clicked at payslip steps: dashboard -> time -> timesheet -> payslip

And here is stacked page when i continues to click "time" menu item again:

It's missing stacked timesheet and payslip page
I'm using the ionic@lastest. Sorry, I'm posting by my phone because my laptop have a problem i can't give more information, i will update later but i really thank you if you help me. I'm searching for 3 days. THANKS

Thanks for the issue. Can you provide a repo with the code required to reproduce this issue?


Python 2.7 Compatibility

Hi there,
Trying to get themer working under Ubuntu. Have installed python-setuptools, python-yaml & python-markupsafe, and am now encountering the following issue when calling themer generate themename image:
Traceback (most recent call last):
  File "/usr/local/bin/themer", line 4, in <module>
    __import__('pkg_resources').run_script('Themer==0.5', 'themer')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1444, in run_script
    script_code = compile(script_text, script_filename,'exec')
  File "/usr/local/lib/python2.7/dist-packages/Themer-0.5-py2.7.egg/EGG-INFO/scripts/themer", line 211
    print(msg,file=sys.stderr)
                  ^
SyntaxError: invalid syntax

Any pointers?
Cheers!

Themer is currently only working on python3... For this specific error a from __future__ import print_function should do.
Please let me know if that is the only thing that's not python2-compatible or if you can get it working just with __future__ imports. Also please try out v1.0 I am releasing in a minute.

Thanks for the swift response. Unfortunately the import wasn't enough:

Oh yeah, urllib has changed aswell. I'll try to make it compatible with python2 in the future. I still suggest you try python3 anyway, it's the future :P

Thanks anyway! I will set up virtualenv - I think many things in the Ubuntu repos still depend on system Python being 2.7.

Just have both installed and run themer with python3.
@S0lll0s You could make the shebang more specific by using #!/usr/bin/env python3.

@Airblader sounds like a good idea until (or if I don't) get around to make this 2-3-compatible.


python2 run grpc demo get exit code  -1073741819 (0xC0000005)

python2
futures       3.4.0
grpcio        1.39.0rc1
grpcio-tools  1.39.0rc1
mypy-protobuf 1.24
pip           20.3.4
protobuf      3.17.3
PyJWT         1.7.1
setuptools    44.1.1
six           1.16.0
style         1.1.0
wheel         0.37.1
run the server demo and i get error: Process finished with exit code -1073741819 (0xC0000005)

Hi, we're not supporting python2 anymore and the oldest version we support is v1.46.0, please upgrade to a newer version if possible.


High Availability of Management Server

I was curious to know, What will happen when the Management Server Fails, how we can ensure HA for the same? Also I like to know how I can size my network bandwidth for Replication.

@anas24aj Thank you for reaching out to us. Can you please provide a link to the document which you are following so that we can engage the correct team to help you.

@anas24aj Since there has been no response from you, I will now proceed to close this issue. Please raise a feedback on the respective document to get assistance.

Hi @ChiragMishra-MSFT
Sorry for the delayed response.
I was referring to https://docs.microsoft.com/en-in/azure/site-recovery/vmware-azure-architecture document to understand how I can Enable DR as a service from VMware enabeled on prem env to Azure.
I couldn't find any where mentioning about the availability of Management Server, It make me curious. as the Management Server will become a SPOF

@anas24aj Thanks for sharing the doc link. I have assigned the issue to the respective team to take a look.

Hi @anas24aj  - Really good questions. when you say "Management server" in this context, I assume you are referring to the Configuration & Process servers. Please correct if my assumption is wrong.
That said, I recommend starting with this useful content on capacity planning and scaling ASR infrastructure. It provides detailed guidance on how to determine bandwidth requirements for your replication scenario and how to scale up or scale out the configuration and process servers based on your environment and HA preference.
How you scale your servers depends on your preference for a scale-up or scale-out model. To scale up, deploy a few high-end configuration servers and process servers. To scale out, deploy more servers that have fewer resources.
Here are the specific instructions on how to scale the process servers.
We will now close this thread but don't hesitate to ping if you have any follow up questions.
Cheers,
Femi


add documentation that provides guidance / best practices

Address questions that came up in https://github.com/amzn/ion-schema-kotlin/issues/138, for example.

Resolved by e.g.: #42 #63 #74


feat(tell-us-about-project.njk): ASB-745 - changes to text around having your say

Content changes to the having your say page.

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


"npx sv create app" not working

As the title says, I cannot create a new project, when i run the command it runs for a couple of seconds and then stops, no errors or anything, it does nothing.
I tried uninstalling nvm and reinstalling it again but it did not work.
https://github.com/user-attachments/assets/b98be2f5-59a7-4de0-8b6d-8f0d651dd0d8

Does npx work for you for other packages?

Does npx work for you for other packages?

yes, i just tested it using "npx tailwindcss init"

Any chance #259 or #317 are happening to you?

Any chance #259 or #317 are happening to you?

yes it's the same issue in #317, i tried running npx sv and npx "sv" and i get the same output.
here's the output of $PSVersionTable

@ChosenDango Check if https://github.com/sveltejs/cli/issues/317#issuecomment-2536972117 resolves your issue.
Will close this as a duplicate of #317


Feature request: limit to existing files only

I keep accidentally creating new files when I actually just want to go to existing ones. I think the default switcher has a limit option so it would be nice here too!

Hi, @brimwats. Thank you for your Feature request!
Do you mean you don't want to create a new file even if Shift + Enter, right?

right—but more a toggle or something similar so that's not even an option (i.e. it just offers existing items).
or maybe a visualization if the file isn't created? like, text in red or something? I don't know what's easier, codewise! I will ask in the CSS discord channel too!

I keep accidentally creating new files when I just want to go to existing ones.

Could it be that you don't want to create a new file colored gray as follows?

They are included in files as internal links, but It doesn't create as a file.

That could help! any tips stylizing it because it doesn't stand out as much for me
as you can see:

limit to existing files only #14

LGTM! I'll implement it 👍
Until release, you can set in your CSS as follows.
.another-quick-switcher__phantom_item {
    color: your-favorite-color
}

The default is var(--text-faint) that depends on the theme you use.

thank you so much for your help!! I'll try it or tomorrow 😃

@brimwats
I have released to v3.0.0 🚀
Please confirm whether it works as you expected.

thanks so much!! I can try it out tomorrow! 😀

it works! thanks so much :)


foo-v4

/run-performance-comparison
name: microservices
firstBinaryFlags: ""
secondBinaryFlags: "--concurrent=true"
showFirstDevLoop: true

/run-performance-comparison
name: microservices
showFirstDevLoop: true


Bug on the popup of remixicon.com

while i just scrolling trough all the icon from the top to bottom of the website, i keep messing around with all the button's and then found (maybe it's a bug) or just me being overlook, the bug happend when clicking Privacy for modal to pop up, if you click multiple times quickly, it duplicating each other.
Steps to reproduce the behavior:

Go to remiixicon.com
Click on 'Privacy' at the bottom multiple times (quickly)
See error

I dont know, maybe just some typos in the code, or something make that happend, or it intentionaly do that :D

OS: Windows 10
Chrome : Version 120.0.6099.225 (Ofc Build) (64-bit)
Website Version 4.1.0

I reproduced this issue, oh my goodness, how did you discover it?

I reproduced this issue, oh my goodness, how did you discover it?

XD, because im clicking too fast when reading something on the website, and found out quite fun to discover it


Revert the R_MAX change.rs

https://github.com/open-spaced-repetition/fsrs-rs/pull/219#issuecomment-2337800477
As it turns out, previous graphs weren't accurate. So the conclusion that previous values of CMRR are undersestimates is probably not true either. Therefore, I think we should revert the change. Or we could set R_MAX to 0.96 or 0.97.
EDIT: ok, to be honest, I'm confused. I'm losing track of what data is good and what isn't, and why loss aversion is 1 in some cases but 2.5 in other cases.

Please don't revert it manually. I will revert it via GitHub's action.

why loss aversion is 1 in some cases but 2.5 in other cases.

In CMRR, the loss aversion is 2.5 to make the optimal retention higher than the minimal point.


Upgrade Tendermint version to 0.35

upgrade to 0.35
Also check out the work being done in the core and in-process Tendermint into vega core as this maybe worth doing at the same time

closing as in done


Hybrid benefit on Service Fabric

Hello,
Is it possible to use hybrid benefit on Service Fabric cluster for containers?
Thanks in advance.

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

ID: 6ef4a337-5ded-458c-9131-fee7a8fa99a6
Version Independent ID: 094498ab-3275-a114-8d47-1722c1af5388
Content: Azure Hybrid Benefit for Windows Server
Content Source: articles/virtual-machines/windows/hybrid-use-benefit-licensing.md
Service: virtual-machines-windows
GitHub Login: @xujing
Microsoft Alias: xujing-ms

Thanks for the question. We are currently investigating and will update you shortly.

@mlimache02 The FAQ doc says that the Azure Hybrid Benefit applies to the following products:
Windows Server Datacenter edition with Software Assurance
SQL Server Enterprise Core with Software Assurance
SQL Server Enterprise Core with Software Assurance
@xujing-ms Can you please help confirm on this? Thanks :)
I could only find this feedback post regarding hybrid benefit for service fabric and vmss: https://feedback.azure.com/forums/216843-virtual-machines/suggestions/33399988-hybrid-use-benefit-for-virtual-machine-scalesets

@xujing-ms  @cynthn Do you know who would be the right person to get confirmation on this?

@aljo-microsoft Is this something you can help confirm on? Thanks. :)

If you got an error while invoking an API or performing an operation (E.G. Failed to provision an SF Cluster, or failed to scale your infrastructure that host your SF cluster or application), or you are experiencing any kind of production incident; please review/acquire support options to enable us to help you be successful:
https://docs.microsoft.com/azure/service-fabric/service-fabric-support

This configuration is not for Service Fabric Resource Provider, or the SF Product:
https://docs.microsoft.com/rest/api/servicefabric/
https://github.com/microsoft/service-fabric

The referenced content is for virtual machine windows resources:
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/virtual-machines/windows/hybrid-use-benefit-licensing.md

Content for that resource:
https://docs.microsoft.com/azure/templates/microsoft.compute/2019-03-01/virtualmachinescalesets/virtualmachines
https://docs.microsoft.com/rest/api/compute/virtualmachinescalesets/createorupdate#virtualmachinescalesetvmprofile

Please include the error you received when provisioning or scaling your cluster with VMSS resources that are created with the following properties if you open a support ticket:

"properties": {
    "licenseType": "Windows_Server",
    "hardwareProfile": {
        "vmSize": "[variables('vmSize')]"
    }

If you are not experiencing an error, but just wondering what licensed host machines is SF supported to run containers on:
https://docs.microsoft.com/azure/service-fabric/service-fabric-versions
https://docs.microsoft.com/virtualization/windowscontainers/deploy-containers/version-compatibility

Giving their isn’t an actual errors with any supported user content; #please-close

@mlimache02 We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.


Buffer support [assistance]

Hello, I need to fetch images and pass them to .classify().
The images i'll be fetching have .png format.
const tf = require('@tensorflow/tfjs-node');
const fetch = require("node-fetch");
const nsfw = require('nsfwjs');
const model = await nsfw.load();
let r = await fetch(IMAGE)
let buffer = await r.buffer();
const readImage = tf.node.decodeImage(buffer)
const predictions = await model.classify(readImage)
return predictions

I used https://js.tensorflow.org/api_node/1.7.0/#node.decodePng
Because it's stated that // Image must be in tf.tensor3d format.
readImage does return:
Tensor {
  kept: false,
  isDisposedInternal: false,
  shape: [ 128, 128, 4 ],
  dtype: 'int32',
  size: 65536,
  strides: [ 512, 4 ],
  dataId: {},
  id: 4402,
  rankType: '3',
  scopeId: 2430
}

but model.classify(readImage) returns:
Error: Size(200704) must match the product of shape 1,224,224,3
What am I doing wrong?

Hiya!
The problem might be this hardcoded 3
https://github.com/infinitered/nsfwjs/blob/master/src/index.ts#L129
But to be sure I'd need to run your code to be 100 sure.
Can you try modifying this 3 to a 4 locally and see if your code passes.  If so, we can see about fixing a dynamic alpha channel in the code.
If this ISN'T the problem, I'd like you to make a small public repo so I can hunt down the bug.

@GantMan
I did try to change it to 4 but I recieved Error when checking : expected input_1 to have shape [null,224,224,3] but got array with shape [1,224,224,4].
Changed it in https://github.com/infinitered/nsfwjs/blob/master/src/index.ts#L74 as well and recieved the same error
Uhm, do I just upload the code I posted above into a repo?

You don't have to.  I didn't know if you had a nice example setup.  Like specific with URL so I could just pull down the code and try to debug.  If not, I could create one.

This is literally what I'm using :D
const nsfw = require('nsfwjs'),
    tf = require('@tensorflow/tfjs-node'),
    fetch = require("node-fetch"),
    model = await nsfw.load();

async function predict(imageURL) {
    let imageFetched = await fetch(imageURL)
    let imageBuffer = await imageFetched.buffer();
    const readImage = tf.node.decodeImage(imageBuffer)
    const predictions = await model.classify(readImage)
    return predictions
}

await predict('https://4al52k24l8r51wpym5i46ltd-wpengine.netdna-ssl.com/wp-content/uploads/sites/2/2020/02/GettyImages-1199242002-1-1024x576.jpg')

Node: 12
nsfwjs: 2.1.0
@tensorflow/tfjs-node: 1.7.0

Hi @lateiskate and @GantMan, I know is a little bit late response but I had the same problem so the way that solved (I don't know if is the best solution) is using a lib sharp to convert the png buffer to jpg.
I think the problem is when use tf.node.decoImage(buffer) that will return tf.Tensor3D or tf.Tensor4D but the method infer() use tf.Tensor3D so I tried to cast decodeImage() as Tensor3D but didn't work.

@lateiskate I'm going to close this issue for now as it's been a while since a possible solution was provided. We'll gladly reopen this issue if you'd like us to. Thanks!


New errors with RxJS on insiders version

When using the latest TS insiders and RxJS versions, I get a new error that I didn't have before upgrading to using the insiders version.
You may already be aware of this—it is an insiders build after all—but thought I should point it out just in case.
❯ yarn list typescript
└─<EMAIL_ADDRESS>
❯ yarn list rxjs
└─<EMAIL_ADDRESS>
❯ tsc
node_modules/rxjs/Subject.d.ts(16,22): error TS2415: Class 'Subject<T>' incorrectly extends base class 'Observable<T>'.
  Types of property 'lift' are incompatible.
    Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'.
      Type 'Observable<T>' is not assignable to type 'Observable<R>'.
        Type 'T' is not assignable to type 'R'.

CC @benlesh. This is actually a bug that's been caught. Subject<T>#lift<R> should be producing an Observable<R> but has always been producting an Observable<T>

@OliverJAsh There was a long debate about this in reactivex/rxjs#1234. It's always seemed to me like the bug is in rxjs, in that that override in Subject shouldn't be there in the first place.

So since then the signature has been changed to this.
I don't understand why back then it wasn't just
lift<R>(operator: Operator<T, R>): Observable<R>

and it looks like the compiler finds the current signature (i.e. the following)
lift<R>(operator: Operator<T, R>): Observable<T>

to be questionable as well.

@DanielRosenwasser The problem is that they've been trying to use Subjects in a way that is fundamentally type-unsafe. I don't know if anything's changed in the year since that discussion happened, but in terms of the actual JS they want a Subject<T>, when transformed by an operator that takes Ts and produces Rs, to still produce a Subject (one that forwards all its values to this), instead of an Observable<R>. The reason they want to do this has something to do with two way communication in the websocket subject implementation.
None of this makes sense from the type system perspective, because it only makes sense to define lift for Observables. It just so happens that a Subject<T> is also an Observable<T>, but its implementation of lift<R> should be no different. The only sensible fix (and one which mirrors how the types are defined in Java/.NET, is to just delete this method and revisit what is going on in the websocket code). There's more details in the issue I linked, but the way they are using subjects can mask runtime bugs.

Thanks for the explanation @masaeedu!
Couldn't this be solved by creating a TypeUnsafeSubject or something that lifts to Observable<any>?

CC @david-driscoll

I just saw this will be fixed for RxJS 6.0 thanks to https://github.com/ReactiveX/rxjs/pull/2540 (@hearnden).

Hi there, is the solution in the meantime to not go to Typescript 2.4? Thanks

@AneelaBrister Typescript version 2.3.4 seems to continue to work.

What's the workaround here?

using typescript 2.3.4 or rxjs 6 alpha
npm install<EMAIL_ADDRESS>

Using typescript 2.3.4 worked. rxjs 6 alpha gave an unmet peer dependency with angular/router

I uninstalled typescript 2.4.1 and installed 2.3.4, it was resolved.

rxjs 6.0.0-alpha.0 still won't fix it for me, I'm still getting:
ERROR in [at-loader] ./node_modules/rxjs/Subject.d.ts:16:22
    TS2415: Class 'Subject<T>' incorrectly extends base class 'Observable<T>'.
  Types of property 'lift' are incompatible.
    Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'.
      Type 'Observable<T>' is not assignable to type 'Observable<R>'.
        Type 'T' is not assignable to type 'R'.

I've used typescript 2.4.0 with rxjs 5.4.1 and that works fine.

@floodedcodeboy I just tested typescript 2.4.1 and rxjs 5.4.1, to no avail:
❯ npm list typescript
├──<EMAIL_ADDRESS>
❯ npm list rxjs
├──<EMAIL_ADDRESS>
❯ tsc
node_modules/rxjs/Subject.d.ts(16,22): error TS2415: Class 'Subject<T>' incorrectly extends base class 'Observable<T>'.
  Types of property 'lift' are incompatible.
    Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'.
      Type 'Observable<T>' is not assignable to type 'Observable<R>'.
        Type 'T' is not assignable to type 'R'.

Sounds like the only solution is to upgrade to rxjs 6 alpha.

<EMAIL_ADDRESS>and typescript 2.3.4 worked for me.

@sflemingDCP This issue is specifically about using rxjs with TypeScript 2.4.x.

@OliverJAsh incorrect ... if you had read my post correctly ... I referenced 2.4.0 ...  not 2.4.1 - make sure your package.json file references 2.4.0 exactly - not ^2.4.0 or ~2.4.0 which will upgrade you to 2.4.1

@floodedcodeboy You're correct. 2.4.0 works but 2.4.1 does not. I will update the issue title.
Confusingly, the releases page lists 2.4.1 as "2.4":

Confusingly, the releases page lists 2.4.1 as "2.4"

It isn't confusingly in as much as every minor release of TypeScript has followed that pattern for an extended period of time.  Because of some internal challenges, from what I understand, #.#.0 will never be the final release of a version of TypeScript.  The first patch public release will always be #.#.1 and tagged appropriately in npm.

Is it not be possible to simply override the type definition to ignore this error?
Upgrading to an alpha release does not seem like an ideal fix, in particular because I am not sure that our current dependencies truly support that, Angular 4 in particular. Just hope that RxJS 6 will release soon-ish so libraries such as Angular can incorporate it as the supported version. In the case of Angular that would happen either in the next major release scheduled for September or at the worst case the major release after that, around March 2018.
So I think not fixing this in another way could have a pretty tangible effect.

As others have already pointed out, at least until this issue is fully resolved, being precise about which version of TypeScript and RxJS you specify is crucial for working around this issue, especially for Angular-CLI apps.
The relevant entries in my package.json are shown below. Notice the absence of any ~ or ^ characters in the version number:
    "dependencies": {

       "rxjs": "5.4.1"

    }

    "devDependencies" : {

        "typescript": "2.4.0"

    }

My app was generated using Angular-CLI 1.1.3

The issue in the RxJS repo: https://github.com/ReactiveX/rxjs/issues/2539

Replaced typescript from ^2.4.1 to 2.4.0 worked for me

Discussed here as well https://github.com/Microsoft/TypeScript/issues/16777

Thanks @floodedcodeboy . Your solution worked for me.

 Sorry for the inconvenience.

Why not use an augmentation to resolve this. The following works with<EMAIL_ADDRESS>// augmentations.ts
import {Operator} from 'rxjs/Operator';
import {Observable} from 'rxjs/Observable';

declare module 'rxjs/Subject' {
  interface Subject<T> {
    lift<R>(operator: Operator<T, R>): Observable<R>;
  }
}

@claudiuconstantin im having the issue. still getting error TS2415 for Subject and WebSocketSubject with typescript 2.4.1 even after updating rxjs to 6.0.0-alpha.0

edit: may be a result of unmet peer dependencies?

Unmet peer dependency errors in this instance just means that those angular dependencies require RxJS 5.0.1 or higher, but below 6. Angular could still work with RxJS higher than they have specified, as they often work with higher versions of TypeScript. But I think you're always at risk of some part of Angular not working or an arbitrary patch or minor version update breaking your build.
So use the solution proposed by @aluanhaddad  instead, unless you for some other reason want to use the next version of RxJS already.

@aluanhaddad, nice work, all good if you directly use rxjs in your project. What if a certain package in your project also uses the "bad" rxjs? You'll also get the error from there and until the maintainer fixes the problem you're stuck. Any workaround for that?

@claudiuconstantin If another dependency directly depends on it, i.e. not just a peer dependency, you have RxJS in your project the same way you have it if you depended on it directly. So the augmentation should work just as well.

fyi the fix already landed on RxJS 5.4.2 (changelog), you can either close this issue or leave it open.

@DanielRosenwasser @OliverJAsh FYI: This was resolved with the release of rxjs 5.4.2, and this issue can be closed.
All: rxjs 5.4.2 resolves this issue.
Either way, this issue can be closed as it was a bug in rxjs, not TypeScript.


as collaborator, signing the CLA does not get tracked

I am a collaborator with https://github.com/mholt/caddy. I have signed the CLA for a PR, and then for the entire project and I still cannot push to master due to:
$ git push mholt master

# …
remote: error: Required status check "licence/cla" is expected
To git@github.com:mholt/caddy.git
 ! [remote rejected] master -> master (protected branch hook declined)
error: failed to push some refs to 'git@github.com:mholt/caddy.git'

I suspect that this is due to me being collaborator number 75 (due to paging?) and/or cla-assistant not having copied me to its database.
My expectation is that my git pushes don't get rejected by status check "licence/cla".

this issue seems not to be related to CLA assistant but to the GitHub feature "protected branches"
https://help.github.com/articles/about-protected-branches/
It looks for me like you have no push rights for master yet... could it be the reason?

CLA assistant only sets a status on commits of PRs. Even if we would set the status on commits of a given branch (e.g. like travis), you could only push to a protected branch once that commit was already pushed to another branch and the status has passed.

Thanks for looking into this!


Buttons on agent page are different from all the other buttons

Is there a reason for this?

Well that was a @

Well that was a @broham89 suggestion. Given that there doesn't exist an agent's list screen, the edit and delete are over there

I'm thinking the edit should exist when an agent, intent, or domain is already created and set. When the user wants to go back and open the agent, intent, or domain then edit would appear. Delete button should always appear any process. If it's the first time creating an agent, intent, or domain then only the Create button and Delete button should appear next to each other.

@broham89 maybe in 2.0 we should make agent's consistent with domain and intents and have a list screen.
Either way I am fine with this one staying this way until we go to the new UI.


Auto install/update PowerShell Module

Added function

To import missing PS module
Automatically update PS Module versions

@sreedharande we might take a different approach and just fails if the module isn't there with the use of a #requires statement.
I'll do some check with #requires and if that's satisfactory, I'll close this PR. If not, I'll merge it.

Please @briandelmsft and @sreedharande, check #420 and let me know there what you think.

I believe the management of the PowerShell environment falls under the purview of the operators, not this project.
The script now checks if the modules are installed and suggest the command to install them.
Installation of module might also require additional privilege on the OS of the operators which outside of the scope of this project.


initialize CodahaleMetricsProvider at runtime

Native-Image reports, that CodahaleMetricsProvider should be initialized at runtime.
Error: Class initialization of org.apache.cxf.metrics.codahale.CodahaleMetricsProvider failed. This error is reported at image build time because class org.apache.cxf.metrics.codahale.CodahaleMetricsProvider is registered for linking at image build time by command line Use the option --initialize-at-run-time=org.apache.cxf.metrics.codahale.CodahaleMetricsProvider to explicitly request delayed initialization of this class.

@knuspertante thanks for the contribution! However it is hard to accept this as is without a test. Would you perhaps find any time to write one? There are some hints in https://github.com/quarkiverse/quarkus-cxf/issues/504 and you could also take some inspiration from other existing integration tests in https://github.com/quarkiverse/quarkus-cxf/tree/main/integration-tests

Thanks again, for your contribution @knuspertante! I finally found some time to write the test and also polish the documentation: https://github.com/quarkiverse/quarkus-cxf/pull/932 Would you like to review?


[Enhancement] Set Device Names via msg.something

Hey fellinga,
this is a really nice extension to my palette. Helps to conveniently control some devices in my house. Thanks for your contribution!
I was wondering whether it would be possible to allow the setting of device names via an input message, like f.e. msg.device1 or so. The names of my devices are rather short. Which leaves a lot of "real estate" on the dashboard next to the device name without any information. And I am inclined to fill it with something useful :)
Please treat this as an idea and not a request. I am already really really happy with your contribution as is 👍

Hi @jodelkoenig,
this idea has come up (in different variations) a couple of times now but unfortunately it is not easily doable without breaking backwards compatibility. It is not off the table but I am going to close this issue with a reference to #28. If it happens then very likely in a v2.x.x.


Fix name of MacOS release

@alrocha @BalestraPatrick

@polac24 copy & paste error. Amd64 is the convention in Linux, x86_64 is the one used by Apple in macOS. What would they use for Apple silicon? arm64 like in iOS?


Telemetry items

Placeholder issue for visibility.
Telemetry work details to be shared privetly elsewhere.

Work items that were shared privately were completed. A separate item should be opened for further telemetry work


Refactor: Global app "back button" navigation

Related discussion →
Current solution is problematic in that Container component is home to all global app "What does back button do" logic. This is quickly growing in to a huge "do everything" function.
We should find a solution that colocates the back behaviour to the feature that has the back button (even if the button itself is in a generic header component). As a developer, if I need to modify back button logic for swap feature, I expect to see that logic in the swap feature.
One idea is to decouple the back events using the PubSub pattern, but any solution that can move this logic outside of Container would be an improvement.
Suggest @pete-watters or @fbwoolf for this

I've been working on improving this as part of an overhaul of containers in https://github.com/leather-io/extension/pull/5619.
A solution I came up with there is to wrap pages in context - PageHeaderContext  and then use that to update the onBackLocation.
Pages that need this custom location are ones where we have the combination of:

nested routed dialogs
a back <- navigation in the header

Without providing this custom back location in these instances it can result in a loop of re-opening the routed dialog.
For example in Swap:

Go to swap/STX/
Choose an asset which opens the dialog and goes to swap/STX/select-base
Close the dialog

If in this case we use navigate(-1) it will re-open the dialog as that was the previous page opened. We could use navigate(-2) but we still need to dynamically tell the header about that so instead I have updated the page header context to have an onBackLocation of RouteUrls.Home
useUpdatePageHeaderContext({ title: 'Swap', onBackLocation: RouteUrls.Home });

This refactor was completed in https://github.com/leather-io/extension/pull/5715


options.shared=false should be default option

Lot of people should use this to cache on their own servers and not mean to use this as shared cache. Probably the shared=false should be default for this library.

What do you think of this @kornelski

No, the choice of shared is deliberate, because it's safer — you don't risk mixing up private data.

Ok.


Home Assistant 0.36: Schlage Connect lock slider always thinks the lock is locked.

Home Assistant release (hass --version):
0.36
Python release (python3 --version):
3.4.2
Component/platform:
Raspberry Pi 3 running Raspbian Jessie Lite
Description of problem:
Schlage Connect deadbolt does not lock when clicking the UI toggle/does not update lock state correctly when lock is unlocked (it will show that the lock is locked).
Expected:
Schlage Connect deadbolt locks when clicking the UI toggle and updates the lock's state.
Problem-relevant configuration.yaml entries and steps to reproduce:
Honestly not sure which parts, if any, of the configuration.yaml is relevant. I can update upon request however.

Schlage Connect lock is unlocked
Click ui toggle control for lock

Additional info:
This only started happening on version 0.36. I have confirmed that this works when downgrading back to 0.35.
I think the front end ui isn't updating for some reason. If I send the commands manually via the lock.unlock domain/service on the services page, it will lock/unlock just fine. When I click the button it also shows the following post request:
http://pi_ip:8123/api/services/lock/unlock
So it's sending an unlock command and does nothing since the lock's already unlocked. But the slider still says it's locked.
If you need any more information let me know and I'll get it to you as soon as I can.
Thank you.

Can you enable logger for homeassistant.components.lock.zwave: debug
That will give you some more info from HA log.

Oh, hang on, There have been improvements on this in the dev branch, could you test that?

Have same issue while running 0.36.1. The lock status always shows as locked in UI and on slider. As mentioned, calling the service directly to lock or unlock works as expected.

I am having the same issue as reported above. However, I have two different Schlage locks in my home and only one of the two experience this problem. My Schlage FE599NX reports it's state to HomeAssistant and updates the UI toggle just as you would expect. My Schlage BE469NX unlocks/locks via service and will unlock via UI toggle, but the state reported in HomeAssistant is always "locked".

Have this problem also, in 0.37.0.dev0, and 0.36.1.
Specific lock/unlock service calls work fine. Turned on zwave debug logger. The only thing that stood out to me was after lock or unlock service calls, I would see this repeated 3-4 times:
DEBUG:homeassistant.components.lock.zwave:Lock state set from Access Control value and is 1
DEBUG:homeassistant.components.lock.zwave:Lock alarm_level is 0

Looks like 0.37 just got released. I am assuming this will be identical to 0.37.0.dev0 in that this bug will carry through to this release. I have not yet upgraded to see if this issue is fixed. Does anyone want to take the leap and potentially save me 15 minutes?

Same issue in 0.37


Homework 2: Software architecture

Prepare a description of the planned software architecture, include

[ ] An overview diagram of runtime components (one page)
[ ] An overview diagram of code components (one page)
[ ] A summary of the underlying technology stack (one page)
[ ] A textual explanation of the diagrams and choices (one page)

Definition of Done

Uploaded in documentation folder
Uploaded in deliverables folder

https://www.figma.com/file/phTjB28fNUrzYSoKDeRDdp/Pipeline-Manager?type=whiteboard&node-id=0-1&t=PJBLRm6fO2lgusM9-0

Here is the architecture example proposed by the Industry Partner in the first meeting:

There also exists a drawio file (see in slack channel)

@eubec I am closing this issue as it has been finished and archived


Fix #64379 - SimpleFindWidget position was changed (in hidden state)

SimpleFindWidget position was changed (in hidden state) for shadow hiding

There is a box shadow too long. I just changed position for hodden box and problem was solved.

@Tyriar, ok, What do "branch off" mean?

@marchenko-am the release/1.30 branch was just created based off master, that's the one that will be released. Now we can merge in stuff for 1.31 🙂


[Incremental Ingestion Backend] We shouldn't commit when there are no entities

Incremental Ingestion Backend should only attempt to insert marks when there are entities to mark. In our close source version, we added the following code
    if (entities.length > 0) {
      await tx('ingestion.ingestion_mark_entities').insert(
        entities.map(entity => ({
          id: v4(),
          ingestion_mark_id: markId,
          ref: stringifyEntityRef(entity.entity),
        })),
      );
    }

What effect does this if statement have? My surmise would be none, so I'm surprised by it. It wouldn't be the first time knex did something counter-intuitive though.

It throws a query error when you try to insert no data.

I see. This should only happen on the very first page, and when the ingestion is done. If these two conditions are not met, then it is very likely a bug in the provider. Should be a warning at the very least.

When we're paginating two cursors at the same time, there can be lots of pages where there are no results. For example, we have this use cases today when ingesting all repositories from all organizations. We paginate through one organization at a time, for each organization we paginate through its repositories. There are some organizations that don't have repositories, in this case, we would have no entities to commit for one of the pages.

It's a bit of a mind fook.

Previously we had:
for (const entity of entities) {
      await tx('ingestion.ingestion_mark_entities').insert({
        id: v4(),
        ingestion_mark_id: markId,
        ref: stringifyEntityRef(entity.entity),
      });
    }

It doesn't commit if entities is empty. So the only difference with closed source code it does insertion in one transaction

I see. Very interesting.

It's a bit of a mind fook.

Hmmmm....This has me thinking. Essentially, it sounds like the situation is that our stream is an OUTER join between GitHub organizations and repositories, which means that it contains a lot of "null" values. However, what would make our implementation simpler, is if we could somehow process it as an INNER join, which would be being able to somehow compose incremental ingestion streams. Very hand-wavy, but an avenue of research to explore for ingestion / catalog 2.0


findAllComponents() is not a proper substitute for findAll()

Feature Description
wrapper.findAllComponents() should Take CSS selectors as an argument.
Well maybe I'm doing something wrong by not throwing refs on every tiny element in my component or making sub components out of every div, but how can I safely test the amount of elements rendered to a list by referencing their class selector when I should not be using the findAll() method anymore?
Am I missing something (which is definitely not unlikely)? If not, this feature would be well appreciated.
Problem
wrapper.findAll()  Has a deprecation warning, the suggested substitute wrapper.findAllComponents() does not cover the functionality.
Expected behaviour
As described in the Feature Description
Alternatives
An additional wrapper.findAllElements() function.

Hi! As stated in Update docs, you can use find/findAll on DOM nodes using the querySelector syntax. On the other hand, findComponent and findAllComponents accept a component reference/instance.
So it is likely that findAll would suit your needs.
Hope it helps!

@afontcu thanks for your answer but as I described:  "findAll() Has a deprecation warning", so I would like to avoid using it on new projects.

Hi!
The deprecation warning is only about using findAll to find all Components, not to find all DOM elements.

 Thank you for your help.

Why do the docs here state that you can pass a selector to findAllComponents?
https://v1.test-utils.vuejs.org/api/wrapper/findallcomponents.html


Update README.md

[ ] My submission is formatted according to the guidelines in the contributing guide
[ ] My addition is ordered alphabetically
[ ] My submission has a useful description
[ ] The description does not have more than 100 characters
[ ] The description does not end with punctuation
[ ] Each table column is padded with one space on either side
[ ] I have searched the repository for any relevant issues or pull requests
[ ] Any category I am creating has the minimum requirement of 3 items
[ ] All changes have been squashed into a single commit

Hi @someguy9
Thanks for your contribution ;)
We have some problems with Public APIs, so we won't be able to review/add this improvement right now.
Read this issue for more information, please: https://github.com/public-apis/public-apis/issues/3104


Sunset time based on current location

On reddit you mentioned that you're planning on doing this at some point but I was just wondering is it similar to the tehran_sunset function but just needs to be passed the lat/long of the location and then converted to local timezone?

That's exactly correct.  The biggest hurdle I see is getting those
coordinates.  I would like auto-complete location field for you to
specify your city.  I don't want something heavy-weight like google
maps, or dealing with actual addresses.  Something like this should
already exist, and I don't want to re-invent the wheel, but I can't find
anything.  As a last resort it wouldn't be too hard to write on our
own.  Do you have any interest in looking into this?
I'm thinking that there will be an "options" panel that will include
this location field, and options about how the dates are displayed, and
so forth.
On 05/02/2015 07:43 PM, Abdullah Norozi Iranzad wrote:

On reddit you mentioned that you're planning on doing this at some
point but I was just wondering is it similar to the |tehran_sunset|
function but just needs to be passed the lat/long of the location and
then converted to local timezone?
—
Reply to this email directly or view it on GitHub
https://github.com/bchurchill/badi-cal/issues/2.

I just tested the following code in Safari, Firefox, Chrome, IE10, IE11 and they all returned latitude and longitude:
function requestLocation(){
  navigator.geolocation.getCurrentPosition(requestLocationSuccess,requestLocationError, {
         enableHighAccuracy: true,
         timeout : 5000
    });
}

function requestLocationSuccess(position){
  console.log('latitude ' + position.coords.latitude,'longitude ' + position.coords.longitude)
}

function requestLocationError(error){
  console.log(error)
}

To display the city name that matches is easy enough to ping Google Maps with the lat and long i.e.
function requestLocationSuccess(position){
  console.log('latitude ' + position.coords.latitude,'longitude ' + position.coords.longitude)
  var xmlhttp=new XMLHttpRequest();
  xmlhttp.onreadystatechange=function(){
    if (xmlhttp.readyState==4 && (xmlhttp.status==200 || xmlhttp.status==0)){
      var result=JSON.parse(xmlhttp.responseText);
      console.log(result.results[1].formatted_address);
    }
  }
  xmlhttp.open("POST","http://maps.googleapis.com/maps/api/geocode/json?latlng="+position.coords.latitude+","+position.coords.longitude+"&sensor=false",true);
  xmlhttp.send();
}

In terms of the demo site having an autocomplete for the list of countries something from here would most likely be all that's needed http://stackoverflow.com/questions/2401822/free-country-city-suggestion-list-database
So in theory all we would need is a function that takes the lat/long values and returns the time right? So can we change the tehran_sunset function into something more generic?

I'm not too excited about navigator.geolocation because it can easily
get the wrong place.  For example, if someone is using a VPN or on a
mobile phone, it will often be confused.  Or sometimes, the ISP is just
in a different location than the browser for another reason.
I liked the stack overflow suggestion of using one of these databases
along with a jqueryui autocomplete field (I already have the jquery UI
dependency, so it seems like a natural thing to do).
Yeah, we can replace tehran_sunset with a function that takes in
latitute and longitude coordinates and plugs them into the obvious
spot.  Then we can implement tehran_sunset in terms of that function and
leave the code calling tehran_sunset the same.  Sound good?
On 05/03/2015 05:19 AM, Abdullah Norozi Iranzad wrote:

I just tested the following code in Safari, Firefox, Chrome, IE10,
IE11 and they all returned latitude and longitude:
|function requestLocation(){
navigator.geolocation.getCurrentPosition(requestLocationSuccess,requestLocationError, {
enableHighAccuracy: true,
timeout : 5000
});
}
function requestLocationSuccess(position){
console.log('latitude ' + position.coords.latitude,'longitude ' + position.coords.longitude)
}
function requestLocationError(error){
console.log(error)
}
|
To display the city name that matches is easy enough to ping Google
Maps with the lat and long i.e.
|function requestLocationSuccess(position){
console.log('latitude ' + position.coords.latitude,'longitude ' + position.coords.longitude)
var xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange=function(){
if (xmlhttp.readyState==4 && (xmlhttp.status==200 || xmlhttp.status==0)){
var result=JSON.parse(xmlhttp.responseText);
console.log(result.results[1].formatted_address);
}
}
xmlhttp.open("POST","http://maps.googleapis.com/maps/api/geocode/json?latlng="+position.coords.latitude+","+position.coords.longitude+"&sensor=false",true);
xmlhttp.send();
}
|
In terms of the demo site having an autocomplete for the list of
countries something from here would most likely be all that's needed
http://stackoverflow.com/questions/2401822/free-country-city-suggestion-list-database
So in theory all we would need is a function that takes the lat/long
values and returns the time right? So can we change the tehran_sunset
function into something more generic?
—
Reply to this email directly or view it on GitHub
https://github.com/bchurchill/badi-cal/issues/2#issuecomment-98474847.

In terms of the app I'm working on I am using navigator.geolocation + google maps api to get the location and then prompt the user if its correct or not. If not, they can enter it in settings and I'll use that :)
In terms of the site though you could do something similar or just use the autocomplete field (I can help you if you want) either way I think your suggestion sounds good :)

Sorry I've been busy and haven't been working on this.  Are you interested in taking the initiative to put something together?

For sure. Would you like me to just add the support in Badi.js or also add the picker etc to the website?

As much as you like :)  It would be great if you could do the picker on
the site too -- I haven't been able to find a good source of
latitude/longitude coordinates for cities that I like.
On 06/01/2015 04:35 AM, Abdullah Norozi Iranzad wrote:

For sure. Would you like me to just add the support in Badi.js or also
add the picker etc to the website?
—
Reply to this email directly or view it on GitHub
https://github.com/bchurchill/badi-cal/issues/2#issuecomment-107408992.


Closing this issue.


Model inference does not work well with the changed code.

I used efficientdet-d1.h5 model.
In the changed code, the values of boxes, scores, and labels become [-1, ..., -1].
How can I solve this problem?

@km23630 , you may use the old one, the weights link has been updated.

@xuannianz
I used the latest code(commit 54) and weight(efficient-d1.h5).
The problem is not solved.
Why is that?

I tried several model_weight (coco D0, D1 and pascalVoc weight)
All [-1, ..., -1] create arrays.
I want to know how to solve the problem.

@km23630 ,did you modify anything? How about downloading the code at another place and testing?

@km23630 ,did you modify anything? How about downloading the code at another place and testing?

I used this weight to inference and match all package versions.
The old (before sync) code still works fine.
It could be an environmental issue, so I tried it in a new environment, but the results were the same.

let me know your dev environment plz

I am using tf 2.1 now, but I have tested under tf 1.15, it works well.

thanks!
The problem was solved after complying with all requirement.txt on the new development environment!


ring stick up cams

how would one add the stick up cams as another recognized motion device?

i'm looking at https://github.com/homespun/homebridge-platform-ring-video-doorbell/pull/9 and i think it's a good start, but i suspect it will also break support for the doorbot. based on your PR, i am revising index.js to handle both cases (using a parameterized approach rather than a cut-and-paste approach. details in a bit.

@thechrisreese - check out the current version 0.2.8 and see if it works for you... thanks!

@mrose17 works perfectly. And now my automations are doing what I wanted.

great!


The Settlers 3 History Edition, Black Screen when playing intro or other videos

I have Ubisoft Connect version of Settlers 3 History Edition running on Windows 10
I tried DDrawCompat v0.5.1, but when game start its show black screen.
I wanted to use DDrawCompat v0.5.1 to customize settings, but in both cases with default settings and customized ones, the videos show black screen when played. You can still hear audio playing though.
The Settlers 3 History Edition comes with its own small ddraw.dll wrapper on which videos work fine. But I wish to use DDrawCompat v0.5.1 to customize settings.

Is this still an issue with v0.5.2? I only have the GOG version, but it didn't have problems with the video even with v0.5.1.

Yes, the problem still exits in 0.5.2, but now the game crashes (exits) after video playback.
There is black screen during video playback (sound only), then few seconds of black screen, then game's main menu flashes briefly and game exits to desktop.
Basically, same as here: https://github.com/narzoul/DDrawCompat/issues/302

Please check if the patched version here fixes either the crash or the intro videos: https://github.com/narzoul/DDrawCompat/issues/299#issuecomment-2094226964
If not, please upload the debug logs with it (set LogLevel=debug in DDrawCompat.ini).

Is it any better with v0.5.3?


Adding GetResponse Provider

LGTM, a bit old but this looks to be functional. thanks @schaitanya for the PR!


Development in firefox instruction

I was having trouble running this in dev mode in firefox.
Loading worker.js will fail with SyntaxError: import declarations may only appear at top level of a module
This is because firefox does not support worker modules by default
Fix / Workaround
If you wish to run this in dev mode in firefox
you will have to enable it manually via about:config and set dom.workers.modules.enabled to true

This was added in firefox111 if you have older version this may not work

Add this in README.md for people using firefox.
You can assign it to me, and I can raise a PR.

Just to clarify, you mean you are unable to run the dev server (using npm run dev)? I have tested the demo app in Firefox and it does seem to work.
Is this perhaps a known issue with vite's development mode?

Yes , you won't be able to run the app in firefox when using the command npm run dev but it will run fine once it's build.
No i am not  referring to "Firefox Developer Edition"

Okay I see, thanks for pointing that out! I just tested and you're right. 👍 Please feel free to make a PR with the note under step 2.

can we run whisper-large-v3-turbo


Move reuse dependency to requirements.txt file

Another cleanup after #4539 to pin the dependency of the reuse tool.

coverage: 99.634%. remained the same
when pulling e90d90fa44a432820275c5a9d2d87fab61edee6c on reuse
into 677e19e39ce775ac89e5831b0e26d93598c8883a on develop.


preview show object at center, but the output object is not at center

Trying to take picture of an object locate to center of screen, but the picture taken show the object is more to left.
Anyone can help ?

Any chance you can post screenshots and image?
Your camera layout may help as well.
Regards

In AutoFitTextureView class
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
int width = MeasureSpec.getSize(widthMeasureSpec);
 int height = MeasureSpec.getSize(heightMeasureSpec);
if (0 == mRatioWidth || 0 == mRatioHeight) {
setMeasuredDimension(width, height);
} else {
if (width > height * mRatioWidth / mRatioHeight) { <======= this line
setMeasuredDimension(width, width * mRatioHeight / mRatioWidth);
} else {
setMeasuredDimension(height * mRatioWidth / mRatioHeight, height);
}
}
 }
i know wats the problem that cause the picture not in center. Its because i changed
if (width < height * mRatioWidth / mRatioHeight) {
to
if (width > height * mRatioWidth / mRatioHeight) {.
but if i change change back to  if (width > height * mRatioWidth / mRatioHeight) {.
i would not get a full screen preview. any help ?

Of you don't get a full screen preview might be because of the ratio chosen for the AutoFitTextureView, if the ratio chosen is 4:3 and your phone has a 16:9 screen, you must get a black area in the Camera preview, if you don't get a Black area, the preview must look stretched(of the ratio chosen was 4:3) one way to see that might be with your native camera application, if you change the ratio you will notice a black area.

hi @GuanacoDevs , the ratio chosen is 16:9 in my case.
this is a sample of the preview.

Can't really tell, but to me it seems like your picture is stretched.
Would you mind posting your layout, if your AutoFitTextureView is set to match_parent it will stretch a 4:3 to 16:9
You can check my comment in #113

hi @GuanacoDevs

<com.example.android.camera2basic.AutoFitTextureView
    android:id="@+id/texture"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentStart="true"
    android:layout_alignParentTop="true" />

<FrameLayout
    android:id="@+id/control"
    android:layout_width="match_parent"
    android:layout_height="112dp"
    android:layout_alignParentBottom="true"
    android:layout_alignParentStart="true"
    android:background="@color/control_background">

    <Button
        android:id="@+id/picture"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:text="@string/picture" />

    <ImageButton
        android:id="@+id/info"
        android:contentDescription="@string/description_info"
        style="@android:style/Widget.Material.Light.Button.Borderless"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical|right"
        android:padding="20dp"
        android:src="@drawable/ic_action_info" />

</FrameLayout>

above is my xml layout.
And the width and height of setMeasuredDimension() in AutoFitTextureView is 1920 1080, or 1080 1920

@LtotheWT I don't really use relative layouts but I'd think that maybe, maybe that's why you had the issue in your very first post, because I think that the preview was/is being aligned to the top left of the screen.
I would go
android:layout_centerHorizontal="true"
instead of
android:layout_alignParentStart="true"
I still believe that from chooseOptimalSize you are getting a 4:3 ratio previewSize, if that's the case, I'd expect to see a black frame on the bottom, but if you only want to get a 16:9 ratio you'll have to modify chooseOptimalSize for that.
Sorry I can't help anymore
Regards

thx for help @GuanacoDevs


isRequired text questions allow user to enter just whitespace

Are you requesting a feature, reporting a bug or ask a question?
Bug (or is there an alternative way of validating this without having to write extra javascript?)
I tried using regex validator on the question but could not get it to fire correctly for answers that only contain spaces.
What is the current behavior?
If the users enters 1 or more spaces as their answer to a question that has isRequired = true, the answer is valid.
What is the expected behavior?
Since the survey results are trimmed, I would expect this answer to trigger the isRequired validation.
How would you reproduce the current behavior (if this is a bug)?

Create a question of input type "text"
Change it's isRequired flag to true
Run the survey
Enter "   " (one or more spaces) for the answer to the question
Complete the survey.
The survey results contain the answer to the question as a single space char. No validation message is show for the question so prompt the user that they have not filled it in.

Specify your

browser: Chrome
browser version: 58.0.3029.110 (64-bit)
surveyjs platform (angular or react or jquery or knockout or vue): jquery
surveyjs version: 0.12.18

@bjdani Yes, it is a bug and I have fixed it.
Thank you,
Andrew

Hi Andrew,
Thank you! Any estimate on when that will make it into the next release?
Thanks,
Bruce

Sure, We will release it on Friday or more likely early next week.
You may use dev version for a while if it is urgent: https://github.com/surveyjs/builds
Thank you,
Andrew


Sync Metadata error

I found out i got an error when i try to do sync metadata for the first time after installing.
Can you help me find out what caused the error? I am relatively new to GCP and Spark
below is the error message i got.
Caused by: com.google.cloud.spark.bigquery.repackaged.com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
POST https://bigquery.googleapis.com/bigquery/v2/projects/unique-well-442507-t9/jobs?prettyPrint=false
{
"code": 400,
"errors": [
{
"domain": "global",
"location": "q",
"locationType": "parameter",
"message": "Syntax error: Expected end of input but got "-" at [2:42]",
"reason": "invalidQuery"
}
],
"message": "Syntax error: Expected end of input but got "-" at [2:42]",
"status": "INVALID_ARGUMENT"
}

Issue was invalid BQ query. Closing.


P2

Summary

Change Type

Check List Before Merging

[ ] This PR passes all pre-commit hook validations.
[ ] This PR is fully tested and regression tests are included.
[ ] Relevant documentation has been updated.

Additional Information

Codecov Report
Attention: Patch coverage is 41.66667% with 42 lines in your changes missing coverage. Please review.

Project coverage is 44.08%. Comparing base (cb4d453) to head (9963f55).
Report is 1 commits behind head on main.

Files with missing lines
Patch %
Lines

machinery/phases.go
0.00%
33 Missing :warning:

machinery/results.go
75.00%
7 Missing :warning:

machinery/validation/revision.go
0.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
- Coverage   45.71%   44.08%   -1.64%
==========================================
  Files          14       15       +1
  Lines         945      980      +35
==========================================
  Hits          432      432
- Misses        468      503      +35
  Partials       45       45

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Writing internal algorithm information to the system log

As a Pipeline Builder I want that HKube will enable the algorithm to add internal information to the sytem log, so I'll be able to identify and diagnose the source of pipeline/ algorithm problems.
User Story implementation details:
The information written to the system log will include the following:

General pipeline details, see #89
Event description: internal algorithm information

TID-140


importing redux-devtools/lib/react breaks hot reloading

If I import redux-devtools/lib/react in a project, even if it's not used, hot-reloading no longer works. It happens for all files, and I've entirely disabled the DevTool component as well as the devTool middleware, so the only reference to redux-devtools is an unused import. I'll try to gather more information, but here's the warning from Webpack:
[HMR] Cannot apply update. Need to do a full reload!
dev-server.js:19 [HMR] Error: Aborted because 198 is not accepted
    at hotApply (http://localhost:3000/vendor.1147cd2c761079891a5b.js?1147cd2c761079891a5b:400:31)
    at hotUpdateDownloaded (http://localhost:3000/vendor.1147cd2c761079891a5b.js?1147cd2c761079891a5b:313:13)
    at hotAddUpdateChunk (http://localhost:3000/vendor.1147cd2c761079891a5b.js?1147cd2c761079891a5b:293:13)
    at webpackHotUpdateCallback (http://localhost:3000/vendor.1147cd2c761079891a5b.js?1147cd2c761079891a5b:49:12)
    at http://localhost:3000/1.1147cd2c761079891a5b.hot-update.js:1:1

where 198 is   [198] ./~/react-redux/lib/index.js 556 bytes.  Maybe I'm just doing something weird that's causing this issue, so I'll try to isolate it to as small of an example as possible, but hot-reloading completely works until I add the import statement. Package versions are as follows:
    "react-redux": "^0.8.0",
    "redux": "^1.0.0",
    "react-hot-loader": "^1.2.8",
    "redux-devtools": "^1.0.0",

Any help is appreciated, even if you could just point me in the right direction. Thanks!

Note: It looks like it might be related to bundle splitting, where React is in the vendor but redux-devtools and redux-devtools/lib/react are not. So not sure if this is a Webpack issue or just a result of my inexperience. Updating my vendor dependencies to include all 3 has fixed the issue; maybe somebody smarter than me could shed some light on why that fixes it?

Maybe some naive regex catches react and thinks it's React distribution? (I don't know, just a wild guess.)
If you put up a branch reproducing the issue I can take a look.

Here's another weird issue: https://github.com/gaearon/redux-devtools/issues/63

You're exactly right, it's related to me specifying the string react as a vendor dependency and Webpack splitting on /'s which ends up matching redux-devtools/lib/react. So it's not related to the package redux-devtools itself; thanks for your help, I'll try to find a better solution.

I was getting the same issue, but I was able to get around it by taking react-redux out of my vendor dependencies list.

I'm closing, since it's a consumer configuration issue and not really ours. We can't fix it without making a breaking change by renaming the folder—but we don't really have to because in the next version the log monitor is extracted into a separate project, and there is no redux-devtools/lib/react.
Please track the progress and give feedback in https://github.com/gaearon/redux-devtools/pull/132.


Change the module name

Codecov Report

Merging #6 (c219143) into master (e1f59a5) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##           master       #6   +/-   ##
=======================================
  Coverage   83.72%   83.72%
=======================================
  Files           5        5
  Lines          43       43
=======================================
  Hits           36       36
  Misses          7        7

Flag
Coverage Δ

unittests
83.72% <100.00%> (ø)

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

Impacted Files
Coverage Δ

src/msleep.c
100.00% <100.00%> (ø)

src/nanosleep.c
100.00% <100.00%> (ø)

src/sleep.c
100.00% <100.00%> (ø)

src/usleep.c
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Error messages from MSBuild or debuggers cannot be automatically positioned when jumping to an external text editor

Godot version
3.5.1mono
System information
windows10
Issue description
Error messages from MSBuild or debuggers cannot be automatically positioned when jumping to an external text editor
Steps to reproduce
Set an external text editor
Trigger any MSBuild error or warning
Double click error message
It was found that it just opened the file without jumping to the corresponding line
Minimal reproduction project
An empty project

Also in Godot 4.1 , and I use VSCode

I've been unable to reproduce this.
Can you try opening VSCode from a terminal? Does it position the caret correctly then? The command should be something like code [SLN_PATH] -g [FILE_PATH]:[LINE]:[COLUMN].
Also, can you try using the custom editor option? Use code for the Custom Exec Path and -g {file}:{line}:{col} for Custom Exec Path Args.


problem in visualize

Thanks for your great work.When I tried to run sh scripts/simpl_av1_vis.sh,there shows a bug:torch has no gradient.Then I turn

vel = torch.gradient(reg, dim=-2)[0] / 0.1 to vel = torch.diff(reg, dim=-2)[0] / 0.1
But torch.cuda.synchronize() has a problem RuntimeError: CUDA error: device-side assert triggered.
Is there any way to solve this problem?

And I notice in function draw_once,eval_out is not  used.Could you please tell me the data format of post_out, data and eval_out?Thanks a lot.

Sorry, I found that my handling method changed the dimension, the problem has been solved.Thank you so much for the excellent visual code.

Thanks for your great work.When I tried to run sh scripts/simpl_av1_vis.sh,there shows a bug:torch has no gradient.Then I turn

vel = torch.gradient(reg, dim=-2)[0] / 0.1 to vel = torch.diff(reg, dim=-2)[0] / 0.1
But torch.cuda.synchronize() has a problem RuntimeError: CUDA error: device-side assert triggered.
Is there any way to solve this problem?

And I notice in function draw_once,eval_out is not used.Could you please tell me the data format of post_out, data and eval_out?Thanks a lot.

Here's the translation of your message into English:
Hello, I also modified the model following the author's method, but I encountered a problem during visualization: the weights are not matching. I see you have modified the model and visualized it as well. I would like to consult with you if it's convenient. Thank you very much. If possible, could you please leave your email address, or you can contact me directly via email when it's convenient for you. Thank you very much. My email is<EMAIL_ADDRESS>你好，我也是结合作者的方法进行了修改模型，但是在可视化的过程中，遇到了问题，加载权重不匹配的问题，看您也是同样修改了模型，并进行了可视化，想请教一下您，不知道您是否方便，万分感谢，如果可以的话，可否留下您的邮箱，或者在您方便的时候您可以直接使用邮箱联系我，万分感谢，我的邮箱是lipl23@ mails.jlu.edu.cn


feat: add custom debugging port option

I found out that the only way to customise the debugging port for now is to pass in the --remote-debugging-port as args:
puppeteer.laucnh({ args: ['--remote-debugging-port=12345'] })

@googlebot I consent.


Fix trigger_teleport_client for spectators

This breaks prediction as noclipped players aren't predicted, and spectators don't get linked so setting origin breaks. ET_TELEPORT_TRIGGER_CLIENT wasn't handled in G_TouchTriggers.
refs #1332

Prediction now works correctly for spectators, the entity was just ignored in G_TouchTriggers for specs. Noclip is still not predicted, which I'm not sure if it's even fixable.


sort request to optimize cache

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


macropad_simpletest_display.py fails in adafruit_display_text/bitmap_label.py

While trying to run macropad_simpletest_display.py from adafruit-circuitpython-bundle-9.x-mpy-20240118, i get the following traceback:
Traceback (most recent call last):
  File "code.py", line 13, in <module>
  File "adafruit_macropad.py", line 937, in display_text
  File "adafruit_simple_text_display.py", line 165, in __init__
  File "adafruit_display_text/bitmap_label.py", line 118, in __init__
  File "adafruit_display_text/bitmap_label.py", line 214, in _reset_text
  File "adafruit_display_text/bitmap_label.py", line 455, in _place_text
  File "adafruit_display_text/bitmap_label.py", line 492, in _blit
ValueError: x1 must be 0-77

I recall that this example code worked with 8.x.
It looks like something deep in bitmaptools is doing range validation incorrectly.
Adafruit CircuitPython 9.0.0-alpha.6-28-g150db00eb3-dirty on 2024-01-18; Adafruit Macropad RP2040 with rp2040

Confirmed that adafruit/circuitpython#8823 appears to fix this issue. Thanks to @FoamyGuy for pointing me at it via Discord!

Fixed by adafruit/circuitpython#8823.


Multipart

How  I can set content type for file in Multipart request(jpg, png, gif...)?

This has been fixed as part of #288


Replacing start_time and end_time language for epochs/events

If we could use terms that are agnostic to the direction of simulation, that should help to avoid confusion. @apragsdale pointed out that now is a very natural reference point, so maybe using language with regard to this reference is worth considering? E.g. ancient/recent, old/young, former/latter.
Does this work though? Given terms A and B, for more ancient and more recent respectively, we still have a basic disagreement with forward simulators (where A < B) and backward simulators (where A > B).

Yes, agreed. something like recent/past or along the lines you suggested would be nice. That could help some with the conversion between forward and backward time, I think? We'd need a flag for the flow of time, but then it just is a matter of recalculating times and swapping some < and > verifications for orders of events.
I've got a branch where I've started changing some attribute names (and also getting a better grasp on how it all works as I'm playing around with it). I can open a PR with some of these suggested naming changes.

Entropy related terminology would work without now as the reference point: time of low entropy / high entropy. I guess this just changes the reference point to the big bang. Here it's probably more natural to have time_high_entropy > time_low_entropy.
I am a little concerned that if we have a flag for the flow of time, this would increase complexity when attempting to validate a demography. But I'm happy to be wrong here.

I've got a branch where I've started changing some attribute names (and also getting a better grasp on how it all works as I'm playing around with it). I can open a PR with some of these suggested naming changes.

Awesome! I'm about 80% through adding a bunch of docstrings, so we'll probably have some conflicts. I can integrate your PR first though, if that's easier.

I'd say go ahead with getting the docstrings in. I'm still doing some exploring and you're changes will probably end up being ready before mine.

I am a little concerned that if we have a flag for the flow of time, this would increase complexity when attempting to validate a demography. But I'm happy to be wrong here.

I'm a bit worried about his too, tbh. I worry that we're doing to end up with very abstract language if we try to be this general. I would rather do one direction well, than two directions not quite so well.
What's the advantage you see from having two directions for time @apragsdale?

We could support two directions for time at a high level (e.g. yaml file), which is always converted into a single time direction for the low-level where we do validation.

This is a fundamental issue, so I've opened #11 to track it.

We're still using start_time and end_time. We've definitively decided on forwards-time conventions now, so the terms are unambiguous. Are we ok with freezing on these terms?

OK by me.


New version: bornova.numara version 3.8.0

Installation timed out.
Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 1097
Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run


Get the api secret from the InstagramService class

When we create an Instagram object with enforce signed header we need the api secret.
The class org.jinstagram.auth.oauth.InstagramService has an OAuthConfig field which has a getApiSecret() method.
It would be nice to add a getApiSecret() method in the InstagramService class so we can directly get the api secret in a secure way.
The implementation is very simple but I'd like to know what you think about that first before submitting my PR.

Or even better we could add 2 new methods in org.jinstagram.auth.oauth.InstagramService :
public Instagram getInstagram() {...}
public Instagram getSignedHeaderInstagram(String requestIpAddress)

to directly get an Instagram object without dealing with our token and secret.

my PR :
https://github.com/sachin-handiekar/jInstagram/pull/103

Thanks for the PR...


Thermocycler: firmware: firmware update

overview
Firmware should be able to switch to bootloader mode (or its equivalent) to allow for firmware update from robot/ app.
To check: does the microcontroller need a programmer/ additional hardware to upload firmware on it?

Closing in favor of #3580


Cannot access repository by http (sub-uri)

I have installed the plugin. My redmine version is 3.2.1., plugin 1.2.2. It seems it has installed and configured sucessfully, "config test" tab in the configuration shows all green.
The Subdirectory for HTTP access in the plugin configuration tab is git/
I have created a new project with a gitolite repo in redmine. But when I want to access the https URL of the supposed repo, I get  Redmine 404 error "page not found".
the redmine log looks as follows:
Started GET "/redmine/git/energy-peak/energy_peak.git" for xxx.xxx.xxx.xxx at 2017-02-13 22:42:55 +0100
ActionController::RoutingError (No route matches [GET] "/git/energy-peak/energy_peak.git"):
I suppose the issue might be due to the redmine being deployed in a sub URI (/redmine/) but I do not know if this is the real issue or how to configure plugin correctly for it to work.
I'd appreciate any help with debuging/fixing this issue.

Hi! Those HTTP(s) urls are for git not for browsing.
Example : git clone http://redmine.local/git/test/blabla.git

Ok, I understand, I somehow (wrongly) assumed there will be something available there for the browser. But git direct access seem to work fine. thanks.


order: Mark missing orders as failed in the client db

The client and server db can get out of sync if some orders are not recorded properly in the server. This becomes problematic because the deamon won't start until all the bad invoices have been cleaned out. Right now the clients need to fix these edge cases manually.
The idea is to simply mark those invoices as failed and let the client continue with the start up.

@bhandras: review reminder
@jharveyb: review reminder


Shop command shows an extra empty page

Version 1.10.1

Intresting, i have the same with .feedlist!

:notlikemiyo:

Fixed in 2.0


Tensorflow 2.0: Adding @tf.function decorator with categorical feature_column raises FailedPreconditionError: Table already initialized

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS X 10.14
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.0.0-alpha0
Python version: Python 3.6.7
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: N/A

Describe the current behavior
Just want to preface this by saying while strictly speaking I am using 'custom' code, all I did was piece together code from the 'classify structured data' and the 'introduction for experts'.
I am trying to add @tf.function for performance enhancement reasons to my custom training code in Tensorflow 2.0. However, running the code raises a FailedPreconditionError: Table already initialized. when using categorical feature columns.
What I suspect is happening is that the lookup tables for the categorical encoding are being initialized more than once (in the model definition and in @tf.function).  How should I go about using feature_columns and @tf.function?
Code to reproduce the issue
import numpy as np
import pandas as pd

!pip install sklearn
!pip install tensorflow==2.0.0-alpha0
import tensorflow as tf

from tensorflow import feature_column
from tensorflow.keras import layers
from tensorflow.keras.models import Model
from sklearn.model_selection import train_test_split

URL = 'https://storage.googleapis.com/applied-dl/heart.csv'
dataframe = pd.read_csv(URL)

train, test = train_test_split(dataframe, test_size=0.2)
train, val = train_test_split(train, test_size=0.2)

# A utility method to create a tf.data dataset from a Pandas Dataframe
def df_to_dataset(dataframe, shuffle=True, batch_size=32):
  dataframe = dataframe.copy()
  labels = dataframe.pop('target').values.reshape(-1,1)
  ds = tf.data.Dataset.from_tensor_slices((dict(dataframe), labels))
  if shuffle:
    ds = ds.shuffle(buffer_size=len(dataframe))
  ds = ds.batch(batch_size)
  return ds

batch_size = 32
train_ds = df_to_dataset(train, batch_size=batch_size)
val_ds = df_to_dataset(val, shuffle=False, batch_size=batch_size)
test_ds = df_to_dataset(test, shuffle=False, batch_size=batch_size)

feature_columns = []

# numeric cols
for header in ['age', 'trestbps', 'chol', 'thalach', 'oldpeak', 'slope', 'ca']:
  feature_columns.append(feature_column.numeric_column(header))

# bucketized cols
age = feature_column.numeric_column("age")
age_buckets = feature_column.bucketized_column(age, boundaries=[18, 25, 30, 35, 40, 45, 50, 55, 60, 65])
feature_columns.append(age_buckets)

# indicator cols
thal = feature_column.categorical_column_with_vocabulary_list(
      'thal', ['fixed', 'normal', 'reversible'])
thal_one_hot = feature_column.indicator_column(thal)
feature_columns.append(thal_one_hot)

# embedding cols
thal_embedding = feature_column.embedding_column(thal, dimension=8)
feature_columns.append(thal_embedding)

#crossed cols
crossed_feature = feature_column.crossed_column([age_buckets, thal], hash_bucket_size=1000)
crossed_feature = feature_column.indicator_column(crossed_feature)
feature_columns.append(crossed_feature)

feature_layer = tf.keras.layers.DenseFeatures(feature_columns, trainable=False)

class MyModel(Model):
  def __init__(self):
    super(MyModel, self).__init__()
    self.features = feature_layer#layers.DenseFeatures(feature_columns, trainable=False)
    self.dense = layers.Dense(128, activation = 'relu')
    self.dense2 = layers.Dense(128, activation = 'relu')
    self.sigmoid = layers.Dense(1, activation = 'sigmoid')

  def call(self, x):
    x = self.features(x)
    x = self.dense(x)
    x = self.dense2(x)
    return self.sigmoid(x)

model = MyModel()
loss_object = tf.keras.losses.BinaryCrossentropy()
optimizer = tf.keras.optimizers.Adam()

train_loss = tf.keras.metrics.Mean(name='train_loss')
train_accuracy = tf.keras.metrics.BinaryAccuracy(name='train_accuracy')

test_loss = tf.keras.metrics.Mean(name='test_loss')
test_accuracy = tf.keras.metrics.BinaryAccuracy(name='test_accuracy')

@tf.function
def train_step(features, label):
  with tf.GradientTape() as tape:
    predictions = model(features)
    loss = loss_object(label, predictions)
  gradients = tape.gradient(loss, model.trainable_variables)
  optimizer.apply_gradients(zip(gradients, model.trainable_variables))

  train_loss(loss)
  train_accuracy(label, predictions)

@tf.function
def test_step(image, label):
  predictions = model(image)
  t_loss = loss_object(label, predictions)

  test_loss(t_loss)
  test_accuracy(label, predictions)

EPOCHS = 5
for epoch in range(EPOCHS):
  for features, labels in train_ds:
    train_step(features, labels)

  for features, labels in val_ds:
      test_step(features, labels)

  template = 'Epoch {}, Loss: {}, Accuracy: {}, Test Loss: {}, Test Accuracy: {}'
  print (template.format(epoch+1,
                           train_loss.result(),
                           train_accuracy.result()*100,
                           test_loss.result(),
                           test_accuracy.result()*100))

Actual Output
FailedPreconditionError: Table already initialized.
     [[{{node my_model_1/dense_features_1/age_bucketized_X_thal_indicator/thal_lookup/hash_table/table_init/LookupTableImportV2}}]] [Op:__inference_train_step_33112]

Expected Output
Epoch 1, Loss: 0.8113343119621277, Accuracy: 63.21243667602539, Test Loss: 0.5340840816497803, Test Accuracy: 71.42857360839844
Epoch 2, Loss: 0.6469629406929016, Accuracy: 69.4300537109375, Test Loss: 0.5265070199966431, Test Accuracy: 72.44898223876953
Epoch 3, Loss: 0.5749971270561218, Accuracy: 71.84800720214844, Test Loss: 0.5283268094062805, Test Accuracy: 72.10884094238281
Epoch 4, Loss: 0.5360371470451355, Accuracy: 72.79792785644531, Test Loss: 0.5270806550979614, Test Accuracy: 72.44898223876953
Epoch 5, Loss: 0.5122867226600647, Accuracy: 73.57512664794922, Test Loss: 0.5229357481002808, Test Accuracy: 72.65306091308594

@alextp  - how to combine @tf.function with feature_columns ?

@rohan100jain I thought you had already fixed this issue?

Thank you for responding!
Btw interesting enough I just added a counter - and the model managed to run for one epoch before crashing ...

`from future import absolute_import, division, print_function
import numpy as np
import pandas as pd
!pip install sklearn
!pip install tensorflow==2.0.0-alpha0
import tensorflow as tf
from tensorflow import feature_column
from tensorflow.keras import layers
from tensorflow.keras.models import Model
from sklearn.model_selection import train_test_split
URL = 'https://storage.googleapis.com/applied-dl/heart.csv'
dataframe = pd.read_csv(URL)
train, test = train_test_split(dataframe, test_size=0.2)
train, val = train_test_split(train, test_size=0.2)
A utility method to create a tf.data dataset from a Pandas Dataframe
def df_to_dataset(dataframe, shuffle=True, batch_size=32):
dataframe = dataframe.copy()
labels = dataframe.pop('target').values.reshape(-1,1)
ds = tf.data.Dataset.from_tensor_slices((dict(dataframe), labels))
if shuffle:
ds = ds.shuffle(buffer_size=len(dataframe))
ds = ds.batch(batch_size)
return ds
batch_size = 32
train_ds = df_to_dataset(train, batch_size=batch_size)
val_ds = df_to_dataset(val, shuffle=False, batch_size=batch_size)
test_ds = df_to_dataset(test, shuffle=False, batch_size=batch_size)
feature_columns = []
numeric cols
for header in ['age', 'trestbps', 'chol', 'thalach', 'oldpeak', 'slope', 'ca']:
feature_columns.append(feature_column.numeric_column(header))
bucketized cols
age = feature_column.numeric_column("age")
age_buckets = feature_column.bucketized_column(age, boundaries=[18, 25, 30, 35, 40, 45, 50, 55, 60, 65])
feature_columns.append(age_buckets)
indicator cols
thal = feature_column.categorical_column_with_vocabulary_list(
'thal', ['fixed', 'normal', 'reversible'])
thal_one_hot = feature_column.indicator_column(thal)
feature_columns.append(thal_one_hot)
embedding cols
thal_embedding = feature_column.embedding_column(thal, dimension=8)
feature_columns.append(thal_embedding)
#crossed cols
crossed_feature = feature_column.crossed_column([age_buckets, thal], hash_bucket_size=1000)
crossed_feature = feature_column.indicator_column(crossed_feature)
feature_columns.append(crossed_feature)
feature_layer = tf.keras.layers.DenseFeatures(feature_columns, trainable=False)
class MyModel(Model):
def init(self):
super(MyModel, self).init()
self.features = feature_layer
self.dense = layers.Dense(128, activation = 'relu')
self.dense2 = layers.Dense(128, activation = 'relu')
self.sigmoid = layers.Dense(1, activation = 'sigmoid')
def call(self, x):
x = self.features(x)
x = self.dense(x)
x = self.dense2(x)
return self.sigmoid(x)
model = MyModel()
loss_object = tf.keras.losses.BinaryCrossentropy()
optimizer = tf.keras.optimizers.Adam()
train_loss = tf.keras.metrics.Mean(name='train_loss')
train_accuracy = tf.keras.metrics.BinaryAccuracy(name='train_accuracy')
test_loss = tf.keras.metrics.Mean(name='test_loss')
test_accuracy = tf.keras.metrics.BinaryAccuracy(name='test_accuracy')
@tf.function
def train_step(features, label, counter):
with tf.GradientTape() as tape:
predictions = model(features)
loss = loss_object(label, predictions)
gradients = tape.gradient(loss, model.trainable_variables)
optimizer.apply_gradients(zip(gradients, model.trainable_variables))
train_loss(loss)
train_accuracy(label, predictions)
@tf.function
def test_step(image, label, counter):
predictions = model(image)
t_loss = loss_object(label, predictions)
test_loss(t_loss)
test_accuracy(label, predictions)
EPOCHS = 5
counter = 0
for epoch in range(EPOCHS):
for features, labels in train_ds:
train_step(features, labels, counter)
counter +=1
for features, labels in val_ds:
test_step(features, labels, counter)
counter +=1
template = 'Epoch {}, Loss: {}, Accuracy: {}, Test Loss: {}, Test Accuracy: {}'
print (template.format(epoch+1,
train_loss.result(),
train_accuracy.result()*100,
test_loss.result(),
test_accuracy.result()*100))
`
Ok! the above code solves the problem - but I am not sure why - thoughts ?

@rohan100jain did you have time to take a look?

https://github.com/tensorflow/tensorflow/commit/f6e0ec468a3dee7c2ae1fa3575bb46d884b4a319 should hopefully fix this issue


Fix moves documentation typos

This commit fixes a display issue in the class reference, as well as a typo in the same sentence.

Thanks!


Replay email address instead of confirming during create

For: https://www.pivotaltracker.com/story/show/94485374

Remove email_confirmation from creating and sigining a petition
Add a new step to the create process to replay the email address as the last step before submitting and allow the signer to make changes

Note: replaying the email while signing a petition will be dealt with in a future PR.

LGTM :palm_tree:

This staged implementation seems to work well and be easily extendable. Nice! :+1: LGTM.

+1

Rebased and will merge when green.


Stop Start does not show MFA Required

I can only randomly reproduce this and when I did it seems to be a bug in the service sending MfaRequired to false when it id in fact, needed.


order import statements to break cyclical dependency deadlock (#87)

Follow-up to https://github.com/styled-components/styled-components/issues/87#issuecomment-254062595. This PR replaces nested require statements in files in vendor/postcss with import declarations, so that they can be properly resolved at build time.
Doing so also means adding empty import statements to guarantee correct order of evaluation of modules (in ES modules, evaluation order is determined statically by the order of import declarations, whereas in CommonJS – and environments that simulate CommonJS by shipping a module loader, i.e. Browserify and Webpack – evaluation order is determined at runtime by the order in which require statements are encountered).
Specifically, since Root, Rule and AtRule all extend Container, it's essential that Container is evaluated (and therefore, in the context of a Rollup bundle, included) first. In order to do this, input.js (which is the 'gateway' to all the PostCSS stuff) must import root.js, root.js must import rule.js before it imports container.js, and rule.js must import at-rule.js before it imports container.js. Having those imports ensures that container.js doesn't then try to place Root, Rule or AtRule ahead of itself in the bundle.
I realise all this sounds a bit brittle and hairy, so would understand if you decided to call time on this whole experiment! Unfortunately something along these lines will always be necessary when handling these sorts of pathological cyclical dependency cases without using require.
Apologies again for creating this mess.

👍 done


failed install extension

[2021-01-06 15:31:26.161] [renderer1] [error] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat 'c:\Users\asus-pc\Desktop.vscode'
[2021-01-06 15:32:12.697] [renderer1] [error] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat 'e:\python.vscode'
[2021-01-06 15:32:54.866] [renderer1] [error] ["downloading: XHR failed","    at U.downloadInstallableExtension (file:///C:/Users/asus-pc/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:635:226)","    at async U.doInstallFromGallery (file:///C:/Users/asus-pc/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:632:594)"]
[2021-01-06 15:32:54.913] [renderer1] [error] XHR failed: downloading: XHR failed
at U.downloadInstallableExtension (file:///C:/Users/asus-pc/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:635:226)
at async U.doInstallFromGallery (file:///C:/Users/asus-pc/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:632:594)

Presence of "XHR failed" message makes me think #111277 might be relevant to you.

Presence of "XHR failed" message makes me think #111277 might be relevant to you.

Please follow these steps

Help -> Toggle Developer Tools -> Network
Then check for any network failed requests while browsing and installing the extensions if found all requests fails then its probably a proxy or DNS issue at your end.
To confirm its a DNS issue check if you can access this page https://ms-python.gallerycdn.vsassets.io/extensions/ms-python/python/2019.8.29288/1565127378610/Microsoft.VisualStudio.Services.Icons.Default, if you cannot please try configuring your DNS like pointing to <IP_ADDRESS> as suggested here? https://<IP_ADDRESS>/dns/. Otherwise please contact your network administrator.
If it is not a network issue, please share the logs from the following locations

Help -> Toggle Developer Tools -> Console
View -> Command Pallette... -> Toggle Shared Process -> Console
View -> Open View… -> Log (Shared)
View -> Open View… -> Log (Window)

Please follow these steps

Help -> Toggle Developer Tools -> Network
Then check for any network failed requests while browsing and installing the extensions if found all requests fails then its probably a proxy or DNS issue at your end.
To confirm its a DNS issue check if you can access this page https://ms-python.gallerycdn.vsassets.io/extensions/ms-python/python/2019.8.29288/1565127378610/Microsoft.VisualStudio.Services.Icons.Default, if you cannot please try configuring your DNS like pointing to <IP_ADDRESS> as suggested here? https://<IP_ADDRESS>/dns/. Otherwise please contact your network administrator.
If it is not a network issue, please share the logs from the following locations

Help -> Toggle Developer Tools -> Console
View -> Command Pallette... -> Toggle Shared Process -> Console
View -> Open View… -> Log (Shared)
View -> Open View… -> Log (Window)


Install instructions

Hey,
Really love the look of this project, but could you please expand on how to actually get this up and running so I could give it a try? Thanks!

Thanks for opening an issue. The README has been updated with instructions. The docker method is recommended. Happy to help if you run into any problems.


Blood Vendetta has invalid formula data

I had a migration issue with Blood Vendetta, where after migrating the spell's damage was incorrectly set in a character sheet as:
"damage": {
          "value": {
            "0": {
              "applyMod": false,
              "type": {
                "categories": [],
                "subtype": "",
                "value": "bleed"
              },
              "value": "2d6 persistent"
            }
          }
        },

Instead of migrating to the newer version in the compendium
Foundry Version 10
Build 286
PF2E Version 4.6.0

Data in the compendium seems correct.

Fixed some time ago, it appears


feat(http): Retry mechanism added to http-service

@sanbornsen snapshot fabric8-ui is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-1966-fabric8-planner.int.rdu2c.fabric8.io

@sanbornsen snapshot fabric8-ui is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-1966-fabric8-planner.int.rdu2c.fabric8.io

@sanbornsen snapshot fabric8-ui is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-1966-fabric8-planner.int.rdu2c.fabric8.io


Use index block and parameter in nginx as initialy intended.

#132 and #133 are real issues due to a bug in the current implementation of the index block. The PR by @LeBenLeBen are totally valid but it is not how the feature was supposed to work.
This is the way I originally intended. Merge the one you prefer :)

This PR is a :Bugfix
Link to the related issue if relevant: This should replace #132 and #133

[x] Documentation is written
[x] Changelog was updated

Makes sense, better than mine! 💯

This https://github.com/liip/drifter/pull/109 could also be related (partially)

Thanks!


review trees died/removed from census

We need to ensure (1) that dead trees are removed from the census, and (2) that trees removed are really dead.
notes from 2021 fall census:
From @jenajordan:
Of note - we happened upon trees with dendrobands that aren’t listed in the survey (and I assume there are more, as these were ones I/ Bill happened to come across). Furthermore @rudeboybert confirmed these 5 trees were not in database
172154 standing dead
172626 Fram standing dead top broke
172587 Fram standing dead top broke
92006 37.99mm
92138 9.97mm
From Bill:
i would also mention there about 20 standing dead trees with dendrobands.  it is a struggle to reach many of those trees and life would be simpler if the bands were removed once the tree dies.
to do:

[ ] check what happened with #92006 and #92138. Perhaps these were erroneously marked dead? Assuming these are live (right, @jenajordan ?), they should be returned to the census
[ ]  remove all dead trees from census list
[ ] physically remove bands from dead trees

related to #87 and #88

Superseded by #89


Extra "y" in "Batteryy" status header

It appears like there's a typo in the spelling of "Battery" on the output in the RM2.

Can you share the device name found when running ls /sys/class/power_supply/? Does it end in 'y'?

In any case, this should fix the issue. Thanks for reporting!
Its just a shell script so you can wget https://raw.githubusercontent.com/rM-self-serve/neofetch-rM/bugfix/neofetch


Old notebooks not running: help needed

2023_Devito_Issue.zip
Hi All,
I would like to have some help on some Devito code that I wrote in 2020. Unfortunately, after installing the most recent version of Devito from pypi, the same notebook does not run completely. I have attached a .html, and a .ipynb version of the notebook that is failing.
Can someone help me track down the error, or how I should update my old code? I code is performing "time dependent" Born modeling, and is quite simple, so a Devito expert should be able to catch what needs to be done quite quickly and tell me (I hope).
Best,
Rahul

When you define
dt = Constant('dt') in your born operator you are creating a Constant for an already existing one model.grid.time_dim.spacing so it creates conflicting variables in the generated code, so I would recommend to remove that and use the grid spacing one instead (so one line change) and it works. fine

Great! Thanks, it works.


Decorators does not work with pytest.

Hi.
I want say thank you, because your project simplify testing. Anyway there are still some problems, because I cannot use your package with pytest.  If i decorate tests using pytest.mark.parametrize the test does not gain any parameters nor fixtures. It would be a greate problem for you to fix it? It is possible to freeze uuid7 form package https://github.com/stevesimmons/uuid7 too?

Hi, @Draqun! Thank you so much, for using ny library.

The answer to your second question is yes, I mock UUID class, so all libraries, that use it, will be mocked. I've added an example of it.
The answer to your first question is a lot more complex. I used it with parametrize without any problems. It seems like it works with asynchronous tests, and doesn't work with synchronous. I'll try to figure out why, asap.

Once again, @Draqun, hi! It seems like i've found a temporary solution in creating a context manager, which can be used inside tests with parametrize like I showed in description of 0.4.0 version.