PrefixCommons: implement expand/resolve URIs

Will be implemented as a standalone tool in data2services-sparql-operations as "expand" operation using PrefixCommons registry. It is included in split at the moment.
Like split it will take a (list of?) class and property to resolve the value (e.g. bl:Drug bl:id )

First solve "ensembl:ENSG00000181019" to its pref URI: https://identifiers.org/ensembl:ENSG00000181019.
The preferred databases are:

Chemical: chembl
Genes: ensembl (ncbi is US)
Pathways: wikipathway

Then solve similar URIs to the pref URI. e.g.: https://www.ensembl.org/id/ENSG00000181019 to https://identifiers.org/ensembl:ENSG00000181019

This operation will insert all the statements of the class using the pref URI as subject. And a param will enable to delete previous statement.
Bonus: add a wrapper on top of BridgeDB to integrate BridgeDB identifiers resolution in data2services-sparql-operations the same way as PrefixCommons.
Notes:

Process the spreadsheet into bio2rdf: https://github.com/micheldumontier/php-lib/blob/bio2rdfapi/registry.php

Concept for a SPARQL service like WikiData or identifiers.org from the Life Science Registry spreadsheet
Identifiers resolution SPARQL Service specifications
Implementation details
We will build a SPARQL Service that can be use to resolve identifiers and URIs to get a canonical URI. This Identifiers SPARQL Service will propose a framework and ontology to enable users to resolve URIs efficiently through federated SPARQL querying.
Method
The Identifiers SPARQL Service will enable various identifiers resolver services (BridgeDB, identifiers.org) to be queries through a public SPARQL Service. The different resolvers can be accessed through their own graph in the same SPARQL Service, enabling the user to choose which resolver he wants to use, use a subset, or all of them.
The resolvers can be connected to the SPARQL Service through various methods

Resolve identifiers using methods from a Java Interface

When ask for ?ref dct:alternative ?id then if the ?ref is provided we execute a method using regex to generate all possible URIs. If the ?id is provided then we execute
So the resolver needs to implement a defined number of methods to be accessible through our SPARQL Service

Directly use a triplestore as identifier resolver.
Our SPARQL Service could also have a Java interface to connect with SmartAPIs: it will access a HTTP SmartAPI exposed by the identifiers resolver service (e.g. BridgeDB)

Resolvers to implement
The following identifiers resolvers will be implemented to start:

Life Science Registry (Bio2RDF URI resolution)
BridgeDB (equivalent identifiers in other databases)
To come: identifiers.org

Ontology
We will build an ontology to define standards relations between identifiers and URIs, but new properties can be used to define new relations.

Class: Reference

The commonly accepted canonical reference for an entity.
e.g.: https://identifiers.org/uniprot/P00734 .
The only class in our ontology, all properties are related to this class.

dct:alternative

Range: String
The common alternative URIs/CURIEs that can be found for this (usually same id, just different URI syntax).
e.g. https://purl.uniprot.org/uniprot/P00734 , http://purl.uniprot.org/uniprot/P00734 , https://identifiers.org/uniprot/P00734 , http://identifiers.org/uniprot/P00734 , https://identifiers.org/uniprot:P00734 , "uniprot:P00734"

owl:sameAs

Range: URI
For strictly sameAs relation between 2 entities (is linked to a resolver service, so it is true only for this identifier resolver service, other resolvers might not accept this statement)
e.g. https://identifiers.org/HGNC:8029 owl:sameAs https://identifiers.org/ensembl/ENSG00000065320 https://w3id.org/data2services/identifiers/bridgedb

Use identifiers.org terms idot?

PREFIX idot: <http://identifiers.org/idot/>
?ref idot:preferredPrefix "chembl" ;
  idot:alternatePrefix "chembldb" ;
  idot:identifierPattern "CHEMBL\\d+"^^xsd:string ;
  idot:exampleIdentifier "CHEMBL25"^^xsd:string ;
  idot:accessPattern "http://bio2rdf.org/chembl",
   	"http://identifiers.org/chembl.compound/",
    "http://www.ebi.ac.uk/chembl/compound/inspect/" .

Use skos:prefLabel and skos:altLabel?
Use a property for preferred CURIE?

SPARQL query examples for the Life Science Registry
Resolve common URIs syntax variants for a same entity using the Bio2RDF Life Science Registry spreadsheet
Get reference URI
From any prefix:id or URI, get the canonical reference (URI).
We usedct:alternative from the LifeScienceRegistry graph resolves all URIs variants for a same identifier:
https://purl.uniprot.org/uniprot/P00734 , http://purl.uniprot.org/uniprot/P00734 , https://identifiers.org/uniprot/P00734 , http://identifiers.org/uniprot/P00734 , https://identifiers.org/uniprot:P00734 , "uniprot:P00734"
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bl: <https://w3id.org/biolink/vocab/>
SELECT ?s ?ref ?source WHERE {
  ?s a bl:Drug ;
    dct:identifier ?id .
  SERVICE <https://unimaas.nl/sparql/identifiers> {
    GRAPH ?source {
      ?ref dct:alternative ?id .
    }
  }
}

# Get identifier only from the LifeScienceRegistry service (uses dct:alternative)
SELECT ?s ?ref ?source WHERE {
  ?s a bl:Drug ;
    dct:identifier ?id .
  SERVICE <https://unimaas.nl/sparql/identifiers> {
    GRAPH <https://w3id.org/data2services/identifiers/LifeScienceRegistry> {
      ?ref dct:alternative ?id .
    }
  }
}

Get alternative URIs
From a canonical reference, get all the commonly accepted URIs (we use dct:alternative property)
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bl: <https://w3id.org/biolink/vocab/>
SELECT ?ref ?ids ?source WHERE {
  ?ref a bl:Drug .
  SERVICE <https://unimaas.nl/sparql/identifiers> {
    GRAPH ?source {
      ?ref dct:alternative ?ids .
    }
  }
}

Get alternative IDs
From a canonical reference, get all the available variants IDs of the entity in other databases (with data sources, which relation, metadata),  ???).

drugbank:DB001 same_as chemid:1234 in chemspider
ensembl:1234 encodes uniprot:P0001

PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bl: <https://w3id.org/biolink/vocab/>
SELECT ?ref ?p ?ids ?source WHERE {
  ?ref a bl:Drug .
  SERVICE <https://unimaas.nl/sparql/identifiers> {
    GRAPH ?source {
      ?ref ?p ?ids .
      # We could add a filter on ?p to take only predicates about alternative IDs
    }
  }
}

Combination: get reference URI, then all possible alternatives
Support subqueries
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bl: <https://w3id.org/biolink/vocab/>
SELECT ?s ?ref ?alternatives ?sourceRef ?sourceAlt WHERE {
  ?s a bl:Drug ;
    dct:identifier ?id .
  SERVICE <https://unimaas.nl/sparql/identifiers> {
    SELECT ?ref WHERE {
      GRAPH ?sourceRef {
        ?ref dct:alternative ?id .
      }
    }
    GRAPH ?sourceAlt {
      ?ref dct:alternative ?alternatives .
    }
  }
}

OPTIONAL: get reference URIs from id without prefix
From an id, get all the possible canonical references (URIs) using SPARQL filter.
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bl: <https://w3id.org/biolink/vocab/>
# Exact match
SELECT ?s ?ref ?source WHERE {
  ?s a bl:Drug ;
    dct:identifier ?id .
  SERVICE <https://unimaas.nl/sparql/identifiers> {
    GRAPH ?source {
      ?ref dct:identifier ?id .
    }
  }
}
# Regex FILTER to get all URIs starting with https or https://identifiers.org/
SELECT ?s ?ref ?source WHERE {
  SERVICE <https://unimaas.nl/sparql/identifiers> {
    GRAPH ?source {
      ?ref dct:identifier ?id .
      FILTER regex( str(?id), "http[s]?:\/\/identifiers.org\/" )
    }
  }
}

See https://github.com/Wikidata for label service

SPARQL service: https://github.com/JervenBolleman/sparql-identifiers/blob/master/src/main/java/ch/isbsib/sparql/identifiers/SesameSparqlService.java

The different classes used by identifers.org to resolve URIs to URLs: https://github.com/JervenBolleman/sparql-identifiers/tree/master/src/main/java/ch/isbsib/sparql/identifiers
The DB connectors: https://github.com/JervenBolleman/sparql-identifiers/tree/master/src/main/java/org/identifiers/db
The SQL query to resolve URIs? https://github.com/JervenBolleman/sparql-identifiers/blob/master/src/main/java/org/identifiers/db/RegistryDao.java

EBI SPARQL service code: https://github.com/EBISPOT/lodestar/blob/master/lode-core-api/src/main/java/uk/ac/ebi/fgpt/lode/service/SparqlService.java
Example of use
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT DISTINCT ?go WHERE {
    SERVICE <http://identifiers.org/services/sparql>{
      <http://identifiers.org/go/GO:0005892> owl:sameAs ?go .
  }
}LIMIT 10

It look like he is generating the store on the fly out of a IdentifiersOrg store: https://github.com/JervenBolleman/sparql-identifiers/blob/master/src/main/java/ch/isbsib/sparql/identifiers/SesameSparqlService.java#L48

Will be implemented as a standalone tool in data2services-sparql-operations as "expand" operation using PrefixCommons registry.
It should be separated from the split operation


Use base64.a85decode from stdlib

The standard library has a function named a85decode in the base64 module, perhaps we could use it instead of our custom implementation.
The difference is that it requires a parameter to differentiate between the "standard" and the Adobe Ascii85 formats.

Great tip!


Update napari.yaml

Somewhat updated to allow selecting plugin from UI. Need to add sample data in the yaml - see microsam for example if needed.

Closed by #27


feat!: AWS Provider Upgrade

This upgrades the AWS provider to version 4. This is a breaking change. Before upgrading to this version, be sure you have upgraded to v1.16.10.
Additionally, the variable database_performance_insights_kms_key_arn variable has been provided a default value of null. This results in the default KMS key being used for Performance Insight metrics.

This PR is included in version 2.0.0 :tada:


US863005: Release prep

Ticket: https://internal.almoctane.com/ui/entity-navigation?p=131002/6001&entityType=work_item&id=863005

A developer build has not yet been created for this branch. Click here to go ahead and create the build...


Captcha still stops connection

I got the error that a captcha stopped the connection, so I logged in using a browser to clear it. Same machine, same account, but no dice.

I just tried signing in a few times with both of my accounts and it seems like Discord is being really aggressive with Captchas (Out of 10 trials, all had some kind of Captcha and at least half were puzzles).

Having the same problem...

Having the same problem... Works if using token though

Adding 2FA worked!


Primary School nb. 53 in Cracow

Let's give some students an opportunity to level up their programming abilities!

@ZyndramZM Please provide us with a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students.
You can provide us with any of the following:

A copy of instruction (a hard-copy or electronic one) given to you by the school that tells you to use an email address in this email domain
An URL of a page at the official school website that says that students use this email domain
A reference to a recognized journal where an article was published by someone from the school, with explicit affiliation to the school, and e-mail address from the email domain
A WHOIS data that link the email domain to the school somehow
A copy of official letter from the school representative saying that the school provides e-mail addresses in this domain to the students
Anything else that can prove this fact in similar way, i.e. can be verified independently.

@ZyndramZM You might miss my previous comment. Please react.

@philipto Thank You for reminding me of that comment. I'm trying to contact school secretary, because on page (sp53krakow.pl) that mail domain is not mentioned (still don't know why).
Thank You for Your help.
Best regards,
Bartosz Deptuła

@ZyndramZM How are you doing? Is there any update on the matter?

@ZyndramZM I am sorry, this request remains unanswered for a while. I have to close it without merging. Please reopen and comment if you have an update regarding the aforementioned issue. Thank you for your understanding!

I understand, thank You for the information.
Have a good day,
Bartosz Deptuła
pt., 31 gru 2021 o 11:55 Philip Torchinsky @.***>
napisał(a):

@ZyndramZM https://github.com/ZyndramZM I am sorry, this request
remains unanswered for a while. I have to close it without merging. Please
reopen and comment if you have an update regarding the aforementioned
issue. Thank you for your understanding!
—
Reply to this email directly, view it on GitHub
https://github.com/JetBrains/swot/pull/12878#issuecomment-1003343685,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARB6BIOBQGM5W6SOKPH75B3UTWD2DANCNFSM5HOG65WQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Pozdrawiam,
Bartosz Deptuła


Evaluate elasticsearch-newrelic plugin

As suggested by @dpb587, see https://github.com/cityindex/logsearch-development-flow/issues/102#issuecomment-22175329 ff. - we need to assess whether this yields more/additional value to the Librato streaming via collectd.

New Relic currently gravitates to becoming a key piece of our monitoring setup (though a final evaluation is pending), which might make this worthwhile

@dpb587 - looking at the commits, the plugin appear to be slightly immature still, though actively developed; if you consider the plugin useful as such already (i.e. in comparison to the existing Librato/collectd setup), please gauge that shortly for integration, icebox or won't fix.

Closed as Won't Fix due to project being retired to the CityIndex Attic.


Error: invalid argument "900s" for "--timeout" flag: strconv.ParseInt: parsing "900s": invalid syntax

Azure documentation issue guidance
Thanks for opening an issue in the Azure technical documentation repository.
We use GitHub issues as the primary channel for customer and community feedback about the Azure documentation.
Creating an issue
We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.
You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

[ ] The relevant Azure service or technology.
[ ] A link to the published documentation article that you have feedback about.
[ ] Clear, specific feedback that the author can act on.

Pull requests and article contributions
If you know the change that is needed in an article, we encourage you to submit the changes directly using a pull request. If the change is large, or if you want to contribute an entire article, follow these guidelines:

[ ] Don't surprise us with a big pull request or a pull request with a new article! Submit an issue that describes the details of the proposed large change or new article.
[ ] Include the service or technology area.

We'll route the issue to the appropriate content team for review and discussion.
Tech support and product feedback
If you would like to contact Microsoft about other things, such as product feedback or tech support, please review these guidelines:

If you need technical support using Azure, the paid and free support options are described here: https://azure.microsoft.com/support/options/.

Each article in the Azure technical documentation contains a product feedback button - it's best to submit product feedback directly from a relevant article. Otherwise, you can submit product feedback for most Azure products in the following product feedback forum: https://feedback.azure.com/forums/34192--general-feedback.

Hello @brahmi89, This azure-docs repository deals about feedback related to particular Azure document page (like correcting doc bugs, doc enhancements, product issues related to wrong doc instructions, etc.) so if issue is intended to update / correct / enhance anything in an Azure document then please share Azure document link / URL else I suggest you to ask the question in public forums like MSDN / Microsoft Q&A, etc.

Closing this issue for now as there is no response on the previous comment.


Add support for extracting styles to tss

Implements a new refactoring action for views that allows extracting the properties from a tag and inserting them into the related TSS document. This can be triggered via the usual refactor shortcut, menu item, or lightbulb.
Some known todos (hence draft status) are:

~Support nested properties (font only?)~
Multiline properties
Better handling of class merging (currently only merging classes when performing whole line extraction)
Tests!

A demonstration is below, it first demonstrates extracting a select group of properties and then extract properties from the current line the cursor is on.
https://github.com/tidev/vscode-titanium/assets/8705251/8f9bb5a3-6ab9-435c-88d2-af9b6235939a

This is awesome! Regarding nested properties: All that we know are font and center (x and y). @m1ga Do you maybe have more? I wonder if they are somehow registered in Alloy already somewhere.

Nice feature :+1:
@hansemannn sorry, don't know. Didn't even know that the font part was merged :smile: Not using that many inline styles at all. It looks like it is this PR https://github.com/tidev/alloy/pull/765 and I would say that it supports all name.property=""

Yep, handling them in general (detect a . inside an attribute) might be the best way to extract those. But handling those two manually for a PoC would also be more than sufficient.

@hansemannn I've ticked off everything in that list other than the spaces/tabs one, that'll need some digging into the vscode docs to see if I can get that information or if there's a way to have them handle it when applying the edits.


Added SegmentedBarItem to element registry.

Added SegmentedBarItem to element registry. And now SegmentedBarItem could be added via HTML.
<SegmentedBar>
    <SegmentedBarItem title="Waiting" ></SegmentedBarItem>
    <SegmentedBarItem title="Done" ></SegmentedBarItem>
</SegmentedBar>

This works on iOS, but on Android I get the following error:
Unhandled Promise rejection: Error in pages/rides/rides.html:2:8 caused by: Cannot read property 'newTabSpec' of undefined ; Zone: angular ; Task: Promise.then ; Value: Error: Error in pages/rides/rides.html:2:8 caused by: Cannot read property 'newTabSpec' of undefined TypeError: Cannot read property 'newTabSpec' of undefined
JS:     at SegmentedBar.insertTab (/data/data/net.comerge.PubliBikeLocal/files/app/tns_modules/ui/segmented-bar/segmented-bar.js:153:31)
JS:     at SegmentedBar._addChildFromBuilder (/data/data/net.comerge.PubliBikeLocal/files/app/tns_modules/ui/segmented-bar/segmented-bar-common.js:113:18)
JS:     at ViewUtil.insertChild (/data/data/net.comerge.PubliBikeLocal/files/app/tns_modules/nativescript-angular/view-util.js:59:20)
JS:     at ViewUtil.createAndAttach (/data/data/net.comerge.PubliBikeLocal/files/app/tns_modules/nativescript-angular/view-util.js:103:18)
JS:     at ViewUtil.createView (/data/data/net.comerge.PubliBikeLocal/files/app/tns_modules/nativescript-angular/view-util.js:110:25)
JS:     at NativeScriptRenderer.createElement (/data/data/net.comerge.PubliBikeLocal/files/app/tns_modules/nativescript-angular/renderer.js:198:30)
JS:     at DebugAppView._View_RidesComponent0.createInternal (RidesComponent.ngfactory.js:31:30)
JS:     at DebugAppView.AppView.create (/data/data/net.comerge.PubliBikeLocal/files/app/tns_modules/@angular/core/bundles/core.umd.js:9419:25)
JS:     at DebugAppView.create (/data/data/net.comerge.PubliBikeLocal/files/app/tns_modules/@angular/core/bundles/core.umd.js:9631:48)
JS:     at DebugAppView._View_RidesComponent_Host0.createInternal (RidesComponent_Host.ngfactory.js:18:14)
JS: Error: Uncaught (in promise): Error: Error in pages/rides/rides.html:2:8 caused by: Cannot read property 'newTabSpec' of undefined

I get the same error on android, sadly...

Same error...

Same error..

Having this issue as well. This is almost a year old, any update here at all?

I managed to fix it by adding a setTimeOut into the 'insertTab' prototype method. It seems android bridge to native is not there on time, (quite heavy stuff to be exported, I guess). No need to add time to the setTimeOut though, moving it to the bottom of the stack is enough.

That worked for me, awesome!
Only now I have another issue. The segmented bar items repeat to the end of the view until I do something to refresh the view. Ie: I have Daily, Weekly, Monthly SegmentedBarItems and it displays "Daily/Weekly/Monthly/Daily/Weekly/Monthly" until I navigate to another page, when I go back it displays them correctly. Hmm.

Yep, went throughout it too @murphmar . Managed to fix it by not using <SegmentedBar.items> element.
Try this
SegmentedBar>

Let me know how that goes.
Thanks

@OscarLopezArnaiz Still the same issue for me. What ended up working for me was creating the whole thing programmatically on the component.


Integer/floating point parsing should validate content and/or value range

This issue was filed on Google Code: https://code.google.com/p/pugixml/issues/detail?id=237
There are concerns about using errno on some platforms; even on platforms that have MT-safe errno, parsing denormal numbers will set errno to ERANGE but keep the parsed output as far as I know.
Checking the end pointer can potentially be a breaking change if applications relied on parsing numbers like "1.2f".

New integer parsing implementation handles overflow/underflow correctly for all cases. It still uses the legacy way of clamping the result without indicating an error, but at least for integers it's now easy to implement full validation - the open question being the specific interface.


make --no-import the default

create and sync have a --no-import option. Might make sense to make that the default and have an -i or --import options.
<pfrazee> jhand: I think it'd be better to make --no-import the default
<pfrazee> jhand: if dat were an unversioned network host (aka a static web server)
 then reflecting the current state would be no problem, by default.
But since it's writing to an immutable log, I want to have careful control over what gets written

cc @pfrazee

Yeah. I'd like to have a flow similar to git's staging (but very open to being streamlined).
I want to always know what I'm about to write to the log, and be able to control that update on a per-file basis.

I liked some of the ideas in gitless, specifically marking files tracked or untracked, and the paper is definitely worth a read in thinking about staging areas.

Yeah that looks like it'd work really well for this

My biggest complaint about gitless is that I'd feel a little unsure of what happens to tracked files when you branch. That wouldnt be a problem here.

I feel weary about having a data sharing tool not import your files by default. seems like a high barrier to entry.

Ok yall can do what you want here; I've got bkr now, so that flow works the
way I want it to.
On Thu, Dec 8, 2016 at 2:02 PM, Karissa McKelvey<EMAIL_ADDRESS>wrote:

I feel weary about having a data sharing tool not import your files by
default. seems like a high barrier to entry.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/joehand/dat-next/issues/15#issuecomment-265840143,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABNhU5lljLNDcWlCuMwDu9yU462MA0LHks5rGGJdgaJpZM4K3VjM
.

I could an argument for why create could have --no-import as the default. That way, you can quickly create a dat, then do dat sync to start sharing while files are being imported.
But probably having it be consistent with sync is better. Closing for now and we can reevaluate with more user testing.

@joehand ah so then create would work more like git init or something?

@joehand but would that cause issues if sync was watching files?

@joehand ah so then create would work more like git init or something?

Yep!

@joehand but would that cause issues if sync was watching files?

Sync imports and new/updated files (--import option is true by default). In this case it'd be all of the files.
You can run dat-next create --no-import. Then dat-next sync --import to see how it'd work.

@joehand wasn't there a bug with adding files while doing watching/importing?

@joehand wasn't there a bug with adding files while doing watching/importing?

Yes but the bug is with live watching, not importing. Right now with sync it doesn't watch anything - it just imports newer files (which is relatively bug free). The bugs start if we change live: true here.

ah yeah, thats what i meant. So either way, without or with watching files we still should have the import step be separate than the watching step. could be in the sync command, though.


MINOR: Guard against NPE when throwing StreamsException on serializer mismatch

Please review any of @dguy @enothereska @guozhangwang @mjsax.

Updated the PR and addressed review comments.  Still have to verify checkstyle is happy.

Checkstyle is happy now, too.

@dguy updated


feat(Table): added rowState prop

Description
This PR adds the property rowState to the Table component. This property lets you specify the row's state (info, warning, error, success) based on the record. The state controls the background colour of the row.
Table

Added property rowState

Addressed issue
Although in a limited manner, the PR addresses the issue https://github.com/mia-platform/design-system/issues/448
Checklist

[x] commit message and branch name follow conventions
[x] tests are included
[x] changes are accessible and documented from components stories
[x] typings are updated or integrated accordingly with your changes
[x] all added components are exported from index file (if necessary)
[x] all added files include Apache 2.0 license
[x] you are not committing extraneous files or sensitive data
[x] the browser console does not have any logged errors
[x] necessary labels have been applied to this pull request (enhancement, bug, ecc.)

This might solve the rowClassName proposal in #448 and #452 by @valesceva

This should solve the rowClassName proposal in #448 and #452 by @valesceva, doesn't it?

It should, partially. This implementation does not grant the same amount of flexibility as being able to give any call to the rows, but it is much more cautious in terms of UI tampering


Automated cherry pick of #9677: optimized(region): qcloud bucket policy set and get operation

Cherry pick of #9677 on release/3.5.
#9677: optimized(region): qcloud bucket policy set and get operation

Codecov Report

Merging #9680 (155dbac) into release/3.5 (6a15e02) will increase coverage by 11.93%.
The diff coverage is 1.85%.

@@               Coverage Diff                @@
##           release/3.5    #9680       +/-   ##
================================================
+ Coverage         5.98%   17.91%   +11.93%
================================================
  Files              796       85      -711
  Lines           125693     8923   -116770
================================================
- Hits              7522     1599     -5923
+ Misses          117504     7152   -110352
+ Partials           667      172      -495

Flag
Coverage Δ

aFlag
17.91% <1.85%> (+11.93%)
:arrow_up:

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

Impacted Files
Coverage Δ

pkg/apigateway/handler/auth.go
0.00% <0.00%> (ø)

.../monitor/alerting/conditions/suggestrulereducer.go
0.00% <0.00%> (ø)

pkg/monitor/alerting/conditions/suggestquery.go
2.00% <2.00%> (ø)

pkg/util/seclib2/seclib.go
80.39% <0.00%> (-5.66%)
:arrow_down:

pkg/util/ansiblev2/session.go
0.00% <0.00%> (ø)

pkg/compute/models/dbinstance_secgroups.go

pkg/compute/models/loadbalancerhuaweicachedlbbg.go

pkg/monitor/models/nodealert.go

pkg/mcclient/options/k8s/release.go

pkg/apis/api.go

... and 591 more

Continue to review full report at Codecov.

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


[SHOWS] Embed player should be updated to support show links

https://github.com/wavlake/wavlake-server/pull/171
https://github.com/wavlake/embed/pull/13

https://github.com/wavlake/embed/pull/14


Add Greenkeeper and version lock dependencies

Only lock main dependencies, dev dependencies are fine.

Resolved in https://github.com/lukechilds/onionoo-node-client/commit/ae6b96a4d2ef53570e96eb431e8484c5ff4f94f8


Google format

Fix #24

Awesome! Will have a look first thing tomorrow :)

We have conflicts here due to previous PR:s

Conflicts resolved

I think enforcing a standard style will help prevent conflicts going forward. 😄

Awesome! LGTM


Dchmyga/tdi 45644 google drive read timeout backport

What is the current behavior? (You can also link to an open issue here)
Sometimes on big or complex files(google sheets) we get a read timeout exception.
What is the new behavior?
New property "Read timeout" added. The socket read timeout can be configured using this property.
Please check if the PR fulfills these requirements

[ ] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[ ] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:
https://jira.talendforge.org/browse/TDI-45644

Pull request test result: success :star:


Resolver: Report full signatures of functions not found

The function registry code has some support for this. https://github.com/quantified-uncertainty/squiggle/pull/545


Figure out license compliance for mobile-samples

We make use of a number of third-party libraries which use the MIT license. I believe that this means that we need to have a file somewhere in the repository that lists them, but I'm not sure.

For the samples, you will not need to gather them all up since you're not shipping an installable product. It's always at the end product that it needs to be gathered.


⚠ Bofrost.be has degraded performance

In 03669fc, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 958 ms

Resolved: Bofrost.be performance has improved in 35399ab.


feat(MenuItem): add rel to MenuItem anchor type

Overview

Adds rel to MenuItem anchor type

Relevant to this work on LE dropdowns + menus
PR Checklist

[x] Related to designs:
[x] Related to JIRA ticket: web-1925
[x] I have run this code to verify it works
[x] This PR includes unit tests for the code change

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.75-alpha.eca363.0@codecademy/gamut-labs@30.2.1-alpha.eca363.0@codecademy/gamut@45.0.3-alpha.eca363.0@codecademy/monaco@0.6.21-alpha.eca363.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://62290f8857d7635c55068fec--gamut-preview.netlify.appDeploy Logs


hash urls break in exported pages

When exported pages to static html & js in<EMAIL_ADDRESS>href="#somewhere" becomes href="#somewhere/"

Good one. I will fix this.


Updated dependencies to fix vulnerabilities

mostly non breaking updates, but had to switch to gulp 4.x which was breaking. I think my changes preserve functionality, but I had to ignore watching script.js for the following reason:
On the old (gulp 3.x) version, we had a task which was run whenever a js file was modified.
As best I can tell, this involved concatenating content to a script.js file
When I updated to gulp 4.x, I noticed that it appeared as though there were changes being made constantly to the js files (even though I hadn't made any changes)
After some looking around, it seems like we were watching for changes to .js files,
then calling a task which itself changed a .js file, which caused the listener to fire again, over and over.
I reverted back to gulp3.x, and for some reason this was not happening there, I'm not sure why.
I fixed this by ignoring live changes to script.js, but because this was working in the old gulp version without the ignore, I imagine that there is a better way, though I'm not sure of what it is.

tagging issue #23

I can gitignore package-lock.json but I wanted to avoid modifying unrelated files for this PR

I can gitignore package-lock.json but I wanted to avoid modifying unrelated files for this PR
But yes, it is autogenerated

git checkout origin/master package-lock.json?


Is this a free service?

I am looking for datasets for Image recognition of some object Classes. Downloading 990 mb seems unnecessary to me . Is there a way to get list of urls to download images of certain classes only for free ?

Your best best it to query the image urls for these certain classes in BigQuery: https://cloud.google.com/bigquery/public-data/openimages
Sadly, I am not sure if the labels there have been updated to v2 or not.


Fix release workflow

The release workflow is currently failing.
The most likely reason, is that the DAG-OS organization needs to be registered with ansible galaxy.
Ergo, we will have to wait for this issue to be worked on: https://github.com/ansible/galaxy/issues/2851

The organization namespace has been created and the https://github.com/DAG-OS/ansible-role-git role has been released with the same workflow.


Add Support for Export and Import of Credentials

Created PortableCredential struct

func ToCredential() to create Credential from PortableCredential

func ExportToPortableCredential() to create PortalCredential from Credential

Updated import_test

Added export_test

Description
This is an improvement to my earlier PR, this is allows for Import and Exporting the credential. I have updated existing tests and created ones for export cases. I am open to any design changes/suggestions
Must

[X ] Tests
[ ] Documentation (if applicable)

Hi! Thanks for your contribution again!
I'll go over the changes and ping you back 👍

This is a really cool idea.
I'd like to find a way to support this use case (exporting/importing) without adding another struct PortableCredential. If it's okay with you I can merge this PR now and then refactor to combine the Credential and PortableCredential structs somehow.

Yes, please merge away. I am not happy with the two structs solution either.

Great, thanks! 👍


Adapters can have msgLogLevel=OFF and tracing should be OFF

Frankdoc:

Seems currently not possible because Adapter class does not expose getter method for msgLogLevel.


Fix letter 'a' in female lastname generation (ru_RU)

Now female lastname generated from male lastname (in cyrillic) and adding latin letter 'a', so female lastname contains as cyrillic as latin letters. It cause errors in validating rules, for example.
This fix just changes latin 'a' to cyrillic 'а'

Fixes #1902

Thank you, @sanmon1985!


Update login.css

Related Issue

#121

Closes: #121
Describe the changes you've made
On dark mode toggle, footer text will be visible now.
Type of change
What sort of change have you made:

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Mention any unusual behaviour of your code (Write NA if not)
NA
Checklist:

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly whereever it was hard to understand.
[x] My changes generate no new warnings.
[x] Any dependent changes have been merged and published in downstream modules.

@ankitapuri Can you review this 1 line of change please


Author of the kata is not shown in kata header

This looks weird, as if kata has no author at all.
http://www.codewars.com/kata/all-i-needs-a-platform-man/discuss/javascript

Well, now it shows up. Maybe that was a temporary glitch of some kind.

This is the same issue as https://github.com/Codewars/codewars.com/issues/46, I guess.


Transaction's reference block did not match. Is this transaction from a different fork?

when I push tx,I got log
"Transaction's reference block did not match. Is this transaction from a different fork?"

Did you set correct block_num and block_prefix?

how set?my client just get_info of eos and set block_num and block_prefix.

you should get block_num and block_prefix from blockchain which you want to push trx.
you can through get_block check block_num and block_prefix.

Calling get_info is not sufficient.  You must incorporate the results you received from get_info into the transaction you are composing.
If you are using eosjs, there are Github issues describing this process.


Update ws to 7.5.3 and fix rpc-full-stack-tests webpack config.

@Merigfyio update

@Mergifyio update

Pulled these changes into #1859.


how to debug locally error ?

runApp()

Listening on http://<IP_ADDRESS>:4109
Warning in readLines(con) :
incomplete final line found on 'www/settings.Rmd'
Warning in readLines(con) :
incomplete final line found on 'www/02-About.Rmd'
Warning: Error in sub: input string 1 is invalid UTF-8
[No stack trace available]

sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
other attached packages:
[1] shinydashboard_0.7.1 shinythemes_1.1.1    shiny_1.2.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0       crayon_1.3.4     packrat_0.5.0    digest_0.6.18    later_0.7.5      mime_0.6         R6_2.3.0
[8] xtable_1.8-3     magrittr_1.5     rstudioapi_0.8   promises_1.0.1   DT_0.5           tools_3.5.1      htmlwidgets_1.3
[15] markdown_0.9     crosstalk_1.0.0  yaml_2.2.0       httpuv_1.4.5     rsconnect_0.8.12 compiler_3.5.1   htmltools_0.3.6

Checkout https://github.com/fgabriel1891/BiodiversityObservationsMiner/pull/2


Problem with inserting: Could not find an overload for 'insert

I tried all variants but without results.
My code:
let sport = db["sport"]
let id = Expression<Int64>("id")
let begin = Expression<String?>("begin")
let weight = Expression<Double>("weight")

Variants:
let insert_withPlan = sport.insert(begin <- chosen_date, trainingplan <- selected_plan, weight <- theweight)?
// Error: Could not find an overload for 'insert

let insert_withPlan = sport.insert(begin <- chosen_date, trainingplan <- selected_plan, weight <- theweight)!
// Error: Could not find an overload for 'insert

if let trainingid = sport.insert(begin <- "chosen_date", trainingplan <- selected_plan, weight <- theweight)?{
            // success logic
        }
// Error: Could not find an overload for 'insert

let insert_withPlan = sport.insert(begin <- chosen_date, trainingplan <- selected_plan, weight <- theweight).id
// id not found

What can be the problem?
Thanks

Sorry for the trouble. The interface recently changed to deal with general confusion: https://github.com/stephencelis/SQLite.swift/commit/a5011f4a216fb9e60ee33aa17c84c5831d1db5fa
You no longer can (or need to) disambiguate:
let insert_withPlan = sport.insert(begin <- chosen_date, trainingplan <- selected_plan, weight <- the weight).rowid // or if-let

And it's rowid now, not id.

thanks for reply.
But if i remove the disambiguate, then i get the error:
"Cannot invoke 'insert' with an argument list of type (setter,setter,setter)"
Im using the latest xcode, and the latest SQLite Framework (deleted today and linked again)
Not work:
let insert_withPlan = sport.insert(begin <- chosen_date, trainingplan <- selected_plan, weight <- theweight)
Also not work:
let insert_withPlan = sport.insert(
begin <- chosen_date, trainingplan <- selected_plan, weight <- the weight
).rowid
Error: Cannot find member: rowid

@mostworld77 Hm. There are a lot of tests that are passing just fine and I have no trouble making the above work. Have you cleaned your build folder and/or deleted DerivedData? Do you have a sample project I can take a look at that exhibits the problem?

I also had the same problem with the latest version, and this workaround seems to fix the issue:
let insert_withPlan = sport.insert(
    (begin <- chosen_date), (trainingplan <- selected_plan), (weight <- the weight)
).rowid

@tthbalazs That's strange, the <- operator should produce that all the same. Do either of you have a project that exhibits the problem I can troubleshoot?

@stephencelis Sadly I have no small project that I could share, altough I think I found the source of the problem, which seems to be a type mismatch. Basically the error is no help in this case.
var tours = self.db["tours"]

let id = Expression<Int>("id")

// tour.id is Int64
if let row = toursDB.insert(id <- tour.id).rowid {
    // does not work, and the error is 'Could not find member 'rowid' '
}

// tour.id is Int
if let row = toursDB.insert(id <- tour.id).rowid {
    // no errors
}

@tthbalazs Hm. I just don't have much control over how errors are surfaced. I may have to change Setter to be an actual type and not a typealias.

@mostworld77 Per the update from @tthbalazs can you try breaking down the expression further to see the real error?
let setter1 = begin <- chosen_date
let setter2 = trainingplan <- selected_plan
let setter3 = weight <- the_weight
let insert_withPlan = sport.insert(setter1, setter2, setter3)

@stephencelis I understand that you don't have control over the errors, and really this is a fault on our side. I don't think that changing Setter to be an actual type would worth it over this... maybe a heads-up in the documentation? I'm not sure, this is completely a typo mistake on our side, so it shouldn't really occur that often.

@tthbalazs I'm going to add a section to the CONTRIBUTING.md file with common troubleshooting techniques. Thanks!


Bug/question with --force-all-parents --clades all

Hi there,
I just was wondering why I have no output and tried the second example from here:
https://github.com/lenaschimmel/sc2rf#no-output--some-sequences-not-shown
So I added --clades all --force-all-parent to my call, but it seems that they can't be used both:

The number of allowed parents, the number of selected clades, and the --force-all-parents conflict so that the results must be empty.

Also, --clades all can't be used as the last argument (before the input) because the input won't be recognized

Input sequences must be provided, except when rebuilding the examples. Use --help for more info. Program exits.

I'm not sure if this is only my setup/input problem.

Would you suggest to use -c all or -f? My full command is
  python3 sc2rf.py --csvfile ../${name}_sc2rf.csv --parents 1-35 --breakpoints 1-2 \
                      --max-intermission-count 3 --max-intermission-length 1 \
                      --unique 1 --max-ambiguous 10000 --max-name-length 55 \
                      ### --clades all  --force-all-parents  \ ###
                      ../${fasta}

Best
Marie

I'm sorry I can't help directly but maybe @ktmeaton can? She's the most knowledgeable person about sc2rf as far as I'm aware :)

Hi Marie,
Here's my understanding of the problematic parameters.

--clades all: consider all clades defined in mapping.csv as potential parents. As of bd2a4009, there are 36 potential clades.
--parents 1-35: restrict the number of parents in the output to a minimum of 1 and a maximum of 35.

With these arguments, --parents 1-35 conflicts with --clades all which includes 36 clades. My simple fix is to set --parents to an extremely high number (ex. --parents 1-1000). The following command and example data should not generate the warning about conflicting arguments.
Example data of 6 recombinants in Genbank: alignment.fasta.gz (gunzip first)
python3 sc2rf.py alignment.fasta \
	--csvfile tutorial.csv \
	--breakpoints 1-2 \
	--max-intermission-count 3 \
	--max-intermission-length 1 \
	--unique 1 \
	--max-ambiguous 10000 \
	--max-name-length 55 \
	--clades all \
	--force-all-parents \
	--parents 1-1000

However, with these arguments, no recombination will be detected either. This is because BA.4 and BA.5 really complicated things. From my understanding, there are very diagnostic mutations that are exclusively found in BA.2 and not BA.4 or BA.5 (and few diagnostic mutations found in BA.5, but not BA.2 or BA.4, etc.). From my experience, BA.2, BA.4, and BA.5 cannot all be included as potential parents at the same time, one of them has to be dropped. So the following debugging parameters shuold work for the example data:
python3 sc2rf.py alignment.fasta \
	--csvfile tutorial.csv \
	--breakpoints 0-10 \
	--max-intermission-count 3 \
	--max-intermission-length 1 \
	--unique 0 \
	--max-ambiguous 10000 \
	--max-name-length 55 \
	--force-all-parents \
	--parents 1-1000 \
	--clades BA.1 BA.2 BA.5 21J

Thanks for your advice, @ktmeaton !
I'll check what fits best with our current usage.
The other problem was/is that input as a positional argument won't be recognized after any argument that accepts a list.
It's somewhat clear; I just expected the readme example to work ☺


Cartographer 3D build map less white color(free space)

Dear cartographer team,
When i am trying to run cartographer to build 3D map, all is working well but the after use cartographer_pbstream_to_ros_map to convert pbstream to pgm or check on rviz, there is only have gray and black part but no free space, but i use the official 3D bag file , there is free space. I am using VLP16 as input.
cartographer 2D is working well, but the map scale is a little bit less than the real scale.
There is a public closed issue before is same situation with mine but i cannot find out the final solution.
https://github.com/cartographer-project/cartographer_ros/issues/993
Kindly please support me for this issue.
BR//Robin Liu X

Have you solved this problem?


Rendering docs without loading the package

This is a strange case, so if it's way outside of the realm of intended use cases for  quartodoc then let me know, and I'll try a different approach. It will require a little bit of extra explanation as to why things are this way / why they aren't straightforward.
I'm the developer of an add-on for the 3D animation software Blender. The add-on is for the import and animation of molecular and structural biology data and is called Molecular Nodes.
The addon is structured mostly like a regular Python package, but it calls a number of functions from the bpy package, which only ships with Blender, and thus the code can only be run internally inside of the Python distribution that ships with Blender. This has its own issues with being able to set up testing suites etc, but I don't get into that here.
Currently I build the documentation website for the add-on with Quarto form a series of .md files. This explains how to install and use the addon, but doesn't document any of the docstrings of the python code that runs under the hood. All of the documentation is currently hand-made for the addon, which mostly covers the GUI aspects of how to use it.
I would also like to have a page / series of pages on the python API that for the add-on so that others can potentially create scripts that leverage the code that is already written. I would like to auto-generate this documentation and ideally want to use Quarto to render it all. I've tried out quartodoc, but I can't get it to work as I get the errors:
ModuleNotFoundError: MolecularNodes

This is likely down to the quirkiness of developing stuff that can only run inside of Blender and the bundled python. I have also tried installing quartodoc inside of the bundled python and running it that way but I run into similar problems, so I figure doing it the straight-forward way likely won't work.
Is there a way to use quartodoc (or another tool) to just generate .md files from a series of .py files that contain functions and docstrings, without loading the modules themselves? I can then use these along with the other .md files and Quarto to generate the website.

Hey, are you saying the code you want to document is not inside an installed package, but inside a folder somewhere? I think you can import it in this case, by putting it on sys.path.
I've added a PR (#131) with an option in the config called source_dir that lets you add things to sys.path. Do you mind trying it to see if it works for your use case?
sys.path example
For example, if you have a file named /path/to/code/some_module.py:
def some_function():
    """A function defined in a random python script"""

Then, you should be able to import it using...
import sys
from quartodoc import Auto, blueprint, preview

sys.path.append("/path/to/code/")

# the documentation object quartodoc would load from your config
doc = blueprint(Auto(name="some_module.some_function"))

# a nice preview of it
preview(doc)

Using source_dir argument
In _quarto.yml now you should be able to do something like...
# quarto stuff ----------------------------------------------------------------
project:
  type: website

website:
  title: weird-install example
  navbar:
    left:
      - file: reference/index.qmd
        text: "Reference"

# quartodoc -------------------------------------------------------------------

quartodoc:
  package: null

  # NOTE: here's the source_dir argument! ----
  # it is expanded relative to _quarto.yml, but you can also
  # use a relative path: /path/to/src
  source_dir: ./src

  sections:
    - title: Some functions
      desc: These functions inspect and parse docstrings.
      contents:
        - some_module.some_function

I've just downloaded and tested the branch, and it works perfectly! Thanks so much for the prompt reply and feature implementation.
I tested with the custom python code and also use in _quarto.yml and both work great for generating the docs.

Amazing! I was looking for exactly this.


Get IdeHelper to generate functions for custom static facade

Laravel Framework version 4.2.11
IdeHelper has been extremely useful for providing autocomplete for Laravel facades.
I want to use a custom facade for one of my interfaces but I don't know how to get IdeHelper to find and parse my facade.
I have an interface defined in app/classes with two implementations for different environments
The bindings are in bootstrap/start.php
App::bind('AnInterface', 'AClass');
I have also defined a facade in app/classes
<?php
use Illuminate\Support\Facades\Facade;

/**
 * Class AnApi
 *
 */
class AnApi extends Facade {
    /**
     * Get the registered name of the component.
     *
     * @return string
     */
    protected static function getFacadeAccessor() { return 'AnInterface'; }
}

Calling static methods on the facade AnApi::myMethod() call the correct methods on the object, but IdeHelper doesn't generate a class so the Ide doesn't autocomplete.
I've tried adding references in the config under 'extra' and 'interfaces' but nothing has worked so far.
Any help much appreciated.
thanks
Marcus

@barryvdh OP reported it's solved, issue can be closed :}


compress pngs w/ online tool to shave almost 1mb

@daveliepmann is this OK to merge? just a simple speed up for the github.io page
i'd love to think about how else to make this project more efficient in terms of load times. what's the 80/20 of the css file -- any parts we can safely delete? i deleted danger and numeral classes. seems like we could probably delete some of the css and still have it look the same

Thanks for the image compression. Not interested in chasing minimization of the CSS.


Added npmignore

Avoid including the .git directory in the NPM package.
Should solve: https://github.com/magus/react-native-facebook-login/issues/276

It would be nice to merge this pull request 😃

would really appreciate it if we could get this merged in


fix(Status): prioritize AuthOptions over currentUser

prevent currentUser warning when used with AuthOptions in node.

Codecov Report

Merging #492 into master will increase coverage by 0.01%.
The diff coverage is 90.9%.

@@            Coverage Diff             @@
##           master     #492      +/-   ##
==========================================
+ Coverage      67%   67.01%   +0.01%
==========================================
  Files          36       36
  Lines        2897     2901       +4
==========================================
+ Hits         1941     1944       +3
- Misses        956      957       +1

Impacted Files
Coverage Δ

src/status.js
74.17% <90.9%> (+0.02%)
:arrow_up:

Continue to review full report at Codecov.

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


'Contract' object has no attribute 'call' for some methods

Hello
For some of the methods I use I get this message
Uniswapwrapper is initialized with the private key and address
get_eth_token_input_price(par, 1*10**18) AttributeError: 'Contract' object has no attribute 'call'
Thank you

You should go to the function that causes this error, then replace .call() as .caller().
This fixed my problem.
Best

As far as I can see, we're not referencing call on any Contract. A full stacktrace would be nice.

Closing due to inactivity.


feat: support typed record and type name inheritance from schema name (w/o label)

hey I noticed you guys have lots of contributions, I have just released a change to joi-to-typescript project that may help what you are after .label('') is now .meta({className:'') by default on v 2.0.1

hey I noticed you guys have lots of contributions, I have just released a change to joi-to-typescript project that may help what you are after .label('') is now .meta({className:'') by default on v 2.0.1

Hi @mrjono1, nice to e-meet you. You created a great project.  We were looking for an extendible generator, and once we found yours, which has a great design and structure, we decided to continue with Joi in our project as it seems like a safer choice Joi + Joi-to-typescript .vs. Zod, Yup, and others.
Thanks for the update about the new release. I will check out the new version soon. Eventually, we plan to open PR with the support we add. We will consult with you about the API and make sure that we pass the lint and jest tests.
We currently focus on three features:

pattern Joi API  support (for Records with typed values)
valid Joi API support (= Enums)
auto-detection for Schemas that ends with Schema and conclude the label automatically in those scenarios (currently, it shows a warning but doesn't convert it automatically

I have current support for enums I guess you have found something better to add which is great
Auto-detection sounds good
I just realised that most of the changes are the dist directory :)

hey @mrjono1 yeah, we didn't change a lot of stuff, because as @esakal said you provided a very solid library that has almost everything needed for a daily base usage 🙂
About the enums support you're talking about, we couldn't find a way to generate enums entities via the valid function, it generates a type alias instead. If there's an option to generate enum, we'd love to hear how to do that.
Thanks for your work!

I better add another test to my repo but this should help, its not perfect but it works
  test('Enum `allow()`', () => {
    enum Test {
      Option1 = 0,
      Option2  = 1,
      Option3  = 2
    }

    const schema = Joi.object({
      enumeration: Joi.allow(...Object.values(Test))
    }).meta({ className: 'TestSchema' });

    const result = convertSchema({ sortPropertiesByName: false }, schema);
    expect(result).not.toBeUndefined;
    expect(result?.content).toBe(`export interface TestSchema {
  enumeration?: 'Option1' | 'Option2' | 'Option3' | 0 | 1 | 2;
}`);
  });

@mrjono1 sweet, thanks, we'll give it a shot


Failed to upgrade when changing base layer/image

I tried to upgrade the device from version 1 to version 2. The difference between these two versions is that they use different base layers (parent = version_1 and parent = version_2). Specifically, the version 2 has a newer version of linux kernel, and thus different boot partition content I assume.
The result I got is that the upgrading fails, and hot/spare slot switch never happens.
So could I know, is this kinds of upgrading allowed in current design?
Thanks.

Yes, such an update should be possible. Can you share any further details (e.g., an error message)?

I got two problems:

Firstly I tried to build an image using pi-gen. I confirmed the new image works. But when I start to bake rugpi image based on it. I got the following error.

INFO [ 3/15] remove unnecessary Raspberry Pi OS functionality {"disable_swapfile": "true"}
INFO     - 00-install.sh
INFO Mounting "/usr/share/rugpi/repositories/core/recipes/rpi-raspios-cleanup" to "/tmp/.tmpsyLdg0/roots/system/run/rugpi/bakery/recipe".
INFO Mounting "/tmp/.tmpsyLdg0" to "/tmp/.tmpsyLdg0/roots/system/run/rugpi/bakery/bundle/".
resize2fs_once.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable resize2fs_once
Failed to disable unit, unit unattended-upgrades.service does not exist.
Removed "/etc/systemd/system/multi-user.target.wants/sshswitch.service".
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
dos2unix pi-language-support
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
piwiz* userconf-pi*
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
After this operation, 487 kB disk space will be freed.
(Reading database ... 132337 files and directories currently installed.)
Removing piwiz (0.75) ...
Removing userconf-pi (0.9) ...
(Reading database ... 132308 files and directories currently installed.)
Purging configuration files for userconf-pi (0.9) ...
/run/rugpi/bakery/recipe/steps/00-install.sh: line 16:  1034 Segmentation fault      (core dumped) apt-get purge -y userconf-pi
Error: error running command chroot /tmp/.tmpsyLdg0/roots/system /run/rugpi/bakery/recipe/steps/00-install.sh: command failed with non-zero exit code 139

I previously tried to install the kernel deb file using rugpi receipes. But I failed because the boot partition is not writable, which I think is intended behavior.

May I know how should I proceed?
Thanks

I do not know what goes wrong there. The error seems to indicate a segmentation fault in apt-get which is really strange, to say the least. In principle, you should be able to install a kernel with a recipe. Could you share a few more details about your setup? What architecture are your building for and what is your host's architecture and OS? What exactly did you try to install the kernel (if possible, please share the recipe you used) and what was the error message? Which version of Rugpi are you using and what target did you configure? There are no limitations regarding the boot partition (at least with the tryboot boot flow) – you can update anything on it.

I can reproduce the problem: added kernel installation script in this. The generated image is bootable, but the /boot/config.txt doesn't contain the line of kernel=kernel8.img.

I see. Yes, indeed, the boot partition is not mounted at /boot.
I haven't tested it, but I think the following should work:
BOOT_DIR="${RUGPI_BUNDLE_DIR}/roots/boot"
cp /boot/kernel8.img "${BOOT_DIR}"
echo "kernel=kernel8.img" >> "${BOOT_DIR}"/config.txt

Also, I think, that the changes to config.txt are not really necessary. kernel8.img is the default name for Raspberry Pi 4 (and related models). So, the firmware will automatically boot this kernel.

Yes, the reason is that there is no clear place where the boot partition should be mounted as it could be /boot or /boot/firmware, depending on the OS. I still consider this a bug in the documentation, though, as it is currently undocumented. The core recipes always copy everything to "${BOOT_DIR}" as described above.

Just letting you know, copying to "${BOOT_DIR}" solved my problem.
Thanks


에셋타운 2편: Proxy Server (Cloudflare Workers)

https://github.com/junghyeonsu/junghyeonsu.dev/commit/9cda7ac13acd14f6c504d93368a3b6a6239aa7c4


axialExpansionChanger and breakFuelComponentsIntoIndividuals() are not compatible

An internal plugin runs Block.breakFuelComponentsIntoIndividuals(), which tears apart the fuel inside of a block (with multiplicity > 1) into individual components and gives them multiplicity = 1. This appears to adversely impact downstream plugins as well as other parts of ARMI, which appear to not be prepared for this (i.e., multiplicity = 1).
An example of this breaking other code is in the axialExpansionChanger module. An internal plugin uses this module, and I observe a failure in AssemblyAxialLinkage._getLinkedComponents(). This failure occurs because _determineLinked() is returning multiple matches for a given pin by matching it with the many pins in the neighboring block(s).

In speaking with @albeanth regarding this, he requested some discussion on the topic. As noted in the block module, breaking the pins into pieces is ultimately required for operations like pin depletion, so it doesn't seem like we can move away from it (since each pin needs to be able to track its own number densities).
@mgjarrett @jakehader @john-science

Well, I don't have a fully-formed thought on this yet.
One thing I will note right now is Block.breakFuelComponentsIntoIndividuals() has been in ARMI for 3-5 years now, so it's certainly not new functionality.

Well, I don't have a fully-formed thought on this yet.
One thing I will note right now is Block.breakFuelComponentsIntoIndividuals() has been in ARMI for 3-5 years now, so it's certainly not new functionality.

It's also not a tested or used functionality either! It definitely needs more testing and as it currently is set up is sort of half baked with only breaking up fuel components. There is a bit TO DO in that method. To be honest, this probably makes sense as a utility function.

@albeanth @jakehader - Thoughts?

This is effectively the same as #769 , but this is a much more concrete, likely, and understandable instance of the underlying issue.

@keckler you're exactly right with reference to #769 . It's the same problem.
As @Nebbychadnezzar points out, the axial expansion changer definitely does not support this currently. When we were discussing, we had a few ideas on how we could make it work. For axial linkage to work in the axial expansion changer, we'd need to know which pins are linked to each other. One idea we had was to use the component parameter pinNum https://github.com/terrapower/armi/blob/c2d6c767ef0f5e95c76d9d3b21b03eab1d7d4636/armi/reactor/components/componentParameters.py#L118-L123. We could then match the pin numbers between axially adjacent blocks to determine if they are linked.
To use this though, we need to adjust breakFuelComponentIntoIndividuals to include the plenum blocks and any other pinned blocks as well - though there may not be fuel, there is clad and its expansion in the fuel blocks below will push up on the plenum clad.
If we choose to expand each pin individually, the cost of doing the expansion will increate - by how much, I don't know, but I'm fairly confident it won't be negligible. We'll be going from a handful of components per block to 100-200 components per block. That's a big change across an entire core and is going to come with a cost.
I was hoping to start a dialogue to see how often this functionality gets used and under what circumstances. I wonder if it makes sense to require plugins that need this to manage this deconstruction on their own - and then store relevant information on the database as needed - much like how armi/physics/neutronics/globalFlux/globalFluxInterface.py modifies a copy of the reactor as needed and maps/stores info back to the original ARMI Core.

@albeanth @keckler . So, it sounds like there are at least two use cases at the moment.

Pin-level depletion - For a detailed assembly, we need to be able to track unique number densities for each fuel (and probably poison?) pin in a block. It sounds like we decided to track these number densities by creating unique pin objects for the pins.
Unique pins within an assembly - As in @keckler's case, you can have situations where pins within an assembly can be different enough to model that difference (e.g., enrichment) by creating unique pin types for them.

In the extreme case of item 2, you could model an assembly where each pin has a different enrichment, and so each pin would be unique and have a multiplicity of 1. Is that a general case that we'd like ARMI to be able to model? That might inform the kind of architecture decision we want to aim for.
In the common case, though, assemblies typically have one pin type and a multiplicity that matches their total number.

Is that a general case that we'd like ARMI to be able to model?

I would give a strong "yes".

@albeanth is this related to changes in #1376 as well?

@albeanth is this related to changes in #1376 as well?

That PR was not made with this in mind. Let me take it for a spin...

Ok, so #1376 will not resolve this issue. It will technically run through the linkage and give you something, but won't be quite right I don't think. It looks like it'd be moderate level of effort, but should be a PR separate from #1376. If we could leverage the grids in breakFuelComponentsIntoIndividuals, that might help.
The other (and arguably more complicated) issue we run into is determining the axial expansion target component on the fly. Up to this point, we've been able to get around this by manually setting it in the blueprints via axial expansion target component. But that won't work here. There may be other issues too, not sure yet.

@albeanth I would love to talk to you about the status of this issue. Since you are definitely the person who has the best eyes on it right now.

This has not been on my radar. I don't know where (or if) this falls on the priority list. Pinging @zachmprince since this deals with pin-level stuff and may be something he and I need to think about for the next release of ARMI.

@drewj-tp thinks this is possibly a symptom of a large axial expansion "linked components" issue.

This Issue can actually probably be closed. The method in question, breakFuelComponentsIntoIndividuals, is going to get removed as part of internal on-going pin-level depletion work.
It is a legacy method that is getting overhauled.
I'm curious to know what @drewj-tp's thoughts are on in regard to an issue with component linking. That's a pretty well tested and vetted routine.

@drewj-tp thinks this is possibly a symptom of a large axial expansion "linked components" issue.

I'm curious to know what @drewj-tp's thoughts are on in regard to an issue with component linking. That's a pretty well tested and vetted routine.

My suspicion is this is related to #1376 and https://github.com/terrapower/armi/issues/769 same as @keckler posited in https://github.com/terrapower/armi/issues/791#issuecomment-1194252277

This is effectively the same as https://github.com/terrapower/armi/issues/769 , but this is a much more concrete, likely, and understandable instance of the underlying issue

Yes, it is definitely related. It's the exact issue.
But the offending method of this issue is getting replaced and will be null in a few weeks. Once it gets removed, I was going to close this Issue (sorry, I could have communicated that).


config files for a specific module

Is your feature request related to a problem? Please describe.
many of the time a module need a configuration that can be published to the main project
this feature in so important to the modules structures and make it easy to reuse the module in other projects with different configurations
Describe the solution you'd like
It would be awesome if I can add a config file for my module for example:
app/Modules/FooBar/config/config.php
Describe alternatives you've considered
and if you add an artisan command like (php artisan make:module:config) that would be awesome too
Additional context

Hi @husseinferas
Thanks for the suggestion. I'll think about the pros and cons.
For now you could use the regular modules config. See the example in issue #7

Ok, @Artem-Schander thank you,
This package is great and clean, I 'm so excited about an idea to build a website for modules that developers can upload and download and share modules between each other.
what do think? if you love the idea, share with me your email and I will send to you the details

Sounds awesome :)
The only problem that would come to mind is that routes from different modules could conflict.
My email address is<EMAIL_ADDRESS>


The src file not a .dex, .odex or zip file

Running your code, I get a the src file not a .dex, .odex or zip file

help I need help


Unneeded dependency execute the topology main class locally

Here, https://github.com/twitter/heron/blob/master/heron/tools/cli/src/python/execute.py#L101,
we found that to execute a heron tar locally, it would add heron-instance.jar into classpath:
os.path.join(tmpdir, "heron-instance.jar"),
However,

it seems heron-instance.jar should not be included into the classpath to execute the topology main class locally.
the files in tmpdir are extracted from topology_tar, and heron-instance.jar should not be included in the topology_tar. In other words, it is adding an non-existing file into the classpath.

Did I miss anything? Or should we just remove this unneeded denpendency?

@srkukarni @kramasamy

It should be removed

It is not needed.

On Nov 3, 2017, at 12:56 AM, Sanjeev Kulkarni<EMAIL_ADDRESS>wrote:
It should be removed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

#2520


Change which accessories are displayed

Is your feature request related to a problem? Please describe.
It's not clear how the dashboard choses which accessories to display (other than it only displays up to 9). I have one widget that starts with a "z" that comes before one with a "w", so it's not alphabetical. Maybe it's alphabetical based on the plug in name or something. Regardless, it's hard to tell, so I have to delete plug ins do display the ones I want.
Describe the solution you'd like
Chose what items to display. I don't mind too much which way we do this. Probably the best way would be to allow users to specify exactly which accessories to display (maybe based on a list)
Describe alternatives you've considered
Probably a quicker and easier to implement solution would be based off of the "Hide accessory" In the Accessory section of the main UI. This would be slightly less flexible (I can imagine someone would have some reason to use the UI AND dashboard you created, so it would be great to allow both.
Another alternative would be to show this based off homekit favorites or rooms. Again, slightly less flexible, but still better
Additional context
Add any other context or screenshots about the feature request here.

This is absolutely an issue that I am aware of. Currently, it pulls the switches and displays the first ones in the order that the Homebridge server sends them through the insecure mode API. It appears as though Homebridge is sorting them by their vendor's name in this API. I hope to work something out to fix this issue as soon as I can, but it is requiring a large amount of reworking from my end. I have my AP Exams coming up fairly soon so my priority is to study for those as of right now, but this is my focus when I have time.


Polynomial functions

Reported by kdavies on 31 Jan 2013 01:53 UTC
This ticket is to add a Polynomials package to Modelica.Math.  Unfortunately, after writing the package for another library, I realized that Modelica.Media.Incompressible.TableBased.Polynomials_Temp seems to have the same functions and probably more.  Maybe the two packages can be combined.
One advantage of the new Polynomial package is that it generates polynomial expressions in a nested form (((... a2)*x + a1)*x) which should be more computationally efficient.  Also, the tests (added to ModelicaTest.Math) may be more thorough; they are based on the der() operator as recommended in the Dymola 7.4 User's Manual Volume 2.
Regardless, it may be good to move Polynomials_Temp to the Math package so that users can find it more easily.
z

Migrated-From: https://trac.modelica.org/Modelica/ticket/978

Modified by dietmarw on 4 Feb 2013 19:59 UTC

Modified by beutlich on 21 May 2014 21:30 UTC

Modified by beutlich on 12 Apr 2015 20:28 UTC

Comment by otter on 12 Dec 2015 06:20 UTC
Thanks for your proposal. I do not fully understand the implementation (and there is not much documentation).
Note, besides Modelica.Media.Incompressible.TableBased.Polynomials_Temp there is also a more powerful implementation: Modelica_LinearSystems2.Math.Polynomial. The latter uses operator overloading to simplify working with polynomials and provides many operations (including "roots"), e.g.
  import Modelica_LinearSystems2.Math.Polynomial;
  Polynomial t=Polynomial.x();
  Polynomial p = t^2 + 8*t + 16;
  Polynomial der_p = Polynomial.derivative(p);
  Real y = Polynomial.evaluate(der_p, 3);

This Polynomial definition is used as basis to formulate transfer functions and have operations on transfer functions.
My goal was to include this Polynomial definition in MSL. However, this requires that all relevant Modelica tools support operator overloading (which seems currently not the case).
In order to no longer wait, one could follow your route and combine it with the Polynomial_Temp definitions and introduce a Polynomial without operator overloading (and at some time, another definition with operator overloading). If we follow this, your propposal seems to be not yet sufficient (and I do not understand yet all details), and documentation and test modells are missing. So, at the current stage, it cannot be included in MSL.
For these reasons, I have moved the milesteon.
As a side remark: Can you explain the use case, to specially support polynomials where the lower order coefficients are all zero and have special numerics to compute this in a more reliable form. I am not sure whether your implementation is really more reliable as the Horner scheme used in Polynomial_temp. Are there any publications?

Point to @kdavies4.

My goal was to include this Polynomial definition in MSL. However, this requires that all relevant Modelica tools support operator overloading (which seems currently not the case).

The above example code will be supported by the next release of SimulationX.
model T978_1
  import Modelica_LinearSystems2.Math.Polynomial;
  Polynomial t=Polynomial.x();
  Polynomial p = t^2 + 8*t + 16;
  Polynomial der_p = Polynomial.derivative(p);
  Real y = Polynomial.evaluate(der_p, 3);
  annotation(uses(Modelica_LinearSystems2(version="2.3.4")));
end T978_1;

@FrenkelJ FYI


Update sys-proctable to 1.1.3.

It turns out that sysctl + KERN_PROCARGS2 will sometimes give you an incorrect value for argc that is too large. The result is an error when trying to parse cmdline arguments. This was triggered by postgresql processes for some reason.
Anyway, this is fixed in 1.1.3.


logging: Add option to not generate dictionary database always

Add option to not generate the logging dictionary database when the zephyr finale image is created. Instead this database can be created by its own build target.
This reduces the build time during debugging as the database file is not required as part of the debugging.
Move the command to the logging subsystem cmakelists. Fix build byproducts not listing the output file.
Add comment so users know which command is executing as this command can take a long time.

It would be great if you can separate this into two commits, one to move the cmake commands, and the other one adding the new kconfig (and changes to cmake).

It would be great if you can separate this into two commits, one to move the cmake commands, and the other one adding the new kconfig (and changes to cmake).

I can do that, once the CI is happy with the change, I'm not sure exactly why it failed at the moment, it worked locally. May be a cmake version issue.

@dcpleung If I moved it out then DEPENDS ${logical_target_for_zephyr_elf} stopped working. I don't know why this happens, and it appears to work just fine on my own machine. Even though I have the same cmake version as what is failing on the bulid server.
@tejlmand Does that make sense to you? There are DEPENDS ${logical_target_for_zephyr_elf} that exists outside of the root CMakeLists.txt file

It is possible that the subsys cmake is included before ${logical_target_for_zephyr_elf} is defined.

@dcpleung Any comments on the current version? I'm not planning on making more changes at the moment.


feat: add Vietnamese translation for the admin panel

Description

[x] I have read and understand the CONTRIBUTING.md document in this repository

This PR provides a Vietnamese translation for the admin panel. It would be better if there is someone to proofread and improve the translation, but for now, my version should be in a usable state.
Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

Checklist:

[x] Existing test suite passes locally with my changes

Related

#300

@hunghvu, isn't the correct ISO code for the Vietnamese language vi?
Yeah, it's probably not that important, but vn denotes the country and not the language, right?
ref. https://www.loc.gov/standards/iso639-2/php/English_list.php

@hunghvu, isn't the correct ISO code for the Vietnamese language vi?
Yeah, it's probably not that important, but vn denotes the country and not the language, right?
ref. https://www.loc.gov/standards/iso639-2/php/English_list.php

You are right, this should be fixed in future PR. Thanks for letting me know.


PLEASE let us disable VSCode Copilot Chat extension without disabling Copilot

As the title states. There are several instances (https://github.com/microsoft/vscode-copilot-release/issues/610, https://github.com/orgs/community/discussions/130265, https://github.com/microsoft/vscode-copilot-release/issues/510, https://github.com/orgs/community/discussions/68276, etc.) of this request being made. Sometimes it's been answered previously by others, occasionally in hacky (but apparently effective ways), but none of them work anymore. If you disable or uninstall the Copilot Chat extension, then you disable/uninstall the main Copilot extension.
We recently performed a VSCode Extension bisection process because we noticed that VSCode is eating up our dev VM's memory, and causing them to crash. The bisection pointed to the Copilot Chat extension as the culprit. It would be really nice for us to not have to fully disable the entire Copilot functionality though.

Dear lord yes please. Why force it on us?

@jrieken, aside from the request to disable chat, maybe you have insights on potential performance issues that are triggered without even using chat.


Tagging improvements

@resolves #928
The linked ticket pretty much describes it
Question: Do you find the green badges awkward?
Demo

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

Files with missing lines
Patch %
Lines

apps/annotations/models.py
50.00%
2 Missing :warning:

Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!


fix(compiler): add template name to inline render

This change builds on top of https://github.com/go-vela/compiler/pull/194 to also inject the templates name when parsing inline templates
fixes:https://github.com/go-vela/community/issues/675

@rfigueroa can you help resolve the failing tests?


Does watermark work?

Here's my test:
timsehn:quick-test timsehn$ cat test.yml
# The configurations that used for the recording, feel free to edit them
config:

  # Specify a command to be executed
  # like `/bin/bash -l`, `ls`, or any other commands
  # the default is bash for Linux
  # or powershell.exe for Windows
  command: bash -l

  # Specify the current working directory path
  # the default is the current working directory path
  cwd: /Users/timsehn/liquidata/terminalizer-videos/quick-test

  # Export additional ENV variables
  env:
    recording: true

  # Explicitly set the number of columns
  # or use `auto` to take the current
  # number of columns of your shell
  cols: 88

  # Explicitly set the number of rows
  # or use `auto` to take the current
  # number of rows of your shell
  rows: 44

  # Amount of times to repeat GIF
  # If value is -1, play once
  # If value is 0, loop indefinitely
  # If value is a positive number, loop n times
  repeat: 0

  # Quality
  # 1 - 100
  quality: 100

  # Delay between frames in ms
  # If the value is `auto` use the actual recording delays
  frameDelay: auto

  # Maximum delay between frames in ms
  # Ignored if the `frameDelay` isn't set to `auto`
  # Set to `auto` to prevent limiting the max idle time
  maxIdleTime: 2000

  # The surrounding frame box
  # The `type` can be null, window, floating, or solid`
  # To hide the title use the value null
  # Don't forget to add a backgroundColor style with a null as type
  frameBox:
    type: floating
    title: Terminalizer
    style:
      border: 0px black solid
      boxShadow: none
      # margin: 0px

  # Add a watermark image to the rendered gif
  # You need to specify an absolute path for
  # the image on your machine or a URL, and you can also
  # add your own CSS styles
  watermark:
    imagePath: /Users/timsehn/liquidata/git/logo/dolt/Dolt.png
    style:
      position: absolute
      right: 15px
      top: 15px
      height: 50px
      width: 50px

  # Cursor style can be one of
  # `block`, `underline`, or `bar`
  cursorStyle: block

  # Font family
  # You can use any font that is installed on your machine
  # in CSS-like syntax
  fontFamily: "Monaco, Lucida Console, Ubuntu Mono, Monospace"

  # The size of the font
  fontSize: 12

  # The height of lines
  lineHeight: 1

  # The spacing between letters
  letterSpacing: 0

  # Theme
  theme:
    background: "transparent"
    foreground: "#afafaf"
    cursor: "#c7c7c7"
    black: "#232628"
    red: "#fc4384"
    green: "#b3e33b"
    yellow: "#ffa727"
    blue: "#75dff2"
    magenta: "#ae89fe"
    cyan: "#708387"
    white: "#d5d5d0"
    brightBlack: "#626566"
    brightRed: "#ff7fac"
    brightGreen: "#c8ed71"
    brightYellow: "#ebdf86"
    brightBlue: "#75dff2"
    brightMagenta: "#ae89fe"
    brightCyan: "#b1c6ca"
    brightWhite: "#f9f9f4"

# Records, feel free to edit them
records:
  - delay: 1056
    content: "Restored session: Fri Mar  1 14:15:33 PST 2019\r\n"
  - delay: 13
    content: "\e]7;file://timsehn.hopto.org/Users/timsehn/liquidata/terminalizer-videos/quick-test\a\e[?1034htimsehn:quick-test timsehn$ "
  - delay: 1391
    content: l
  - delay: 101
    content: s
  - delay: 135
    content: ' '
  - delay: 191
    content: '-'
  - delay: 428
    content: a
  - delay: 270
    content: l
  - delay: 697
    content: "\r\n"
  - delay: 6
    content: "total 0\r\ndrwxr-xr-x  2 timsehn  staff   64 Mar  1 14:48 .\r\ndrwxr-xr-x  6 timsehn  staff  192 Mar  1 14:48 ..\r\n\e]7;file://timsehn.hopto.org/Users/timsehn/liquidata/terminalizer-videos/quick-test\atimsehn:quick-test timsehn$ "
  - delay: 2172
    content: "logout\r\nSaving session..."
  - delay: 11
    content: "\r\n...saving history..."
  - delay: 11
    content: "truncating history files...\r\n...completed.\r\n"

I can change the image to any image on the web such as:
https://www.liquidata.co/Liquidata-main-logo-RGB.png
I also messed around with the CSS properties. Can't get it to work.
I tried poking around in the code to see if I could figure out my error but alas, my javascript is weak. The last render is attached.

I also cannot get it to work.
Please help!

I'll just leave this here...
I can get the watermark to show up with
watermark:
    imagePath: https://www.liquidata.co/Liquidata-main-logo-RGB.png
       style:
         position: absolute
         right: 15px
         top: 1px
         width: 50px

I haven't figured out yet why positioning is not working as expected.


[BUG] Unable to update records (404 error)

Versions Used
Kaffy: 0.9.4
Phoenix: 1.6.16
Elixir: 1.14.2
What's actually happening?
When I click "Save" to update a record I'm getting a 404 error. Looking at the network logs, it's trying to make a POST request to /:context/:resource/:id instead of a PUT request. I've tested on Firefox and Chrome to make sure it wasn't a browser issue.
[info] POST /admin/models/user/8a1af195-e606-4935-a39c-a7b38512dbcb
[info] Sent 404 in 7ms
[debug] Converted error Phoenix.Router.NoRouteError to 404 response

What should happen instead?
The record should be saved correctly. The frontend should be making a PUT request.
I see the router configuration here and the form configuration here, which both look correct to me. If anyone has pointers for somewhere else I should look please let me know.

Make sure you have Plug.Parsers running before Plug.MethodOverride
The override will not work without the parsed body available

@a3kov thank you for the suggestion! That was indeed the issue. We have a complicated Plug.Parsers configuration due to some proxy requests we're handling, but the net result was the _method parameter wasn't getting parsed before Plug.MethodOverride was called.


Check whether to setup proxy rules when init bpf

Please ensure your pull request adheres to the following guidelines:

[x] For first time contributors, read Submitting a pull request
[x] All code is covered by unit and/or runtime tests where feasible.
[x] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[x] All commits are signed off. See the section Developer’s Certificate of Origin
[x] Provide a title or release-note blurb suitable for the release notes.
[x] Thanks for contributing!

proxy rules should not be setup when iptables marked with 0x200 and 0xa00 not installed
Fixes: #issue-number
<!-- Enter the release note text here if needed or remove this section! -->

test-me-please

test-me-please

could some one else help me do a code review

could some one else help me do a code review


Fixed Docstring

Need this
>>> with open('my_file.nbt', 'rb') as io:

But excepted:
>>> with open('my_file.nbt', rb') as io:

at here https://github.com/TkTech/PyNBT/blob/b1599f91493b237cf1e135b280d73a5038215a96/pynbt/nbt.py#L300

Whoops-a-daisy, thanks!

No thanks. I have 1 more fix for NBT_list.


foo R Script in menu New .. file list

OS: Arch Linux, tcl8.6, tk8.6
IDE: PyCharm 2019.2.3
Plugin: R Language Support 1.1
R Language | R Intepreter: /usr/bin/R
Invalidate Caches/ Restart
When creating a new R script with New .. , the R Script File 'template' in menu file list shows up as foo and not as R Script File

(see screenshot)

Already fixed in master


Reduce framerate drops when testing on mobile device

When testing Jetpaca on my android device, I experienced frequent framerate drops and lagging. I think this is due to the (relatively) large amount of physics objects being accounted for in the game, combined with gdscript being a bit slow.
I was testing with 5th generation Kindle Fire, if that's relevant.

Note that this project isn't really maintained anymore. If you feel like forking it or joining the team to help on it, I think we'd be glad to invite you. Many of the bugs you spot are tiny works but that need to be done by someone. Also, the game has lots of unused potentials left from its original makers.


Updated example in readme to match class rename

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)
Docs
:arrow_heading_down: What is the current behavior?
Wrong class names in example
:new: What is the new behavior (if this is a feature change)?
Use correct filenames in example
:boom: Does this PR introduce a breaking change?
No
:bug: Recommendations for testing
n/a
:memo: Links to relevant issues/docs
n/a
:thinking: Checklist before submitting

[ ] All projects build
[ ] Rebased onto current develop

Codecov Report

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

@@           Coverage Diff            @@
##           develop       #9   +/-   ##
========================================
  Coverage    94.44%   94.44%
========================================
  Files            2        2
  Lines           36       36
========================================
  Hits            34       34
  Misses           2        2

Continue to review full report at Codecov.

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


Footer when infinity scroll

We've chosen to remove the footer from explore because it constantly jumps when new content is loaded. Instead, a reduced footer could be used in the future.

so for now, we are removing it?

so for now, we are removing it?

yup

only in places with infinite scroll

👋

I'm not sure I get this; could you please clarify? 👀

Oh, okay. ic
I'm not sure how that would work on mobile and if it wouldn't be counter-intuitive. I'm not sure why, but I don't think this is a good approach.

oh, that's um weird, rather remove it completely now, it's confusing anyway and we have issues with that


ChannelClient reference

https://github.com/ichenhe/wear-gallery
https://github.com/shoaibsaikat/Android-Channel-Client-File-Transfer
https://github.com/njrafi/Wear-Os-Communication/tree/464746ccf616368c4b2f977ccc88d3266b781cea

check stackoverflow as well


Need help with custom serialization

I made a small example of a class I need to serialize. https://godbolt.org/z/1r616sYz7
I'm not sure if I did this the thought of way or if there is a better more elaborate way. The class interface itself should not be changed. This simple test works as well, but as there is no example of a more complex custom serialization, I feel like I'm missing something.
How would you serialize this class with a standalone serialize overload?
class blubb final
{ // The class interface is as is and can't be touched!
  // This is a dummy for a more complex problem.
public:
  auto text1() const { return text1_; }
  auto text2() const { return text2_; }
  auto add(double d) { vec_.push_back(d); }
  auto get(std::size_t i) const { return vec_.at(i); }
  auto count() const { return vec_.size(); }
  auto text1(const std::string& val) { text1_ = val; }
  auto text2(const std::string& val) { text2_ = val; }
  auto operator==(const blubb&) const -> bool = default;

private:
  std::string text1_;
  std::vector<double> vec_;
  std::string text2_;
};

Please read the readme section that talks about "explicit serialization"

I did, multiple times. And as I wrote, "Can't touch the class". So this is not a solution! My problem can't be solved with this screenshot.

Keep reading that section it explains how to do it from outside the class

I did, multiple times. This is not a solution since the members are private:
namespace my_namespace
{
struct person
{
    std::string name;
    int age{};
};

constexpr auto serialize(auto & archive, person & person)
{
    return archive(person.name, person.age);
}

constexpr auto serialize(auto & archive, const person & person)
{
    return archive(person.name, person.age);
}
} // namespace my_namespace

Further, the amount of serialization is dependent on a runtime function call. All of this is shown in my example.

I see that you have setter and getter for each member so you can via the external serialization function just serialize strings and explicitly call the getter and setter - you must first check if this is a load or save operation

First, thank you for answering my questions.
I don't have access to vec_ directly. This is a very simplified example. Maybe only every nth member of something would needed to be serialized. Of course I could copy every thing into an easier struct, but this would then lead to an extra copy which should not be necessary. This is why I came up with this solution, where I wonder if this could be done easier:
static constexpr auto serialize(auto& archive, blubb& obj)
{
  using archive_type = std::remove_cvref_t<decltype(archive)>;
  using kind_type = decltype(archive_type::kind());

  if constexpr(archive_type::kind() == kind_type::in)
  { // Deserialization
    std::string text;
    if(const auto result = archive(text); failure(result))
    {
      return result;
    }
    obj.text1(text);

    std::uint32_t size;
    if(const auto result = archive(size); failure(result))
    {
      return result;
    }

    for(auto i = decltype(size){0}; i < size; ++i)
    {
      double d;
      if(const auto result = archive(d); failure(result))
      {
        return result;
      }
      obj.add(d);
    }

    const auto result = archive(text);
    if(failure(result))
    {
      return result;
    }
    obj.text2(text);

    return result;
  }
  else if constexpr(archive_type::kind() == kind_type::out)
  { // Serialize
    if constexpr(std::is_same_v<std::size_t, decltype(archive())>)
    { // Maybe size test run before serialization? Is this correct?
      auto result = archive(obj.text1());
      const std::uint32_t size = obj.count();
      result += archive(size);

      for(auto i = decltype(size){0}; i < size; ++i)
      {
        result += archive(obj.get(i));
      }

      return result + archive(obj.text2());
    }
    else
    { // Real serialization
      if(const auto result = archive(obj.text1()); failure(result))
      {
        return result;
      }

      const std::uint32_t size = obj.count();
      if(const auto result = archive(size); failure(result))
      {
        return result;
      }

      for(auto i = decltype(size){0}; i < size; ++i)
      {
        if(const auto result = archive(obj.get(i)); failure(result))
        {
          return result;
        }
      }

      return archive(obj.text2());
    }
  }
}

If you don’t have direct access you need to work around it by using the getters and setters and etc - it’s very manual process

Yes, and I'm happy to do this manual process for some of my more complex needs. I only have one thing I don't fully understand. When compiling, I have to fulfil two cases for the kind::out. One for size_t and one for errc. Is the size_t for counting how many bytes the serialization would take? Is the check if constexpr(std::is_same_v<std::size_t, decltype(archive())>) good two distinguish those two cases?
I'm trying to replace my old self made serializer we're using in my company for over 10 years with this one. It is 100% binary compatible and has depending on use about the same performance. The major feature of course is PFR I want, but I some of the others mine lack are interesting as well.


Headers from CLI not sent on root site handler

How to use webhook -header to enable XSS protection

I tried to use as below and not working.
Webhook.exe - port 90 - header X-Frame-Options=SAMEORIGIN
When I tried to get headers using curl I'm not able to get those headers. I want to fix vulnerabilities.
Curl -lkL --verbose http://localhost:90

Yes. It works however security scan is run on port and ip as below and not on with added hooks.
http://localhost:90

BTW, a fix for this issue has been merged into the development branch.


fixed eclipse import docs & netbeans cloned url

@mohan08p can you sign your PR? https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
@spara can you review?

Sorry... @ManoMarks

No problem, thanks!

Hi Sophia,
sorry but that is what I'm using?
Best
Torsten

Von: Sophia Parafina<EMAIL_ADDRESS>Gesendet: Montag, 14. November 2016 19:29
An: docker/labs
Betreff: Re: [docker/labs] fixed eclipse import docs & netbeans cloned url (#113)
@spara requested changes on this pull request.
The links are point to my personal repo, please correct the links to: https://github.com/docker/labs
[https://avatars0.githubusercontent.com/u/5429470?v=3&s=400]https://github.com/docker/labs
GitHub - docker/labs: This is a collection of tutorials ...https://github.com/docker/labs
github.com
README.md Docker Tutorials and Labs. This repo contains Docker labs and tutorials authored both by Docker, and by members of the community. We welcome contributions ...

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/docker/labs/pull/113#pullrequestreview-8467927, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALYPb-7W7zP2qWexpf2mpV9-uJmyEHPZks5q-LaqgaJpZM4Kvdew.

Torsten,
The canonical url should be the Docker labs repo, not my repo

Fixed all the urls


Refer to F4PGA workgroup page from the description

The F4PGA workgroup should have its website, https://www.f4pga.org listed

@robmains is that the correct url? It doesn't currently work for me.

Does this work?
https://f4pga.org/

Yes, only the latter works

I've added it: https://chipsalliance.github.io/chips-alliance-website/workgroups/