x/mobile: support Xcode 7

I have a change to the gomobile tool that appears to make .app bundles produced with Xcode 7. It needs a bit more testing.
The gist of it is that the DevelopmentTeam ID needs to be in the project file. Unfortunately this requires a bit of machinery to detect, and I fear on complex setups we will have to guess which is the correct ID. We probably already were taking the first team ID, so that's not a new problem.

Is there any CLs to review? I'd love to try something out, since I still can't build for iOS as is due to https://github.com/golang/go/issues/12028#issuecomment-141010040.

Note, I haven't plugged in a physical iOS device yet; I was gonna try the .app bundle on simulator first.

I've tried that now. Plugging in an iOS device did not help on its own, but when I tried running a sample iOS app on it, Xcode told me that my provisioning profiles were missing and it could try to fix it by resetting to default settings. Letting it do that added a single provisioning profile. After that, I was able to to build and deploy that sample iOS app to my iOS device.
However, gomobile still doesn't work after that change, but now it's a different error:
$ gomobile build -target=ios golang.org/x/mobile/example/basic
gomobile: xcrun xcodebuild -configuration Release -project /var/folders/tw/kgz4v2kn4n7d7ryg5k_z3dk40000gn/T/gomobile-work-449284111/main.xcodeproj failed: exit status 65
=== BUILD TARGET main OF PROJECT main WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “org.golang.todo.basic” were found.

** BUILD FAILED **

The following build commands failed:
	Check dependencies
(1 failure)

Just to see if I could get it to work, I modified gomobile to use "shurcooL.Test-1" as the bundle identifier (the same as what my sample iOS app used) when building iOS apps (see https://github.com/golang/mobile/blob/master/cmd/gomobile/build_iosapp.go#L34), and that allowed it to work successfully.

@shurcooL updated me yesterday that he may know how to generate a valid bundle identifier programatically.
@shurcooL, would like to open a CL?

It's more accurate to say I've learned more about why/how it works and what it would take to resolve the issue, but I don't know much about the specifics of generating certificates programmatically (without spending time researching this).
In the original post, @crawshaw said he had a change that appeared to work, but needed more testing. I'd be happy to help review if it were to be made into a CL (even if marked as "do not review" because it's not ready yet).

In the meantime do you think we can update the documentation to reflect that certificates are still necessary?

As a workaround you can create a new, empty project in Xcode7 with the same namespace as your Go app, deploy it to your device and then you'll be able to set Trust level on the device. gomobile build -target ios and ios-deploy should work after that.

@viru: I get the following error:
Code Sign error: No matching provisioning profiles found: No provisioning profiles with a
valid signing identity (i.e. certificate and private key pair) matching the bundle identifier
“org.golang.todo.basic” were found.

In XCode I try to set the dummy-project's Bundle Identifier to be equal to the expected one, and I get this:

(is that because someone on the app-market is already using that identifier?)
How do I set the gomobile build to use a different bundle identifier?

@egonelbre Thanks for picking this up.

I'm looking into fixing this.
I think the first solution should be to allow specifying the BundleID (and Android package ID) manually and direct people to create an application in XCode with the specified identifier. This would make gomobile easier to use now, with little effort. PS: Currently when I tried to use an existing profile then xcodebuild also required to specify DEVELOPMENT_TEAM (that can be detected from the provisioning profile).
Then as a next step there are few ideas:

Try to figure out how to create provisioning profile automatically (command-line tools or write the code). Unfortunately, I haven't yet found a nice way to do it. We can create BundleID with this https://play.golang.org/p/ZiOkpaU3HP... but this could still be problematic when you want to build application that is already registered and you don't have the signing key.
Use wildcard AppID for multiple apps (https://developer.apple.com/library/content/qa/qa1713/_index.html) -- this would avoid the need to create manually multiple profiles. But, there probably are restrictions how it can be used.
Combine XCode and gomobile. When selecting a new project there are templates "Empty" and "External-Build-System"... maybe we can use XCode to trigger "gomobile" with the correct parameters. Or create a custom template for gomobile. This potentially could allow directly deploying from XCode rather than the drag-and-drop approach.

Currently 3. seems the most promising and least likely to break in the future.
Any thoughts?


Revert "Add backward compatibilty for wildfly full"

This reverts commit f65bfc8eaf9af2c082f2277a6f17fb0da01907b3.
needs https://github.com/wildfly/wildfly/pull/7397 to be merged first

Core - Full Integration Build 875 is now running using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0

Linux Build 1629 is now running using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0

Windows Build 1268 is now running using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0

Windows Build 1268 outcome was SUCCESS using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0
Summary: Tests passed: 3108, ignored: 66 Build time: 0:20:20

Linux Build 1629 outcome was SUCCESS using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0
Summary: Tests passed: 3108, ignored: 66 Build time: 0:22:48

Core - Full Integration Build 875 outcome was FAILURE using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0
Summary: Tests failed: 92 (92 new), passed: 2610, ignored: 413, muted: 1 Build time: 1:05:14
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.integration.deployment.xml.datasource.DeployedXmlJpaDataSourceTestCase: <no details avaliable>

org.jboss.as.test.integration.ee.injection.resource.persistenceunitref.PersistenceUnitRefTestCase: org.jboss.as.test.integration.ee.injection.resource.persistencecontextref.PersistenceContextRefTestCase: <no details avaliable>

org.jboss.as.test.integration.ee.injection.resource.persistenceunitref.PersistenceUnitRefTestCase: <no details avaliable>

org.jboss.as.test.integration.ejb.interceptor.inject.InterceptorInjectionUnitTestCase: <no details avaliable>

org.jboss.as.test.integration.ejb.persistence.PersistenceUnitTestCase: <no details avaliable>

org.jboss.as.test.integration.ejb.remote.client.api.tx.EJBClientXidTransactionTestCase: org.jboss.as.test.integration.ejb.remote.client.api.tx.EJBClientUserTransactionTestCase: <no details avaliable>

org.jboss.as.test.integration.ejb.remote.client.api.tx.EJBClientXidTransactionTestCase: <no details avaliable>

org.jboss.as.test.integration.ejb.stateful.passivation.PassivationTestCase: <no details avaliable>

org.jboss.as.test.integration.ejb.stateful.persistencecontext.StatefulUnitTestCase: <no details avaliable>

org.jboss.as.test.integration.ejb.transaction.bmt.lazyenlist.LazyTransactionEnlistmentUnitTestCase: <no details avaliable>

org.jboss.as.test.integration.hibernate.search.HibernateSearchJPATestCase: <no details avaliable>

##### there are 82 more failed tests, see build details

retest this please

Linux Build 1640 is now running using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0

Windows Build 1278 is now running using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0

Core - Full Integration Build 885 is now running using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0

Windows Build 1278 outcome was SUCCESS using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0
Summary: Tests passed: 3108, ignored: 66 Build time: 0:20:44

Linux Build 1640 outcome was FAILURE using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0
Summary: Tests failed: 8 (8 new), passed: 3089, ignored: 66 Build time: 0:22:07
Build problems:
Failed tests detected
Process exited with code 1
Failed tests
org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTPS: <no details avaliable>

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTP: <no details avaliable>

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTPWithSecureInterface: <no details avaliable>

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTPSWithSecureInterface: <no details avaliable>

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase: <no details avaliable>

org.jboss.as.test.integration.domain.AdminOnlyModeTestCase: org.jboss.as.test.integration.domain.SSLMasterSlaveOneWayTestCase.testReadSlaveStatusFromMaster: <no details avaliable>

org.jboss.as.test.integration.domain.AdminOnlyModeTestCase: org.jboss.as.test.integration.domain.DomainControllerMigrationTestCase: <no details avaliable>

org.jboss.as.test.integration.domain.AdminOnlyModeTestCase: <no details avaliable>

Core - Full Integration Build 885 outcome was SUCCESS using a merge of cddda25266e68918f2d4b5533cfa6bb06d402de0
Summary: Tests passed: 2859, ignored: 414 Build time: 0:50:10

Linux Build 1646 is now running using a merge of e2bfda081268b4e5fb6f0bfe4f0b03dffe9860bf

Core - Full Integration Build 888 is now running using a merge of e2bfda081268b4e5fb6f0bfe4f0b03dffe9860bf

Windows Build 1282 is now running using a merge of e2bfda081268b4e5fb6f0bfe4f0b03dffe9860bf

Windows Build 1282 outcome was SUCCESS using a merge of e2bfda081268b4e5fb6f0bfe4f0b03dffe9860bf
Summary: Tests passed: 3108, ignored: 66 Build time: 0:20:25

Linux Build 1657 is now running using a merge of e2bfda081268b4e5fb6f0bfe4f0b03dffe9860bf

Linux Build 1657 outcome was SUCCESS using a merge of e2bfda081268b4e5fb6f0bfe4f0b03dffe9860bf
Summary: Tests passed: 3108, ignored: 66 Build time: 0:26:08

Core - Full Integration Build 888 outcome was SUCCESS using a merge of e2bfda081268b4e5fb6f0bfe4f0b03dffe9860bf
Summary: Tests passed: 2858, ignored: 414, muted: 1 Build time: 0:57:07


replace deprecated CSS2 system colors

The current versions of Chrome and Edge do not show the deprecated CSS2 system colors anymore. Firefox still works.
I used the Windows PowerToys color picker in Firefox for page https://adrianroselli.com/2021/02/whcm-and-system-colors.html#CSS2 to get the color codes seen before.

Hi @FrankBuchholz
Apologies for the late response - I didn't pick this up in my notifications ):
It looks like the proposed replacement for system color names is... more system color names https://drafts.csswg.org/css-color-4/#css-system-colors. Please could you investigate compatibility of those across browsers? I'd prefer to stick to the user's chosen scheme than hard-code colors.

A quick view:
The system colors on https://drafts.csswg.org/css-color-4/#css-system-colors do not seen to fit well:
Code     old             Color           -> new
#000000; ButtonText      Black           -> ButtonText
#000000; CaptionText     Black           -> CanvasText
#99b4d1; ActiveCaption   Light blue      -> GreyText
#a0a0a0; ButtonShadow    Grey            -> GreyText
#bfcddb; InactiveCaption Light grey blue -> GreyText
#e9e9ed; ButtonFace      Light grey      -> ButtonFace
#f0f0f0; ThreeDFace      Very light grey -> ButtonFace
#f0f0f0; ThreeDShadow    Very light grey -> ButtonFace

Some colors are not supported by Chrome:
AccentColor "Your browser does not recognize this color."
AccentColorText "Your browser does not recognize this color."

tbh, I view Chrome like the "next IE", so I'm honestly just at the point of "of course it doesn't work in chrome". Is there a way to use -- vendor attributes for this? ie, set a color and have a --webkit* variant, or, in code, attempt to detect chrome and fall back on hard-coded colors? I mean, the point of this lib was to provide an "os-native" window, so any way we can avoid hard-coded colors is a win, imo, but also, I'll take something that works over an ideal, so falling back on a hard-coded color is "ok".

@FrankBuchholz bump


evaluator: unexpected "cycle" with pattern expression

What version of CUE are you using (cue version)?

$ cue version
cue version v0.0.0-20221001181137-79d80efc2882

       -compiler gc
     CGO_ENABLED 1
          GOARCH arm64
            GOOS linux
             vcs git
    vcs.revision 79d80efc288208410f77d47ae9aedd37e106d84b
        vcs.time 2022-10-01T18:11:37Z
    vcs.modified false

Does this issue reproduce with the latest release?
Yes
What did you do?
exec cue eval x.cue
cmp stdout stdout.golden

-- x.cue --
x: "x"
[x]: string
-- stdout.golden --
x: "x"

What did you expect to see?
Passing test.
What did you see instead?
> exec cue eval x.cue
[stderr]
reference "x" in label expression refers to field against which it would be matched:
    ./x.cue:2:2
[exit status 1]
FAIL: /tmp/testscript970237123/repro.txtar/script.txtar:1: unexpected command failure

Whilst this situation is not exactly common, I first wondered whether we could improve the error message... but before I got onto thinking about that I got side tracked wondering whether this is actually an error at all. It's not clear to me this should be an error, and with the recent cycle and comprehension work, perhaps it no longer needs to be?

This has working like this for a long time. No need to delay v0.5.0 for this. This is not a cycle, per se, and also not related to comprehension.
But we could consider making it work.


template-url dynamic loading

How to bind template-url dynamically with expression. I tried ng-attr-template-url="{{...}}" with no luck. Any suggestion?
Many thanks in advance.

Hi @amilino,
currently the templateUrl is not bound to the controller and therefore you cannot use it dynamically. See https://github.com/guylabs/ion-autocomplete/blob/master/src/ion-autocomplete.js#L41.
What is the use case behind this that you need to change the templateUrl dynamically?
Thanks and regards,
Guy

Tnx for a quick reply.
Basically I want to build template with this tree structure directive:
https://github.com/fer/ion-tree-list
So based on expression logic switch template dynamically, from normal to tree structure.
What do you think?

I am currently using ngif direcitve, but that doesn't look nice.

Hi @amilino,
what kind of expression logic do you mean? On what should the expression be based on?
Thanks and regards,
Guy

Here goes example:
 ng-attr-template-url="{{'1' == '1' ? 'common/autocomplete_tree_template.html' : 'common/autocomplete_template.html'}}"

Hi @amilino,
ok nice! So then you do not need any changes on the directive as you define it in the configuration with the basic Angular expressions.
Can we then close this issue?
Thanks and regards,
Guy

Hi @guylabs,
this expression doesn't work. I receive error:
ionic.bundle.js:25642 Error: [$compile:tpload] Failed to load template: {{'1' == '1' ? 'common/autocomplete_tree_template.html' : 'common/autocomplete_template.html'}} (HTTP status: 404 Not Found)...
so currently I copy/pasted control and added this:
ng-if="group.CRIT_TYPE == 'LIST'"
for one and:
ng-if="group.CRIT_TYPE == 'TREE'"
for second control.

Hi @amilino,
sorry I misunderstood you and I will fix this issue as soon as possible.
Thanks and regards,
Guy

Hi @amilino,
could you please test this on the master and give me feedback? I just fixed it.
Thanks and regards,
Guy

Hi @guylabs,
I just used https://github.com/guylabs/ion-autocomplete.git#master as a bower dependency and same thing.
[$compile:tpload] Failed to load template: common/autocomplete_tree_template (HTTP status: 404 Not Found)

HI @amilino,
yes but the exception is another one when you compare with the previous exception you had. The expression is now properly resolved, but you have issues with the template loading itself.
Please check that the template itself is working properly.
So can I then close this issue?
Thanks and regards,
Guy

Hi @guylabs,
template is working correctly and it does exist.
Checked already.
Thank you for fast reply.

Hi @amilino,
well can you maybe debug it and add a breakpoint here https://github.com/guylabs/ion-autocomplete/blob/master/src/ion-autocomplete.js#L109 and then check what the value is of the templateUrl? For me it looks like the .html suffix is missing from the template url itself.
Thanks and regards,
Guy

Hi @guylabs,
hmm. This is strange. URL is correct.
ionAutocompleteController.templateUrl = "common/autocomplete_template.html"
Regards,
Alan

Sorry it was the second url which missed ".html" at the end.
Thank you very much, and sorry for my mistake.
All best!

Hi @amilino,
ok cool that it works now! 😃
Thanks and regards,
Guy


Adding rspec and rubocop

Thanks for contributing to fastlane! Before you submit your pull request, please make sure to check the following boxes:

[NA] Run bundle exec rspec from the subdirectory of each tool you modified. Alternatively, run rake test_all from the root directory.
[NA] Run bundle exec rubocop -a to ensure the code style is valid
[X] Read the Contribution Guidelines
[X] We currently don't accept new actions, please publish a plugin instead, more information in Plugins.md

Before submitting a pull request, we appreciate if you create an issue first to discuss the change :+1:
Adding rspec and rubocop to be runnable via bundle exec.

I found better way to solve the issue.


traefik 404 not found

When restarting Traefik after I install the plugin I have a 404 not found on Traefik's dashboard.
config.yml:
http:
  middlewares:
    crowdsec-bouncer:
      forwardauth:
        address: http://bouncer-traefik:8081/api/v1/forwardAuth
        trustForwardHeader: true
    my-cloudflarewarp:
      plugin:
        cloudflarewarp:
          disableDefault: false
          trustip:
            - "<IP_ADDRESS>/24" # local network where my server is

traefik.yml :
api:
  dashboard: true
  debug: true
entryPoints:
  http:
    address: ":80"
    http:
      middlewares:
        - cloudflarewarp@file
        - crowdsec-bouncer@file
      redirections:
        entryPoint:
          to: https
          scheme: https
  https:
    address: ":443"
    http:
      middlewares:
        - cloudflarewarp@file
        - crowdsec-bouncer@file
serversTransport:
  insecureSkipVerify: true
providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false
    network: external_proxy
  file:
    filename: /config.yml
certificatesResolvers:
  cloudflare:
    acme:
      email: email
      storage: acme.json
      dnsChallenge:
        provider: cloudflare
        # disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authoritative name servers.
        resolvers:
          - "<IP_ADDRESS>:53"
          - "<IP_ADDRESS>:53"
log:
  level: "INFO"
  filePath: "/var/log/traefik/traefik.log"
accessLog:
  filePath: "/var/log/traefik/access.log"

experimental:
  plugins:
    cloudflarewarp:
      modulename: github.com/BetterCorp/cloudflarewarp
      version: v1.3.0

I thought it was maybe an compatibility error with the crowdsec bouncer but even disabling it doesn't change, I still got the 404 on traefik.
Any idea why?

i actually just commented on your reddit post....
the issue isnt with this plugin so i will close this issue.
basically you dont have an entrypoint for the dashboard.
first get traefik working, then add the middleware plugins :)


npm install fails - gulp build

Issue without proper information won't be answered
Expected Behavior
Able to npm install properly
Actual Behavior
npm install fails - failed at gulp build
Steps to Reproduce
Execute npm install
Information
OS - Windows 10
Error Log:
><EMAIL_ADDRESS>postinstall C:\Users\Alaric\pokemongo-bot-desktop
> gulp build

C:\Users\Alaric\pokemongo-bot-desktop\gulpfile.js:45
            let parsed = data.toString().split('\n');
            ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet sup                 ported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Liftoff.handleArguments (C:\Users\Alaric\PokemonGo-Bot-Desktop\node_modul                 es\gulp\bin\gulp.js:116:3)
    at Liftoff.<anonymous> (C:\Users\Alaric\PokemonGo-Bot-Desktop\node_modules\g                 ulp\node_modules\liftoff\index.js:198:16)
    at module.exports (C:\Users\Alaric\PokemonGo-Bot-Desktop\node_modules\gulp\n                 ode_modules\liftoff\node_modules\flagged-respawn\index.js:17:3)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\                 node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.4.7
npm ERR! npm  v2.15.8
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>postinstall: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'gulp build'.
npm ERR! This is most likely a problem with the PokemonGoBot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp build

I'm kind of a noob here, so I'm not sure what I'm doing wrong. Would be happy if someone can point me in the right direction. Thanks!

see workaround in https://github.com/PokemonGoF/PokemonGo-Bot-Desktop/issues/168

Thanks that seemed to fix it!


Delayed data

Ticker for 'MOEX:MOEX' returns update_mode: 'delayed_streaming_900'.
For real-time data need to be logined user.
Is there method to set my auth_token or session_id?

`import { TradingViewWebSocket } from 'tradingview-scraper/dist/TradingViewWebSocket.js';
TradingViewWebSocket.UNAUTHORIZED_USER_TOKEN = 'j.w.token';`
Solution is very simple.
Token is global constant.
And you can change it.


Examples with multiple hosts?

I have been doing some testing and was wondering how to handle the following:

2 servers
Split connections between all clustered servers

The scenario I ran had two servers, I configured both servers in the hosts array however only ever ended up making connections to the first member of the array. I then shut that first member down in hopes that we would then switch the servers we were requesting however then the requests just stopped being sent.
Is there a behaviour I am missing?

This is more of a question for the discussion forum, but the short version is that it takes some time before (a) the cluster notices that the node is down. That takes timeout * interval milliseconds. (b) The client notices that the cluster has changed, which takes at most one cluster tending interval (by default 1s).
Until that point the client may try to connect to a non-existent node, and time out. Your application should consider what to do with the timeout. It can skip on the operation. It can pause for the expected amount of time (server lag on knowing the node is down plus the client lag, by default 2.5s), then retry. It can put the operation on a deferred work queue. This is application knowledge.
The node-down situation is one to be aware of. The opposite, a node joining the cluster, should be handled automatically until the client becomes aware, through proxy operations. If the client goes to the wrong node, the operation will be executed by that node on behalf of the client. No app-side code is required.


Add filename in error message when ReadError or similar occur

Please update error messages to include relevant information for debugging when loading datasets with load_dataset() that may have a few corrupted files.
Whenever downloading a full dataset, some files might be corrupted (either at the source or from downloading corruption).
However the errors often only let me know it was a tar file if tarfile.ReadError appears on the traceback, and I imagine similarly for other file types.
This makes it really hard to debug which file is corrupted, and when dealing with very large datasets, it shouldn't be necessary to force download everything again.

Hi Elisa, please share the error traceback here, and if you manage to find the location in the datasets code where the error occurs, feel free to open a PR to add the necessary logging / improve the error message.

please share the error traceback

I don't have access to it but it should be during this exception which happens during the loading of a dataset. If one of the downloaded files is corrupted, the for loop will not yield correctly, and the error will come from, say, in the case of tar files, this iterable which has no explicit error handling that leaves clues as to which file has failed.
I only know the case for tar files, but I consider this issue could be happening across different file types too.

I think not just from higher calls like the _iter_from_urlpath but directly wherever a file is attempted to be opened would be the best case, as the traceback would simply lead to that.

so maybe there should be better error messages in each dataset builder definition ? e.g. in https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/webdataset/webdataset.py for webdataset TAR archives


Development environment tool version content correction

Development environment tool version content correction

1.Added 1.10 Allinone package download；
2.docker environment version changed to 20.10.24 (consistent with kuscia)；


Update Composer dependencies (2021-10-12-21-14)

Created multidev environment pr-10 for circleci-orb-demo-d82.


Material + MaterialButton + borderRadius doesn't work anymore.

Hello! this is for sharing a problem.
This code after the last update has lost his shape. I know it's a little triky... but before the update all was rounded and fitted.... Now the materialButton is rectangular and floating over the rounded shadow.
Nothing too problematic, I will use a FlatButton with a shape or something like that.. but like i said, it's for sharing the bug.
final roundedButton = Padding(
padding: EdgeInsets.symmetric(vertical: 16.0),
      child: Material(
        borderRadius: BorderRadius.circular(32.0),
        shadowColor: Colors.lightBlue,
        elevation: 5.0,
        child: MaterialButton(
          minWidth: 200.0,
          height: 42.0,
          onPressed: () { },
          color: Colors.lightBlue.shade900,
          child: Text('Button', style: TextStyle(color: Colors.white)),
        ),
      ),

#21926

@ilvassa does the linked issue answer your question?

i have the same problem like zoechi and already tried the solution from the link above, but still not working
`final loginButton = Padding(
padding: EdgeInsets.symmetric(vertical: 16.0),
child: Material(
borderRadius: BorderRadius.circular(10.0),
shadowColor: Colors.lightBlueAccent.shade100,
elevation: 5.0,
clipBehavior: Clip.antiAlias,
child: MaterialButton(
          minWidth: 200.0,
          height: 42.0,
          onPressed: () {},
          color: Colors.lightBlueAccent,
          child: Text(
            'Log In',
            style: TextStyle(color: Colors.white),
          ))),
);`

Yes it does!.... I'm sorry but I've tested it right now...

How to Create a rounded button / button with border-radius in Flutter


Interactive alternatives to graphviz for .visualize()

Thoughts on improving the Jupyter display of dask objects with some of the JS libraries like cytoscape? Graphviz works, but there are some things that JS libraries do really well - like tooltips for additional data, zooming in on a section of the graph, etc.

Thanks for raising an issue @Madhu94! I'm not familiar with cytoscape, so I can't speak to that project specifically. Though providing a more rich graph visualization experience is certainly in scope. FWIW you might find the discussion over in https://github.com/dask/dask/issues/7141 interesting.
cc @ian-r-rose @GenevieveBuckley @jsignell who may be interested in thinking about interactively visualizing graphs

Thanks, I'm definitely interested in this discussion (although I can't say I know anything about cytoscape)

Cytoscape was just an example:) I just wanted to start some discussion on JS libraries for .visualize(). IMO, Jupyter's full potential isn't used with graphviz.

Yeah I can imagine having two versions of the visualize output kind of like we have for the dask array repr. I think that would be a really nice improvement.

Agreed, thanks for bringing thus up @Madhu94.
I haven't played with cytoscape myself, but it looks cool. Another option that might be a useful small step could be d3-graphviz. Since it understands graphviz graphs already, it probably would be pretty easy to adapt the current visualization to use (I also like that it is pretty lightweight, producing just SVG)

I haven't played with cytoscape myself, but it looks cool. Another option that might be a useful small step could be d3-graphviz. Since it understands graphviz graphs already, it probably would be pretty easy to adapt the current visualization to use (I also like that it is pretty lightweight, producing just SVG)

Understanding graphviz graphs already sounds like a point in favour of d3-graphviz. But I did see that
there's a problem with tooltips right now, which may or may not be a problem for us, depending on what we want to do.

On the cytoscape side there's ipycytoscape which might make it easier to integrate?
I've also come across ipyelk which looks interesting, especially for me, the potential to collapse/drill down into different "jobs" running on the cluster at the same time.

Just to drop another library name, which might be worthy of consideration: https://c3js.org/.
I haven't had the chance to used it yet, but gave heard positive opinions about it.

Previous discussion on visualizing large graphs: https://github.com/dask/dask/issues/1991

[x-posting from the slack channel]
I am currently working on a C project on a social media which recommends friends for a User.
I decided to use Graphviz for the visualization of the friendship network and the results came out to be pretty decent.
I also color-coded sub-graphs and also introduced blocks for interdependent nodes.

It's still just a static image, but it's an overall improvement over the current Dask.visualize as it makes more intuitive sense to color code different User groups (here, Dask Task Groups). We can add interactivity by using dash-interactive-graphviz which supports

Zooming and Panning around the graph (With a reset)
Selecting nodes
Animation between different graphs

Even d3-graphviz understands DOT source. So, that can be used as well.
P.S. I am currently working on bringing interactivity to my Friendship Graph. If it works, I will comment on this thread.

This seems as good a place as any to put my thoughts for @freyam , following our conversation last week. His blog post about meeting the community can be found here, and the document listing some pros/cons for some graph display libraries from above is here.
Immediate work areas for this week:

to investigate the contents of a dask graph, both low-level and high-level variants, and how these get assigned properties for display with the current code in the dot module. What further information is available, based on the task naming conventions and e.g., for high-level graphs the number of sub-tasks and for arrays, the size of the operands. Such information might be added into the nodes as text, colour or edge-style (all probably optional).
to have some familiarity with the distributed dashboard realtime view of the task graph: what information does the scheduler have about a task while its running, how much of this is derived from the graph itself? Please add Bokeh as one of the possible graph display libraries. Why is Bokeh problematic in the static case? What nice features does it give, which we would love for graphviz-style graphs to also have?
read up on client.get_task_stream as a possible means to record the computation of a graph for post-hoc analysis. Compare with performance reports. Could we aim to have performance information, if available, embedded in a static graph view?

As far as the libraries investigation so far, I would like to see a reformatting in terms of pros/cons, only in terns of features that are useful to us. Some examples:

animations look nice, but what can we use them for? I can think of: comparing two graphs pre/post optimisation; comparing two graphs with/without a given step
interactive editing of node placement is probably not useful, except on the rare occasion we want to make publication-quality output
being able to pack/unpack areas of the graph was specifically mentioned as a nice-to-have to be able to make sense of large graphs. Can this be done with static output? Can the packed view give summary information about its contents?

One potential concrete piece of work we discussed: modifying the task graph view in the distributed dashboard to remove the useless axes labels. It is unlikely that the bokeh codebase will feature in the rest of the project, so this would be a perhaps interesting diversion.
Sorry that this is a lot of text! I hope it is not overwhelming.
PS: am I the only one that keeps writing "daskboard"?

You're not the only one @martindurant - I write "daskboard" almost every time as well!

FYI there are ongoing efforts to update visualizations of the performance information coming out of the scheduler.  See for example  https://github.com/dask/distributed/pull/4886   .
However, what I think would be really valuable is not visualizing information coming out of the scheduler, like how we do with Bokeh, but instead visualizing the graph information on the client side.  No one is working on this today and it would be really helpful.
If I were managing this work I would stop investigation into visualization tools, and I would start pumping data about high level graphs into a graphviz visualization.  I think that this can have high impact today, and doesn't require much investigation to make serious progress.

This seems as good a place as any to put my thoughts for @freyam , following our conversation last week. His blog post about meeting the community can be found here, and the document listing some pros/cons for some graph display libraries from above is here.

@martindurant the Google document linked here appears to be deleted. Do we have another copy somewhere?


connect: install TensorFlow Serving

Install TensorFlow Serving into the Connect Ubuntu 22 image. This can be done with commands similar to:
RUN echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" > /etc/apt/sources.list.d/tensorflow-serving.list && \
    curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | apt-key add -
RUN export DEBIAN_FRONTEND=noninteractive && \
    apt-get update && \
    apt-get install -y \
    tensorflow-model-server-universal \
    && rm -rf /var/lib/apt/lists/*

This is installing tensorflow-model-server-universal not tensorflow-model-server, as the universal binary has basic optimizations, but no platform-specific instructions.
Additional details about TensorFlow Serving installation: https://www.tensorflow.org/tfx/serving/setup
Connect will separately enable TensorFlow Serving; see https://github.com/rstudio/rstudio-docker-products/issues/777.

Closing, as https://github.com/rstudio/rstudio-docker-products/pull/785 has merged.


slim 2.0

I think it's time to update this theme. There is a lot happening in the community, I'll try to mix those trends to keep this theme up to date.
You may find the new version under branch v2. It's in beta.

Great news.

This is nice! I was about to suggest removing Disqus but I guess this was done already if I checked correctly?

http://chrislema.com/killed-disqus-commenting/
http://donw.io/post/github-comments/

I use a fork of this theme turning it dark. I'd like to leave as a suggestion to offer toggleable light/dark flag.

http://nosubstance.me

Turned it dark here: https://github.com/oblitum/hugo-theme-slim/commit/e4199b95b2e9ebf7e00520b1b887f26137dda986
I also have KaTeX in my fork, which is quite cool, could also possibly be an option for the math savy.

Nice to know we could use GitHub issues for commenting. 🤓 It'd be nice to have a toggle flag. Will it leave it as an option for the author or the user? KaTex looks cool. I'll leave it as an option too. 😆

@zhe I think as a user option is even nicer, just sometimes even I don't want mine black, but it's already :P, what should be present at author's configuration at last is the default setting, dark or light. On KaTeX, your call, I've just updated my CDN URLs, you may use as reference coupled to the original commit.


Fix runfiles collection for nickle_export

Rule nickel_export does not correctly collect transitive runfiles. In this PR, we are reusing _collect_runfiles from writing-bazel-rules-data-and-runfiles with a little modification (described in inline comment).
Original and new behavior can be seen/tested with runfiles_collect example in runfiles_collect_example branch.

Thank you for the project and quick merge!


Hi, do you have any plan to release your code?

It will be very nice if can  release your code!!

It will be very nice if can release your code!!

Hi, thank you for your interest to our work! We are currently preparing the code and planning to release it probably in early Jan. Please stay tuned!

Hi, do you have plan to release your code within Feb 2020? @hugochan
Appreciate for your work.

Hi, do you have plan to release your code within Feb 2020? @hugochan
Appreciate for your work.

Thank you for your interest to our work! We are busy with conference deadlines. But yes, we are planning to release the code within Feb 2020.

Released the code!


maven dependency but no version

Maven dependency but no version comes from three places,
one is the version number defined by dependencyManagement,
one is the version number of parent,
and one is that other dependencies have it but it is redefined here.
These three situations depend on Maven's build mechanism: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
Now the question is, if Maven dependency but no version. Then osv-scanner will not extract it. Is there such a vulnerability, but it is not detected by osv-scanner?

I believe Maven does not allow dependencies without requirements declared. Can you give an example where you observe Maven dependencies without version requirements?

for example just like this . https://github.com/jeecgboot/JeecgBoot/blob/master/jeecg-boot/pom.xml#L119-#L133
from line 119 to line 133. Its version number should be inherited from the parent version number。
2.7.18

Or the version numbers here, some of which come from the version numbers defined in dependencyManagement
https://github.com/jeecgboot/JeecgBoot/blob/master/jeecg-boot/jeecg-boot-base-core/pom.xml

`

4.0.0
<groupId>com.test</groupId>
<artifactId>myJavaDemo</artifactId>
<version>1.1-SNAPSHOT</version>

<properties>
    <maven.compiler.source>10</maven.compiler.source>
    <maven.compiler.target>10</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>3.0.0</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-security</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>

    <!-- Database Driver -->
    <dependency>
        <groupId>com.h2database</groupId>
        <artifactId>h2</artifactId>
        <scope>runtime</scope>
    </dependency>
    <!-- If you use MySQL -->
    <!-- <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <scope>runtime</scope>
    </dependency> -->

    <!-- Lombok for code generation -->
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>1.18.24</version>
        <scope>provided</scope>
    </dependency>

    <!-- Spring Boot Testing -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>fastjson</artifactId>
        <version>1.2.43</version>
    </dependency>
</dependencies>

%  `
for example In the pom.xml example above, the component returned by the command I executed is empty, but in fact there should be fast-json。
osv-scanner --experimental-offline . Scanning dir . Scanned /Users/pom.xml file and found 8 packages could not load db for Maven ecosystem: unable to fetch OSV database: no offline version of the OSV database is available could not load db for Maven ecosystem: unable to fetch OSV database: no offline version of the OSV database is available could not load db for Maven ecosystem: unable to fetch OSV database: no offline version of the OSV database is available could not load db for Maven ecosystem: unable to fetch OSV database: no offline version of the OSV database is available could not load db for Maven ecosystem: unable to fetch OSV database: no offline version of the OSV database is available could not load db for Maven ecosystem: unable to fetch OSV database: no offline version of the OSV database is available could not load db for Maven ecosystem: unable to fetch OSV database: no offline version of the OSV database is available could not load db for Maven ecosystem: unable to fetch OSV database: no offline version of the OSV database is available

As far as I know, OSV-Scanner should be able to resolve version requirements from dependency management or parent.
For the pom.xml that you provided, <project> and <modelVersion> tags are missing. OSV-Scanner is able to identity transitive dependencies with both tags added.
However, for offline mode, since no requests will be made, parent pom files are not fetched from upstream and thus some version requirements are not resolved.


Remove branch requirements for push & PR GitHub Actions to fix compatibility with Graphite

Current dependencies on/for this PR:

main

PR #90   👈

This stack of pull requests is managed by Graphite.


Adding DNS support for QBit Service Discovery using Vertx3.

Adding DNS support for QBit Service Discovery using Vertx3.

@sailorgeoffrey any comments on this?


Show how to load the library with ESM

With node --experimental-wasm-modules, it should be possible to import libsvm from './build.wasm'

That's only if we are able to build a standalone wasm file. I'm not sure it's possible, because of file io methods that are called to serialize the model.
https://github.com/emscripten-core/emscripten/wiki/WebAssembly-Standalone

Node.js supports WASI for i/o


download link of dataset

Could you please  provide a download link for the Seed-Bench-image dataset?

Hello! Thanks for your interest in our work. There is no separate download link for SEED-Bench image splits. We simply downloaded the image splits only for SEED-Bench-1, which can be found as part of the official dataset here: https://github.com/AILab-CVC/SEED-Bench
We do provide a simple filtered jsonl of the questions for easy indexing of the data for our models, especially LLaVA.
Hope this helps!


Fix exports file

Fixes a bug due to a missing newline when there are multiple exports.
Also adds a molecule test for vagrant only, since you can't run an NFS server in Docker (so the old .travis.yml is unchanged). Manually test using molecule test
Tag: 1.0.1?

=============================== warnings summary ===============================
None
  Module already imported so can not be re-written: testinfra

-- Docs: http://doc.pytest.org/en/latest/warnings.html
===================== 2 passed, 1 warnings in 3.16 seconds =====================

Thanks for the test. Merging & tagging as 1.0.1


Update tests to match new default value for selected field

This fixes the remaining test failures!

LGTM! 🚢 it.


uknown internal server error

We seem to be getting a lot of 500 errors with "function_clause" and "unknown_error"?
e.g.
[2022-03-14 15:19:50.597 +0000] WARN  (deepstream-record-worker-12): bulkDocs error
    err: {
      "type": "InternalServerError",
      "message": "Internal Server Error",
      "stack":
          InternalServerError: Internal Server Error
              at makeError (/usr/src/app/node_modules/@nxtedition/lib/couch.js:101:12)
              at Object.bulkDocs (/usr/src/app/node_modules/@nxtedition/lib/couch.js:502:13)
              at runMicrotasks (<anonymous>)
              at processTicksAndRejections (node:internal/process/task_queues:96:5)
              at async _write (file:///usr/src/app/src/record/record-storage.js:103:9)
      "data": "{\n  \"req\": {\n    \"path\": \"/nxt/_bulk_docs\",\n    \"method\": \"POST\",\n    \"body\": \"\\\"{\\\\\\\"new_edits\\\\\\\":false,\\\\\\\"docs\\\\\\\":[{\\\\n      \\\\\\\"_deleted\\\\\\\": true,\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"749bfdadb7:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"3-T04LakhRFb9a4J-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04LakhRFb9a4J-asset\\\\\\\",\\\\\\\"NIE8HiDHRKbFD3-_asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 3\\\\n      }\\\\n    },{\\\\n      \\\\\\\"asset\\\\\\\":\\\\\\\"6aaffc6debbcea77229146de2824b8f6de14a7c1\\\\\\\",\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"749bfdadb7:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"4-T04Lb0rRDMqxBR-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04Lb0rRDMqxBR-asset\\\\\\\",\\\\\\\"T04LakhRFb9a4J-asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 4\\\\n      }\\\\n    },{\\\\n      \\\\\\\"mimeType\\\\\\\":\\\\\\\"video/MP2T\\\\\\\",\\\\\\\"size\\\\\\\":2102216,\\\\\\\"seekable\\\\\\\":true,\\\\\\\"atime\\\\\\\":1647216000000,\\\\\\\"refs\\\\\\\":[\\\\\\\"93ae0721c5127f0e.mp4\\\\\\\"],\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"2bd5b22f4d1b0255e1b5.ts:file\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"8-T04LbmaQHdkIu2-MoNlFct5_PI7HL-storage-2\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04LbmaQHdkIu2-MoNlFct5_PI7HL-storage-2\\\\\\\",\\\\\\\"SyElZEy9XpJTil-MoNlSCy59YTcOu-storage-3\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 8\\\\n      }\\\\n    },{\\\\n      \\\\\\\"asset\\\\\\\":\\\\\\\"ccb4e5163175782ff359740b9f36cc2226107130\\\\\\\",\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"98d310dfcb:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"3-T04LbnMRIlM4zp-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04LbnMRIlM4zp-asset\\\\\\\",\\\\\\\"NIE8I1I5GgGyN~-_asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 3\\\\n      }\\\\n    },{\\\\n      \\\\\\\"_deleted\\\\\\\": true,\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"072256f9c7:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"3-T04LbnNRF5rAql-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04LbnNRF5rAql-asset\\\\\\\",\\\\\\\"NIE8I7p5HOETXF-_asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 3\\\\n      }\\\\n    },{\\\\n      \\\\\\\"asset\\\\\\\":\\\\\\\"ccb4e5163175782ff359740b9f36cc2226107130\\\\\\\",\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"072256f9c7:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"4-T04Lc3cRDYIHTX-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04Lc3cRDYIHTX-asset\\\\\\\",\\\\\\\"T04LbnNRF5rAql-asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 4\\\\n      }\\\\n    },{\\\\n      \\\\\\\"asset\\\\\\\":\\\\\\\"af2cfd5623a56efd27cb80c47adad06a6b2e8d88\\\\\\\",\\\\\\\"storage\\\\\\\":\\\\\\\"2d8356a8099e3f9deb00b2fe3c16b57d8841cf72\\\\\\\",\\\\\\\"media\\\\\\\":\\\\\\\"51a51052e4bfa94901cde1f4ff5956109be63662\\\\\\\",\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"MxTjuda5pC08gJ:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"24-T04Lcq2RDXl9lo-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04Lcq2RDXl9lo-asset\\\\\\\",\\\\\\\"SxXantebPobiSL-asset-asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 24\\\\n      }\\\\n    },{\\\\n      \\\\\\\"asset\\\\\\\":\\\\\\\"76b5485774761f626c3df34d9cfde3913f4d6753\\\\\\\",\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"2aamu3s:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"4-T04Lcq3RI9SPze-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04Lcq3RI9SPze-asset\\\\\\\",\\\\\\\"NmG~jnA8BdwJHf-_asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 4\\\\n      }\\\\n    },{\\\\n      \\\\\\\"_deleted\\\\\\\": true,\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"MxTqjB~40inVhC:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"3-T04LeOvRGxXdRE-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04LeOvRGxXdRE-asset\\\\\\\",\\\\\\\"NIE8Is15LDoG5t-_asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 3\\\\n      }\\\\n    },{\\\\n      \\\\\\\"asset\\\\\\\":\\\\\\\"3d28ed928c23dcb61a9525772c592a71a8a80160\\\\\\\",\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"MxTqjB~40inVhC:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"4-T04LevYREMROXZ-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04LevYREMROXZ-asset\\\\\\\",\\\\\\\"T04LeOvRGxXdRE-asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 4\\\\n      }\\\\n    },{\\\\n      \\\\\\\"_deleted\\\\\\\": true,\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"9376ae59ed:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"3-T04LfhwRFehyzz-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04LfhwRFehyzz-asset\\\\\\\",\\\\\\\"NIE8JKYHX5kSno-_asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 3\\\\n      }\\\\n    },{\\\\n      \\\\\\\"asset\\\\\\\":\\\\\\\"ccb4e5163175782ff359740b9f36cc2226107130\\\\\\\",\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"9376ae59ed:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"4-T04Lfy4RFsI8TH-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04Lfy4RFsI8TH-asset\\\\\\\",\\\\\\\"T04LfhwRFehyzz-asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 4\\\\n      }\\\\n    },{\\\\n      \\\\\\\"_deleted\\\\\\\": true,\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"MxUKo8LC8Ns641:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"4-T04LgkURFHQsc6-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04LgkURFHQsc6-asset\\\\\\\",\\\\\\\"NIE8JcO7A97Sy8-_asset\\\\\\\"],\\\\n        \\\\\\\"start\\\\\\\": 4\\\\n      }\\\\n    },{\\\\n      \\\\\\\"_deleted\\\\\\\": true,\\\\n      \\\\\\\"_id\\\\\\\": \\\\\\\"68ab2b9b83:general._asset\\\\\\\",\\\\n      \\\\\\\"_rev\\\\\\\": \\\\\\\"3-T04LgkURGx9Uz2-asset\\\\\\\",\\\\n      \\\\\\\"_revisions\\\\\\\": {\\\\n        \\\\\\\"ids\\\\\\\": [\\\\\\\"T04LgkURGx9Uz2-asset\\\\\\\",\\\\\\\"N\"\n  },\n  \"res\": {\n    \"status\": 500,\n    \"headers\": {\n      \"cache-control\": \"must-revalidate\",\n      \"content-length\": \"68\",\n      \"content-type\": \"application/json\",\n      \"date\": \"Mon, 14 Mar 2022 15:19:49 GMT\",\n      \"server\": \"CouchDB/3.2.1 (Erlang OTP/20)\",\n      \"x-couch-request-id\": \"84771c9a5d\",\n      \"x-couch-stack-hash\": \"27933023\",\n      \"x-couchdb-body-time\": \"0\"\n    },\n    \"body\": {\n      \"error\": \"unknown_error\",\n      \"reason\": \"function_clause\",\n      \"ref\": 27933023\n    }\n  }\n}",
      "reason": "function_clause",
      "error": "unknown_error",
      "status": 500,
      "statusCode": 500,
      "expose": false
    }

Any ideas what this could be and/or how we could provide better debug information?

@ronag I think the _revisions field provided might not be valid CouchDB revisions such as: NIE8HiDHRKbFD3-_asset (just an initial guess).
Would the logs from CouchDB be available?

It seems related to heavy/extreme load. Everything works fine usually but when on heavy load we get various kind of "unknown" internal server errors.

I don't have more info on this atm as the logs have rotated since then.

I think the _revisions field provided might not be valid CouchDB revisions such

They work and should work. I believe it was discussed in couch 4 to deprecate the possibility of custom revisions. If I retry the exact same request now everything works fine.

@ronag that makes sense. In that case keep an eye out for a stacktrace in the couchdb logs. If it happens again see if you look for the "x-couch-stack-hash": "27933023" value (27933023 in that case) in the logs. That ID should help pin-point the stack trace associated with that request.

I'll re-open this issue once/if it occurs again and I can grab the stack trace.


AVPlayer seek to time not working

I use UISlider to seek audio file to a specific time when playing, but it not working? How to fix that?

At this time the player handles only live stream, there is no official support for the seek function, you can check the FS branch, there is an example on how to implement it.


DefaultCapabilities out of date when using as a library

https://github.com/helm/helm/blame/f86694232bff2e002b766371cd579543dd82d943/pkg/chartutil/capabilities.go defines a default K8s version. Right not its v1.20, which is pretty old.
However, it is overriden at build time anyways:
https://github.com/helm/helm/blob/564be8fdb5cf3f1fbb8add4aec7033b3d977ba3c/Makefile#L58-L66
But this doesn't apply to libraries importing helm as a library.
I would recommend the baked-in constant mirrors the Makefile?
Note: I realize we can just override this when we import it, which is what we will probably do. I opened this issue in case others see similar, and for the possibility of making improvements to defaults.

I'm pretty sure this is a duplicate, but I don't have time to look for it right now. I always wanted to expand that feature and add a flag that could be used to override the k8s version. Maybe someday I'll be able to get to that or someone else can beat me to it.

https://github.com/helm/helm/issues/11240 is related

But this doesn't apply to libraries importing helm as a library.

I suspect an improvement might be that helm replaces the constants with versions pulled from from client-go (https://github.com/kubernetes/client-go/blob/v0.26.0/pkg/version/version.go#L28 from a cursory search). If possible, it would allow helm to simplify it's build process, and allow the client-go version to propagate to api clients. Perhaps more investigation, and a PR would be welcome.
https://github.com/helm/helm/issues/11240 mentioned by @howardjohn would also help if it was desirable to pull the version from a specific cluster.


Modeled objects specifics

Hello,
Again, I'm new to ROS, and thank you for your help. I made a model of plant leaf from paper(sort of). It's green. Then used ReCap Photo to get the .obj file. I followed the tutorial, generated the SIFT model. However, camera doesn't identify it. I launched rqt and showed the ros_hydro model to the camera, and it identified it. However, it didn't identify my leaf. Question: Should my leaf have some writings on it as every other example models?

@ayertay Simtrack is based on SIFT features. So you need to use objects with meaningful textures.
Basically not one-colored objects.

@JimmyDaSilva thank you for reply! Indeed, I changed to other model with texture and it started to detect. Do you have tips on how can I improve the tracking? It identifies my model only from close distance (less than 1 meter) and loses track easily, whereas when I show the demo model ( ros hydro paper) it can detect from 3 meters away and holds well at angles.

This is the model I have.

The texture needs to be well formed with respect to the real object. From the meshlab view of your object it seems that the texture is quite blury.
Apart from that I don't see anything wrong here. Maybe the size of your mesh is too different from the real object ?

Thank you for your help! I'm using a more textured object. It works for me for now.


Permissions set are undone - how to prevent that?

Not sure where this can go - seems like when we set the permissions, if the ARC agent is updated, the permissions we put on the folders get reset so the hybrid worker job fails when it is using credentialed account.
Should probably document that at a minimum in the notes, but either 1-don't have the app need the tweaked credentials, didn't need it for the app-based, so why the change for extension-based agent.  or 2-honor the existing tweaked permissions.  Fix what you need to for your own permission but don't undo what is already in place.

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

ID: a21ca143-2f33-5cea-94a8-ace7e9de5f9c
Version Independent ID: d7f2ef01-8c25-770e-dfd9-37b98dc7ba29
Content: Run Azure Automation runbooks on a Hybrid Runbook Worker
Content Source: articles/automation/automation-hrw-run-runbooks.md
Service: automation
Sub-service: process-automation
GitHub Login: @SnehaSudhirG
Microsoft Alias: sudhirsneha

@JFBDO2022
Thanks for your feedback! We will investigate and update as appropriate.

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. The requested updates have not been made since the creation of this issue, and the timeline for resolution may vary based on resourcing, so we've created an internal work item to incorporate your suggestions. We are closing this issue for now, but feel free to comment here as necessary.
#please-close


[AccSpot] Failed Accessibility Error - Calculator.exe (Calculator.exe 10.1903.21.0) - Control type:UIA_HyperlinkControlType, Test:MissingProperty Error:UIA_NameProperty: Error - MissingProperty UIA_NameProperty , Priority - 0 , ElementControlType - UIA_Hy

A team member will update this issue with more details soon.

This is your friendly Microsoft Issue Bot. I created this issue automatically as requested by a team member.


Window stretch causes text filtering issues

Godot version:
Godot_v3.2.4-rc5
OS/device including version:
Windows 10 64 bit.
GLES2 and GLES3.
Issue description:
First, the expected behavior:
If the stretch mode in the project settings (display/window/stretch/mode) is set to 2d, text in the UI (for example Labels) gets scaled if the window is scaled.
The font is also scaled appropriately, such that 1 pixel in the font is 1 pixel on the screen.
Now, the issue:
Sporadically, a label's size will be one pixel off, such that one line of pixels is duplicated or dropped (because NEAREST filtering is used).
This should not happen, the label should always have the perfect size.
(This issue is not about the positions of the Labels jittering while the window is scaled. I assume that cannot be solved, unless sub-pixel accurate font rendering is implemented.)
Note that neither rendering/2d/snapping/use_gpu_pixel_snap nor gui/common/snap_controls_to_pixels gets rid of the issue.
(GPU Pixel Snap seems to make it occur slightly less, but it is still there.)
Steps to reproduce:
Add several Labels using a DynamicFont.
Set display/window/stretch/mode to 2d, and display/window/stretch/aspect to expand.
Minimal reproduction project:
text_scaling.zip
The images below demonstrate the issue.
The outline is only enabled in order to make it easier to see. The issue occurs even with outlines disabled. (Again, with and without GPU Pixel Snap.)
I'm not sure if the window sizes are platform / device dependent.
In the first image, you can see the that the outline of the marked Label is one pixel thicker on the top. That goes away, when the window is scaled.

The second image should be obvious. A row of pixels seems to be missing in the marked Label.

This is due to font oversampling being updated too early/too late compared to the window resizing. If you resize the window continuously, a race condition is likely to happen as re-rendering the font takes more time than resizing the window.

Are you sure?
I don't think this is due to a race condition:

In this example, I set the window size from code.
It happens repeatably at the same resolutions.
For multiple Labels using the same font and displaying (mostly) the same text, only a few show the issue.

Therefore, I believe this issue has to do with pixel snapping.


It seems that some terms were lost while implementing KGE on Ontologies.

Describe the bug
When I ran the custom go.owl file using the example TransE code, it seems that some terms were lost.
How to reproduce
There are mowl wrapped code as follows.
`
import mowl
mowl.init_jvm("20g")
from mowl.projection.edge import Edge
from mowl.projection import TaxonomyProjector
from mowl.datasets.base import PathDataset
dataset = PathDataset("go_cafa3.owl")
from mowl.models import GraphPlusPyKEENModel
from mowl.projection import DL2VecProjector
from pykeen.models import TransE
import torch as th
model = GraphPlusPyKEENModel(dataset)
model.set_projector(DL2VecProjector())
model.set_kge_method(TransE, random_seed=42)
model.optimizer = th.optim.Adam
model.lr = 0.001
model.batch_size = 32
model.train(epochs = 1)
class_embs = model.class_embeddings
role_embs = model.object_property_embeddings
ind_embs = model.individual_embeddings
terms = []
vectors = []
for i,word in enumerate(class_embs):
vector = class_embs[word]
items = word.split('/')
if len(items) > 1:
word = items[-1]
if word.startswith('GO') and not word.endswith('>'):
term = items[-1]
terms.append(term)
vectors.append(vector)
'GO:0005926' in terms
`

False

But GO_0005926 found in owl file like "        <owl:Class rdf:about="http://purl.obolibrary.org/obo/GO_0005926">        <obo:IAO_0000231 rdf:resource="http://purl.obolibrary.org/obo/IAO_0000227"/>        <obo:IAO_0100001 rdf:resource="http://purl.obolibrary.org/obo/GO_0005925"/>        <owl:deprecated rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</owl:deprecated>
</owl:Class> ...".
It also occured in pykeen version code like:
`
import mowl
mowl.init_jvm("20g")
from mowl.projection.edge import Edge
from mowl.datasets.builtin import PPIYeastSlimDataset
from mowl.projection import TaxonomyProjector
from mowl.datasets.base import PathDataset
dataset = PathDataset("go.owl")
proj = TaxonomyProjector(True)
edges = proj.project(dataset.ontology)
#edges = [Edge("node1", "rel1", "node3"), Edge("node5", "rel2", "node1"), Edge("node2", "rel1", "node1")] # example of edges
triples_factory = Edge.as_pykeen(edges, create_inverse_triples = True)
from pykeen.models import TransE
pk_model = TransE(triples_factory=triples_factory, embedding_dim = 50, random_seed=42)
from mowl.kge import KGEModel
model = KGEModel(triples_factory, pk_model, epochs = 1, batch_size = 32)
model.train()
ent_embs = model.class_embeddings_dict
rel_embs = model.object_property_embeddings_dict
terms = []
vectors = []
for i,word in enumerate(ent_embs):
vector = ent_embs[word]
items = word.split('/')
if len(items) > 1:
word = items[-1]
if word.startswith('GO') and not word.endswith('>'):
term = items[-1]
terms.append(term)
vectors.append(vector)
'GO_0005926' in terms
`

False

And it can be observed that when running the code `proj = TaxonomyProjector(True)
edges = proj.project(dataset.ontology)
#edges = [Edge("node1", "rel1", "node3"), Edge("node5", "rel2", "node1"), Edge("node2", "rel1", "node1")] # example of edges
triples_factory = Edge.as_pykeen(edges, create_inverse_triples = True)`， it shows "INFO: Number of ontology classes: 50119", but the final len(terms) is only 42819. Is it because the outdated terms were discarded?
Environment
OS information
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
Python version
Python=3.8.13
mOWL version
mowl-borg==0.2.0
JDK version
openjdk 17.0.3-internal 2022-04-19
Additional information
If I need to use embeddings for outdated terms, how should I proceed?

Hi. Thanks for your reporting this issue. I think the outdated terms are not being considered when generating the graph-projection for the ontology. In that case, I can suggest two solutions: (1) modify the ontology beforehand and add the outdated terms by yourself or (2) modify the source code, for which you should look at this line where the axioms are retrieved.
In terms of (1), here in Section 5.5 mentions that the boolean value true in the owl:deprecated annotation indicates deprecation. So maybe changing to false can help you. I hope this helps and if you have additional questions, let me know.

Because manually modifying the Ontology file is very cumbersome, I think method (2) is more elegant. I changed the code of line28 True to False. I reinstalled the software and ran my code, but it doesn't seem to have taken effect for both wrapped and pykeen ways.

Because manually modifying the Ontology file is very cumbersome, I think method (2) is more elegant. I changed the code of line28 True to False. I reinstalled the software and ran my code, but it doesn't seem to have taken effect for both wrapped and pykeen ways.

I am not sure that deprecated classes can meaningfully be integrated. Once deprecated in GO, they will be removed from all axioms, therefore no edges will be created that connect to them. They would be disconnected nodes. Are you sure you want to apply any kind of embedding or learning process to these? There is nothing that can be learned from these classes if they are not used in axioms.

I am not sure that deprecated classes can meaningfully be integrated. Once deprecated in GO, they will be removed from all axioms, therefore no edges will be created that connect to them. They would be disconnected nodes. Are you sure you want to apply any kind of embedding or learning process to these? There is nothing that can be learned from these classes if they are not used in axioms.

Thanks.


Give dates to a Cloud Code functions is different on parse-server than Parse.com

Hi,
The way that the date parameters are given to a Cloud Code function seems different on parse-server and Parse.com. This is how to reproduce it.
Create a Cloud Code function like this:
/**
 * @description Just displays the given date parameter
 */
Parse.Cloud.define("myFunction", function(request, response) {
  console.log(request.params.date);
  response.success();
});

When I call this function through the REST API on Parse.com, the date parameter must have this format {__type: "Date", iso: "2016-02-25T00:00:00.000Z"}. Then, the console displays 2016-02-25T00:00:00.000Z probably because there is a mechanism to deserialize it before calling the function.
The same call with the same parameter on parse-server will make the console display {__type: "Date", iso: "2016-02-25T00:00:00.000Z"}.
So, to be able to continue to use my Cloud Code functions with parse-server, it seems now that I have to directly use 2016-02-25T00:00:00.000Z as a date parameter, instead of {__type: "Date", iso: "2016-02-25T00:00:00.000Z"}. Is this difference normal?
Thanks.

IIRC Cloud Code in hosted Parse does not specify how dates must be passed to arbitrary Cloud Functions. You could use an iso date string, or use the REST API object format, whatever your Cloud function needs/expects.
It seems like the issue raised here is on how console.log() handles the display of the REST API object variant (it prints the iso member, not the whole object). Any JavaScript code that works with request.params.date would still see the full object.

Hi,
Thank you for your response but I don't understand. Do you mean that the date parameter must always be an iso string now, and that we must not use this format for parse-server: {__type: "Date", iso: "2016-02-25T00:00:00.000Z"}?
I put console.log here to understand why the same call gives a different result on Parse.com and on a local parse-server. And the output is different.
In the real code, I use moment to convert the parameter into a date. It works on Parse.com but not on a local parse-server although the given parameter is the same.
You can try by calling the function below with the REST API, and by passing the date into this format {__type: "Date", iso: "2016-01-10T00:00:00.000Z"}. You'll see that the outputs are good on Parse.com, but not on parse-server (today per default, whatever the given date is). It looks like that the format {__type: "Date", iso: "2016-01-10T00:00:00.000Z"} is automatically transformed into an iso string on Parse.com before being given as a request parameter to the Cloud Code function.
/**
 * @description Just displays the given date parameter
 */
Parse.Cloud.define("myFunction", function(request, response) {
  var date = moment(request.params.date);

  // Log the whole date infos. Should match the date given into the parameter
  console.log(date);
  console.log(date.toISOString());

  response.success();
});

The version of moment I use on Parse.com is the same on my local parse-server.
Thanks.

Also seeing this issue ^^

@Kira2 No, there is no restriction on how you pass a parameter to a Cloud function. As I said earlier you can pass dates as strings or as objects, whatever fits your needs.
What I am saying is that the difference you are reporting is a display issue limited to console.log(). The output, or display, differs between Parse.com and Parse Server. That does not change the fact that date is still a JSON object formatted like {__type: "Date", iso: "2016-01-10T00:00:00.000Z"} and your code should work the same in both environments.

Ok. But none of Cloud Code functions I have on Parse.com, and that receive a date as object, work on parse-server.

Same. In mongo, I have items stored as ISODate, and are correctly identifying as "date" columns. When it gets loaded into the PFObject, even though my property is marked as NSDate, it's getting assigned as an NSString. I'm having to manually convert it to a NSDate in Objective-C.
Something is very wrong here, and every thread keeps getting closed on this issue.

@joeyslack that is not the issue that is being raised in this thread. Can you open a new issue with repro steps?

Hi,
Why did you close my initial issue? I still have no answer to know what my Cloud Code function That work on Parse.com DO NOT WORK the same way on parse-server. Did you fix this?

@Kira2 can you log req.params.date__type and req.params.date.iso ?

Hi,
Yes, this is what I get when I try to log request.params.date._type and request.params.date.iso. My function is still this one:
/**
 * @description Just displays the given date parameter
 */
Parse.Cloud.define("myFunction", function(request, response) {
  console.log(request.params.date.__type);
  console.log(request.params.date.iso);

  response.success();
});

On Parse.com:
I2016-03-02T20:33:36.890Z]v850 Ran cloud function myFunction with:
Input: {"date":{"__type":"Date","iso":"2016-01-10T00:00:00.000Z"}}
Result: undefined

I2016-03-02T20:33:36.973Z]No Message provided => console.log(request.params.date.__type)
I2016-03-02T20:33:36.974Z]No Message provided => console.log(request.params.date.iso)

On parse-server:
Date => console.log(request.params.date.__type)
2016-01-10T00:00:00.000Z => console.log(request.params.date.iso)

As I said, even if the function is called with the same parameter with the same format, inside the function, request.params.date is not the same. On Parse.com it is handled like the iso string, and on parse-server, it keeps the object format.
Thanks.

How do you call that function? iOS, JS SDK, Android, direct CURL?

I use the REST API, and I can reproduce it with this call:
curl -X POST \
-H "X-Parse-Application-Id: xxx" \
-H "X-Parse-REST-API-Key: xxx" \
-H "Content-Type: application/json" \
-d '{"date":{"__type":"Date","iso":"2016-01-10T00:00:00.000Z"}}' \
https://api.parse.com/1/functions/myFunction

Ok that helps

see https://github.com/ParsePlatform/parse-server/compare/flovilmart.troubleshoot655?expand=1#diff-181d6f6ec635edbcdf8d8c3bc329bdefR852
I can't repro the bug with a request call and properly encoded JSON

Ok, I try to rephrase because you do not understand. I have several functions deployed on Parse.com that work perfectly when I call them by passing a date parameter like that {__type: "Date", iso: "2016-02-25T00:00:00.000Z"}. It seems because, on Parse.com, the date parameter is different once you are inside the function, and you can directly handle it like that, for example:
Parse.Cloud.define("myFunction", function(request, response) {
  var date = new Date(request.params.date); // it works on Parse.com, it gives you an error on parse-server
  response.success(date);
});

If you do the same thing on parse-server, it does not work. What works on Parse.com do no work on parse-server. Why?
Just try this example on Parse.com and on parse-server, and you will see that you will not have the same result.
Thanks.

@Kira2 did you get a look to the link I gave you?

Yes I did, but I don't understand why this function works on Parse.com and not on parse-server
Parse.Cloud.define("myFunction", function(request, response) {
  var date = new Date(request.params.date); // it works on Parse.com, it gives you an error on parse-server
  response.success(date);
});

You keep giving different use cases for that function. you start with a console.log() that is outputting a string instead of the object, then now it's new Date(). The why question is irrelevant here. the only question is what do you expect req.params.date to be, for what input.
Do you expect it to be a Date object? the object that you passed in cURL or a string?

I used console.log to give a little piece of code to explain the difference between running a Cloud Code function with date parameters on Parse.com and on parse-server. The goal was to let people reproduce it with a simple code.
The "Why" question is not irrelevant, because if there are differences between running my application on Parse.com and on parse-server, I have to know what modifications are necessary to avoid bugs for my users because of the migration.
For now, what I understand is that on Parse.com you can use either one or the other format as date parameter (object or string), it does not matter, they are handled the same way. Not on parse-server.

The goal here is to make parse-server and parse.com identical in terms of functionally, they are not.
It seems that your problem is more related to the Date constructor that anything else.

The only reason I see that explains why the Date constructor behaves differently on Parse.com and parse-server is because the date parameters are not handled the same way by the Cloud Code on both servers, and what is given to the constructor is different. But I can't spend more time on this. I will try to write a workaround to handle the difference, make my integration tests pass with a local parse-server, and be able to run my Cloud Code function on a local parse-server without a bug.
Thanks.

@Kira2, if you believe this is a serious problem, instead of writing a 'workaround' you definitely could propose a PR that solved the issue once and for all, and for everyone.
I'm trying to do my best to understand what the root of the problem is, but it seems that we can't figure it out besides.
Yes, parse.com and parse-server are different, and cloud code is not handled at all the same way as it is on parse.com. As you probably realized, you had to rewrite all your require calls.
I'm on your side here. That's painful that we both wasted our time trying to understand what your issue is without reaching a glimpse of understanding where to start to fix it.
What version of parse-server are you running by the way?
How do you load cloud-code?
How is your parse-server configured?

I deploy the Cloud Code on Parse.com by using the command line tool given by Parse Parse develop "MyApplicationName".
I use the last release of parse-server 2.1.3. The problem was already here when I tried to run my own parse-server with versions 2.0.8 and above.
The index.js file is like that:
var express = require("express");
var ParseServer = require("parse-server").ParseServer;
var app = express();

var api = new ParseServer({
  databaseURI: "mongodb://localhost:27017/dev",
  cloud: "my_absolute_path_to/cloud/main.js",
  appId: "appId",
  masterKey: "masterKey",
  fileKey: "fileKey",
  serverURL: "http://localhost:1337/parse"
});

// Serve the Parse API on the /parse URL prefix
app.use("/parse", api);

app.listen(1337, function() {
  console.log("parse-server running on port " + port);
});

I would like to give more, understand what happens here and find an answer for everybody. But the only thing I can do is to give a way to reproduce what I see. Running my last example on Parse.com and on parse-server should allow to reproduce the behavior.
I really appreciate the time that people took to answer and understand what I said despite my broken english and some lack of information. When I say I can't spend more time on it, it's not to say "I'm fed up". It is real. We are a new startup and we have planned to launch our product into the next months. Our situation is fragile because I am the only person with an IT background and we do not have any money for now to hire more people to help us. I should pass the next few months to develop the missing features before the official launch of the product, but I already spent all my February month to read documentation, re-write some parts of the code to deal with the specificities of parse-server, do tests on AWS, etc.
This is why I have to move on the next step as quick as I can. Otherwise, with all this new stuff, I will never be able to respect my deadline, and our project will be compromised before starting.
Thanks.

@Kira2 what I would recommend then is not spend more time on parse-server for you, deploy with your own DB, and keep all the rest to Parse, until we stabilize the source code. Would that work for you?

You're right, I should focus on the database now and see parse-server later. The majority of my integration tests already work on parse-server, so it will probably be easier with a future version.
Thanks.


bcready never fires

I made a new phonegap project, and added your plugin.
phonegap add https://github.com/bcsphere/bluetooth.git

In index.html I added
<script src="bc.js"></script>

Do I need other files?
My index.js looks like this:
var app = {
    // Application Constructor
    initialize: function() {
        this.bindEvents();
    },
   onBCReady: function() {
        console.log('bcready');
    },
    // Bind Event Listeners
    //
    // Bind any events that are required on startup. Common events are:
    // 'load', 'deviceready', 'offline', and 'online'.
    bindEvents: function() {
        document.addEventListener('deviceready', this.onDeviceReady, false);
    },
    // deviceready Event Handler
    //
    // The scope of 'this' is the event. In order to call the 'receivedEvent'
    // function, we must explicitly call 'app.receivedEvent(...);'
    onDeviceReady: function() {
        app.receivedEvent('deviceready');
    },
    // Update DOM on a Received Event
    receivedEvent: function(id) {
        var parentElement = document.getElementById(id);
        var listeningElement = parentElement.querySelector('.listening');
        var receivedElement = parentElement.querySelector('.received');

        listeningElement.setAttribute('style', 'display:none;');
        receivedElement.setAttribute('style', 'display:block;');

        console.log('Received Event: ' + id);
        document.addEventListener('bcready', app.onBCReady, false);
    }
};

I can see the result of console.log('Received Event: ' + id);  but never 'bcready'.
Phonegap 5.1.1-0.29.0
Android 4.3

try this :
    bindEvents: function() {
        document.addEventListener('deviceready', this.onDeviceReady, false);
        document.addEventListener('bcready', this.onBCready, false);
    }

may be the 'bcready' event has been fired before the 'receivedEvent' be called.
I'll try it later.

@lizhijumacc  thanks for your reply! Unfortunately I can still see only
[phonegap] [console.log] Received Event: deviceready

Is any news on this?


Problem creating a new API in an existing APIM instance

Library name and version
Azure.ResourceManager.ApiManagement 1.0.1
Query/Question
hi,
I'm trying to add a new API to an existing APIM instance and I'm getting this error:
Azure.RequestFailedException: 'One or more fields contain incorrect values:
Status: 400 (Bad Request)
ErrorCode: ValidationError
Content:
{"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"protocols","message":"API must define at least one supported protocol"}]}}
Headers:
Cache-Control: no-cache
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Content-Type-Options: REDACTED
x-ms-request-id: 31390054-6e8a-4b81-b551-1f4ca19f9fa5
Server: Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: REDACTED
x-ms-correlation-request-id: REDACTED
x-ms-routing-request-id: REDACTED
Date: Wed, 10 May 2023 19:56:20 GMT
Content-Length: 213
Content-Type: application/json; charset=utf-8
Expires: -1
Here is my code:
public class AzureApimService : IAzureApimService
{
    private readonly ArmClient _client;
    public AzureApimService(string tenantId, string clientId, string clientSecret)
    {
        //_client = new ArmClient(new DefaultAzureCredential());
        _client = new ArmClient(new Azure.Identity.ClientSecretCredential(tenantId, clientId, clientSecret));
    }

    public async Task CreateApi(string apiName, string apimName, string resourceGroupName, string revision, string apiPath, string backendUrl)
    {
        try
        {
            SubscriptionResource subscription = await _client.GetDefaultSubscriptionAsync();
            ResourceGroupCollection resourceGroups = subscription.GetResourceGroups();
            ResourceGroupResource resourceGroup = await resourceGroups.GetAsync(resourceGroupName);
            ApiManagementServiceResource apimResource = await resourceGroup.GetApiManagementServiceAsync(apimName);
            ApiCollection apiCollection = apimResource.GetApis();
            var protocols = new List<string>();
            protocols.Add("http");
            protocols.Add("https");
            var api = new ApiCreateOrUpdateContent
            {
                ApiRevision = revision,
                ApiType = ApiType.Http,
                DisplayName = apiName,
                Path = apiPath,
                ServiceUri = new Uri(backendUrl),
                IsSubscriptionRequired = false,
                IsCurrent = true
            };

            await apiCollection.CreateOrUpdateAsync(Azure.WaitUntil.Completed, apiName.Trim().Replace(" ",""), api); ;
        }
        catch (Exception ex)
        {

            throw ex;
        }
    }
}

Protocol property of the ApiCreateOrUpdateContent class is read only and I can't figure out how to populate the list.
Environment
Visual Studio 2022
Windows 11 Enterprise
.Net 6

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

any updates on this? It's not required to pass protocol when creating apis using cli and I wasn't able to find a way to do it in the c# code.

@pfekrati , as @mhgames mentioned, you can have the protocols initialized when creating the ApiCreateOrUpdateContent like below
ApiCreateOrUpdateContent contentVar = new ApiCreateOrUpdateContent()
{
    ......
    Protocols =
    {
        ApiOperationInvokableProtocol.Https,
        ApiOperationInvokableProtocol.Http,
    },
    ......
};

@mhgames , Is the ApiOperationCollection.CreateOrUpdate what you need? you can find related doc and sample about it at

https://learn.microsoft.com/en-us/dotnet/api/azure.resourcemanager.apimanagement.apioperationcollection.createorupdate?view=azure-dotnet
https://github.com/Azure/azure-sdk-for-net/blob/1ceb48d8fd964b432a050c6dc024cb76ddbf5cdf/sdk/apimanagement/Azure.ResourceManager.ApiManagement/samples/Generated/Samples/Sample_ApiOperationCollection.cs#L198
if it's not, pleaes file another issue with details so that we can follow up about it. thanks.

@mhgames , Is the ApiOperationCollection.CreateOrUpdate what you need? you can find related doc and sample about it at
Thank you, that helped, no idea why didn't I find it earlier, it's literally "api operation" even in the Azure Portal.


x/pkgsite: package removal request for github.com/ivandomanevsky/bank-app

Hello, I would like to delete the package that is indexed on the site, but it has not been on github for a long time, thank you!

We will first need to establish that this request comes from the authorized owner of the repository. Unfortunately that GitHub user account appears to have been deleted, which may make it challenging to prove that you had write access to the user account or its associated repos. Can you provide any evidence that you are the project maintainer?


alignat LaTeX environment

Is it be possible to have something similar to the alignat LaTeX environment working in Franklin pages ?
It works on Jupyer notebook but if I write
$$
\begin{alignat}{7}
3x_1 &&\; + \;&& 2x_2 &&\; - \;&&  x_3 &&\; = \;&& 1 & \\
2x_1 &&\; - \;&& 2x_2 &&\; + \;&& 4x_3 &&\; = \;&& -2 & \\
\end{alignat}
$$

it renders as
\[ \begin{alignat}{7} 3x_1 &&\; + \;&& 2x_2 &&\; - \;&& x_3 &&\; = \;&& 1 & \\ 2x_1 &&\; - \;&& 2x_2 &&\; + \;&& 4x_3 &&\; = \;&& -2 & \\ -2x_1 &&\; + \;&& 1x_2 &&\; - \;&& 2x_3 &&\; = \;&& 0 & \end{alignat} \]

hence as it seems giving up on rendering it with LaTeX

Do you have an error like the following in your browser console:
KaTeX auto-render: Failed to parse `
\begin{alignat}{7}
    3x_1 &&\; + \;&& 2x_2 &&\; - \;&&  x_3 &&\; = \;&& 1 & \\
    2x_1 &&\; - \;&& 2x_2 &&\; + \;&& 4x_3 &&\; = \;&& -2 &
\end{alignat}
` with  ParseError: KaTeX parse error: No such environment: alignat at position 8:

Then that would suggest that your KaTeX version is to old.
You can check with (in your browser console):
> katex.version
"0.11.0"

(this is e.g. for the Franklin docs)
From the KaTeX Changelog it seems that alignat was introduced in v0.13.0.

Indeed, thanks for the help!


Flagging implementation specific tests

As both go-ipfs/js-ipfs has features that the other implementation doesn't have, it's necessary we can flag tests that should only be run for one implementation.

Yeah, Sharness supports prerequisites for that.
For example on https://github.com/ipfs/go-ipfs/blob/master/test/sharness/t0040-add-and-cat.sh#L263 you can see:
  test_expect_success FUSE,EXPENSIVE "cat ipfs/bigfile succeeds" '
    cat "ipfs/$HASH" | multihash -a=sha1 -e=hex >sha1_actual
  '

and "FUSE" and "EXPENSIVE" are both prerequisites, which mean respectivelythat the test will be run only if the fuse filesystem is available and only if we specified that we are ok with running expensive tests.


An elegant way to remove constraints that contain certain variables from a model on the fly

, has anyone come up with.
Bonus points for specific combinations of variables.

Gross hack but simple: You could iterate over each constraint and overload its as_posyslt1(self, substitutions) to return [] if it meets certain criteria (if a PosyIneq) and its as_gpconstr(self, x0) to return itself:
for constraint in M.flat(constraintsets=False):
    if "x" in constraint.varkeys:
        constraint.as_gpconstr = lambda (self, x0): return self
        constraint.as_posyslt1 = lambda(self, substitutions): return []

Nice. Maybe I just need to read up on lambda functions, but what do x0 and substitutions add here?

Nothing! We just need to make them both two-argument functions, so I figured I'd specify what the args where.

Oops, syntax error: there should be no parens around args.

This could be done with a list comprehension, I think?


Autogenerated category with directory prevents build

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Prerequisites

[X] I'm using the latest version of Docusaurus.
[X] I have tried the npm run clear or yarn clear command.
[X] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[X] I have tried creating a repro with https://new.docusaurus.io.
[X] I have read the console error message carefully (if applicable).

Description
Given the following directory structure:
.
└── docs
    └── tutorials
        └── tutorails-basics
            └── index.md

And the following sidebars.js configuration:
const sidebars = {
  docs: [
    'intro',
    {
      label: 'Tutorials',
      type: 'category',
      items: [
        {.
          type: 'autogenerated',
          dirName: 'tutorials',
        },
      ],
    },
  ],
};

Then I should see a nested sidebar
However, I get the following exception:
❯ yarn start
$ docusaurus start
[INFO] Starting the development server...
[ERROR] Sidebars file at "/home/projects/github-1awfyk/sidebars.js" failed to be loaded.
[ERROR] Loading of version failed for version current
[ERROR] Error: Sidebar category Tutorials has neither any subitem nor a link. This makes this item not able to link to anything.
    at postProcessSidebarItem (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/postProcessor.js:40:23)
    at eval (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/postProcessor.js:63:84)
    at Array.map (<anonymous>)
    at eval (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/postProcessor.js:63:70)
    at eval (/home/projects/github-1awfyk/node_modules/lodash/lodash.js:13469:38)
    at eval (/home/projects/github-1awfyk/node_modules/lodash/lodash.js:4967:15)
    at baseForOwn (/home/projects/github-1awfyk/node_modules/lodash/lodash.js:3032:24)
    at Function.mapValues (/home/projects/github-1awfyk/node_modules/lodash/lodash.js:13468:7)
    at postProcessSidebars (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/postProcessor.js:63:29)
    at loadSidebars (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/index.js:85:56)
    at async doLoadVersion (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/index.js:93:34)
    at async loadVersion (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/index.js:115:28)
    at async Promise.all (index 0)
    at async Object.loadContent (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/index.js:123:33)
    at async eval (/home/projects/github-1awfyk/node_modules/@docusaurus/core/lib/server/plugins/index.js:35:25)
    at async Promise.all (index 0)

However, having a directory which only contains child directories works if the autogenerated directory is at the top:
const sidebars = {
  tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
};

Reproducible demo
https://stackblitz.com/edit/github-1awfyk?file=sidebars.js
Steps to reproduce
Create a sidebar configuration where the directory described in an autogenerated sidebar only has directories directly inside it.
Expected behavior
Nested auto-generated indexes should work from any level, as they did in beta 18.
Actual behavior
❯ yarn start
$ docusaurus start
[INFO] Starting the development server...
[ERROR] Sidebars file at "/home/projects/github-1awfyk/sidebars.js" failed to be loaded.
[ERROR] Loading of version failed for version current
[ERROR] Error: Sidebar category Tutorials has neither any subitem nor a link. This makes this item not able to link to anything.
    at postProcessSidebarItem (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/postProcessor.js:40:23)
    at eval (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/postProcessor.js:63:84)
    at Array.map (<anonymous>)
    at eval (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/postProcessor.js:63:70)
    at eval (/home/projects/github-1awfyk/node_modules/lodash/lodash.js:13469:38)
    at eval (/home/projects/github-1awfyk/node_modules/lodash/lodash.js:4967:15)
    at baseForOwn (/home/projects/github-1awfyk/node_modules/lodash/lodash.js:3032:24)
    at Function.mapValues (/home/projects/github-1awfyk/node_modules/lodash/lodash.js:13468:7)
    at postProcessSidebars (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/postProcessor.js:63:29)
    at loadSidebars (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/sidebars/index.js:85:56)
    at async doLoadVersion (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/index.js:93:34)
    at async loadVersion (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/index.js:115:28)
    at async Promise.all (index 0)
    at async Object.loadContent (/home/projects/github-1awfyk/node_modules/@docusaurus/plugin-content-docs/lib/index.js:123:33)
    at async eval (/home/projects/github-1awfyk/node_modules/@docusaurus/core/lib/server/plugins/index.js:35:25)
    at async Promise.all (index 0)

Your environment

Public source code: https://github.com/moodle/devdocs
Public site URL: https://moodle.github.io/devdocs
Docusaurus version used: beta.18, but this issue is in beta.20
Environment name and version Node v16.15.0
Operating system and version (e.g. Ubuntu 20.04.2 LTS): MacOS, Stackblitz

Self-service

[ ] I'd be willing to fix this bug myself.

Duplicate of #7348

Fixed in #7385. Please try the canary version.


Config treats class names as case-sensitive

Take, for example:
HTMLEditorField_Toolbar:
  extensions:
    - MyExtension

This will fail to attach as the class is declared as HtmlEditorField_Toolbar and the Config class is case-sensitive.
As PHP class (and function) names are case-insensitive, the Config API shouldn't impose such a restriction.

New config module now treats all top level keys as case-insensitive.


Fix path to publish views

Currently, running artisan vendor:publish installs grids views into resources/views/nayjest/grids.  They actually need to be added to resources/views/vendor/grids for Laravel to pick them up.

Hi!
I need to check that fix will not broke laravel 4 compatibility then I will merge it.
Thanks for your contribution!
Please contribute if you will find another issues, I appreciate it.

I will replace
resource_path('views/vendor/grids')

to
base_path('resources/views/vendor/grids')

becouse I can't find resource_path function in my Laravel5 instance and official documentation.

Released in v0.9.11

Thanks, sorry I didn't realise resource_path was only added in Laravel 5.2!

No problem, I test everything before merging anyway )


Split client initalization into .initialize()

Handling client initialization can be tricky using the current constructor method. the constructor should be able to be called everywhere and all asynchronous initialization should be kept in the async function.

 Corkus.py discord.py integration

This have been implemented. Docs still need changing


Update locale for pt-BR

Adding some more translations for pt-BR previously incomplete.

Obrigado!


Work with a gdb-remote target that doesn't handle the

Work with a gdb-remote target that doesn't handle the
qWatchpointSupportInfo packet correctly.
In GDBRemoteCommunicationClient::GetWatchpointSupportInfo,
if the response to qWatchpointSupportInfo does not
include the 'num' field, then we did not get an answer
we understood, mark this target as not supporting that
packet.
In Target.cpp, rename the very confusingly named
CheckIfWatchpointsExhausted to CheckIfWatchpointsSupported,
and check the error status returned by
Process::GetWatchpointSupportInfo.  If we cannot determine
what the number of supported watchpoints are, assume that
they will work.  We'll handle the failure
later when we try to create/enable the watchpoint if the
Z2 packet isn't supported.
Add a gdb_remote_client test case.
rdar://problem/42621432
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@346561 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 256337a57d0015bc8179b85e9946a7af3d539190)

@swift-ci test and merge