Simple piece of math code produces massive numbers as result when nopython=True

Here's a small working example: https://gist.github.com/bmer/1e6b622f9a4bf154beee
It should run as is, showing what happens when the numba-fied nopython functions are run on the test inputs, and showing what happens when the python functions are run on the same test input.
I would be happy to provide more information as requested!

What is confusing to me (being a novice with Python) is that deleting lines 1 through 7 (Spyder generated auto introduction) actually raises an exception, that is related to numba:
Failed at nopython (nopython frontend)
Internal error at <numba.typeinfer.CallConstrain object at 0x000000000B7B14E0>:
('EOF in multi-line string', (2, 0))
File "possible_numba_error.py", line 28

I'm getting the same output with Numba and Python using Python 2.7 and Numba 0.19.1 on OS X:
+++ Using numba (nopython=True) +++
test_vectors
[[ 0.33445724  0.71722354]
 [ 0.78890929  0.90252736]
 [ 0.16739775  0.02152926]
 [ 0.91892671  0.29242497]
 [ 0.29738445  0.73406855]
 [ 0.78110904  0.82245972]
 [ 0.97773752  0.72518695]
 [ 0.34772653  0.65154215]
 [ 0.83735624  0.46194026]
 [ 0.25384807  0.29937612]]
----------------
test_vectors_normalized
[[ 0.42262906  0.90630275]
 [ 0.65812553  0.75290822]
 [ 0.99183076  0.12756072]
 [ 0.95291403  0.30324057]
 [ 0.37547639  0.92683196]
 [ 0.68864394  0.72509966]
 [ 0.8031889   0.59572442]
 [ 0.47083846  0.88221944]
 [ 0.87559953  0.48303775]
 [ 0.64672852  0.76272028]]
+++ Using python alone +++
test_vectors_normalized
[[ 0.42262906  0.90630275]
 [ 0.65812553  0.75290822]
 [ 0.99183076  0.12756072]
 [ 0.95291403  0.30324057]
 [ 0.37547639  0.92683196]
 [ 0.68864394  0.72509966]
 [ 0.8031889   0.59572442]
 [ 0.47083846  0.88221944]
 [ 0.87559953  0.48303775]
 [ 0.64672852  0.76272028]]
----------------

Which Numba, Python, and operating system are you using?

I am using Python 2.7 (with Anaconda distribution) and the development version of numba (conda install -c numba numba). I am on Windows 8.1.

"EOF in multi-line string" sounds like you forgot to completely remove the triple quotes ("""), leaving a string literal unbalanced.

@pitrou I think maybe something like that was happening. I am clear of that issue, but I still have the main problem of numbers "blowing up" (unlike @seibert):
+++ Using numba (nopython=True) +++
test_vectors
[[ 0.09524367  0.41334025]
 [ 0.47406863  0.76541789]
 [ 0.43513096  0.84736553]
 [ 0.60984144  0.2843297 ]
 [ 0.12754659  0.80403365]
 [ 0.62322453  0.35205619]
 [ 0.80542717  0.77141916]
 [ 0.66709991  0.07176163]
 [ 0.32112034  0.81341934]
 [ 0.79102161  0.22363943]]
----------------
test_vectors_normalized
[[ -9.86830992e+148  -9.86830992e+148]
 [ -9.86830992e+148  -9.86830992e+148]
 [ -9.86830992e+148  -9.86830992e+148]
 [ -9.86830992e+148  -9.86830992e+148]
 [ -9.86830992e+148  -9.86830992e+148]
 [ -9.86830992e+148  -9.86830992e+148]
 [ -9.86830992e+148  -9.86830992e+148]
 [ -9.86830992e+148  -9.86830992e+148]
 [ -9.86830992e+148  -9.86830992e+148]
 [ -9.86830992e+148  -9.86830992e+148]]
+++ Using python alone +++
test_vectors_normalized
[[ 0.22454045  0.97446477]
 [ 0.52654611  0.85014657]
 [ 0.45680245  0.88956817]
 [ 0.90633285  0.42256451]
 [ 0.15667433  0.98765032]
 [ 0.87068319  0.49184426]
 [ 0.72218908  0.69169569]
 [ 0.99426381  0.10695548]
 [ 0.36719993  0.93014204]
 [ 0.9622808   0.27205821]]
----------------

This sounds like a memory management issue:
>>> struct.unpack("d", b"\xde"*8)
(-9.868309920863368e+148,)

(0xDE is the byte we write into memory when we deallocate it)

@pitrou Could you give some guidance as to how I could resolve this issue then?

I'm not sure. I think reducing the number of function indirections may solve it. Or you can pass the output array as an explicit parameter to the main function, instead of calling np.empty().
In any case, it's a bug in Numba, so we'll have to solve it...

I have identified the problem and have a fix.  PR coming soon.

That does it!


CallFunction seems to require extra argument which is not documented.

I’m trying to use c# sample. I need to get the function from the script file and execute it with specific arguments. My script is
var f1= function foo(x, y) {
	return x + y;
}

My code is:
JavaScriptContext.RunScript(script);
var f1 = JavaScriptValue.GlobalObject.GetProperty(JavaScriptPropertyId.FromString("f1"));
var result = f1.CallFunction(JavaScriptValue.FromInt32(1), JavaScriptValue.FromInt32(2));

I expect code to return value of type number with value 3. It returns NaN instead.
I’ve spent quite a bit of time trying to understand this and it looks like CallFunction expects some additional argument. If I add any value (e.g. NULL as the first argument), everything works as expected.
Is this how it is supposed to work? What is the meaning of this extra argument?
Note addition of JavaScriptValue.Null
JavaScriptContext.RunScript(script);
var f1 = JavaScriptValue.GlobalObject.GetProperty(JavaScriptPropertyId.FromString("f1"));
var result = f1.CallFunction(JavaScriptValue.Null, JavaScriptValue.FromInt32(1), JavaScriptValue.FromInt32(2));

Jscallfunction expects global object (https://msdn.microsoft.com/en-us/library/dn249675(v=vs.94).aspx)
to be passed as the first argument in this case. I believe it is supposed to be the object which holds the function being called.

Think of it as Function.prototype.call, which requires a thisArg as a first argument.

Thank you for the quick response!


Empty enum produces warning

The following code:
#[derive(Debug, diesel_derive_enum::DbEnum, diesel::SqlType)]
pub enum A {}

will lead to compiler warning:
warning: unreachable expression
 --> src/lib.rs:1:17
  |
1 | #[derive(Debug, diesel_derive_enum::DbEnum, diesel::SqlType)]
  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |                 |
  |                 unreachable expression
  |                 any code following this expression is unreachable

Particularly, if expand the macro issue is clearly seen at ToSql<AMapping, DB>:
impl<DB: Backend> ToSql<AMapping, DB> for A {
    fn to_sql<W: Write>(&self, out: &mut Output<W, DB>) -> serialize::Result {
        match *self {}
        Ok(IsNull::No) // <- that one is unreachable
    }
}

Hmm. What do you think should happen with an empty enum, hard failure?

Well, I actually found it out by an accident, but probably it can be useful with "never" type, e.g. in postgres: CREATE TYPE NeverType AS ENUM (). Though, I'm not even sure if it works, but probably might be handy, if so.

Yes, I suppose the easiest thing to do it just remove the match block if there are no variants. No idea if that is really useful to anyone but it would remove the warning.


[Bug]:Hello! The header conflicts with other extensions after returning to the default style.

Bug Description
Hello! The header conflicts with other extensions after returning to the default style.
Please see:

The best performance should be:

Windows 10
Extend latest version
Relevant Screenshot
Hello! The header conflicts with other extensions after returning to the default style.
Please see:

The best performance should be:

Windows 10
Extend latest version
To Reproduce
Hello! The header conflicts with other extensions after returning to the default style.
Please see:

The best performance should be:

Windows 10
Extend latest version
Sample Text
No response
Obsidian Version
1.37
Installer Version
1.37
In which mode(s) does the problem occur? (if applicable)

[x] Source (Edit)
[x] Reading (Preview)
[x] Live Preview

Which operating system?

[ ] macOS
[ ] Linux
[x] Windows
[ ] iOS
[ ] Android

Checklist

[X] I updated to the latest version of the theme (Settings → Appearance → Check for updates).
[X] If your installer version is much lower your app version, you should update it by re-downloading Obsidian from the Obsidian website. The installer version can be seen in the Obsidian settings (About → App → Installer Version).
[X] I made sure that the issue is related to this theme by checking that the problem does not occur with the default theme.
[X] In case I am missing an UI element, I have checked that it cannot be re-enabled with the Style Settings plugin.
[X] My issue concerns Obsidian version 1.0+ and I am not using the Legacy Editor (CM5). (Older Obsidian versions and the Legacy Editor are not supported by this theme anymore.)
[X] This issue concerns the theme in general and is not related to a specific plugin, for which there is the plugin-support form.

The problem occurs at:
source mode
reading mode
live preview mode
Windows 10
Extend latest version
Obsidian 1.37

The background colors of number 1 and number 2 do not match

please open separate bug reports for each bug
please state which plugin is creating the icon, since it does not appear to be a default icon. Otherwise, it is not possible to do anything about it
please do not fill your post with copypaste of the same content, it makes bug reports hard to read


Inverse mutation testing

Mutation testing checks that some code (the tests) breaks if some other code changes its behavior. Inverse mutation testing is a term that I came up with, describing checking that some code (downstream dependencies) does not break when some other code (library) changes behavior. This is useful for situations where a library does not want to guarantee specific behavior. A typical example might be Debug implementations in Rust.
We can provide this to our users by adding a cfg switch that randomly changes behavior which we do not consider stable. E.g. Debug implementations producing gibberish.
If std had this feature available it might have had saved some shitcoin that relied on which element is returned from binary_search when there are multiple elements where Eq returns true. This incident gave me the idea to come up with a solution.
I can't think of many other examples found in our crates right now but another that comes to mind is outputting a different type from std::error::Error::source of BitcoinconsensusError. (Because changing bitcoinconsensus version changes the type.)
What do you think? Can you come up with other examples?

I like the idea in principle. Though I think it would wind up polluting the codebase too much, and for things like "changing the return value of binary_search when it's ambiguous" it'd be hard to identify opportunities like this, and then also hard to implement them algorithmically.

I think it's easy for the examples I provided (we can use a macro) and maybe there won't be too many others. This needs a thorough review of the crates.

In principle great, in practice too high hassle to benefit ratio, IMO.


Warn in console when using MySQL

Just started setting up LuckPerms for my bungee network with MySQL after using Pex (not with MySQL though) for years. So i am not familar with LP yet, so sorry if i am just missing something. But i get this warning on startup.
10.12 18:07:07 [Server] WARN Sun Dec 10 18:07:07 EST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

If you searched the issue tracker you would have came across this https://github.com/lucko/LuckPerms/issues/285#issuecomment-301232140

Sorry, when I looked at the issues I forgot about the "is:open" filter. Also I did some more research and found that if I added the following it would no longer have the warning. This may help  others looking for a fix.
Note the placement of "?useSSL=FALSE"
data:
  #Uses standard DB engine port by default
  #MySQL: 3306, PostgreSQL: 5432, MongoDB: 27017
  #Specify as "host:port" if differs
  address: <IP_ADDRESS>

  database: mydatabase?useSSL=false
  username: myusername
  password: mypassword

The correct fix for this is to specify a property.
data:
  pool-settings:
    # This setting allows you to define extra properties for connections.
    properties:
      useSSL: false

The correct fix for this is to specify a property.

Perhaps add this to https://github.com/lucko/LuckPerms/wiki/FAQ#luckperms-cannot-connect-to-my-mysql-server or modify the config files within Luckperms with a remark/comment @lucko


Error in saml settings

Hi,
After spending some time with Digicert support - the correct info for "Basic SAML Configuration" are not correct in this guide
The correct settings under Basic SAML Configuration are
Identifier (Entity ID)
https://www.digicert.com/account/sso/metadata
Reply URL (Assertion Consumer Service URL)
https://www.digicert.com/account/sso/metadata
Sign on URL
https://www.digicert.com/account/sso/"federationname"/login
Currently only identifier is listed and that errors out
Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2a9af381-56ca-f43d-ca50-d0d113a94a4b
Version Independent ID: c90a7a78-4e14-59bf-e546-2907a64272ba
Content: Tutorial: Azure Active Directory integration with DigiCert
Content Source: articles/active-directory/saas-apps/digicert-tutorial.md
Service: active-directory
Sub-service: saas-app-tutorial
GitHub Login: @jeevansd
Microsoft Alias: jeedes

Hello @wUEZRs , thanks for taking time to share your valuable feedback! We are taking a look into this and will get back to you soon.

@v-hagamp and @v-rant  Can you please confirm these patterns with Digicert and then we can get these updated in the docs?

#please-close


JCL-394: AccessRequest builder

This adds the implementation code for a builder pattern for access requests. In particular, this makes it possible to set an issuance date in the future, which is otherwise not possible in the current API.
The first commit just adds the boilerplate code for the new AccessRequest.RequestParameter class and connects that to the AccessGrantClient.requestAccess method (adding a new overload). The getIssuedAt value is then propagated through the rest of the methods (e.g. grantAccess() and denyAccess()).
Note: I re-ordered the parameters for some internal (private) methods to group the arguments into a more logical order. This does not affect the public API.
Some items still needed here include:

[x] javadocs
[ ] tests

The way this would be used is like so:

var req = AccessRequest.RequestParameters.newBuilder()
        .recipient(agent)
        .resource(uri)
        .modes(modes)
        .purposes(purposes)
        .expiration(expiration)
        .issuedAt(issuance).build();

agclient.requestAccess(req);

Looks good to me.
CI fails because of other known CI problems. (once we merge my PR, we should see clearer any problem).

@NSeydoux you are right, we're missing a static method: newBuilder(), which I would have seen as soon as I started writing tests, and which I will get to today :-)


Update munit-cats-effect-3 to 1.0.5

Updates org.typelevel:munit-cats-effect-3 from 1.0.1 to 1.0.5.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "munit-cats-effect-3" } ]

labels: test-library-update, semver-patch

Superseded by #447.


health-server prober bugfixes

This PR fixes 2 separate bugs in the health-server prober:
The 1st commit resets the cache if a client-side error is encountered:
    reset health-server's node cache on error

    The health-server prober maintains a cache of the nodes in the cluster
    to avoid requesting the entire list of cluster nodes on each interval.
    When calling the daemon API's /cluster/nodes endpoint, it subscribes as
    a client so that it only receives a diff since the last request, which
    it applies to the cache.

    If a client-side error is encountered when making this request, the
    cache is not updated and events are lost since the server is unaware.

    This commit flushes the prober's node cache if any error occurs and sets
    its clientID to 0. On the subsequent request, the prober will be
    subscribed as a new client and receive the full list of nodes.

The 2nd commit ensures we actually skip adding empty IP addresses to the prober's node cache:
    prevent adding empty IPs to health-server cache

    The logic in the prober.setNodes function should skip adding nodes to
    the prober's cache if the IP address is empty. This is dependant on
    resolveIP() returning a nil address if it is unable to resolve the IP,
    however this will only happen if net.ResolveIPAddr returns an error. In
    the case that the address is an empty string, net.ResolveIPAddr will
    return a pointer to an empty net.IPAddr{} and error will be nil. This
    allows a node with no IP addresses to be added to the cache.

    server.resolveIP() has been updated to skip the address if it is empty.
    This prevents the prober from trying to probe and report on the empty
    addresses.

    The following is the output of `cilium-health status` for a faux
    CiliumNode with no addresses before and after this commit (snipped for
    brevity):

    Before:
    ---
    root@kind-worker:/home/cilium# cilium-health status
    Probe time:   2023-12-08T14:58:11Z
    Nodes:
      kind-kind/kind-worker2:
        Host connectivity to :
          ICMP to stack:   Connection timed out
          Secondary connectivity to :
            ICMP to stack:   Connection timed out
        Endpoint connectivity to <IP_ADDRESS>:
          ICMP to stack:   Connection timed out
          Secondary connectivity to fd00:10:244:1::c879:
            ICMP to stack:   Connection timed out
    ---

    After:
    ---
    root@kind-control-plane:/home/cilium# cilium-health status
    Probe time:   2023-12-08T14:44:35Z
    Nodes:
      kind-kind/kind-worker2:
        Endpoint connectivity to <IP_ADDRESS>:
          ICMP to stack:   Connection timed out
          Secondary connectivity to fd00:10:244:1::c879:
            ICMP to stack:   Connection timed out
    ---

Fix bugs in health-server that cause the state in the prober's cache to drift and allow nodes with empty IP addresses to be added.

/test

All seems good except for one unresolved conversation, is it blocking? https://github.com/cilium/cilium/pull/29745/files#r1431802011

@dylandreimerink thanks for pointing that out. Responded/resolved :+1:


awkward phrase

The phrase "Tagging and classifying the sensitive of assets" should probably be "Tagging and classifying the sensitivity of assets"

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

ID: e6c4be3e-1358-576a-fe23-c1de0b0d2cb6
Version Independent ID: 23a6ad98-f3b2-004a-0b03-316ead662272
Content: Function of cloud security policy and standards - Cloud Adoption Framework
Content Source: docs/organize/cloud-security-policy-standards.md
Service: cloud-adoption-framework
Sub-service: organize
GitHub Login: @JanetCThomas
Microsoft Alias: janet

Thanks for reporting - this issue is under review.  This is a Microsoft Internal DevOps Bug ID AB#282932

Resolved in PR to be released shortly: https://github.com/MicrosoftDocs/cloud-adoption-framework-pr/pull/840


Changed the filename for CSD

The app currently points to the wrong CSD filename. Small, one line fix.

The file on the website is called CSD-100R, cf https://github.com/cosmo-epfl/chemiscope/tree/gh-pages. However the name changed recently-ish (as part of ef6058984224c94468867670a7e4f2690974487a), so you may have an old version of it locally. You should be able to update by running npm run download-example-input again.


FrameCryptorStateMissingKey and Smoothness

I tried to use encryption and decryption functions in my live streaming project and found two problems. Can you help me with that?

On iOS platform, when viewers watch the anchor, they must first encrypt_enableEncryption before decrypting_enableDecryption in order to decrypt successfully. Otherwise, an error FrameCryptorStateMissingKey will occur.
When viewers encrypt and then successfully decrypt the video stream, the picture will freeze and the smoothness will decrease from 30 frames to 3 frames. If not encrypted, the picture will be smooth.

Ah, thanks for finding these bugs @garfieldbear333 , do you have a minimal repro code? I may need to use debug compilation to track what is going on inside libwebrtc.

On iOS platform, when viewers watch the anchor, they must first encrypt_enableEncryption before decrypting_enableDecryption in order to decrypt successfully. Otherwise, an error FrameCryptorStateMissingKey will occur.

The decrypted code here returns the logic of missingkey,
https://github.com/webrtc-sdk/webrtc/blob/e2ee/aes-key-derive-using-pbkdf2/api/crypto/frame_crypto_transformer.cc#L491-L505
I guess because the unencrypted frame does not contain the correct keyindex in frameTrailer.
   rtc::Buffer frameTrailer(2);
   frameTrailer[0] = date_in[date_in. size() - 2];
   frameTrailer[1] = date_in[date_in. size() - 1];
   uint8_t ivLength = frameTrailer[0];
   uint8_t key_index = frameTrailer[1];

The difference between demo and MediaSever in WebRTC is that demo uses local peerconnection to create offer and set answer, remote peerconnection creates answer and sets offer. However, in live streaming projects, MediaSever is used where both the host and the audience create an offer to the server which returns an answer to establish a connection. The code settings are almost the same as demo, only that peerconnection has a different responsibility1

When decrypting, frameCyrptor.setKeyIndex(0) has already been set. If the decryption party does not encrypt first, the decryption will still fail. This problem only occurs on the iOS platform and not on Android.
`
void _enableDecryption({bool video = false, bool enabled = true}) async {
var receivers = await localPeerConnection?.receivers;
var kind = video ? 'video' : 'audio';
receivers?.forEach((element) async {
if (kind != element.track?.kind) return;
var trackId = element.track?.id;
var id = kind + '' + trackId! + '_receiver';
  if (!_frameCyrptors.containsKey(id)) {
    var frameCyrptor =
        await _frameCyrptorFactory.createFrameCryptorForRtpReceiver(
            participantId: id,
            receiver: element,
            algorithm: Algorithm.kAesGcm,
            keyManager: _keyManager!);
    frameCyrptor.onFrameCryptorStateChanged = (participantId, state) =>
        print('DE onFrameCryptorStateChanged $participantId $state');
    _frameCyrptors[id] = frameCyrptor;
    await frameCyrptor.setKeyIndex(0);
  }

  var _frameCyrptor = _frameCyrptors[id];
  if (enabled) {
    await _frameCyrptor?.setEnabled(true);
    await _keyManager?.setKey(participantId: id, index: 0, key: aesKey);
  } else {
    await _frameCyrptor?.setEnabled(false);
  }
  await _frameCyrptor?.updateCodec(
      kind == 'video' ? "VP8" : "OPUS");
});

}`


Update go micro v3

etcd registry requires replacing:// taken from https://github.com/asim/go-micro/blob/master/plugins/registry/etcd/go.mod#L14-L16
go.etcd.io/etcd/api/v3 => go.etcd.io/etcd/api/v3 v3.0.0-20210204162551-dae29bb719dd
go.etcd.io/etcd/pkg/v3 => go.etcd.io/etcd/pkg/v3 v3.0.0-20210204162551-dae29bb719dd

micro/cli/v2 cannot be replaced with urfave/cli because the micro v3 interfaces use micro/cli/v2 for flags
removed ocis-pkg http server option.Hander -> use micro.RegisterHandler(service.Service, handler) instead to resemble the grpc server
[x] upstream pr https://github.com/asim/go-micro/pull/2126
[x] tons of protobuf warnings:2021/02/17 16:52:07 WARNING: proto: extension number 1042 is already registered on message google.protobuf.MethodOptions
A future release will panic on registration conflicts. See:
https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict

maybe regenerate all protobuf? or use another version of google.golang.org/grpc v1.29.1
[x] check if we can use micros prometheus wrapper instead of the one in ocis-pkg, use it for http & grpc

@C0rby  maybe the domain is not set up correctly ?
5804 | 16) Scenario: closing media viewer is possible (attempt 1, retried) # tests/acceptance/features/webUIPreview/imageMediaViewer.feature:65
5805 | ✔ Before # tests/acceptance/setup.js:28
5806 | ✔ Before # tests/acceptance/setup.js:32
5807 | ✔ Before # tests/acceptance/setup.js:36
5808 | ✔ Before # tests/acceptance/setup.js:46
5809 | ✔ Before # tests/acceptance/setup.js:68
5810 | ✔ Before # tests/acceptance/setup.js:75
5811 | ✔ Before # tests/acceptance/stepDefinitions/filesContext.js:16
5812 | ✔ Before # tests/acceptance/stepDefinitions/generalContext.js:248
5813 | ✔ Before # tests/acceptance/stepDefinitions/generalContext.js:287
5814 | ✔ Given user "user1" has been created with default attributes # tests/acceptance/stepDefinitions/provisioningContext.js:157
5815 | ✔ Given user "user1" has uploaded file "testavatar.jpg" to "testavatar.jpg" # tests/acceptance/stepDefinitions/filesContext.js:98
5816 | ✔ And user "user1" has logged in using the webUI # tests/acceptance/stepDefinitions/loginContext.js:67
5817 | ✖ And the user has viewed the file "testavatar.jpg" in the media viewer using the webUI # tests/acceptance/stepDefinitions/previewContext.js:7
5818 | Timed out while waiting for element <//div[contains(@class,"uk-position-bottom-center")]/div[contains(text(),"testavatar.jpg")]> to be present for 20000 milliseconds. - expected "visible" but got: "not found" (20023ms)
5819 | at Proxy.waitForMediaViewerLoaded (/srv/app/web/tests/acceptance/pageObjects/FilesPageElement/mediaViewerPage.js:17:10)
5820 | at _callee$ (/srv/app/web/tests/acceptance/stepDefinitions/previewContext.js:11:26)
5821 | at runMicrotasks (<anonymous>)
5822 | at processTicksAndRejections (internal/process/task_queues.js:97:5)
5823 | - When the user closes the media resource using the webUI # tests/acceptance/stepDefinitions/previewContext.js:28
5824 | - Then the file "testavatar.jpg" should not be displayed in the media viewer webUI # tests/acceptance/stepDefinitions/previewContext.js:40
5825 | - And the user should be in the root directory on the webUI # tests/acceptance/stepDefinitions/filesContext.js:1246
5826 | ✔ After # tests/acceptance/stepDefinitions/provisioningContext.js:239
5827 | ✔ After # tests/acceptance/stepDefinitions/generalContext.js:299
5828 | ✔ After # tests/acceptance/stepDefinitions/generalContext.js:272
5829 | ✔ After # tests/acceptance/setup.js:110
5830 | ✔ After # tests/acceptance/setup.js:106
5831 | ✔ After # tests/acceptance/setup.js:102
5832 | ✔ After # tests/acceptance/setup.js:95
5833 | ✔ After # tests/acceptance/setup.js:86
5834 | ✔ After # tests/acceptance/setup.js:54
5835

@C0rby locally I can reproduce the thumbnails not working when using the owncloud driver and setting the THUMBNAILS_WEBDAVSOURCE_BASEURL="https://cloud.ocis.test/remote.php/webdav/" which is my url ...
https://github.com/owncloud/ocis/pull/1670/commits/89b06defa55ac63311d55101aa8d304f5038ee6c should fix it


Update raylib-nuklear.h

When building raylib with the flag SUPPORT_CUSTOM_FRAME_CONTROL, the function GetFrameTime becomes broken.
So I propose including a variation of UpdateNuklear that does not depend on GetFrameTime.

I think it makes sense to add it as an argument to UpdateNuklear()...
When 0, grab it from FrameTime()?

Or name it UpdateNuklearEx() to match the raylib naming schemee

I think it makes sense to add it as an argument to UpdateNuklear()... When 0, grab it from FrameTime()?

Yeah, I think that's a better default, even though it's a breaking change.

Renamed it to UpdateNuklearEx() to match raylib naming. Thanks a lot!


Updated documentation for vulkan_context.cpp

4.x Compliant
This is my first PR please let me know if there are any changes made here that do not comply with documentation standards or if there are any other changes that I should have made to make it more compliant to standards.
I look forward to contributing more in any way that I can. Until I understand the code base better I'll likely stick to fixing comments/documentation.

3.x Compliant

The Vulkan renderer isn't present in 3.x, so this can't be cherry-picked to 3.x.

Thank you for catching that I changed 3.x to 4.x because of the Vulkan renderer. I forgot about Vulkan not being included in version 3.x.

This PR needs a squash before it can be accepted.

I don't know if I squashed it correctly.

@QuinnLeavitt At the top of the PR it says "Commits 12". If you squash correctly, it should say "Commits 1".

I can't figure out how to use git rebase to squash my commits, it was telling me there were a bunch of conflicts between files.  What does everyone normally use to squash their commits?

@QuinnLeavitt Either read this article, or follow the instructions in this video.

Git kraken actually won't let me rebase it because I started rebasing in git bash but I messed the rebase up and it didn't complete correctly and git --abort now doesn't abort the rebase.

@QuinnLeavitt If you give me write access to your repo, I can fix the problem for you. Then you can follow the guides if you make future PRs.

You should have an invite to collaborate now, I really appreciate all your help and I'll make sure I follow those guides and learn to contribute better.

Needs a rebase after VRS PR.

@QuinnLeavitt You protected your master branch, so I can't push to this PR anymore.

Superseded by https://github.com/godotengine/godot/pull/63115


SPMP and Requirements Document Changes

These are the changes Dr. Brown told us to make to the SPMP and Requirments Document:
SMPM

We use the term Google API in term of user knowledge it should just be Google
Change everything to be in the present tense
Make sure we are only using the term Group Admin throughout the SPMP
Make sure Google is always spelled with an upper case G (5.1)
Change class days to Monday and Wednesday (5.2)
We also want to ensure we are using the languages best for for what we are doing and have a solid reason as to why we are using them

Requirements

Put all definitions and lists in alphabetical order (1.3) (Possibly more)
Use approrate tags for list and definitions
Change Post definition to Post: Adds event... (1.3)
Create some use case diagrams (2.2)

For the SPMP I created a pull request which involves the following updates aimed at fixing these issues:

Looked for future tense statements and changed them to present tense.
Made sure we are only using one term Group Representative throughout the SPMP
Changed class days to Monday and Wednesday (5.2)

I changed the Requirements doc so that all definitions and lists are in alphabetical order, we're using the appropriate tags for lists and definitions, and the Post definition in 1.3 is changed.
I'll look into the use case diagrams for 2.2


Use @condenast/typescript config and tsc script to build packages.

Moved contents of tsconfig.json and tslint.json to CondeNast/typescript, and use dirty-tsc.sh to transpile packages.

Sadness.


Revert "[Backport] Fix issues/pr list broken when there are many repositories (#8409)"

Reverts go-gitea/gitea#8418

make lgtm work


Fixed the PSO macro to use scissor properly

Probably fixes https://github.com/PistonDevelopers/conrod/pull/710
TODO: port to master branch

Nice!

@bvssvni please publish gfx-0.10.2 if you can, from this branch. The version is already bumped.

@kvark Seems it was bumped to 0.10.1 instead of 0.10.2. There is a 0.10.1 version on crates.io.

0.10.1 was published in this PR https://github.com/gfx-rs/gfx/pull/912

@bvssvni yeah, I didn't realize 0.10.1 is already published, so I bumped the version again right after this PR.

@kvark Unfortunately the v0.10 branch does not contain the fix https://github.com/gfx-rs/gfx/pull/912/files#diff-e76accb5ddad96024c8ebca0ad05ee68R116, so the code will break downstream.

wait, aren't you using 0.10 version from crates.io?


Remove support for testing under Oracle JDK 7

Travis no longer supports Oracle JDK 7 because it has reached end of
life: https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images

This PR is stale.  Rewrite-clj v1 runs on GitHub Actions.

This PR is stale.  Rewrite-clj v1 runs on GitHub Actions.


Absolutely no help what so ever!!!!!!!!!

this article was not helpful
-3000000/10
Would not rate.

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

ID: 48d0accf-fbb6-26c7-6e37-254a76254e31
Version Independent ID: a9428164-69ce-cc7b-e136-e562e5f186c8
Content: Data type mismatch in criteria expression. (Error 3464)
Content Source: access/Concepts/Miscellaneous/data-type-mismatch-in-criteria-expressionerror-3464.md
Product: access
GitHub Login: @o365devx
Microsoft Alias: o365devx

this article is not helpful microsoft

give me free stuff

or i will sue

jokes but give me free stuff

Hello?

Is anyone here?

Wait is this the facebook?

google

google

why isnt this google working?

i remember the days when people had to go to the library to find information

now they just ask the googlle for answers

and my wife is dead so google is my company


Update: Adding a favicon to the site!!

#32 solved!!

Thanks once again improving the feature of this repo through your contribution!
keep contributing🚀


chore(wmg): Update expression summary builder to use tiledbsoma solution when X_sparse_iter is deprecated

Context

@atarashansky - please fix this ASAP, as I'm about to remove the X_sparse_iter (it has been deprecated for several months).


Error 401 during library init

Hi,
the creation of the TrenitaliaBackend class fails with an HTTP 401 error,
is some kind of additional authentication required?
>>> tb = TrenitaliaBackend()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "./trenitalia.py", line 84, in __init__
    self._authenticate()
  File "./trenitalia.py", line 116, in _authenticate
    r.raise_for_status()
  File "/usr/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://gw71.mplat.trenitalia.it:444/Trenitalia50/apps/services/api/Trenitalia/android/init

Looks like Trenitalia changed something in their API, gonna look into it


CSS isn't re-injected after state change when single page mode is enabled

I'm working on a project that is using ui-router. I want to use css-injector for state specific views.
The injector successfully injects my css files when I first land on a page. However, if I navigate away and then back to a page, the css is no longer injected. A hard reload fixes the issue.
Has anyone dealt with a similar issue? Does anyone have any ideas on how to resolve this?

Possibly the CSS is getting cached by the browser.
A temporary solution would be to add a timestamp querystring to the css file so that its fetched fresh from server each time.

Hi,
Sorry, this repository is not maintained anymore.
One of the fork is probably more appropriate. If you know one, let me know I will put the link in the readme.
Thanks


/dev/console Permission denied

Unsure what I did (or what happened) that broke my Git integration but I now get a: sh: /dev/console: Permission denied when I try to make a commit. I don't exclude this being my fault but I tried everything to fix it, and have already done the following (to no avail):

uninstalled / reinstalled Git bundle
uninstalled / reinstalled TM command line tools
uninstalled / reinstalled Git on my system (using brew)

Note that this error doesn't occur when the directory is clean (because I've committed using command line) and the interface shows the correct message (that the directory is clean).
I'm using version 2.0-beta.7.1 of TextMate
Any idea what may be causing this?

Try run echo foo > /dev/console in a terminal.
If it gives the same error, try reboot your machine.
On 29 Mar 2015, at 13:11, Charles Fracchia wrote:

Unsure what I did (or what happened) that broke my Git integration but
I now get a: sh: /dev/console: Permission denied when I try to
make a commit. I don't exclude this being my fault but I tried
everything to fix it, and have already done the following (to no
avail):

uninstalled / reinstalled Git bundle
uninstalled / reinstalled TM command line tools
uninstalled / reinstalled Git on my system (using brew)

Any idea what may be causing this?

Reply to this email directly or view it on GitHub:
https://github.com/textmate/git.tmbundle/issues/35

Thanks a lot. Rebooting did the trick.
Still not sure what happened but thanks for the help.

On Mar 29, 2015, at 06:44, Allan Odgaard<EMAIL_ADDRESS>wrote:
Try run echo foo > /dev/console in a terminal.
If it gives the same error, try reboot your machine.
On 29 Mar 2015, at 13:11, Charles Fracchia wrote:

Unsure what I did (or what happened) that broke my Git integration but
I now get a: sh: /dev/console: Permission denied when I try to
make a commit. I don't exclude this being my fault but I tried
everything to fix it, and have already done the following (to no
avail):

uninstalled / reinstalled Git bundle
uninstalled / reinstalled TM command line tools
uninstalled / reinstalled Git on my system (using brew)

Any idea what may be causing this?

Reply to this email directly or view it on GitHub:
https://github.com/textmate/git.tmbundle/issues/35

—
Reply to this email directly or view it on GitHub.


Add flag to enable / disable temperature compensation of pressure.

it would make the math faster.
Needs investigation what the error will be.
(rather simple)

on the other hand, added offset functions to improve accuracy.

Providing an adjustable device-specific (more situation-specific) pressure offset is sufficient in my opinion. Furthermore, not providing temperature compensation gives users clarity what to expect from this library.
Measured pressure has always to be calibrated to local-/daytime-specific pressure, because GY-63/MS5611 with high-resolution readings is often used as altimeter and small variance in pressure can have huge impacts to altitude.
Derivation of relative altitude (depending on absolute altitude, pressure, temperature, humidity and whatelse) is very complex. See "International Standard Atmosphere" (ISA). In reverse it's impossible to provide an accurate pressure, accurate absolute altitude or accurate relative altidute steps with only barometric pressure and temperature. In other words, temperature compensation of pressure is also dependent on absolute altitude
Calculations with absolute/relative altitude follow rulesets and formulas specific to the use case (usage in static altitude ./. slightly changed ./. significantly changed altitude), often mixed in some kind of fuzzy logic with other altitude sources (GPS, geodey, etc.) and should therefore be done in external applications or separated libraries. Otherwise it's unclear, which parts are implemented in MS5611 library.
Also the measured temperature is not reliable in some conditions.

On the other hand: If it's simple and optional, why not.

I have seen several libraries (*) or just programs for the sensor. Some of them have a similar flag and the only reason I can think of is that it will be faster. How much faster and if it is worth to trade precision for that is up to the user / application.
Think most users choose this sensor as it has that compensated pressure.
Yes implementation is simple and extra footprint only a few bytes.
*) Looked at other implementations as the SPI version of this library https://github.com/RobTillaart/MS5611_SPI  has a side effect of internal heat build up. Not understood what causes it.

faster because the library would do 50% or so less floating point operations.

Do you mean that a temperature-compensated pressure is provided by the MS5611 chip itself?

unfortunately not.

Anything else regarding (abs/rel) altitude should be calculated outside the library.

agree

O.K.
Let's then discuss the the formula/algorithm.

It is in the datasheet.

the flag would enable the 2nd order compensation -> this part line 185++
would skip 19 floating point operations (compiler may optimize some of them)
  // SECOND ORDER COMPENSATION - PAGE 8/20
  // COMMENT OUT < 2000 CORRECTION IF NOT NEEDED
  // NOTE TEMPERATURE IS IN 0.01 C
  if (_temperature < 2000)
  {
    float T2 = dT * dT * 4.6566128731E-10;
    float t = (_temperature - 2000) * (_temperature - 2000);
    float offset2 = 2.5 * t;
    float sens2 = 1.25 * t;
    // COMMENT OUT < -1500 CORRECTION IF NOT NEEDED
    if (_temperature < -1500)
    {
      t = (_temperature + 1500) * (_temperature + 1500);
      offset2 += 7 * t;
      sens2 += 5.5 * t;
    }
    _temperature -= T2;
    offset -= offset2;
    sens -= sens2;
  }
  // END SECOND ORDER COMPENSATION

Sorry, there was a fundamental misunderstanding, which was my fault, because I never read the datasheet beyond the i2c topics. I thought that the sensor would spit out compensated pressure and temperature values (based on factory calibration), and calibration values are just for fun.
First, lets start with the latest version af the datasheet. The document I'm relying is v 06/2017 and has 22 pages and the pressure and temperature calculation is on page 8/22.
https://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Data+Sheet%7FMS5611-01BA03%7FB3%7Fpdf%7FEnglish%7FENG_DS_MS5611-01BA03_B3.pdf%7FCAT-BLPS0036
Page 6:
(I think there is a typo...)

FACTORY CALIBRATION
Every module is individually factory calibrated at two temperatures and two pressures. As a result, 6 coefficients necessary to compensate for process pressure variations and temperature variations are calculated and stored in the 128-bit PROM of each module. These bits (partitioned into 6 coefficients) must be read by the microcontroller software and used in the program converting D1 and D2 into compensated pressure and temperature values.

Page 7:

COMMANDS
The MS5611-01BA has only five basic commands:

Reset
Read PROM (128 bit of calibration words)
D1 conversion
D2 conversion
Read ADC result (24 bit pressure / temperature)

Page 8:

PRESSURE AND TEMPERATURE CALCULATION

Page 9:

SECOND ORDER TEMPERATURE COMPENSATION

Page 20:

Diagram of Temperature Error Accuracy vs temperature (typical)

(which is a clear argument for 2nd level compensation, because there are many use cases for temperatures below 20 °C)
Summary:
The library currently does the calculations described on page 8, right?
The optional flag enables the 2nd order compensation. Your code looks correct so far. I'm not sure, if the rounded value of 1 / 2^31 (0,0000000004656612873077392578125 rouded to 4.6566128731E-10) may have a significant impact.
Where/when would be the offset functions applied, if 2nd order compensation is enabled by flag? After the calculations on page 8 or after 2nd order compensation on page 9? Without flag enabled it is applied after basic calculation on page 8, right? An application generally after the last calculation seems plausible to me.
What is the difference between D1/D2 and ADC reading? I can't understand this from the datasheet.

The library currently does the calculations described on page 8, right?

yes

The optional flag enables the 2nd order compensation. Your code looks correct so far. I'm not sure, if the rounded value of 1 / 2^31 (0,0000000004656612873077392578125 rouded to 4.6566128731E-10) may have a significant impact.

The impact will be around the 6th or 7th decimal for float (32 bit)
Only platforms that support double (64 bit) would have higher precision.
As the pressure itself is only 6 decimals there is no need to do the math in double..
BTW there is a PR - https://github.com/RobTillaart/MS5611/pull/28

Where/when would be the offset functions applied

The offsets will be added after last calculations, so after the 2nd order compensation..
I'm working on a SPI version of the lib and it is about 2.5°C too high due to internal heating (no cause found yet). I can compensate for that with the offset.
Because the temperature is too high, the pressure is also slightly incorrect as the 2nd order compensation (2OC) is incorrect.
(it is probably better to add the Temperature offset before the 2OC of pressure, needs testing ==>  future)

What is the difference between D1/D2 ?

_D1 is the raw uncalibrated pressure.
_D2 is the raw uncalibrated temperature.
These refer to the names as used in the datasheet.

I still don't understand the saving of floating point operations.

Some applications prefer more often data than precise data, seen that for many different sensors, Some people switch between modes, to save time and possible even energy.
I still have to quantify how much time is gained, I might be only 100-250 us per call but if that call is done 100x per second it add up.
It also gives some compatibility with other libraries that support this flag.
Default the library will still be using the 2OC to be backwards compatible AND because I think most people choose this sensor because of its precision.
Hope this answers the questions a bit.

What is the difference between D1/D2 [and ADC]?

Sorry, this question was unfinished. My interest was what is the difference between D1/D2 and ADC. Are there any pressure/temparature values in the return value of ADC read command (page 7)?
Some more thoughts on calculation precision:
I have two sensors and I'm wondering that pressure values (currently calculated without 2nd order compensation) are 1) so different and 2) so far from expected values, while temperature readings/calculations are so close (both to each other and to expected values). Temperature differs by less than 0.05 °C.

The two sensors differ by 1.6 mbar.
In comparison to official wheather stations (nearby, measured on a day with a pressure variance of 0,5 mbar) one sensor differs by 5,3 mbar and the other sensor differs by 6,9 mbar (less than "official").
Error consideration: I measured indoor (21 °C) close to the opened window, while official station's outdoor temperature was 5 °C. I have to investigate this outdoor, but the result would not explain the difference of the two sensors.

Is it possible that limitations in 32 bit data types lead to rounding errors? See notes on page 8 (4th column => "Maximal (bit) size of intermediate result during evaluation of variable"). Also section Calculate temperature compensated pressure is above 32 bit (intermediate results) and [2][3][4] min and max have to be defined.
I don't have deep C++ skills, but as far as I can see the library uses float types in calculation which give a wider range numbers, while bit sizes on page 8 are based on int type. (This is confusing, because there are divisonal operations.)

Default the library will still be using the 2OC to be backwards compatible AND because I think most people choose this sensor because of its precision.

I agree. Apart from calculation speed, do you think there is still potential to increase accuracy and/or precision in library's math?

Are you sure that the +2.5°C in SPI usage is caused by internal heating? HArd to imagine. Maybe also a math issue?

Are you sure that the +2.5°C in SPI usage is caused by internal heating? Hard to imagine. Maybe also a math issue?

Pretty sure something is heating up and affects the temperature sensor when using SPI mode.
Not 100% sure it is in the MS5611 itself, it could be another component on my GY-63 board.
I need a thermal camera to see where heat forms, to confirm it is internal or not.
Googled quite a bit however there is very little information about using the SPI interface, and even less on heat effects.
Do not have a second board to confirm it is in the SPI mode or it is a faulty board.
However in I2C mode I get stable readings so if there is a fault in the board it is limited to SPI.

Maybe also a math issue?

It is no math issue as the math is the same, and identical to the I2C library.
If I connect 3V3 ESP32 I have ~2.5 degrees rise,
if I connect 5V UNO I have  >10 degrees rise - too much to let it run for longer than 10 seconds.
The GY53 board has 3V3 level convertors to handle 5V connections,
but somehow the extra voltage the UNO provides causes a larger temp rise.
When I use the very same board in I2C modes on a 5V UNO I get a temperature within 1°C of my room thermostat and other temp sensors. Same for ESP32 and NANO 33 BLE.
Thus so far all tests points to a heating effect due to selecting SPI.

The two sensors differ by 1.6 mbar.

1.6 mbar is 100% within specs,
As 1 sensor can have 1.5 mbar error under best conditions, two can be between 0 and 3 mbar apart.
From datasheet

In comparison to official wheather stations (nearby, measured on a day with a pressure variance of 0,5 mbar) one sensor differs by 5,3 mbar and the other sensor differs by 6,9 mbar (less than "official").
Error consideration: I measured indoor (21 °C) close to the opened window, while official station's outdoor temperature was 5 °C. I have to investigate this outdoor, but the result would not explain the difference of the two sensors.

Factors to consider:

temperature indoor vs outdoor as you mentioned. At 21C the 2nd order compensation is not triggered while it at 5C it is.
humidity might affect the sensor (unknown)
altitude of your measurement vs weather station - https://en.wikipedia.org/wiki/Barometric_formula
A weather station often has moving air, seldom stationary air like in a house.
quality of the sensor,The fact that a manufacturer claims precision & accuracy is not proof it is.
I expect the weather station uses a more sophisticated sensor.

Best test is to go to the local weather station and place your setup besides theirs (as close as allowed).
Then you could see how their measurement and yours correlate.
With the offset functions you can "calibrate" your sensors to the weather station, or at least to each other (to some extend).

do you think there is still potential to increase accuracy and/or precision in library's math?

With the offsets a first step was made, it is just a linear offset.
If you are able to calibrate your sensor against the weather station, you could use my multimap code to handle non-linear mapping. Should not be in this library.

Thank you. I'll do some more testing (offset and 2OC) with 0.3.8, after merge of PR #28.
What is the provisioning process for Arduino IDE? Does the IDE access GitHub directly as a source or is there some kind of proxy in between?

The library manager is in between. It can take a few hours to a few days before new versions of libraries are seen. Never timed it

Please allow me one more question about your hash function:
// _deviceID is a simple SHIFT XOR merge of PROM data
_deviceID <<= 4;
_deviceID ^= tmp;

I googled around to understand what's happening there (bitwise left shifting an XORing with all PROM values) and found the Jenkins hash function (https://en.wikipedia.org/wiki/Jenkins_hash_function). Your hash function looks a little less complicated.
I want to write a similar function for creating an ID of the NANO itself. The following sketch
#include <ArduinoBLE.h>
void setup()
{
Serial.begin(115200);
while (!Serial);
}
void loop()
{
Serial.print("Device ID 0: ");
Serial.println(NRF_FICR->DEVICEID[0], HEX);
Serial.print("Device ID 1: ");
Serial.println(NRF_FICR->DEVICEID[1], HEX);
Serial.print("Device Address 0: ");
Serial.println(NRF_FICR->DEVICEADDR[0], HEX);
Serial.print("Device Address 1: ");
Serial.println(NRF_FICR->DEVICEADDR[1], HEX);
delay (5000);
}
produces following output:
Device ID 0: BB7C7490
Device ID 1: 9654A8D0
Device Address 0: 5DD0E421
Device Address 1: F58A652A
Which hash function would you recommend?
Von: Rob Tillaart @.>
Gesendet: Dienstag, 25. Januar 2022 15:32
An: RobTillaart/MS5611 @.>
Cc: Mario Krauss @.>; Comment @.>
Betreff: Re: [RobTillaart/MS5611] Add flag to enable / disable temperature compensation of pressure. (Issue #25)
Merged 0.3.8
—
Reply to this email directly, view it on GitHubhttps://github.com/RobTillaart/MS5611/issues/25#issuecomment-1021243060, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASV4TM2W6D2H6O6X2Y74IBLUX2X65ANCNFSM5MQHPQFA.
You are receiving this because you commented.Message ID<EMAIL_ADDRESS>

How can one access the device ID of NANO? I found nothing else than the FICR values. Should be unique enough for my requirements, which are likewise to MS5611: Distinguish between different devices when rolling out 98% same code on multiple devices.
Am 25.01.2022 um 19:49 schrieb Rob Tillaart @.***>:

My hash is indeed simple.
I want to write a similar function for creating an ID of the NANO itself. The following sketch
The nano already has a device id, so my question is why?
Which hash function would you recommend?
I would recommend you implement both, and analyse the differences

in RAM usage,
code footprint
performance in usec
think about how many bytes your device id should be
what are the requirements for your deviceid

Doing this as an exercise will teach you a lot about hashing.
(I would keep it as simple as possible but not simpler)
—
Reply to this email directly, view it on GitHubhttps://github.com/RobTillaart/MS5611/issues/25#issuecomment-1021500923, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASV4TM6EXTANA5ZQY4JXCILUX3WCPANCNFSM5MQHPQFA.
You are receiving this because you commented.Message ID: @.***>

How can one access the device ID of NANO? I found nothing else than the FICR values.

No nano expert, I assume this ficr values are unique.
The device address is probably the MAC address which is meant to be unique.
Think you need to start reading the datasheet of the NANO to learn the details.
Or maybe this is a solution for you: https://www.arduino.cc/reference/en/libraries/arduinouniqueid/


[Feature Request] add Envpool environment

🚀 Feature
[Feature Request] add Envpool environment
Envpool: https://github.com/sail-sg/envpool
Motivation
No response
Additional context
No response
Checklist

[X] I have checked that there is no similar issues in the repo
[X] I have read the documentation

#278


Unable to run Busted cli

I am interested in writing unit tests for my custom plugins using busted, and I wanted to try running tests for the plugins that come with Kong first (in /kong/spec). I bought up vagrant out of the box, and set up my development environment as mentioned in the README. I tried to run the tests with busted in three ways:

by first calling the busted cli directly with this command: busted /kong-plugin/spec
That gave me back this error, which is understandable because I read up that busted has to be run in resty cli for nginx context.

0 successes / 0 failures / 1 error / 0 pending : 0.041759 seconds

Error → ./kong/tools/utils.lua @ 33
suite /kong-plugin/spec/myplugin/01-access_spec.lua

next, by calling busted cli as mentioned in the README with this command: bin/busted /kong-plugin/spec, which gave me the error below.
: No such file or directory

finally, I tried to invoke the resty cli directly and run bin/busted against resty cli with this command:  resty bin/busted /kong-plugin/spec, and although it seems to have started the busted process, I still see the no such file or directory error.

0 successes / 0 failures / 1 error / 0 pending : 1.065115 seconds

Error → /kong-plugin/spec/myplugin/01-access_spec.lua @ 6
Demo-Plugin: myplugin (access) setup
: No such file or directory01-access_spec.lua:20: /usr/bin/env: resty

Can someone suggest as to what I am doing wrong (if anything at all) when trying to run the tests via Busted, and what can be done to fix this "no such file or directory" error?

first move into the Kong repo: cd /kong
then install test dependencies: make dev
then run the tests for example bin/busted -v -o gtest /kong-plugin/spec

It's the same process I have been doing, and I still get the "no such file or directory" error,
root@vagrant-ubuntu-trusty-64:/kong# make dev
kong 0.11.2-0 is now installed in /usr/local (license: MIT)

busted 2.0.rc12 already installed, skipping
luacheck 0.20.0 already installed, skipping
lua-llthreads2 0.1.4 already installed, skipping
root@vagrant-ubuntu-trusty-64:/kong# bin/busted -v -o gtest /kong-plugin/spec
: No such file or directory

I cannot reproduce this. Do you have the Kong repo cloned?
What does

ls /kong

return?

 Everything else came with the clone/original vagrant image.

I cannot reproduce this. Here's my full output from building to running the test
Thijss-MacBook-Pro:kong-vagrant thijs$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...

<<SNIP>>

==> default: fs.file-max = 65536
==> default: Successfully Installed Kong version: 0.13.0
Thijss-MacBook-Pro:kong-vagrant thijs$ vagrant ssh
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-119-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Sun Mar 25 13:47:13 UTC 2018

  System load:  0.15              Processes:           92
  Usage of /:   3.6% of 39.34GB   Users logged in:     0
  Memory usage: 4%                IP address for eth0: <IP_ADDRESS>
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.

vagrant@vagrant-ubuntu-trusty-64:~$ cd /kong
vagrant@vagrant-ubuntu-trusty-64:/kong$ make dev
Checking stability of dependencies in the absence of
kong 0.13.0-0...

Removing kong 0.13.0-0...
Removal successful.
kong 0.13.0-0 is now installed in /usr/local (license: MIT)

busted 2.0.rc12 not found, installing via luarocks...
Installing https://luarocks.org/busted-2.0.rc12-1.rockspec
Missing dependencies for busted 2.0.rc12-1:
   lua_cliargs == 3.0-1 (not installed)
   luasystem >= 0.2.0-0 (not installed)
   dkjson >= 2.1.0 (not installed)
   say >= 1.3-0 (not installed)
   luassert >= 1.7.8-0 (not installed)
   lua-term >= 0.1-1 (not installed)
   mediator_lua >= 1.1.1-0 (not installed)

busted 2.0.rc12-1 depends on lua_cliargs == 3.0-1 (not installed)
Installing https://luarocks.org/lua_cliargs-3.0-1.src.rock
lua_cliargs 3.0-1 is now installed in /usr/local (license: MIT <http://opensource.org/licenses/MIT>)

busted 2.0.rc12-1 depends on luasystem >= 0.2.0-0 (not installed)
Installing https://luarocks.org/luasystem-0.2.1-0.src.rock
gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c src/core.c -o src/core.o
gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c src/compat.c -o src/compat.o
gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c src/time.c -o src/time.o
gcc -shared -o system/core.so -L/usr/local/openresty/luajit/lib src/core.o src/compat.o src/time.o -lrt
luasystem 0.2.1-0 is now installed in /usr/local (license: MIT <http://opensource.org/licenses/MIT>)

busted 2.0.rc12-1 depends on dkjson >= 2.1.0 (not installed)
Installing https://luarocks.org/dkjson-2.5-2.src.rock
dkjson 2.5-2 is now installed in /usr/local (license: MIT/X11)

busted 2.0.rc12-1 depends on say >= 1.3-0 (not installed)
Installing https://luarocks.org/say-1.3-1.rockspec
say 1.3-1 is now installed in /usr/local (license: MIT <http://opensource.org/licenses/MIT>)

busted 2.0.rc12-1 depends on luassert >= 1.7.8-0 (not installed)
Installing https://luarocks.org/luassert-1.7.10-0.rockspec
luassert 1.7.10-0 is now installed in /usr/local (license: MIT <http://opensource.org/licenses/MIT>)

busted 2.0.rc12-1 depends on lua-term >= 0.1-1 (not installed)
Installing https://luarocks.org/lua-term-0.7-1.rockspec
gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c core.c -o core.o
gcc -shared -o term/core.so -L/usr/local/openresty/luajit/lib core.o
lua-term 0.7-1 is now installed in /usr/local (license: MIT/X11)

busted 2.0.rc12-1 depends on mediator_lua >= 1.1.1-0 (not installed)
Installing https://luarocks.org/mediator_lua-1.1.2-0.rockspec
mediator_lua 1.1.2-0 is now installed in /usr/local (license: MIT <http://opensource.org/licenses/MIT>)

busted 2.0.rc12-1 is now installed in /usr/local (license: MIT <http://opensource.org/licenses/MIT>)

luacheck 0.20.0 not found, installing via luarocks...
Installing https://luarocks.org/luacheck-0.20.0-1.src.rock
luacheck 0.20.0-1 is now installed in /usr/local (license: MIT <http://opensource.org/licenses/MIT>)

lua-llthreads2 0.1.4 not found, installing via luarocks...
Installing https://luarocks.org/lua-llthreads2-0.1.4-1.src.rock
gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c src/l52util.c -o src/l52util.o -DLLTHREAD_MODULE_NAME=llthreads2
gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c src/llthread.c -o src/llthread.o -DLLTHREAD_MODULE_NAME=llthreads2
gcc -shared -o llthreads2.so -L/usr/local/openresty/luajit/lib src/l52util.o src/llthread.o -lpthread
lua-llthreads2 0.1.4-1 is now installed in /usr/local (license: MIT/X11)

vagrant@vagrant-ubuntu-trusty-64:/kong$ bin/busted -v -o gtest /kong-plugin/spec
[==========] Running tests from scanned files.
[----------] Global test environment setup.
[----------] Running tests from /kong-plugin/spec/myplugin/01-access_spec.lua
/kong-plugin/spec/myplugin/01-access_spec.lua:7: [postgres error] ERROR: relation "apis" does not exist (13)

stack traceback:
	/kong-plugin/spec/myplugin/01-access_spec.lua:7: in function </kong-plugin/spec/myplugin/01-access_spec.lua:6>

[----------] 0 tests from /kong-plugin/spec/myplugin/01-access_spec.lua (343.20 ms total)

[----------] Global test environment teardown.
[==========] 0 tests from 1 test file ran. (343.83 ms total)
[  PASSED  ] 0 tests.
[  ERROR   ] 1 error, listed below:
[  ERROR   ] /kong-plugin/spec/myplugin/01-access_spec.lua @ 6: Demo-Plugin: myplugin (access) setup

 1 ERROR
vagrant@vagrant-ubuntu-trusty-64:/kong$

Can you trace what file is missing according to the error? can't it find bin/busted or is it something within that script that creates the error?

@slnaing07 any update?

Tieske- Sorry for the late reply. So I've done the same thing you did- start kong-vagrant from scratch according to the instructions here: https://github.com/Kong/kong-vagrant#running-kong-from-the-source-repo.
Please see the attached file that has the full output. Note that I wasn't able to run anything inside /kong/bin directory, examples on line 1386 and 1472 (both cases say file not found).
full_kong_vagrant_setup.txt

vagrant@vagrant-ubuntu-trusty-64:~$ sudo su root

Why this? please don't, many Lua packages end up in the user folder (for 'vagrant') if you switch to root, then they will not be found.

I've set up a new kong-vagrant environment, and this time done it as non-root/vagrant user. The problem still persists where I can't run anything inside /kong/bin directory. Please see the logs below and see if you can spot anything unusual.
full_kong_vagrant_setup.txt

@slnaing07 A colleague had the same issue with Vagrant on a Windows host. What happened was that all the line endings changed to windows line ending (CRLF). He had the Kong repo in IntelliJ IDEA and changed the line endings on the project to Unix (LF) in IntelliJ IDEA.
I'm not sure if it was his git or IntelliJ IDEA that changed the line enindgs, but changing them back worked.

@slnaing07 sorry about the late reply, I completely missed this.
The suggestion by @kimjenk makes sense. afaik the line endings are not relevant for Lua files, it is supposed to be agnostic. But the unix scripts to start/test Kong might not be, I don't know how the shell handles those.
Since in your case kong start works (which is a script installed from within the VM, and it never touched windows), but the scripts in /kong/bin do not (and those are mounted from the host system, which is Windows), it could be the problem.

@slnaing07 ping?

I just verified that the problem is indeed with line endings. I think if you update the two file in /kong/bin to proper unix line endings it will all work.
Closing this.

The Kong makefile in master now contains a fix-windows target, so that if line-endings in those scripts get corrupted by Windows, running make fix-windows will fix them.


Copy hangs the clipboard in TextDiff

Current behavior
I have always had problems with copying text from DevToys and in more than one machine.
I don't know exactly what is happening on the background and I wish I had the time to go over this myself in the code, but what I can say is that similar to: #709 , I am also having problems.
The problem is not exactly the same, but I feel it might be related. And I also experienced the same in the past, where it behaved exactly like that.
What I noticed now though, is that it seems clipboard gets busy, whenever I copy something from DevToys. This time I noticed that after trying to copy something in DevToys, something really slow is pushing the text to the clipboard. So slow that if I try to copy something from anywhere else, it also doesn't work. I keep getting whatever was there before and it seems to happen more on text panels of the bottom side. After a little while, the clipboard seems to unchoke and it will past what was copied.
I think some people may miss this last detail because they keep trying to copy and it just hangs more and it never finishes, until they give up. Or until it "finally works".
In particular for my case, the problem happens very easily with Text Diff. Specially if it is a big diff (by big I mean > 200 lines).
It also looks like that this is more likely to happen when there is an accidental copy of the entire text (which happens quite frequently, when I select nothing, or when the mouse pointer goes out of bounds, it seems to copy everything).
Why one of the oldest windows native functions gets so slow in certain circumstances, I have no idea. But I believe something funky is going on that seems to make a copy operation feel as heavy as AAA games.
Never been a seamless experience with me.
Maybe this can problem can be spotted by somebody.
Thanks. Cheers,
How to reproduce it (as minimally and precisely as possible)
1 - TextDiff -> Copy a reasonably large text into the editor in the left and something slightly different to compare into the editor to the right.
2 - Now, try to copy something from the diff result in the bottom. Try some different approaches as described (copy everything, then following that, select a small portion of text and copy again).
Can also be a good text and check the behavior when the mouse goes out of bounds just before hitting Ctrl+C
3 - Try to paste in notpad
4 - As I was validating my steps it happened again even with a small portion of text. DevToys hangs upon losing focus and responds after 15 seconds or so.
Expected behavior
Whatever was copied last is immediately pasted into the editor
Screenshots
No response
Workaround
Unknown
Affected platforms
Windows
Affected DevToys kind
DevToys (app with GUI)
DevToys Version
<IP_ADDRESS>
Relevant Assets/Logs
Not about this particular case but I do have some clipboard errors in the past:
# - [05/25/2023 14:53:11]
Feature name: Failed to copy from code editor
Custom message:
Exception message: OpenClipboard Failed (Exception from HRESULT: 0x800401D0)
Exception stack trace:
   at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21
   at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32) + 0xb8
   at __Interop.ForwardComStubs.Stub_17[TThis](__ComObject, Int32) + 0x24
   at Windows.ApplicationModel.DataTransfer.Clipboard.Flush() + 0x2c
   at DevToys.UI.Controls.CodeEditor.CopyButton_Click(Object, RoutedEventArgs) + 0xce

Hi,
Thanks for this feedback. I didn't debug yet but I suspect the reason for this slowness is the following :
The Editor in TextDiff us Monaco Editor, which is the same editor than Visual Studio Code, which runs in a web page. DevToys itself is a native app but since the Editor runs in a web page, there's a need of some interoperability to communicate between the web browser and the rest of the app. I suspect transmitting a large text between DevToys (native) and the web browser is what causes such a slowness.
The good news is that I already tested such a scenario in DevToys 2.0 (currently in development) and  it was quite satisfying. The main difference with DevToys 1.0 is that the whole app runs in a we browser, not just the Editor. Therefore there's no need of such interoperability, and in addition the Editor loads much faster (many users complain of a 1-2sdc delay to load the Editor in 1.0).

@veler that's promising news. I am assuming VS Code itself uses the approach of 2.0, right? As I don't experience the issue there. Given this should be fixed in an upcoming 2.0 release, should this issue be kept open?

I am assuming VS Code itself uses the approach of 2.0, right?

Yes! :D

Given this should be fixed in an upcoming 2.0 release, should this issue be kept open?

Indeed, let's close this issue :)


Feature Request: Support for arm64 container images

Azure Container Apps should support linux-based arm64 images in addition to the currently supported amd64 architecture. Support for ARM-based worker nodes in upstream AKS is in GA (https://azure.microsoft.com/en-au/updates/generally-available-arm64-support-in-aks/)
Describe alternatives you've considered.
At this point in time, I have to build my container images for multiple architectures,  because I want to use those container images also on my local machine for development and testing.

Any news on this? Would be great to be able to run aarch64 when coming from ECS/ Fargate.

Azure is literally alone in the market without support for arm, is this a joke?

perhaps @dariagrigoriu or @BigMorty can share some information if the team considers this one or not

It's been a year since this was posted with no updates. Is there any chance that ARM64 support will happen soon? Moving to AKS just for ARM support is not a great solution in my opinion.


Introduce Settings model

Sometimes is useful to have Settings model, that keeps some site-wide settings, which can be changed without a deploy (using the dashboard).
Settings should be connected with django.contrib.sites to allow usage in multi-site envrionment as well.

django.contrib.sites are a terrible thing as they are cached as instances at process level. Because of the caching technique all models reachable through relations of the Site object are also cached and never refreshed from the database.
See https://code.djangoproject.com/ticket/15894 and all of its duplicates.


loop number not working for me

loop: number is not working for me. Setting it to true or false works
<lottie :options="defaultOptions" :height="100" :width="100" v-on:animCreated="handleAnimation"/>
data() {
    return {
defaultOptions: {
animationData: animationData.default,
   loop: 2, // <== not working for me
autoplay: true
 },
 animationSpeed: 1
  }
}

I made a PR to fix this https://github.com/chenqingspring/vue-lottie/pull/37 hopefully @chenqingspring can take a look and merge.


DELETE methods with no schema have 2XX response.

Possibly a regression from to https://github.com/microsoft/OpenAPI.NET.OData/pull/357
The Delete methods generated with the latest version of the library now have the 2XX status range as opposes to the 204 code.
example
    delete:
      tags:
        - communications.callRecord
      summary: Delete navigation property segments for communications
      operationId: communications.callRecords.sessions.DeleteSegments
      parameters:
        - name: If-Match
          in: header
          description: ETag
          schema:
            type: string
      responses:
        2XX:
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation

This results in Kiota generating return types for these methods for delete requests which may be misleading from a consumer point of view.

Should the response type for Delete revert to 204 even when UseSuccessStatusCodeRange == true?

Yes. I don't think we want to give the information that something could be returned when it won't as this hasn't been the case for DELETE.


inconsolata: revert to working unstable version

An update to an unstable version of google-fonts broke the Inconsolata
monospace font in programs that use xft such as urxvt. This patch reverts
some inconsolata back to a working version.
Alternative to #130209
See also:
googlefonts/Inconsolata#42
https://discourse.nixos.org/t/how-to-fix-broken-inconsolata-font-in-urxvt-on-21-05/13437
cc @jakubgs @06kellyjac @petabyteboy @tu-maurice
Signed-off-by: William Casarin<EMAIL_ADDRESS>

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/how-to-fix-broken-inconsolata-font-in-urxvt-on-21-05/13437/6

Another option would be to source from https://github.com/googlefonts/Inconsolata
Also you might want to swap to stdenvNoCC as it'll need less rebuilds

Maybe add a link to this «interpretation-of-monospace» issue, and a note to switch back to the unified approach once the issue gets resolved?

On Tue, Sep 07, 2021 at 09:57:28PM -0700, Michael Raskin wrote:

Maybe add a link to this «interpretation-of-monospace» issue, and a note to switch back to the unified approach once the issue gets resolved?

ah right, good point. will do.

Can we get this merged? It works fine.


Get current tab URL from browser

I'm searching for currently active windows name, file name and tab URL(if it is browser). With the help of @halildurmus, I've managed to get windows name and file name. But still unable to get browser tab URL.
I searched everywhere but found nothing. However I got a code from StackOverflow which is written in C#. I tried to convert it into dart but in vain. I need help. Thanks in advance.
Here is the code in c#.
// there are always multiple chrome processes, so we have to loop through all of them to find the
// process with a Window Handle and an automation element of name "Address and search bar"
Process[] procsChrome = Process.GetProcessesByName("chrome");
foreach (Process chrome in procsChrome) {
  // the chrome process must have a window
  if (chrome.MainWindowHandle == IntPtr.Zero) {
    continue;
  }

  // find the automation element
  AutomationElement elm = AutomationElement.FromHandle(chrome.MainWindowHandle);
  AutomationElement elmUrlBar = elm.FindFirst(TreeScope.Descendants,
    new PropertyCondition(AutomationElement.NameProperty, "Address and search bar"));

  // if it can be found, get the value from the URL bar
  if (elmUrlBar != null) {
    AutomationPattern[] patterns = elmUrlBar.GetSupportedPatterns();
    if (patterns.Length > 0) {
      ValuePattern val = (ValuePattern)elmUrlBar.GetCurrentPattern(patterns[0]);
      Console.WriteLine("Chrome URL found: " + val.Current.Value);
    }
  }
}

// there are always multiple chrome processes, so we have to loop through all of them to find the
// process with a Window Handle and an automation element of name "Address and search bar"
Process[] procsChrome = Process.GetProcessesByName("chrome");
foreach (Process chrome in procsChrome) {
  // the chrome process must have a window
  if (chrome.MainWindowHandle == IntPtr.Zero) {
    continue;
  }

  // find the automation element
  AutomationElement elm = AutomationElement.FromHandle(chrome.MainWindowHandle);
  AutomationElement elmUrlBar = elm.FindFirst(TreeScope.Descendants,
    new PropertyCondition(AutomationElement.NameProperty, "Address and search bar"));

  // if it can be found, get the value from the URL bar
  if (elmUrlBar != null) {
    AutomationPattern[] patterns = elmUrlBar.GetSupportedPatterns();
    if (patterns.Length > 0) {
      ValuePattern val = (ValuePattern)elmUrlBar.GetCurrentPattern(patterns[0]);
      Console.WriteLine("Chrome URL found: " + val.Current.Value);
    }
  }
}

I have created a WPF app using this. Then run that exe using Process.runSync and read URL from that process. However this is a time consuming process. I wonder, if there is any way to achieve the same goal in faster way like getting window name and process file name.


[java] Fix avro logical-types conversions for BQ storage

Most of the avro logical-type to BQ are broken.
Add support for both joda and java time to ensure compatibility with older avro versions

assign set of reviewers


Adding filter command-line option

This is essentially the opposite of ignore. I wanted the ability to only update packages that are prefixed with my company's scope.
For example:
npm-check -y -f '@myorg/*'

will automatically bring all the packages prefixed with @myorg/ up to date. I have this working locally and it is working quite nicely 🎉 it even supports chaining filter with ignore rules:
npm-check -y -f '@myorg/*' -i @myorg/dont-update-me

this feature is awesome! any updates?


Create Release

It would be handy if you created a release, I am developing a program which uses openh264 and I could use VLC to debug data dumps.

@gudenau thanks for paying attention to the project!
Unfortunately I am developing this plugin in my free time only as we found VLC not very good optimized for our needs.
Anyway I am really happy that this plugin is needed by someone and I'll try to provide release with more options inside plugin and configure script to build it.

@gudenau check out Releases page

Great, it will be useful to debug a project!
On Dec 9, 2016 11:53 AM, "Alexander Bilyak"<EMAIL_ADDRESS>wrote:

@gudenau https://github.com/gudenau check out Releases page
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ASTIM/OpenH264-VLC-Plugin/issues/1#issuecomment-266077532,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFYYWSm_Ta_yn6pUBTXqFpDUidCQNdpRks5rGZWDgaJpZM4JcOoj
.


out of range

Connected to simulation.
Traceback (most recent call last):
  File "main.py", line 449, in <module>
    main(args)
  File "main.py", line 69, in main
    is_testing, test_preset_cases, test_preset_file)
  File "/home/user/model/visual-pushing-grasping/robot.py", line 70, in __init__
    self.setup_sim_camera()
  File "/home/user/model/visual-pushing-grasping/robot.py", line 155, in setup_sim_camera
    self.bg_color_img, self.bg_depth_img = self.get_camera_data()
  File "/home/user/model/visual-pushing-grasping/robot.py", line 309, in get_camera_data
    color_img.shape = (resolution[1], resolution[0], 3)
IndexError: list index out of range

you may get a popup window titled "Dynamics content" in your V-REP window. Select the checkbox and press OK.

Hello,
Recently I am also using this code to do robot pushing and grasping, is it convenient to leave a contact? Let us communicate and learn together. Thank you, are you Chinese? I am, my mailbox is<EMAIL_ADDRESS>I am looking forward to your reply.
Thanks,

Connected to simulation.
Traceback (most recent call last):
  File "main.py", line 449, in <module>
    main(args)
  File "main.py", line 69, in main
    is_testing, test_preset_cases, test_preset_file)
  File "/home/user/model/visual-pushing-grasping/robot.py", line 70, in __init__
    self.setup_sim_camera()
  File "/home/user/model/visual-pushing-grasping/robot.py", line 155, in setup_sim_camera
    self.bg_color_img, self.bg_depth_img = self.get_camera_data()
  File "/home/user/model/visual-pushing-grasping/robot.py", line 309, in get_camera_data
    color_img.shape = (resolution[1], resolution[0], 3)
IndexError: list index out of range

Hi, I meet the same question as yours.
Could you please help me？
The V-REP I'm using is 3.6.0, and torch is 0.3.1, which is the same as guide.
Is the version inappropriate?


Download users should show also the school/department field

With new feature where the admins can add the departments/faculties to their organisation they should be also able to be able to download user files. This field is already shown in the list of users but not in the download yet.

Expected behavior:
The download (from the users-index page) of the list of users for an organisation should show each user's department.
Current behavior:
The download has no column (it's CSV) for department

I tested on TUDelft - made myself org admin added 'test department' added this into my profile and went to download users. I was able to see a new column and my defined department. Worked well.

Tested this as well on York University and was able to download a list of users including their departments.

Perfect. Is working. Closing out


Add kucero addon to auto rotates control plane certificates

Why is this PR needed?
Add kucero as an addon to auto rotates control plane certificates.
kucero includes two components:

A Daemonset to pulling and rotates the kubeadm-managed certificates.
A Controller to sign the kubelet server CSR.

refs: https://github.com/SUSE/avant-garde/issues/1632
What does this PR do?
Add kucero as an addon.
Anything else a reviewer needs to know?
We add kucero on both 1.17.4 and 1.18.2 because we want kucero deployed before node upgrade. Add kucero into the previous version make the user have to install kucero addon first.
Otherwise, the kubelet server CSR will in pending state since no signer signs the kubelet server certificate.
Info for QA
Previously, the kubelet server certificate is self-signed by skuba with kubelet CA cert/key pair.
With this PR, the kubelet sends server CSR in K8s cluster, and kucero signed the server certificate to kubelet with kubelet CA cert/key pair, then kubelet save the server certificate in /var/lib/kubelet/pki/kubelet-server-current.pem.
Note that, the metrics-server trusted kubelet server certificate by kubelet CA cert.
If the kubelet server certificate signed by other CA, the metrics-server will in CrashLoopBack.
Related info
Packages to be released:

https://build.suse.de/package/show/Devel:CaaSP:5/kucero
https://build.suse.de/package/show/Devel:CaaSP:5:Containers:CR/caasp-kucero-image

Status BEFORE applying the patch

The kubeadm-managed server/client certificates will expire after 1 year.
The kubelet server certificate is self-signed by skuba with kubelet CA cert/key pair.

Status AFTER applying the patch

The kucero will periodically checks the kubeadm-managed server/client certificates residual time, and rotates the certificates if necessary automatically, and restart kubelet after rotates certificates finished.
The kubelet will set serverTLSBootstrap: true, and kubelet will send server CSR. Then kucero will sign the kubelet server certificate by kubelet CA cert/key pair and kubelet saves the server certificate in /var/lib/kubelet/pki/kubelet-server-current.pem. The time kubelet send server CSR is handled by kubelet daemon.

Docs
https://github.com/SUSE/doc-caasp/pull/879
Merge restrictions
(Please do not edit this)
We are in v4-maintenance phase, so we will restrict what can be merged to prevent unexpected surprises:
What can be merged (merge criteria):
    2 approvals:
        1 developer: code is fine
        1 QA: QA is fine
    there is a PR for updating documentation (or a statement that this is not needed)

cc @c3y1huang @cclhsu please help review. thanks.


pitts 250k    top-1          88.2%

Thansk for your work. I use your model to test  data  pitts 250k 。
top-1          88.2%
top-5          95.4%
top-10         96.7%
Inconsistent with the paper。

Could you please provide more details? I have re-tested the model and achieved the same results as I reported. Did you test on the test split of Pitts-250k?


Add KrTirtho.Flemozi 0.1.1

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Hi @KRTirtho,
This package has a dependency on the VCRedist package:

@wingetbot waivers Add Validation-Executable-Error


Openstack branch

Add support to orchestrate k8s cluster on Openstack
The provisioning process on Openstack starts with creating an installer node. This node downloads all the necessary installation packages, starts a local web server (runs in Docker) and launches the requested nodes for the Kubernetes cluster via Openstack APIs. As the cluster members come online and initialize, they report back to the installer node. Once all the requested nodes are up, the installer pushes the required ssh keys to each node and starts the installation of the Kubernetes cluster. At the end of the installation, the Ingress node is assigned a floating IP (if requested) to provide access to future workloads from the outside.
Due to this approach, I had to put main.go into a separate folder folder structure. The package can now be invoked by the web server (used by the Openstack orchestrator) in addition to the command line. Hence the two sibling folders for main under the Exec folder: one for the command line and the other for the webs server.

I am not very familiar with OpenStack, but I am not quite understanding why there's the need for an HTTP server here. I think this is a blocker for this PR.
The provisioner is responsible for standing up infrastructure, but not running ./kismatic install apply.  In other words, I would expect the OpenStack provisioner to use the OpenStack API to provision machines, and then generate a plan file with the list of machines. The generated plan file can then be used to run kismatic.
I also think it might be better to pick up an existing OpenStack library, such as https://github.com/rackspace/gophercloud, instead of maintaining our own.

The reason for the HTTP server is for the async install. When you run from the command line you do not have to wait for the servers to come up (which may take 2-5 mins). The installation is self-sufficient. As an enhancement, it can notify the user of the completion.
What's is the reasoning for not running the install after the nodes are provisioned and the plan generated? Wouldn't it be convenient to have the cluster fully prepared for use? I agree with the 3rd party lib for openstack - it may be a better option. I already had an implementation available.

Callbacks are cool, but inherently unreliable in an any context where network security policies are in play.  A tool that requires a firewall entry be opened up for an operator's machine isn't nearly as usable as one that exclusively acts as an http(s) client. What's more, important provisioning matters like detecting a crashed OpenStack service or the need to retry a rejected request are made more difficult by inverting the responsibility to a callback layer.
You're also likely to find that the signal represented by the callback is insufficient for determining the readiness of the underlying infrastructure -- specifically, that machines are marked "available" before the services required for provisioning are available (with ssh/winrm access being the most common manifestation of the problem).
This is why our other provisioners (AWS & Packet) use status checks with retries or long polling to detect uptime of services, and a subsequent SSH 'upness' test to guarantee that machines are not just online, but ready for kismatic to run. Failing to perform this check is likely to result in a failed cluster install.
As for not running the installer immediately after provisioning, this is primarily a choice we made to allow a cluster operator the chance to modify the cluster "plan" file output by the provision tool prior to running Kismatic. There are lots of interesting options in there and the goal of this provision tool is simply to make it easier to start experimenting with them.
I also generally prefer not hiding the important production tool (kismatic) behind the training tool (provision). Someday that kismatic command is going to fail and the operator will need to step through triage of a cluster...it's important that the operator knows that the tool exists and what it's responsible for.

In this implementation the callback layer sits next to the cluster. It is handled by the node that is spun up in the very beginning of the provisioning. The “callback” server on this node downloads KET packages, creates the keys and spins up the other nodes that will house the actual cluster. The post-init scripts (user data) control the preparation of each node, validate its “readiness” and then report the status to the installer, that runs the http server to receive the messages from the cluster nodes. When each of the requested nodes is fully prepared, it calls back to the installer to report its state. If something goes wrong, the error is communicated to the installer or the installer never hears from the failed nodes. In any case, the KET installation will not start, if the nodes are node ready. Once all the requested nodes have reported success back to the installer, it builds the plan using the data collected from the operator and the necessary information received from the cluster nodes. Finally, it kicks off the KET installation and assigns a floating IP to the Ingress node if so desired so that the workloads can be accessed from the outside. In this entire process, the operator, the person who requested the install, and his machine is out of the picture. The operator only needs to have access to the Openstack API server (open or via VPN) to initiate the otherwise completely asynchronous process. The entire callback mechanism does not hinge on the accessibility to the operator box, it is self-sufficient. The paradigm here is similar to CloudFormation or HEAT, which are based on internal, self-sufficient callback process independent of the operator who initiated the process. With that in mind, callbacks are fairly reliable, as all nodes involved, including the callback server are orchestrated on the same subnet and attached to the same security group (firewall rules). Due to post-init scripts, the reliability of the “readiness” is also higher than that of the standard API check, whether the instance is “up”. The scripts ensure the availability and the proper configuration of the necessary services before firing the callback. Sure, many things can go wrong, the post-init service may not fire or hang, but in either case, the installer will never hear from the node and eventually deem it as faulty or will get an error response. The KET install will only start when all the nodes have reported success to the installer. The operator can check the status of the process by accessing the installer node (over any preferred method) and in case of errors restart the process from scratch or the point of failure. Another purpose of the “callback node” is to be a base and a central point for working with the cluster. Kubectl is installed on that node as a part of the orchestration. The operator(s) could also use this sever to grow the cluster (adding worker nodes, etc.).
My objective with this orchestrator is to bring partner attention to KET as a key tool to install and grow k8s clusters. For example, encourage the partners to contribute and use KET as a foundation of Kubernetes orchestration by their CMP tools. Hence the unattended automated, KET installation, and this non-blocking implementation. I appreciate your vision of the Kismatic provisioner as a training tool and the reasoning behind your implementation choice. I understand that the differences between our approaches and objectives may not be clearly reconcilable. However, taking your approach a step further may not necessarily contradict your original intent. The user of the provisioner can be given an option (via yet another command line flag) to pause before running KET installer in order to play with the plan file for educational, verification or other purposes. To me, however, the ultimate goal of the user is to get to a functional Kubernetes cluster. The user can learn about the plan file from the repo. All the pertinent and meaningful variables of the plan can be collected from the user as command line options or as a Q & A before the orchestration.
The reason for the fully automated unattended installation in this implementation is not to “hide KET”. It is simply for convenience and portability into partner products. Like I said, we want to make KET a household item in the Kubernetes products/initiatives of our strategic partners.

Thanks for the detail here @sashajeltuhin. Having OpenStack support in kismatic-provision is interesting to me. How do you feel about implementing a simpler provisioner that just creates the machines and generates the plan file? This could then be leveraged by another tool to achieve the one-click provision+KET install you describe in the comment above.

Sure. I am tied up for the next 2 weeks, but can take a stab afterwards.


Is there a filter for color mix like in Lightroom.

Is there any picture? What does the input and the output look like?

Like this one, separate hue saturation and luminance for colors


Unselecting items within new dashboard when a signal is sent

Deselect items within new dashboard when god triggers 'closeDialogs' signal.
Removed unnecessary urls_fn reference, using currentUserUrls properly

Fixes https://github.com/CartoDB/cartodb/issues/2026

@viddo  please :)

Frontend tests were OK :+1: (details)

Apart from the test case this is all :ok_hand: :ok_hand: :)

Frontend tests were OK :+1: (details)


Make the plugin compatible with Gradle's configuration cache

See #156
Note that the configuration cache will be introduced in Gradle 6.6.
This pull-request currently add integration testing with 6.6-milestone-2.
6.6 RC1 is around the corner.
This PR doesn't change the supported Gradle versions and let the plugin still work with Gradle >= 2.0.

Hi @michel-kraemer,
I'm sure you were already notified of this PR but I have some specific questions.
There are two ways of doing integration testing of Gradle versions in the plugin's build. One in gradle/integrationTest.gradle. The other in FunctionalDownloadTest. This PR currently changes gradle/integrationTest.gradle only. Are my changes to gradle/integrationTest.gradle ok or would you prefer another approach?
This PR uses 6.6-milestone-2 for testing, it's not final but it's a released version so the artifacts will never disappear. Is it a blocker to you for merging this?
I also would like some guidance on the codecov checks on this PR. I assume the coverage ratio going down a bit is because of the added branches per Gradle version and that code coverage is only collected for one version. Does that sounds right to you? Do you want me to rework the code and add some unit test coverage to gain those precious percents back?
Now for some context, I work with large builds that make use of your very useful plugin. These builds are suffering from long Gradle configuration time and being able to use the configuration cache is a life saver for their "users". Thank you for considering that PR.

@eskatos Hey! Sorry for my late response. I was really busy last week.
Thank you so much for the hard and thorough work. This looks really impressive. I did some minor edits (mostly in terms of code style but nothing functional).
Don't worry about the different integration tests or the code coverage. Everything looks OK. Also, I'm fine with the milestone. We can replace it later.

These builds are suffering from long Gradle configuration time and being able to use the configuration cache is a life saver for their "users". Thank you for considering that PR.

Sure thing. I'm happy to hear that my work is useful for you!


Trapping Rain Water problem

Description
(Replace this text holder with your description: Please include a small description or summary of the issue here )
Additional context
Add any other context, links references or screenshots about the feature request here.
Important Checklist

[ ] I have read the contribution guidelines before making this issue.
[ ] I have verified this issue program is not already implemented

Languages and Assignees:

[ ] Python: @
[x] Java: @
[ ] C: @
[ ] C++: @

Notes
Anything you would like to discuss.

please assign me this issue (JAVA)

can i pick this up for c++?


fix(Location): Cleaned up Location service

LocationChange events are now more consistent and useful. The go and replaceState methods now accept objects instead of just query strings.

LGTM


[BUTTON IDEA]: Align button

1. Name of button:  Align
2. Description:  the button has a black frame and a colored box that aligns when hovered on, example attached
3. Button Type (Animated, Special, etc...): Animated
4. Will you work on it?: Yes

That looks great @angetheo-auth you can work on it, but try to find a better name for it!