jsgrid data submitted as blanks

I cross posted this in jsgrid-PHP (not sure that repository is looked at very often) and in an update to an older post on StackOverflow (although that's a month old now):
Basically, as per tabalinas's suggestion, I did the following:
Followed the CakePHP 3.0 Cookbook on REST implementation and then used the jsgrid-PHP sample javascript to help create my own.
In my project's config/routes.php, I have the following to allow json and ajax.
Router::scope('/', function (RouteBuilder $routes) {
    $routes->extensions(['json', 'xml']);
    $routes->resources('Instrument');
}

And in my View, this is the jsGrid script:

Currently, when I try to save new data, I get empty lines (as in the a new line will appear in the jsGrid, but nothing that I input when adding it is there). When I try to edit data and then save it, I get a "Please wait" message, followed by nothing saving, the line of data still being editable, and a console error as follows:
http://localhost/<?= $basepath ?>/instrument/edit Failed to load resource: net::ERR_CONNECTION_RESET
With <?= $host.$basepath ?> referring to the host of the server and my system's base URL respectively.
This is an excerpt of the Index page:
<?php
    $config = include("$host.$basepath/config/app.php");
    $db = new PDO($config["db"], $config["username"], $config["password"]);
    $instruments = new Instruments($db);
    switch($_SERVER["REQUEST_METHOD"]) {
        case "GET":
            $result = $instruments->getAll(array(
                "instrument" => $_GET["instrument"],
                "comment" => $_GET["comment"],
                "resource_id" => intval($_GET["resource_id"])
            ));
            break;
        case "POST":
            $result = $instruments->insert(array(
                "instrument" => $_POST["instrument"],
                "comment" => $_POST["comment"],
                "resource_id" => intval($_POST["resource_id"])
            ));
            break;
        case "PUT":
            parse_str(file_get_contents("php://input"), $_PUT);
            $result = $instruments->update(array(
                "instrument" => $_PUT["instrument"],
                "comment" => $_PUT["comment"],
                "resource_id" => intval($_PUT["resource_id"])
            ));
            break;
        case "DELETE":
            parse_str(file_get_contents("php://input"), $_DELETE);
            $result = $instruments->remove(intval($_DELETE["id"]));
            break;
    }
    header("Content-Type: application/json");
    echo json_encode($result);
    ?>

Updated with index.ctp page (in the PHP sample, it uses index.php, but my CakePHP 3 project doesn't use that, the same goes for config.php, as CakePHP 3 uses app.php inside the config folder). I'm also confused about Repository php files (I'm not sure if they refer to the Controllers or the Table inside the Model.

**Update: ** I reverted the index.ctp changes as they're apparently not needed. I also removed the return from each of the ajax callbacks. This has now let me be able to save, edit and delete to jsGrid, however the ajax callbacks still do not function (and hence reloading the page wipes anything on jsGrid since loadData doesn't work).


webhook path/query parameters

We would like do define a webhook, with path and query parameters.
The specification for the webhooks does not specify "path pattern" as they are defined for Paths.
What would be the preferred workaround for describing "path pattern"?
Reusing the webhook name like this
  "webhooks": {
    "messaging/{param1}/{param2}/?messageId={param3}": {
      "get": {
        "parameters": [
             {  "name": "param1",
                 "in": "path",
                 "required": "true"
             },
             {  "name": "param2",
                 "in": "path",
                 "required": "true"
             } ,
            {  "name": "param3",
                 "in": "query",
                 "required": "true"
             }
      ...

Or to add extension parameter for:
  "webhooks": {
      myWebHook: {
      "x-path": "messaging/{param1}/{param2}/?messageId={param3}",
      "get": {
        "parameters": [
             {  "name": "param1",
                 "in": "path",
                 "required": "true"
             },
             {  "name": "param2",
                 "in": "path",
                 "required": "true"
             } ,
            {  "name": "param3",
                 "in": "query",
                 "required": "true"
             }
              ...

In both cases, I can also prepare a proposal to extend OpenAPI if that is needed.

sigh Every endpoint can be a webhook. You don't need to define them separately. Just put a toggle into existing API definitions (I have been doing this forever)
Example:
`			    "create": {
"METHOD":"POST",
"DESCRIPTION":"Create new Person",
"ROLES":{
"BATCH":["ROLE_ADMIN"],
"HOOK":["ROLE_ADMIN"]
},
"REQUEST": {
"permitAll":["username","password","email","firstName","lastName"]
},
"RESPONSE": {
"permitAll":["id","version","username","email","enabled","accountExpired"]
}
},
POOF! Now only the 'ROLE_ADMIN' role can register to get notified by this endpoint
Whether tou use Kafka or your own internal postinterceptor`, this can check the security and then notify via registered URL

The webhook feature serves the case where the paths are set as part of the subscription, which is outside of the scope of the OpenAPI specification. Our webhook feature describes the payloads that are available and how to respond; registering to receive those webhooks, and which paths they will be sent on, is done out of band.
If the subscription has limitations, such as requiring particular paths for particular webhook payloads, that's of course fine, but that's part of the registration process and won't be covered in the OpenAPI description.

Firstly, I'd like to commend you on your excellent work on this project. It's been very beneficial for us developers, thank you for it.
However, I'm a little disappointed that you won't be adding support for partial URLs, paths, and query parameters to your OpenAPI specification webhook element. This feature would enable "callback" to receive simple status updates in a callback without the need for a particular payload definition, which can be overkill in some cases. Additionally, it would allow callback implementers to use the same code generators for implementing webhook/callback services, and service/transaction designers to fully define in one OpenAPI file the message exchange flows between multiple parties.


Auction ended no bids frontend

I will merge. I think we should provide some feedback to the user about the blank unbiddable parcels. Maybe we can use an overlay for that.


is there select count(id) from tb group by id syntax in mongoid?

hi all,
is there count aggregate functions in mongoid?
for example select count(id) from tb group by id syntax in mongoid?
thanks in advance

For grouped counts:
Model.where(field: value).aggregate
Model.all.aggregate
#etc...

hi durran,
thanks for your reply!
Can I aggregate by one field so that I can get a counts array by this field.
the result should be like ,for example
there are two models Category and Product
In Category model
has_many :products
In Product model
belongs_to :categories
I want to do the group count by category_id  ,  Product.all.aggregate by  category_id ,
so what's the syntax should be?

Product.only(:category_id).aggregate

thanks for your reply!
2011/11/10 Durran Jordan <
<EMAIL_ADDRESS>
Product.only(:category_id).aggregate

Reply to this email directly or view it on GitHub:
https://github.com/mongoid/mongoid/issues/1385#issuecomment-2693034


Fix spelling of my surname :-)

Argh. I'm really sorry for that!
I need this fixed in quotes.edn (on the newest master commit) as well. Would you like to resubmit or should I fix it? Thanks! =)

I fixed it! Sorry again! =)


Negupt bug fix

All Submissions:

[YES/NO] Have you followed the guidelines in our Contributing document?
[YES/NO] Have you added an explanation of what your changes do and why you'd like us to include them?
[YES/NO] I have updated the documentation accordingly.
[YES/NO/NA] I have added tests to cover my changes.
[YES/NO/NA] All new and existing tests passed.
[YES/NO/NA] My code follows the code style of this project.
[YES/NO/NA] I ran lint checks locally prior to submission.
[YES/NO] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Does this introduce a breaking change?

[YES/NO]

Any relevant logs, error output, etc?

(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)
Other information

@negupt Could you change the name of this PR to something more declarative? The title becomes the commit message and we like them to be useful. Typically the best title answers the question: "If merged this PR will...". So the title could be something like:

Updates the formating of the AdPat owner doc


PDF creation build failure for Gujarati language

Details
Building pdf fails with many of these kind of errors:
! Package inputenc Error: Unicode char \u8:ત not set up for use with LaTeX.
Building epub and html completes successfully.

Project URL: https://readthedocs.org/projects/mss-doc-gu
Build URL (if applicable): https://readthedocs.org/projects/mss-doc-gu/builds/4954188/
Read the Docs username (if applicable): cyberorg

Expected Result
PDF build should complete successfully
Actual Result
PDF build failure

@cyberorg where you able to build the PDF in your own computer? I just downloaded the code and was able to build the HTML but I had a different problem with the PDF:
******** ERROR !! PLEASE UPDATE titlesec.sty !!********
******** THIS VERSION SWALLOWS SECTION NUMBERS.********.

Yes, using this in conf.py
latex_elements = {
'preamble': '''
\usepackage{fontspec}
\setsansfont{FreeSans}
\setromanfont{FreeSerif}
\setmonofont{FreeMono}
''',
}
and then running the following:
make -e SPHINXOPTS="-D language='gu'" latex
cd build/latex/
xelatex *.tex
This creates the pdf.

I see. That seems to be a very custom way to generate your PDF file which is not setup in RTD. You could try to do some magic in your conf.py that RTD will execute by you and try different options.

Using xelatex instead of pdflatex seems to be the only way to generate pdfs of "non-english" language, I am sure this affects every Indian languages(there are 15 official ones) and all other languages using unicode characters.
Is there way to add that magic of using xelatex in place of pdflatex to conf.py?


function defaults?

In ink-chart it is nice to have nextColor()

I am dealing with this in the constructor of the chart.


How about do not depend on prost if not enable nats_storage or postgres_storage?

I'm using v0.5, it works very fine thanks!
v0.6.x  depend on  prost, even not enable the nats_storage or postgres_storage.  It's too heavy for a small project.

Hi @deftsp
Thank you for the bug report. The Prost generation of structs are giving a base to sequence / store the metadata and notification data of the jobs, allowing a generic way of handling and scheduling tasks regardless of the backing data store.
In terms of code base, v0.5 vs v0.6 is thus totally divergent. Only the user facing API stayed the same.
I agree - having Prost generation happening on initial compile could be seem as hard handed. But, the v0.6 code simplified and ordened things a lot.
The amount of lines of code is v0.6 (without Postgres/Nats) = 3647
v0.5 sits at 1313.
With the above I have to agree, the code base is bigger. But the generated Prost file is only 130 lines of code, code you still need to put back afterwards. There's also a lot of lock contention issues on the 0.5 design.
In short - I don't think I can help you with this. Sorry.

The inclusion of prost is also preventing me from using this project

@BrettMayson , @deftsp
Question - what part of it is preventing you from using this?

I'm still using v0.5.0 for my project.  I do not want to increase the dozens of dependencies introduced by post.
The API of v0.6x is pretty, I like it.  I might find time to create a PR with a feature which able to make prost optional

Ok - in terms of design, I'm using prost to generate bytes to put on the Metadata and Notification stores. If you want to remove Prost then you'll need to provide your own to/from bytes implementations.
Maybe there is a simpler way around this

I mean the design should allow the scheduler just run in memory unless the feature(like postgres_storage) has been selected.   In that case, there's no need for the to/from bytes implementations.

Hi @deftsp and @BrettMayson
Check out v0.7.0 - it makes Prost optional.


Issue with snake_case Header Keys in extraHeaders Causing WebSocket Upgrade Failure

I have encountered an issue while establishing WebSocket connections using the uWebSockets.js library. Specifically, when I attempt to use snake_case style keys (e.g., "device_id") in the extraHeaders configuration object, it results in a failure of the HTTP upgrade request to WebSocket.
Here is an example of my configuration:
const socket1 = io(url, {
    extraHeaders: {
        "device_id": deviceRoom,
        // other header information...
    },
    connectionStateRecovery: {},
    reconnectionDelayMax: 10000,
    query: "debug=1" // enable debug mode
});

In this case, the WebSocket upgrade request fails. However, if I change the key name to kebab-case style, such as "device-id", everything works as expected.
I believe this might be a bug that needs fixing, as according to HTTP specifications, header keys are case-insensitive and typically allow kebab-case style. If possible, please investigate this issue and consider supporting snake_case style keys.

It is supported. No idea what software you are running

Snake_case is supported.


v-model used in a number input does not accept characters other than numbers

Version
2.6.10
Reproduction link
https://jsfiddle.net/rellect/ta1mkpnc/
Steps to reproduce

Open the repro link
Type '1E' in the input
See "foo" value is null instead of '1E'

What is expected?
v-model should match the value in the input
What is actually happening?
v-model saves the value as null if it contains characters other than numbers

'1E' is a valid number by the html spec.

It may be in the spec, and Vue.js may need some re-working, but the input of 1E seems to be invalid in Chrome. Inspect element on the input box and run $1.value and you will see that it is "" which means the browser rejected the input.

You should open an issue on Chromium tracker

Just checked the spec at https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-floating-point-number it does requires at least one number after the e, so it should be 1e1

Oh I didn't the value is not changing, I'll do some more research

It looks like Vue is working as expected there:

Thanks @posva, seems I didn't fully understood this part of the spec and using the correct format does work. The browser behavior here was unexpected that I was sure it's a v-model issue


LTXVCLIPModelLoader not Found

When loading the graph, the following node types were not found:
LTXVCLIPModelLoader
Nodes that have failed to load will show as red on the graph

Update Comfyui if not already done so. Restart server. Use right click "fix node" on any problematic nodes.


Added graphql api for trusted user agent

Add the ability to list/insert/remove/update/apply graphql api for trusted user agent.

reference: https://github.com/aicers/hog/issues/414

Codecov Report
Patch coverage: 5.66% and project coverage change: -0.59 :warning:

Comparison is base (c8456e7) 54.79% compared to head (41c6cce) 54.20%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #48      +/-   ##
==========================================
- Coverage   54.79%   54.20%   -0.59%
==========================================
  Files          45       46       +1
  Lines        8734     8840     +106
==========================================
+ Hits         4786     4792       +6
- Misses       3948     4048     +100

Impacted Files
Coverage Δ

src/graphql.rs
45.07% <0.00%> (-0.44%)
:arrow_down:

src/graphql/db_management.rs
15.38% <ø> (ø)

src/graphql/trusted_user_agent.rs
5.82% <5.82%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Logger should not crash when platform cannot capture StackTrace

Minor refactoring and adding of exception-handler. See also https://github.com/KoalaBear84/OpenDirectoryDownloader/issues/19
Note merge to master (And NLog 4.7)

close/reopen to trigger CI (Travis and AppVeyor)

PS Resharper highlighted me this small mistake (9f24196)

src\NLog\LoggerImpl.cs(106,49): Error CS1503: Argument 1: cannot convert from 'int' to 'System.Exception'

I don't get this error?

PS Resharper highlighted me this small mistake (9f24196)

Thanks for fixing the mistake, and for the merge. Have updated the PR with changelog.


[5.3][Property Wrappers] Only re-write assign_by_wrapper to assignment if all fields have been initialized.

Cherry-picked from https://github.com/apple/swift/pull/31248

Otherwise, the wrapped property's setter will be called with the potential to access uninitialized memory via observers.
Resolves: rdar://problem/60832285, rdar://problem/58312953
Resolves: SR-12341

@swift-ci please smoke test

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 9743ecca36ce3c78284cb45e9468285e78d9bb07

@swift-ci please test OS X platform


Upgrade to kotlin 1.3.30

Update compiler dependencies. Will fix jeremymailen/kotlinter-gradle#93
Had to remove unused and obsolete SELF_TYPE removed in https://github.com/JetBrains/kotlin/commit/a5f96d6470c6b2b5c5ed10f235d3e5e414cfa9b9#diff-ea2f6c02e3b56913b28804fec405288e
Thank you!

Thank you!


feat: add updated kzg file to capella genesis

wrong URL!
its https://raw.githubusercontent.com/ethereum/consensus-specs/dev/presets/mainnet/trusted_setups/trusted_setup_4096.json


Add tare button

Add a physical tare button, and implement it in software. Should probably just be a simple momentary button. Even I can understand the circuit:

[ ] Choose a button that fits and feels nice.
[ ] Integrate it.

Also do #14 as part of this.

Closed by 229d202


Usage with floats as keys

I'm trying to use NotNan as keys, as I saw the impl Radix provided. Here is my test code:
use ordered_float::NotNan;

fn main() {
	let heap = radix_heap::RadixHeapMap::new_at(NotNan::new(0.0f64).unwrap());
}

Compilation fails with:
 --> src/main.rs:4:13
  |
4 |     let heap = radix_heap::RadixHeapMap::new_at(NotNan::new(0.0f64).unwrap());
  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `radix_heap::Radix` is not implemented for `ordered_float::NotNan<f64>`

Am I doing it wrong?

I think the issue is related to ordered_float 1.0 deprecating NotNaN and making it a type alias for NotNan. I wonder if it's not a rustc bug though that things don't work through the alias.

Since this crate depends on 0.5 and you depend on 1.0 and these are not semver compatible, cargo will create two different ordered_float crates; one for each version. So the impl of Radix for NotNaN exists only for the 0.5 version and not the 1.0 version. The error rust displays in this case is confusing though.
The solution would be to either:

Lower your dependency version to match radix-heap.
Bump the dependency version of radix-heap (I probably ought to do that eventually).

Thanks for the explanation. Version 0.5 is fine for me right now.


Rename dimension: parameter to dimensions: everywhere.

Description
"Dimensions" (plural) is clearer than "dimension". The reference is to the depth of the array, the number of dimensions in a vector.
Tasks

Rename the dimension: parameter to dimensions: everywhere. Example: https://github.com/patterns-ai-core/langchainrb/blob/main/lib/langchain/llm/cohere.rb#L18

This will likely be a breaking change so should be highlighted in any change docs released :)


New version: JetBrains.CLion.EAP version 221.5080.1

Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 454
Microsoft Reviewers: Open in CodeFlow

/azp run


Custom error message for missing sequence values

Hello, thanks for this great library.
I have a question regarding sequence values. I've set a property for sequence of values like this:
        [Value(0, Min = 1, HelpText = "Path(s) to file(s)", Hidden = true)]
        public IEnumerable<string> FilePaths { get; }

So at least one value is required. When I parse an empty list of arguments the generated help message contains this:
ERROR(S):
A sequence value not bound to option name is defined with few items than required.

That message is not very informative to the user (it also contains a grammatical error if I'm not mistaken: few should be fewer?). How can I customize it? Thanks in advance.

Ditto. I'd like the same thing.
    [Value(1, Required = true, MetaName = "Files", HelpText = "Files to be printed.")]
    public IEnumerable<string> Files { get; set; }

This lamely prints:
ERROR(S):
    A required value not bound to option name is missing.

I'd like it to print:
ERROR(S):
    At least one filename must be provided.


add contributing to PyMC

Description: What does this implement/fix? Explain your changes.

Adds contributing to PyMC
Reference: Issue or Pull Request (PR)

[x] Towards #87

Reminders

[x] Did you review the CONTRIBUTING GUIDE?
[x] Did you reference an issue or another pull request?

Any other comments?
None

@SangamSwadiK Thanks for this PR.
a) I think for filters, we should use:

contributing (video)
using-pymc (pymc-resource)

b) For ArviZ thumbnail, we can use this one as a start (may need resizing):
https://www.canva.com/design/DAFTXBr6mxg/9QnMuzbCHObGl049DcdJpg/edit?utm_content=DAFTXBr6mxg&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton
c) For "Contributing to PyMC Documentation", let's start with this thumbnail:
https://www.canva.com/design/DAE6rZJAdA0/GB-izEd0N7fTbbCWZ6gIrA/edit?utm_content=DAE6rZJAdA0&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton
c) In the navigation bar, I would move "Contributing to PyMC" above the "core python" one.
d) Can we update this title to "PyMC" and not "PyMC3" (remove ref to version 3):
Intuitive Bayesian modeling with PyMC3
e) The current links in the 3rd row point to the YouTube video.  I think we can point them to:

Intuitive Bayesian Modeling with PyMC: https://pymc-data-umbrella.xyz/en/latest/about/intuitive_modeling/index.html
etc.

Thank you @SangamSwadiK.
Nice to have the PyMC resources on one page! I think people will find it useful.


 Thanks for your patience

did that occur after supplying an input?

can you please tell me what is the steps you made to reach this error and the python version you have

Hi
Sry for dealy in answering u
Python 2.7.13
[GCC 6.3.0 20170118] on linux2
Impossible supply an input because the error occour at
sig>
without give any input previously

so it occurs after running ./SigPloit.py ?

no i use
#python SiGploit.py
If i use ./SiGploit.py i get  "permission denied"

Try it as follows "sudo python SiGploit.py"
On Wednesday, 28 June 2017, Cinabro<EMAIL_ADDRESS>wrote:

no i use
#python SiGploit.py
If i use ./SiGploit.py i get "permission denied"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/SigPloiter/SigPloit/issues/11#issuecomment-311721159,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXXuv7xh6sD8N8JGLEoabDKeY0Eon6TEks5sIoUYgaJpZM4N_UsH
.

Or else give permission in bin...chmod +x SiGploit.py

python sigploit.py
Traceback (most recent call last):
File "sigploit.py", line 16, in
from ss7.tracking import *
File "/home/z/SigPloit/ss7/tracking.py", line 14, in
import sigploit
File "/home/z/SigPloit/sigploit.py", line 21, in
from gtpmain import *
File "/home/z/SigPloit/gtpmain.py", line 12, in
import gtp.info
File "/home/z/SigPloit/gtp/info.py", line 18, in
from attacks.info import discover_gtp_nodes
File "/home/z/SigPloit/gtp/attacks/info/discover_gtp_nodes.py", line 39, in
from gtp_v2_core.utilities.configuration_parser import parseConfigs
File "/home/z/SigPloit/gtp/gtp_v2_core/utilities/configuration_parser.py", line 40, in
from gtp_v2_core.tunnel_mgmt_messages.create_bearer import CreateBearerRequest, CreateBearerResponse
File "/home/z/SigPloit/gtp/gtp_v2_core/tunnel_mgmt_messages/create_bearer.py", line 34, in
from gtp_v2_core.commons.gtp_v2_msg_base import GTPV2MessageBase
File "/home/z/SigPloit/gtp/gtp_v2_core/commons/gtp_v2_msg_base.py", line 36, in
from gtp_v2_information_element_base import *
File "/home/z/SigPloit/gtp/gtp_v2_core/commons/gtp_v2_information_element_base.py", line 9, in
from IPy import IP
ImportError: No module named IPy


SHOW FULL TABLES is incredibly slow - Do we need to care about views?

Affected Version
All versions of SS4
Description
dev/build does take a long time. Benchmarking some of the queries shows that SHOW FULL TABLES query can take multiple seconds (in some environments) and is called on every table.
Steps to Reproduce
Try running dev/build on a slow (e.g. remote) database server with showqueries=1
0645: SHOW FULL TABLES WHERE Table_Type != 'VIEW'
4.4135s

Some versions of mysql have huge performance issues when running queries that care about whether a table is a view or not.
https://bugs.mysql.com/bug.php?id=60961
Removing the Table_Type condition greatly improves query performance
0398: SHOW TABLES
0.1137s

Given that silverstripe doesn't use views, can we ditch this, and improve our dev/build performance by a factor of several times?

For context, I was testing with a mysql azure database.

I think as long as an accidentally introduced view doesn't break things, this simplification would be okay.

It'd be good if we could still exclude views in some other way if we remove the mechanism from the query itself. Can we cache the result somehow so it's not computed/queried for each table?


dbt-hive can only connect to default database

Hi,
I am trying to connect database specified in profiles.yml.
but it seems dbt-hive that connecting default database, not using schema property.
Is there a way to connect specific database using dbt-hive?

You should be able to use a custom schema as follows:

dbt_hive_demo:
  outputs:
    dev_cia_cdp:
      auth_type: ldap
      host: hostname
      http_path: path
      password: pwd
      port: 443
      schema: my_custom_schema
      threads: n
      type: hive
      use_http_transport: true
      use_ssl: true
      username: name
  target: dev_cia_cdp

Hello @tovganesh , I added custom schema but it does not working.
And I think dbt-hive does not using custom schema property when connecting.
https://github.com/cloudera/dbt-hive/blob/47bbb1447afa86621799cf7056314ac534cea441/dbt/adapters/hive/connections.py#L210-L218
I am using kerberos for auth mechanism and authenticated before running dbt debug.
Here's the profiles.yml I am using.
dbt_dev:
  outputs:
    dev:
      type: hive
      schema: schema_name
      host: hostname
      port: port
      auth_type: KERBEROS
      kerberos_service_name: hive
      username: username
      use_ssl: False
      use_http_transport: False

  target: dev

Am I missing something? or Do I have to add other properties to connect hive?
Thanks for helping.

The connection is created as a default connection, and later each identifier qualified with schema.model name when actual models are run.
Curious if this is causing an issue to you? Is the connection itself not been established when running dbt debug ?

hi @hyewonee-0 could you update on the above?

Hi @tovganesh ,
I refer to the official configuration， running dbt-debug is OK.

But running dbt-run is getting an error, and I haven't found the solution yet, can you help me, thank you

my hive version is 1.1.0-cdh5.13.3, Is the version too low reason?


Why is the Email case sensitive ?

i registerred just now with
Myemail.gmail.com
i tried login in using myemail.gmail.com and it said something is wrong  i asked to change my password and again typed myemail.gmail.com but this message didn't show up (the other one did) also i used the terminal at the start for my email maybe that's why?

It certainly shouldn't be case sensitive, for sure. I just tried it out and I can confirm that the UI login page is indeed case-sensitive.
@michaelquigley - I wouldn't expect that so I've labeled it a defect.
Thanks for the report @sanabel-al-firdaws

i'll work on getting this knocked out next week for v0.4.21.

im glad zrok sends me my excat email when i reigsiterred from the terminal other wise i wouldn't have relised i made the first letter upper case


Remove helpUri from SARIF output

This is unversioned, creating a couple of issues:

404 when rules are removed
Incorrect information provided when a rule is run and the helpUri either leads to a page which shows new behaviour not included in the rule that was executed, or doesn't show behaviour that has since been removed.

This property is not used by GitHub and report output "MAY" include it according to v2.1.0 of the SARIF spec.

Warnings

:warning:
It looks like this PR contains functional changes without a corresponding test.

  Generated by :no_entry_sign: dangerJS against d8a91e2790f8a22d02c8142636dc14c1bef21cc8


Runtime error in training

You're disabling gradients while computing super resolution image forward pass through generator, hence the generator loss has no gradients and causes runtime error on backprop

The new version weight has been uploaded, and some known bugs have been fixed


Getting configs names takes too long

Steps to reproduce the bug
from datasets import get_dataset_config_names
get_dataset_config_names("allenai/c4")

Expected results
I would expect to get the answer quickly, at least in less than 10s
Actual results
It takes about 45s on my environment
Environment info

datasets version: 1.16.1
Platform: Linux-5.11.0-1022-aws-x86_64-with-glibc2.31
Python version: 3.9.6
PyArrow version: 4.0.1

maybe related to https://github.com/huggingface/datasets/issues/2859

It looks like it's currently calling HfFileSystem.ls() ~8 times at the root and for each subdirectory:

""
"en.noblocklist"
"en.noclean"
"en"
"multilingual"
"realnewslike"

Currently ls is slow because it iterates on all the files inside the repository.
An easy optimization would be to cache the result of each call to ls.
We can also optimize ls by using a tree structure per directory instead of a list of all the files.

ok


Balance Doesn't appear for generated accounts

Description
The user balance did not appear for newly generated twin even after funding the twin and being able to access the basic and advanced deployment tabs i was not able to see the balance.
In the video below, i had the mnemonics of one of my previously created accounts loaded and the balance was visible for this account without any issues, then i entered the mnemonics of the account that i generated from the Create Account button and the balance did not appear for this one even though i had access to the basic and advanced tabs since this account already had tfts in it.
Get Mastodon (15).webm
Steps to Reproduce

Navigate to https://getmastodon.threefold.io/
Click on Create Account
Wait for the account to be created then fund your account.
Refresh the page.

@mohamedamer453
Should be fixed in https://github.com/threefoldtech/www-mastodon/pull/68


Added Solution for exercise 654 in Python3

@MarioCSilva please go through the contribution guidelines, you have to follow the PR Template and make the necessary changes in the next PR you submit.


Snippet not autoexpanding when trigger ends in '>'

Plugin works perfectly except for when the trigger ends in a > character. I have tried with multiple triggers and tried to fix this with regTrig = true but nothing seems to work. Is this is a special character? Any help is appreciated.
PS.
return {}, {
 s({ trig = '>=', wordTrig = false, }, fmt([[\ge]], {}), {}) -- works!
 s({ trig = '=>', wordTrig = false, }, fmt([[\implies]], {}), {}) -- doesn't work
}

My config:
local ls = require('luasnip')
ls.config.set_config {
  enable_autosnippets = true,
}

Huh, that should work.. My guess would've been that wordTrig is set, but you've explicitly disabled that.
Could you try again? Maybe the snippet didn't re-load, there's an issue with that at the moment

fwiw, I have no problems with
ls.parser.parse_snippet({ trig = "=>", name = "implies" }, "\\implies")
with wordTrig set to false
ref https://github.com/iurimateus/luasnip-latex-snippets.nvim/blob/main/lua/luasnip-latex-snippets/math_iA.lua#L126

Thank you both for your help. I've realized it was caused by my autotag plugin https://github.com/windwp/nvim-ts-autotag. Removing it allowed everything to work properly so I think I will open an issue there instead. Thanks!


Add Parameter for detect intent

@Naveenkm13 there's a conflict with your changes to this notebook and recent changes that were already merged in #210
Can you see if the changes in #210 are sufficient? If yes, go ahead and delete this branch / PR.
Otherwise, please rebase your changes and update with the current changes to main included with your PR.

Rebased and updated the required changes

rebase and update with changes to main

Completed..


How rebuild or re-init the nat rules after iptables -t nat -F?

googling seems only restart the engine by sudo service docker restart can do that.

Correct, the IPTables rules are set when starting the daemon.
Since this is not a bug report, but a support question I'll close this issue; the GitHub issue tracker is intended for bug-reports and feature requests; for other type of issues, please consider using;

https://forums.docker.com
the docker community slack channel; https://blog.docker.com/2016/11/introducing-docker-community-directory-docker-community-slack/

But feel free to comment after I closed


[test-framework] Fix duplicate resource errors leading to failing test

Fixes #7910

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: nmittler
If they are not already assigned, you can assign the PR to them by writing /assign @nmittler in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pkg/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kyessenov this is related (and may also fix) #8002

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: kyessenov
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pkg/OWNERS [kyessenov]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nmittler: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
0c8edc2d4f551ef6dd631cd8fac9007b3f9dece5
link
/test istio-unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nmittler: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
0c8edc2d4f551ef6dd631cd8fac9007b3f9dece5
link
/test istio-unit-tests

prow/e2e-mixer-no_auth.sh
0c8edc2d4f551ef6dd631cd8fac9007b3f9dece5
link
/test e2e-mixer-no_auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test e2e-mixer-no_auth


Milestone 1 Tweet 2

Draft Tweet

Grant Ships is evolving the Web3 grant space with an innovative and modular approach to capital distribution to impactful creators.
A thread 🧵

Pluralism is at the heart of our design, empowering individuals to coordinate and use creativity to create "micro" grant programs and compete with other ships to find the tools and practices that work best.

Keeping Accountability in check, Grant Ships diligently track and report on grantee progress fostering a culture of results and continuous improvement.

Grant Ships turns grant funding into a spectator sport! Engaging game-play ensures active ecosystem involvement, with many opportunities for the community at large to participate.

By distributing authority among Grant Ships, facilitators and voters, we ensure mutual oversight and reduce centralized control of the game.

We take an Adaptive approach. We aim to surface what works best and who are the best performing players in order to constantly improve the game. The game is modular by design.

Stay tuned to this channel for future updates and to learn how to get involved!


Use Dacpac compare in release pipelines

Hi Colin,
Is it possible to use the dacpac compare extension in release pipelines? I added the task and I'm seeing the following warning. Please advise.
2019-11-19T19:21:26.7189611Z ##[debug]Leaving Invoke-VstsTool.
2019-11-19T19:21:26.8776667Z ##[debug]Dac Framework installed with Visual Studio found at C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\150\SqlPackage.exe on machine fv-az639
2019-11-19T19:21:26.9441999Z ##[debug]Using sqlPackage path C:\Program Files\Microsoft SQL Server\150\DAC\bin\SqlPackage.exe
2019-11-19T19:21:26.9451046Z Attempting to get System.AccessToken
2019-11-19T19:21:26.9523627Z ##[debug]SYSTEM_ACCESSTOKEN: '***'
2019-11-19T19:21:26.9531934Z Successfully obtained System.AccessToken
2019-11-19T19:21:26.9684327Z ##[debug]GET https://dev.azure.com/kpmgtaxtech/0d59d88e-848e-4fc8-9df1-8ddac8db0c0c/_apis/build/builds?definitions=1&resultFilter=succeeded&$top=1&api-version=2.0 with 0-byte payload
2019-11-19T19:21:27.0447664Z ##[debug]received 22-byte response of content type application/json; charset=utf-8; api-version=2.0
2019-11-19T19:21:27.1091620Z ##[warning]There appears to be no successful build to compare.
2019-11-19T19:21:27.1100024Z ##[debug]Processed: ##vso[task.logissue type=warning]There appears to be no successful build to compare.
2019-11-19T19:21:27.1100237Z ##[debug]Leaving D:\a_tasks\DacPacReport_1ebf2967-63b3-4372-89f7-6799108a22f0\1.2.114\DacPacReport.ps1.

In Release pipeline, before deployment to the target database, it will be nice to see what changes were deployed. You could argue that having the report in build is good enough, but not all builds get deployed all the way to production.
If the task could publish Schema Change Summary and Change Script by comparing the to-be deployed dacpac with the target database schema, it would provide much needed clarity on what changes are going into each environment.
This task could then also be used as a pre-deployment approval step in a pipeline where only after reviewing the SQL, the database/application/operations administrator/owner would be able to approve the deployment.

Hi @Faiqg this isn't the intent of this task. This task is trying to give an idea of model changes between source versions of the model. What you're asking for is a comparison from the built model and the target database. To do this, you can simply add a SQLPackage.exe invocation to your pipeline, as described in this doc.


replace many npm install commands with a single one liner command

Thanks @capaj - let's get this in
I can live without pretty for now @hg-pyun - I'm open to a PR adding it though!


refactor(isolated-declarations): mark return struct as non exhaustive

#6374  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @DonIsaac and the rest of your teammates on  Graphite


Travis Functions Hitting Quota Limit/Failed to update function

Each time the "depolyment quota" message is shown under different functions.
And even after the "quota" error message is shown, the remaining functions still gets updated.
One possible solution is to use firebase deploy instead of the built-in deploy from travis.

#418 #417


Compiled in Dev Mode

Hello,
I am getting the "You are running Vue in development mode" message even when I compile my project with NODE_ENV=production.  From searching through my project the only thing I can find that is importing vue.common.js is vue-grid-layout, which looks like it was compiled without replacing process.env.NODE_ENV because I can still see it in the minified code.
Would it be possible to release a version with vue compiled in production mode.

which version of vue-grid-layout and vue are you using?

Vue 2.2.0 and vue-grid 2.1.6

Hello!
I have the same problem here with vue 2.3.3 and vue-grid 2.1.6.
One of the main problems of this is that even I disable vue-devtools for production mode, as it detects your component in development it shows the state of my application.
Despite of that, I would like to congratulate you all for that amazing component!

I have solved it requiring the component this way:
const VueGridLayout = require('vue-grid-layout/dist/vue-grid-layout.min.js')


README

In the README the insertion of the line

It does expect certain, polyfillable, es5 features to be present for which you can use es5-shim for ie8

disturbs the flow of thoughts, currently:

For example events.on works in all browsers ie8+ but it uses the native event system so actual event oddities will continue to exist. If you need robust cross-browser support, use jQuery. If you are just tired of rewriting:
It does expect certain, polyfillable, es5 features to be present for which you can use es5-shim for ie8
if (document.addEventListener)
 return (node, eventName, handler, capture) =>
   node.addEventListener(eventName, handler, capture || false);
else if (document.attachEvent)
 return (node, eventName, handler) =>
     node.attachEvent('on' + eventName, handler);

over and over again, or you need a ok getComputedStyle polyfill but don't want to include all of jQuery, use this.

I was going to open a PR but thought to first ask if there is preference on where to move that line? I was thinking of moving the line to after the thought ends, possibly in parentheses:

For example events.on works in all browsers ie8+ but it uses the native event system so actual event oddities will continue to exist. If you need robust cross-browser support, use jQuery. If you are just tired of rewriting:
if (document.addEventListener)
 return (node, eventName, handler, capture) =>
   node.addEventListener(eventName, handler, capture || false);
else if (document.attachEvent)
 return (node, eventName, handler) =>
     node.attachEvent('on' + eventName, handler);

over and over again, or you need a ok getComputedStyle polyfill but don't want to include all of jQuery, use this.
dom-helpers does expect certain, polyfillable, es5 features to be present for which you can use es5-shim for ie8

or

...
over and over again, or you need a ok getComputedStyle polyfill but don't want to include all of jQuery, use this. (It does expect certain, polyfillable, es5 features to be present for which you can use es5-shim for ie8)

the first seems fine. It's a fairly important installation instruction so i'd prefer it not to be an aside. but yeah go for it with the PR if you want

Cheers, PR open
very understandable re: installation instruction 👍


beforeDestroy is deprecated despite being the only way (AFAIK) to detect disconnects

Environment
Knex version: 0.16.3
Database + version: postgresql 11.2
OS: Centos 7
Feature discussion / request
Currently the beforeDestroy event in pool is marked as deprecated (for some odd reason).
From all my testing and reading the source code for knex, detecting database connections dropping/disconnecting unexpectedly (like say, shutting down the database or from network going down) is the beforeDestroy handler.
the query-error is never called for any of the errors from a database going down. Not for when it goes down, and neither when a random SQL query gets back "connect ECONNREFUSED"
I'm currently using this feature to detect when a connection drops and do a graceful migration of knex from the primary database to the slave database. (So just endlessly reconnecting is not the solution)
All I want is what has been mentioned MANY times before, some knex.on('name-of-event') or something to detect when a connection goes down unexpectedly or ECONNREFUSED is thrown.
And no, afterCreate doesn't work because it only gets called after a successful connection and never gets called.

the query-error is never called for any of the errors from a database going down. Not for when it goes down, and neither when a random SQL query gets back "connect ECONNREFUSED"

Sounds like  that is a bug. query-error should be called the same way it is called for any other error that is coming form db driver / pool.

And no, afterCreate doesn't work because it only gets called after a successful connection and never gets called.

There is no beforeDestroy if nothing was created so afterCreate is actually called if beforeDestroy is called or there might be another bug there.
As a work around for knex.on('query-error', ...) not working, you can setup own listener to connection in afterCreate. Though I have no idea why beforeDestroy was deprecated long ago.
I think this issue could be closed, since having beforeDestroy doesn't really solve anything (connections are destroyed all the time and it doesn't mean database is being unavailable). But instead of this one bug report about knex.on('query-error', ...) not working would be better.

I'm also not so sure I want knex.on('query-error') to be the place for detecting connection status although I do agree that it's an annoying bug that query-error does not get called on all those exceptions.
My reasoning is that if the database suddenly goes down or internet explodes, I'd like to be able to detect that and start handling it immediately without having to wait for the next user query to fetch something and then have that throw an error into the user's face, so to speak, and then start handling it.
Also, according to most of my readings from knex issues and such, the reason why knex doesn't provide a lot of functionality when it comes to disconnects and/or reconnection and that type of stuff is that all of those things should be handled by the pool library and not-so-much by knex (which I agree with). However, knex doesn't allow you to specify or pass in all the parameters into the pool to handle all those instances (for example, the beforeDestroy which is essentially the destroy property in the pool library, is now being deprecated among other things).

I think it's important to distinguish between 'query' errors and 'connection' errors. What is described here is a loss in connection, or a server going down. That by definition cannot be classified as a 'query' error. The query-error event in knex is only emitted when the sql server - for whatever reason - cannot process the sql it has been provided. That was by design when it was added. Whether or not it should be changed I don't know, just thought I'd add this in for context..
Although undocumented it seems .on('error') is emitted when connection to the server isn't possible. Perhaps that can help?

I'm also not so sure I want knex.on('query-error') to be the place for detecting connection status although I do agree that it's an annoying bug that query-error does not get called on all those exceptions.

Even that is not a good place to do it since having single connection close doesn't mean that DB/network is down. It just means that single connection was closed. Best way to check that DB is available is to write simple polling routine and check it for example every second (it is simple and robust, there is no reason to make it more complicated).
If database goes suddenly down or internet explodes you need to do a query to see that you don't have connection to the service anymore. Just listening for example if single connection is disconnected doesn't mean that DB is down. To have that logic you would need to make query to DB on every disconnect to verify if DB/network is down or if connection was closed for any other reason.
Neither for example getting connection from pool to make a query does mean that when query is done that database is still up.

Also, according to most of my readings from knex issues and such, the reason why knex doesn't provide a lot of functionality when it comes to disconnects and/or reconnection and that type of stuff is that all of those things should be handled by the pool library and not-so-much by knex (which I agree with).

Please be specific of which issues you are talking about. If feature is very useful, reasonable and necessary and possible to implement cleanly in knex there is no reason why it shouldn't. I still don't know why beforeDestroy was deprecated... I could try to dig that up though, but I still haven't heard any reason why that would be useful (for this issue it doesn't make it easier, you still would need to do additional query to verify that DB is alive and for that simple polling would be more robust).
I think this issue could be closed, since having beforeDestroy doesn't really solve anything (connections are destroyed all the time and it doesn't mean database is being unavailable). But instead of this one bug report about knex.on('query-error', ...) not working would be better. <- closing this in favor of https://github.com/tgriesser/knex/issues/3113

Thanks for creating that issue. I also wanted to expand on a few things.

I'm also not so sure I want knex.on('query-error') to be the place for detecting connection status although I do agree that it's an annoying bug that query-error does not get called on all those exceptions.

Even that is not a good place to do it since having single connection close doesn't mean that DB/network is down. It just means that single connection was closed. Best way to check that DB is available is to write simple polling routine and check it for example every second (it is simple and robust, there is no reason to make it more complicated).

Maybe but I'm trying to avoid needlessly polling the database every second, especially when I know I can do it smarter.

If database goes suddenly down or internet explodes you need to do a query to see that you don't have connection to the service anymore. Just listening for example if single connection is disconnected doesn't mean that DB is down. To have that logic you would need to make query to DB on every disconnect to verify if DB/network is down or if connection was closed for any other reason.

I actually do that. When a pool connection is unexpectedly dropped I check for the reason in the event handler:
/**
 * Event handler for when the pool gets destroyed or connection is dropped.
 * Here we check if the connection has been marked with _ending = true.
 * There are some checks available we can use to check if current
 * connection was abruptly disconnected. Among those from my testing
 * are as follows:
 *
 * conn.__knex__disposed = 'Connection ended unexpectedly'
 * conn.connection._ending = true
 *
 * I went with connection._ending one as I feel that one's the safest.
 *
 */
function beforeDestroy(conn) {
  if (conn.connection._ending) {
    checkActiveConnection()
  }
}

const client = knex({
  'client': 'pg',
  'connection': { /* Connection info here */ },
  pool: {
    afterCreate: afterCreate,
    beforeDestroy: beforeDestroy,
  }
})

this gives me a somewhat red flag that tells me something might be up with the database connection and that I should check the status to make sure it's still there.
function checkActiveConnection(attempt = 1) {
  if (attempt > 5) {
    isUrgent = true
    return gracefulServerMigrate().then()
  }
  client.raw('select 1').catch(err => {
    if (err.code === 'ECONNREFUSED') { // err.code === 'ETIMEDOUT'
      isUrgent = true
      return gracefulServerMigrate().then()
    }
    if (err) {
      let wait = 3000 // shorter timeout for err.code like '57P03' and such.
      if (err.code === 'ETIMEDOUT') { // Longer timeout in case of timeout
        wait = 10000
      }

      console.log(`Error while checking connection status: (${err.code}) ${err.message}`)
      setTimeout(() => checkActiveConnection(attempt + 1), wait)
    }
  })
}

Neither for example getting connection from pool to make a query does mean that when query is done that database is still up.

Absolutely but it gives me a good indication point about connection problems in the pool.

Also, according to most of my readings from knex issues and such, the reason why knex doesn't provide a lot of functionality when it comes to disconnects and/or reconnection and that type of stuff is that all of those things should be handled by the pool library and not-so-much by knex (which I agree with).

Please be specific of which issues you are talking about. If feature is very useful, reasonable and necessary and possible to implement cleanly in knex there is no reason why it shouldn't. I still don't know why beforeDestroy was deprecated... I could try to dig that up though, but I still haven't heard any reason why that would be useful (for this issue it doesn't make it easier, you still would need to do additional query to verify that DB is alive and for that simple polling would be more robust).

Oh I'm not throwing you guys under the bus or anything like that. I can understand the logic behind keeping pool issues separate from knex which is mostly a query builder. It definitely helps for me and others especially if we have access to the pool and can do checks and monitoring there. However knex wraps around the pool library and options (which is annoying) and the beforeDestroy is ironically the only method for being notified if something were to happen to the pool.
Concerning my readings about knex keeping connection/disconnects issues contained within pool and not knex itself, I'm referencing issues such as #407, #448, #1455 and etc. basically, this is definitely a pool issue and I agree with that but to deprecate and remove one of the important handler from the actual pool library is not the ideal solution imo.
In all honesty, I really don't like the name of that handler to begin with, lol. I think a much better name instead of beforeDestroy would be something like poolItemDestroyed or something similar that gets called after the resource cleanup. To me that seems more descriptive about what it does or can do and it allows me to add custom logic when a pool connection gets destroyed and maybe do something in response. Like notify my system monitoring service about the number of pool connections that get opened or closed or etc.

Maybe but I'm trying to avoid needlessly polling the database every second, especially when I know I can do it smarter.

Smarter means usually less robust and more work (e.g. you might suddenly create 1000 status check queries to DB just because all connections were dropped / or make accidental retry-fail loop etc. )  here is some nice dude from AWS talking about it https://youtu.be/O8xLxNje30M?t=2744
Even on websites I many times opt to simple polling instead of using for example websockets, becuase that polling can

However knex wraps around the pool library and options (which is annoying) and the beforeDestroy is ironically the only method for being notified if something were to happen to the pool.

This would be helpful for that and  will be cleaner to have than beforeDestroy https://github.com/Vincit/tarn.js/issues/14
All of those issues mentioned have been resolved:
#407 can only be done by polling and there is no reason why knex should do that internally
#448 database errors can happen at any time so one should always write proper error handling code when doing queries. Also new pool which doesn't autostart helped with this because not there will be no leaked errors during knex initialization
#1455 was also fixed by new pool

Very good input elhigu.
In conclusion, I think I still plan on using beforeDestroy myself for connection monitoring within the pool and to the database. I just wanted to raise the issue due to the deprecated message stating us to let you know if we were to use it and how we were using it.
That tarn issue looks really cool and it would be nice to have access to the tarn pool so we can hook into the internal events in there for those purposes (I'm not sure knex exposes the pool property, don't remember seeing it but I could be wrong).
In any case, my job here is done and you can close this off for now and I think definitely fixing the query-error event to execute on all query errors would alleviate most of my worries and help me a long way. I'll be watching that issue.
Thanks again for your help and input o/


model the transient thermal behaviour of the furnace

To get an idea of ramp times while the furnace is being manufactured, a transient thermal model of the furnace should be written. This will use a 1D axisymmetric mesh to calculate the furnace's energy balance over time and so estimate the thermal response of the crucible and melt stock.

This can be extended out to 3D, providing a stepping stone to a useful thermal model for future refinements.


feat: Include 2D Meshing workflow.

This exposes "2D Meshing" and "Topology Based Meshing" as part of the enhanced meshing workflow.
Please note:
This is being released to be integrated with PyConsole. There are a lot of restructuring opportunities as well as need to document and add tests for these new workflows. These will be done as part of other PRs.

Did some high level testing from PyConsole as well. Seems al right.

Are these both beta in Fluent meshing workflows?

Are these both beta in Fluent meshing workflows @2024R2?

Not the 2D Meshing.

I'm running the 2024R2 launcher. It only shows 3D option there, but it stays like that even with beta enabled so I wasn't sure what to make of it.

Are these both beta in Fluent meshing workflows @2024R2?

Not the 2D Meshing.

I'm running the 2024R2 launcher. It only shows 3D option there, but it stays like that even with beta enabled so I wasn't sure what to make of it.

You can find the option in the meshing workflow drop-down.


[New app]: 8x8 Work

What is the new application?
Helpful Links

https://support.8x8.com/cloud-phone-service/voice/work-desktop/download-8x8-work-for-desktop
https://www.8x8.com/developer

Vendor site
https://www.8x8.com/au/voip-business-phone-services/features/virtual-office-desktop
Have you reviewed the list of supported applications?

[X] Support apps at: https://stealthpuppy.com/evergreen/apps/

Unable to find an update feed for this so far. With the application installed, it's not talking to anything to search for an update (monitoring via Fiddler). I don't have a 8x8 login, so the application may act differently after sign-in.
If you use 8x8, try using Fiddler with the 8x8 Desktop exe installer to see what it might be talking to, to find updates.

Found in https://github.com/DanGough/Nevergreen.


Just stops after a while

Hi
After thinking I had this sorted regarding issue #7, It is still not working correcty. It works and I can se the hello world message on the AWS IOT MQTT Test client, but it just stops, for no apparent reason after some varied amount of time. I cannot se the reason for this and don't know how to get to the bottom of it. I have a suspision it is something to do with the SUART as opening the Arduino serial logger seems to bring it back to life. I have tried it with a BME690 sensor that prints loads to the monitor and that seems to only manage one connection and then it just doesn't connect, even though it keeps trying. I am using an UNO board that only has one SUART but it should be able to cope with this, is look more like the Espresif board is not doing what it is supposed to after a while. Any ideas, this is becoming a real pin.

Should there be a break on line 156?
Wh
Why does it try and send data on line 164 if it knows it is not connected?

@pdbayes Not sure if I understand your issue completely, but we do agree that this sketch has its own flaws around state transitions. This has been identified and fixed internally. We are running some tests on it and hoping to get it merged on GH as soon as we can, hopefully in next couple of days.

Hi, my issue is that it initially connects and i can see hello world starting to appear every 10s or so on AWS IOT Test client. Then after a while, it just stops and no messages get to AWS and it never regains a connection unless the UNO is reset.

Hi, I ran the test sketch with the Arduino serial looger and a TTL to USB converter and collected the logs. It went through the loop with no issues about 1000 times and then this happened:
OK 1 CONNECTED
OK 1 CONNECTED
ERR14 2 UNABLE TO CONNECT Failed to access network
OK 2 0 STARTUP
OK 1 CONNECTED
ERR8 PARAMETER UNDEFINED
OK 1 CONNECTED
OK 1 CONNECTED
OK 1 CONNECTED
OK 1 CONNECTED
OK 1 CONNECTED
OK 1 CONNECTED
OK 1 CONNECTED
OK 1 CONNECTED
OK 1 CONNECTED
ERR8 PARAMETER UNDEFINED
I think the parameter is the topic, it seems to have lost the reference to the topic1 when it failed to access the network. Perhaps on conlost it needs the state to go back to STATE_EL_READY instead of PROVISIONED?

So, by redefining the topic at various states, it's now been running for days with a bme680 and no issues. Is this a firmware issue as surely the topic shouldn't be deleted if there is a disconnect?

Hi. Now stopped after almost a week. I definitely think the state machine in the firmware isn't quite right. Is there any progress on solving this.

Just want to confirm is this with the latest sketch we updated around couple of weeks ago?

So, I tried the new sketch and it worked at first, we then had a power outage and I have not managed to get it working again since. If i do the commands manually it's fine. I think it may be a timeout issue on connecting, I have a netgear mesh wifi system and the router is always up and running before any satellites. Devices tend to then connect to the router as it's first up even when there is better signal coming online slightly later. I think there needs to be a loop retrying the connection on a provisioned device, or it needs to wait for a response and act accordingly. The reason I moved over to this device was that I have an ESP32 DEV kit v4 that works but it randomly loses it's connection to AWS and then gets stuck in a loop and has to be reset. it's really annoying that I can't get something stable working. I used to use Partlicle Photons but they are expensive and they have problems with my home network (it has 2 routers and is double NAT'd and they don't seem to like that), but they used to work flawlessly for years.

OK, so I missed the setTimeout and can see that it will wait 30 seconds for a response from the Connect message. Does the board have a way of checking it is actually online though?

It is also possible that as the device only operates in the 2.4ghz band the mesh router will prefer the 5ghz band and the device tries to connect to that, there seems to be a lot of issues with smart devices and routers/ap's with 5ghz. You can't have different SSIDs for each frequency so cant choose. I might see if the guest network can be limited to 2.4ghz and use that

Worked OK for a while on a 2.4Ghz only AP but still randomly just stops sending messages. This is unusable and is wasting a lot of my time and was a waste of money. It is supposed to make things easier, not harder.

Hi @pdbayes Sorry about not getting back earlier. Give us some time. We have kept a device running for long duration test.  Will get back as soon as I can. Can you btw just let know if any time during the test run, either internet or wifi went off ?
It would be hard to know about internet, so if you happen to have the ExpressLink logs, could you share them ?

It's possible the internet went off but I don't know. How do you access expresslink logs?

Hi @pdbayes,
You can access ExpressLink logs from UART0 i.e. the microUSB connector.
You need to simultaneously open two consoles, one where you will give the AT commands and the other where you can see the ExpressLink logs.
Please refer to Section 6a of the README and this discussion for more info.

So are you saying there would be a stored log on the board? Or do I have to have it running, connected to a pc collecting logs until it stops working?

There is no provision to store logs on the board, you will need to have it connected to a PC until it stops working.
Also, ExpressLink generates a CONLOST event if there is a network-related problem and it requires the host to explicitly issue the AT+CONNECT command again.

usb_log.txt
This is the log from all the loops from just after trying to send  to just after trying to send, it is not getting any messages to AWS.

after_power_cycle.txt
After a power down and up cycle it works OK and here is the log

Noted, thanks a lot for the logs!
We have improved the handling of network disruptions in the next release, it will fix the issue that you are seeing and cleanly disconnect (do a complete Wi-Fi disconnect) when there is a network-related issue.
However, as I mentioned before, the host will have to explicitly issue AT+CONNECT again.
The release will be made available shortly, I will let you know here as well.

The AT+CONNECT would be handled by using the states in the sketch?


[BUG] Task Remove swap from /etc/fstab does not remove swap entry from file

Describe the bug
Test if remove swap task works correctly on every supported platform. On Ubuntu 18.04 task does not remove swap entry.
How to reproduce
Steps to reproduce the behavior:

execute epicli apply ...
confirm in /etc/fstab if swap is disabled

Expected behavior
According to task swap entry should be removed, and swap should be disabled after reboot.
Config files
N/A
Environment

Cloud provider: [None]
OS: Ubuntu 18.04 / 20.04 (vagrant's generic/ubuntu) but should be similar on other platforms

epicli version: 1.2
Example:
This is how /etc/fstab file looks like on vagrant's generic/ubuntu2004:

none instead swap in mount point column causes that no changes will be done by existing task.
Create backport task to v1.0 before close this one
Backport task: #2993

DoD checklist

Changelog

[ ] updated
[ ] not needed

COMPONENTS.md

[ ] updated
[ ] not needed

Schema

[ ] updated
[ ] not needed

Backport tasks

[ ] created
[ ] not needed

Documentation

[ ] added
[ ] updated
[ ] not needed

[ ] Feature has automated tests
[ ] Automated tests passed (QA pipelines)

[ ] apply
[ ] upgrade
[ ] backup/restore

[ ] Idempotency tested
[ ] All conversations in PR resolved

:heavy_check_mark: Fixed


sfwbar: init at v1.0_beta11

Description of changes
Adds sfwbar
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Adding the package to all-packages.nix messes with formatting, for some reason Neovim does not follow editorconfig in that file specifically.

@bobby285271 I would appreciate your review now :)

Should be good to go now.


Assign course to authenticate user

An authenticated user can now add courses, which assigned their id to a course. The profile details for the 'Welcome' message still don't work. So, I commented it out. I'll try to fix it on another branch.

@KajaGrabowska Thank you!


use SCIPgetDualSolVal to get dual values of constraints

So @mattmilten there are a couple of issues here

The name, should we rename the function to the scip one? Is a bit of a weird name.
using this function still returns the wrong solution: it returns SCIP_INVALID because SCIPgetVarRedcost says   returns SCIP_INVALID if the variable is active but not in the current LP

So I don't know how to fix the second issue

In my small example I posted in #136 I am also getting SCIP_INVALID. In my more complex example (which is generated on the fly by PICOS from metaconstraints so that I can't give you a clean copy of it) where I was previously getting the same no dual solution available error for some of the constraints, I am now getting -0.0 for the same subset of constraints. I can try harder to reproduce this in a tangible example, if necessary.


Native VEC Support (No helper extension)

No helper extension to create activities via the VEC

We have investigated this feature and turned out it's not possible to do this without an extension. The long term goal is to add this support to the Adobe Debugger extension.


fixunnest in-subquery with agg node in proper condition

Proposed changes
consider sql having in-subquery
SELECT count(*)
FROM sub_query_correlated_subquery6
WHERE k1 IN
(SELECT k1
FROM
(SELECT k1,
sum(k3) AS bbb,
count(k2) AS aaa
FROM sub_query_correlated_subquery7
WHERE k1 > 0
AND k3 > 0
GROUP BY  k1 ) y
WHERE y.aaa>0
AND k1>1);
The subquery part having agg is un-correlated, which can be unnested.
on the other side:
SELECT count(*)
FROM sub_query_correlated_subquery6
WHERE k1 IN
(SELECT k1
FROM
(SELECT k1,
sum(k3) AS bbb,
count(k2) AS aaa
FROM sub_query_correlated_subquery7
WHERE k1 > 0
AND k3 > 0 and sub_query_correlated_subquery6.k1 > 2
GROUP BY  k1 ) y
WHERE y.aaa>0
AND k1>1);
The subquery part having agg is correlated, which can't be unnested.

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run buildall

run buildall


Route Debugger Not Showing Any Route Information

When I downloaded the RouteMagic solution and checked the RouteDebugger project I found that the following check was causing my issue:
'''csharp
if (!IsRoutedRequest(request) || !request.ContentType.Equals("text/html", StringComparison.OrdinalIgnoreCase))
{
return;
}'''
Commenting out this check allows me to see the route information but now it adds it to everything. js files etc. As @Cluggas suggested on the blog post (http://haacked.com/archive/2011/04/13/routedebugger-2.aspx) when I changed this check to look at the response content type things seem to be working fine.
Unrelated Question: How do I format C# code in github :P

I would also like to take part in this social coding experience but I use HG with TortoiseHG rather than git. I find TortoiseHG seems to fit my windows comfort zone more than anything I've found for git. @Haacked since you are at github now what would you suggest I do (other than start using git ;)

@chadrickm uh, start using git! :) You could try and see if the hg-git tool does the trick for you. It's a mercurial plugin that allows you to interact with a git repo using hg.

Hi,
I've ended up editing the line in DebugHttpHandler.cs and use this workaround for my project... it works, but I don't know if it's the correct way though...
if (!IsRoutedRequest(request) ||
    !(request.AcceptTypes != null && request.AcceptTypes.Contains("text/html", StringComparer.OrdinalIgnoreCase)))
{
    return;
}

@chadrickm: I'm new to git and github too... anyway i think you'll find the answer to your unrelated question here: http://github.github.com/github-flavored-markdown/ :)

@IronGeek well acceptTypes could be / in which case you have no idea what it's for.

I think changing it to check the response content type is correct.

Fixed in 893eaa665a06e3f67c4dedb04f7bc47823dd8b64
Please try it out.

@Haacked I disappeared for a long weekend. Thanks very much for logging it and fixing it so quickly :-)


Guard against tracks_len being zero

to prevent 'index out of bounds: the len is 0 but the index is 0'
https://github.com/librespot-org/librespot/issues/226#issuecomment-971642037

LGTM

LGTM

Well then merge it then,lol!!!

I always try to be democratic about these things and allow some time for the others to respond. Merging now.


Form field as array

Hi,
thanks for great plugin!
I'm using some form fields as array for dynamic input:
name="product[' . $id . ']" value=...
This fields in email are correct and in JSON data in the table as well.
In Magic Forms view on backend if you want to see detail od record the plugin show this error on attached image.

Please, it is possible fix it for use arrays in the detail of form?
thank you
Vaclav

Hello @vsamal
Can you post your form so i can test?
Thanks.-

Hello @skydiver
my code is posted:
`
    <input name="_token" type="hidden" value="Aa4AOo6BTaqpVvSw6wHHn8csfyGYpDO1fqydXQC6">

    <input type="hidden" name="price" class="form-control" value="60.00">
    <input type="hidden" name="orderno" class="form-control" value="180426002">

    <input type="hidden" name="instock[24]" value="Stamp red">
    <input type="hidden" name="instock[26]" value="tamp blue">
    <input type="hidden" name="instock[28]" value="tamp green">

    <input type="text" name="name" value="">
    <input type="email" name="email" value="">

    <input class="form-control btn btn-primary" name="action" type="submit" value="BUY">

`
thanks
V.

Hello @vsamal
I've fixed the bug, here is how your data will look:

This doesn't work:
<input type="hidden" name="product[1][quantity]" value="2">
<input type="hidden" name="product[1][price]" value="3.50">
<input type="hidden" name="product[1][total]" value="7.00">

Or it's just me?
Regard,
Darjan

Hello @zlobec
You're right, i never tested with more than 1 level.
Now appears to be finally fixed. Will be released in the next version.

@skydiver Thanks. The fix does parse data in the backend nicely, but there is an error sending notifications:
ErrorException: nl2br() expects parameter 1 to be string, array given in /vendor/twig/twig/lib/Twig/Environment.php(378) : eval()'d code:65
Probably an array is sent to the mail class?
Regard,
Darjan

Never mind. I was still using an old mail template which did not iterate through arrays correctly.
Thanks again for the update!
Regard,
Darjan


Is it possible to show only work day for the week view?

Hello,
I want to show only work day of the week for an addition week view. I can add the button for no problem, but seems the model doesn't support it. Is there any way that I can only show work day in the week without weekend?
Thanks!!

This seems duplicate of #272

There isn't a way to do this as the architecture of the calendar is tied too closely to 7 days. You have a couple of options, you can either use the existing cal-day-weekend class on the day headers to style them to a disabled color or you could use a custom template for the week view and remove the days manually.

Can this be done with a custom, non-standard view? Suppose you wanted to support both the full 7-day week view (which comes standard) and also a 5-day work week view (non-standard).
So, you don't want to override the standard week view template. You want to add a new view.
Let's say you call that view state: "workweek" and you set that on a button press (e.g. vm.calendarView = 'workweek' -- doesn't matter how it's set).
How do you tell the library "here's the custom template for workweek?"
Can I do this in configProvider? Can I do this with custom-template-urls? Will you show an example of both, if so?
I see something like setting a custom template in a test: https://git.io/vK0Vd but library usage examples would go a long way.
If you can't achieve this design with the library, how would you suggest toggling in-and-out the standard week template to support both work week and full week?

A custom template might work, you can see an e2e example of how to do that here: https://mattlewis92.github.io/angular-bootstrap-calendar/#?example=custom-templates
I would actually have 2 separate instances of the calendar, one with the custom template and one without, toggling between them should be pretty easy then.
You'll probably need some extra business logic inside the template, for that I'd recommend creating a child component and inserting it into the custom template. Have the inputs as all the scope items like vm.view etc, and then manipulate them to remove the week days etc. You'll probably also need some custom styling as well to make the columns 20% width as well.
Alternatively for a really easy fix, just use the existing cal-day-weekend class that is applied to weekend days to make weekends appear disabled like so:


Build docker images for arm64

So they can be consumed by arm64 builders

closing.
we have https://build.opensuse.org/project/show/isv:Rancher:Elemental:Dev:Teal53 for aarch64 which should be sufficient.


Edit Appointment screen is showing translation key for breadcrumb and title

🐛 Bug Report
The breadcrumb and title are showing the translation key on the Edit Appointment Screen.
To Reproduce

Create a new appointment
Navigate and view that appointment
Click the edit button
See that the the breadcrumb and title of the edit screen are the translation key

Expected behavior
They should be the correct header and breadcrumb instead of the translation key

Can I take it ?

Can I take this ?

@mleralec I have assigned this to. you.


Use Docusign for signing documents.

We have now several documents that need a signature of either one person or more persons:

SoW
W9 tax form

So we don't have to paste a Signature.jpg in documents anymore.
Evan is in takes care of the process

You do not need to use Docusign to sign documents. You can sign in a google
doc by Insert Drawing, and Line, Scribble tool before exporting as PDF or
using Adobe acrobat, Tools, Sign.
On Sun, Oct 8, 2017 at 10:07 AM, HJ Hilbolling<EMAIL_ADDRESS>wrote:

We have now several documents that need a signature of either one person
or more persons:

SoW
https://docs.google.com/document/d/1MH-wHbLy_4KSjQeyd5bJNwCS6mGYsuXEA8q4GyooAwY/editP
W9 tax form
https://www.google.com/url?q=https://www.irs.gov/pub/irs-pdf/fw9.pdf&sa=D&ust=1507471167994000&usg=AFQjCNEbXCPjmkmAvOiIrgH8trSWW0zE4Q

So we don't have to paste a Signature.jpg in documents anymore.
Evan is in takes care of the process
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rchain/Members/issues/120, or mute the thread
https://github.com/notifications/unsubscribe-auth/AC5YEZIIukQu10GSHgj_Y3tO9lu2seLzks5sqNcNgaJpZM4Pxt1c
.

Don't you think signing documents digitally would be easier to verify?


Created add-digit-dp-problem.java

Here's a solution to the open issue add digit dp problem.
Please mention hacktoberfest tag.

please change the directory and create a new PR . I need to revert this because you need to put this in the folder and you have added it in the main directory.


Replaced flag checking expressions by Enum.HasValue

What does the pull request do?
The PR replaces expression checking the value for a flag by invocation of Enum.HasFlag which isn't boxing since 2017 (dotnet/runtime#6080).
What is the current behavior?
Currently there are a lot of hand written expressions checking for null which can be simplified.
What is the updated/expected behavior with this PR?
No changes except more clean code.

We added Enum.HasFlagCustom because Enum.HasFlag didn't seem to work non-boxing in a lot of cases - see https://github.com/AvaloniaUI/Avalonia/pull/3066
I'm not sure if this is still the case? @MarchingCube @jkoritzinsky

The non-boxing optimization I believe only happens on Tier 1 JIT or R2R, so we added HasFlagCustom to ensure that we don’t box with Tiered Compilation enabled.

Also all debug builds are boxing, we technically also support Mono and .Net Framework and addition of tiered compilation that also boxes initially makes me always suspicious when I see Enum.HasFlag.

@AndyAyersMS @egorbo, could you confirm that tiered compilation affects this optimization and tier 0 may box an enum value?
@grokys, @MarchingCube, in case if it's true (I hope that this optimization works always) then it makes sense to fix your implementation which is slow, unsafe and buggy (having a non-int enum may cause at least an incorrect result or even crash the app).

@AndyAyersMS @EgorBo, could you confirm that tiered compilation affects this optimization and tier 0 may box an enum value?
@grokys, @MarchingCube, in case if it's true (I hope that this optimization works always) then it makes sense to fix your implementation which is slow, unsafe and buggy (having a non-int enum may cause at least an incorrect result or even crash the app).

it's not optimized in tier0 currently (it's below this check)
I guess it's quite slow for tier0 and can affect throughput/startup time (see gtOptimizeEnumHasFlag).

it makes sense to fix your implementation which is slow, unsafe and buggy (having a non-int enum may cause at least an incorrect result or even crash the app).

SL
        [SharpLab.Runtime.JitGeneric(typeof(StringSplitOptions))]
        [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
        public static unsafe bool HasFlagCustom<T>(this T value, T flag) where T : unmanaged, Enum
        {
            var intValue = *(int*)&value;
            var intFlag = *(int*)&flag;

            return (intValue & intFlag) == intFlag;
        }

x64
C.HasFlagCustom[[System.StringSplitOptions, System.Private.CoreLib]](System.StringSplitOptions, System.StringSplitOptions)
    L0000: and ecx, edx
    L0002: cmp ecx, edx
    L0004: sete al
    L0007: movzx eax, al
    L000a: ret

I don't see what exactly is slow for those instructions that only operate with registers. Legacy framework JIT generates pointer-based stack access, but that's still better than default HasFlag.
Regarding non-int enums: we simply do not use that function for non-int enums.

Regarding non-int enums: we simply do not use that function for non-int enums.

At least it can be changed to be safe and contain a throw expression if non-int enums are not allowed.

At least it can be changed to be safe and contain a throw expression if non-int enums are not allowed.

Unfortunately if(Marshal.SizeOf<T>() == 4) check doesn't get resolved at JIT-time and generates invocations at run-time. .NET type system also doesn't allow us to have enum size type constraint.

Unsafe.SizeOf<T> works at JIT time and is supported by any target framework (see dependencies).

The following code is safe and produces the same instructions as existing.
public static bool HasFlagCustom<T>(this T value, T flag) where T : unmanaged, Enum
{
    if (Unsafe.SizeOf<T>() != Unsafe.SizeOf<int>())
        throw new NotSupportedException();

    var valueUntyped = Unsafe.As<T, int>(ref value);
    var flagUntyped = Unsafe.As<T, int>(ref flag);

    return (valueUntyped & flagUntyped) == flagUntyped;
}

For some reason checking the size reduces the generated code quality:

C.HasFlagWithCheck[[Ienum, _]](Ienum, Ienum)
    L0000: sub rsp, 0x18
    L0004: xor eax, eax
    L0006: mov [rsp+8], rax
    L000b: mov [rsp+0x10], rax
    L0010: mov [rsp+0x20], ecx
    L0014: mov [rsp+0x28], edx
    L0018: mov eax, [rsp+0x20]
    L001c: mov edx, [rsp+0x28]
    L0020: and eax, edx
    L0022: cmp eax, edx
    L0024: sete al
    L0027: movzx eax, al
    L002a: add rsp, 0x18
    L002e: ret

C.HasFlagCustomOld[[Ienum, _]](Ienum, Ienum)
    L0000: and ecx, edx
    L0002: cmp ecx, edx
    L0004: sete al
    L0007: movzx eax, al
    L000a: ret

Your proposed variant actually works better on the legacy framework than our current one though. I wonder if we should have separate method versions for different enum sizes to overcome that JIT limitation.

Mkay, replacing Unsafe.SizeOf<T>() with sizeof(T) fixes the code, but then changing it to use Unsafe.As adds weirdness again.

For some reason checking the size ... reduces the generated code quality:

Can you open a bug for this over on dotnet/runtime? The jit may be getting confused by the parts of the IL that end up not getting imported.

This version seems to consistently produce optimized code with both .NET core and legacy framework JIT
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static unsafe bool HasFlagWithCheck<T>(this T value, T flag) where T : unmanaged, Enum
        {
            if(sizeof (T) == 1)
            {
                var byteValue = Unsafe.As<T, byte>(ref value);
                var byteFlag = Unsafe.As<T, byte>(ref flag);
                return (byteValue & byteFlag) == byteFlag;
            }
            else if(sizeof (T) == 2)
            {
                var shortValue = Unsafe.As<T, short>(ref value);
                var shortFlag = Unsafe.As<T, short>(ref flag);
                return (shortValue & shortFlag) == shortFlag;
            }
            else if(sizeof (T) == 4)
            {
                var intValue = Unsafe.As<T, int>(ref value);
                var intFlag = Unsafe.As<T, int>(ref flag);
                return (intValue & intFlag) == intFlag;
            }
            else if (sizeof (T) == 8)
            {
                var longValue = Unsafe.As<T, long>(ref value);
                var longFlag = Unsafe.As<T, long>(ref flag);
                return (longValue & longFlag) == longFlag;
            }
            else
                throw new NotSupportedException("Enum with size of " + Unsafe.SizeOf<T>() + " are not supported");
        }

C.HasFlagWithCheck[[Lenum, _]](Lenum, Lenum)
    L0000: and rcx, rdx
    L0003: cmp rcx, rdx
    L0006: setz al
    L0009: movzx eax, al
    L000c: ret

C.HasFlagWithCheck[[Ienum, _]](Ienum, Ienum)
    L0000: and ecx, edx
    L0002: cmp ecx, edx
    L0004: setz al
    L0007: movzx eax, al
    L000a: ret

@AndyAyersMS
https://github.com/dotnet/runtime/issues/43509

What is the status on this PR?

Since there's only int sized enums, I think I will just support them only for better code gen if you're okay with it. Perhaps, today will submit changes.

Accidentally dropped mine branch while cleaning up mine fork (git branch -a gave me endless list of branches). Going to open a new one soon.


Issue while adding items

I am Bharti Jayprakash a gssoc'24 contributor
I think there are some issue while adding items to purchase , the number of items added to cart is not being displayed. Also there are some issue in navbar when one open the cart section .
please assign this task to me and mark this as gssoc level 1 issue if u think it is valuable

looking forward for your reply

@invtfl-bharti i have assigned u this issue.

I am a Gssoc24 contributor
I want to work on the above issue, Please assign me

I will display how many items are present in the cart.


Application: "SubIdentity" - Substrate Identity Directory

Project Abstract
SubIdentity is a fully client-side web application build with Vue.js in Typescript. The application enables searching of on-chain identities by any identity field in a substrate-based chain that implements the identity pallet.
For which grant level are you applying?

[ ] Level 1:  Up to $10,000, 2 approvals
[x] Level 2:  Up to $50,000, 3 approvals
[ ] Level 3:  Unlimited, 5 approvals (for > $100k Web3 Foundation Council approval)

Application Checklist

[x] The application template has been copied, renamed ( project_name.md) and updated.
[x] A BTC or Ethereum (DAI/USDT) address for the payment of the milestones is provided inside the application.
[x] I have read and acknowledged the terms and conditions.
[x] The software delivered for this grant will be released under an open-source license specified in the application.
[x] The initial PR contains only one commit (squash and force-push if needed).
[x] The grant will only be announced once the first milestone has been accepted.

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

Thanks for your feedback @semuelle

As part of the second milestone we plan on focussing on performance improvement. I specified that step to point out, that we plan on providing a caching option to IPFS.
We included number 0b in every milestone in order to record, that we will provide thorough  documentation and an updated tutorial with every step. I've expanded the future plans chapter to signal our readiness for maintenance tasks beyond the scope of the project.
We plan on using an open protocol (e.g. wallet connect) to establish a secure connection to a wallet. This also allows connections to a wallet on mobile devices.

Thanks @a-oertel for the submission! It seems like the mokups that are part of the submissions are the same as the Shard's Lab Identity Hub. If this is the case, would you mind providing your own UI mockups? For these type of grants its good to have a very draft first initial mockup to visualize better what you are going after.
Thanks!

Thanks @a-oertel for the submission! It seems like the mokups that are part of the submissions are the same as the Shard's Lab Identity Hub. If this is the case, would you mind providing your own UI mockups? For these type of grants its good to have a very draft first initial mockup to visualize better what you are going after.
Thanks!

Hey @SBalaguer, we created our own Mockups. You can view them here:
https://tdsoftware-dev.de/subidentity/home.png
https://tdsoftware-dev.de/subidentity/search-results.png
https://tdsoftware-dev.de/subidentity/profile-details.png
Could you please clarify what you mean exactly?

For sure! And I might be missing something, but when I go to the Shard's Lab Identity Hub repository, I see this figma link that has the same (or at least very similar) mockups. That's where my confusion lies.

It's true that the designs/mockups are looking similar. One reason is that both are based on the same requirements from the RFP. The other one is that we have chosen the same pink main color as known from polkadot. If you want, we can provide some more mockups of planned pages and components.

It seems that the previous solution had performance issues (Evaluation) that we want to avoid. We're eager to find a more sensible solution and therefore we hesitate to continue using the code base.
Regarding the design: The designs/mockups look similar. This is because they are based on the same requirements of the RFP and we also chose pink as the main color to match the polkadot design.
Further our design addresses some of the issues with the previous design, for example:

Having the search box and the list view appear together on the landing page detracts from the search box's attention. We solve this by making it a central element in the landing page and adding a separate list view.
It was unclear how a closed column could be reopened. We, on the other hand, rely on an intuitive folding solution.
On request, we can provide you with additional mockups of planned pages and components.

As mentioned before, we are very interested in doing maintenance work for the project. The development of additional plugins to extend the solution is also an option for us, as we plan to expand our open source activities.

We considered developing a backend for performance reasons, but the RFP specifically calls for a fully client-side application. Therefore, we did not further investigate this approach. We definitely have the know-how and will keep the option in mind to put a server layer e.g. with Node.js in between the web app and the blockchain.

@a-oertel just as a side note, the website linked in your application seems to be offline:
https://kusama.polkaperson.com/swader

For what it's worth, I don't think it's that important that this is a fully client-side application and I'm certain you will have performance issues if you don't do any indexing before. The last project did and still had issues. For some features, I don't see this working without a backend since you need to query the chain for specific events. Since you say you want to focus on usability and avoid performance issues, maybe you want to rethink that. I'm also curious as to what and how you intend to cache to IPFS.

Thanks for your input @alxs. We will look into this more closely and get back to you next week.

Hey @alxs, in response to your input, we included the development of a backend in our application. Please check our recent changes.

Hey @takahser, we changed the scope of our application based on @Alxs comment. M2 includes the complete initial development of a backend to increase performance and to enable the implementation of features of the next milestone that require the chain to be queried for specific events. This leads to efforts that justify the original estimation. With that in mind, we've moved the implementation of the send tokens feature to M3. This also expanded its scope. In addition the implementation of the plugins governance, treasury and validator is not trivial and should be done with appropriate thoroughness. To deliver a high quality solution we also added a quality assurance step in M3.

Hey @takahser, could you please take a look at our recent changes?

SubIdentity milestone 3 delivery will be delayed because of the current vacation time in the team. Delivery is expected in mid of August. If any questions come up, feel free to ask.


fix(esl-utils): update dispatch parameter type

I have read the CLA Document and I hereby sign the CLA

:tada: This PR is included in version 3.4.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


004 zombies refactor tests

@harrymunro - have refactored tests to make them more pytesty (also split the two assertions into two separate tests to avoid piecemeal testing feedback)) and also added you as a contributor so you should be able to merge this.

Looks good, thanks.


Swift components 1

This is the first part of the swift components work. I am committing it incrementally to make it easier to land.

@swift-ci Please smoke test os x

@swift-ci Please test

@swift-ci Please test

@swift-ci Please clean test

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 2c96a8e0447a0de63fe040d79cd6b59b42fbd2c2
Test requested by - @gottesmm

Linux failure is unrelated. lets try again!
@swift-ci Please clean test linux platform


ErrorBoundary Prop types

Hi! Browsing around and saw the comment here. I think we can do something like this:
import type { PropType } from 'vue'

const ErrorBoundary = defineComponent({
  name: "ErrorBoundary",
  // TODO: Can we do anything with typing here?  Error can be anything so it
  // doesn't like `type`
  // props: ["component", "error"],
  props: {
    component: {
      type: Object as PropType<Component>,
      required: true
    },
    error: {
      type: Object as PropType<Error | Record<string, unknown>> // or just Error
    }
  }
});

I can PR if this looks good 😄

Oh awesome, that looks like exactly what I was looking for.  Yeah that would be great if you wanted to open a PR, I took the easy way around that one for sure :)

Okay PR'd a simple update 😄


get GUID from DMI instead of creating it

Describe the Enhancement:
We generate a random GUID which is sent to Automate as the unique ID for a node. This does not survive a reformat of a computer. It doesn't typically matter for disposable servers, but as a desktop administrator a laptop might want to be considered the same node even if it has to be reformatted (except if it is for a new user?)
Can we get a GUID from DMI?
This is a placeholder, more thoughts later.

GUIDs from hardware is also problematic if you ever swap out CPUs or ethernet cards, etc.

@lamont-granquist I don't think dmi/system/uuid should change unless you swap a motherboard. I think we'd still want to write it to disk rather than look up every time. The biggest conceptual risk there would be if you took a motherboard out of a server for some reason, and it was still good, so you put it in another server but kept the first one. I guess that is real?
dmi/system/uuid is supposedly bogus sometimes though, so we'd have to filter that out.

You also have to consider systems from aix to solaris to raspberry pis.  You may not have DMI, may not have that DMI and that DMI value may not be sane.  There's going to be a lot of edge conditions.

@lamont-granquist yes, many won't, but we would simply generate one if that information wasn't available.
If we don't have a guid on disk, then

look for a decent one in dmi/system/uuid
or generate one
write it to disk

This is primarily to benefit the desktop use case.
There's a separate related thread not discussed there about if inspec/chef should look for each others guid if they don't have one, so we can associate them in automate.

I talked with some people about this idea and came to the conclusion that the benefits could be realized without the drawbacks if this was an Automate feature to identify two UUIDs that appear related (same serial number) and allowed them to be optionally linked.


Add cargo load factor

If enabled, this will allow a different load factor for cargo than for passengers by default. If a flight contains a custom load factor, then this custom load factor will take precedence over the default passenger/cargo load factor, and we will have a loading percentage in the same range for both passengers and cargo. If the flight does not contain a custom load factor, then we revert to the default settings, with (if enabled) a different range for the passenger load factor and the cargo load factor.

It's there a setting now for the pax load factor? I can't remember, I'm looking at this on mobile

For the now we have a global load factor (pax + cargo), which will become the pax one and I add one for cargo if we choose to enable it. If not enabled the global remains global