moved hdf5 specific header stuff to hdf5internal.h

Part of #856.
In this PR I create new include file hdf5internal.h. It contains HDF5-specific stuff from nc4internal.h.
This is part of the separation of the libsrc4 data model from the hdf5 dispatch layer. hdf5internal.h is required by all code in libhdf5, but not in libsrc4.
The separation is not yet complete, and hdf5internal.h is still needed in two places in libsrc4. But when #856 is complete these includes will be removed and hdf5internal.h will only be used in libhdf5, and all of the code in libsrc4 will be independent of hdf5.h.

@WardF can we get this merged soon? I would like to put up my next PR. Thanks.


BUFG Support

Add bufg to phys netlist.
Example BUFG -> BUFGCTRL:
BUFGCTRL #(
    .INIT_OUT(0),
    .IS_CE0_INVERTED(1'b0),
    .IS_CE1_INVERTED(1'b1),
    .IS_IGNORE0_INVERTED(1'b1),
    .IS_IGNORE1_INVERTED(1'b0),
    .IS_S0_INVERTED(1'b0),
    .IS_S1_INVERTED(1'b1),
    .PRESELECT_I0("TRUE"),
    .PRESELECT_I1("FALSE"))
    clk_IBUF_BUFG_inst_phys
       (.CE0(\<const1> ),
        .CE1(\<const1> ),
        .I0(clk_IBUF),
        .I1(\<const1> ),
        .IGNORE0(\<const1> ),
        .IGNORE1(\<const1> ),
        .O(clk_IBUF_BUFG),
        .S0(\<const1> ),
        .S1(\<const1> ));

fasm2bels example:
BUFGCTRL #(
    .INIT_OUT(0),
    .IS_CE0_INVERTED(0),
    .IS_CE1_INVERTED(1),
    .IS_IGNORE0_INVERTED(1),
    .IS_IGNORE1_INVERTED(0),
    .IS_S0_INVERTED(0),
    .IS_S1_INVERTED(1),
    .PRESELECT_I0("TRUE"),
    .PRESELECT_I1("FALSE")
  ) CLK_BUFG_BOT_R_X139Y152_BUFGCTRL_X0Y0_BUFGCTRL (
.CE0(1'b1),
.CE1(1'b1),
.I0(LIOB33_X0Y127_IOB_X0Y128_I),
.I1(1'b1),
.IGNORE0(1'b1),
.IGNORE1(1'b1),
.O(CLK_BUFG_BOT_R_X139Y152_BUFGCTRL_X0Y0_O),
.S0(1'b1),
.S1(1'b1)
  );

Right now, EDIF parsing fails when vivado tries to load the new design after the physical transformation python scripts. I add a new VCC cell, but for some reason it does not appear right. (I know I am missing something). Currently, the cell appears like so in the new EDIF file. It appears in the library hdi_primitives section instead of the work library. So Vivado complains that it does not know what clk_IBUF_BUFG_inst_phys is.
(cell VCC (celltype GENERIC)
     (view netlist (viewtype NETLIST)
       (interface
        (port P (direction OUTPUT))
       )
       (contents
         (net vcc_net_phys_netlist (joined
          (portref CE0 (instanceref clk_IBUF_BUFG_inst_phys))
          (portref CE1 (instanceref clk_IBUF_BUFG_inst_phys))
          (portref I1 (instanceref clk_IBUF_BUFG_inst_phys))
          (portref IGNORE0 (instanceref clk_IBUF_BUFG_inst_phys))
          (portref IGNORE1 (instanceref clk_IBUF_BUFG_inst_phys))
          (portref S0 (instanceref clk_IBUF_BUFG_inst_phys))
          (portref S1 (instanceref clk_IBUF_BUFG_inst_phys))
          (portref P (instanceref vcc_phys_netlist))
          )
         )
       )
     )
   )

There is a VCC instance in the work library:
(instance VCC (viewref netlist (c
[Sout_reg_impl_physical_edf.txt](https://github.com/byuccl/bfasst/files/11066689/Sout_reg_impl_physical_edf.txt)
ellref VCC (libraryref hdi_primitives))))

I am not sure how to access the work library instance. I am still debugging this, but I thought I would see if you already know what I am doing wrong. I have attached the full edif output file post-physical transformation.
Sout_reg_impl_physical_edf.txt

https://github.com/byuccl/bfasst/pull/140/commits/397af9d9ea589915bb714eedaf79e0973e0b4ea7
The issue was with how you were creating the inst/net.  They need to be created as part of the top-level cell in the design.


[BUG] Discord connector incorrectly manages roles

What version of Node.js are you using?
v16.11.0
What version of npm are you using?
8.0.0
What operating system are you using?
Ubuntu 20.04.5 LTS
What version of SnailyCAD are you currently using?
v1.24.0 4529dd7
Describe the Bug
Sometimes the Discord connector removes roles from a user in the Discord community and adds other roles.
Example:
In the discord community, the user has a set of roles

Granting access to the CAD is carried out according to one of the roles

For some users, the discord connector removes all roles and adds others

As we can see in the last image, the discord connector removed all roles and added another one.
It should be noted that he added a role (#CAD), which is not specified anywhere in the CAD settings (this role was used earlier as whitelist role).

Expected Behavior
The discord connector should not manage the user's roles, but only perform authorization if the user has the necessary rights.
To Reproduce
No response

I have also noticed this occur; it seems to be its triggered for me when manually (as an admin) adding a user's Discord ID. Upon which the next time they logon they get all their roles removed and replaced with a single role which is the one assigned as the LEO permission.

This will only occur when an admin updates a user's permissions. That should be the expected behavior?

That should be the expected behavior?

No. Changes in CAD shouldn't affect members roles in discord.
Example: I have two players. In discord, they have the role of "Officer LEO". For one of them, I set additional rights (mange units) in the CAD user profile, and the role in discord should not change.


Richer search

When searching a string field in Realm e.g. "name CONTAINS[c] 'fæ' " I want to find all strings that contain "fæ", "fa", "fä" etc. So basically I want mapping from some special letters to basic latin letters.

Thanks for the request! We are currently tracking diacritic insensitive predicates here https://github.com/realm/realm-cocoa/issues/1490 for now can you try checking out http://nshipster.com/cfstringtransform/ to do the mapping? Hope this helps

@kjoelbro thanks for the feature request, we'll take this into consideration. I'm closing this issue as a duplicate of #1490, feel free to resume the conversation there.


Store the full contents of top-level package.json files?

Would you be amenable to storing the full package.json Object for the top level modules under System.npm, as opposed to the current stub? We end up re-fetching the top level package.json files to get pertinent information in our app.

Thanks for posting.  I don't think we should to this by default because some package.json's can get quite large.  However, I think a flag that turns this on is reasonable.  Something like:
system: {
  includePackageProperties: true,
  includePackageProperties: ["property1","property2"]
}

where true would pull in everything, but you could also specify certain properties too.

Yep, sounds fair.

What do you mean by "top level modules"?  You mean the app's own package.json or more than that?

I meant the app's package.json and that of any direct dependencies.


Fix Gradle task annotations

This fixes #153

Hi,
this PR may fix the issue, but it breaks uptodate checking.
It might be OK, to apply @Ignore to some of the properties which are "duplicates", but not to all properties.
Explanation: If classpath changes, the task must re-run, so it MUST be declared as @Input. The same applies for patterns.

but it breaks uptodate checking

Why do you think so, can you please clarify?

Explanation: If classpath changes, the task must re-run, so it MUST be declared as @Input. The same applies for patterns.

The patterns are not really important on their own.
What is important, is the set of classes for the check.
In other words, if the user adds a useless pattern, then it does not make sense to re-run the task. So the patternset should be marked as @Internal.

Explanation: If classpath changes, the task must re-run,

This is already handled by existing getClassFiles(). Adding @Input to the patternset, includes, and excludes adds nothing but it results in false positives (re-execution of the task even in the case the actual set of class files is the same).
https://github.com/policeman-tools/forbidden-apis/blob/dd13fcf7479678359fe9e8903b4ecd686f34a70a/src/main/java/de/thetaphi/forbiddenapis/gradle/CheckForbiddenApis.java#L486-L489

This is already handled by existing getClassFiles().

The reason why it is declared as @Output is, because forbiddenapis does not have an output at all. For following tasks to execute correctly an output must be declared.
The "correct" workaround would be to place a fake "output" file that updates its timestamp after every execution and declare this on as output.

Adding @Input to the patternset, includes, and excludes adds nothing but it results in false positives (re-execution of the task even in the case the actual set of class files is the same).

I agree with that one, in Gradle's SourceTask it's the same:
https://github.com/gradle/gradle/blob/eb2878c5520a1cffe424745c7083b714a333a07e/subprojects/core/src/main/java/org/gradle/api/tasks/SourceTask.java#L174

Explanation: If classpath changes, the task must re-run, so it MUST be declared as @Input. The same applies for patterns.

Sorry for that. It's marked with @Output. The reason for this is a hack (see above).

No output is fine. In that case, you configure the task with outputs.upToDateWhen { true }, and it would work incrementally just fine.
I have a Gradle task here: https://github.com/autostyle/autostyle/blob/3edcb79a2ddd0c8e6a988d5b6d8fd3ee2f9a729a/plugin-gradle/src/main/kotlin/com/github/autostyle/gradle/AutostyleCheckTask.kt
It produces no outputs, and it works incrementally.
Here's the test that verifies check task is executed incrementally: https://github.com/autostyle/autostyle/blob/3edcb79a2ddd0c8e6a988d5b6d8fd3ee2f9a729a/plugin-gradle/src/test/java/com/github/autostyle/gradle/GradleIncrementalResolutionTest.java

Sorry for that. It's marked with @Output. The reason for this is a hack (see above).

Note: gradle clean removes all the @Output files. It might remove files unexpectedly as you never know what users configure for the classes dir.

I am working on a solution for this. There is another issue open. The idea is to just create a text file with all violations found. This one should be declared as @Output.
I will later merge your PR, excluding the changes for @Output and fix those separately.

The outputs.uptoDataWhen was already discussed in the linked issue. The problem is that the minimum Gradle version does not support this yet.

The problem is that the minimum Gradle version does not support this yet.

:(
Does it really make sense to "support" ancient versions?
I recognize it takes time to maintain the library (and I recognize Gradle task is not the only way to apply the check).
However, it looks like you aim to support very old Gradle versions (o course it is you who decide which versions do you want to support), however, it is sad when it impacts the users who use recent Gradle versions (==warnings or errors in modern Gradle versions caused by "can't fix because we want to support Gradle 1.0").
By the way, outputs.uptoDataWhen is there in the Javadoc even for Gradle 2.3: https://docs.gradle.org/2.3/javadoc/org/gradle/api/tasks/TaskOutputs.html
Are you sure minimum Gradle version does not support this yet?

Hi,
there was some strange behaviour without any outputs in previous Gradle versions. I have to check what exactly the issue was.
In short: The correct fix is to supply some output, which also helps people that suppress any output in Gradle (I prefer to always run it with --info, but I am pro-verbose output somehow). This is not in the scope of this PR, so I'd like to delay that to another issue.
The support for older Gradle versions also has to do with Java-6-Support. This will go away soon.

Hi,
your PR does not even compile. It says:
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] <hidden>/forbidden-apis\src\main\java\de\thetaphi\forbiddenapis\gradle\CheckForbiddenApis.java:47: error: cannot find symbol
    [javac] import org.gradle.api.tasks.Internal;
    [javac]                            ^
    [javac]   symbol:   class Internal
    [javac]   location: package org.gradle.api.tasks
    [javac] <hidden>/forbidden-apis\src\main\java\de\thetaphi\forbiddenapis\gradle\CheckForbiddenApis.java:127: error: cannot find symbol
    [javac]   @Internal
    [javac]    ^
    [javac]   symbol:   class Internal
    [javac]   location: class CheckForbiddenApis
    [javac] 2 errors
    [javac] 1 warning

How did this compile for you?

How did this compile for you?

I have not tried to compile it

Ok, thanks so this needs to wait a bit, until minimum Java version was upgraded (see above).

Hi,
I am working on updating to Java 7 (was on TODO list anyways) - see #160. This implies forbiddenapis new major version 3.0. This allows to merge #155, which upgrades inimum Gradle version to 3.2, that should make this PR compile.
Thanks for the PR anyways, I wam working on adding it. :-)


Unit Issue in GSMap and MF Rain data legend

Linked to the fact the unit is not known by the unit system.


changed img tags to SVG components

UX will need to restyle the size of the SVGs
Description
Per the product review discussion I changed the  elements to imported SVG components
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have removed unnecessary comments/console logs from my code
[ ] I have made corresponding changes to the documentation if necessary (optional)
[x] My changes generate no new warnings
[x] I have checked my code and corrected any misspellings
[x] No duplicate code left within changed files
[x] Size of pull request kept to a minimum
[x] Pull request description clearly describes changes made & motivations for said changes

Nice update, Tdubs!  Sometimes the smallest things can make a big difference.  The bookmarks will definitely be easier to work with and style with this update to SVG components.

Very clean! Nice.


Swift 4 compatibility

Hey, I'd love to see this lib available in Swift 4 so I can implement it in my project.
Thanks 😄

@Jinkeycode Sensitive supports Swift 4 since version 5.2.1


[#0] Defines the project development workflow and processes, includin…

…g git commit style, pull request process, Agile workflow and code coverage requirements

Added information to Coding Style Guide section.


10/11/2022 Open Science Community would like to develop Massive Open Online Courses (MOOCs),

Description
Open Science Community would like to develop Massive Open Online Courses (MOOCs),
Expected behaviour
we need to develop a platform where a participant can log in, and view videos and written materials as lessons. This will be similar to Udemy and other platforms for MOOCs.
Actual behaviour
No actual behaviour yet
What needs to be done?

[ ] outline the functionality of the website
[ ] build an API with Nodejs

Who wants to work on this issue?
I want to be assigned the task

@ladyami  I can work on it.

@ladyami I can work on it.

ooh sorry you wanted that task to be assigned to you. I thought you were looking somebody to work on it.

okay no problem another task will soon be open according to the admin you can work on it


Project with b7 is not able to publish

The publish button is gray.

How to publish a class library into a nuget package?

I reckon your project.json file is missing

Create a Class Library (package), and it cannot be published.

@signlewind 你装了beta7试试，反正我这是不行，类库类型的项目不能发布了，beta6是可以的，我发布类库是为了把他打成nuget包。

@Kagamine  I think you have updated the tools as I did. the tools haven't registered its template properly. That is why visual studio could not detect it is nuget package project. You still can use command to package any way.


Fix invalid HTML attribute

The current custom router-wrapper and router-view attributes are forcing invalid HTML. The W3C will give the following error:

Attribute router-wrapper not allowed on element div at this point.

It's easy to fix by adding data- before both attributes. E.g.:
data-router-wrapper and data-router-view

Thanks @deJong !
Let me run some tests before merging your PR 👍 .
Best regards,
Anthodpnt

@Anthodpnt updated the unit tests.

@all-contributors please add @deJong for code bug


Allow observers to cleanup if their root dependency has no references

Currently, Observer is only eligible for garbage collection when it has no active change handlers.
The original motivation was that, because Observer allows for side effects, it may influence code outside of the original scope in which it existed. This made it unsuitable for Fusion's standard 'weak-dependency' garbage collection model, which relies on explicitly disallowing side effects. As a quick fix, the current approach was employed to make sure changes weren't being missed, while still allowing for the memory to be freed after use to avoid memory leaks.
However, there is still a theoretically better approach we should investigate at some point. If the root dependency of the observer has no (non-read-only) references held, then the reactive graph will never experience another update, and so it's safe to allow for garbage collection. This works because all state objects (Value, Spring, Tween) that generate state - as opposed to transforming state - are only held in memory while they may change, and so they will only hold references to their dependencies while they are changeable.

Closing this as we look to move from GC semantics in the future.


Prefer original encodings rather than better codecs for older videos, perhaps replacing the quality sorting format (YouTube)

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm requesting a feature unrelated to a specific site
[X] I've looked through the README
[X] I've verified that I'm running yt-dlp version 2023.07.06 (update instructions) or later (specify commit)
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
Videos uploaded before YouTube supported a specific codec no longer had the original file when converting to it, thus had to be recoded a second time, introducing more loss. (Unless I'm mistaken)
For these videos, the original recode will be of higher quality, even though it uses a worse codec.
(From https://www.youtube.com/watch?v=8ATu1BiOPZA)
AV1:

VP9:

h264:

(all are the same frame)
yt-dlp and youtube-dl both download VP9 by default, YouTube uses AV1(on my machine), but h264 would be preferred here.
I am completely ignorant of YouTube's history regarding format support, and have no clue at which dates they began directly generating VP9/AV1/etc versions of videos from the original uploaded file, whether they were all at once conversions(I assume not), whether it depends on other factors such as resolution, and whether they actually do it at all(I assume they do)
What do we know? Hoping for conversation on the topic.
Does YouTube already provide some method for knowing whether something is an original recode? (I assume not, since they use AV1 for this video)
Collecting data on this would be interesting. I'm not the best at distinguishing video quality, this is one of the videos where the difference is drastic enough for me to notice.
We need older videos around the time of major codec introductions which contain too much detail for their bitrate, so quality differences are obvious.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[b532a3481]
[debug] Python 3.11.3 (CPython x86_64 64bit) - Linux-6.4.3-arch1-1-x86_64-with-glibc2.37 (OpenSSL 3.1.1 30 May 2023, glibc 2.37)
[debug] exe versions: ffmpeg N-111422-g886c1ffb5d (fdk,setts), ffprobe N-111422-g886c1ffb5d, rtmpdump 2.4
[debug] Optional libraries: certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>yt-dlp is up to date<EMAIL_ADDRESS>

All formats are recoded. We do not have access to the original.

We do not have sufficient information available to decide the "best" format any better as explained in the pinned issue https://github.com/yt-dlp/yt-dlp/issues/1232#issuecomment-939635345. As for AV1, we do plan to make it default eventually as explained in another pinned issue https://github.com/yt-dlp/yt-dlp/issues/4846

Yes, we only have access to the "original" recode, aka the video made by YouTube before they disposed of the true original.
My idea is that the date uploaded should have a correlation to which format is better quality.

We have often seen better later recodes than the "original recodes". So it's likely youtube preserves the source and recodes from it every time. Or, at the very least, their best format is not accessible to us.

Very interesting. I'm certain this doesn't apply to every video, I wonder what criteria are used on their end.


Replace tokio mutex with std mutex

IMHO, I suggest that replacing tokio::sync::Mutex with std::sync::Mutex can potentially lead to better performance outcomes. This assertion is based on the design differences between the two mutex implementations, particularly in asynchronous contexts.
For further insights, check out the following resources:
Discussion on this topic. Never use Tokio mutexes.
tokio::sync::Mutex documentation.

Please feel free to open a PR!

Whoops, didn't mean to close it. :)


Thumprint and new version for cash registers for Norway

Trying to figure out the current status of the Norway localizations.
Found following:
"In 2020 release wave 1, we will extend the out-of-the-box Commerce localization by delivering fiscal service integration for Germany and moving the digital signing of retail transactions for France and Norway to the fiscal integration framework."
But not seeing this reflected in the documentation, and not sure which version this is in or will be in. Are we talking 10.0.12, 10.0.13 or later?
Any documentation upgrade here would help :)
Regards Halldor
[Enter feedback here]

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

ID: b76e6f66-7b8b-c4e3-c70a-0e73bf356709
Version Independent ID: 0f33ea6f-8812-d823-27d4-5e807e793836
Content: Deployment guidelines for cash registers for Norway - Commerce | Dynamics 365
Content Source: articles/commerce/localizations/emea-nor-loc-deployment-guidelines.md
Service: dynamics-365-retail
Product: ****
Technology: ****
GitHub Login: @AlexChern0v
Microsoft Alias: v-alexec

@Halldor10, thanks for the feedback.
@kfend, please review.

@EvgenyPopovMBS

Hello colleagues,
Uptake of the fiscal integration sample for Norway to the Fiscal integration framework is partially done, but the rest part of it was postponed due to more urgent features, that our team is currently working on.
So, for now only legacy version of the Norwegian localization is available, and we don't have a confirmed release plans for updating it to the Fiscal integration framework.
Best regards,
Kirill Kozlov


pollable_fd_state: Mark destructor protected and make non-virtual

The pollable_fd_state is base class for backend-specific fd states. Those are created and destroyed via backend virtual calls. In that case, base class destructor doesn't need to be virtual, deleting an object via derived pointer would call correct destructor on its own. Also, the base class destructor is marked protected to explicitly disallow deletion via base-class.

@xemul hi Pavel, could you please help review this change?


com.baomidou.mybatisplus.core.MybatisConfiguration:[85] - mapper[com.datasophon.dao.mapper.ClusterServiceRoleInstanceMapper.updateToNeedRestart] is ignored, because it exists, maybe from xml file[Bug] [Module Name] Bug title

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
com.baomidou.mybatisplus.core.MybatisConfiguration:[85] - mapper[com.datasophon.dao.mapper.ClusterServiceRoleInstanceMapper.updateToNeedRestart] is ignored, because it exists, maybe from xml file
[根据部署教程，启动bin目录下的脚本时，报这个错误](url)

What you expected to happen
我克隆了dataphon到本地，缺少一些jar包。但是通过查看mapper和xml没发现重名的方法
How to reproduce
下载百度云提供的包，启动服务时就会报该错误
Anything else
一次
Version
v1.1.0
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

This is a repeated issue


Eq funcs for locks

Fixes #128

Current coverage is 77.06% (diff: 81.25%)

Merging #134 into master will increase coverage by 0.90%

@@             master       #134   diff @@
==========================================
  Files            24         23     -1
  Lines          3540       3501    -39
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           2696       2698     +2
+ Misses          637        609    -28
+ Partials        207        194    -13

Powered by Codecov. Last update 888edd1...26bcea3


Need a clarification in the rank example.

In the rank example, I saw the below sentence. However, from reading online introductions about learning to rank (LTR), I learned that LadmdaRank is in fact a pair-wise ranking method too. Will you please clarify which exact LTR method is now provided inside the xgboost. Also, do you have a plan to provide the ladmdaMART implementation in near future?

The model used in XGBoost for ranking is the LambdaRank, this function is not yet completed. Currently, we provide pairwise rank.

It is already supported in https://github.com/dmlc/xgboost/blob/master/src/objective/rank_obj.cc#L319 However, we did not observe significant improvement over pairwise version


Support DEFAULT keyword in INSERT statements

Problem Statement
In INSERT statements on PostgreSQL, you can explicitly use DEFAULT in a tuple to indicate the default should be used, rather than omitting the column:
postgres=# CREATE TABLE t (a INTEGER DEFAULT 5);
CREATE TABLE
postgres=# INSERT INTO t VALUES (DEFAULT);
INSERT 0 1
postgres=# SELECT * FROM t;
 a
---
 5
(1 row)

Tools such as Sequelize make use of this and therefore currently fail to insert records if not providing explicit values for all columns.
In CrateDB:
cr> CREATE TABLE t (a INTEGER DEFAULT 5);
CREATE OK, 1 row affected  (1.861 sec)
cr> INSERT INTO t VALUES (DEFAULT);
SQLParseException[line 1:23: no viable alternative at input 'VALUES (DEFAULT']

Possible Solutions
Support the DEFAULT keyword as PostgreSQL does (https://www.postgresql.org/docs/current/sql-insert.html).
Considered Alternatives
Find workarounds in affected tools, such as Sequelize.

@hlcianfagna discovered this is also needed for https://github.com/crate/crate/labels/tool%3A TypeORM support. Thanks!

https://github.com/crate-workbench/typeorm/issues/3
https://github.com/crate/cratedb-examples/pull/187#issuecomment-2093654089


ARMv4/v5 Support

I am interested in adding support for the ARMv4 and ARMv5 instruction sets, since platforms using processors with these ISAs are often using older Linux + GCC environments and lack the various GCC __sync intrinsics.  I've given a bit of thought to how I could implement the various operations using the SWP instruction and compiler or kernel memory barriers, but there are some issues with the approach I have been considering.  The following is an example of a SWP-based semaphore implementation of mint_compare_exchange_strong_32_relaxed (other functions could be implemented in a similar manner):
uint32_t mint_compare_exchange_strong_32_relaxed(mint_atomic32_t *object, uint32_t expected, uint32_t desired)
{
    uint32_t status;
    uint32_t original;

    asm volatile("       mov     %0, #1\n"
                 "1:     swp     %0, %0, [%3]\n"
                 "       cmp     %0, #1\n"
                 "       beq     1b\n"
                 "       ldr     %1, [%4]\n"
                 "       cmp     %1, %5\n"
                 "       streq   %6, [%4]\n"
                 "       mov     %0, #0\n"
                 "       swp     %0, %0, [%3]\n"
                 : "=&r"(status), "=&r"(original), "+Qo"(object->_nonatomic)
                 : "r"(...sem...), "r"(object), "Ir"(expected), "r"(desired)
                 : "cc");
    return original;
}

Note that the ...sem... refers to some global location to be used as a semaphore for protecting the atomic operation.  The problems I foresee are that:

This is not really lock-free anymore due to the reliance on a global semaphore.
Using one semaphore for everything would cause unnecessary waiting.
Locating and accessing the global semaphore would be difficult.  If the atomics were being used in both an executable and a shared library that was loaded at runtime, then they would likely be using different semaphores even if they shared an address space.

I am willing to work on an implementation of this, but if anyone has any recommendations for approaching the problem I would be grateful.  My test platform is currently an Atmel AT91SAM9XE512 (ARMv5TEJ) and the compiler is GCC 4.2.2 targeting ARMv4T.

You're right that it won't be lock-free anymore. It's impossible to make most operations lock-free in userspace on those ISAs.
It's also true that shared libraries will use a different locks, but that's OK.
For a few additional instructions, another option you have is to perform lock striping instead of having a single global lock (or semaphore, as you call it). If the application makes heavy use of separate atomic variables, this might reduce the amount of unnecessary spinning when threads are interrupted mid-operation. Something like this:
#define MINT_GLOBAL_STRIPED_SPINLOCK_COUNT 1024   // or some number

extern uint32_t mint_globalStripedSpinLocks[MINT_GLOBAL_STRIPED_SPINLOCK_COUNT];

MINT_C_INLINE uint32_t *mint_acquireGlobalSpinLock(void *object)
{
    uint32_t lockIndex;
    uint32_t *lock;
    uint32_t temp;
    // Hash the object address to come up with a lock index
    // (Experiment with this hash function)
    lockIndex = ((size_t) object >> 4) & (MINT_GLOBAL_STRIPED_SPINLOCK_COUNT - 1);
    lock = mint_globalStripedSpinLocks + lockIndex;
    asm volatile("       mov     %0, #1\n"
                 "1:     swp     %0, %0, [%1]\n"
                 "       cmp     %0, #1\n"
                 "       beq     1b\n"
                 : "=&r"(temp),
                 : "r"(lock),
                 : "cc", "memory");
    return lock;
}

MINT_C_INLINE void mint_releaseGlobalSpinLock(void *lock)
{
    uint32_t temp;
    asm volatile("       mov     %0, #0\n"
                 "       str     %0, [%1]\n"
                 : "=&r"(temp),
                 : "r"(lock)),
                 : "memory");
);

MINT_C_INLINE uint32_t mint_compare_exchange_strong_32_relaxed(mint_atomic32_t *object, uint32_t expected, uint32_t desired)
{
    uint32_t *lock;
    uint32_t original;
    lock = mint_acquireGlobalSpinLock(object);
    original = *object;
    if (original == expected)
        *object = desired;
    mint_releaseGlobalSpinLock(lock);
    return original;
}

MINT_C_INLINE uint32_t mint_fetch_add_32_relaxed(mint_atomic32_t *object, int32_t operand)
{
    uint32_t *lock;
    uint32_t original;
    lock = mint_acquireGlobalSpinLock(object);
    original = *object;
    *object = original + 1;
    mint_releaseGlobalSpinLock(lock);
    return original;
}

...

This code is untested, so it's possible I made a mistake, but hopefully you see the idea.
If you split the acquire/releaseGlobalSpinLock into separate functions, as is done here, all your asm can go there. The other functions can be implemented in plain C. The asm blocks need to specify "memory" to prevent the compiler from reordering them around the critical sections they're meant to protect.
If you prefer to write them as giant asm blocks instead, that's fine too (just a bigger headache in my opinion), and you don't need "memory" in that case. However, note that your second swp can just be a str.
Finally, since there are no multicore/multiprocessor ARMv4/v5 implementations (I think?), the only cause of memory reordering is the compiler, and therefore all the fences can be implemented as compiler barriers.
#define mint_thread_fence_consume() (0)
#define mint_thread_fence_acquire() asm volatile("" ::: "memory")
#define mint_thread_fence_release() asm volatile("" ::: "memory")
#define mint_thread_fence_seq_cst() asm volatile("" ::: "memory")

Thanks for getting me started, your approach makes sense to me.  I tried running several fairly minimal hash functions on large numbers of generated addresses with properties similar to the static, stack, and heap variables that are likely to be encountered.  The "shift-4" that you used above actually provides quite uniform and fast results, so I'll probably stick with that at least until I have something I can test out on the actual hardware.
Regarding shared libraries, wouldn't there be a problem if, for example, a supposedly atomic variable were being accessed by a thread in the main executable and by a thread in a library loaded by that executable (since the spinlocks would be different)?  It's probably not a particularly common use-case, but I could see one module passing a reference to some structure that contained an atomic variable to another module.

You're right. That would be a problem. Is there some way you could put these functions, and mint_globalStripedSpinLocks, into their own shared library when compiling mintomic for a shared library?
(I actually just checked what C++11 does when compiling for ARMv5 using objdump -d. It relies on the __sync functions, which have implementations that are linked into the ELF, which, in turn, seem to rely on a CAS function that is not linked into the ELF. I assume that CAS function exists in a shared library. They jump to the CAS function indirectly via patch table. I'm not exactly sure how the patch table gets initialized. I guess that's the loader's job.)

Hi awm, Mintomic is nearing the end of its life.
For my purposes, I've basically moved all the atomic C code to Turf: https://github.com/preshing/turf/tree/master/turf/c
You are welcome to add ARMv4/5 support there if it interests you!


Remove inline javascript

Move all inline javascript to separate .js files

Hi I’m interested in the issue, when would I have to get this done by as I’m at schoool then work for the next 8 ish hours

I'm going to work on this if thats okay

@mohammad-aliB At this rate this issue is probably resolved within the next hour. But when you get back their are probably new issues 😄

@Broccolai i should close this now right?

Yep! Close it :)

Oh, and assign me and the other guy that worked on it 👍

@Broccolai What do you mean with assign? How do i do that 🚶

Don't worry, I forgot this was github and not gitlab. My bad 😛


[BUG] Cant login to Server

Rocket.Chat Version: 0.62.1
Code: last dev v2
Auth: LDAP
Problem:

I tried to merge some new Stuff from SDK Stuff & CAS login without success, I don't know where is the Problem. xD

@DoM1niC I believe this is related to some setting in your server that has this huge number (not support for normal Int format)? Can you take a look on that @luciofm, please? Maybe we need to change our Int values to something bigger to avoid this situations.

I dont know about this Int Number, I dont changed this.

@luciofm some Idea to fix my issue, the client is useless now 4 me -.- :(

@DoM1niC What's your server URL?

@rafaelks just LDAP

We use a Integer for FileSize, so this is to big to fit (MAX_INT<PHONE_NUMBER>)
    {
      "_id": "FileUpload_MaxFileSize",
      "value":<PHONE_NUMBER>000000000,
      "type": "int"
    }

We could change the internal representation to a Long (even with the type as int)

@luciofm WOW THX <3 my Misstake now all works :)

Can I work on this ? Or is this fixed? (eventhough its tag says open) ?


V0.2 datacenter data pipeline

Description

Data center pipeline:

Add download
Add cleaning process

Unzip files
Process vmtable file
Process cpu readings file
Id mapping

Linked issue(s)/Pull request(s)

issue_number

Type of Change

[ ] Non-breaking bug fix
[ ] Breaking bug fix
[x] New feature
[ ] Test
[ ] Doc update
[ ] Docker update

Related Component

[ ] Simulation toolkit
[ ] RL toolkit
[ ] Distributed toolkit

Has Been Tested

OS:

[ ] Windows
[ ] Mac OS
[ ] Linux

Python version:

[ ] 3.6
[ ] 3.7

Key information snapshot(s):

Needs Follow Up Actions

[ ] New release package
[ ] New docker image

Checklist

[ ] Add/update the related comments
[ ] Add/update the related tests
[ ] Add/update the related documentations
[ ] Update the dependent downstream modules usage

maro/simulator/scenarios/data_center/common.py VmRequirementPayload: align variable name to vm_info. Also rename this to VmRequestPayload?

But because the event name is "VM requirement event". Which should we use? Request or Requirement.

maro/simulator/scenarios/data_center/common.py VmRequirementPayload: align variable name to vm_info. Also rename this to VmRequestPayload?

But the event name is "VM requirement event". Which should we use? Request or Requirement.

Actually, I mentioned this in another PR.
We need to unify the naming first.

For this scenario, data center is too big, rename it to VM Scheduling
For the VM request/requirement, unified to use VM Request
For the specific amount of resource the VM request asked, name it as requested cores/mem or required cores/mem?
For the resource of PM that already allocated to VM, name it as allocated cores/mem
For the action of allocating/assigning/placing a VM to a PM, name it as placement or allocation?
...

Any supplement or modification to the listed items?

maro/simulator/scenarios/data_center/common.py VmRequirementPayload: align variable name to vm_info. Also rename this to VmRequestPayload?

But the event name is "VM requirement event". Which should we use? Request or Requirement.

Actually, I mentioned this in another PR.
We need to unify the naming first.

For this scenario, data center is too big, rename it to VM Scheduling
For the VM request/requirement, unified to use VM Request
For the specific amount of resource the VM request asked, name it as requested cores/mem or required cores/mem?
For the resource of PM that already allocated to VM, name it as allocated cores/mem
For the action of allocating/assigning/placing a VM to a PM, name it as placement or allocation?
...

Any supplement or modification to the listed items?


Maximum number of bindings reached (2000). Additional elements with bindings will be ignored.

https://morozko.tv/site/group
i have 8 (4 visible\4 hidden) auto-suggest dropdowns (made according to your example), each using the same src. according to https://www.ampproject.org/ru/docs/reference/components/amp-list
"AMP batches XMLHttpRequests (XHRs) to JSON endpoints, that is, you can use a single JSON data request as a data source for multiple consumers (e.g., multiple amp-list elements) on an AMP page. For example, if your amp-list makes an XHR to an endpoint, while the XHR is in flight, all subsequent XHRs to the same endpoint won't trigger and will instead return the results from the first XHR."
there has to be only 1 request to backend from all dropdowns (as i understand), but in practice each dropdown makes a request. Moreover i have 2000+ items in json, so after filling the first field all others stop to work with message: "Maximum number of bindings reached (2000). Additional elements with bindings will be ignored."
i tried to place all names in setState and call new object from amp-list, but it appered that amp-list can't use setState data.

                                Имя четвертого ребенка

        <input name="OrderForm[childname4]" type="hidden" [value]="childname4Id">
        <input id="mobile-query4" name="query" autocomplete="off" placeholder="Выберите имя из списка" type="text" class="search-box"
            on="input-debounced:AMP.setState({ query: event.value, inputText4: event.value, autosuggest: event.value, comboExpanded: true}), mobile-autosuggest4-list.show"
          [value]="inputText4 || ''" value="">

        <amp-list class="autosuggest-box" single-item items="." layout="fixed-height" height="350" src="<?= str_replace('http://', '//', Yii::$app->urlManager->hostInfo).Url::toRoute(['/json/names', 'male' => '-1']) ?>" id="mobile-autosuggest4-list" hidden>
          <template type="amp-mustache">
             <amp-selector class="dropdown-selector" keyboard-select-mode="focus" layout="container" on="select:AMP.setState({
                                            query: '',
                                            inputText4: event.targetOption.split(',')[1],
                                            childname4Id: event.targetOption.split(',')[0],
                                            comboExpanded: false,
                                            trackUrl4: 'https://dmdata.info-tech.pro/wizard/audio-iframe?id='+event.targetOption.split(',')[0]
                                        }),
                                        mobile-autosuggest4-list.hide">
               {{#items}}

= 0 ? '' : 'hidden')"
              role="option" tabindex="0" on="tap:mobile-autosuggest4-list.hide" option="{{id}},{{title}}">{{title}}

                {{/items}}
               </amp-selector>
          </template>
        </amp-list>

Hi @SoleSS , this project is mainly for AMP sample pages.
Please use this resources for general AMP questions. If you think there is a bug, please add an issue to AMP Project.

sorry :)


docs: translate createFactory page

Closes #550
Description
Translate the createFactory page.
Page: https://id.react.dev/reference/react/createFactory

@hellopik Please fix and resolve this to be approved by @mazipan

Still waiting for the updates

Hi @hellopik, are you still able to work on this PR? If we don't hear from you in 24 hours, we'll assign this page to someone else.

Taking over this PR and implementing all the change requests. (cc: @mhaidarhanif @mazipan)


Is a directory .dropbox

Currently I can not start maestral-gui
[idnovic@id-lappy ~]1$ maestral-gui
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
 > Loading access token...
 [OK]
 > Loading access token...
 [OK]
 > MaestralClient is ready.
Traceback (most recent call last):
  File "/home/idnovic/.local/bin/maestral", line 11, in <module>
    load_entry_point('maestral==0.1.3.dev1', 'console_scripts', 'maestral')()
  File "/home/idnovic/.local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/idnovic/.local/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/idnovic/.local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/idnovic/.local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/idnovic/.local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/console_script.py", line 31, in gui
    run()
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/gui/main.py", line 197, in run
    maestral = FirstSyncDialog.configureMaestral()  # returns None if aborted
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/gui/first_sync_dialog.py", line 281, in configureMaestral
    fsd = FirstSyncDialog(parent)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/gui/first_sync_dialog.py", line 134, in __init__
    self.mdbx = Maestral(run=False)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/main.py", line 128, in __init__
    self.client = MaestralClient()
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/client.py", line 284, in __init__
    with open(self.rev_file, "rb") as f:
IsADirectoryError: [Errno 21] Ist ein Verzeichnis: '.dropbox'

This is very unusual. Did this occur between updates of Maestral? Or after any other changes?
First, it seems like Maestral is trying to take you through the setup dialog. It only does that when either the Dropbox folder has been deleted or it cannot determine when the last sync was (if either of the fields "last_sync" or "cursor" in the config file "~/.maestral/maestral.ini" are empty).
Second, it does find the item '.dropbox' in the Dropbox folder, which contains its revision index, but its folder and not a file. Is there any chance that it may have been overwritten? Which file is it actually trying to open? You can check by running:
import os
from maestral.config.main import CONF
from maestral.client import REV_FILE
dropbox_path = CONF.get("main", "path")
rev_file = os.path..join(dropbox_path, REV_FILE)

Does rev_file point to a file or folder? And is it where you expect it to be?
If you delete the dropbox folder and restart Maestral, it will rebuild the index and download all files again. But it would be nice to find out how this happened.

Thank you. I will later try what you suggested.
To what happened, nothing from my perspective. I had maestral open while I hit the shutdown button but I only got a black screen because I kept pushing esc to show the shutdown log. I forced the shutdown via power button. Maybe a file got corrupted.
After the above error I did update maestral because i thought maybe the bug is fixed in a newer version. Still the same error.

[idnovic@id-lappy ~/Dropbox]0$ python3
Python 3.7.3 (default, May 11 2019, 00:38:04)
[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> from maestral.config.main import CONF
>>> from maestral.client import REV_FILE
>>> dropbox_path = CONF.get("main", "path")
>>> rev_file = os.path.join(dropbox_path, REV_FILE)
>>>

No output

Really? That cannot be. At least REV_FILE is always defined. Did you print the value of rev_file with print(rev_file)? The result should be something similar to ~/username/Dropbox/.dropbox.

And the file should be binary file and not a folder. You will be able to see it in your Dropbox folder when you turn on "show hidden files." Maestral will never save a folder to this location. Thats what confuses me.
It may be possible that you forced your PC to shut down while the file was open and that it got corrupted. But that seems very unlikely.

[idnovic@id-lappy ~/Dropbox]0$ python3
Python 3.7.3 (default, May 11 2019, 00:38:04)
[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> from maestral.config.main import CONF
>>> from maestral.client import REV_FILE
>>> dropbox_path = CONF.get("main", "path")
>>> rev_file = os.path.join(dropbox_path, REV_FILE)
>>> print(rev_file)
.dropbox
>>>

How do I force a resync without deleting the content of my dropbox folder?

@idnovic, thanks for the info. I think I know what the problem is - and it does not have anything to do with a corrupted index file.
I believe your settings got overwritten accidentally during an update. Could you do the following, and see if it fixes the issue?

Quit Maestral.
Open its settings folder '~/.maestral'
There should be multiple files in this folder. One of them ends with '.ini' and contains the current settings. Several others should end with '.bak' and are backup files. Their contents all should all look like this in a text editor:

[main]
path = /Users/samschott/Dropbox
excluded_folders = []
excluded_files = ['desktop.ini', 'thumbs.db', '.ds_store', 'icon\r', '.dropbox.attr', '.dropbox']
version = '2.0.0'

[account]
email =<EMAIL_ADDRESS>type = business
usage = 30.1% of 1,313,560.0GB used
usage_type = team

[app]
system_startup = True
notifications = True

[internal]
cursor = 'a long alphanumeric string'
lastsync = 'a long number'
recent_changes = 'a list of recently changed items'

I expect that those settings got overwritten with the defaults during an update, and yours will likely look like this:
[main]
path =
excluded_folders = []
excluded_files = ['desktop.ini', 'thumbs.db', '.ds_store', 'icon\r', '.dropbox.attr', '.dropbox', '.maestral_rev_dict']

[account]
email =
type =
usage =
usage_type =

[app]
system_startup = False
notifications = True

[internal]
cursor =
lastsync = None
recent_changes = []

Could you look through the backup files, find the last modified file that has non-empty values for the path, cursor and lastsync entries and copy those entries over to 'maestral.ini'? The most recent backup file will have the most recent 'modified' date and the largest number for lastsync. It may be titled 'maestral.ini-2.1.0.bak'.

Start Maestral again. It will load the correct settings (most notably, the correct Dropbox folder location) and pick up syncing where it left off.

This is a bug in the code which updates the settings file in-place. It seems to have accidentally reverted all settings when adding the entry recent_changes in the latest update :/
Sorry about all of this!
PS: You seem to have folder called '.dropbox' in your root directory. How did that happen?

[idnovic@id-lappy ~/.maestral]0$ cat ma
maestral.ini      maestral.ini.bak
[idnovic@id-lappy ~/.maestral]0$ cat maestral.ini
[main]
path =
excluded_folders = []
excluded_files = ['desktop.ini', 'thumbs.db', '.ds_store', 'icon\r', '.dropbox.attr', '.dropbox']
version = '2.0.0'

[account]
email =
type =
usage =
usage_type =

[app]
system_startup = False
notifications = True

[internal]
cursor =
lastsync = None
recent_changes = []

[idnovic@id-lappy ~/.maestral]0$ cat maestral.ini.bak
[main]
path =
excluded_folders = []
excluded_files = ['desktop.ini', 'thumbs.db', '.ds_store', 'icon\r', '.dropbox.attr', '.dropbox']
version = '2.0.0'

[account]
email =
type =
usage =
usage_type =

[app]
system_startup = False
notifications = True

[internal]
cursor =
lastsync = None
recent_changes = []

PS: You seem to have folder called '.dropbox' in your root directory. How did that happen?

If it is not used by maestral then I think this is drom the original dropbox which I currently do not use.

For Maestral, '.dropbox' should be binary file and not a folder. And it should be in your local Dropbox directory. I would guess that it is still present in your folder.
Does your post mean that the backup has empty settings as well? And there is no other backup file? What do you get from 'ls ~/.maestral'? The output should look like this:
... $ ls ~/.maestral
defaults		maestral.ini-2.0.0.bak	o2_store.txt
maestral.ini		maestral.ini.bak

Here, defaults is a folder with default settings, maestral.ini-2.0.0.bak and maestral.ini.bak are configuration backups, maestral.ini is the currently used configuration and o2_store.txt is your personal (secret) authentication token.

If you cannot recover the last sync status from a backup file, I am afraid you will have to re-download your dropbox completely. Before you do so, delete the stray '.dropbox' item in your root directory. Otherwise, the current version of Maestral will crash on startup. I have fixed this behavior now.
I will look into what went wrong with the config files. The code here isn't actually my own but copied from the Spyder IDE. So it may take me some for me to figure out.

yes the above maestral.ini files are the only once. I did view the folder with ls -a and the other files are as you expected.
.dropbox is in my case a folder and not a file. If maestral did not create it then dropbox did. In this case you should move maestral's file to an other location. I will post the content of my .dropbox folder below.

Neither Maestral nor Dropbox itself should create anything in the root folder! In any case, commit 8b646293192b3824f306f1c365fb9b394550e9eb should deal with this correctly and will no longer be bothered by the stray folder.

[idnovic@id-lappy ~/.dropbox]0$ ls -a
.               dropbox.pid  iface_socket  instance_db      unlink.db
..              events       info.json     logs
command_socket  host.db      instance1     machine_storage

[idnovic@id-lappy ~]0$ maestral-gui
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
 > Loading access token...
 [OK]
 > Loading access token...
 [OK]
 > MaestralClient is ready.
Maestral index could not be found. Rebuild if necessary.
Up to date
Syncing paused
Indexing...
Indexing 235...
Indexing 446...
Indexing 475...
Indexing 542...
Syncing...
Downloading 1/444...
Exception in thread MaestralFolderDownloader:
Traceback (most recent call last):
  File "/usr/lib64/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/main.py", line 55, in folder_download_worker
    client.get_remote_dropbox(dbx_path)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/client.py", line 796, in get_remote_dropbox
    success = self.apply_remote_changes(result, save_cursor)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/client.py", line 960, in apply_remote_changes
    success += [f.result()]
  File "/usr/lib64/python3.7/concurrent/futures/_base.py", line 425, in result
    return self.__get_result()
  File "/usr/lib64/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/usr/lib64/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/client.py", line 1130, in _create_local_entry
    self._save_to_history(entry.path_display)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/client.py", line 1194, in _save_to_history
    recent_changes.append(dbx_path)
AttributeError: 'NoneType' object has no attribute 'append'

QImage::pixel: coordinate (0,0) out of range
Traceback (most recent call last):
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/gui/main.py", line 224, in update_recent_files
    for dbx_path in reversed(CONF.get("internal", "recent_changes")):
TypeError: 'NoneType' object is not reversible
/home/idnovic/.local/bin/maestral-gui: Zeile 6:  3744 Abgebrochen             (Speicherabzug geschrieben) maestral gui

This is with the newest update

Oups. Fixed in the last commit. Very sorry, the default setting for recent_changes should have been an empty list and not None...

[idnovic@id-lappy ~/.dropbox]0$ ls -a
.               dropbox.pid  iface_socket  instance_db      unlink.db
..              events       info.json     logs
command_socket  host.db      instance1     machine_storage

Ah, this does look like the original Dropbox client settings. You should not delete this! I misunderstood and thought the folder was located in your root directory instead of your home directory. Thats why I was so confused.

[idnovic@id-lappy ~]0$ maestral-gui
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
 > Loading access token...
 [OK]
 > Loading access token...
 [OK]
 > MaestralClient is ready.
Up to date
Syncing paused
Indexing...
Indexing 235...
Indexing 329...
Indexing 335...
Syncing...
Downloading 1/444...
Downloading 2/444...
Exception in thread MaestralFolderDownloader:
Traceback (most recent call last):
  File "/usr/lib64/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/main.py", line 55, in folder_download_worker
    client.get_remote_dropbox(dbx_path)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/client.py", line 796, in get_remote_dropbox
    success = self.apply_remote_changes(result, save_cursor)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/client.py", line 960, in apply_remote_changes
    success += [f.result()]
  File "/usr/lib64/python3.7/concurrent/futures/_base.py", line 425, in result
    return self.__get_result()
  File "/usr/lib64/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/usr/lib64/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/client.py", line 1130, in _create_local_entry
    self._save_to_history(entry.path_display)
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/client.py", line 1194, in _save_to_history
    recent_changes.append(dbx_path)
AttributeError: 'NoneType' object has no attribute 'append'

QImage::pixel: coordinate (0,0) out of range
Traceback (most recent call last):
  File "/home/idnovic/.local/lib/python3.7/site-packages/maestral/gui/main.py", line 224, in update_recent_files
    for dbx_path in reversed(CONF.get("internal", "recent_changes")):
TypeError: 'NoneType' object is not reversible
/home/idnovic/.local/bin/maestral-gui: Zeile 6:  3458 Abgebrochen             (Speicherabzug geschrieben) maestral gui

I have this error with the latest version. Still the same?

Oups. Fixed in the last commit. Very sorry, the default setting for recent_changes should have been an empty list and not None...

You may need to edit the config file manually as well and replace recent_changes: None with recent_changes: []

Oups. Fixed in the last commit. Very sorry, the default setting for recent_changes should have been an empty list and not None...

You may need to edit the config file manually as well and replace recent_changes: None with recent_changes: []

Yes it works again!

Great :) I will be more careful with testing changes before pushing in the future.

no problem and thank you!


Integrate Mesos into Scheduler API

Do we integrate with Mesos directly or through Marathon which already manages containers on top of Mesos? Seems to me that we could easily map Swarm label/constraints with Marathon constraints. Same about your comment on #197 with health checks, tracking, etc. Swarm can access the Marathon API or be notified with the scheduler API thus letting the underlying scheduler deal with health checking mechanisms.
I'm not too familiar with Mesos but it seems that we still need to create a lightweight framework to deal with constraints so that we accept or decline offers from the Mesos Master if those constraints are met or not.

It depends on what swarm is trying to cover and the information that it needs.
Ideally using Marathon will be the simplest approach although swarm will needs another dependency service.
Building a framework in swarm will be the most flexible approach, with the cost of building from scratch, which might not be too bad.
I am trying to avoid having two frameworks (marathon and another) that swarm runs on. It becomes a lot easier to fail and harder to reason since there are two states that needs to be in sync.

"Building a framework in swarm will be the most flexible approach"

I am trying to avoid having two frameworks (marathon and another) that swarm runs on. It becomes a lot easier to fail and harder to reason since there are two states that needs to be in sync.

:+1: Agree
@vieux Is it possible to extract, adapt and merge core parts of VoltFramework into Swarm then? At least we could get some inspiration from this project after some work with the pluggable Scheduler API :-)

I don't think voltframework integrates with swarm?

I also agree that swarm being a framework itself would be the most flexible approach.
No volt doesn't integrate with swarm, but it's a very simple framework written in pure go so it might look like the "swarm framework" in the end.

Agreed as well.

Since multiple Mesos schedulers (including Marathon, Aurora, and Singularity) can now schedule Docker containers, would it be possible for Swarm to offer a simple integration point with those instead creating a new framework? It's unclear to me why you'd want to create a new framework for this when there are already several options.

Is there a way something generic ? To my knowledge, it's not possible, as they all have a different way to communicate (proprietary API / CLI)
Our plan was to do a Scheduler API + implement simple Swarm framework, after, is the Aurora team wants to build and support the Swarm's "aurora backend" that would be great.

Hi Dave, I think the current swarm architecture is easier to integrate via it's own framework than calling other mesos meta framework as it is growing its feature set assuming communication directly to docker daemons instead using d

(Oops fat fingered on my phone!)
Hi Dave, I think the current swarm architecture is easier to integrate via it's own framework than calling other mesos meta framework as it is growing its feature set assuming communication directly to docker daemons instead using docker containerizer.
IMO as swarm is changinv rapidly and being designed along the way, it's easier to write it's own framework for now to also only store state in one framework


Is it possible to validate all inputs on submit?

When the form is submitted is it possible to trigger validation on all inputs in the form?
Currently onInvalid fires on the form however it does not trigger all validation messages to appear.

I believe this is the same as #147 ?
It depends on the user experience here. Normally you would not allow a submit when any of the elements are invalid. So in the component with your Formsy form you use onValid and onInvalid to track when the submit button actually can be pressed.
But the issue mentioned here is about allowing validations to run only when submitting, not as you change the value of the inputs. Would that work for you?

#147 is definitely headed in the right direction.
I guess what I am looking for isn't validation on submit necessarily but more for "You missed a field" to highlight required fields.
With larger forms the user might miss a field and we don't want to ask them to review the whole form to find it before we enable the submit button.  Personally, allowing them to submit and then highlight missed fields is a better user experience.

@rockingskier My solution for that kind of experience in the past has been to have an error message associated with each input that is populated by either "required" or its error message. You can style this whole error state however you'd like, but the important thing is that none of the styles are visible unless there is a "show-errors" class on the form itself (controlled either manually or tied to some state value).
That way you can setState({ showErrors: true }) inside of your onInvalidSubmit handler.
The net result is that the user will only see validation errors when they try to submit the form with invalid values, including whatever messaging you had styled for required fields. This may or may not be your desired experience as its very subjective, but in my opinion the most common use case is correct form filling so its best to not disrupt the user with immediate validation.
Validated Form Component
import React from "react";
import Formsy from "formsy-react";

let ValidatedInput = React.createClass({
    mixins: [Formsy.Mixin],
    propTypes: {
        name: React.PropTypes.string.isRequired,
        type: React.PropTypes.string,
        inputClassName: React.PropTypes.string,
        placeholder: React.PropTypes.string,
        label: React.PropTypes.string
    },
    changeValue(e) {
        this.setValue(e.currentTarget.value);
        this.props.onChange(e);
    },
    render() {
        let errorMessage = this.getErrorMessage();

        return (

                { this.props.label ?
                    {this.props.label} : null }
                <input placeholder={this.props.placeholder}
                       className={["eo-input", this.props.inputClassName].join(" ")}
                       type={this.props.type || "text"}
                       name={this.props.name}
                       onChange={this.changeValue}
                       value={this.getValue()}/>
                {this.showRequired() ? "Required" : errorMessage}

        );
    }
});

export default ValidatedInput;

Relevant error styles
.show-errors {
     .error, .required {
         .eo-input {
             border: 1px solid $eo-red;
             color: $eo-red;
             @include placeholder {
                 color: $eo-red;
             }
         }
         .eo-validation-error {
             display: block;
             color: $eo-red;
             @include font-smoothing();
         }
     }
     .eo-form-validation-error {
         color: $eo-red;
         margin: $eo-gutter/4 0;
     }
 }

Hi, thanks for a great example!
And yeah, this can be solved by just having an error class on the form and toggle it when actually hitting the "submit" button. So the validation is happening "under the hood", but the class decides to display them or not.
So yeah, will not implement new logic for this as it can be solved with current hooks!

I solved it with a didBlur state property:
FormsyMaterialUIText.ts
import { withFormsy } from 'formsy-react';
import * as React from 'react';
import TextField from 'material-ui/TextField';

@withFormsy
export default class FormsyMaterialUIText extends React.Component<any, any> {
  constructor(props) {
    super(props);
    this.state = {
      didBlur: false,
    }
  }

  didBlur = () => {
    this.setState((prevState) => ({
      ...prevState,
      didBlur: true,
    }));
  }

  changeValue = (_, text) => {
    this.props.setValue(text);
  }

  render() {
    const { getValue, multiLine, fullWidth, getErrorMessage, floatingLabelText, floatingLabelFixed, hintText } = this.props;
    const errorMessage = this.state.didBlur && getErrorMessage();

    return (
      <TextField
        onBlur={this.didBlur}
        onChange={this.changeValue}
        value={getValue()}
        errorText={errorMessage}
        floatingLabelText={floatingLabelText}
        floatingLabelFixed={floatingLabelFixed}
        hintText={hintText}
        multiLine={multiLine}
        fullWidth={fullWidth}
      />
    )
  }
}


fix(pstor/etcd): include queuing as part of the timeout

As things stands, store operations are serialized. This is simply a side-effect of the etcd client library taking operation methods in a mutable fashion. todo: whilst we probably don't want 1000x requests to hit the store at once, we probably can open the tap for more than 1 at a time :)
For now, simply include the queuing for our "slot" as part of the timeout.
Signed-off-by: Tiago Castro<EMAIL_ADDRESS>

bors merge


Negative multiplication and division

When I put
8*-5
or
9/-5
it show following error:
Unhandled exception:
#0      _StringBase.[] (dart:core-patch/string_patch.dart:260:41)
#1      _parseString (package:function_tree/src/interpreter.dart:90:17)
#2      _parseString._binaryOperationCheck (package:function_tree/src/interpreter.dart:166:9)
#3      _parseString (package:function_tree/src/interpreter.dart:198:27)
#4      _parseString._binaryOperationCheck (package:function_tree/src/interpreter.dart:165:22)
#5      _parseString (package:function_tree/src/interpreter.dart:180:23)
#6      new SingleVariableFunction (package:function_tree/src/trees.dart:57:12)
#7      StringMethods.toSingleVariableFunction (package:function_tree/src/extensions.dart:22:7)
#8      StringMethods.interpret (package:function_tree/src/extensions.dart:29:22)
#9      main (file:///C:/Users/huzai/OneDrive/Documents/GitHub/Flutter-Sec-A/Flutter/Assignments/second/test.dart:5:13)
#10     _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:32)
#11     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
but it work fine at:
-8*5
or
-9/5
I think it is a operator adjacent problem

Thanks for your interest in this package.
Huh! I didn't even know that Dart (and other languages) accepted expressions like that! In any case, it was a simple enough change to make, and version 0.8.13 should accept those expressions.
Thanks again for bringing up this issue.


Add mavent-lint to the build to check for duplicate/redundant deps.

Avoids issues like #1345
Please consider testing since this removes the hardcoding of a few versions.

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/213/Failed Tests: 7nd4j_PR/org.nd4j:nd4j-aeron: 5org.nd4j.aeron.ipc.response.AeronNDArrayResponseTest.testResponseorg.nd4j.aeron.ipc.AeronNDArraySerdeTest.testToAndFromorg.nd4j.aeron.ipc.AeronNDArraySerdeTest.testToAndFromCompressedorg.nd4j.aeron.ipc.AeronNDArraySerdeTest.timeOldVsNeworg.nd4j.aeron.ipc.NdArrayIpcTest.testIpcnd4j_PR/org.nd4j:nd4j-kryo_2.10: 1org.nd4j.TestNd4jKryoSerialization.testSerializationnd4j_PR/org.nd4j:nd4j-parameter-server-client: 1org.nd4j.parameterserver.client.ParameterServerClientTest.testServer

superseded by #1347


Update snapshot with correctly mounted work/ directory

Background
Previously, the work/ directory which was used as a bridge between the host / docker filesystem was mounted from inside the AMPL directory. Since the AMPL directory gets created during the ./start_pfda script, this makes it difficult to download the files in the correct location. Instead, if we make the work/ directory in the top level, then we can have the users download their pre-trained models to this folder before we git clone.
Relates to #25

This has been completed and I've provided the latest snapshot as pfda-ttyd-AMPL-v1.snapshot


Add metrics instrumentation to Morty

Our project is growing in complexity and we're adding new features and functionality on a regular basis. As a result, it's becoming more difficult to keep track of how our platform is performing in production. In order to build a more and more performant platform, we need to be able to identify bottlenecks in our code.
This is why we should consider adding metrics instrumentation in our codebase. This will allow us to collect data on key performance metrics, such as response times, error rates, and throughput. We can then use this data to identify performance bottlenecks and proactively address them before they become major issues.
For the implementation, as we will also add traces in the future, I propose to use OpenTelemetry. It is simple to use, and it doesn't add a lot of complexity to our code. Metrics will be available on a specific port of the application, for example http://localhost:8090/metrics, in the Prometheus format.
Below a non-exhaustive list of what metrics we could add to begin :
Controller:

Total number of function invocations
Total number of invocation for a given function
Time (in ms) of a function invocation

Registry:

Total number of builds
Total number of build for a given function
Time (in ms) of a function build

@thomasgouveia We should discriminate function invocation time depending if it's a cold or warm start of function


fix(docs): hideOnScroll description

hideOnScroll had an incorrect description that pops up in IDEs

Codecov Report

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

@@           Coverage Diff           @@
##           master    #3682   +/-   ##
=======================================
  Coverage   99.83%   99.83%
=======================================
  Files         174      174
  Lines        3100     3100
=======================================
  Hits         3095     3095
  Misses          5        5

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a25809e...a8009ab. Read the comment docs.


Comprehensive Issue With Many Words to Simulate Actual Issue Titles

Similarly, this issue has a lot of words so that we can test how some "maxLine" = 3 might appear to some users.  However after further breathing, it must be done that more characters are entered into this text box to meet the ill-defined rules of the test. Obviously, a more rigorous testing must be deliberated upon so that we properly adhere to some structure, for we are not savages.

To test the above with issue comments, here are some totally verified quotes from Vice-Admiral Horatio Nelson, 1st Viscount Nelson:

England expects that every man will do his duty
No captain can do very wrong if he places his ship alongside that of the enemy.
Desperate affairs require desperate remedies.
Gentlemen, when the enemy is committed to a mistake we must not interrupt him too soon.
I have only one eye, I have a right to be blind sometimes... I really do not see the signal!
Thank God, I have done my duty.
Our country will, I believe, sooner forgive an officer for attacking an enemy than for letting it alone.

Important
By default, the Bot Framework SDK for .NET stores state data using the Bot Framework State service, which is intended for prototyping only and is not designed for use by bots in a production environment. For performance and security reasons in the production environment, you should either use the Bot Builder SDK Azure Extensions to store state data in your own Azure Table storage or Azure DocumentDB store or create a custom implementation of IBotDataStore to store state data in the destination that you specify.

New issue

test


Passing new ports through requires a reinstall

Hi, I noticed that as I add ports to passthrough via docker-compose it re-installs the entire instance. Is there a way around this?

Just the terminal, but I'll modify the storage as suggested and give it a try. Thanks.


Make it easier for people to automatically deploy to the PaaS

Person from Ministry of Justice :

"FYI, I've put together a continuous deployment process, so that we don't have to commit changes to the 'compiled' html files, after making changes to the source files.
If you're interested, it's more or less documented here:
https://github.com/ministryofjustice/cloud-platform-user-guide/blob/master/.circleci/config.yml
It's quite specific to the way we use TDT, so I don't think it's worth submitting a PR for this, but it might be of interest if/when you get any developers working on it."

This Github actions workflow automatically deploys to paas: https://github.com/DFE-Digital/technical-guidance/blob/master/.github/workflows/delete_review_app.yml
It also creates a review app for each new pull request.

Unfortunately, GOV.UK PaaS is being decommissioned. In light of this, going to close this issue as won't do.


ignoreSearch option in cache.match() not working

I tried, and couldn't get the 'ignoreSearch' option working at all.
For reference: https://developer.mozilla.org/en-US/docs/Web/API/Cache/match#Parameters

@ilancohen see this https://github.com/NekR/sw-cache-options
@jakearchibald should we close this?

Sure, thanks!


[BUG] Deepspeed prints all the print statements N times, N=num_gpus.

Deepspeed prints all the print statements N times, N=num_gpus. Any way to stop it from printing things N times ? Is there deepspeed loglevel environ parameter ?

@djaym7, this probably a bug as the expected behavior is to print on rank 0. Can you please share log to help locate this issue? Thanks!

Closing for lack of response, please reopen if needed.


Update code to use new ensmallen_graph bindings correctly

Update calls to ensmallen_graph to use new bindings correctly. This should address #349 too.
We'll need to wait until ensmallen_graph version 0.4.3 is published before running Jenkins and testing whether this works. Until then this draft PR will fail.

Creates holdouts correctly in a reasonable (very short!) period of time too. We can merge this if/when Jenkins passes


Retinexformer support?

https://github.com/caiyuanhao1998/Retinexformer
Really nice project.
Thank you very much in advance!

Hey, the FiveVK model does some really beautiful tone and color correction, it's great!
I converted it to an ONNX model from Retinexformer, but I'm running into some errors in Chainner when I try to load it with cropped images that have non-standard dimensions. It seems to work fine on everything else, though.
It would be fantastic if you could incorporate this architecture, especially since it doesn't look like it needs any extra dependencies.
Thanks again for everything!
Best,
Milan

Anything is possible, it just matters if we're willing to do the work to add it. It takes time to properly add support for an arch

Okay, I will patiently wait and hope then. :)

Anything is possible, it just matters if we're willing to do the work to add it. It takes time to properly add support for an arch

Can I get a contact email? I'm considering a donation for the implementation of Retinexformer. Thank you.


Serial Connection with Windows Computer

I have tried to setup my Pebble Time smartwatch with my Windows 8 computer, everything seems to be OK.
I would like to connect directly to my smartwatch using a SerialTransport connection, but I'm not sure how to make it on windows.
I tried to use COM ports, but I'm not able to configure them.
Any suggestions?

Fixed: Use assigned COM port to connect :smile_cat:


fix: bugs introduced on dev

Try out this version of the Hiro Wallet - download extension builds.

Fixes 3 bugs introduced on dev. Merge before releasing.

Going to merge this bc minor changes and want to rebase on it.

cc/ @fbwoolf  Not good that this broke the wallet, but good we found it

Understand this was a quick fix, but the solution should include typing metadata as undefined.

Understand this was a quick fix, but the solution should include typing metadata as undefined.

Yes, I understand, I did already comment on the release that this is actually fixed/addressed in my open api PR. This was just to make sure the release wasn't accidentally released broken.


chore(Blog): create “2022-06-28-jeudi-soir-1”

Automatically generated by Netlify CMS

👷 Deploy Preview for lucileetguillaume processing.

Name
Link

🔨 Latest commit
7b3c6fe0aba5fef85a5eb1cbe834f61885161d83

🔍 Latest deploy log
https://app.netlify.com/sites/lucileetguillaume/deploys/62badcb968d1950008ea0605


Progressive rendering step

Hi Xiangyu,
Thanks for inspiring work! I am a little confused about the Progressive Rendering step. Does it exist only in the test time since with code demo_render.py? It seems that in the training Base_Render.py, the only function to speed up the rendering process is to mask out the sampled points with less than 2 observations. Am I missing something? Thanks!

Hi, yes, the progressive rendering step is only for the test time. Because for training steps, we can sample rays for each training image, but for testing, we need to process all the rays if we don't use the progressive rendering step. The progressive step is more effective for the testing process.
Hope this can help you.

Thanks for replying!


Merge Eniark/refactorLogic_09112024 into master.

Refactored the code to be more logically structured. Added functionality for handling boolean parameters. Added new 'policy' key which signifies whether current parameter should generate an array or a single value.
Added Parameter class to encapsulate a parameter and it's possible attributes.

Great job, nice work! xD


⚠ Bofrost.at has degraded performance

In 961c763, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2876 ms

Resolved: Bofrost.at performance has improved in acc6987 after 13 minutes.


Discovery cache hack

Which issue this PR addresses:
Fixes "Internal Server Error" when live and cache discovery fails.
What this PR does / why we need it:
In cases where we have a dead APIService object, we get internal server error. This hack ignores the error
Test plan for issue:
oc new-project test
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
  name: v1beta1.test.faros.sh
spec:
  caBundle: fakebundle
  group: test.faros.sh
  groupPriorityMinimum: 100
  service:
    name: test
    namespace: test
    port: 443
  version: v1beta1
  versionPriority: 100

of create -f api.yaml
# test
curl -k -X GET      -H 'Content-Type: application/json'      "https://localhost:8443/admin/subscriptions/${AZURE_SUBSCRIPTION_ID}/resourcegroups/${RESOURCEGROUP}/providers/Microsoft.RedHatOpenShift/openShiftClusters/${CLUSTER}/kubernetesobjects?api-version=admin&kind=test.example.com"
curl -k -X GET      -H 'Content-Type: application/json'      "https://localhost:8443/admin/subscriptions/${AZURE_SUBSCRIPTION_ID}/resourcegroups/${RESOURCEGROUP}/providers/Microsoft.RedHatOpenShift/openShiftClusters/${CLUSTER}/kubernetesobjects?api-version=admin&kind=ClusterVersion"

Is there any documentation that needs to be updated for this PR?
N/A

OK, I think the following is a better way: in RefreshAPIResources(), just do something like:
	_, dh.apiresources, err = cli.ServerGroupsAndResources()
	if discovery.IsGroupDiscoveryFailedError(err) {
		// Some group discovery failed; dh.apiresources will have all the ones
		// that worked.  This error can happen with a misconfigured apiservice,
		// for example.  Log it and try to keep going.
		dh.log.Warn(err)
		return nil
	}

	return err

yah, might be better


Router SendPayment does not parse Amount when Invoice with dynamic value is set.

https://github.com/lightninglabs/lndclient/blob/67d851af8b541c231dd9bd1abb1842eba05a4dfe/router_client.go#L425
When sending a payment with the parameters request.Invoice set to a 0 amount invoice as well as request.Amount set it will still submit it without the amount as opposed to what is expected for a dynamic value invoice.
I tried it with this invoice. This will result in rpc error: code = Unknown desc = amount must be specified when paying a zero amount invoice
Or is this expected and I have to replace the 0 amount invoice myself first?

I think this is probably a left-over case from back when zero-amount invoices were unsafe. Should probably be fixed in lndclient.

I have started to use lnrpc.LightningClient.SendPaymentSync instead and  subscribe to status updates immediately after as a workaround.


Fix broken text input in the switch node (again)

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes
I found that the previous fix in https://github.com/node-red/node-red/pull/4242 leads to another issue, https://github.com/node-red/node-red/issues/4272 because the current vt value is changed to num or str. Therefore, the code in this pull request changes the vt value when the second rule is added only.
I tested the following rules.
Reopening switch node property

Rule
3.1.0-beta.3
3.1.0-beta.4
This PR

is of type 'string'
OK
Broken
OK

is of type 'number'
OK
Broken
OK

is of type 'undefined'
OK
Broken
OK

Adding 2nd rule

Rule
3.1.0-beta.3
3.1.0-beta.4
This PR

is of type 'string'
Broken
OK
OK

is of type 'number'
Broken
OK
OK

is of type 'undefined'
Broken
OK
OK

Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Thank you!


⚠ Bofrost.fr has degraded performance

In 4b8fe63, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 959 ms

Resolved: Bofrost.fr performance has improved in a1072c1.


Skiing game

Game to ski on snow
can skii on snow by moving the cursor pointer.
On the attack of obstacles game is ended.

@Sulagna-Dutta-Roy please assign me this issue.


Export-Excel: autofilter behaviour

line 424:
Subexpression $null -ne $TableName in expression if ($null -ne $TableName -or $PSBoundParameters.ContainsKey('TableStyle')) forces autofilter ON.
Work around
If I explicitly set -TableName $null parameter or replace subexpression $null -ne $TableName with just $TableName autofilter will not be activated.
I think expression ($TableName -or $PSBoundParameters.ContainsKey('TableStyle')) is more right.

I am confused.
If I apply parameter -now data will be converted to a table with autofilter activated. And only -TableName $null resets autofilter activation.
Without -now autofilter and table conversion are not activated.
I use your test script:
$data = ConvertFrom-Csv @"
Region,State,Units,Price
West,Texas,927,923.71
North,Tennessee,466,770.67
East,Florida,520,458.68
East,Maine,828,661.24
West,Virginia,465,053.58
North,Missouri,436,235.67
South,Kansas,214,992.47
North,North Dakota,789,640.72
South,Delaware,712,508.55
"@
$data | Export-Excel .\salesData.xlsx

line 108

#"Now" option will create a table, unless something passed in TableName/Table Style. False in TableName will block autocreation

Strange condition.
Well then explicit  -AutoFilter:$false should override table autocreation

From doc:

The -Now switch is a shortcut that automatically creates a temporary file, enables "AutoSize", "TableName" and "Show", and opens the file immediately.

I got it at last. But -Now has an unexpected side effect which I have to overcome somehow. This looks like an algorithm issue.

-Now is ambiguous. It should be refactored. This is algorithmic issue.

Thanks for the drill down. Since that grew organically, side effects were probably not handled. The -Now was an "idea" if you do:
$data | Export-Excel

That is similar, it creates a temporary file though.

Thanks for reply.
I have found a workaround and made peace with it :-)
I use -Show or -Now -TableName $false.

Nice. Did you try -TableName $null? Curious if it worked


Slider: value > max, value < min breaks the component

A developer can specify minimum and maximum values and they often come from api's. This also applies for the value. Sometimes there can be bad data resulting in a value being larger than max and vice versa. This will break the component and we should at lease limit the position of the knob to the min and max positions to not break the gui.

#147


Disable border for single window on the screen.

Is it possible disable border if there is only 1 window on the screen?

You could execute this command and it will disable the border for current active window
yabai -m window --toggle border
You need to key bind this command using skhd
ctrl - b : yabai -m window --toggle border

Thanks, but it would be cool to have it automated.

You can use window rules to disable borders for specific applications or windows.


How to manage styles.min.css.ts and swiper-icons.ts?

It looks styles.min.css.ts and swiper-icons.ts provide css by TypeScript format, but it is somehow different from swiper's original swper-bundle.min.css.
You may take some manual effort to create such 2 files, but it is hard to manage update them in future.
Is it possible to make updating process automated?

Closed as per #4


chore(master): release 3.7.0

:robot: I have created a release beep boop
3.7.0 (2024-08-08)
Features

annotation: add @choice and @empty (2aecd9b)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v3.7.0
:sunflower:


feat: recommended block ui changes exlm-1992

Please always provide the Jira Issue your PR is for, as well as test URLs where your change can be observed (before and after):
Jira ID: https://jira.corp.adobe.com/browse/EXLM-1992
Test URLs:

Before: https://main--exlm--adobe-experience-league.hlx.live
After: https://exlm-1992--exlm--adobe-experience-league.hlx.live

Can you rename this function properly convertToTitleCaseAndRemove?
This is an existing function but not sure what the remove meant for,

done Noor


Feat: support host header when use httpgetter

In our business scene, chart registry will get org name from request domain. Different orgs has different domains.
So we need to set host header when helm sends a http request.

@jianzzz I was just reading about the header on wikipedia and it notes:

Mandatory since HTTP/1.1. If the request is generated directly in HTTP/2, it should not be used.

A 400 bad request will be the response for an HTTP/1.1 request that does hot have the host header.
Because of the differences between the different HTTP versions, this is something I would expect the Go http client to handle. If it did not it would not be able to handle different HTTP versions.
Charts hosted on github.io domains work and the routing is fine with subdomains and even different domains. Same with AWS. Could the issue be somewhere other than Helm?

Yes. I found a more appropriate solution. We can use coredns host plugin to resolve the domain name. Thank you for your reply.


Develop

documentation set

Codecov Report

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

@@           Coverage Diff           @@
##           master       #9   +/-   ##
=======================================
  Coverage   83.87%   83.87%
=======================================
  Files           5        5
  Lines         155      155
=======================================
  Hits          130      130
  Misses         25       25

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8680d3a...e44ba3b. Read the comment docs.


F1 score in 01_fine-tuning-titan-lite.ipynb

I had to run the following code block 2x before it would output the scores. The first time I ran it, the output was blank:
from bert_score import score
reference_summary = [reference_summary]
fine_tuned_model_P, fine_tuned_R, fine_tuned_F1 = score(fine_tuned_generated_response, reference_summary, lang="en")
base_model_P, base_model_R, base_model_F1 = score(base_model_generated_response, reference_summary, lang="en")
print("F1 score: base model ", base_model_F1)
print("F1 score: fine-tuned model", fine_tuned_F1)

Final output:
F1 score: base model  tensor([0.8868])
F1 score: fine-tuned model tensor([0.8532])

You might want to consider using the Model Evaluation feature within Bedrock to compare the models rather than using the score function.

Thanks @jicowan  - we will get back to this; prioritizing other bugs for now.


README Changes for multiplex project downloads

Context
For multiplexed projects users can now download:

Only regular samples as SingleCellExperiment - this is an explicit choice that the user makes.
Only regular samples as AnnData - this is because there's no multiplexed samples as AnnData

Problem or idea
We should add a sentence in the respective READMEs expressing this:

For only regular single-cell samples as SingleCellExperiment README - This download only contains non-multiplexed samples from project SCPCP00..09. You can can download all the available samples in the project here (link to project page)

For only regular samples as Anndata README -  This download only contains non-multiplexed samples from project SCPCP00..09. AnnData is not available for multiplexed samples. Learn more here (link to FAQ https://github.com/AlexsLemonade/scpca-docs/issues/297)

Solution or next step
Tagging @allyhawkins or @jashapiro  to provide appropriate copy for the README and where it should be presented in the README. Maybe a line number for where the copy should go in the README templates
Single-cell README
AnnData README
@davidsmejia when do you need this by?

I'd like to have this by 4/25. We would like to deploy these changes along with moving away from hdf5 around noon on Friday and re-load everything over the weekend.
I should have the related changes on staging by EOD Wednesday this week.


esp-backtrace does not print backtrace in certain situations.

I wanted to use esp_backtrace::arch::backtrace() to obtain a backtrace in my watchdog interrupt handler, so that I can print a backtrace of where the watchdog occurred. To my surprise the backtrace was empty (even though I have force-frame-pointers enabled).
Apparently the issue was that some stack-frames around the interrupt handling code where not 16-byte aligned, which would cause the printing to be aborted (due to esp_backtrace::is_valid_ram_addr returning false).
https://github.com/esp-rs/esp-hal/blob/e033162ffd1994c46c478de2de5ec1eed3869762/esp-backtrace/src/lib.rs#L214C1-L217C6
When I removed the 16-byte alignment check, I got a correct backtrace back until main.
I'm not sure if there are also other situations where the stackframes are not 16-byte aligned, or whether that's just because I'm inside an interrupt handler. I just wanted to share my discovery, not sure if its of any help to you.
Thank you

Thanks - that's an interesting observation and getting a backtrace is especially useful for WDT interrupts (probably not for other interrupts)

I had a look into this and found where we screw up the stack alignment: https://github.com/esp-rs/esp-hal/blob/8a23dbe1b6e10459e4d7456f2da96b4c406e7740/esp-riscv-rt/src/lib.rs#L724
That needs to get fixed
The other thing is that after thinking about it I'd say we will never be able to get a reliable backtrace to the where the interrupt got triggered.
e.g. code like this is quite commonly produced
			42002d6a:	715d                	add	sp,sp,-80
			42002d6c:	c686                	sw	ra,76(sp)
			42002d6e:	c4a2                	sw	s0,72(sp)
			42002d70:	c2a6                	sw	s1,68(sp)
			42002d72:	c0ca                	sw	s2,64(sp)
			42002d74:	de4e                	sw	s3,60(sp)
			42002d76:	dc52                	sw	s4,56(sp)
			42002d78:	da56                	sw	s5,52(sp)
			42002d7a:	0880                	add	s0,sp,80

It's not always the case that

the FP is always pointing to the "right" frame
the FP on the stack is set
the RA on the stack is set

The best thing that can be done is to take MEPC and RA from the TrapFrame to see where the interrupt triggered and what called that code
See
https://github.com/esp-rs/esp-hal/blob/8a23dbe1b6e10459e4d7456f2da96b4c406e7740/esp-wifi/src/timer/riscv.rs#L30-L31
https://github.com/esp-rs/esp-hal/blob/8a23dbe1b6e10459e4d7456f2da96b4c406e7740/esp-wifi/src/timer/riscv.rs#L65
(the  TrrapFrame is not available for "delegated" interrupt handlers like the GPIO handler set via https://docs.esp-rs.org/esp-hal/esp-hal/0.21.1/esp32c6/esp_hal/trait.InterruptConfigurable.html#tymethod.set_interrupt_handler )
I will submit a PR for the change in esp-riscv-rt later


Loading multiple channels at once causes failures

If I have 4-5 channel logs open in separate browser tabs (say for instance #moarvm, #raku-dev, #raku, and #cro), and quickly F5 them all, half or more of them will fail with errors after a few seconds.  If I refresh the very same tabs, but space out the F5's by 1-2 seconds a piece, all logs load fine, even though they all appear to be loading in parallel still.
Thus I'm guessing there's some part of the load-and-render process that does not like to be run concurrently.  Space out the requests just enough, and that stage doesn't overlap, and all is good.

OOC, which browser?
What are the errors that you see?

Firefox 94.0, 64-bit, on x64 Linux Mint 20.2.
... and of course I can't recreate the errors right now.  Maybe time of day (and thus likely load on your server and/or the relevant parts of the Internet) matters?  I'll check again tomorrow morning, which is when I usually do my catchup backlogging.

Ok, contact me on IRC then... I'd like to see you try while monitoring the log

I can no longer reproduce this, so closing for now.

Thanks for following up!


fix naming convention

there is a warning reported in CVP check for 4.12
Warning: Value : (metallb-operator.4.12.0-202211081106) csv.metadata.Name metallb-operator.4.12.0-202211081106 is not following the recommended naming convention: <operator-name>.v<semver> e.g. memcached-operator.v0.0.1
http://external-ci-coldstorage.datahub.redhat.com/cvp/cvp-redhat-operator-bundle-image-validation-test/ose-metallb-operator-bundle-container-v<IP_ADDRESS>211081106.p0.g400e854.assembly.stream-1/25722d11-444e-4b29-97ec-ae8252013758/operator-metadata-linting-bundle-image-output.txt
I think this could be a common issue, so pr against master can cherry-pick to 4.12 branch later.

thanks!

/retest

/override ci/prow/operator-e2e-upgrade


Fix crash on iOS Apple Maps when loading really large polylines

Switch to using heap allocation to prevent corrupting the stack.
Does any other open PR do the same thing?
No.
What issue is this PR fixing?
No issue filed -- discovered through our own crash monitoring software.
How did you test this PR?
With iOS and Apple Maps load a <Polyline> with ~60,000 coordinates and test on a real device (does not seem to crash on iOS Simulator) and deploy / launch debugger using Xcode.
Set a breakpoint in AIRMapPolyline.m on setCoordinates().
As soon as the CLLocationCoordinate2D coords array is allocated continuing execution raises a EXC_BAD_ACCESS since the stack has been corrupted.
Switching to heap allocating the temporary coords array allows the polyline to render.
Does not affect Android / Google Maps as that code uses GMSMutablePath and calls addCoordinate in a loop (which presumably is heap allocated under the hood).

This is a very good catch. Good job, @ascherkus! I hope this PR gets merged soon.

Can someone with write access take a look at this PR?

Rebased my PR on top of latest branch -- would love to get this into the next release if possible. Let me know what's missing or what else I should look at to get this merged. Thanks!

@ascherkus any chance we can get that PR rolling again?

@ascherkus any chance we can get that PR rolling again?

Not sure what else to do here -- it's rebased, reviewed, but I can't merge as it's missing one approving review.

Hello @ascherkus.
I sincerely apologize for the late reponse to this pr. The very limited time I've had to spend on this project was put towards migrating to the new react-native arch.
I'll test out the proposed changes immediately.