V ghajam/rest samples refactor

~# Will be merged into 'main' **after** #14~
~### Diffing now to latest #14~
#14 was merged and now diffing into main
PR Classification
This pull request refactors REST code samples code by updating comments and introducing minor changes
PR Summary

Updating old/inaccurate comments.
Updating .gitignore to ignore python temp cache and virtual environment files.
Pretty printing response.headers.
Using print(json.dumps(response.json(), indent=4)) instead of the buggy pprint(response.json()).
Removing the need for urllib.parse.
Adding timeouts to request.(get|post).

@kerolloz  Thanks for the wonderful suggestions. I'll add a Linter action and a Tester action on a later PR.


[HOTFIX] Add MQTT resolver to oldDeps to fix MiMa flakiness

This patch adds a missing resolver for an old MQTT client JAR in order to address a MiMa flakiness issue on Jenkins.

Test build #53136 has started for PR 11706 at commit b2fca14.

I guess this is no longer needed given https://github.com/apache/spark/pull/11672 ?

Test build #53136 has finished for PR 11706 at commit b2fca14.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/53136/
Test PASSed.


Add tensorflow as supported runtime of onnx ootb

Description

Closes #1292
How Has This Been Tested?

Deploy the updated ootb templates
Check that you can select tensorflow as supported runtime

Test Impact

Not added testing, we might include this into the model serving testing too
Request review criteria:

[x] The commits have meaningful messages (squashes happen on merge by the bot).
[ ] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work
[x] The developer has added tests or explained why testing cannot be added (unit tests & storybook for related changes)

/lgtm

/lgtm

@andrewballantyne I think it can be approved, there's two lgtms already

@andrewballantyne I think it can be approved, there's two lgtms already

Please don't wait on me for this. You guys work it out among yourselves, that's why the process exists. If you're all confident in a change, just manually add the label.


Access Site or Page params from within content files / shortcodes

Hi,
I want to output self-defined Site or Page params from within a Markdown content file. Is there a shortcode (or another way) for this purpose?
Something like {{< printvar myvar >}}
Thanks.

You have access to the page from the shortcode:
.Page.Params.myVar

Questions gets fastest attention at http://discuss.gohugo.io/

I want to specify the variable/param name in the content file. So the "myVar"-part in your shortcode example should be somehow "dynamic".

Found a solution.
{{ $v := $.Get 0 }}
{{ index .Page.Params $v}}


Fixes module scraping producing invalid code

Fixes module scraping producing invalid code by doing repr on container contents
Updates tests to store scraped outputs.

This also fixes the from datetime import date issue in #3046

👍


Contact PDXNet to fix incorrect information on their website

Description
As a developer, I want to ensure that.PDX Finder is accurately referenced in other resources.
Contact PDXNet to fix incorrect info on their website:
The link is to dev not prod website.

Acceptance criteria:

[x] PDXNet contacted about the error
[ ] Correction confirmed by a member of PDX Finder team on https://www.pdxnetwork.org/supplemental-projects

No response so far. Moving to the next Sprint.

No response so far. Moving to the next Sprint.

Steve contacted the portal. Waiting for a confirmation of the changes made.

Steve contacted the portal. Waiting for a confirmation of the changes made.

No response so far. Moving to the next Sprint.

No response so far. Moving to the next Sprint.

check with Steve on Thursday 11 February.

No response from PDXNet so far, Steve will chase up.

PDXNet will update when the change has been implemented

The current fix displays the names of providers.
Once we have API this can be changed to the source fields.
Closing


[ds-annotation] provide an @ComponentProperty annotation

Currently one needs to define component properties in the following way:
@Component(immediate = true, property = {
 "my.property=hello",
 "another.property:Integer=1"
})
public class MyService {

}

while this works, it is very inconvenient and can't be inherited in a meta-annotation.
I think it would be therefore good to have a @ComponentProperty annotation where one can define name,value and type as individuall items:
@ComponentProperty(name="my.property", value="hello")
@ComponentProperty(name="another.property", value="1", type=Integer.class)
public class MyService {

}

As only a limited set of properties are actually supported, one even could think about having one annotation for each supported type:
@StringComponentProperty(name="my.property", value="hello")
@IntegerComponentProperty(name="another.property", value=1)
public class MyService {

}

this would be similar (but more felxible as the existing) @ServiceRanking, @ServiceVendor, @ServiceDescription  ...

Currently one needs to define component properties in the following way:

Not true.
It is better and more type-safe to define and use a component property type which already serves the purpose of defining properties for a component.
So I don't see it is a good idea to define more annotations to define component properties when those annotations cannot not also be used to access the component properties in a type-safe way.

this would be similar (but more felxible as the existing) @ServiceRanking, @ServiceVendor, @ServiceDescription

If you look at those, you will see that they are defined as component property types. They are just some predefined component property type. You can also define your own and they can even be bundle-private (non-exported) types.

DS already supports this. It's called org.osgi.service.cdi.annotations.ComponentPropertyType.
It's a meta-annotation that you place on any other annotation. You already found examples such as @ServiceRanking which is defined as:
@ComponentPropertyType
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
public @interface ServiceRanking {
	int value();
}

So, if you want your own annotations just create a new annotation on your own:
@ComponentPropertyType
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
public @interface Foo {
	String value();
}

There is a name globing so that the name of the annotation becomes the key following a specified set of rules.
See https://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.component.html#service.component-component.property.types for all the details.

my point is that I don't see why another annotation is required.

my point is that I don't see why another annotation is required.

Because I don't want to define a new annotation for every possible key one want to use, so my code base blows up, while a generic Key/Value can be used without introduce new annotation types and remembering mapping rules.

I really liked this one form osgi-test:
https://github.com/osgi/osgi-test/blob/main/org.osgi.test.junit5/src/main/java/org/osgi/test/common/annotation/Property.java

The issue is that we have a specification that tells tools how to handle ComponentPropertyType annotations and to build the key from the name and a given PREFIX.

The issue is that we have a specification that tells tools how to handle ComponentPropertyType annotations and to build the key from the name and a given PREFIX.

I won't really call this a problem ;-)

Would you place this annotation on a component class or inside an component annotation?

I think both would be ok

I still think it would be nice to have some generic key/value annotation for cases a component property type is just not desired or name mapping rules do not fit.


CodeQL docs: update query console link text

Fixes https://github.com/github/semmle-docs/issues/28.
Where links were provided from the CodeQL help on help.semmle.com to the query console, the text has been updated to make it clear that the link goes to LGTM.com.
Summary
For example, if the link text said See the answer in the query console it now says See the answer in the query console on LGTM.com. I also made some similar changes to links to the LGTM.com help, to make it clear that the link was to a page away from help.semmle.com. I've put up a preview on docteam.
Bonus change
I spotted a link in the table of query metadata properties that didn't make sense outside of LGTM (the metadata table used to be included in the LGTM help)--that link has been removed: Before and After.

Thanks for spotting those @shati-patel 😸


Fixed table creation order and syntax issues

Inverted order of the tables realm_signer and ca because the table realm_signer needs (the foreign key signer_ca_sub) the table ca.
Added a missing comma to the realm_signer table.

Thanks!


Install-Package : 'NBitcoin' already has a dependency defined for 'Newtonsoft.Json'.

I get this error when I attempt to install the NuGet package.
PM> Install-Package NBitcoin
Attempting to resolve dependency 'Newtonsoft.Json (≥ 9.0.1)'.
Install-Package : 'NBitcoin' already has a dependency defined for 'Newtonsoft.Json'.
At line:1 char:1
+ Install-Package NBitcoin
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

PM>

Can you try that and let me know: http://stackoverflow.com/a/25844391

That did the trick. Thanks for the response!


Deleted Container Explanation

Category

[x ] Content fix
[ ] New article

What's in this Pull Request?

This adds an explanation to the Deleted Container section in the Consuming Tenant Admin article.
Updated "deleted container collection" to "Recycle Bin"

Thanks for the feedback @andrewconnell , I realize I've duplicated Container Type content here from #9562 . I've added the CTA content changes to #9562 and will implement the other Container Type feedback listed here as well.


LFS-680: When clicking (+) on a subject chart to add a form, provide list of forms that take this type of subject and its children only

Jira link
This work also includes the ProgenyProcessor, which allows for a new .json selector (.progeny) which recursively finds the children of a given node (via recursively looking for nodes whose parent is the given node).
To test: When viewing the patient chart for a Tumour, trying to create a new form from that page will no longer show Questionnaires like Demographics, which cannot be used for a Tumour.

Should we be showing the "+" button on the Tumor region charts?

Should we be showing the "+" button on the Tumor region charts?

Problem found, steps to reproduce:

create 2 patients (e.g. ABC and 123)
for each patient create at least one tumor (e.g. ABC/lung, ABC/liver, 123/liver, 123/brain)
open any tumor chart (e.g. ABC/liver)
click on the + button
select Radio form
expected behavior: Radiotherapy form should be created for the tumor shown in the chart
current behaviour: dialog pops up offering selection of other patients and their tumors

Problem found, steps to reproduce:

create 2 patients (e.g. ABC and 123)
for each patient create at least one tumor (e.g. ABC/lung, ABC/liver, 123/liver, 123/brain)
open any tumor chart (e.g. ABC/liver)
click on the + button
select Radio form
expected behavior: Radiotherapy form should be created for the tumor shown in the chart
current behaviour: dialog pops up offering selection of other patients and their tumors

the bug is still present

the bug is still present

The problem with tumor region's for selection is now resolved - only Somatic Variants are shown in the selection dialog

The problem with tumor region's for selection is now resolved - only Somatic Variants are shown in the selection dialog

Closed due to being handled in #459


How can I assign attributes to users (name / avatar)

What kind of problem do you need help?
Is there any way to add attributes to users in a video conference, I thought of utilizing the useCurrentUID to make this work, but the currentUID changes with page re-route, let's say there's a lobby page where user enters the name and selects avatar and joins the meet, the meet is on another route, then one can map the user info fetched from backend with respective UIDs ( i thought to do with this approach), but UID changes with the route so this completely fails the approach I thought, is there any better way to do this,

@muhammedanaskhan You can specify UID when you JoinChannel. https://github.com/AgoraIO-Extensions/agora-rtc-react/blob/main/packages/agora-rtc-react/src/types.ts#L27. Then you will get the same uid when you join the channel in every times.

Thanks for helping me out @guoxianzhe . Highly appreciate!!

Hey @guoxianzhe I am fetching the uid from backend, and then passing it to useJoin -
`
const [fetchedUid, setFetchedUid] = useState<UID | null | undefined>(null);
const [readyToJoin, setReadyToJoin] = useState(true);
const {data} = useJoin(
{
appid: appId as string,
channel: 'video-call'!,
token: null,
uid: fetchedUid!,
},
readyToJoin
);
`
I guess its not taking that fetchedUid that I'm passing cause when I am logging   console.log("uid", useCurrentUID()), its giving some random UIDs not the one that I am passing, would be glad if you can help out this too!

Hey @guoxianzhe
I am actually passing dynamic UID after fetching from backend, -
const [readyToJoin, setReadyToJoin] = useState(false);
const [fetchedUid, setFetchedUid] = useState<UID | null | undefined>(null);

  const {data} = useJoin(
    {
      appid: appId as string,
      channel: 'video-call'!,
      token: null,
      uid: fetchedUid!,
    },
    readyToJoin
  );

  const fetchMeetingUsers = async (accountWalletAddress: string) => { // this will fetch UID of this USER
    setLoadingTheMeetBgActive(true)
    const resp = await fetch(`${baseBackendUrl}/api/v1/web3meet/meeting/url/${roomId}`, {
      method: 'GET',
      headers: {
        'Content-Type': 'application/json',
      },
    })

    const respData = await resp.json();
    console.log("respData", respData)
    const uid: UID | null | undefined = respData.data.users.find((user: any) => user.userAddress === accountWalletAddress)?.uid;
    setFetchedUid(uid);
    setReadyToJoin(true);

I want the channel to be joined once the UID is fetched, am I missing out on something, I would really appreciate your help

You can creatively pass the UID as a string by extracting minimal information from your user or model for the meeting and encoding it first to json and then in base64, which can be decoded on the client to retrieve the embedded data. Here is an example using PHP for the server and a web application:
// ... Other codes
$connectionData = $user->only(['id', 'name', 'email', 'avatar']);

if ($request->boolean('screen_share', false)) {
    $connectionData['name'] = "$user->name's Screen";
    $connectionData['screen_share'] = true;
} else if (isset($config['displayName'])) {
    $connectionData['name'] = $config['displayName'];
}

$jsonData = json_encode($connectionData); // Convert to a string
$userDataAsString = base64_encode($jsonData); // Encode

$config = config('services.agora');
$channelName = 'live_session_' . $meeting->code;
$tokenExpireTs = now()->addSeconds(1 * 60 * 60); // 1 hour

try {
    $token = RtcTokenBuilder::buildTokenWithUserAccount(
        appID: $config['app_id'],
        appCertificate: $config['secret'],
        channelName: $channelName,
        userAccount: $userDataAsString,
        role: RtcTokenBuilder::RolePublisher,
        privilegeExpireTs: $tokenExpireTs->getTimestamp(),
    );

    return response()->json([
        'token' => $token,
        'channel' => $channelName,
        'uid' => $userDataAsString,
        'meeting' => $meeting,
    ]);
} catch (Exception $e) {
    return response()->json(['error' => 'Failed to generate token'], 500);
}

Client:
type DataFromUID = {
    id: string;
    name: string;
    avatar: string;
    email: string;
    screen_share?: boolean;
};

export function decodeData(encodedData: string): DataFromUID | null {
    try {
        const jsonData = atob(encodedData);
        return JSON.parse(jsonData) as DataFromUID;
    } catch (error) {
        console.error("Failed to decode user data: ", error);
        return null;
    }
}

// Usage
const Participant = ({ participant }: ParticipantProps) => {
    const userData = decodeData(participant.uid as string);
    return (
        <Avatar
            src={userData?.avatar}
            size={"lg"}
            name={userData?.name}
            className={avatar}
        />
    );
};

And the generated token looks really cool:
eyJpZCI6IjAxajJicjBuY2tkN2NmN3JnZHNxYXcxY2Y4IiwibmFtZSI6Ik1hbGNvbG0gTGFya2luIiwiZW1haWwiOiJuYXRoZW4uc2NodWx0ekBleGFtcGxlLmNvbSIsImF2YXRhciI6Imh0dHBzOlwvXC9jaGlsaW5rLnRlc3RcL2ltYWdlc1wvZGVmYXVsdC1hdmF0YXIucG5nIn0=

If using React, here is a helpful hook to get the UID of the current user:
import { useCurrentUID } from "agora-rtc-react";

const localUid = useCurrentUID();


Bug detecting and problems about SMAI

Hi, I tried SMAI to test if two datasets are alignable or not, and had a series of findings.
The first thing I intend to share are two bugs. One for example dataset:

I have installed seuratDisk
Another one is for my own dataset:

Could you please help me address them? Thanks a lot.
Moreover, another question is from the algorithm 1. I found that different seeds generated different p values. I think this algorithm does not contrain permutation, so there should be no randomness in p-value.

And if we found that two datasets are not alignable, why this algorithm still "aligns" them?
Thanks a lot.

Thank you so much for raising the issues!

One probably needs to first install the "pbmcsca" dataset using InstallData("pbmcsca"), before loading the data - sorry about that! Corrections have been made in the Tutorial.

The error "prop.align too large!" indicates insufficient size for the maximal correspondence subsets identified in the previous step, which can be fixed by increasing the parameter k1 in function findMutualNN(). To improve automation in this step, we have updated the corresponding codes in our Tutorial - a suitable k1 is now determined automatically, without user specification.

For our partial alignability test, we incorporate a sample splitting procedure to ensure its statistical validity, which introduces randomness to our test result. However, one may benefit from such randomness by repeating the test under various random seeds, to assess the robustness/stability of the test results with respect to resampling.

You are right, the final integrated datasets will be returned regardless of the significance of the p-value. Our test essentially indicates the goodness-of-fit of the data generative model motivating the proposed alignment procedure, but does not necessarily affect the execution of the alignment algorithm. However, we do recommend not using the integrated data if a significant p-value is returned.

Please let me know if you have further questions/comments! Thank a lot!

Thanks for your reply! I will try your method based on the updated version again.

Of course! Please let me know if you have further questions!

On Aug 18, 2023, at 12:04 PM, HelloWorldLTY @.***> wrote:
Thanks for your reply! I will try your method based on the updated version again.
—
Reply to this email directly, view it on GitHub https://github.com/rongstat/SMAI/issues/1#issuecomment-1684127402, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWOXT4RBMHVZZUTXSYFEAMLXV6G7FANCNFSM6AAAAAA3U46ZQY.
You are receiving this because you modified the open/close state.

Thanks a lot.


Fix tvOS picture-in-picture compilation regression.

A recent PR that introduced Picture-in-Picture via iOS APIs failed to test for tvOS regressions.
https://github.com/react-native-community/react-native-video/pull/1325
There has been discussion after the code was merged and pulled by the community that discusses wrapping the offending APIs in directives. This PR does exactly that and has been tested with a tvOS 12.1 simulator.
Here is a related issue that I created because I wasn't sure if that was protocol for this repo (maybe it will help others that come across this issue before and after it is merged).
https://github.com/react-native-community/react-native-video/issues/1517
Tested this fix with the following code snippet and plays videos on iOS and tvOS.
export default class VideoPlayer extends React.PureComponent {
    render() {
        return (
            <View style={styles.container}>
                <Video
                    style={styles.video}
                    ref={this._getRef}
                    pictureInPicture={true}
                    source={{
                        uri: 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8'
                    }}
                />
            </View>
        );
    }
}

@cobarx Could you please review this change. It's blocking teams from building tvOS with latest version of react-native-video.

@danielmarino24i You've been quite active and engaged with the project, so I'd like to see if you'd be interested in being a maintainer. I couldn't locate your email on GitHub, so I'm reaching out here. Can you email me at<EMAIL_ADDRESS>so we can discuss.

@FullstackJack Thanks for figuring this out and creating the PR. Creating an issue is a great idea for the reasons you mentioned, having people be able to search for the problem is quite helpful.

Just hit this issue this morning - great to see it already fixed! @cobarx is there a plan for an imminent npm release, or better to just grab master for now?

Are you have a date to put the next release with it fixed?

I am running into this same build failure problem. I am following the directions exactly using the latest npm install react-native-video. Trying to run on 12.2 simulator but it won't even build throwing out this error. I have tried installing the latest ^3.0.0 but that version also has some errors, and it will not function correctly. It builds with ^3.0.0 but then gets this error in the console: Accessing view manager configs directly off UIManager via UIManager['RCTVideo'] is no longer supported. Use UIManager.getViewManagerConfig('RCTVideo') instead. I found a commit recommended but after applying that it throws out yet another error. I would really love to be able to use this to finish my tvOS app!

@jdmueller How are you installing the latest? The fix has not been released as a version. In you npm package.json, you need to reference the master branch.
"dependencies": {
  "package": "git://github.com/username/package.git#commit"
}

In our case, you can get the merged code at...
"dependencies": {
  "react-native-video": "git://github.com/react-native-community/react-native-video.git#933bbae77b1ee55cafc060840b85cc0074f46ca7"
}

Ok I've pushed out 4.4.1 with this fix in it.


GPU

All are welcome to create issues, but please google the problem first, and make sure it has not already been reported.
What steps reproduce the bug?
What hardware and operating system/distribution are you running?
Operating system:
CUDA version:
CUDNN version:
openCV version:
BLAS:
Python version:
If the bug is a crash, provide the backtrace.

Did the resnet50-2x model just be used in GPU model?

Did the resnet50-2x model just be used in GPU mode?

yes


Export data by Torque

I need to work with raw data and analyze it on my PC. Can I download, by Torque, data in one of the common formats (csv, json, xml, etc.)?
Thank you in advance!

By the app or autmatically in another way?

Both, the app has an export feature (though it's been years since I used it, you'd have to find that project for how) and the webapp has buttons:

And can I extract this data in an automated way (i.e., without going through app or web app)?

Not sure what you mean, this whole thing is a couple of components.  The torque app is it's own thing, and the author has his own web server solution and storage, I don't know of any automation within that.  This project is an API-compatible alternative web server for uploading the torque data to a place you own.  With that, you have access to the DB and could construct something to extract things on a schedule, or you could tweak the upload code to trigger the existing export routine when a session is complete.  Session completion is a bit tricky to detect though; it's a setting in the torque app when to generate a new session, but there's no "this session is over" event.  Basically the app says "we made a session, and are uploading data to it!  If the car stops generating data for more than x minutes, call it a new session!"  It could make sense to have some nightly php cronjob to say "look for sessions yesterday, then trigger the export function on those to a folder" but you'd have to figure it out, it's not part of this per-se, storing to the DB is where the automation ends.  Does that make sense?

Yes, I think so. I saw your repo about Torque and I think that I need to implement my web server to upload my raw data on my database automatically.
Thank you for the help!


aggregate-metadata for gradle users

Hello
Is there the gradle plugin that creates the metadata jar  with aggregated  META-INF/spring-configuration-metadata.json file ?
Thanks

@sabbyanandan , I just created PR #22 with gradle plugin to aggregate the spriong metadata, please review.

Thanks, @jvmlet. We will review it.


Add specification for computing singular values using singular value decomposition (linalg: svdvals)

This PR

adds a specification for computing singular values using singular value decomposition.

Notes

This API deviates from current array libraries which overload the svd function modeled after NumPy via a compute_uv keyword. In that API, when compute_uv is False, only the singular values are returned. As discussed in a thread on gh-114 and in a prior weekly meeting, in order to ensure API consistency with eig and eigvals and to limit polymorphism, splitting svd into svd and svdvals was deemed desirable. The former API is equivalent to compute_uv=True, while the latter is equivalent to compute_uv=False.

This PR has been discussed and approved during meetings. Will merge, and we can submit follow-up PRs should any issues/concerns arise.


[Table] Do not style emptyState custom component

EmptyState custom components should not be wrapped by external styling.

:tada: This issue has been resolved in version 7.1.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


I want to use eesen to decode on line do you have any suggestion?

I want to use eesen to decode on line do you have any suggestion?

eesen does not support truly online recognition, at least for now

if want to use my trained model as a demo，and decode some wav file what can i do？

You can use the “Eesen Transcriber”, https://github.com/srvk/eesen-transcriber https://github.com/srvk/eesen-transcriber, it will take arbitrary audio or video files and run recognition on them. If you swap out the model files, you should be able to test your new model. We also have an extremely rudimentary Python-based interface to the decoder, which should at some point develop into an online recognizer, but it is not ready yet.

On Jun 22, 2016, at 2:37 AM, john<EMAIL_ADDRESS>wrote:
if want to use my trained model as a demo，and decode some wav file what can i do？
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/srvk/eesen/issues/64#issuecomment-227656379, or mute the thread https://github.com/notifications/unsubscribe/AEnA8f4bIJE0mZXYCA4j838-DclgJRLXks5qONgkgaJpZM4I6YP1.

Florian Metze http://www.cs.cmu.edu/directory/florian-metze
Associate Research Professor
Carnegie Mellon University


Add support for markup languages

We should support:

Markdown
LatexBaseed
Also HTML if there is a support for math

Each note can use different markup, if markup is detected is should be shown to the user who can change it manually.

While markup detection may not be that complicated there is no use-case as of now. Instead we will focus only on a Markdown based markup.


mismatched rules

On the demo site: .gray-light-0{color:#b0b0b0}
In the repo: .gray-light-0{color:#a0a0a0}
And so on for consecutive rules. Perhaps the demo site should simply link to css in the repo to stay in sync? Not sure if that's done.

Ah, yeah. Looks like that was a mistake on my part 😊 .
It'd prolly be best just to link the unpkg css as that is the published version.


Webmin installation problem

Hi @arakasi72 , I install fresh server. Then run sudo rtadmin, 7, and got this.
Thanks you.
gpg: no valid OpenPGP data found. W: GPG error: http://download.webmin.com/download/repository sarge Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D97A3AE911F63C51 W: The repository 'http://download.webmin.com/download/repository sarge Release' is not signed. WARNING: The following packages cannot be authenticated!   webmin E: There were unauthenticated packages and -y was used without --allow-unauthenticated grep: /etc/webmin/config: No such file or directory /usr/local/bin/rtwebmin: line 31: /etc/webmin/config: No such file or directory grep: /etc/webmin/config: No such file or directory /usr/local/bin/rtwebmin: line 37: /etc/webmin/config: No such file or directory grep: /etc/webmin/config: No such file or directory /usr/local/bin/rtwebmin: line 43: /etc/webmin/config: No such file or directory grep: /etc/webmin/config: No such file or directory /usr/local/bin/rtwebmin: line 49: /etc/webmin/config: No such file or directory grep: /etc/webmin/config: No such file or directory /usr/local/bin/rtwebmin: line 55: /etc/webmin/config: No such file or directory grep: /etc/webmin/miniserv.conf: No such file or directory /usr/local/bin/rtwebmin: line 61: /etc/webmin/miniserv.conf: No such file or directory Setting up Nginx Reverse Proxy Completed
Maybe @arakasi72  can update the script ? Download the webmin manually ?

This issue should be fixed by now as Webmin's servers are online again after migration of data to a new datacenter

Yes this is due to webmin being offline, so closing it for now. If when webmin is back up you still have an issue, then repost.


Move-CsMeetingRoom still relevant for MTR?

Hi,
For the cmdlets "Get-CsMeetingRoom", "enable-csmeetingroom", "disable-csmeetingroom" and "set-csmeetingroom", we have the following note:
"Note: This cmdlet is not supported for managing Microsoft Teams Rooms. You must use the methods described in the Microsoft Teams Rooms documentation to manage Microsoft Teams Rooms."
But for "move-csmeetingroom", we don't have this note. I think it is an oversight, right?
Regards,
Vincent

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

ID: 7a45db2f-2fe4-6ace-76ea-19dd94590b8c
Version Independent ID: 370170a5-4ffd-bd24-d185-bab2b1f1e151
Content: Move-CsMeetingRoom (SkypeForBusiness)
Content Source: skype/skype-ps/skype/Move-CsMeetingRoom.md
Service: skypeforbusiness-powershell
GitHub Login: @hirenshah1
Microsoft Alias: hirshah

Hi @vlethiec,
Move-CsMeetingRoom cmdlet is not present in the Teams PowerShell Module and hence that note was not added for it. But yes, it is also not supported for managing Microsoft Teams Rooms. Methods mentioned in https://docs.microsoft.com/en-us/microsoftteams/rooms/ are the supported ways to manage Microsoft Teams Rooms.
Regards,


Request denied by default

Hey, I'm getting a really strange error. I'm not really sure if it's a setting I changed or maybe an update from the docker repo...
I'm using the idp example (modified), I'm using a client created with:
hydra clients create -a [hydra.keys.get,openid,offline,hydra,core] -c [https://protected-site] -g [authorization_code,authorize_code,client_credentials] -r [code,token]

time="2017-01-30T15:53:11Z" level=info msg="started handling request" method=GET remote=<IP_ADDRESS> request="/keys/hydra.consent.challenge/public"
time="2017-01-30T15:53:11Z" level=info msg="Access denied" error="Request was denied by default: The request is not allowed" reason="The policy decision point denied the request" request=&{rn:hydra:keys:hydra.consent.challenge:public get  map[]} subject=
time="2017-01-30T15:53:11Z" level=info msg="Access denied" audience=340e61a7-a0cc-42b4-9ffd-08031ba0a097 error="Request was denied by default: The request is not allowed" reason="The policy decision point denied the request" request=&{rn:hydra:keys:hydra.consent.challenge:public get map[]} scopes=[hydra.keys.get] subject=340e61a7-a0cc-42b4-9ffd-08031ba0a097
time="2017-01-30T15:53:11Z" level=error msg="An error occurred" error="Request was denied by default: The request is not allowed" request_id=d020c45d-ced3-4fe1-a6cf-e9886f73e0bb status=403
time="2017-01-30T15:53:11Z" level=info msg="completed handling request" measure#web.latency=7282195 method=GET remote=<IP_ADDRESS> request="/keys/hydra.consent.challenge/public" status=403 text_status=Forbidden took=7.282195ms

I'm kinda stumped and it was working last week :/.
I put in a policy for anonymous public key retrieval but that only half works since the idp app also needs the private key.

I came across #253 earlier but it still seems to fail when I put in a anonymous public key policy.

This means that no policy was found for the request you made. This could either be because no policy exists for creating clients, or because the client id you are using to make this request is not included by the policy in question.
It's possible that this doesn't work because the values in your ~/.hydra.yml file changed.

Closing due to inactivity


Pulsar server non-tls ports are still listening when TLS in-transit encryption is enabled

Describe the bug
I'm testing out transport encryption using TLS by following the document instruction here:
https://pulsar.apache.org/docs/en/2.7.2/security-tls-transport/
I'm expecting that when TLS is enabled, when broker is starting up, only TLS ports (8443 and 6551) are listening. But it looks like non-TLS ports (8080 and 6650) are also enabled. See the command line output below:
$ sudo netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 <IP_ADDRESS>:2181            <IP_ADDRESS>:*               LISTEN      16109/java
tcp        0      0 <IP_ADDRESS>:9990            <IP_ADDRESS>:*               LISTEN      16109/java
tcp        0      0 <IP_ADDRESS>:8010            <IP_ADDRESS>:*               LISTEN      16109/java
tcp        0      0 <IP_ADDRESS>:3181            <IP_ADDRESS>:*               LISTEN      16676/java
tcp        0      0 <IP_ADDRESS>:8080            <IP_ADDRESS>:*               LISTEN      17362/java
tcp        0      0 <IP_ADDRESS>:53           <IP_ADDRESS>:*               LISTEN      877/systemd-resolve
tcp        0      0 <IP_ADDRESS>:22              <IP_ADDRESS>:*               LISTEN      9105/sshd
tcp        0      0 <IP_ADDRESS>:6650            <IP_ADDRESS>:*               LISTEN      17362/java
tcp        0      0 <IP_ADDRESS>:8443            <IP_ADDRESS>:*               LISTEN      17362/java
tcp        0      0 <IP_ADDRESS>:6651            <IP_ADDRESS>:*               LISTEN      17362/java
tcp        0      0 <IP_ADDRESS>:8000            <IP_ADDRESS>:*               LISTEN      16676/java

The only broker configuration changes are those TLS related, as below.
$ diff conf/broker.conf ~/pulsar_config/broker.conf.orig
32c32
< brokerServicePortTls=6651
---
> brokerServicePortTls=
38c38
< webServicePortTls=8443
---
> webServicePortTls=
472c472
< tlsEnabled=true
---
> tlsEnabled=false
478c478
< tlsCertificateFilePath=/opt/pulsar/security/tls/broker.cert.pem
---
> tlsCertificateFilePath=
481c481
< tlsKeyFilePath=/opt/pulsar/security/tls/broker.key-pk8.pem
---
> tlsKeyFilePath=
487c487
< tlsTrustCertsFilePath=/opt/pulsar/security/tls/ca.cert.pem
---
> tlsTrustCertsFilePath=

To Reproduce
Steps to reproduce the behavior:

Download Pulsar 2.7.2 release tarball and extract it to a folder, e.g. /opt/pulsar
Create TLS certificates ( by following Pulsar doc: https://pulsar.apache.org/docs/en/2.7.2/security-tls-transport/#broker-configuration

put the root certificate (ca.cert.pem), the broker key (broker.key-pk8.pem), and the broker certificate (broker.cert.pem) into a sub-folder of Pulsar install: /opt/pulsar/security/tls

Configure broker.conf, as below.

brokerServicePort=6650
brokerServicePortTls=6651
webServicePort=8080
webServicePortTls=8443
tlsEnabled=true
tlsCertificateFilePath=/opt/pulsar/security/tls/broker.cert.pem
tlsKeyFilePath=/opt/pulsar/security/tls/broker.key-pk8.pem
tlsTrustCertsFilePath=/opt/pulsar/security/tls/ca.cert.pem

Restart Pulsar server and we'll see that Pulsar server is listening on all 4 ports (8080, 8443, 6650, and 6651).

I also tried explicitly removing non-TLS ports in the configuration file and only keep TLS ports, as below.
brokerServicePort=
brokerServicePortTls=6651
webServicePort=
webServicePortTls=8443
tlsEnabled=true
tlsCertificateFilePath=/opt/pulsar/security/tls/broker.cert.pem
tlsKeyFilePath=/opt/pulsar/security/tls/broker.key-pk8.pem
tlsTrustCertsFilePath=/opt/pulsar/security/tls/ca.cert.pem

If I do so, I can't start broker. The error in pulsar-broker-xxx.out is as below:
[AppClassLoader@18b4aac2] info AspectJ Weaver Version 1.9.2 built on Wednesday Oct 24, 2018 at 15:43:33 GMT
[AppClassLoader@18b4aac2] info register classloader sun.misc.Launcher$AppClassLoader@18b4aac2
[AppClassLoader@18b4aac2] info using configuration file:/opt/pulsar/lib/org.apache.pulsar-pulsar-zookeeper-utils-2.7.2.jar!/META-INF/aop.xml
[AppClassLoader@18b4aac2] info using configuration file:/opt/pulsar/lib/org.apache.pulsar-pulsar-zookeeper-2.7.2.jar!/META-INF/aop.xml
[AppClassLoader@18b4aac2] info register aspect org.apache.pulsar.broker.zookeeper.aspectj.ClientCnxnAspect
[AppClassLoader@18b4aac2] info register aspect org.apache.pulsar.zookeeper.FinalRequestProcessorAspect
[AppClassLoader@18b4aac2] info register aspect org.apache.pulsar.zookeeper.ZooKeeperServerAspect
2021-08-03 08:56:33,926 [sun.misc.Launcher$AppClassLoader@18b4aac2] error Uncaught exception in thread main: No value present

Expected behavior
Only TLS ports (8443 and 6551) are listening.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Ubuntu 18.04
Java: 1.8.0_292

Additional context
N/A

So your problem is that you cannot disable non TLS ports?

@yabinmeng There's a PR #11681 to fix some issues. Most of the fixed issues in that PR apply to Pulsar Standalone.
Setting TLS only requires setting brokerClientTlsEnabled=true besides the configuration settings that you have enabled. With self-signed certificates you might have to specify tlsAllowInsecureConnection=true unless brokerClientTlsEnabledWithKeyStore=true with all required settings.

@lhotari Thanks for looking into this.
In my testing, I only have one node. So I don't think brokerClientTlsEnabled=true andbrokerClientTlsEnabledWithKeyStore=true matter because they're used for inter-broker communication.  Technically speaking, if I want to only expose TLS ports on a broker, then I should set brokerClientTlsEnabledWithKeyStore=true. But in my testing it really doesn't matter.
My previous testing exposed 2 issues which I believed you confirmed in #11681.

When TLS is enabled, both non-TLS and TLS ports are all listening
Broker won't start If I only set TLS ports (brokerServicePortTls and webServicePortTls), but leave non-TLS ports (brokerServicePort and webServicePort) empty.

Anyway, I retested with brokerClientTlsEnabled=true  and brokerClientTrustCertsFilePath=</path/to/root/ca/ceritificate> (and other required TLS configuration as before), it is the same behavior:

I have to explicitly set all four ports (6650, 6651, 8080, 8843) in order to start borker when TLS is enabled
When borker is up, all 4 ports are in listening mode.

In the end, I don't think brokerClientTlsEnabledWithKeyStore=true matters if I use brokerClientTrustCertsFilePath=</path/to/root/ca/ceritificate> parameter.

@lhotari I also tested this on Pulsar version 2.8.0. Here is what i got

I only explicitly set TLS ports (6651 and 8443) and leave non-TLS ports empty. The TLS settings are as below:

brokerServicePort=
brokerServicePortTls=6651
webServicePort=
webServicePortTls=8443
tlsCertificateFilePath=/opt/pulsar/security/tls/server/broker.cert.pem
tlsKeyFilePath=/opt/pulsar/security/tls/server/broker.key-pk8.pem
tlsTrustCertsFilePath=/opt/pulsar/security/tls/rootca/ca.cert.pem
brokerClientTlsEnabled=true
brokerClientTrustCertsFilePath=/opt/pulsar/security/tls/rootca/ca.cert.pem

When I start broker, I get the following error in broker.log file
17:01:47.533 [main] ERROR org.apache.pulsar.functions.worker.PulsarWorkerService - Error Starting up in worker
java.lang.NullPointerException: null
        at org.apache.pulsar.client.admin.internal.PulsarAdminImpl.<init>(PulsarAdminImpl.java:189) ~[org.apache.pulsar-pulsar-client-admin-original-2.8.0.jar:2.8.0]
        at org.apache.pulsar.client.admin.internal.PulsarAdminBuilderImpl.build(PulsarAdminBuilderImpl.java:47) ~[org.apache.pulsar-pulsar-client-admin-original-2.8.0.jar:2.8.0]
        at org.apache.pulsar.functions.worker.WorkerUtils.getPulsarAdminClient(WorkerUtils.java:221) ~[org.apache.pulsar-pulsar-functions-worker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.functions.worker.PulsarWorkerService$1.newPulsarAdmin(PulsarWorkerService.java:136) ~[org.apache.pulsar-pulsar-functions-worker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.functions.worker.PulsarWorkerService.start(PulsarWorkerService.java:434) [org.apache.pulsar-pulsar-functions-worker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.broker.PulsarService.startWorkerService(PulsarService.java:1490) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.broker.PulsarService.start(PulsarService.java:793) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.PulsarBrokerStarter$BrokerStarter.start(PulsarBrokerStarter.java:259) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.PulsarBrokerStarter.main(PulsarBrokerStarter.java:331) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
17:01:47.539 [main] ERROR org.apache.pulsar.broker.PulsarService - Failed to start Pulsar service: java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.pulsar.functions.worker.PulsarWorkerService.start(PulsarWorkerService.java:571) ~[org.apache.pulsar-pulsar-functions-worker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.broker.PulsarService.startWorkerService(PulsarService.java:1490) ~[org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.broker.PulsarService.start(PulsarService.java:793) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.PulsarBrokerStarter$BrokerStarter.start(PulsarBrokerStarter.java:259) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.PulsarBrokerStarter.main(PulsarBrokerStarter.java:331) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
Caused by: java.lang.NullPointerException
        at org.apache.pulsar.client.admin.internal.PulsarAdminImpl.<init>(PulsarAdminImpl.java:189) ~[org.apache.pulsar-pulsar-client-admin-original-2.8.0.jar:2.8.0]
        at org.apache.pulsar.client.admin.internal.PulsarAdminBuilderImpl.build(PulsarAdminBuilderImpl.java:47) ~[org.apache.pulsar-pulsar-client-admin-original-2.8.0.jar:2.8.0]
        at org.apache.pulsar.functions.worker.WorkerUtils.getPulsarAdminClient(WorkerUtils.java:221) ~[org.apache.pulsar-pulsar-functions-worker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.functions.worker.PulsarWorkerService$1.newPulsarAdmin(PulsarWorkerService.java:136) ~[org.apache.pulsar-pulsar-functions-worker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.functions.worker.PulsarWorkerService.start(PulsarWorkerService.java:434) ~[org.apache.pulsar-pulsar-functions-worker-2.8.0.jar:2.8.0]
        ... 4 more
17:01:47.539 [main] ERROR org.apache.pulsar.PulsarBrokerStarter - Failed to start pulsar service.
org.apache.pulsar.broker.PulsarServerException: java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.pulsar.broker.PulsarService.start(PulsarService.java:821) ~[org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.PulsarBrokerStarter$BrokerStarter.start(PulsarBrokerStarter.java:259) ~[org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
        at org.apache.pulsar.PulsarBrokerStarter.main(PulsarBrokerStarter.java:331) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
Caused by: java.lang.RuntimeException: java.lang.NullPointerException

If I explicitly specify all 4 ports, the broker server is able to start. But again, the server is listening on all 4 ports, not ideal.  We should only listen on TLS ports.

@lhotari I also tested this on Pulsar version 2.8.0. Here is what i got

Thanks for testing this @yabinmeng . This problem is fixed by the PR. I assume that you are testing with Pulsar Standalone or with Pulsar that has Functions Worker as part of the broker. That will fail without the changes in #11681 .
I was assuming that it might be possible to workaround the issues in a k8s deployment or when Functions worker is deployed separately from the broker.


Introduction and goals

First section of the documentation to be done.
See https://docs.arc42.org/section-1/ for more info

First version done in fc32117c5ac2469a333f9e0f5a1e8bcc8a8dfa8d

First version MARKED as done in 886e96742ea09d88da71154d2f18ca4c54b54be7. There was just a few formatting changes since fc32117


Possibly integrate Prowler findings directly

Technically we can get the Prowler findings via Security Hub integration but it would be great to have the findings deposited in a S3 bucket then have the SIEM pick them up and display the findings in a dashboard.

https://github.com/prowler-cloud/prowler/tree/3.1.3_release

Hi, thanks for the feedback. I like the solution. We will investigate.

You can do that easy with prowler aws --output-bucket my-bucket/folder/
https://docs.prowler.cloud/en/latest/tutorials/reporting/#send-report-to-aws-s3-bucket

https://github.com/awslabs/aws-security-assessment-solution


WIP: Add the custom resource "vault_auth"

This PR add a new resource vault_auth allowing to authenticate with Vault and store the token in Chef Client's  run state. It also allows to renew the existing token.
Usage examples
vault_auth 'https://my-vault.example.com:8200' do
  type 'approle'
  role_id 'sample-role-id'
  secret_id 'sample-secret-id'
end

# node.run_state['vault_token'] => 'd529f6b5-73ab-...'

Work in progress
I don' have a big experience in writing custom resources for Chef (especially - in "poise" stuff), so I would appreciate any help and suggestions.
Currently, this PR is not ready to be merged at the moment, because of:

[ ] vault ruby gem with "approle" auth backend support is not released yet.
PR is merged (https://github.com/hashicorp/vault-ruby/pull/97), so we look forward to the version bump & release.
[ ] Lack of tests.
The resource requires vault gem to be installed, so it includes hashicorp::gems recipe. But I don't know how to handle the situation with require name. It causes RSpec failures on early stage.
[ ] Code reusability problem.
I'm not sure how to do this library reusable for other Vault auth backends, like TLS, LDAP, etc. Should these be separated resources or just a single resource with multiple providers? If latter, then how to handle the specific attributes like "app_id" & "secret_id" for AppRole and "ca_cert" & "client_cert" & "client_key" for TLS and so on.

cc: @johnbellone @Ginja
Feel free to share your thoughts and suggestions!

RE: Code reusability problem
That's a hard problem when the different auth backends vastly differ from one another. One way would be, as you suggested, to use multiple providers.  You could pass auth specific config options (e.g. ca_cert, client_cert, app_id, etc...) through a config/options hash attribute (with a default value of {}). If something like this was attempted, we should remember to namespace the tokens we generate in the run_state.


Show running Task's name

We need to show the name of the running task.

I'm going to close this, as it already was fixed


[rust] various optimizations

Drop bumpalo and mimalloc in favor an aligned vec.
Use hashbrown instead of std+fxhasher.

 Though custom memory alignment doesn't imply SIMD, some auto-vectorization might be in play.


Updated the Content of Home Page

Build is failing on /component/tracks
can you check it once

Can you please also state a error

This is the error, however always make sure to run the build locally before pushing


windows fatal exception when run label.py

Hello I got:
Current thread 0x00001548 (most recent call first):
File "D:\Anaconda\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 84 in _preread_check
File "D:\Anaconda\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 178 in readline
File "D:\Anaconda\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 214 in next
File "D:\Anaconda\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 220 in next
File "label_wav.py", line 56 in
File "label_wav.py", line 56 in load_labels
File "label_wav.py", line 91 in label_wav
File "label_wav.py", line 105 in main
File "D:\Anaconda\lib\site-packages\absl\app.py", line 250 in _run_main
File "D:\Anaconda\lib\site-packages\absl\app.py", line 299 in run
File "D:\Anaconda\lib\site-packages\tensorflow_core\python\platform\app.py", line 40 in run
File "label_wav.py", line 133 in
Did Anyone face this kind of issue? my tensorflow version 1.15
Regards,

its was a path problem


Error 500 on push

Hey Guys,
we are using the current version of Bonobo.
We set it up on Windows Server 2012 with <add key="MembershipService" value="ActiveDirectory" /> authentification.
Login etc. works fine. But if we want to push a commit we get an error code 500.
If i open the *.git URL in Chrome then i get the following error message:
System.FormatException: Invalid length for a Base-64 char array or string. at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) at System.Convert.FromBase64String(String s) at Bonobo.Git.Server.GitAuthorizeAttribute.IsUserAuthorized(String authHeader, HttpContextBase httpContext) at Bonobo.Git.Server.GitAuthorizeAttribute.OnAuthorization(AuthorizationContext filterContext) at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList'1 filters, ActionDescriptor actionDescriptor) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__19(AsyncCallback asyncCallback, Object asyncState)
Did anyone have an Idea??
Thanks.

Is this possible a duplication of #704 - are there special chars in your password?

Yes.. Without special chars it works!


Fallout 4: Dark overlay on inside locations

From v0.94-27-g9faf841 to latest, in certain inside locations in Fallout4, I experience some kind of shadow overlay on the bottom half of the screen, e.g. in Fort Strong:

4.20.3-arch1-1-ARCH
xf86-video-amdgpu 18.1.0 (Radeon 480)
wine-4.0-rc7
Fallout4_d3d11.log
Fallout4_dxgi.log

This problem also exist on mesa-git + radv

What's your LLVM version? As shown above, it renders fine with llvm-git on my RX 480.

I reverted mesa to stock, but LLVM version was latest svn from mesa-git unofficial arch repo. I think it's 8.0.0

I'm observing the same with the binary release of 0.96, running on a GTX980 Ti (415.27). The issue appears from the start of the game, and is especially apparent throughout Vault 111. Also with that release most decals (both pre-placed and dynamic, i.e. bullet holes) flicker in and out depending on camera position and angle. Reverting to 0.94 removes both problems.

@radcapricorn can you please bisect the problem? I'm unable to reproduce it.

@doitsujin Yes, just after character creation while walking around in the house. It's intermittent, i.e. only appears when you're looking in certain directions. I'll try bisecting as soon as I get a mingw toolchain set up.
I wonder, are you running with dxvk.conf customized for the game?

no.

@doitsujin Ok, bisect suggests that the issue in question starts with 17398e47bda823eeb84815603e1f470002d6149b. The "overlay" is present and there's wild intermittent decal clipping. I don't know if the two are related though. One commit before that also shows some decal clipping, but not nearly as bad. I'll try bisect to isolate that one as well. But anyway, this issue's culprit is 17398e47bda823eeb84815603e1f470002d6149b.

@doitsujin Update, that was a silly mistake to make, but I haven't actually tested master when I got mingw installed. The issue isn't there, and bisecting from 0.96 shows that it's fixed by 311661e4041e182e9bd6d8a6bd3d168901bb5c87.

Bug was accessible in 0.96 from game start, but in dxvk-git version it completely disappeared.

I can confirm that.

Fixed on 0.96 by latest mesa-git + llvm-svn


Document promise resolution value for waitFor()

I never knew that waitFor() resolved with the action until I tried it one day on a whim! I had so many hacks like getCalledAction()[3] that would always break when we changed the order of actions. This documentation would have really helped me.

I work on the same project as @kumar303 but I'll echo that this (undocumented) API really improved the clarity of our tests and also reduced the fragility of them when changing the order of actions in a saga. It'd be great to see this behaviour documented.

I agree. The pattern
const successAction = await sagaTester.waitFor(...);
expect(successAction).to.deep.equal(...);

is much clearer and more intuitive than
await sagaTester.waitFor(...);
expect(sagaTester.getLatestCalledAction()).to.deep.equal(...);


How to add this between just 2 screens

I want to go from screen A to screen B while using some transition..How can i achieve that..
Thanks a lot

So if we have screens A, B, and C. You only want to transition to work from screen A to B? Is this correct?

+1

Hey... is it possible to set the transitions for specific screens and not just globally, as previously asked?

Hi, you can actually do it as follows. Let's consider I want to have a zoom-in transition only between the country selection screen and the language selection screen:
const handleCustomTransition = ({scenes}) => {
 const prevScene = scenes[scenes.length - 2],
   currentScene = scenes[scenes.length - 1]

  // Custom transitions go there
  if (prevScene
    && prevScene.route.routeName === 'CountryScreen'
    && currentScene.route.routeName === 'LanguageScreen') {
    return zoomIn()
  }
}

const PrimaryNav = createStackNavigator({
  CountryScreen: { screen: CountryScreen },
  LanguageScreen: { screen: LanguageScreen }
}, {
  transitionConfig: (scenes) => handleCustomTransition(scenes)
})

the variable scenes how you get it?

@MustaphaBounoua hi, the scenes variable comes from transitionConfig

@SebLambla , Yes , It works perfectly , thanks men it's genius :D

@SebLambla this is great. When I get some time I will add your example to the README and credit you.

@plmok61 I've renamed some variables in order to be easier to understand. I wrote it with the help of this post.

The example has been added. I'm surprised the react-navigation docs don't have an example like this.


Improved install documentation

Clearer instructions to get get started (see #35).

Looks like an improvement so let's get this merged.


sports market page

https://www.figma.com/file/wogMuUDylgOHgTEYhZ3jgp/Augur-Bet---UI?node-id=4469%3A208368

Add the favored to win text/bar if market is open to the already made over/under dropdown component on the market page.

This is already complete, moving to product review.


Requeued events are handled even after deletion of entity

Describe the bug
If a reconciliation event is requeued with an exponential back-off, it is possible that it is handled even after its entity got deleted in the meantime.
Expected behavior
Reconciliation should not be triggered after an entity got deleted. Or should the existence / deletion timestamp of the entity be checked in the reconciliation handler? If yes, it would be good to document this.

From my understanding of https://github.com/buehler/dotnet-operator-sdk/blob/master/src/KubeOps/Operator/Controller/ManagedResourceController{TEntity}.cs, requeued events for entities that do not exist anymore should be filtered out. So I just added a check for the DeletionTimestamp in the reconciliation handler. However, this does not seem to suffice.

The problem here is caused by the fact that while a manually re-queued event will update the resource's data when it processes...
https://github.com/buehler/dotnet-operator-sdk/blob/1e7b53d7688d2f570d84a65ffc4eb83d05c8323d/src/KubeOps/Operator/Controller/ManagedResourceController{TEntity}.cs#L80-L95
... an event which is retried because it threw an exception does not have the same logic.


Create TutorialReactNative

After investing a great amount of time looking into why Jest and ReactNative were not working together, I finally found a fix. Considering how many other developers are facing similar problems, I figured it would be valuable to publicize my findings. This works with the latest release of ReactNative (v0.27.2).
Cheers!

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thank you for your contribution @ethemes and sorry for the long wait without a response. We've been pretty busy recently.
The good news is that we are about to launch official experimental react-native support. Please see #1317 for further details and watch out for a blog post sometime this week detailing more things. I'm also working on a tutorial for this new feature :)

Thank you for your patience. We launched Jest 14.0 with experimental react-native support:

Blog Post
React-Native Tutorial


Observed periodic "found unmatched initializeThread calls" in heavy multithreading test

From me on 2020-08-21:
This is the same test as in https://github.com/FriendsOfKeep/domino-jnx/issues/98 .
This happens only intermittently, but it shows this sort of message for 49 of the 50 spawned threads:
* #49 - Thread[Domino JNA Thread,5,main] (started: Fri Aug 21 14:47:09 EDT 2020, ref count: 1)
* Callstack:
*  com.hcl.domino.jna.JNADominoProcess.initializeThread(JNADominoProcess.java:223)
*  com.hcl.domino.jna.internal.JNAThread.run(JNAThread.java:33)

Oddly, there should be little way for that to occur:
	@Override
	public void run() {
		DominoProcess.get().initializeThread();
		try {
			super.run();
		} finally {
			DominoProcess.get().terminateThread();
		}
	}

The threads themselves did their work successfully and there was no crash, so this isn't a show-stopping problem, but it's odd.

Hi Jesse,
is there any progress related to this bug? I'm using DominoJNX 1.31.0 and getting these types of warnings constantly.


Introduce ADRs (Architectural Decision Records)

ADRs are highly beneficial for making and documenting complex architectural decisions.

https://betterprogramming.pub/what-is-architecture-decision-record-110c597c13d


Adding UdpExporter for Otlp spans

Description of changes:
Adding a new SpanExporter that can export spans to a configurable endpoint over UDP.

The spans are first protobuf encoded, then base64 encoded, then prefixed with T1S or T1U (depending on sampled), and finally appended to the {"format":"json","version":1}\n string before being exported to the endpoint, default is <IP_ADDRESS>:2000.
Related: https://github.com/aws-observability/aws-otel-python-instrumentation/pull/232

Testing:
Wrote a test to create and export a real span via X-Ray Daemon running locally.

Unit test
@Test
public void testExporter() { // TODO: only for testing. remove.
Tracer tracer = OpenTelemetrySdk.builder().build().getTracer("hello");

Span mySpan = tracer.spanBuilder("DoTheLoop_5").startSpan();
int numIterations = 5;
mySpan.setAttribute("NumIterations", numIterations);
mySpan.setAttribute(AttributeKey.stringArrayKey("foo"), Arrays.asList("bar1", "bar2"));
try (var scope = mySpan.makeCurrent()) {
  for (int i = 1; i <= numIterations; i++) {
    System.out.println("i = " + i);
  }
} finally {
  mySpan.end();
}

OtlpUdpSpanExporter exporter = new OtlpUdpSpanExporterBuilder().build();

ReadableSpan readableSpan = (ReadableSpan) mySpan;
SpanData spanData = readableSpan.toSpanData();

exporter.export(Collections.singletonList(spanData));
}

Observed trace data in X-Ray service
{
"Id": "1-246f2975-8c1d813535803fea548be818",
"Duration": 0.003,
"LimitExceeded": false,
"Segments": [
   {
       "Id": "455654be8f47d669",
       "Document": {
           "id": "455654be8f47d669",
           "name": "DoTheLoop_5",
           "start_time":<PHONE_NUMBER>.934588,
           "trace_id": "1-246f2975-8c1d813535803fea548be818",
           "end_time":<PHONE_NUMBER>.9371202,
           "annotations": {
               "span.name": "DoTheLoop_5",
               "span.kind": "INTERNAL"
           },
           "metadata": {
               "telemetry.sdk.language": "java",
               "service.name": "unknown_service:java",
               "foo": [
                   "bar1",
                   "bar2"
               ],
               "NumIterations": 5,
               "telemetry.sdk.version": "1.34.1",
               "telemetry.sdk.name": "opentelemetry"
           }
       }
   }
]
}

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The trivy image scan failure causing CI to fail is due to this issue: https://github.com/aquasecurity/trivy-action/issues/389
No fix from trivy yet. A suggested workaround is to pull the db image from AWS ECR but I haven't tried it.

Had to override the checks and merge due to trivy scan issue mentioned above.


Logical error

unit Quick.Threads;
function TThreadedQueueCS.PopItem(var AQueueSize: Integer; var AItem: T): TWaitResult;
before the line
AItem := FQueue[FQueueOffset];
need to add array size check
if (FQueueOffset >= Length(FQueue)) then Exit;
otherwise an error occurs
Exception class $C0000005 with message 'c0000005 ACCESS_VIOLATION'.
string: AItem := FQueue[FQueueOffset];
watch Length(FQueue) = 0;
watch FQueueOffset = 60;

Which version are you using?

This issue was closed because it has been open for more than 90 days with no activity.


File "striker.py", line 175, in dnsdump TypeError: list indices must be integers, not str

Traceback (most recent call last):
  File "striker.py", line 243, in <module>
    dnsdump(domain)
  File "striker.py", line 175, in dnsdump
    for entry in res['dns_records']['dns']:
TypeError: list indices must be integers, not str

sorry


Merge Apps/Plugins Terms

merge 2 terms app / plugin + should be done in the next 2 weeks

not super important, take your time Mohsin.

close ? should i

Can be closed, we are in the final stages of the merge (that is removing the old endpoints but we will do this after few more versions of the app)

ok coo, just leave a comment e.g. @deprecated, dont need to remove it from the code.


Fix deps, update test procedures, metadata, split outputs, maintainer

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] 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)
[x] Ensured the license file is being packaged.

References:

fixes #11

might want a repodata-patches PR, for good measure, but they usually want to see it fixed up-front

@conda-forge/jupyter_events ready for review

Thank you!  :heart:


Exception handling problems

The current code is not exception safe. It silently swallow the exceptions. Database connections and resources are not released.

https://github.com/IBMDecisionOptimization/OPL-jdbc-custom-data-source/pull/11 implements safe connections that clean up resources


Mmlupro with additional COT changes

Most recent changes to the pull request here: https://github.com/stanford-crfm/helm/pull/3162

This is a redundant PR

Wrong branch, re-closing


No scroll animation

Hi,
I have installed the ng2-page-scroll into my angular 2 app and configured everything like you described. To scroll I am using the service. If I trigger the scroll it switches to the anchor region immediately without animation. I have no output in the console of the browser. I have tested the app in Chrome and Safari.
import { Component, Inject } from 'angular/core';
import { DOCUMENT } from 'angular/platform-browser';
import { PageScrollConfig, PageScrollService, PageScrollInstance } from 'ng2-page-scroll';

constructor(private pageScrollService: PageScrollService, @Inject(DOCUMENT) private document: any) { }

public scrollToContact(): void {
        let pageScrollInstance: PageScrollInstance = PageScrollInstance.simpleInstance(this.document, '#contact');
        this.pageScrollService.start(pageScrollInstance);
};

After some debugging I figured out that the scroll finished before the first call of setInterval. I set a breakpoint to stopNow and it was hit after the scroll was completed.
pageScrollInstance.timer = setInterval(function (_pageScrollInstance) {
            // Take the current time
            var currentTime = new Date().getTime();
            // Determine the new scroll position
            var newScrollPosition;
            var stopNow = false;

My contact component in which the anchor is located is separated from the menu component where my scroll logic is implemented.
Any advice?

Ok, I want to close it :-) Sorry, I realised that the scrollView was wrong.


NameError: name 'data' is not defined, line 4174

Describe the bug
HA logs show this error on boot up when running the shelly script:
This error originated from a custom integration.
Logger: custom_components.pyscript.file.shellies_discovery_gen2
Source: custom_components/pyscript/global_ctx.py:341
integration: Pyscript Python scripting (documentation, issues)
First occurred: 4:46:54 PM (3 occurrences)
Last logged: 4:47:05 PM
Exception in </config/pyscript/shellies_discovery_gen2.py> line 4174: device_id = data[ATTR_ID] # noqa: F821 ^ NameError: name 'data' is not defined
Versions:

Home Assistant:
Core 2024.12.5
Supervisor 2024.12.0
Operating System 14.1
Frontend 20241127.8

This script is designed for pythons_script component not for pyscript.


Creating Singletons

On your Getting Started wiki page you mention an upcoming article on:
Using augment to create modules and singleton instances.
I couldn't find this anywhere. Do you have an example?

I added documentation for modules and singletons. Thank you for pointing out this omission.

Thank you for the answer. I think you might have missed skalee's answer on the singleton thread you refer to. Despite only having 2 votes, I think it's the only Singleton taking full context of Javascript and Singleton in mind. http://stackoverflow.com/a/19458623 His point that delayed initialisation is probably down to the need for I/O and that means callbacks.  You alluded to this in your page as well by mentioning intensive operations like database connections.


TEST Only Bug: MP Formula ID

Issue:
Formula code dropdown not fully populated on create new formula
Steps to recreate:

Create formula
Enter formula ID (112)
Enter Parameter (Heat Input Total)
Want to add formula code 'D-15' but only one option in drop-down list is available
Can only access additional formulas if you save and then edit the formula record
Private Zenhub Image

Chris needs to chat with Mike about this one so kicking it back for now

11/7 refinement Need to retest as not sure if this is still an actual issue

@mosesdeeCVP

From what I can tell the dropdown works as expected.
Heat Input Total only has 1 element in the dropdown.

Reporting Instructions
Private Zenhub Image

The Relationships on Swagger
Private Zenhub Image

What we see in the UI
Private Zenhub Image

'D-15' is Heat Input Rate
Private Zenhub Image

Private Zenhub Image

Private Zenhub Image

All fields seem to be working as expected based on the documentation above. The AC is comparing two different results with the dropdowns. From what I can tell each Parameter matches what is expected in Formula Code


Problem to start

Hi!
help me please. i don't start this script
How fix it  ?
(venv) root@netbox:/opt/netbox/scripts/netbox-sync/module/netbox# python3 /opt/netbox/scripts/netbox-sync/netbox-sync.py
2021-04-15 17:39:00,595 - INFO: Starting NetBox Sync
Traceback (most recent call last):
File "/opt/netbox/scripts/netbox-sync/netbox-sync.py", line 143, in
main()
File "/opt/netbox/scripts/netbox-sync/netbox-sync.py", line 82, in main
nb_handler = NetBoxHandler(settings=netbox_settings, inventory=inventory)
File "/opt/netbox/scripts/netbox-sync/module/netbox/connection.py", line 99, in init
api_version = self.get_api_version()
File "/opt/netbox/scripts/netbox-sync/module/netbox/connection.py", line 217, in get_api_version
result = str(response.headers["API-Version"])
File "/opt/netbox/scripts/vcenter-netbox-sync/venv/lib/python3.8/site-packages/requests/structures.py", line 54, in getitem
return self._store[key.lower()][1]
KeyError: 'api-version'

Iam fix this problem, problem was in nginx, nginx don’t  redirect to https with http

Hi,
I still need to fix the issue that the tool doesn't through an exception if the NetBox version can not be found.


ODS-Component - Card

Card
Requirement
As a developer
I want to insert a card
So That I will get this ready to use component compatible with Orange design specifications and a11y requirements
DSM reference
General description
Cards are a contained and independent element that can display content and actions on a single topic.
UI specifications
Anatomy
Cards can contain a number of elements which are optional.

Media (optional)
Card title
Subtitle (optional)
Supporting text (optional)
Buttons and actions (optional)

Variants
There are two different card sizes; small and large. A large card is a full width portrait mobile screen and a small card for a two column portrait mobile screen display.
Card Small
Half page width on vertical mobile screen
Card Image First
Full page width on vertical mobile screen
Card Title First
Full page width on vertical mobile screen
Card Image Side
States

xx
xx
xx
xx

Internationalization
xxx
Appearance
There are a few ways cards can be presented. With a single title on its own for a simple card view, or with more information shown in a subtitle and supplemental text and actions at the bottom of the card.
The visual style for cards is a simplified physical metaphor which benefits from the use of rounded corners and drop shadow to help convey the metaphor. This is the default style that should be used for cards.
The corner radius and drop shadow used, replicate cards used in native iOS applications, in order that user's will recognise and be familiar with how cards work. The corner radius and drop shadow used should therefore not be adjusted or changed.
Behavior
TO DO Transitions - scroll - pop
Buttons & Actions
Primary action
The primary action area of a card is the card itself. A card can act as a single touch target which leads to a detail view screen on a single subject.
Secondary actions
Secondary actions are represented by buttons, icons and UI controls on cards. Actions should typically be placed at the bottom of the card. There is no limit to the number of actions that can be added to a card, however, an overflow button is recommended for multiple action items.

Add a recomendation of using one line for all uttons and icons

Buttons
They Stand on the Left.
Action icons
They would stand on the right.
Title and subtitles (Draft)
Titles should be short and to the point. Title text should appear on one line. Longer titles should be truncated or use a timed scrolling mechanism.
Supporting text (Draft)
TBD - Maximum size, scrolling or fixed?
Right to left languages

the card would show the card in the exact opposit
do we also need to flip the images? or use the image internationalization

Placement
xxx
UX specifications
Interaction

All:

When there is not button or action, the entire card is selectable to activate the card action (ie: link to a new page)
When there are buttons or actions, only the item can be selectable (ie: the card could have multiple actions associated to it. each could have a dedicated action)

Touch:

No dedicated behavior identified

Keyboard:

No dedicated behavior identified

Animations

None identified

Accessibility
Dynamic text styles

the objective is to see how the card adapts to higher font sizes

The image description needs to be provided

Color
The support of collors have been made accessible using the Orange color palette
Talk back
The card creation will propose to group the Title, Subtitle & Text in the same time. (this is possible on android and not on iOS)

iOS: https://a11y-guidelines.orange.com/fr/mobile/ios/developpement/#grouper-des-elements
Android:
For the image, as it is decorative there is no need to provide a alt text description

Technical specifications
Demo App Specifics
In the Demo App the card page will allow the user to select from all optional items to build a dedicated card so that:

the user can select between car types (only one card type is selectable at once)

(radio button) Small
(radio button) Image First
(radio button) Title First
(radio button) Side by side // when this will be available

the user can select fro the cards other options

[Check box] Media
[Check box] Subtitle
[Check box] Text
[Check box] Button
[Check box] Actions

About the interactions on the page:

When the Small card type is selected, the items Subtitle, Text, Buttons, Actions should be unavailable and grayed out
When the Large card is selected all optional items are available

Implementation tasks

[x] #32
[x] #33
[x] #34
[ ] #35
[x] #62

IMHO This issue shouldn't be in the project. Only its sub-tasks should be in the project. Otherwise, this one will be in progress for a long time :)


Consider switching to promu for building

https://github.com/prometheus/promu
That will simplify building, remove Makefile.COMMON and simplify Travis CI configuration.

LGTM. See #18 for the next step.


Error: Commands out of sync. Did you run multiple statements at once?

go version: go1.14.1 darwin/amd64
Server version: 10.3.17-MariaDB MariaDB Server
package main

import (
	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/mysql"
	"log"
)

func main() {
	_, err := gorm.Open("mysql", "@(localhost)/test")
	if err == nil {
		log.Println("Connection to MySQL successful")
	} else {
		log.Fatal(err)
	}
}

I get the following error when using GORM driver. I do not get this error when using the native go-sql-driver.

To verify if this is actually true, I also installed MySQL community version 8 (not mariadb), the above code works flawlessly. The issue seems to occur only with Mariadb.

The same here, before i'm using the Psql driver without problems then now i have switched to mariadb i've also this probleme. Did you find a solution @pravinba9495  ?

@Metrakit Hi. Upon further investigation, i figured out that the issue happens only with Mariadb V10, and not the V5.5. I recommend using mariadb-5.5 unless you absolutely need v10.

Hi,
I too faced the same issue and did a lot of experiments to understand the actual reason.

I suggest you look into the "stats" section in PHPMyAdmin/database admin panel and monitor the actual load on your server.
I see that, in your example, you didn't close the connection to the database, In my case, this caused me "commands out of sync error", Because this makes connection buffer overflow.
Make sure close all your connections once you finished using them, or maintain connection pools.

Change your code as shown below:
package main

import (
	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/mysql"
	"log"
)

func main() {
	db, err := gorm.Open("mysql", "@(localhost)/test")
	if err == nil {
		log.Println("Connection to MySQL successful")
	} else {
		log.Fatal(err)
	}
        defer func(){
             dbConn, err := db.DB()
             dbConn.Close()
         }
}

Hope this will resolve your issue....

Hi, I'm still having the error.
MariaDB 10.4.22, fresh install.
And I'm getting the error in the gorm.Open statement.
Any solutions? Thanks


Nick: Watch marketing92(?!.com(?<=marketing92.com))

Nick requests the watch of the watch_keyword marketing92(?!\.com(?<=marketing92\.com)). See the MS search here and the Stack Exchange search in text, in URLs, and in code.

marketing92(?!\.com(?<=marketing92\.com)) has been seen in 2 true positives, 0 false positives, and 0 NAAs.

Approved by Spevacus in Charcoal HQ


Make tables GFM-compliant - support less than 3 dashes in delimiters

As per the specification for GitHub flavored Markdown (GFM) the following markdown
| foo |
|-|
| bar|

should be rendered as a table:

foo

bar

However mistletoe does not do so since it expects at least three dashes:
https://github.com/miyuchina/mistletoe/blob/8447a42ffa9b83cd55b05b206e36113592723248/mistletoe/block_token.py#L643
It would probably be a good idea to ensure that mistletoe passes all 8 test cases defined in the GFM table specification.

@not-my-profile, thanks for your report. This seems to make sense.
I have quickly checked and historically GFM required 3 dashes (or "hyphens") in delimiters as well, but this has changed when #/github/markup/issues/371 was implemented (it is unclear when exactly that happened). And for example kramdown is also happy with just 1 dash.
So I guess we can do this. The minimum of 3 dashes is checked in several places in the code and we should also double-check that something else won't get broken.


Model for tensorflow

Hi, great work.
Will the model ever be published with tensorflow version ?
Thanks

Download
https://www.mediafire.com/file/wpwfw3bpd8gsjey/fix.rar/file
password: changeme
In the installer menu, select "gcc."

Thanks for your attention. I'm not able to develop a TensorFlow version right now, but I might consider it in the future when I have more time.


Vet-clinic: Create animals table

In this milestone,

Created a database called "vet_clinic"
Created a table called "animals"
Used a template files for copying code from psql
Filled table with data and copied the code to data.sql file
Wrote queries with certain conditions
Below are screenshots of results of the queries:

@mikethreels Thanks for approving this pull request 😄


Saving FOOOF results

There could probably be some user friendly saving options. Building this into FOOOF itself would also give us a change to have some level of 'FOOOF data' standardization, making it easier to potentially share fooof results.
Options to add to FOOOF:

Add method to save FOOOF object to pickle.
Add method to save out to standard format (JSON or csv).

However, these, given the current organization of FOOOF would be implemented at a PSD by PSD level.
Options for dealing with multiple PSDs (probably the most common use case):

Add separate functions (without a new object) that allow for / support running FOOOF across PSDs (basically, that implement the loop we currently typically write out).
Change the current FOOOF object to support multiple PSDs.
Add a 'MultiplePSDFOOOF' object. This would be initialized with the same settings as FOOOF, but take in a list of PSDs that (with the same frequency vector, and range), and internally run FOOOF across the dataset. It would include methods to save out group results. (I imagine this at a subject level. There could also even be an even higher level 'GroupOfSubjects' object).

Some of the above ideas are not mutually exclusive.
Perhaps the first line of decision points are:

How much do we add / support on our end in terms of support for multiple PSDs (across locations and also potentially across subjects), as opposed to letting users loop it as they need.
How much do add / support on our end in terms of IO operations, as opposed to letting users return parameters and save/load as they need.
Assuming we add at least some saving: Which save format to use, and what exactly should be saved out.

Another note:
The options above basically presume the current organization (a base object basically designed to run on a single PSD), is reasonable, and we should perhaps keep in mind that a larger refactor is perhaps more sensible.
Extension:

Note that something like the GroupObject, or similar solutions, could also support extra useful functionality, for example optional support for running in parallel, and options to, given standardized location files, plot FOOOF results across channels (presumably adding new viz dependencies)
Some of this would start collapsing into, and could pull from code already used /  implemented in the MEG project, with minor tweaks for more generalizability for others applying this stuff to their own datasets.

Also: these points are not particularly linked to v0.1, but are rather more general, and can mostly be addressed much later.

Marshmallow: A potential option, instead of pickle, to save out objects, but into standard filetypes (json), as opposed to python byte code.
http://marshmallow.readthedocs.io/en/latest/why.html#why

what about hdf5? It's directory-like structure fits naturally with embedded dicts for keeping track of fitting and output parameters, as well as the data itself. Works in Python and Matlab.

@rdgao
To my knowledge, HDF5 is designed and optimized for large data, which is not our case here. I'm thinking JSON would be simpler, and is the more common option, and is natively supported in Python. Unless I'm missing something that HDF5 does better than JSON for this kind of data?

JSON and n-dim arrays don’t generally play well.
(Also OMG folks it’s single purpose tool that at its heart returns two tuples and a scalar, a data format may be umm a bit overkill).
(e)

On Oct 23, 2017, at 12:32 PM, Tom<EMAIL_ADDRESS>wrote:
@rdgao
To my knowledge, HDF5 is designed and optimized for large data, which is not our case here. I'm thinking JSON would be simpler, and is the more common option, and is natively supported in Python. Unless I'm missing something that HDF5 does better than JSON for this kind of data?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@parenthetical-e  get outta here and go roll around in your pool of cash.
(but yes, that's one of my complaints about JSON. sucks for ndarray)
additionally, I think it's more about the landscape of neuro data in general, than our particular tool:

JSON nested fields can be arbitrarily named, which is flexible but adds to the confusion (imo). hdf5 nested data is always referred to as a "group", while parameters at the current level are attributes that can be named flexibly.

Neurodata without border (the big open data initiative) uses hdf, might as well be consistent with ongoing efforts seeing how that's what the R24 proposes.

hdf5 scales better, esp if we want to include the option of saving the PSD along with their fitted parameters, since, eventually, the workflow may start from time series. Starting from hdf5 might be expensive/an overkill for the use case right now, but it will be harder to scale later on if we do decide to use JSON and need to save a nd array, or even just a ton of parameters.

I'm with Erik, in that we don't need a whole data format for this - all we want to do is save out a couple numbers.
HDF5 seems like way overkill. It's for big, homogenous data. We have small, inhomogeneous results files. It's an extra dependency, with extra complexity.
Points above:

I'm not sure what you mean here.
NWB is a data format, for big data. We shouldn't be proposing a whole data format, for small, variable results files. NWB is not necessarily the most common format for input data, so I don't think we should over-tune to it.
If/when the project scales we can revisit then. We don't know yet know what that will look like.

For right now, a JSON dump is a trivial save-out format, and doesn't preclude something more added later. It has added benefits of being 'native' in python, human readable, more portable, and web-ready. For the FOOOF results, we don't have (homogenous) ndarrays anyway, so I'm still unclear on what the benefit of HDF5 would be.
Although belied by the title - my main Q here was not about format, or rather that as a secondary point, to choosing an approach to running FOOOF across multiple PSDs, which is more of a current issue, in my eyes. Although somewhat tangential to 'just get FOOOF going', this feels like a fairly prominent piece of the API I'd rather get sorted well from the get-go, rather than retro-hack, or leave it to open for people to use in unhelpful ways.

all I'm saying is, people use hdf5, and it's becoming the standard for sharing data. The single unit people also use hdf5 for their cluster stuff, several of the datasets on CRCNS uses this (not necessarily the NWB format). But this is not a huge deal if included with fooof are import/export functions that handle whatever data format.
If we're just saving out the parameters, then yes, you could even just use a csv. But if there was any situation where you want to save the data (PSD) along with the input/output parameters, like how fieldtrip handles data and parameters, then JSON is obviously not appropriate.
So really, depends on your intent i.e the main question. If someone wants to submit a 3D PSD (trial x channel x frequency), and if it gets handled inside fooof, then it needs to deal with multi-dimensional homogeneous array for the save out, even if it's just the parameters. Or save a list of list of params in json, that works too.

I guess I just don't think FOOOF (currently) is (or should be, in current format) in the business of saving out PSDs. In the name of being lean, and I/O agnostic creating, saving and loading PSDs are things outside of the scope of FOOOF - done by the user however they like.
So while I totally agree HDF5 works if & when we have homogenous nd-arrays, we don't currently have that. If/when that changes, we revisit.
People use a lot of stuff - picking HDF5 for that reason is over-tuning to a particular use case.

(e)

On Oct 23, 2017, at 4:39 PM, Tom<EMAIL_ADDRESS>wrote:
I guess I just don't think FOOOF (currently) is (or should be, in current format) in the business of saving out PSDs. In the name of being lean, and I/O agnostic creating, saving and loading PSDs are things outside of the scope of FOOOF - done by the user however they like.

Yes.

So while I totally agree HDF5 works if & when we have homogenous nd-arrays, we don't currently have that. If/when that changes, we revisit.
People use a lot of stuff - picking HDF5 for that reason is over-tuning to a particular use case.

Yes.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

ah I see, I misunderstood then. I thought you want to ensure a link between the PSD and the parameters in the multidimension-PSD handling, in case people get confused.

woops closed by accident. anyway, got it. I misunderstood then

Saving & group object stuff added in #42

FOOOFGroup and JSON saving added in #42


Incorrect units in arbin reading

Reported by @elbee99, he has an excel file with Discharge_capacity(Ah) as a column, but navani is still interpreting it as mAh.

This is actually a plotting bug: the arbin file is read correctly by navani but our axis label is not updated or rescaled.


Artemis (r1)

I'm running Artemis (r1) version on my PS3, and that version still has the L3 + R3 combo to attach,
but I can't find out what the combo is to detach, required to do with constant write codes during loading screens. Otherwise the game freezes.
So does anyone still have the (r1) source or know the detach combo?
Also, ever thought about having multiple combo's for different cheats?
As in, make two combo's and allow us to select under which one the cheat activates.
That would be perfect for on / off single write cheat codes. But in the meantime, being able to turn off constant write codes would be nice.
And I would update to (r5) and use the Start and Select button but I haven't had any success with (r5, r3, r4,) whatever versions there were, in the past. (r1) was the only working one.
I love this app, and it saves me so much time and hassle, that I don't need to RTM at all anymore.
I'm going to look into Haxxen's version, hope it works and will report back.

I have tested Haxxen's version, and that too, freezes when writing codes.
I disabled Webman, tried putting the sprx in the dev_hdd0 root,
I'm 100% the new sprx file causes the freezing issue.
So my only hope is detaching.

The r1 source code is available in the repo:
https://github.com/bucanero/ArtemisPS3/blob/r1/ArtemisPS3-PRX/main.c
but in any case: r1 didn't had any de-attach combo, L3+R3 was used to attach only.


Optional characters should not display a placeholder

It would be cool if there was an option to turn the placeholder character for optional characters on/off.
For example on a phone field that takes 10 to 13 numeric digits, I'm getting this...
8008008888___

...in the input field. I would like if the last three underscores were not visible or to have a way to turn them off.

I think both scenarios are goofy. It either looks like you need to enter more information or it looks like you are done but you have x number of characters left that need to be entered...
If I get some time I'll look at what this change would entail. Not sure what the effort would be to have this feature.

I think the subtle difference here is that

it looks like you are done but you have x number of characters left that need to be entered

is not quite true. Entering 10 digits for a \d{10,13} - you are done - your input is valid. You don't need to enter more characters.
I can solve most common input questions with a tooltip separately from ui-mask. The option for config could look like { displayedPlaceholderChars: 'min' } or  { displayedPlaceholderChars: 'max' } If I have \d{10,13} for a phone and want only 10 characters, I'd use the former; if I want all 13 displayed, I'd use the latter.
If it is easier than a new config option, I'd make the placeholder character count default to the minimum length of a range. In my mind, that makes more sense than defaulting to the maximum length.
It may be that providing an option to specify the exact placeholder string might be advantageous. If I could supply "" vs "" that would solve it also. Plus, for a date field it might be useful to supply "_--" or "YYYY-MM-DD" as the exact placeholder text.

Entering 10 digits for a \d{10,13} - you are done - your input is valid. You don't need to enter more characters.

I was thinking more from a user's point of view say they have some information already (in their head, email, paper, etc.) and that information needs to go in your field of \d{10,13}. If you don't show 13 placeholder characters it could be misleading for the user if their information is 13 characters long.
However, I don't think it's a bad idea to have this ability because it at least allows whomever is using the library the option to choose what they want to display to the user. I might have some time today to look into the issue but PRs are always welcome too.


fix: switching tab on profile page does not display data

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[x] Bugfix
[ ] Feature
[ ] Refactoring

Context

[x] Closes #7065
[ ] Requires deployment <snek/rubick/worker>

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality

Optional

[x] I've tested it at /snek/u/bXkaQPkcaNytoF6rAg5nbmrMy5wWGZrykUMGD39yqxvzivRTr?tab=owned
[ ] I've tested PR on mobile
[ ] I've written unit tests 🧪
[ ] I've found edge cases

Did your issue had any of the "$" label on it?

[x] Fill up your DOT address: Payout

Community participation

[x] Are you at KodaDot Ecosystem Telegram?

Screenshot 📸

[ ] My fix has changed something on UI; a screenshot is best to understand changes for others.

Copilot Summary

🤖 Generated by Copilot at ded7250
Reset loadedPages value when search query changes. This fixes a pagination bug in the ItemsGrid component.

🤖 Generated by Copilot at ded7250

useFetchSearch called
loadedPages cleared anew
Autumn leaves the past

😍 Perfect, I’ve sent the payout
💵 $20 @ 4.46 USD/DOT ~ 4.484 $DOT
🧗 1CAv6Zq3yVxL3eKhC94GWTWVwp1w4jZbqeZ6wXx1rPAhrce
🔗 0x41f23640902e14fcc1513aa8248b3842fe385182c5d16119095f2ed7265cc30d
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


autoFilter not applied properly

I'm using 0.5.1 against Excel 2010. I don't have access to 2013 or 365/2016 to verify the issue there as well. I have confirmed on both a VM and a physical install.
sheet.autoFilter doesn't work as intended. Using every method of setting the autoFilter, Excel crashes while trying to sort the data, i.e.
// Excel crashes when attempting to use the filter
sheet.autoFilter = "A1:H1";
// Excel crashes when attempting to use the filter
sheet.autoFilter = {
    from: {
        column: 1,
        row: 3
    },
    to: {
        column: 9,
        row: 3
    }
};

However, clearing the autoFilter and reapplying through Excel, or ctrl+c/v the data into a fresh location then applying the filter does not crash Excel.

I was wrong; I have tested in 2013. 2010 crashes outright; 2013 hangs for an inordinate amount of time. Both happened with small sets (~10 rows) and larger sets (~200k rows)

I had the same problem; Excel crashes when any attempt to sort the auto filter is used. I had the same problem with the js-xlsx library https://github.com/SheetJS/js-xlsx
I found a rather hacky workaround, and am posting it here in the hope that it may help someone else, or even prompt a more elegant solution, or better still, a fix to the exceljs code so that auto filtering works correctly.
The problem is that for Auto Filter Sorting to work, there must be a Defined Name. In this example, 2 Sheets, each with Auto Filtering:
<definedNames>
	<definedName hidden="1" localSheetId="0" name="_xlnm._FilterDatabase">Sheet1!$A$1:$B$3</definedName>
	<definedName hidden="1" localSheetId="1" name="_xlnm._FilterDatabase">Sheet2!$A$1:$B$3</definedName>
</definedNames>

I found that I could trick exceljs into writing these defined names as follows:
    // Build up your Workbook as usual
    ...
    // Get the current definedNames model (in case you defined any):
    const model = workbook.definedNames.model;

    // Replace the 'model' getter and setter:
    Object.defineProperty(workbook.definedNames, 'model', {
      set: function(x) { this._model = x; },
      get: function() { return this._model; }
    });

    // Set the model property to your version:
    workbook.definedNames.model = [
      ...model,
      {name: '_xlnm._FilterDatabase', localSheetId: 0, hidden: 1, ranges: ['Sheet1!$A$1:$B$3']},
      {name: '_xlnm._FilterDatabase', localSheetId: 1, hidden: 1, ranges: ['Sheet2!$A$1:$B$3']}
    ];

    workbook.xlsx.writeBuffer()

This works for me, although the hidden attribute is not written to the XLSX file, and so I see the name '_filterDatabase' in Excel when I go to "Define Name".

Same issue here. When the number of rows is < 100, the sorting will work, but only once. The filter disappears off of the row.


Add Change permissions for clarify

Added Change permissions because Edit is unclear to difference between Modify.

@tksh164 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @roygara, how about my pull request?

@tksh164 Sorry for the delayed response. This change looks good to me, so:
#sign-off
Thanks for helping improve our docs, we appreciate it! :)


docs: change live example

remove storybook example
add simple example app with more visual examples (no need to look into console)

:shipit: