Dynamically Rendering Marker Images

I'm working on dynamically rendering images in my list of markers. I have a separate .json file that contains information regarding what I'm trying to rendering. Each of the items has a different image that I'm trying to render as they correspond to different types of things. If I hard code it to something like "../assets/icons/beer-jar.png" then they will all render correctly, but whenever I try to replace it with something dynamic like {MapMarker.icon} then the application will crash. If there an issue with syntax or does there need to be a work around to render the different icons?
import React, { Component } from 'react';
import { View, Platform, Image, Text, Button, Dimensions } from 'react-native';
import MapView, { PROVIDER_GOOGLE, Marker } from 'react-native-maps';
import { Divider } from 'react-native-elements';
import { connect } from 'react-redux';
import Expo from 'expo';
// import MarkerComponent from '../components/MapMarkers'
import { STATUS_BAR_HEIGHT, SCREEN_WIDTH } from '../constants';
const window = Dimensions.get('window');
class MapScreen extends Component {
render() {
const { container, mapView } = styles;
const { MapMarkers } = this.props.mapMarkers.locations
console.log("props for markers", this.props.mapMarkers.locations)
return (
  <View>
    <View style={container}>
      <MapView
        provider={PROVIDER_GOOGLE}
        style={mapView}
        initialRegion={{
            latitude: 30.26722,
            longitude: -97.7619,
            latitudeDelta: 0.0922,
            longitudeDelta: 0.0421,
          }}
      >
      {this.props.mapMarkers.locations.map(MapMarker =>
      <Marker
      key={MapMarker.id}
      coordinate={{ latitude: MapMarker.latitude, longitude: MapMarker.longitude }}
      title={MapMarker.name}
      description={MapMarker.description}
      image={require('{MapMarker.icon}')}
      />)}

    </MapView>
    </View>
  </View>
);

}
}
const mapStateToProps = state => {
return { mapMarkers: state.mapMarkers };
};
export default connect(mapStateToProps) (MapScreen);`

require in react-native needs a static path to an asset in order to work:
https://facebook.github.io/react-native/docs/images.html
So you will have to create a mapping in your app between different strings and calls to require for each image.
For instance an object like this:
const markerImages = {
    iconOne: require('icon-one.png'),
    iconTwo: require('icon-two.png'),
};
...
<Marker image={markerImages[MapMarker.icon]} />

Thanks!!!

require in react-native needs a static path to an asset in order to work:
https://facebook.github.io/react-native/docs/images.html
So you will have to create a mapping in your app between different strings and calls to require for each image.
For instance an object like this:
const markerImages = {
    iconOne: require('icon-one.png'),
    iconTwo: require('icon-two.png'),
};
...
<Marker image={markerImages[MapMarker.icon]} />

great approach, thanks for that! 👍
however, what if MapMarker.icon is only know at runtime, e.g. because I get an image URL from a REST API ?

require in react-native needs a static path to an asset in order to work:

https://facebook.github.io/react-native/docs/images.html

So you will have to create a mapping in your app between different strings and calls to require for each image.

For instance an object like this:

const markerImages = {

iconOne: require('icon-one.png'),

iconTwo: require('icon-two.png'),

};

...

great approach, thanks for that! 👍
however, what if MapMarker.icon is only know at runtime, e.g. because I get an image URL from a REST API ?

The docs say that only local images may be used with the image prop:

| image | ImageSource |  | A custom image to be used as the marker's icon. Only local image resources are allowed to be used.

However, you can render a custom child view with your own standard react native Image component that does handle remote urls. I assume that will have a performance hit over embedding marker images in your app and referencing them with some sort of enum though. But if you need it, that is mentioned at the bottom of the doc for Marker:
https://github.com/react-native-community/react-native-maps/blob/master/docs/marker.md

Thank you very much for your super-quick response - you would not believe how much you've helped me with that! 👍👍👍
They've really tucked the child image info nicely away down there on that page, gotta admit I stopped reading after Only local image resources are allowed to be used.
Found some other code samples in the mean time that make a lot more sense now:

https://www.reddit.com/r/reactnative/comments/auy3hj/reactnativemaps_marker_icon_doesnt_change_to
https://lifesaver.codes/answer/images-inside-marker-views-are-not-always-rendered-on-android


misunderstanding of ebm training

Hi, this work is good one and i follow you work for my project, here are some misundstandings about you code:
logger.info('constructing datasets (splitting eval_dataset) for calibration...')
dataset_cal_dev1 = copy.deepcopy(eval_dataset)
dataset_cal_dev2 = copy.deepcopy(eval_dataset)
dataset_cal_tr = copy.deepcopy(train_dataset)
cal_num = int(len(eval_dataset) / 2)
dataset_cal_dev1.features = dataset_cal_dev1.features[:cal_num]
dataset_cal_dev2.features = dataset_cal_dev2.features[-cal_num:]
#dataset_cal_tr.features = dataset_cal_tr.features[-cal_num:]
logger.info('setting eval_dataset to dataset_cal_dev2...')
eval_dataset = dataset_cal_dev2
so, actually, you use eval_dataset for development and dataset_cal_dev1 for testing for all methods?
and the results from table1 and table2 is also not clear to me. test-set accuracy means test it on test-dataset splitted from normal glue deveploment dataset(dataset_cal_dev1 ?) since we can't not access to actual test dataset and estimate ece is impossible.

Hi, it's the other way around.
The dataset_cal_dev2 (or eval_dataset) is used for actual evaluation (final results in table 1 and table 2)
I split the original dev set in half, precisely because as you said, we do not have the actual test dataset. So i'm using half of the original dev set as "test set", to compute ece and accuracy.
dataset_cal_dev1 is used for development.


Create JKS for internode encryption (#127)

Automatically bootstrapping a certificate authority and enabling internode encryption.

Updates pushed, the above test run just appears to be flaky integration tests?

Not a blocker, but is there a good path to optionally putting the CA in ahead of time so we can get two DCs orchestrated to work together?

Not a blocker, but is there a good path to optionally putting the CA in ahead of time so we can get two DCs orchestrated to work together?

In this case, it is all stored as secrets, and should use the secrets present if they are available. So generating the CA ahead of time and populating the secret I think should work. Still, that strategy deserves an integration test and additional developer/user documentation, which I realize is sadly lacking from this PR. I think a follow-on PR makes sense to address a lot of these.

We need to add docs/tests around the following scenarios:

User doc about how to configure the thing
How to use a single CA across multiple cassdc's
What happens when this gets flipped from "off" to "on"


small ui change

Pull Request Test Coverage Report for Build 342

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.01%) to 49.127%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/main/java/seedu/address/ui/ExpenditureCard.java
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/main/java/seedu/address/ui/ExpenditureCard.java
1
0.0%

Totals

Change from base Build 341:
-0.01%

Covered Lines:
1632

Relevant Lines:
3322

💛  - Coveralls


feat: cancer percentage

Please describe the changes this PR makes and why it should be merged:
Fixes: #45
Status and versioning classification:

This PR changes the library's interface (methods or parameters added)

Also add in readme

Codecov Report

Merging #49 (f87eff0) into main (e4aee05) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #49   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         5    +1
  Lines           12        23   +11
  Branches         0         8    +8
=========================================
+ Hits            12        23   +11

Impacted Files
Coverage Δ

src/lib/cancerPercentage.ts
100.00% <100.00%> (ø)

src/lib/index.ts
100.00% <100.00%> (ø)

src/lib/decancer.ts
100.00% <0.00%> (ø)

src/lib/isCancerous.ts
100.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@all-contributors please add @legendhimslef for tests, code, docs


ETH subprotocol

The ETH subprotocol is the main subprotocol used by the wire protocol of Ethereum under devp2p.
Motivation
There is no independent ETH subprotocol implementation that can allow tools to perform connections and recover information from peers by calling status for example.
Scope of work

Implement ETH subprotocol
Implement each message
Implement a test suite for the subprotocol.

Implemented with #86


Docker container local configuration

Please review these assumptions first:
You have build a docker container to run a scan.
In production, the docker container uses a BigQuery service account to run the scan.
Developers want to run that docker container locally to test scans.
When developers run it locally they want the ability to use a different account, a non-service account.
With those assumptions I would propose the following approach:
The scan uses 1 or more configuration files as input, next to the SodaCL check files.
The configuration files contain the connection details including GCP account credentials.
So the goal here is to use different configuration files in production as locally on the developers laptops.
The scan configuration files can be referenced in the command line with the -c option eg:
soda scan -d bq -c configuration-bg-prod.yml checks.yml

and
soda scan -d bq -c configuration-bg-dev.yml checks.yml

See also
https://docs.soda.io/soda-core/scan-core.html#anatomy-of-a-scan-command
Does this help to find a solution for

Configuring the local developer account credentials
Avoiding the use of the service account when it's not wanted
?

SODA-1129

Hi 👋🏼
Not sure if it covers your DTAP-needs, but I currently use docker run -e KEY=VALUE to pass on variables from host to container, where VALUE depends on which DTAP-environment it should run in. The provided configuration.yml is configured with variables - as it can now call the provided VALUE's as available system environment variables. Resulting in one image/container suitable for multiple environments, configurable at run-time. I use it to run Soda's docker image in 4 different environments with Azure Pipelines or whatever CI/CD tool applicable. But it should be perfectly suitable for ad hoc use from CLI.
configuration.yml:
data_source your_data_source:
  type: sqlserver
  connection:
    host: ${SQL_SERVER}
    username: ${SQL_USERNAME}
    password: ${SQL_PASSWORD}
  database: ${SQL_DATABASE}
  schema: ${SQL_SCHEMA}
  trusted_connection: false
  encrypt: true
  trust_server_certificate: false
soda_cloud:
  host: cloud.soda.io
  api_key_id: ${SODA_API_ID}
  api_key_secret: ${SODA_API_SECRET}

Command to provide values for the variables being called from configuration.yml (using PowerShell Core-syntax in Azure Pipelines, but you get the point):
docker run `
    --rm `
    -v /path/to/your_soda_directory:/sodacl `
    -e SQL_SERVER=<IP_ADDRESS> `
    -e SQL_USERNAME=sa `
    -e SQL_PASSWORD=****** `
    -e SQL_DATABASE=master `
    -e SQL_SCHEMA=dbo `
    -e SODA_API_ID=ab12345a-1a12-123a-12ab-a12aa1ab1234 `
    -e SODA_API_SECRET=****** `
    sodadata/soda-core:v3.0.10 scan -d your_data_source -c /sodacl/configuration.yml /sodacl/checks.yml

Hope this helps. Cheers!


Is it possible to animate a Polyline?

Essentially I want to do something like this, and I'm not getting anywhere
MapView.Polyline.Animated
Not sure this is even possible...

Do you have example gif to show what you are looking for.

Yeah, here you can see a MapView.Marker.Animated (the missile) move across the screen.
You can see at the very end, I draw a polyline. I was hoping to animate that in the same way I animated the marker.

If I understand correctly you want to have a tail behind the rocket(kinda of smoke tail behind the missile). You can keep adding the coordinates as rocket progresses.

haha, no. But that's way cooler than my idea.
So yes.

I'm using redux to store coordinates for the polyine and it's pretty laggy. I tried making MapView.Polyline an Animated component where each latitude and longitude property of each polyline coordinate was an Animated Value, but it didn't work (wrong proptype; only accepts numbers)

It's a little better on device in release mode, but still a bit laggy. Is this the best I can get performance wise or are there other hacks to decrease the lag?

Can anybody point me in the direction of how to do this animation?
https://www.youtube.com/watch?v=iec4fVTuNCE
I want to replicate the animation of the polilyne (the line with colors blue/yellow/red)
at 0:05 in the youtube channel


Error related to lack of resources (vcores) when trying to run step 6 of tutorial "Analyze data in a storage account"

In step "Analyze data in a storage account" of tutorial we can see:
Attach to the Spark pool named Spark1. Run the cell.
When trying to do so, error related to lack of cores is visible. It looks that it creates new spark session, and becuase one is already running and using all available resources of spark1 pool, it is not possible to run this step.
It require to cancel spark session first before creating new one.
Grzegorz

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

ID: dc0038a0-74af-1272-a637-8415b5a06731
Version Independent ID: c3cdb595-0d7f-4f0d-b071-12533b3a8875
Content: Tutorial: Get started analyze data in Storage accounts - Azure Synapse Analytics
Content Source: articles/synapse-analytics/get-started-analyze-storage.md
Service: synapse-analytics
Sub-service: workspace
GitHub Login: @saveenr
Microsoft Alias: saveenr

Thanks for the feedback and bringing this to our notice . At this time we are reviewing the feedback and will update the document as appropriate .

We have assigned the issue to the content author . They will evaluate & update the document as appropriate

#assign:saveenr

#assign:ryanmajidi

@gkoperczaknord Apologies for the really long delay but the above PR adds a line to the doc to address this issue.
#reassig:@SnehaGunda

#please-close


[1.14.4] REQUEST: Mods tested and confirmed

Hi,
I tested your demagnetize mod with both my Gobber 2 and Ring of Attraction mods and can confirm they work as intended.
Can you add these mods to the list so others know?
Thank you.

Will do! I already added them to the list on the Github readme, just didn't get round to adding them to Curseforge.

Done!

Thank you.


Remote Update (interactions): donovandmc/interactions-locale

This pull request has been superseded by #376


Accessing SourceBuffers of an mp4 Manifest Uri

Have you read the FAQ and checked for duplicate open issues?
Yes, I have checked the FAQ and did not find relevant questions/answers.
What version of Shaka Player are you using?
Shaka Player v2.5
Please ask your question
Hi, my project requires me to understand the path that SourceBuffers take, and understand how to change/manipulate them. With some shaka.log statements I was able to find that Buffers are handled in the media_source_engine.js (used the default Manifest URI provided). When I changed the manifest URI to an MP4 file sitting in the cloud, I found out that it used src= mode. Needed some clarity on what happens when we provide a direct MP4 stream and how to possibly access those bufferArrays and save them onto my local machine.
Thanks.
@joeyparrish

When using src= mode, we only give the browser the URL and the browser handles everything.  We don't use MediaSource/SourceBuffer since everything is handled by the browser.  We cannot play "plain" MP4 using MediaSource since many MP4 files cannot be streamed and need to be formatted correctly to support streaming.

Thanks @TheModMaker , that's clear. Could you tell me how to access and save the source Buffers when using the Load mode? My colleague @anilnakka tried taking the uInt8bufferArray values of the first segment (by printing it on the browser) and then recreated an image with a simple python code but got a noisy image that doesn't resemble what's being displayed(on the shaka player). What could be the error?

@TheModMaker Are buffers getting decoded after being appended? Because when matching the byte length of the video segment (576p) with the size of a 576p frame, video segment is generally smaller. Also, are the buffers RGB/YUV?

The buffers are not images, they are encoded video segments in a container.  For example, if you're streaming MP4-based content, then what is appended to the buffer is a fragmented MP4.
Decoding and rendering of frames happens inside the browser.  If you want access to the frames of a video, you can do this with <canvas>, assuming the video is not protected by DRM.  This will work for plain MP4s in src= mode, too.  See this MDN article to get started on that path: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Manipulating_video_using_canvas
Does this help?

Yes! That did help, thank you @joeyparrish ! Closing the issue for now.


linux-20 is dead.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
linux-20 is dead.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Internal SSD disk drive failed and required to reboot to run check disk drive.


Add aarch64

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

Hi @conda-forge/arm-arch @conda-forge/pyqt - what is the best way to deal with this? Some of the builds finished in time, and the other ones just didn't make it. Hope for the best that when merging the server is less busy? Or build on the conda-forge server?

i think merge. then monitor on master to rebuild until it works.
You can also try to build on azure

@conda-forge-admin, please rerender

Thanks @hmaarrfk - good point re building on Azure, let's try this :)

It took a long time but it works. It would be great if this PR could be merged @conda-forge/pyqt @conda-forge/arm-arch :)

Ping @conda-forge/pyqt

@Tobias-Fischer I can't seem to find aarch64 packages for pyqt - did they ever get built in the end?

For some reason the build wasn't triggered .. what is the best way to deal with that @conda-forge/pyqt @wolfv?

weird. I can see green ticks for the aarch64 configuration. Maybe pushing an empty commit to master?

@conda-forge/pyqt - could someone please do an empty commit on master?

Done. Let's see what happens...

Great, that did the trick :)


How complete is this library?

I cant find any reference to TURN and don't seem to have any luck across multiple networks

This library does not implement TURN, it only implements a variant of the ICE protocol for direct connection establishment between two peers. It should be the state of the art for p2p NAT busting, but it can still fail in a variety of scenarios where the NATs are too complex to break through.
In those cases, a robust application has to fall back to third-party relaying, but this library doesn't implement that.


Output Sarif

We should add an option (perhaps the new default and a bump to 2.4) to output sarif from guided mode and when exporting results.
This needs to add a format Enum to ExportOptions to key off of, which would be set by GuidedMode and Exporting results, which the corresponding option also in the command line options and the blazor interface.

@yongyan-gh @shaopeng-gh, let's check if we can enable some argument to export a SARIF file

below, some guidance from @gfs :
https://github.com/microsoft/AttackSurfaceAnalyzer/blob/18768e7dac51e5f4c151d2186421f03ddcbf904e/Cli/AttackSurfaceAnalyzerClient.cs#L519

Also need to change https://github.com/microsoft/AttackSurfaceAnalyzer/blob/18768e7dac51e5f4c151d2186421f03ddcbf904e/Cli/AttackSurfaceAnalyzerClient.cs#L577

I will take a look at this one.

Sarif:
{
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
"version": "2.1.0",
"runs": [
{
"tool": {
"driver": {
"name": "Attack Surface Analyzer",
"rules": [
{
"id": "FILE_MODIFIED",
"name": "FILE_MODIFIED"
},
{
"id": "FILE_CREATED",
"name": "FILE_CREATED"
},
{
"id": "FILE_DELETED",
"name": "FILE_DELETED"
}
]
}
},
"results": [
{
"ruleId": "FILE_MODIFIED",
"level": "note",
"message": {
"text": "MODIFIED: C:\Test\Scan\ToBeModified.txt"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "file:///C:/Test/Scan/ToBeModified.txt"
}
}
}
],
"properties": {
"ResultType": "FILE",
"ChangeType": "MODIFIED",
"BaseRunId": "10/7/2021 9:21:33 PM-before",
"CompareRunId": "10/7/2021 9:21:33 PM-after",
"Base": {"ContentHash":null,"Created":"2021-10-08T04:18:58.206822Z","FileType":null,"Group":"S-1-12-1-1613650695-1152925323-3004084401-3676713700","Identity":"C:\Test\Scan\ToBeModified.txt","IsDirectory":null,"IsExecutable":null,"IsLink":null,"LastModified":"2021-10-08T04:19:12.4498613Z","MacSignatureStatus":null,"Owner":"S-1-12-1-1613650695-1152925323-3004084401-3676713700","Path":"C:\Test\Scan\ToBeModified.txt","Permissions":{"S-1-5-11":"Modify, Synchronize","S-1-5-18":"FullControl","S-1-5-32-544":"FullControl","S-1-5-32-545":"ReadAndExecute, Synchronize"},"PermissionsString":null,"SetGid":null,"SetUid":null,"SignatureStatus":null,"Size":5,"SizeOnDisk":null,"Target":null,"ResultType":1},
"Compare": {"ContentHash":null,"Created":"2021-10-08T04:18:58.206822Z","FileType":null,"Group":"S-1-12-1-1613650695-1152925323-3004084401-3676713700","Identity":"C:\Test\Scan\ToBeModified.txt","IsDirectory":null,"IsExecutable":null,"IsLink":null,"LastModified":"2021-10-08T04:22:04.3198988Z","MacSignatureStatus":null,"Owner":"S-1-12-1-1613650695-1152925323-3004084401-3676713700","Path":"C:\Test\Scan\ToBeModified.txt","Permissions":{"NT AUTHORITY\Authenticated Users":"Modify, Synchronize","NT AUTHORITY\SYSTEM":"FullControl","BUILTIN\Administrators":"FullControl","BUILTIN\Users":"ReadAndExecute, Synchronize"},"PermissionsString":null,"SetGid":null,"SetUid":null,"SignatureStatus":null,"Size":13,"SizeOnDisk":null,"Target":null,"ResultType":1},
"Diffs": [{"After":"2021-10-08T04:22:04.3198988Z","Before":"2021-10-08T04:19:12.4498613Z","Field":"LastModified"},{"After":{"NT AUTHORITY\Authenticated Users":"Modify, Synchronize","NT AUTHORITY\SYSTEM":"FullControl","BUILTIN\Administrators":"FullControl","BUILTIN\Users":"ReadAndExecute, Synchronize"},"Before":null,"Field":"Permissions"},{"After":null,"Before":{"S-1-5-11":"Modify, Synchronize","S-1-5-18":"FullControl","S-1-5-32-544":"FullControl","S-1-5-32-545":"ReadAndExecute, Synchronize"},"Field":"Permissions"},{"After":13,"Before":5,"Field":"Size"}],
"Rules": [],
"AnalysesHash": "yXvUiHy+rkKstAubfKrepSYhf7tGW6Fmpq72cvzjHu/IFkPu1P6FEstdy15fnGvxhAyIcIzdWFTILRTZ6wy0yA=="
}
},
{
"ruleId": "FILE_CREATED",
"level": "note",
"message": {
"text": "CREATED: C:\Test\Scan\NewlyCreated.txt"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "file:///C:/Test/Scan/NewlyCreated.txt"
}
}
}
],
"properties": {
"ResultType": "FILE",
"ChangeType": "CREATED",
"BaseRunId": "10/7/2021 9:21:33 PM-before",
"CompareRunId": "10/7/2021 9:21:33 PM-after",
"Compare": {"ContentHash":null,"Created":"2021-10-08T04:22:11.5727345Z","FileType":null,"Group":"S-1-12-1-1613650695-1152925323-3004084401-3676713700","Identity":"C:\Test\Scan\NewlyCreated.txt","IsDirectory":null,"IsExecutable":null,"IsLink":null,"LastModified":"2021-10-08T04:22:11.5727345Z","MacSignatureStatus":null,"Owner":"S-1-12-1-1613650695-1152925323-3004084401-3676713700","Path":"C:\Test\Scan\NewlyCreated.txt","Permissions":{"NT AUTHORITY\Authenticated Users":"Modify, Synchronize","NT AUTHORITY\SYSTEM":"FullControl","BUILTIN\Administrators":"FullControl","BUILTIN\Users":"ReadAndExecute, Synchronize"},"PermissionsString":null,"SetGid":null,"SetUid":null,"SignatureStatus":null,"Size":0,"SizeOnDisk":null,"Target":null,"ResultType":1},
"Diffs": [],
"Rules": [],
"AnalysesHash": "yXvUiHy+rkKstAubfKrepSYhf7tGW6Fmpq72cvzjHu/IFkPu1P6FEstdy15fnGvxhAyIcIzdWFTILRTZ6wy0yA=="
}
},
{
"ruleId": "FILE_DELETED",
"level": "note",
"message": {
"text": "DELETED: C:\Test\Scan\ToBeDeleted.txt"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "file:///C:/Test/Scan/ToBeDeleted.txt"
}
}
}
],
"properties": {
"ResultType": "FILE",
"ChangeType": "DELETED",
"BaseRunId": "10/7/2021 9:21:33 PM-before",
"CompareRunId": "10/7/2021 9:21:33 PM-after",
"Base": {"ContentHash":null,"Created":"2021-10-08T04:18:43.2799276Z","FileType":null,"Group":"S-1-12-1-1613650695-1152925323-3004084401-3676713700","Identity":"C:\Test\Scan\ToBeDeleted.txt","IsDirectory":null,"IsExecutable":null,"IsLink":null,"LastModified":"2021-10-08T04:18:43.2799276Z","MacSignatureStatus":null,"Owner":"S-1-12-1-1613650695-1152925323-3004084401-3676713700","Path":"C:\Test\Scan\ToBeDeleted.txt","Permissions":{"S-1-5-11":"Modify, Synchronize","S-1-5-18":"FullControl","S-1-5-32-544":"FullControl","S-1-5-32-545":"ReadAndExecute, Synchronize"},"PermissionsString":null,"SetGid":null,"SetUid":null,"SignatureStatus":null,"Size":0,"SizeOnDisk":null,"Target":null,"ResultType":1},
"Diffs": [],
"Rules": [],
"AnalysesHash": "yXvUiHy+rkKstAubfKrepSYhf7tGW6Fmpq72cvzjHu/IFkPu1P6FEstdy15fnGvxhAyIcIzdWFTILRTZ6wy0yA=="
}
}
],
"columnKind": "utf16CodeUnits"
}
]
}

@gfs above is I drafted some code and generate an output for both json and sarif at the same time, just for a start point to discussion, let me know your inputs.
One issue I see is the rules are so different than the ones you have, in Sarif format there is a tool->driver->rules section and I guess it should contain the rules you have. Where can I find those? my generated json does not have any.
Is it a pre-defined long list of all rules, or that I should loop through the CompareResult.Rules and dynamic generate?
If the CompareResult.Rules is empty like I have, should the Sarif file be empty?
Thanks!

@gfs above is I drafted some code and generate an output for both json and sarif at the same time, just for a start point to discussion, let me know your inputs.
(not sure how to format in GitHub, please copy to VS to see clearly)

Here's a guide for GitHub markdown for the future. https://guides.github.com/features/mastering-markdown/

One issue I see is the rules are so different than the ones you have, in Sarif format there is a tool->driver->rules section and I guess it should contain the rules you have. Where can I find those? my generated json does not have any.
Is it a pre-defined long list of all rules, or that I should loop through the CompareResult.Rules and dynamic generate?
If the CompareResult.Rules is empty like I have, should the Sarif file be empty?
Thanks!

{
  "results": {
    "FILE_CREATED": [
      {
        "Analysis": "DEBUG",
        "BaseRunId": "2021-10-14T16:40:08.6642182-07:00",
        "ChangeType": "CREATED",
        "Compare": {
          "ContentHash": "U5vuoQXdbgnk9XHXG35PFwb90oyl1iXPq63NYaMrIqpkQVU6X+ntJF7D57ZJFufpTXgPvR2zgqZu/anwz+wd2Q==",
          "Created": "2021-10-14T23:41:18.3939762Z",
          "Group": "S-1-12-1-1613650695-1152925323-3004084401-3676713700",
          "Identity": "C:\\Test\\Scan2\\TestAddText.txt",
          "LastModified": "2021-10-14T23:43:53.0879739Z",
          "Owner": "S-1-12-1-1613650695-1152925323-3004084401-3676713700",
          "Path": "C:\\Test\\Scan2\\TestAddText.txt",
          "Permissions": {
            "S-1-5-11": "Modify, Synchronize",
            "S-1-5-18": "FullControl",
            "S-1-5-32-544": "FullControl",
            "S-1-5-32-545": "ReadAndExecute, Synchronize"
          },
          "Size": 19,
          "ResultType": "FILE"
        },
        "CompareRunId": "2021-10-14T16:44:27.3260573-07:00",
        "Identity": "C:\\Test\\Scan2\\TestAddText.txt",
        "ResultType": "FILE",
        "Rules": [
          {
            "Name": ""
          }
        ]
      },
      {
        "Analysis": "WARNING",
        "BaseRunId": "2021-10-14T16:40:08.6642182-07:00",
        "ChangeType": "CREATED",
        "Compare": {
          "ContentHash": "3ptaDfkOhjUOM6QE2HoSCAasWmp9TR77AZVXRHniF8tWDXj1YT0rrjcxQAQmpOnxh31uVxfk0hqPyBbPWddeyA==",
          "Created": "2021-10-14T23:40:20.957942Z",
          "Group": "S-1-12-1-1613650695-1152925323-3004084401-3676713700",
          "Identity": "C:\\Test\\Scan2\\TestAddExe.exe",
          "IsExecutable": true,
          "LastModified": "2021-10-13T03:05:24.3286411Z",
          "Owner": "S-1-12-1-1613650695-1152925323-3004084401-3676713700",
          "Path": "C:\\Test\\Scan2\\TestAddExe.exe",
          "Permissions": {
            "S-1-5-11": "Modify, Synchronize",
            "S-1-5-18": "FullControl",
            "S-1-5-32-544": "FullControl",
            "S-1-5-32-545": "ReadAndExecute, Synchronize"
          },
          "Size": 726896,
          "ResultType": "FILE"
        },
        "CompareRunId": "2021-10-14T16:44:27.3260573-07:00",
        "Identity": "C:\\Test\\Scan2\\TestAddExe.exe",
        "ResultType": "FILE",
        "Rules": [
          {
            "ChangeTypes": [
              "CREATED",
              "MODIFIED"
            ],
            "Flag": "WARNING",
            "Platforms": [
              "WINDOWS"
            ],
            "ResultType": "FILE",
            "Description": "Flag when executables are created without DEP.",
            "Name": "Missing DEP"
          },
          {
            "ChangeTypes": [
              "CREATED",
              "MODIFIED"
            ],
            "Flag": "WARNING",
            "Platforms": [
              "WINDOWS"
            ],
            "ResultType": "FILE",
            "Description": "Flag when executables are created without ASLR.",
            "Name": "Missing ASLR"
          },
          {
            "ChangeTypes": [
              "CREATED",
              "MODIFIED"
            ],
            "Flag": "WARNING",
            "Platforms": [
              "LINUX",
              "MACOS",
              "WINDOWS"
            ],
            "ResultType": "FILE",
            "Description": "Flag when unsigned/incorrectly signed binaries are added.",
            "Name": "Unsigned binaries"
          }
        ]
      }
    ],
    "FILE_MODIFIED": [
      {
        "Analysis": "WARNING",
        "Base": {
          "ContentHash": "7QGAoQeCLD64FeGxlSoeW5eHcACmyBrT1HIv+YOGVi2Of6c88DR6+Uk1O2zemHCGXAeJrtc+COi8yqHrnpX8Zg==",
          "Created": "2021-10-14T23:36:58.0340629Z",
          "Group": "S-1-12-1-1613650695-1152925323-3004084401-3676713700",
          "Identity": "C:\\Test\\Scan2\\TestModifyExe.exe",
          "IsExecutable": true,
          "LastModified": "2021-10-13T03:05:24.3286411Z",
          "Owner": "S-1-12-1-1613650695-1152925323-3004084401-3676713700",
          "Path": "C:\\Test\\Scan2\\TestModifyExe.exe",
          "Permissions": {
            "S-1-5-11": "Modify, Synchronize",
            "S-1-5-18": "FullControl",
            "S-1-5-32-544": "FullControl",
            "S-1-5-32-545": "ReadAndExecute, Synchronize"
          },
          "Size": 726896,
          "ResultType": "FILE"
        },
        "BaseRunId": "2021-10-14T16:40:08.6642182-07:00",
        "ChangeType": "MODIFIED",
        "Compare": {
          "ContentHash": "Qpr6h4sgWi9HvNaKn1kWmznUifwU+8Uw6RjczVpkzx/LlGSyJgEhQ9pkMe6sX3wo9gwLmZicOIelU2b9NncLiw==",
          "Created": "2021-10-14T23:36:58.0340629Z",
          "Group": "S-1-12-1-1613650695-1152925323-3004084401-3676713700",
          "Identity": "C:\\Test\\Scan2\\TestModifyExe.exe",
          "IsExecutable": true,
          "LastModified": "2021-10-14T23:41:11.6798321Z",
          "Owner": "S-1-12-1-1613650695-1152925323-3004084401-3676713700",
          "Path": "C:\\Test\\Scan2\\TestModifyExe.exe",
          "Permissions": {
            "S-1-5-11": "Modify, Synchronize",
            "S-1-5-18": "FullControl",
            "S-1-5-32-544": "FullControl",
            "S-1-5-32-545": "ReadAndExecute, Synchronize"
          },
          "SignatureStatus": {},
          "Size": 343480,
          "ResultType": "FILE"
        },
        "CompareRunId": "2021-10-14T16:44:27.3260573-07:00",
        "Diffs": [
          {
            "After": "Qpr6h4sgWi9HvNaKn1kWmznUifwU+8Uw6RjczVpkzx/LlGSyJgEhQ9pkMe6sX3wo9gwLmZicOIelU2b9NncLiw==",
            "Before": "7QGAoQeCLD64FeGxlSoeW5eHcACmyBrT1HIv+YOGVi2Of6c88DR6+Uk1O2zemHCGXAeJrtc+COi8yqHrnpX8Zg==",
            "Field": "ContentHash"
          },
          {
            "After": "2021-10-14T23:41:11.6798321Z",
            "Before": "2021-10-13T03:05:24.3286411Z",
            "Field": "LastModified"
          },
          {
            "After": {},
            "Field": "SignatureStatus"
          },
          {
            "After": 343480,
            "Before": 726896,
            "Field": "Size"
          }
        ],
        "Identity": "C:\\Test\\Scan2\\TestModifyExe.exe",
        "ResultType": "FILE",
        "Rules": [
          {
            "ChangeTypes": [
              "CREATED",
              "MODIFIED"
            ],
            "Flag": "WARNING",
            "Platforms": [
              "LINUX",
              "MACOS",
              "WINDOWS"
            ],
            "ResultType": "FILE",
            "Description": "Flag when unsigned/incorrectly signed binaries are added.",
            "Name": "Unsigned binaries"
          },
          {
            "ChangeTypes": [
              "CREATED",
              "MODIFIED"
            ],
            "Flag": "WARNING",
            "Platforms": [
              "WINDOWS"
            ],
            "ResultType": "FILE",
            "Description": "Flag when executables are created without DEP.",
            "Name": "Missing DEP"
          },
          {
            "ChangeTypes": [
              "CREATED",
              "MODIFIED"
            ],
            "Flag": "WARNING",
            "Platforms": [
              "WINDOWS"
            ],
            "ResultType": "FILE",
            "Description": "Flag when executables are created without ASLR.",
            "Name": "Missing ASLR"
          }
        ]
      }
    ]
  },
  "metadata": {
    "compare-version": "2.4.9-alpha+18768e7dac",
    "compare-os": "WINDOWS",
    "compare-osversion": "Microsoft Windows NT 10.0.19043.0",
    "analyses-hash": "yXvUiHy+rkKstAubfKrepSYhf7tGW6Fmpq72cvzjHu/IFkPu1P6FEstdy15fnGvxhAyIcIzdWFTILRTZ6wy0yA=="
  }
}

@gfs update: I have updated above Sarif, please review. 3. everything should be in artifacts node, and if it break/match a rule, it will have addition data in the results node saying which rule it breaks. if it break more than 1 rule, there will be more than 1 result node,

Okayu I think this looks fine.

in the example the exe breaks both Unsigned and missing DEP. Sarif does not support result node without matching any rule, so in the example the txt file does not break any rule, so we can only find it in the artifacts node.

That is okay.

the result->message I current write as "{rule name}: identity (changetype)", this can be anything you like, let me know.

Seems okay for now.

the Identity field of CompareResult class in AttackSurfaceAnalyzer, is it always a valid uri path?

No.  It is a unique identifier in the context of that type of object on that system.  So for a File it is a URI, for a Registry Key is a registry path, for a Port it is the port number and protocol.  Many collected objects will not have a standard URI associated with them.  For FileSystemObject we use the Path property as the Identity https://github.com/microsoft/AttackSurfaceAnalyzer/blob/18768e7dac51e5f4c151d2186421f03ddcbf904e/Lib/Objects/FileSystemObject.cs#L50-L56

PR: #622 9. want to add some unit test for the method I added, which file should I put it, should I put in AsaAnalyzerTests.cs ?

Please just make a new test class.

This is merged.


implement TryFrom for original struct

I think that would be nice generate TryFrom implementation:
#[derive(Debug)]
#[optfield(OptionsOpt/*, try_from */)]
struct Options {
    binary: String,
    storage: String,
}

// Generated implementation
impl TryFrom<OptionsOpt> for Options {
    // Missing field
    type Error = &'static str;

    fn try_from(mut value: OptionsOpt) -> Result<Self, Self::Error> {
        let Some(binary) = value.binary.take() else {
            return Err("binary");
        };

        let Some(storage) = value.storage.take() else {
            return Err("storage");
        };

        Ok(Self {
            binary,
            storage
        })
    }
}

#[cfg(test)]
#[test]
fn testt() {
    let optionsopt = OptionsOpt {
        binary: Some("binary".into()),
        storage: Some("storage".into()),
    };
    let options: Options = optionsopt.try_into().expect("All fields exist");

    let optionsopt = OptionsOpt {
        binary: Some("binary".into()),
        storage: None,
    };
    let tried_options: Result<Options, _> = optionsopt.try_into();
    assert_eq!(tried_options.expect_err("Should be missing"), "storage");

    let optionsopt = OptionsOpt {
        binary: None,
        storage: Some("storage".into()),
    };
    let tried_options: Result<Options, _> = optionsopt.try_into();
    assert_eq!(tried_options.expect_err("Should be missing"), "binary");
}

Thank you for the suggestion.
As optfield already has a from argument that generates impl From<Struct> for Opt I would rather name it try_into to keep the implementation direction from Struct to Opt (i.e. impl TryInto<Struct> for Opt instead of impl TryFrom<Opt> for Struct).
I won't have the time to implement this in the near future, but feel free to open a PR.

Maybe an alternative impl can be done like this:
impl From<Opt> for Option<Struct>


#0: Added tracy profiler tech report and examples

Reading through the different sections, it needs a bit of orientation at the beginning, like the title should be "Tracy for Developers" or "Tracy integration flow"
It'll be good to have an adjacent tech report for how to deploy/use it as end user. I know Mo has it in the the doc repo, but important to have them adjacent.

Made all the requested changes. Feel free to add onto this/change how you see fit. Else I can commit it in. @mo-tenstorrent definitely need your expertise on the more fine-grained details (eg cycle collection, post-processing etc) so feel free to add that to the document as I'm not too familiar with it.

still a little confused at what you mean by unused headers :)


Add usage of ss to check Docker Engine listening port when netstat is not available

Hello,
This PR add the usage of the ss tool to check the Docker Engine listening port when netstat is unavailable. The package net-tools including netstat is deprecated and no longer installed by default in some distributions like CentOS 7 and Debian 9.

LGTM


Add warning message to dapr-client builds

Description
This PR introduces a prebuild script to generate a src/version.ts file with package name and package version.
The package name is then used in DaprClient to check if dapr-client is being used, and it shows a warning if true.
Also fixes build workflows to use npm run build instead of directly calling scripts/build.sh.
Issue reference
Please reference the issue this PR will close: #260
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[X] Code compiles correctly
[ ] Created/updated tests
[ ] Extended the documentation

Should src/version.ts be committed as it is being auto generated?

Thought about the same but it's needed by our build systems that do not run a npm run build. One option is to explicitly run it. What do you think?

Should src/version.ts be committed as it is being auto generated?

This has been checked-out of version control and workflows are updated.
Only caveat, when users clone the repo for the first time, VS code will complain for the error until they run an npm run build.


CSFA 2024/ 2025 -Program Year-  Cap for for our Fed Grants.

@hugh / @Josh to start?

[ ] What are the required changes from the Feds?

[ ] What is the impact of updating this policy.? - Business Policy Review (Hugh)

[ ] What are the Camunda changes requirements (Signori)

Rebecca Fontaine has the policy provide updates.

Closing this issue. It is replaced by placeholder ticker #2495 and placeholder Epic #2494

you probably meant to tag a different hugh :)


Some Questions regarding "change_methods" equivalent in near-api-js

Hi, I figured function call is NearApi::Action.call(...), but how exactly do you make one? When I try tracking it down, it seems like there's some problem with access key:
Particularly,
key = NearApi::Key.new
api.view_access_key(key)

=> {"jsonrpc"=>"2.0",
 "result"=>
  {"block_hash"=>"ARj9AriWfpfBWo5m7V6bob55Q57YUaE13SXhrkqXj3c",
   "block_height"=>86533146,
   "error"=>
    "access key ed25519:dKYi64UHPLfD4C7qUUWD3eWw1rv5GjLnTCzsNxo4W6Z does not exist while viewing",
   "logs"=>[]},
 "id"=>"dontcare"}

have an error.
That is, I assume the public key is the "Hash" from the Explorer, but am I correct about that? If not, how do I get the key?
And is there a login function to login with wallet for this?
Thanks in advance.

the function call is supposed to be signed with private key (keypair)


silx.gui.data: Make TextFormatter compatible with h5py>=3

First, this PR extends the  tools/create_h5_sample.py to create more text datasets to test with.
Then, it makes the TextFormatter work across h5py 2 and 3.
Finally it reverts changes made in PR #3240 about test_textformatter.py to test wht this PR provides.
It looks to work fine in silx view from what I tested with both h5py 2.10 and 3.
closes #3245

BTW, there is an issue with fixed length UTF-8 which does not get decoded, but it was already there before this PR.

Looks better than the first patch.
But you should still catch decoding exception. You can't expect utf-8.
If it fail you could call __formatSafeAscii.

Added call of __formatSafeAscii for UnicodeDecodeError.


[experiment] TC worker fix

Describe your changes
NOTE: does not resolve the issue.
Issue or discord link

Potential fix for #1936

Testing/validation

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

[ ] I have commented my code in hard-to understand areas.
[ ] I have made corresponding changes to README or wiki.
[ ] For front-end changes, I have updated the corresponding English translations.
[ ] I have run yarn run mini-ci locally to validate format and lint.
[ ] If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

This solution does not seem to work.


blacklist → exclude

In the same vein as #18102, we should avoid using “whitelist” and “blacklist” terms.
Yii doesn’t have any concepts or API docs that use those terms, so this PR only touches a couple things in the docs.

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
❌

Tests pass?
✔

@samdark good call, just noticed that PHPUnit is going with “exclude” as well - https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.3.md#930---2020-08-07


Prometheus regex substitutions have to be escaped

Describe the bug
After upgrading from 20.09 to 21.05, instances scraped with ec2_sd were having all their "instance" field to ":9100"
instead of the public host name like before.
To Reproduce
In your prometheus.yml:
    relabel_configs:
      - target_label: "__address__"
        source_labels: ["__meta_ec2_public_dns_name"]
        replacement: "$1:9100"
        action: replace

When you do a nixos-rebuild switch, you can see in /run/prometheus/prometheus-substituted.yaml:
    relabel_configs:
      - target_label: "__address__"
        source_labels: ["__meta_ec2_public_dns_name"]
        replacement: ":9100"
        action: replace

The $1 is missing
If you double the $ sign ($$1 instead of $1), the /prometheus-substituted.yaml is containing the
correct value ( replacement: "$1:9100"').
This seems to be related to the envsubst program called when the service is started.
I did not find any reference to this is the 21.05 change log. Maybe it should be added?
Expected behavior
The $1 should be present to make the public host name substitution correctly.
Notify maintainers
benley
fpletz
globin
willibutz
Frostman
Metadata

system: "x86_64-linux"
host os: Linux 5.10.37, NixOS, 21.05.650.eaba7870ffc (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.11
channels(root): "nixos-21.05.650.eaba7870ffc"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

This is caused by an oversight in https://github.com/NixOS/nixpkgs/pull/97933
Passing the entire config through envsubst "steals" all of prometheus' match group references, rendering configurations using them broken.
I believe a permanent solution is to only substitute specific, named strings.
Until that can be done, I believe this warrants a revert and a backport of said revert to 21.05, since this is a very fundamental feature in Prometheus, and I don't think we should be stealing syntax, as that would require teaching users special, ad-hoc syntax-requirements beyond what's mandated by nix syntax requirements. :slightly_smiling_face:
cc @WilliButz @pkern

Oh, that's unfortunate and clearly unintended. It looks like there's no way to limit substitution with envsubst either, e.g. limit it to ${} or specific variables. :(

Hmm, according to the envsubst man page, maybe SHELL_FORMAT can be used? https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html
It sounds like it limits the substitution to exactly the named variables.
(I don't think it's relevant for the fix, but note that we can't use the braced version either, since that's also permissible as prometheus match groups)

The user would of course have to avoid overlaps still, but opting into a list of these with a clear description sounds acceptable, and the default (empty list -> no variables substituted) would fix all current configurations.

@srhb I created an updated version of this in: https://github.com/NixOS/nixpkgs/pull/144984.


Apache Combined Log Format Not Working on RHEL 5/6

Hi -
I am getting following issue on RHEL 5 and 6.
Error (goacccess -f access_log):
GoAccess - version 0.9.7 - Dec 28 2015 16:48:22
Config file: /usr/local/etc/goaccess.conf
Fatal error has occurred
Error occured at: src/goaccess.c - main - 1062
Nothing valid to process.  Thanks

I see that you have X-FORWARDED-FOR which is still not supported. However, I'm working to implement this since it is part of issue #78.
If you just need to grab the %h part of it, then you can use:
%h %^[%d:%t %^] %D "%r" %s %b "%R" "%u"

Closing this. Parsing X-FORWARDED-FOR will be implemented in #78

Closing this. Parsing X-FORWARDED-FOR will be implemented in #78


Xcode 9 does not support building or migrating Swift 2.x targets.

xcode9 does not support
The target “HelloCordova” contains source code developed with Swift 2.x. Xcode 9 does not support building or migrating Swift 2.x targets.
Use Xcode 8.x to migrate the code to Swift 3.

+1

+1!!!!
I tried to migrate the code to Swift 3 with Xcode 8.3.3. Unsuccessfully...
Is this project still receiving support?

FYI, it's the cordova-hot-code-push-local-dev-addon that is in swift 2. We removed this plugin since we were not using it and everything works fine.

+1 @nordnet-release


Minor: tte_source.R should be renamed tte_sources.R for consistency with admiral

Hi! I can work on this. Would you also like tte_source_objects.Rd renamed to
tte_sources_objects.Rd also?

thanks @antivistic - no it's ok you can leave that one as admiral has it as tte_source_objects.Rd too - so just the R program name needs updating.
I couldn't find any other impact of this change, but tagging @bundfussr here in case he could think of any?

@rossfarrugia , I see no other impact as well.

I put in a pull request for the name change. I am pretty new to this so please let me know if anything else should be done. Thank you!

Thanks @antivistic .
Could you create a feature branch in admiralonco (not in your fork) as described in https://pharmaverse.github.io/admiraldev/devel/articles/git_usage.html#working-with-feature-branches? Then please create a PR merging the feature branch into devel (not main). Finally link this issue and the PR via the "Development" section on the right side.


Add Right Click Open New Connection on Console Tab.

Is your feature request related to a problem? Please describe.
Hello.  I have a long list of connections in my connections panel.  And often for a connection, I'll expand out the schema list and tables/procs.  Often times, I need to open a new console with the same connection as the existing console tab  that I am on.  So, what I do now, is go to my connection panel, and scroll down to the the connection, click the connection, and the right click to open new connection.  It's really time consuming, especially if you have the connection panel minimized, and/or you have many items expanded in your connection panel.
Describe the solution you'd like
What would be nice is to right click your current console tab.  And open new connection.  This will create a new tab having the same connection as the current console tab.
Describe alternatives you've considered
Currently, I have to scroll through my list of connections on the connection panel to find the right one.
Additional context
None.

@gtdegamo You can open another console for the same connection with menu buttons. While current console is in focus click SQL Editor -> Open SQL Console


Consider looking into PICT to reduce the number of combinations tested during PRs

PICT is a tool to allow pairwise combinatorial testing (http://www.pairwise.org/index.asp), meaning that, given some axis, it will find the smallest set of combinations that ensures that all pairs are tested.
I gave it a quick try with the cocoa repo and providing this input:
xcode_version: 8.0, 8.1, 8.2
target: osx, docs, ios-static, ios-dynamic, ios-swift, osx-swift, watchos, cocoapods, swiftlint, tvos, osx-encryption, osx-object-server, ios-device-objc, tvos-device
configuration: Debug, Release

it came up with this output:
xcode_version	target	configuration
8.2	ios-dynamic	Release
8.1	ios-device-objc	Debug
8.0	osx-swift	Release
8.2	tvos-device	Debug
8.1	tvos-device	Release
8.1	ios-static	Release
8.1	docs	Release
8.0	osx	Debug
8.1	cocoapods	Release
8.2	ios-device-objc	Release
8.2	osx-swift	Debug
8.2	osx-object-server	Debug
8.2	watchos	Debug
8.1	ios-swift	Release
8.0	cocoapods	Debug
8.1	tvos	Debug
8.2	ios-static	Debug
8.0	osx-encryption	Release
8.0	watchos	Release
8.0	ios-static	Debug
8.0	swiftlint	Debug
8.0	ios-swift	Debug
8.1	osx	Release
8.2	osx	Release
8.2	tvos	Release
8.1	swiftlint	Release
8.0	ios-dynamic	Debug
8.2	docs	Debug
8.1	watchos	Debug
8.0	tvos	Release
8.1	ios-dynamic	Debug
8.1	osx-encryption	Debug
8.0	osx-object-server	Release
8.2	swiftlint	Release
8.2	cocoapods	Release
8.2	ios-swift	Release
8.0	tvos-device	Release
8.1	osx-object-server	Debug
8.1	osx-swift	Debug
8.0	ios-device-objc	Debug
8.2	osx-encryption	Debug
8.0	docs	Debug

This is still slightly longer than the enabled configurations in the current matrix (41 vs 39), but the input file could be improved providing constraints that would allow to further improve the result.

@emanuelez moving to idea backlog, maybe you could move this entirely to realm/ci though if someone from the automation team will be doing this?


Redirect /p/* URLs to /posts/*

Posts URLs have changed but there is no redirection to keep the old ones working.
Example:

http://news.pragmaticentrepreneurs.com/p/SYL4NoKK5FXJhiuLy/cto-d-une-startup-en-creation-5-erreurs-a-eviter (Old URL that doesn't work any more)
-http://news.pragmaticentrepreneurs.com/posts/SYL4NoKK5FXJhiuLy/cto-d-une-startup-en-creation-5-erreurs-a-eviter (New URL)

The /p/ URL was just a temporary thing I tried out, I don't think it was ever released officially?

I deployed the i18n branch to get French translations, so it came probably from here


Feature/add channelwise op

Summary: Add support for hlslib ChannelWiseOperation activation that allow us to have standalone functions with one parameter per channel
Notes:

updated HLSLIB commit to last commit (we need the last one to update FMPadding_Batch)
most of this is Lucian's. I adapted it to ChannelWiseOperation (originally coded for old ThresholdsActivation)

@quetric @Tobi-Alonso have you had a chance to look at my comment above? checking since other PRs depend on this one. I don't mind merging this as-is either but I prefer to be a little more conservative when converting things to HLS.

It would be great to have continuous bit-width data types, instead of just power of 2.
To support fc bias I had to "clip" that data type

I opened an issue to track the arbitrary bitwidth INT DataType issue here:
https://github.com/Xilinx/finn/issues/179

The generated op test cases were failing because they were missing the paramDataType attribute. Please make sure the tests you added actually pass for the PR. I fixed this one myself to get faster progress on this PR since others depend on it.

Sorry about that, totally forgot that test was there. I was using test_convert_to_hls_channelwise_layer.py  to test this as it covers the whole flow.


[git] fatal: fsmonitor--daemon not supported on this platform

Describe the bug
❯ nix-shell -p gitFull
❯ git fsmonitor--daemon
fatal: fsmonitor--daemon not supported on this platform
❯ uname -a
Linux ghuntley-net 6.2.14 #1-NixOS SMP PREEMPT_DYNAMIC Sun Apr 30 23:29:23 UTC 2023 x86_64 GNU/Linux

Additional context
https://git-scm.com/docs/git-fsmonitor--daemon
Notify maintainers
cc @figsoda
Metadata
❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.2.14, NixOS, 23.11 (Tapir), 23.11pre-git`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos-22.11, unstable"`
 - nixpkgs: `/nix/store/8qsskshj1ar1kwshl8hda5ay8862cdx2-nixpkgs-src`

cc @primeos @wmertens @globin

I don't think it's been implemented for Linux yet which is a bit funny considering this linux-originated project has now more features on non-linux Platforms :D
There is another monitor though: https://github.com/jgavris/rs-git-fsmonitor from the first try I couldn't get it to work.


Regarding the compare beam feature

It would be really nice if it would sort the responses my total score. Even better if the model names could be injected into the response so you don't have to scroll up and down all the time. Is the prompt used for compare available in the app? So you can at least use the custom feature and use your own prompt for compare?

@asgeirtj good ideas. Closing this to transfer the idea to the master tracker #483


Replace Expansion Panel with FAB, New note from FAB overlay

What has been changed?

Expansion Panel replaced with extended FAB
Slide transitions enforced across dialogs
New note can be added from FAB overlay
Other styling and layout changes

How was it tested?
App running locally - FAB works as expected, note saved as expected to local state

@sudeshgutta

What has been changed?

Added Add User Dialog
Added QR Code generation for invite URL

How was it tested?
App running locally - Dialog works as expected, QR code generated correctly based on given URL


Implement bottom up flow creating collect workspace and converting IOU to Expense report

As part of https://github.com/Expensify/Expensify/issues/324914 and Basic Bottom up flow for Collect plan design doc, implement a following section of the doc:
https://docs.google.com/document/d/1pFEepu3ih7_NxPxudIXMa5KMF8POp4IM-ZIcANS8srY/edit#bookmark=id.303ggp6g7vfv
Will required Auth, Web and App PRs.

Auth https://github.com/Expensify/Auth/pull/9075
Web https://github.com/Expensify/Web-Expensify/pull/39470
App https://github.com/Expensify/App/pull/30582

Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~018902f39814caa07e
Upwork Job ID:<PHONE_NUMBER>161996800
Last Price Increase: 2023-11-01

Working on this one as we reevalate the priorities

Paid! Thanks @akinwale!
Payment Summary

@akinwale paid $500 via Upwork as Reviewer


ELK Layout Support

Problem
I would like to be able to use the Cytoscape ELK layout. In the Cytoscape layout blog post, they describe it as:

The elk layout contains several different layout algorithms. The layered and mrtree algorithms are traditional hierarchical layouts. For many trees, the results of elk probably will not differ much from dagre, and dagre has a smaller file size. The results of elk may differ from dagre to a greater degree for complex DAGs. Compare the results of both layouts and see which suits your dataset best.

Proposed Solution
I propose shipping the ELK extension with the bundle. I realize there may be a slippery slope type argument here, if you include one extension, what about the others? But since the Cytoscape extension ecosystem isn't that large, including a few of the most popular and officially supported ones might be a viable option.
Alternatively, you could support some way for others to repackage these extensions and for you to pick them up, but I imagine that might be more work.
Additional context

Hey @saulshanabrook, thank you for opening this issue.
It's always been the purpose to integrate more layouts to ipycytoscape :) so that's no problem at all!
Have you tried this locally? Does a
cytoscape.use(elk);

does the job here?
If you've tried this locally, please feel free to open a PR, I'll gladly review it, cheers!


update init container to init-config

fix the bug that pipelinerun not run created by a new user

/cherrypick release-3.4

/lgtm
/approve


Biofactory Plastic Crafting Buffering

Mod source
Factorio Mod Portal
Operating system

=Windows 10

What kind of issue is this?

[ ] Compatibility
[ ] Locale (names, descriptions, unknown keys)
[ ] Graphical
[ ] Crash
[ ] Progression
[ ] Balance
[ ] Pypostprocessing failure
[X] Other

What is the problem?
When making plastic in a biofactory, despite the building saying "output full", it continues to craft plastic until it reaches the item stack size.
Steps to reproduce

Build a biofactory
Assign it to make plastic
Feed the biofactory syngas and aromatics to craft plastic
Notice after some time that the building states "output full"
Also note that the building continues to craft, effective ignoring the "output full" state until the item stack size is reached

Additional context
Virtually all buildings in factorio after an output is full create a few more of the item, them stop crafting. For example, small parts will fill up to 15, even though the stack size is 200. The biofactory, at least when making plastic, seems to be an odd exception to this rule.
Log file
No response

This is not a bug. Recipes that only take fluid ingredients and produces an item will buffer items till they have a full stack.

Example of a vanilla Chemical Plant filling up to a full stack of sulfur.
The reason assembly machines in vanilla don't buffer a full stack of items is because inserters won't insert if the assembler has some buffered items. Pipes, however, are not so smart.

Keep learning, even after thousands of hours. Thanks for the clarification.


How to extract the time from the DateTimePicker?

Is there a way to extract the Time and use it separately from the DatetimePicker

Why don't you not use the datetimepicker on an input and then extract its value ?


NCG test regex

Over the years several respected developers have pointed out to me the improvement of using Non-Capture Groups in my regexs which are only used with RegExp#test. I noted that your regexs are not using NCG, and just thought I'd mention the small performance increase that they can give. You currently have.
NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
which would become
NUMERIC = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i;
I found that this gives about a 4% more efficient test (on V8 engines, FF gave me about 3%: at least on modern engines), small potatoes but it gets used often.
The whole expression could probably wrapped in an NCG too, but I haven't tried it.
Anyway, just thought I'd share the info with you. :)
I created a little jsperf but it doesn't seem to hold a history these days.

Fair point, Graham. If you make a PR, I'll pull it in.

I created a branch and made the change/s and was doing some tests on node 6 and 8, but the results were not as I had expected on my end. I actually witnessed almost no difference in application, though I had expected a little more noticeable difference. So, I wonder if it is worth the change tbh?
Original
 STARTING TESTS...

 Testing abs...

 487 of 487 tests passed in 14 ms

 Testing div...

 5027 of 5027 tests passed in 1437 ms

 Testing cmp, eq, gt, gte, lt, lte...

 23943 of 23943 tests passed in 168 ms

 Testing minus...

 3411 of 3411 tests passed in 114 ms

 Testing mod...

 1756 of 1756 tests passed in 239 ms

 Testing plus...

 3655 of 3655 tests passed in 94 ms

 Testing pow...

 1026 of 1026 tests passed in 452 ms

 Testing round...

 5033 of 5033 tests passed in 69 ms

 Testing sqrt...

 1235 of 1235 tests passed in 339 ms

 Testing times...

 4133 of 4133 tests passed in 305 ms

 Testing toExponential...

 395 of 395 tests passed in 9 ms

 Testing toFixed...

 941 of 941 tests passed in 16 ms

 Testing toPrecision...

 425 of 425 tests passed in 10 ms

 Testing toString...

 1012 of 1012 tests passed in 10 ms

 RESULTS: 52479 of 52479 tests passed in 3.566 secs.

NCG
 STARTING TESTS...

 Testing abs...

 487 of 487 tests passed in 14 ms

 Testing div...

 5027 of 5027 tests passed in 1425 ms

 Testing cmp, eq, gt, gte, lt, lte...

 23943 of 23943 tests passed in 164 ms

 Testing minus...

 3411 of 3411 tests passed in 121 ms

 Testing mod...

 1756 of 1756 tests passed in 236 ms

 Testing plus...

 3655 of 3655 tests passed in 89 ms

 Testing pow...

 1026 of 1026 tests passed in 445 ms

 Testing round...

 5033 of 5033 tests passed in 66 ms

 Testing sqrt...

 1235 of 1235 tests passed in 340 ms

 Testing times...

 4133 of 4133 tests passed in 313 ms

 Testing toExponential...

 395 of 395 tests passed in 13 ms

 Testing toFixed...

 941 of 941 tests passed in 20 ms

 Testing toPrecision...

 425 of 425 tests passed in 9 ms

 Testing toString...

 1012 of 1012 tests passed in 12 ms

 RESULTS: 52479 of 52479 tests passed in 3.562 secs.

Fully wrapped
 STARTING TESTS...

 Testing abs...

 487 of 487 tests passed in 14 ms

 Testing div...

 5027 of 5027 tests passed in 1406 ms

 Testing cmp, eq, gt, gte, lt, lte...

 23943 of 23943 tests passed in 167 ms

 Testing minus...

 3411 of 3411 tests passed in 119 ms

 Testing mod...

 1756 of 1756 tests passed in 242 ms

 Testing plus...

 3655 of 3655 tests passed in 90 ms

 Testing pow...

 1026 of 1026 tests passed in 445 ms

 Testing round...

 5033 of 5033 tests passed in 68 ms

 Testing sqrt...

 1235 of 1235 tests passed in 344 ms

 Testing times...

 4133 of 4133 tests passed in 309 ms

 Testing toExponential...

 395 of 395 tests passed in 8 ms

 Testing toFixed...

 941 of 941 tests passed in 17 ms

 Testing toPrecision...

 425 of 425 tests passed in 7 ms

 Testing toString...

 1012 of 1012 tests passed in 11 ms

 RESULTS: 52479 of 52479 tests passed in 3.548 secs.

Great job measuring first.  Might you be better off running some benchmarks where the code in question is on the hot path rather than the whole test suite?  I think you're right that if the overall performance difference is within the margin of error, it's not worth making this change, though I am an external fan of big.js so this is just one person's opinion.


What is the difference between the two deployment examples?

Full deployment examples
Nginx Ingress Controller
GCE Load Balancers

Which should I choose? What is the difference? I'd prefer not to flip a coin on this one.
Thanks!

Are you using GCE? Then you should use the GCE load balancers, unless you very much know you don't want these. If you're not on GCE, then the second one doesn't apply, and you chose the first one. :)

I think it would be useful to elaborate on this in the docs.


Add a section on the website where we link to all of our sister organizations in other countries

Increase legitimacy, good for SEO, could be useful for some users.
When done, share on #effectivefundraising and encourage the other orgs to do the same

Duplicate of #224 in effekt-admin repo


Man page references section that does not exist

Newsboat version (copy the output of newsboat -v or the first line of git show):
2.25.0
The man page for Newsboat tells you that you will learn about highlighting in the highlighting chapter.
There is no highlighting chapter.

Right ._. It's only in the HTML doc. I'll remove the references then.

Yeah, https://github.com/newsboat/newsboat/pull/1831#issuecomment-943595817. It could be done but then the manpage won't look like a manpage, so I don't think that'll work.


[SPARK-47580][SQL] SQL catalyst: Migrate logError with variables to structured logging framework

What changes were proposed in this pull request?
This PR proposes to migrate logError with variables of SQL catalyst module to structured logging framework.
Why are the changes needed?
To improve the existing logging system by migrating into structured logging.
Does this PR introduce any user-facing change?
No API changes, but the SQL catalyst logs will contain MDC(Mapped Diagnostic Context) from now.
How was this patch tested?
Run Scala auto formatting and style check. Also the existing CI should pass.
Was this patch authored or co-authored using generative AI tooling?
No.

Hi, @gengliangwang @pan3793 @panbingkun, this is my very first PR on log migration so I'm not sure if I'm doing it right. Could you please confirm when you find some time? Thanks in advance :-)

I'm not very sure if we should also address this case below as well:
https://github.com/apache/spark/blob/d487acd3008b6e8e9624295c833a6f87c1102ce9/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala#L1547-L1550

Let me just close this PR and SPARK-47580 since there is no items to be migrated for this part. cc @gengliangwang FYI


Fix options merge, ensure latter options override

As shown in this 3v4l example, using += does not have the desired result of overriding the matching keys in the left operand with those as the right operand. array_merge() will just append duplicate numeric keys as a new entry in the array; array_replace() as used here gives the desired behavior.

This commit previously addressed this issue: https://github.com/guzzle/guzzle/commit/12fe5b4a9eddb0a53efc2371aaf20cf0bdd0f427. The current behavior correctly favors an explicitly provided hash of options that are then combined with the options created for the request. Any option that was passed in by the user overrides any option that may have been built up when creating the cURL handle.


Deal with Makefile error reporting doing singular/plural case properly.

A Makefile error says either:
1 error was reported
or
36 errors were reported
(the first in lax mode). To catch both, the Makefile should grep for ""^[0-9]* error.* reported".

looks good, except why the changes to the ocaml-output ML files?

Yes, dunno why they changed; will revert the ocaml-output files.
But CoreCrypto failing here for some reason.

please go ahead and merge


Bug: Contibuting.md is not up to date

File Location/Types in Contributing.md doesn't match the current project structure will update that.

To Reproduce
1.Visit : This
There are no translations of the book present in the repo now will change it as per the current structure.
Expected behavior
Current structure explanation
Screenshots

Additional context
I Will work on it as part of Hacktoberfest 2021

@bobbyiliev can you assign me this if it is vallid.

Sounds good, maybe add valid links as an example and also keep the {LANG} in there in case that there are some translations in the future. Let me know what you think

@bobbyiliev sounds good will do that!


Fix mesh csgraph distances

mesh.csgraph had weights that were typically twice that of the distance between vertices, due to double counting the bidirectional edges between vertices on a face. This PR fixes that by turning off the double counting (i.e. setting directed=True in create_csgraph) and making link_edges similarly bidirectional when they count toward graph_edges. To avoid double counting, I also check that make sure that the naive bidirectional link_edges doesn't have duplicate edges when used to make the csgraph.

I'll look into the test results shortly...

Looks like it is just a change in Skeleton behavior... not clear which is better. It’s an interesting difference favoring short mesh hops

Codecov Report

Merging #30 into master will increase coverage by 0.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
+ Coverage   75.88%   75.93%   +0.05%
==========================================
  Files          11       11
  Lines        1704     1708       +4
==========================================
+ Hits         1293     1297       +4
  Misses        411      411

Impacted Files
Coverage Δ

meshparty/trimesh_io.py
74.58% <100%> (+0.24%)
: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 8579daa...70ed109. Read the comment docs.

A bit unclear about what changed since tests were written, but the existing branch points look totally right on inspection of the skeletonization and the current full_cell_with_ais.png output is slightly rotated relative to the file that was in there before. Tests pass now and the results look good to me.

I'm going to close this as a PR into master and re-open it as a PR into fcc_skel_quality, since the scope has changed a bit due to usage needs.


Numpy version

With the Numpy 2.0 release some features are not working correctly. Adapt requirements to numpy <=1.26.4

requirements file updated, merged to develop, PR #71


Duplicate ProviderIDs

/kind bug
What steps did you take and what happened:
When increasing replicas count of a machine set to bigger number (e.g. 0 -> 3), causing it to create many many machines within a short amount of time, we end up with multiple ProxmoxMachine instances that have all the same provider ID.
In this instance where we did scale from 0 -> 3, only one single proxmox vm got created and we had 3 ProxmoxMachine with different names but same provider id
What did you expect to happen:
Individual VMs get created
Anything else you would like to add:
Not yet sure where this bug is coming from (cluster-api, proxmox provider or even proxmox REST API)
Environment:

Cluster-api-provider-proxmox version: Latest Main
Proxmox VE version: 8.0.4

could you share yor proxmoxmachinetemplate to here ?

I am not sure the cause yet but I have fixed one potential cause. you can try this with spyduck/cluster-api-provider-proxmox:9e7ea64 image (pushed to docker.io)

Thanks for the hint, I'm not sure if it is related to that. Setting the VM ID once before the VM is being created does not seem to be a problem. It feels like that would be a viable approach as part of reconciliation. But the following reconciliation might not properly take that set VM id into consideration (but not sure how the internals work when a reconcilation fails, but partially updates were performed on that object, does the retrying reconciliation still operate on the old version of that document or the patched one?)
We are currently testing with a develop version that has ranged based vmid assignment (not using proxmox next id), but we have experienced this already before, but not yet re-tested with your latest change. We will see if we can re-test with that version

closing as this cannot be reproduced


replaced datetime function

File "flood.py", line 56, in
epoch = int(datetime.datetime.now().strftime("%s"))
ValueError: Invalid format string
Hi I used your script recently, but I ran onto an error in Windows. I tried it on mac and it worked perfectly fine.
Although the script works on Mac, on Windows the error above pops up. Using.strftime("%s") should be avoided because it is not supported and it is not portable.
You should add a note in the README: pip install windows-curses if a someone is going to run the script in Windows. Awesome script btw!

thanks man and sorry for the late merge. i don't usually realize my code's compatibility with other operating systems, so this is always appreciated.

thanks man and sorry for the late merge. i don't usually realize my code's compatibility with other operating systems, so this is always appreciated.


Fix custom Swift path on Windows

The extension fails to find Swift on Windows due to missing .exe suffix.

Ah it wasn't good. You need to use backticks. Did you not test this?

My bad:( I worked around locally and submitted the patch directly through GitHub website…


Razor (.cshtml) Minification Proof of Concept

I've created a proof of concept for using Gulp to minify .cshtml at compile time to .min.cshtml files. You can create a working project using my ASP.NET MVC Boilerplate project template and selecting the experimental feature below when creating the project:

I wrote the gulp-minify-cshtml NPM package which uses very basic regular expressions to remove razor comments and white space. This works but if I am to take this further (I would like to know if it's worth spending time on based on feedback), this is where I need help. The gulp-minify-cshtml package can be used like so to minify .cshtml files into .min.cshtml files:
gulp.task("build-html", ["clean-html"], function () {
    return gulp
        .src(paths.views + "**/*.cshtml")       // Start with the .cshtml Razor files and not .min.cshtml files.
        .pipe(minifyCshtml())                   // Minify the CSHTML.
        .pipe(rename(function (path) {          // Rename the files from .cshtml to .min.cshtml.
            path.extname = ".min.cshtml";
        }))
        .pipe(gulp.dest(paths.views));          // Saves the minified Razor views to the destination path.
});

This produces the .min.cshtml files below. It would be nice if the tooling could nest the minified files much like .min.css or .min.js files are nested below .css and .js files.

I then had to switch the razor view engine to look for .min.cshtml files instead of .cshtml files:
public class MinifiedRazorViewEngine : RazorViewEngine
{
    private const string MinifiedViewExtension = ".min.cshtml";

    private static readonly IEnumerable<string> _viewLocationFormats = new[]
    {
        "/Views/{1}/{0}" + MinifiedViewExtension,
        "/Views/Shared/{0}" + MinifiedViewExtension,
    };

    private static readonly IEnumerable<string> _areaViewLocationFormats = new[]
    {
        "/Areas/{2}/Views/{1}/{0}" + MinifiedViewExtension,
        "/Areas/{2}/Views/Shared/{0}" + MinifiedViewExtension,
        "/Views/Shared/{0}" + MinifiedViewExtension,
    };

    public MinifiedRazorViewEngine(
        IRazorPageFactory pageFactory,
        IRazorViewFactory viewFactory,
        IOptions<RazorViewEngineOptions> optionsAccessor,
        IViewLocationCache viewLocationCache)
        : base(pageFactory, viewFactory, optionsAccessor, viewLocationCache)
    {
    }

    public override IEnumerable<string> ViewLocationFormats
    {
        get { return _viewLocationFormats; }
    }

    public override IEnumerable<string> AreaViewLocationFormats
    {
        get { return _areaViewLocationFormats; }
    }
}

Finally, I register the above view engine to replace the default one:
services.AddTransient<IRazorViewEngine, MinifiedRazorViewEngine>();

So my question is, is this worth pursuing? Using Gulp for this seems to be the way to go to stay consistent with what we are doing for CSS and JavaScript files.

cc @DamianEdwards
PS: You can use ViewLocationExpanders (e.g. https://github.com/aspnet/Mvc/blob/dev/test/WebSites/RazorWebSite/Services/CustomPartialDirectoryViewLocationExpander.cs) instead of subclassing RazorViewEngine to override paths.

Using a view location expander will still cause it to look for .cshtml and then .min.cshtml right? Whats the performance impact of this, given the whole point of this exercise is performance.

You can determine what views get looked at and what order they get looked at. There shouldn't be any  performance impact using expanders.

I've now updated the ASP.NET MVC Boilerplate project template to use a ViewLocationExpander.

:clap:

Closing because we are not planning to implement this in Razor/MVC.


fix: Enhance TTS experience by filtering unnecessary characters (Fixed my PR)

In this PR, I am correcting an error from my previous pull request where I inadvertently created it from the wrong branch, which was rightfully rejected.
When using a TTS system, punctuation and in particular emojis can sometimes be read and repeated, which disrupts the flow of speech.
This PR addresses the issue by removing unnecessary characters, ensuring a smoother and more coherent TTS experience.
The filtering process retains essential letters, numbers, and punctuation while eliminating unwanted symbols and emojis.
Pull Request Checklist
Before submitting, make sure you've checked the following:

[x] Target branch: Please verify that the pull request targets the dev branch.
[x] Description: Provide a concise description of the changes made in this pull request.
[ ] Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
[ ] Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
[x] Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
[x] Testing: Have you written and run sufficient tests for validating the changes?
[x] Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
[x] Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:

BREAKING CHANGE: Significant changes that may affect compatibility
build: Changes that affect the build system or external dependencies
ci: Changes to our continuous integration processes or workflows
chore: Refactor, cleanup, or other non-functional code changes
docs: Documentation update or addition
feat: Introduces a new feature or enhancement to the codebase
fix: Bug fix or error correction
i18n: Internationalization or localization changes
perf: Performance improvement
refactor: Code restructuring for better maintainability, readability, or scalability
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
test: Adding missing tests or correcting existing tests
WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry
Description
I made the following changes in the ResponseMessage.svelte file:

Created a new variable named speakMessage that utilizes a regular expression (regex) to filter the content of the message for the TTS system. The regex is designed to remove unnecessary characters while preserving: Letters (including accented and foreign characters), Numbers and Essential punctuation marks
Applied the speakMessage variable insted of message.content in the toggleSpeakMessage function

Added

Nothing

Changed

New variable speakMessage now stores the filtered content of message.content
speakMessage now is used instead of message.content in the toggleSpeakMessage functon when calling the tts.

Deprecated

Nothing

Removed

Nothing

Fixed

TTS system now does not speak emojis or some special characters

Security

Nothing

Breaking Changes

BREAKING CHANGE: Nothing

I appreciate the effort but I don't see the need for this additional filtering. Thanks!

Not a problem it was just a small thing, thanks for reviewing this PR!

@Simi5599 for better tts performance. I just build a new model with system prompt which make the output suitable for tts.

Hi! Thank you for taking the time to review my old PR!
The suggestion regarding numbered lists is a fantastic idea.
However, regarding the emoji functionality, I would prefer that only the TTS system disregards that part.
As a solution, I forked the project and implemented the simple regex and other small things for other part of the project.
In the future, I plan to use Azure AI Voice or other more advanced TTS systems.

Hi! Thank you for taking the time to review my old PR!
The suggestion regarding numbered lists is a fantastic idea.
However, regarding the emoji functionality, I would prefer that only the TTS system disregards that part.
As a solution, I forked the project and implemented the simple regex.
In the future, I plan to use Azure AI Voice or other more advanced TTS systems.
I don't think that the filter idea will fit because the TTS system will be enabled after receiving the message (but correct me if i am wrong)

You are right. The numbered lists prompt only solve few problems.
Let TTS system take care the issue sounds a better idea.
Maybe I can search the keyword TTS System takes care markdown and emoji.
I don't think that the filter idea will fit because the TTS system will be enabled after receiving the message. To verify this, I have to look into the source code.


Add get and list OpenAPI endpoints for underlays and entities.

Some initial standard REST endpoints for underlays and entities.
Will add more "get me the udnerlay metadata" endpoints for entity filters in another PR.

cc @freemabd @arychj


Upstream repo is abandoned

Pull Requests are not reviewed or merged.
Issues are not addressed.

Since this repo doesn't receive lot of merged as mrparkers doesn't use keycloak anymore
https://github.com/mrparkers/terraform-provider-keycloak/pull/937#issuecomment-2179087456

I guess this will eventually become a problem when e.g. KeyCloak makes some API change or the terraform bridge requires a more recent version of the terrafrom sdk, etc.

Thank you for alerting us with this update, @phil9909. We will need to discuss internally what direction to take.

It looks like keycloak has adopted the provider. Releases are going out again.


Missing system library?

Hello,
I'm working on trying python for the first time with Alexa utilizing AWS Lambda.  I'm not using Zappa for deployment, but another method of simply bundling up a zip file and rocking it out.  While this would normally work fine, once I add the flask and flask_ask dependencies, I can no longer run my function.
Unable to import module 'handler': libffi-72499c49.so.6.0.4: cannot open shared object file: No such file or directory

Being that libffi is required, how do you guys work around this?  Does Zappa do something special with this I'm unaware of?  From what I can tell, one is not able to modify the system that runs the actual function.  Which makes me ponder I'm doing something horribly wrong here.  My function is a copy and paste from the README.

Yes - zappa depends on lambda-packages which includes libffi
https://github.com/Miserlou/lambda-packages/tree/master/lambda_packages
At any rate, you likely won't be able to use Flask-Ask without zappa on Lambda because Flask-Ask depends on Flask which depends on WSGI. Lambda doesn't do WSGI without zappa.

Excellent info.  Thanks for the clarification.  Have a good one.


Antenna update only

Issue

Link: https://github.com/NebraLtd/maker-starter-app/issues/117
Summary: PR for updating only antenna

How

Screenshots

References

Checklist

[ ] Tests added
[ ] Cleaned up commit history (rebase!)
[ ] Documentation added
[ ] Thought about variable and method names

Do I understand correctly that following these changes, users can either:

update location and antenna
update antenna only

But there is no option to update location only?

Yes. Updating  "location and antenna" and  "location only" will come with the same cost.


Convert redundant blanks in dates automatically

I want to answer this question using arrow: http://stackoverflow.com/questions/466345/converting-string-into-datetime.  With the first date, and an apparently suitable format I get,
>>> arrow.get('Jun 1 2005  1:33PM', 'MMM D YYYY H:mmA')
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "C:\Python34\lib\site-packages\arrow\api.py", line 23, in get
    return _factory.get(*args, **kwargs)
  File "C:\Python34\lib\site-packages\arrow\factory.py", line 198, in get
    dt = parser.DateTimeParser(locale).parse(args[0], args[1])
  File "C:\Python34\lib\site-packages\arrow\parser.py", line 159, in parse
    raise ParserError('Failed to match \'{0}\' when parsing \'{1}\''.format(final_fmt_pattern, string))
arrow.parser.ParserError: Failed to match '(?P<MMM>(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)) (?P<D>\d{1,2}) (?P<YYYY>\d{4}) (?P<H>\d{1,2}):(?P<mm>\d{2})(?P<A>(am|pm|PM|AM))' when parsing 'Jun 1 2005  1:33PM'

There are two blanks between 2005 and 1:33. If I remove the redundant blank I get,
>>> arrow.get('Jun 1 2005 1:33PM', 'MMM D YYYY H:mmA')
<Arrow [2005-06-01T13:33:00+00:00]>

Am I missing a way of dealing with this circumstance or would you think it reasonable to consider altering the regex in get to allow redundant blanks?

There is a way to deal with this now that special characters can be escaped in the format string.
arrow.get('Jun 1 2005    1:33PM', 'MMM D YYYY[\s+]H:mmA')
<Arrow [2005-06-01T13:33:00+00:00]>

However that only only works if you know where the extra spaces will be. Do we want to do this automatically?

We can maybe add a flag to the get() method like normalize_spaces that would allow us to normalize all the spacing to a single one. E.g. we could turn   Jun    1        2005    1:33PM into Jun 1 2005 1:33PM. Is this what you'd like to be seen done automatically?

Yeah I think a flag could be a good option, I'm not really in favour of doing lots of hidden preprocessing based on what we think the user needs here.

Can we work on this?


using calloc for e->client_streams instead of malloc and memset

calloc not only allocates the memory that is going to be used, but also fills it with zeroes.

Thanks for the contribution!
There are multiple places used this fashion of memory allocating (malloc + memset). They should be reviewed and changed at one patch.
As this is not a high priority change, it may take a while to be merged.

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


Initial prototype of using mermaid to make an interactive simulator

This prototype generates mermaid from an svg and puts it in an html page.
interactivity not yet supported

Very cool! Is the mermaid file currently handwritten?

sorry, I said it was but I lied, that part's still WIP

sorry, I said it was generated but I lied, that part's still WIP

No worries. Just wanted to make sure I didn't miss something.

Check out LightSm.html for an example of an interactive mermaid diagram

Check out LightSm.html for an example of an interactive mermaid diagram. I think it's going to be fairly simple to generate, will work on that next.

It might be useful to use the Visitor Pattern while generating the mermaid diagram text. Here's an example of the visitor pattern in state smith: https://github.com/StateSmith/StateSmith-examples/tree/main/visitor-graph-1

Updated to include codegen.
dotnet-script LightSm.csx will generate LightSm.js and LightSm.html.


PacReq: GNU Icecat

Types
-deb (Debian achieve release of the package)
URL
https://icecatbrowser.org/index.html (Homepage)
https://icecatbrowser.org/all_downloads.html (Download Links)
Building guide
Nah, I know what to do
Additional context
GNU Icecat itself are GNU version of Firefox which uses ESR branch instead main release branch.

For this additions, I'll called as icecat-browser-deb

#6506 are still on queue anyway.


The first line of space in the code block is not displayed

When the content is:
    1
2       3

The code block rendered as:

1
2      3

Finally it shows:
1
2       3

https://spec.commonmark.org/dingus/?text=    1
2       3

```
    1
2       3
```
https://markdown-it.github.io/#md3={"source"%3A"    1\n2       3\n\n```\n    1\n2       3\n```"%2C"defaults"%3A{"html"%3Afalse%2C"xhtmlOut"%3Afalse%2C"breaks"%3Afalse%2C"langPrefix"%3A"language-"%2C"linkify"%3Atrue%2C"typographer"%3Atrue%2C"_highlight"%3Atrue%2C"_strict"%3Afalse%2C"_view"%3A"html"}}

Result is exacly as in reference parser. I'm not sure your question is related to this package.


updating Readme with a note on dockerizing

It is to prevent people to use it incase they want to. Didn't wanna commit to main directly.


WIP: BitLength push down

What problem does this PR solve?
Issue Number: close #5105, ref #5092
Problem Summary:
What is changed and how it works?
add BitLength string function push down
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

Maybe you can ref to other UT to use FunctionUT Framework which is easy to use.

Maybe you can ref to other UT to use FunctionUT Framework which is easy to use.

I get it, I'll update it in a few days, and I've been busy writing my thesis recently.


Type infer issue in interfaces with internal properties

Bug Report
🕗 Version & Regression Information
4.1.3 & 4.2.0-dev the same
⏯ Playground Link
https://www.typescriptlang.org/play?ts=4.2.0-beta#code/JYOwLgpgTgZghgYwgAgEJwM4oN4ChkHKgbAAmEAXMnobcgG5UgCuAtgEbQDc+hAvrgG5QkWIhQANZBAAekEKQxpMOXgWJlK1NXUbIAjDoG04TNpyg9aMgPxmO3QbmHho8JMgCa0uRAVL0LG1aDXIqGjoCPQAmIx1TZBYHSx0ATztE80chETdxZAAtH3lFZSCI9RASMODIhioAZjjaAC8MpIseIQQAeyqwBmj7C2QAXmRongAbCAH6fSp9AB9J52AYZAAKemix0fHogEoGfTGJrmkpoPmz-R5cXv6GOCnmLSklrzOKoirNcJ0tD08yMABp4osAAyCe6PDA9GYAOimPQA5tsXm9DjwgA
💻 Code

interface Base {
    inside: {
        v: number;
    }
}

interface X extends Base {
    inside: {
        v: 1
    }
    a: number;
    x?: number;
}

interface Y extends Base {
    inside: {
        v: 2
    }
    a: number;
    y?: number;
}

interface Z extends Base {
    inside: {
        v: 3
    }
    z?: number;
}

const v2: number = 2;
let v1: 1|2;

if (v2 === 2) v1 = 2; else v1 = 1;

const value: X | Y = {
    inside: {
        v: v1
    },
    a: 10
};

console.log(value);

🙁 Actual behavior
Type '{ inside: { v: 1 | 2; }; a: number; }' is not assignable to type 'X | Y'.
Type '{ inside: { v: 1 | 2; }; a: number; }' is not assignable to type 'Y'.
Types of property 'inside' are incompatible.
Type '{ v: 1 | 2; }' is not assignable to type '{ v: 2; }'.(2322)
🙂 Expected behavior
No error ^^

@rbuckton I would have expected our union-combinatorial thing to kick in here, maybe I missed something?

Any news about this bug?

I believe this is the same issue, just with slightly less code:
interface A { a: string; }
interface B { b: string; }
interface AWrap { test: A; }
interface BWrap { test: B; }

declare let p: A | B;
const pw: AWrap | BWrap = { test: p };
//    ~~
// Type '{ test: A | B; }' is not assignable to type 'AWrap | BWrap'.
//   Type '{ test: A | B; }' is not assignable to type 'BWrap'.
//     Types of property 'test' are incompatible.
//       Type 'A | B' is not assignable to type 'B'.
//         Property 'b' is missing in type 'A' but required in type 'B'. (2322)

(Playground link)
Unless I'm missing something, that assignment should be safe. cc @ludazhao
This is the only workaround that I came up with, it definitely looks a bit strange!
function isA(x: A | B): x is A {
  return 'a' in x;
}

const pw : AWrap | BWrap = isA(p) ? { test: p } : { test: p };  // no error

@RyanCavanaugh any chance to fix? :)

I don't believe we consider inside to be a discriminant property since it is not itself a literal type. The union-combinatorial assignability mechanism depends on the constituents being discriminable.


Should MQTT be an strict requirement of HyperStream?

It is not clear to me what is the role of MQTT in a general framework as HyperStream.
I understand that the original reason is because of our internal use in an Internet of Thinks environment where communication is driven by MQTT, but this requirement may be a barrier for the general user.
Would you think it should be activated optionally or change it to a plugin?
If it is really a required part of HyperStream, we should advertise it in this context then.

Hi,
MQTT should be an optional feature I would say (configurable but not
required). Just another logging method in a pile of possible methods.
It is possibly something that in a different environment I would recommend
configuring via syslog/syslog-ng rather than directly in hyperstream at
all.
To do that meaningfully/safely we'd need to have a good grasp of the
various sorts of information that HyperStream might log.
On 22 February 2018 at 11:02, Miquel Perelló Nieto<EMAIL_ADDRESS>
wrote:

It is not clear to me what is the role of MQTT in a general framework as
HyperStream.
I understand that the original reason is because of our internal use in an
Internet of Thinks environment where communication is driven by MQTT, but
this requirement may be a barrier for the general user.
Would you think it should be activated optionally or change it to a plugin?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/IRC-SPHERE/HyperStream/issues/31, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEwgBFegjILh6yZp4cS_hLb8uZ9Td0Ueks5tXUlTgaJpZM4SPHq5
.

Yes agreed - was driven by our requirements. Not sure it’s that easy to pull it out into a plugin though - I did think about doing this at one point. If you succeed I’m all for it.
On 22 February 2018 at 11:39:32, Emma Tonkin (notifications<EMAIL_ADDRESS>wrote:
Hi,
MQTT should be an optional feature I would say (configurable but not
required). Just another logging method in a pile of possible methods.
It is possibly something that in a different environment I would recommend
configuring via syslog/syslog-ng rather than directly in hyperstream at
all.
To do that meaningfully/safely we'd need to have a good grasp of the
various sorts of information that HyperStream might log.
On 22 February 2018 at 11:02, Miquel Perelló Nieto<EMAIL_ADDRESS>
wrote:

It is not clear to me what is the role of MQTT in a general framework as
HyperStream.
I understand that the original reason is because of our internal use in an
Internet of Thinks environment where communication is driven by MQTT, but
this requirement may be a barrier for the general user.
Would you think it should be activated optionally or change it to a plugin?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/IRC-SPHERE/HyperStream/issues/31, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEwgBFegjILh6yZp4cS_hLb8uZ9Td0Ueks5tXUlTgaJpZM4SPHq5
.

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/IRC-SPHERE/HyperStream/issues/31#issuecomment-367654792, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABDyIJ0pkLVMO-woamF0J19dZp4R2SHXks5tXVHtgaJpZM4SPHq5.