“What happens if I remove ...?”

Thanks for this really helpful tool! I have used quite a lot in the last few days to check and refine my character set.
Many years ago, I wrote a script that does something similar but checks against the Unicode CLDR, more specifically, the way Font Book on macOS determines the supported languages (which seems to be based on the CLDR).
I just uploaded the code:
https://github.com/justanotherfoundry/font-production/tree/master/import CLDR
and
https://github.com/justanotherfoundry/freemix-glyphsapp/blob/master/Font Book Checker.py
As you can see, this is a very similar approach.
My script also determines characters that are not required in any of the supported languages. In other words, deleting these characters would not change the list of supported languages. This is a good way of finding useless characters in the character set as they are used only in languages that are not fully supported anyway. (I believe most of the fonts out there have a lot of these useless characters.)
Before simply relying on the CLDR, and removing all these characters, I’d like to check what TalkingLeaves and Hyperglot say about them (I don’t have much of an opinion (yet) which of the two is more correct). So, what happens if I remove this or that character? Will the list of supported languages as per TalkingLeaves change? At the moment, checking this is very tedious: Essentially, I need to go through the list of incomplete languages and try to spot the languages where all missing characters are among the ones I just deleted.
Would it be possible to have TalkingLeaves output the list as text in the Macro Panel? Then I could simply start TalkingLeaves, copy the output, delete some characters, start TalkingLeaves again, and do a text diff. If nothing changes then the deleted characters were indeed useless as per CLDR as well as Hyperglot.
As a side note, it would be nice to have a palette that gives information on the currently selected glyph (or glyphs): which languages it is required for according to Hyperglot and according to the CLDR, plus the number of speakers, and whether these languages are complete or not. Plus, maybe a Wikipedia link. Then I could make up my mind whether to keep or remove the glyphs, one by one. Maybe I will write something like that at some point.

I love that palette idea! It would be interesting to see what languages require the selected character(s). A lot of Unicode characters have a Wikipedia article so that could work, too.
I don't know much about the CLDR yet, so I definitely need to dig into that and see how it might be useful for TalkingLeaves. The update I pushed yesterday adds a data.py module which lays some of the groundwork for integrating more data sources like Shaperglot and CLDR. It'll be some work to figure out the best ways to merge the data together and deal with differences when, for example, Hyperglot and Shaperglot may have slightly different orthography definitions for the same language.
I think once I've begun integrating multiple data sources beyond just Hyperglot, then it would be useful to work on making TalkingLeaves more usable as an API, for users who want to write scripts. For now, you can already write scripts that import it as a module, with the big caveat that your scripts might break when TalkingLeaves is updated.
Here's an example of how you could print a list of chars in the font that aren't used by any languages that your font has completed:
from TalkingLeaves.data import Data
from TalkingLeaves.utils import flatten

data = Data()

# Don't need this table, but it generates data.completeLangs
_ = data.langsAsTable('Latin', Glyphs.font, True, True)

completeNames = list(data.completeLangs.loc[:, 'name'])
completeLangs = data.langs[data.langs['name'].isin(completeNames)]
completeCharsets = list(completeLangs.loc[:, 'chars'])
completeChars = set(flatten(completeCharsets))
fontChars = set(g.string for g in Glyphs.font.glyphs)

# Unneeded chars
print(sorted(fontChars - completeChars))

From there you may want to filter out punctuation and symbols, since Hyperglot's orthography definitions only cover letters and marks.

As a side note, it would be nice to have a palette that gives information on the currently selected glyph (or glyphs): which languages it is required for according to Hyperglot and according to the CLDR, plus the number of speakers, and whether these languages are complete or not. Plus, maybe a Wikipedia link. Then I could make up my mind whether to keep or remove the glyphs, one by one. Maybe I will write something like that at some point.

I wrote a plugin that shows such a palette for the current glyph, also based on Unicode CLDR: https://github.com/jenskutilek/UnicodeInfo-Glyphs

Feel free to reuse/adapt parts if you need any :)

@justinpenner Thanks! That looks really promising. However, I am getting a beach ball when I run this code. Also, the regular TalkingLeaves now crashes. I will submit this as a new issue.

@jenskutilek Aha, I knew someone must have had this kind of idea. If I will pursue it any further I’ll surely build on your plugin. Thanks!

I played around with the “unneeded characters” script above. The list includes the Cyrillic Ѐ, which is, according to Hyperglot, required for Bulgarian, and Bulgarian is complete in my font. If I delete this glyph from the font, TalkingLeaves shows Bulgarian as incomplete with only this character missing. This means the list of “unneeded characters” reported by the script is not what I would expect it to be. I am looking for characters I can remove without reducing the list of complete languages.

Does it work if you change the first argument in this line to Cyrillic instead of Latin?
_ = data.langsAsTable('Latin', Glyphs.font, True, True)

If you already tried that, then I'm not sure what's going wrong. It works correctly for me if I create a font and add Bulgarian to it via TalkingLeaves. The script reports no unneeded Cyrillic chars for me:
[' ', ',', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']

Does it work if you change the first argument in this line to Cyrillic instead of Latin?

It does! Seems like we’d have to loop over several scripts? Sorry, I don’t know enough about pandas so I cannot debug the code.

Seems like we’d have to loop over several scripts? Sorry, I don’t know enough about pandas so I cannot debug the code.

Exactly, you can loop over multiple scripts like this, and you don't need to add any new pandas code:
from TalkingLeaves.data import Data
from TalkingLeaves.utils import flatten

data = Data()

# Don't need this table, but it generates data.completeLangs
completeNames = []
for script in ['Latin', 'Cyrillic']:
	_ = data.langsAsTable(script, Glyphs.font, True, True)
	completeNames.extend(list(data.completeLangs.loc[:, 'name']))

completeLangs = data.langs[data.langs['name'].isin(completeNames)]
completeCharsets = list(completeLangs.loc[:, 'chars'])
completeChars = set(flatten(completeCharsets))
fontChars = set(g.string for g in Glyphs.font.glyphs)

# Unneeded chars
print(sorted(fontChars - completeChars))

By the way, I found pandas surprisingly easy to learn. It's very Pythonic and I found it easier to understand after looking up a "cheat sheet" of common commands. I've only scratched the surface so far, but it didn't take long to learn the basics so I could plug it in to TalkingLeaves.

@jenskutilek I implemented what I described above, on the basis of your Unicode Info plug-in: https://github.com/justanotherfoundry/UnicodeInfo-Glyphs Did you get my e-mail?

@justanotherfoundry it took me a while to answer, sorry for that! I hope you got my reply by now.


Service Request by Corinna  Noel about Specification and Monitoring

[x] Qualtrics Service Request Form was received from User
[x] e-mail acknowledging that User's Qualtrics Service Request Form was sent
[ ] Problem NOT RESOLVED
[ ] Problem PARTIALLY RESOLVED
[ ] Problem FULLY RESOLVED and Issue is Closed
[ ] Qualtrics Post-Service Request Survey was sent to User

Use comments feature (below) to document:

A clear and concise description of the solution.

A clear and concise description of any alternative solutions or features you've considered.

Any additional context, such as screenshots about the problem.

From: David Lounsbury<EMAIL_ADDRESS>Sent: Wednesday, September 29, 2021 10:10 AM
To: david lounsbury<EMAIL_ADDRESS>Subject: IPA Tracker Support Request Form Submitted
IPA SERVICE REQUEST SUMMARY

CONTACT INFORMATION:

Corinna  Noel
Email<EMAIL_ADDRESS>Phone:<PHONE_NUMBER>

COUNTY

Cayuga

WHICH FEATURE(S):

MONITORING: Creating, updated or deleting information about an implemented SMART Strategy

BRIEF PROBLEM DESCRIPTION:

After our coaching call on Monday, I went into the system to make sure that the baseline of each of the measures matched up with each of our strategies and data sources. I got about halfway through this process (B1 measure edits were successful) when I noticed that the edits that I made to the baseline values/periods somehow led the measures to completely disappear (I definitely did not accidentally delete these measures). I can share some screen shots if needed. This happened with the measures for B2-PWOUD, B3-Retention Peers, and B3-Retention Supp. Housing. Please advise -- I will not make any further changes until this is resolved, and the measures are restored. Thank you.

URGENCY:

50

ANYTHING ELSE TO SHARE:

From: david lounsbury
Sent: Wednesday, September 29, 2021 10:29 AM
To<EMAIL_ADDRESS><EMAIL_ADDRESS>Cc: Donrie Purcell<EMAIL_ADDRESS>Nicholas Bove<EMAIL_ADDRESS>Subject: FW: IPA Tracker Support Request Form Submitted
Importance: High
Hi Corrina:
Thanks for reaching out about this.
We can investigate with you!
I think Donrie is best positioned to follow up with you, hopefully today. It may be easiest to have a Zoom meeting, at your convenience, to see if we can problem-solve with you.
Best and thanks,
David

From: Corinna A Noel<EMAIL_ADDRESS>Sent: Wednesday, September 29, 2021 10:31 AM
To: david lounsbury<EMAIL_ADDRESS>Cc: Donrie Purcell<EMAIL_ADDRESS>Nicholas Bove
<EMAIL_ADDRESS>Subject: Re: IPA Tracker Support Request Form Submitted

CAUTION: This   email comes from an external source; the attachments and/or links may   compromise our secure environment. Do not open or click on suspicious emails.   Please click on the “Phish Alert” button on the top right of the Outlook   dashboard to report any suspicious emails.
Thanks, David.

Donrie, I am available today anytime after 1pm,
so let me know if there is a time that is best for you.

Best,
Corinna

So, @donriepurcell, let's see if this is a bug, or not. I think the matter is about changing SPECIFICATION info, which drives MONITORING prompts, etc.

From: Donrie Purcell<EMAIL_ADDRESS>Wednesday, September 29, 2021 at 10:40 AMTo: Corinna A Noel<EMAIL_ADDRESS>Re: IPA Tracker Support Request Form SubmittedHi Corinna This is quite serious if your details are correct. Please let me know if we can meet now.I do have some time to address this before I meet with David at 11am. If you can’t then we will meet at your suggested timeRegardsDonrie Purcell, PhD, MPH Every generation has the obligation to free men's minds for a look at new worlds,....to look out from a higher plateau than the last generation.Ellison S. Onizuka CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and/or privileged information. Any duplication, copying, distribution, dissemination, transmission, disclosure or use in any manner of this email (including any attachments) without the authorization of the sender is strictly prohibited. If you receive this email (including any attachments) in error, please notify the sender and delete this email (including any attachments) from your system. Thank you.    From: Corinna A Noel<EMAIL_ADDRESS>Wednesday, September 29, 2021 at 10:31 AMTo: david lounsbury<EMAIL_ADDRESS>Donrie Purcell<EMAIL_ADDRESS>Nicholas Bove<EMAIL_ADDRESS>Re: IPA Tracker Support Request Form Submitted
CAUTION: This email comes from an external source; the attachments and/or links may compromise our secure environment. Do not open or click on suspicious emails. Please click on the “Phish Alert” button on the top right of the Outlook dashboard to report any suspicious emails.
Thanks, David.  Donrie, I am available today anytime after 1pm, so let me know if there is a time that is best for you.  Best,Corinna From: david lounsbury<EMAIL_ADDRESS>Wednesday, September 29, 2021 10:28:57 AMTo: Corinna A Noel<EMAIL_ADDRESS>Donrie Purcell<EMAIL_ADDRESS>Nicholas Bove<EMAIL_ADDRESS>FW: IPA Tracker Support Request Form Submitted Hi Corrina: Thanks for reaching out about this.  We can investigate with you! I think Donrie is best positioned to follow up with you, hopefully today. It may be easiest to have a Zoom meeting, at your convenience, to see if we can problem-solve with you. Best and thanks, David   David W. Lounsbury, PhDAssociate Professor, Epidemiology & Population HealthAssociate Director, Patient-Centered Outcomes Research TrainingDepartment of Epidemiology & Population HealthDivision of Health Behavior Research and Implementation ScienceAlbert Einstein College of<EMAIL_ADDRESS>e-mail718.839.7452 office917.690.1020 cell

Hi Jeff
It appears quite serious the bug
Here is a screen shot.

This is a result of having Other measures that she had written herself.
We removed that capability and the measures she had defined were not created in the Options, so when she saved it, it saved the blank measure. Not really a bug, just bad timing and no Other measure matched what she had created.

I restored the two measures for B2-PWOUD and if you go in and try to edit one of them, you'll see what I mean.

There is always a blank measure for each strategy in the download. That is the db record that houses the population at risk, priority sectors, etc. You will see that those values are not present for the records that have a measure. It is redundant data to include on every record but can be done if you'd like.

I don't know, I am leaning not on my own understanding of things.
Do you think we can set up the download in such a way that we have all the fields are populated with the relevant or corresponding data albeit redundant and eliminate the unnecessary field without a measure.
Reason bein we want to pull the data into sas or spss for analysis and somehow this makes our life easier.
I don't know what  you think but you can always advise me best.

@jbazinet1111 and @donriepurcell
So, they way the download works now is okay. And we know how to quickly structure that data (via Excel text functions) to create dummy variable for each SECTOR value and for each SPEC POP value that is tagged. We have found it useful to be building flat table files with rows showing infor at the level of IPA/Strategy/Measure. (If you are following my English, here).
So, to Donrie's point, I think that that redundancy is okay in the download for the strategies, so that these values are repeated in all rows for all measures in at given IPA/Strategy. This would save us some data table reorganizing, when we are creating data tables for analyses and reports.
THANKS,
David

This change has been deployed.

Ok. We will check it out!
THANK YOU JEFF

@donriepurcell Has this been resolved? Please follow up with Corinna!!


Onboarding Component suddenly requires opening a new window to gather information

I had the onboarding component working perfectly with our implementation, with the form showing as an iframe right in our website (as expected), but now all of a sudden I'm not getting the form anymore.
Instead I'm getting this button to "Add information", and when clicked, it opens the form in a new window, completely unstyled (and I'm not even sure that it's the right form):

Nothing has changed in our implementation since it was working a couple weeks ago. I've tried downgrading to different versions of @stripe/connect-js and @stripe/react-connect-js with no luck, same issue regardless of version, which makes me wonder if there's been a change to the iframe that's being loaded in server-side.
This is our code, which is based on the example in the Stripe documentation:
const StripePayoutOnboarding: React.FC<StripePayoutOnboardingProps> = (props) => {

    const { UserSettings } = React.useContext(UserSettingsContext);

    const [stripeConnectInstance] = React.useState(() => {
        const fetchClientSecret = async () => {
          // Fetch the AccountSession client secret
          const response = await fetch(`http://iroomit.gogudanetwork.com:3000/payments/connected/getAccountSession`, {
              method: 'POST',
              headers: {
                'content-type': 'application/json'
              },
              body: JSON.stringify({
                session: UserSettings.sessionId
              })
            });
          if (!response.ok) {
            // Handle errors on the client side here
            const {error} = await response.json();
            console.log('An error occurred: ', error);
            return undefined;
          } else {
            const token = await response.text();
            console.log(token);
            return token;
          }
        }
        return loadConnectAndInitialize({
            // This is your test publishable API key.
            publishableKey: process.env.NEXT_PUBLIC_STRIPE_API_KEY,
            fetchClientSecret: fetchClientSecret,

            appearance: {
              overlays: 'dialog',
              variables: {
                spacingUnit: '12px',
                colorPrimary: '#000000',
                borderRadius: '4px',
                formHighlightColorBorder: '#000000',
                colorBorder: '#a0a0a0',
                buttonPrimaryColorBackground: Colors.primary,
                buttonPrimaryColorBorder: Colors.primary,
                actionPrimaryColorText: Colors.primary,
                formAccentColor: Colors.primary
              },
            },
          })
        });

      return (
              <ConnectComponentsProvider connectInstance={stripeConnectInstance}>
                <ConnectAccountOnboarding onExit={() => {
                    stripeConnectInstance.logout();
                    props.onExit?.();
                }}/>
              </ConnectComponentsProvider>

      )
}

And I've made sure the client_secret sent back from the server is valid too:
export function getConnectedAccountSession(accId: string) {
  return stripe.accountSessions.create({account: accId, components: {
    payments: {
      enabled: true
    },
    payouts: {
      enabled: true
    },
    account_onboarding: {
      enabled: true
    }
  }
  });
}

Again nothing has changed on our end and it was working fine before, which I find very strange. Tested in both Firefox and Chrome with the same results. Any ideas?

Nevermind, just read about authentication

For future reference, here are the doc around user authentication and around the external_account_collection parameter


Add docstrings

Add more docstrings in narwhals.dataframe.DataFrame class
Fix indentation in pre-commit file

I think I fixed everything

Also, I removed some doctest skips, as the doctests pass without them. For group-by, we can get a consistent output by adding a sort

Thank you @frnmst ! Seriously good docstrings here, well done!
Little tip - I'd suggest making a new branch for each new PR (rather than opening PRs from main), it just makes it a bit easier to review

Ok, will do

Also, I removed some doctest skips, as the doctests pass without them. For group-by, we can get a consistent output by adding a sort

Ok, I'll keep that in mind for the next docstrings


Consider merging with SIMDe?

We'd love to have you participate!
Bonus, we already have lots of test cases and implementations for other archs and ISAs
https://github.com/simd-everywhere/simde/issues/1087

Hi @mr-c I am curious about what exactly is the merging you mentioned?
Does it mean moving the whole codebase under SIMDe or just import it in someway?
The current version of neon2rvv is far from stable yet. If I wish to do fast iteration, then staying in a independent repo would make things easier. And the current toolchain using in this repo is a weekly built release by myself.
https://github.com/howjmay/prebuilt-riscv-spike/releases/tag/latest
It is not a stable official version.
It would be great to know more details, and find a way to cooperate. However, in this moment has an independent repo may help me develop faster.

The existing code will need to be adapted to the SIMDe way.
For example,
https://github.com/howjmay/neon2rvv/blob/84c6f941bb219142a0092e81b04a8641bff5ed92/neon2rvv.h#L160
would be added to
https://github.com/simd-everywhere/simde/blob/c877fe596198b9df22d9cef7416e80ae30f0489c/simde/arm/neon/add.h#L486-L513
with something like
#elif defined(SIMDE_RISCV64_RVV_NATIVE)
  r_.vint8m1 =  __riscv_vadd_vv_i8m1(a_.vint8m1, b_.vint8m1, 16);

And would be testing by the existing test:
https://github.com/simd-everywhere/simde/blob/c877fe596198b9df22d9cef7416e80ae30f0489c/test/arm/neon/add.c#L845-L911
But first we'd need to add the RVV native types to the simde_*_private types:
https://github.com/simd-everywhere/simde/blob/c877fe596198b9df22d9cef7416e80ae30f0489c/simde/arm/neon/types.h#L474-L484

However, in this moment has an independent repo may help me develop faster.

And that is great! We are ready for you when you are; no rush :-)

My another repo which solves the translation between see and rvv has covered around 35% of the intrinsics
https://github.com/howjmay/sse2rvv

Hello @howjmay ; could you review https://github.com/simd-everywhere/simde/pull/1130 and compare that with your approach?

Let me try! That is a huge PR 😆


xcode-wrapper: allow xcodebuild to fail in version check

With the current beta of Xcode 16.0, the xcode-wrapper derivation fails with error code 141. No additional output is generated. I traced this back to xcodebuild -version failing when its output is piped to head. I think this is because head closes xcodebuild’s stdout after the first line, which xcodebuild does not like.
Description of changes
Fixed by allowing xcodebuild to fail within the pipe used for version number extraction.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[x] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

With the Xcode 16 beta, the Nixpkgs xcode-wrapper fails to build.
xcodebuild does indeed return a nonzero exit code when output is piped to head -n1. I guess it does not handle the fact that its stdout is closed when it wants to output its second line. We could try and get Apple to fix this, but I thought this can be an acceptable fix as we don’t really care about the xcodebuild exit code as long as the version number it outputs is the expected one.

As always apple coming out with the most mind boggling behaviors that make no sense.
I'd rather not just ignore Xcode errors. Could we not just pipe it through cat first so it reads all lines?
    currVer=$($out/bin/xcodebuild -version | cat | head -n1)

Based on your description that should not fail right?

I investigated some more and the problem is not specific to xcodebuild or macOS at all. It also happens on Linux with other tools.
tl;dr: When piping output to a tool that may exit prematurely, without consuming all its input, the process on the left of the pipe receives a SIGPIPE and the standard reaction leads to exit code 141.
So piping to head -n1 within a script with pipefail enabled is brittle and may break as it does here. This should work reliably:
versionInfo=$($out/bin/xcodebuild -version)
currVer="${versionInfo%%$'\n'*}"  # Xcode version is in the first line

Do you think this is better than masking the exit code with || true? It should be more robust, as it checks the exit code, but conveys the intention a little less clearly.

This also works, maybe the best compromise? Do you have a preference?
currVer=$(head -n1 <(xcodebuild -version))

But I don't see pipefail enabled in that buildCommand. Where are you getting pipefail from there?
Also, I see no such behavior from Xcode 15.1.

But I don't see pipefail enabled in that buildCommand. Where are you getting pipefail from there?

I think it’s default with the stdenv builder.

Also, I see no such behavior from Xcode 15.1.

Me neither. I guess this is either consistent luck (the situation is inherently racy), or between the versions things got split in xcodebuild from one printf for both lines to one per line or something like that.

I think it’s default with the stdenv builder.

Oh, interesting, that's good to know.
Well, I tested it with pipefail and can't reproduce it:
 > cat test.sh
#!/usr/bin/env bash
set -ee
set -o pipefail
xcodebuild -version | head -n1

 > ./test.sh
Xcode 15.1

 > echo $?
0

Can you with the newer version?

Thanks for the script. With the Xcode beta, I can even demonstrate it’s racy:
Michael@carpo:~/Desktop > cat test.sh
#!/usr/bin/env bash
set -ee
set -o pipefail
xcodebuild -version | head -n1

Michael@carpo:~/Desktop > ./test.sh
Xcode 16.0

Michael@carpo:~/Desktop > echo $?
0

Michael@carpo:~/Desktop > ./test.sh
Xcode 16.0

Michael@carpo:~/Desktop > echo $?
141

Indeed this seems to be a problem with Xcode 16 beta.
./test.sh
Xcode 16.0
echo $?
141
./test.sh
Xcode 16.0
echo $?
141

after switching locally to stable Xcode 15.4
./test.sh
Xcode 15.4
echo $?
0
./test.sh
Xcode 15.4
echo $?
0
./test.sh
Xcode 15.4
echo $?
0

Current Nixpkgs no longer contains the incriminated line.
This was fixed by 15d5ce3687725ed41921289a1ab8fdbe1a69e5e4.


Proposal - Support themesDir option

I would like to configure where my themes are located. Currently the "themes" dir name is hardcoded (path.go#L213) and not configurable. My proposal is to add a themesDir option (in addition to dataDir, staticDir, etc.):
themesDir: 'assets/docs/themes'
theme: 'myTheme'

In this case, hugo would use asset/docs/themes/myTheme as the theme folder.

Great idea. Do you want to code it?

I'm not familiar with the codebase but I will try :-)
Steve Francia<EMAIL_ADDRESS>schrieb am Sa., 7. Nov. 2015 um
14:02:

Great idea. Do you want to code it?
—
Reply to this email directly or view it on GitHub.

It seems like it might be more useful to just have a themePath option. Then I could use it like hugo server -wD --themePath . --source exampleSite during theme development.

@AldenJole I like that idea as well. Not sure which one is better. Probably yours, it's simpler. Is there a valid use case for the themeDir approach if we have themePath?

Eventually we might be able to replace the whole themeDir concept with themePath and then just put them in themes by convention. Then the config option would look like theme = "themes/<theme-name>". That would also give use the ability to specify remote themes, e.g., github projects.

I agree. I like this much better.
--
Steve Francia
http://stevefrancia.com
http://spf13.com
http://twitter.com/spf13
On Sun, Nov 29, 2015 at 12:35 PM, Alden Jole<EMAIL_ADDRESS>wrote:

Eventually we might be able to replace the whole themeDir concept with
themePath and then just put them in themes by convention. Then the config
option would look like theme = "themes/". That would also
give use the ability to specify remote themes, e.g., github projects.
—
Reply to this email directly or view it on GitHub
https://github.com/spf13/hugo/issues/1556#issuecomment-160434783.

We maybe be able to figure out a reasonable way to parse the theme option to figure out if it's a path or not.

Fixed by #2817


STORM-2898: Support for WorkerToken authentication

This adds in support for workers to be able to authenticate with either nimbus or drpc invocation servers using WorkerTokens.
A WorkerToken is a lot like a delegation token in Hadoop.  See the jira for the design of this.
Some of the things I did in this beyond just worker tokens.

I ported auth-test to java (STORM-1301).  Because I wanted to reuse the code there to verify that this feature was working properly, and I didn't want to leave it in clojure.
I refactored how the zookeeper ACLs are passed into the StormClusterStateImpl.  They now are done from methods in DaemonType because I though it made the code cleaner, and provided a good place to add in the new ACLs needed to secure WorkerToken private keys that need to be shared in one case among all nimbus instances and in another case with the DRPC servers.
I refactored the digest authentication sasl code.  I did this to make it simpler to add in support for tokens that also use the same method and get a more code reuse.
I deprecated the sasl plain auth transport plugin.  It was not being used by any tests.  It is totally insecure in so many ways, and I didn't want anyone to mistakenly think it was OK to use it.  If others are using it for some of their testing internally I can remove the deprecation.
I cleaned up some check style violations for code that I was touching.

I know this is a lot of code, so thanks to anyone who can help review it.

I think I have addressed the review comments.  Please take a look again.  If things look good I will rebase and squash before merging.

I will fix the nit, but I was also talking to some security people and I am going to switch the signature algorithm from "HmacSHA1" to "HmacSHA256".  Not because there are any issues with SHA1, this will just make it a bit more future proof.  Also to take full advantage of a 256bit hash I am going to up the key size to 256 bits as well.
I'll make the changes squash it and put it up again, just to be sure everyone is OK with the final code.

The changes are done.  The build passes when I disable check style, and check style passes for the sub-projects that I modified.
If I can get a final +1 on renaming the one Method that @HeartSaVioR found and also for moving to SHA256 that would be great and I will merge it in.


Ara

@tysonn you may want to work with @msmbaldwin on this one--the PR isn't clean.

@tysonn - I'm pretty sure this can just be closed. I think it was inadvertently created as a pull from openpublish/azure-content:ara into azure/azure-content:master, and @msmbaldwin probably meant for it to be the exact opposite (to refresh the openpublish/azure-content:ara branch. I've seen this before, and it's usually caused by the branches being specified opposite of what they should, during the compare across branches in creation of the PR.


Follow pyodide and use *.cpython-310-wasm32-emscripten.so as file names?

Our shared libraries are currently suffixed with *.cpython-310.so. Pyodide uses cpython-310-wasm32-emscripten.so. It's probably a config variable in the sysconfig thing.

we use such naming since a while


Turn off menu by default.

Please add an option to turn off the blueprint menu that pops up by default every single time you start the game or load a saved game.    I don't want to see that menu until I want to use it.

Thats a problem with another mod causing errors. The menu doesn't appear by itself


Update README.md

:white_check_mark: Build POC-dotnet-Asterisk 1.0.35 completed (commit https://github.com/GuilhermeStracini/POC-dotnet-Asterisk/commit/c50481e61e by @guibranco)


Fix: cannot edit pivot data in belongs to many relationships unless they allow duplicates

see https://github.com/laravel-filament/filament/issues/2827

Thanks! Refactored it a little bit

Thanks! Refactored it a little bit

Nice! much cleaner than what I had


Fix a bug

Reposition stream position indicator for FILE pointer f1 before read
from it again.

Thanks for your PR.


Missing OpenCritic/Game Length

Hi Faiz, I will use this to occasionally update games that I find which are missing Opencritic or Game length!
Right now | missing Opencritic:

Travis Strikes Again: No More Heroes - https://opencritic.com/game/7117/travis-strikes-again-no-more-heroes

Should I play this - https://shouldiplaythis.com/?page=1&search=Travis Strikes Again: No More Heroes

There are 2 versions of Travis Strikes Again: No More Heroes  one is complete edition and other is original and they both have opencritic.
Regular version - https://opencritic.com/game/7117/travis-strikes-again-no-more-heroes
Complete Edition - https://opencritic.com/game/8500/travis-strikes-again-no-more-heroes-complete-edition
SIPT only shows Opencritic for Complete edition and not for regular version. Cheers!

Thanks, fixed!

Hello again, Dead Space (Remake) opencritic is not coming up on SIPL unfortunately.
https://shouldiplaythis.com/?page=1&search=Dead Space
OC link: https://opencritic.com/game/13897/dead-space-remake-
Cheers!

Ah unfortunately for this one HLTB kept the name the same as the original, so if I fix it to match the original will also pick up the remaster's OC score. I'll have to see if I can put in some year matching logic in the future to help with cases like this.

ooh okay. so i guess in ur code there’s no way to do a one off manual assignment of opencritic to one particular game on HLTB? or is everything automated in your code?
But all good, that would be great actually to implement a year system cos I noticed some games had high opencritic before i realised it was for the original version and not the remake!

Hi again,
Lego DC Super Villains is missing OC
https://shouldiplaythis.com/?page=1&search=Lego DC Super-Villains
https://opencritic.com/game/6742/lego-dc-super-villains
Cheers!

Fixed, thanks!

Hi again,
AI: The Somnium Files - nirvanA Initiative is missing OC
https://shouldiplaythis.com/?page=1&search=AI: THE SOMNIUM FILES - nirvanA Initiative
https://opencritic.com/game/13265/ai-the-somnium-files-nirvana-initiative
Cheers!

Fixed 👍🏼

Hello some more bugs for you. I decided to wait for a few games before I suggest bugs. So i have a few games to report so here i am!
Missing OC:
Persona 4 Golden : https://shouldiplaythis.com/?page=1&search=Persona 4 Golden
https://opencritic.com/game/9636/persona-4-golden
Xenoblade Chronicles : https://shouldiplaythis.com/?page=1&search=Xenoblade Chronicles
https://opencritic.com/game/9261/xenoblade-chronicles-definitive-edition
Life is Strange : https://shouldiplaythis.com/?page=1&search=Life Is Strange
https://opencritic.com/game/1995/life-is-strange-season-one
Single player Games listed as Co-Op on SIPT but HLTB only has  “Main Story, + Extras , Complete” there can’t see time
Mario + Rabbids Kingdom Battle - Donkey Kong Adventure
https://shouldiplaythis.com/?page=1&search=Mario + Rabbids Kingdom Battle - Donkey Kong Adventure
Bloodborne: The Old Hunters
https://shouldiplaythis.com/?page=1&search=Bloodborne old
Cheers!

Thanks for all the reports!
I've fixed all the missing OC data.
And for the last two, HLTB has them classified as DLC. So I included DLC in the logic to display as a normal game (vs a multiplayer game). Those two and all other DLCs should be fixed!

Fantastic stuff buddy thanks!

Missing OC:

Thanks for the reports! These are all fixed.

Issues with ‘ in Luigi’s Mansion where nothing pops up until you type “Luigis Mansion” without apostrophes.

Took me a little bit to figure out what was going on here, but I found that you're actually using a right single quote instead of a straight apostrophe. They look very similar, but you might be able to see the difference if you zoom in:
Right Single Quotation Mark:    ’
Straight Apostrophe:            '

I can't even type a right single quote on my keyboard, so I'm not sure how you're typing it. Perhaps you have a different keyboard layout. I would suggest you find the straight apostrophe on your keyboard and use that instead. If you use the right single quote directly on HLTB's site, you'll see it doesn't work there either (no results are returned).

Thanks for the reports! These are all fixed.

Awesome except one! Duke Nukem 3D is not fixed yet -
https://shouldiplaythis.com/?page=1&search=Duke Nukem 3D: 20th Anniversary World Tour - https://opencritic.com/game/3259/duke-nukem-3d-world-tour-20th-anniversary-edition

Right Single Quotation Mark:    ’
Straight Apostrophe:            '

Yeah that’s exactly what i suspected too. However it’s not because i’m using anything special. Im using US Keyboard layout on M1 Macbook which is like most of the macbook users.
But if you see the keyboard layout on Macbook we only have ‘ we don’t have straight apostrophe here.
I attached below the exact keyboard layout used on Macbooks from official apple website. This is exactly what I have.

As you can see it’s not straight apostrophe like in Windows it’s slightly slanted ‘
I would appreciate if you added a filter to ignore ‘ as its literally what pops out when i type in macbooks, can’t change it!

Awesome except one! Duke Nukem 3D is not fixed yet

Oh good catch! It's fixed now.

I would appreciate if you added a filter to ignore ‘ as its literally what pops out when i type in macbooks, can’t change it!

I'd like to keep the search functionality on parity with what HLTB has and as I mentioned in the previous comment, the right single quote doesn't work on HLTB either.
Doing a quick search, it seems like there might be a setting called smart quotes you can disable on Mac.
https://discussions.apple.com/thread/252715831?answerId=255111236022#255111236022
If that doesn't work, there might be another setting that you could Google.
I don't use a Mac, so sorry I can't help much further. 😅 Workaround to this would be to just not type the apostrophe in the search.

Yeah I went down the rabbit hole after you posted about the smart quotes setting in macbooks and unfortuantely it’s an operating system thing, Apple forces it to be slanted like this ’ in words instead of straight '.
As you can see below i changed it to display as Windows style Straight apostrophe.

but that only works in quotes 'like so'. When I type the ' within a word like Luigi’s mansion it goes back to being slanted.  HLTB

and SIPT

That's apple for you lol.
Would be great if some idea pops in your head to get rid of this. I can easily not type the apostrophe but the thing is I use a chrome extension called right click context search - where i right click a word and search that word within a website like SIPT. That’s why this causes issues! As I usually browse "best switch games" and then right click that game’s name and search it on SIPT like below which causes issues with games which have apostrophes or weird symbols 😂


Component locals

New Feature

PUT, POST, and DELETE now have access to locals as an additional param, which is:

const locals = {};
_.assign(locals, req.params, req.query);
locals.site = site;  //site information, like host, path, assets, etc.

Should there be tests locals being frozen in the cascading PUT, and for PUT with locals for a single component?

That's a good idea, though the frozen interface isn't so clear about whether it should throw an exception or just ignore the write.  Different browsers do different things, for example.
What would a test like that look like?  It should fail if the contents are not read-only, but would it be an exception, or just an ignored write?
Might be low ROI if the test gets too complex, maybe.  Hmm.

Maybe just check if Object.isFrozen()?

That would work.

Coverage decreased (-0.04%) to 99.882% when pulling 28c2b13eb3b485e32e03ce9d1d49130cec66d4ae on component-locals into 7f6822dcbfcdf640495d1eada56d252ee73a9b5c on master.

Coverage decreased (-0.04%) to 99.882% when pulling 28c2b13eb3b485e32e03ce9d1d49130cec66d4ae on component-locals into 7f6822dcbfcdf640495d1eada56d252ee73a9b5c on master.

Coverage increased (+0.001%) to 99.921% when pulling aed9731ae15a0fa2b985cd8ae55852d005fd3b01 on component-locals into 7f6822dcbfcdf640495d1eada56d252ee73a9b5c on master.

Nice +1


Question : How to add FunctionVisibility/External Property for Procedure in AL

Hi,
In C/AL we have property for Function like below,
C/AL : Business Central CU3

AL in Visual Studio Code :  Business Central CU3

Please let us know how we can use?

You don't need it, [External] is only for C/AL Functions

i have created codeunit with some procedures and published same in web services
now i have the SOAP url , But am not able to see my procedures in explorer(Refer Standard Like below screenshot).
then i was tried by publishing the standard codeunit 1544 , then am able to see functions in explorer those are having the FunctionVisibility external , so i thought it because of External property ,
that's the reason am raised question.

may be am missing something you please could help me out? how can move further.

Hello, we are experiencing issues with this as well. Our web service functions are not accessible in on premise installs of BC

@srinivasGangadhara
In C/AL we have 2 attributes [External] and [Internal]. In AL, they are mapped to [Scope('Extension')] and [Scope('Internal')]. The main use of this attributes was to limit what functions from the BaseApp can be used in the Cloud i.e. in the Cloud you cannot use a function that is marked with [Internal]/[Scope('Internal')].
Starting with the  Spring Release 2019, we have deprecated [Scope('Internal')] and replaced it with  [Scope('OnPrem')] and we have deprecated [Scope('Extension')] and replaced with [Scope('Cloud')].
@strophanthus In the latest release, these attributes are also used to mark what functions are accessible from web services. Functions marked with [Internal] are not accessible from web services.

To make it extra fun 'External' in C/AL gets converted to [Scope('Personalization')] in AL with txt2al.
On the C/AL side the breaking change is no decorator seems to default to Internal (meaning a breaking change).
Will this also be an issue where the lack of an explicit decorator will default to Internal (causing breaking changes) instead of External (backwards compatible changes)?

In the latest version of Txt2Al [External] gets converted to nothing, because it is the default in AL, [Internal] gets converted to [Scope('OnPrem')] or [Scope('Internal')] depending on your target runtime. The latest Txt2Al will be available in a few weeks through the Docker image preview from master.

Does this mean the property will matter in BC SaaS?

Also, does this mean that the behavior for an un-decorated function exposed through a SOAP webservice to 'External' is the 'correct' behavior, and the behavior of the un-decorated function when using a FOB defaulting to internal is incorrect?  (This is referring to the breaking change introduced in BC on-prem where un-decorated functions have a different default behavior than previous versions).  This discrepancy is problematic for those of us that need to maintain source for .app and as a .fob.

Hi @coffeecup007 ! For web services, make sure to set the attribute Scope to External for functions created in C/SIDE. In AL, the default is External so you don't have to do anything.  The defaulting is different depending on whether you write C/AL code or AL code, but it is correct in its own right.

@srinivasGangadhara
In C/AL we have 2 attributes [External] and [Internal]. In AL, they are mapped to [Scope('Extension')] and [Scope('Internal')]. The main use of this attributes was to limit what functions from the BaseApp can be used in the Cloud i.e. in the Cloud you cannot use a function that is marked with [Internal]/[Scope('Internal')].
Starting with the Spring Release 2019, we have deprecated [Scope('Internal')] and replaced it with [Scope('OnPrem')] and we have deprecated [Scope('Extension')] and replaced with [Scope('Cloud')].
@strophanthus In the latest release, these attributes are also used to mark what functions are accessible from web services. Functions marked with [Internal] are not accessible from web services.

Hey @atoader
few questions regarding scope attribute:

is there any official documentation regarding scope attribute? could not find it.
I tried to use [Scope('Extension')] with AL  Lanauge 3.0.126610, and it did not work? Is't it released yet?

@gintuoklis you don't need to use [Scope('Extension')] in AL, but it should work in version 1.0 and later.     I will transfer this item to the docs repo so that we write up a better explanation of how all of these work.

suppose a method is decorated as [Scope('OnPrem')], is there a decorator to consume this method externally?


extern definitions confuse c2go

close #328

This change is

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


ResumePlayback & PausePlayback have JSON parse errors

When calling these functions, there is a JSON error. The documentation seems to show that they return a Task, but the Spotify endpoint says there is no such response.
When running for example:
public async Task Pause() {     if (IsAvailable()) {         try {             await spotify.Player.PausePlayback();         } catch (Exception ex) {             Log.Exception(ex);         }     } }
There is an exception, notice that I removed the bool return, and yet still it throws an exception:
Unexpected character encountered while parsing value: h. Path '', line 0, position 0.
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: h. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.JsonReader.ReadAndMoveToContent()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at SpotifyAPI.Web.Http.NewtonsoftJSONSerializer.DeserializeResponse[T](IResponse response)
at SpotifyAPI.Web.Http.APIConnector.DoSerializedRequest[T](IRequest request, CancellationToken cancel)
at SpotifyAPI.Web.Http.APIConnector.SendAPIRequestDetailed(Uri uri, HttpMethod method, IDictionary2 parameters, Object body, IDictionary2 headers, CancellationToken cancel)
at SpotifyAPI.Web.Http.APIConnector.Put(Uri uri, IDictionary`2 parameters, Object body, CancellationToken cancel)
at SpotifyAPI.Web.PlayerClient.PausePlayback(CancellationToken cancel)
at VeronicaGen.Services.Audio.Spotify.SpotifyService.Pause() in C:\Users\gkapellmann\Documents\C#\Project_Veronica\Veronica_Support\Veronica_HostsGenerals\Veronica_Generals\VeronicaGen.Services\Audio\Spotify\SpotifyService.cs:line 234
The pause event still happens, so, somehow it is working. But still throuws this...
I am not sure if other Player functions are having the same problem besides resume and pause.

Duplicate of #980


Storybook Getting Started page has styling issues

🐛 Bug Report
https://nimble.ni.dev/storybook/?path=/docs/getting-started--page used to show content that explained how to use Storybook but now it's a blank grey page.
💻 Repro or Code Sample
https://nimble.ni.dev/storybook/?path=/docs/getting-started--page
🤔 Expected Behavior
It should show the page containing this image:
https://github.com/ni/nimble/blob/main/packages/nimble-components/docs/storybook-overview.png?raw=true
😯 Current Behavior
It shows a blank grey screen:

💁 Possible Solution

🔦 Context

🌍 Your Environment

OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
Version [e.g. 1.8.0]

Related PRs

[ ] #922

I see the following error in the console: TypeError: _mdx_js_react.mdx is not a function
This might be related to #806.

The PR above fixed the blank page but there are still styling issues. I renamed the bug and updated the description.

Storybook 7 is now in beta and they're encouraging users to try uptaking it to find compatibility issues. The improvements mentioned include better MDX support and better npm 8 support.
https://storybook.js.org/blog/7-0-beta/
The blog also links to a storybook 7 migration guide.

Duplicate of #943


[BUG] Black formatter breaks python code when it contains Emoji

Problem description
I have a Python code:
def fun():
    print("🎥 Input Stream will be streamed. Address: rtsp://IP_ADDRESS:8557/input_stream")

When I format it using black 23.12.1 I get:
def fun():
    print(
        "🎥 Input Stream will be streamed. Address: rtsp://IP_ADDRESS:8557/input_stream"
    )

But When I format it with this addon I get:
def fun():
    print(
        "🎥 Input Stream will be streamed. Address: rtsp://IP_ADDRESS:8557/input_stream
    ")

Which is invalid code.
Configuration
2024-01-15 10:45:13.705 [info] Settings used to run Server:
[
    {
        "cwd": "/home/pkotiuk/Projects/eyeq",
        "workspace": "file:///home/pawel/proj1",
        "args": [],
        "path": [],
        "interpreter": [
            "/usr/bin/python3"
        ],
        "importStrategy": "useBundled",
        "showNotifications": "off"
    }
]

2024-01-15 10:45:13.970 [info] Version info for formatter running for /home/pawel/proj1:
black, 23.10.1 (compiled: no)
Python (CPython) 3.10.12

I guess you should update your black version

Duplicate of https://github.com/microsoft/vscode-black-formatter/issues/395
This is fixed in pre-release. Nothing to do with Black formatter itself. More to do with VS code uses UTF-16 when calculating string lengths in the editor no matter which encoding is used for the file itself. You can read the details in #395


Migrate ILP-related data in DB tables to be more method-agnostic

Closing in favour of larger Rafiki architecture overhaul


Cell in usage.ipynb is causing hangs in doctests and ReadTheDocs

The cell commands in question:
ds6h = xr.tutorial.open_dataset("air_temperature")
gdd = xclim.atmos.growing_degree_days(ds6h.air, thresh="10.0 degC", freq="MS")

Very weird behaviour: in a standard Python REPL (Python3.8 + Xarray v0.21), I get what I expected:
xclim.core.utils.ValidationError: Frequency of time series not strictly in ['D']. To mute this, set xclim's option data_validation='log'.

But when run on Jupyter, the cell is triggered to run and doesn't throw any errors, it just hangs. I've never seen this before.
Originally posted by @Zeitsperre in https://github.com/Ouranosinc/xclim/issues/1002#issuecomment-1026954461

After research I arrived to following discoveries:
1.
The hanging operation as to do with the exception handling. In xclim, when a datachecks returns an error (the cell is supposed to raise a ValidationError because the timeseries is not daily), the ValidationError is caught by xclim.core.utils.raise_warn_or_log, which chooses what to do in function of the passed arguments, which come from the current options. In our case, the behaviour is to raise and it is done as:
raise err from ValueError("some message")

This is the line that hangs. In my current tests, I have a cell with only:
raise ValueError('what') from ValueError('wack')

and it hangs there.
2.
It only hangs in tox. I was able to recreate the bug locally by running tox -e doctests_only. It doesn't happen if I run pytest in my dev env, it doesn't happen if I run pytestin tox's env. It doesn't happen if I run the 3 doctests_only commands manually in tox's env. ONLY if I do tox -e doctests_only.
3.
There are no recent versions of pytest, nbval and tox. This only happens since  doctests_only uses python 3.8. It also happens when I use python 3.9. But doesn't happen with python 3.7.
4.
At one point I was able to interrupt the hanging call and I saw that it was stuck (at that moment) on a os.lstat call that seems to be done on some source file. The call was done by a function of inspect which was called from pytest.
I'm continuing my researches...

Found it!!!
It's IPython 8.0.1, which was release on jan 19th.

Ipython/ipython#12467
Damned.

Removing priority tag as the issue has been worked-around for the time being. Thanks, @aulemahal !


Consider using debug module instead of console.log

https://github.com/visionmedia/debug
it can be a help to have a trace of steps when debugging problems - in general console.log helps in these cases. it can also be really useful for bug reports.
with environment variables, can turn on/off debugging for certain debug statements
might be tricky, but can probably remove from "prod" build where no console debugging is necessary.
in general, might make it easier to maintain code. esp. since graphics can sometimes be a lot of trying different things out and leaving old settings commented.
Version:

[x] v2.x.x
[ ] v1.x.x

Issue type:

[ ] Bug
[x] Proposal/Enhancement
[ ] Question
[ ] Discussion

 Tested on:
Desktop

[ ] Chrome
[ ] Chrome Canary
[ ] Chrome dev-channel
[ ] Firefox
[ ] Opera
[ ] Microsoft IE
[ ] Microsoft Edge

Android

[ ] Chrome
[ ] Firefox
[ ] Opera

IOS

[ ] Chrome
[ ] Firefox
[ ] Opera

@thejmazz to handle errors correctly in node.js?

I thought about replacing console.log. We can do that

Not just for Node, but just b/c it allows toggling debug logs with environment variables. could have different logs turned off for different test cases for example, or if you need to debug a specific problem


Handle empty flag name

fixes https://github.com/uber/piranha/issues/44

Nice!
Instead of adding these two checks which get called everytime, it might be better to take care of empty flag case in initialisation (init method) itself.
There's a isPresent check for xpFlagName, under that you can add the not EMPTY check.
(Under it because I feel EMPTY flag name shouldn't cause PiranhaConfigException, it should just keep flag name as the default initialisation dummy value, so that Piranha continues to work for people without flag name in their toggles)

Optional<String> s = flags.get("Piranha:FlagName");

So 'Piranha' assumes empty string to be a valid input. Keeping dummy value is one way to avoid this side-effect but pivoting a dummy value also needs some discussion (for uniqueness).

Optional<String> s = flags.get("Piranha:FlagName");

So 'Piranha' assumes empty string to be a valid input.

Yes, I was suggesting:
Optional<String> s = flags.get("Piranha:FlagName");
    if (s.isPresent()) {
      if (!EMPTY.equal(s.get())) {
         xpFlagName = s.get();
      }
      isTreated = flags.getBoolean("Piranha:IsTreated").orElse(true);
      treatmentGroup = flags.get("Piranha:TreatmentGroup").orElse("").toLowerCase();
    }
    ...

Keeping dummy value is one way to avoid this side-effect but pivoting a dummy value also needs some discussion (for uniqueness).

Yeah I had this thought too, but xpFlagName is initialized like this, which I think is rare enough.
xpFlagName = "_xpflag_dummy"
Thoughts? @mkr-plse @lazaroclapp

Thoughts? @mkr-plse @lazaroclapp

I agree with this approach. If the user doesn't specify the flagname, an exception will be thrown. If an empty flagname is specified, internally, it will be skipped and the code will be processed using _xpflag_dummy flag name. For now, we need not worry about the uniqueness of the dummy flag name (highly unlikely that someone is going to name a feature flag _xpflag_dummy).

Yeah I had this thought too, but xpFlagName is initialized like this, which I think is rare enough.
xpFlagName = "_xpflag_dummy"

I completely missed this init part.
Yeah, agreed this way we reduce a lot of additional computation also.

Overall, looks good. Can you also add a test case where  b.putFlag("Piranha:FlagName", ""); is not passed so that we can be sure that an exception is thrown?

Sorry, did not get you.
do you mean where the flag config is not present and PiranhaConfigurationException is thrown?

Overall, looks good. Can you also add a test case where  b.putFlag("Piranha:FlagName", ""); is not passed so that we can be sure that an exception is thrown?

Sorry, did not get you.
do you mean where the flag config is not present and PiranhaConfigurationException is thrown?

Yes.  A test without flagname to check an exception is correctly thrown is needed here.


JS function do not have Action section in Integrate tab

From @SimonGuo009 on February 14, 2017 9:54
I've tried C#/F# for the three data processing output bindings, all of them have action section.
But JS do not have the the section.

Copied from original issue: projectkudu/AzureFunctionsPortal#921

@christopheranderson @yochay This seems like a good thing to add, I assume we should do it?

Per @alrod, this turned out to be a portal bug which is now fixed.


update gradle files

@hlwhl Can you check why the CI is failing?

@hlwhl This PR will be added in the next release. Thanks.


Try turning teleproto into a wrapper around chimney internal logic

Has the version number been increased?

[ ] Yes! (or not but it was intended to not increase it)

Related discussion here: https://github.com/scalalandio/chimney/discussions/573

Finally managed to make a ProtobufEnumRule that can handle prefixes in enum variants.

Status:

Fixed the implicit dependency cycle bug
Writers almost work as a drop-in replacement. The only missing feature it forward compatibility checks but this one is huge.
Started making code for readers.


[Extra Metadata Loader] Change Location for Storage

Extension
Extra Metadata Loader
Describe the solution you'd like
The ability to change the location where  data folder (videos, and images) is stored.  I doubt I'm the only one who doesn't have the largest SSD that runs my OS. Would be nice to be able to offload the location of the data folder to another location.

Depends on https://github.com/JosefNemec/Playnite/issues/2039 being implemented first into Playnite
The reason is that several plugins use the logos and videos from the Extension and moving them will break the other extensions. That would allow to point other plugins to the current storage location.
For now, it's possible to move the ExtraMetadata directory in Main Menu -> About Playnite -> Other -> User data directory to another location, then creating a symbolic link to back to the previous location. That way for plugins it will be as if nothing was moved.

This can be easily done as explained in the "How to Create Symbolic Links with a Graphical Tool" section in this link https://www.howtogeek.com/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/


BigQuery Reads Null Values from Parquet Files Generated with pyarrow Versions > 12.0.1

Describe the bug, including details regarding any error messages, version, and platform.
When using pyarrow versions greater than 12.0.1 to write Parquet files that are then loaded into Google BigQuery, the fields containing Decimal values (used to represent BigQuery's BIGNUMERIC type) are being read as NULL by BigQuery. This issue does not occur with pyarrow==12.0.1.
Environment

Python Version: 3.12
pyarrow Version: 13.0.0 and above (issue observed)
Google BigQuery Version: N/A (BigQuery as the consumer of the Parquet files)
Operating System: [Your OS, e.g., Ubuntu 20.04, macOS 13, etc.]

Steps to Reproduce

Create a Pandas DataFrame with a column containing lists of Decimal values.
Write the DataFrame to a Parquet file using pyarrow==13.0.0 or later.
Load the Parquet file into a Google BigQuery external table.
Query the table in BigQuery.

Expected Behavior
BigQuery should correctly read the Decimal values from the Parquet file and populate the corresponding fields in the table.
Actual Behavior
BigQuery reads the fields corresponding to Decimal values as NULL.
Code Example
import pandas as pd
import pyarrow as pa
import pyarrow.parquet as pq
from decimal import Decimal
from google.cloud import storage
import io

# Sample DataFrame
data = {
    'sessions_array': [
        [{'item': Decimal('12345678901234567890.12345678901234567890')}, {'item': Decimal('23456789012345678901.12345678901234567891')}],
        [{'item': Decimal('34567890123456789012.12345678901234567892')}]
    ]
}

df = pd.DataFrame(data)

# Define PyArrow schema
schema = pa.schema([
    pa.field('sessions_array', pa.list_(pa.struct([
        pa.field('item', pa.decimal256(40, 20))
    ])))
])

# Convert DataFrame to PyArrow Table with the defined schema
table = pa.Table.from_pandas(df, schema=schema)

# Write Parquet to buffer
buffer = io.BytesIO()
pq.write_table(table, buffer)
buffer.seek(0)

# Upload buffer to Google Cloud Storage or save locally
with open('/tmp/test.parquet', 'wb') as f:
    f.write(buffer.getbuffer())

Notes
This issue does not occur with pyarrow==12.0.1.
The problem seems to be related to how pyarrow serializes Decimal types in Parquet files and how BigQuery interprets them.
Workaround
Using pyarrow==12.0.1 and Python<3.12 resolves the issue, but this is not ideal as it requires using an older version of the library, which may lack other features or bug fixes.
Component(s)
Python

@emkornfield would you mind take a quick glance on this?

@matteosdocsity trying to reproduce creating the Parquet files locally (to see if there would be any noticeable difference between a file written by pyarrow 12 vs 13), but I get an error running your code to create the pyarrow table: ArrowInvalid: Rescaling Decimal128 value would cause data loss
To demonstrate with just the first Decimal value:
>>> pa.array([Decimal('12345678901234567890.12345678901234567890')], type=pa.decimal128(38, 18))
...
ArrowInvalid: Rescaling Decimal128 value would cause data loss

If I don't specify a specific decimal type but let it be inferred, I get the following type:
>>> pa.array([Decimal('12345678901234567890.12345678901234567890')]).type
Decimal256Type(decimal256(40, 20))

@jorisvandenbossche yes sorry my mistake it's pa.decimal256(40,20)

Thanks. One more question: you are using a nested data type (the decimals are in a struct in a list type). Do you also see the issue with non-nested decimals? Or only specifically with this nesting?

yes @jorisvandenbossche exactly it's an array of decimals

In the metadata I also see that the listed encodings have a different order (pyarrow 12 puts RLE_DICTIONARY first, while pyarrow 14 puts PLAIN first). Just to try to narrow down the issue, @matteosdocsity you could also try tweaking some parameters based on that (e.g. use_dictionary=False)

This is in 13.0: https://github.com/apache/arrow/pull/35758

@jorisvandenbossche it works like a charm.
The method described also works with Pandas by setting dynamic keyword arguments. Here's an example:
# Define kwargs
kwargs = {
    'use_compliant_nested_type': False
}

# Save DataFrame to Parquet with dynamic kwargs
df.to_parquet('output.parquet', engine='pyarrow', **kwargs)

This ensures compliant nested types are used when saving DataFrames to Parquet using Pandas and pyarrow.

It's strange that BigQuery does not read that properly though .. They even have a page explicitly mentioning the expected schema for list types: https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-parquet#list_logical_type (where they are using "element" instead of "item").
If you need to specify use_compliant_nested_type as False to have BigQuery read the data correctly, that might be worth reporting to BigQuery.

I think there are two issues here.

The docs mentioned in the comment above require add a flag to enable the schema inference (enable_list_inference), otherwise the schema is copied directly from the parquet file (i.e. with the intermediate "item"), so the new "element" field would be be treated as a new field and ignored.  This is intended behavior if the flag is not set.
I think there is a bug enable_list_inference which doesn't follow backwards compatibility rules, specifically on the interchangeability of names.

I have seen a similar issue with a Parquet file created by Hudi. There is a nesting list as below:
  optional group a (LIST) {
    repeated group array (LIST) {
      repeated int32 array;
    }
  }

The C++ parquet reader infers its schema as array<struct<array:array<int>>>. The root cause is here: https://github.com/apache/arrow/blob/12dddfc737ea23c43646f79769e0f9e12204a429/cpp/src/parquet/arrow/schema.cc#L657-L663
I think we need to regard them as a nesting two-level list, am I right? @emkornfield @mapleFU

@jorisvandenbossche I tested as you reported here , and via Terraform forcing the BigQuery table schema to have the column to be a record of record of BIGNUMERIC element instead of item:
     {
        "name": "sessions_array",
        "type": "RECORD",
        "mode": "NULLABLE",
        "fields": [
          {
            "name": "list",
            "type": "RECORD",
            "mode": "REPEATED",
            "fields": [
              {
                "name": "element",
                "type": "BIGNUMERIC",
                "mode": "NULLABLE"
              }
            ]
          }
        ]
      }

In combination with use_compliant_nested_type=True the BigQuery reads works.
In consideration of the parquet spec I'm considering to move my BigQuery table to this schema.


feature: add proper release script and credit contributors

it would be rewarding for anyone contributing to have their name in the changelogs

closed in https://github.com/shortcuts/no-neck-pain.nvim/pull/67


[Feature]: shortcut to open a player modal via /tx <id>

Scope
In-Game Menu
Feature Description
Although the menu players page is versatile, admins want an easier way to open the player modal by the player ID.
I propose we expand the /tx (and /txadmin) command to accept a player ID.
Make sure to also update the chat suggestion so people find out this exists.
Use Case
You quickly want to ban player ID 123, so you type in chat /tx 123 and then ban him.
Proposed Solution
.
Additional Info
.

Implemented in fb189dc53c2a93837e1190f72a178c7876b8724e.
Preview

Tysm for this. You are so fast! Will be in the october release i imagine?


[Enhance] try to release chunks of operator when close (backport #7086)

This is an automatic backport of pull request https://github.com/StarRocks/starrocks/pull/7086 done by Mergify.
What type of PR is this：

[] bug
[ ] feature
[x] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

run starrocks_fe_unittest


PR: Make sure the library works at import time

Fixes #59.

@andfoy, any idea why I'm getting an Appveyor failure even with no effective changes in this PR?

@blink1073 Let me check what's going on

It seems that we're using a wrong Python binary?

This is probably failing because of the change in conda-forge to use the MinGW toolchain to compile Winpty.

I'm not sure what would be different here vs. the import test on conda-forge.

conda-forge was still building the package with VS 14. Please see
https://github.com/conda-forge/pywinpty-feedstock/pull/10

@ccordoba12 @blink1073  Sorry for being too disconnected to the latest changes. Does the m2w64 helps to solve our issues?

Nop, it's safer to mix MinGW (Winpty) and VS 2008 (Python) than our previous arrangement of VS 2015 and VS 2008.

Right you were, @ccordoba12...  so we need to update the feedstock and here to use mingw?

No, if I understood @jjhelmus correctly. We just to compile pywintpy with the right VS compiler for the Python version it's going to use.

Annnnd things failed in conda-forge, just as they are failing here:
https://ci.appveyor.com/project/conda-forge/pywinpty-feedstock/build/1.0.38
Let's continue the discussion in conda-forge.

I have a working solution for #59, so closing this one.

Sorry for my wording, the right thing to say is that this is superseded by #99.


elm ?

Couldn't see elm-lang under E.

here you go

Awesome, hopefully will get merged soon :)

https://github.com/leachim6/hello-world/commit/a0ca8f90f1da247138c279d5d71472f5f2031024


Lazily init PulsarAdmin in PulsarAdminTool

Motivation
pulsar-admin (PulsarAdminTool) initialises eagerly the PulsarAdmin object and some of the the underlying REST API intefaces.
This initialisation process triggers lot of resource loading (like SSL/RESTAPI classes....) that slows down the JVM even for stuff that is not needed.
Also there are shutdown hooks that are useless by they are executed while existing from the command.
Removing initialisation of useless stuff helps in having a better bootstrap time, especially in case that you are not performing API calls, like when you are learning the tool and you make lots of syntax errors.
Modifications

Initialise as lazily as possible PulsarAdmin
Make PulsarAdminTool#main "testable" by allowing it to not call System.exit
Use halt instead of exit in order to not trigger shutdown hooks

Verifying this change
This change is a trivial rework / code cleanup, but I have added tests for parts that have been touched and had not unit tests.

Thanks @eolivelli work for this, please fix the License header error:
Error:  COMPILATION ERROR :
Error:  /home/runner/work/pulsar/pulsar/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java:[1317,13] admin has private access in org.apache.pulsar.admin.cli.CmdBase
Error:  /home/runner/work/pulsar/pulsar/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java:[1109,13] admin has private access in org.apache.pulsar.admin.cli.CmdBase
Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project pulsar-client-tools: Compilation failure: Compilation failure:
Error:  /home/runner/work/pulsar/pulsar/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java:[1317,13] admin has private access in org.apache.pulsar.admin.cli.CmdBase
Error:  /home/runner/work/pulsar/pulsar/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java:[1109,13] admin has private access in org.apache.pulsar.admin.cli.CmdBase

Thanks @eolivelli work for this, please fix the License header error:
Error:  COMPILATION ERROR :
Error:  /home/runner/work/pulsar/pulsar/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java:[1317,13] admin has private access in org.apache.pulsar.admin.cli.CmdBase
Error:  /home/runner/work/pulsar/pulsar/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java:[1109,13] admin has private access in org.apache.pulsar.admin.cli.CmdBase
Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project pulsar-client-tools: Compilation failure: Compilation failure:
Error:  /home/runner/work/pulsar/pulsar/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java:[1317,13] admin has private access in org.apache.pulsar.admin.cli.CmdBase
Error:  /home/runner/work/pulsar/pulsar/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java:[1109,13] admin has private access in org.apache.pulsar.admin.cli.CmdBase

@wolfstudy  thank you for the heads up, I have to rebase on master, probably some other changes went in.

@wolfstudy  thank you for the heads up, I have to rebase on master, probably some other changes went in.

@wolfstudy I have update this patch, thanks PTAL

@wolfstudy I have update this patch, thanks PTAL

This patch is good to go

This patch is good to go

I would be interested in sending a backport for 2.7
would it be accepted ?
I guess 2.7.x will stay for quite a log time, having a faster pulsar-admin would be cool

I would be interested in sending a backport for 2.7
would it be accepted ?
I guess 2.7.x will stay for quite a log time, having a faster pulsar-admin would be cool

@eolivelli I would suggest leaving this change in master for now. We can backport it when it becomes a challenge when cherry-picking changes.

@eolivelli I would suggest leaving this change in master for now. We can backport it when it becomes a challenge when cherry-picking changes.

Good point. No need to pick it to 2.7

Good point. No need to pick it to 2.7


Current status?

Hey Pat,
what's the current status of tsproxy? I've read the Google docs and me & @beenanner have just started testing it and tested it with Browsertime. I really like the idea and it works fine for us but I haven't tested how accurate it is. Have you had time to do any testing? Can I help out?
With the minimal testing I've done on my local, I got the feeling that the first request takes longer time than with other tools emulating the same shaping, and that the RTT differs but this only a hunch I have, I haven't done any serious testing.
Best
Peter

It's complete AFAIK.  The Chrome team is integrating it with telemetry right now to use for the Chrome perf regression testing.
As far as testing goes, I configured Chrome to proxy through it and ran a bunch of html5 speed tests (that also measure latency) and things looked like they were behaving correctly (note, the upstream bandwidth shaping is correct but the speed test apps are really spiky when they measure it).

cool thanks :)


Update suboptimal stackalloc behavior

Suboptimal stackalloc behavior in code-snippet
Referencing this Twitter thread one of the code-snippets within the stackalloc docs shows suboptimal behavior. The link found on the bottom of the docs site does also use the same pattern as the thread suggests.
Would probably also be nice to add some information why the constant size is used referencing e.g. this answer on the thread, but I'm not sure about the perfect wording.

For reference: https://github.com/dotnet/docs/issues/28823
Additional points that should be mentioned:

the constant should be a power of 2
most efficient when [SkipLocalsInit] is applied -- then it boils down to a pointer move (+ the stack cookie (to detect stack-overruns))


Unable use kubernetes Ingress to visit dashboard

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
Hi, I want to use kubernetes Ingress to visit dashboard, I wrote the belows yaml, it not works
---
apiVersion: v1
kind: Service
metadata:
  name: traefik-dashboard
  namespace: traefik-system
spec:
  selector:
    app.kubernetes.io/name: traefik
  ports:
  - name: web
    port: 8000
    targetPort: web
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: traefik-dashboard
  namespace: traefik-system
  labels:
    name: traefik-dashboard
spec:
  rules:
  - host: traefik.my.domain
    http:
      paths:
      - pathType: Prefix
        path: /dashboard
        backend:
          service:
            name: traefik-dashboard
            port:
              number: 8000

IngressRoute is ok
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: traefik-dashboard
  namespace: traefik-system
spec:
  entryPoints:
    - web
  routes:
    - match: Host(`traefik.my.domain`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))
      kind: Rule
      services:
        - name: api@internal
          kind: TraefikService
      middlewares:
        - name: user-auth

What did you see instead?
404
What version of Traefik are you using?
v2.8.0
What is your environment & configuration?
v1.23.9+k3s1
If applicable, please paste the log output in DEBUG level
No response

Hi! I'm Træfiker :robot: the bot in charge of communication regulation.
Thanks for your interest in Traefik!
We dedicate the issue tracker to bug reports and feature requests only. My advanced AI has spotted that your issue might be a configuration problem or relates to something that doesn't look like a bug.
To confirm this, please join our Community Forum and reach out to us on the Traefik section.
In case I'm wrong (well, that would be embarrassing :sweat_smile:), my developers will re-open the issue and fix me!
In the meantime, you can double check Traefik's documentation.

The community Forum has few replies, Why not use github discussion?

The community Forum has few replies, Why not use github discussion?


Question: How to Redirect to IdentityServer instead of using password flow?

Hi There,
Thanks for your great sample. It has super useful info regarding Angular2-jwt usage with IDSvr.
All the samples I have seen thus far, including work from Damien Bod, ( https://github.com/damienbod/AspNet5IdentityServerAngularImplicitFlow ) has the angular client use implicit flow and redirects to the IdentityServer where the user chooses thier auth type, so they can choose 'local account' or google or whatever is setup on IdSvr.
Is it easy to switch your code from a ROPC flow to Implicit?
I have spent a bit looking at your sample code and that of Damien Bods, however I cannot see what I need to change properly.
In Damiens code the authorize function does a redirect to the IDSvr
public Authorize() {
        this.ResetAuthorizationData();

        console.log('BEGIN Authorize, no auth data');

        let authorizationUrl = this._configuration.server + '/connect/authorize';
        let client_id = this._configuration.client_id;
        let redirect_uri = this._configuration.redirect_url;
        let response_type = this._configuration.response_type;
        let scope = this._configuration.scope;
        let nonce = 'N' + Math.random() + '' + Date.now();
        let state = Date.now() + '' + Math.random();

        this.store('authStateControl', state);
        this.store('authNonce', nonce);
        console.log('AuthorizedController created. adding myautostate: ' + this.retrieve('authStateControl'));

        let url =
            authorizationUrl + '?' +
            'response_type=' + encodeURI(response_type) + '&' +
            'client_id=' + encodeURI(client_id) + '&' +
            'redirect_uri=' + encodeURI(redirect_uri) + '&' +
            'scope=' + encodeURI(scope) + '&' +
            'nonce=' + encodeURI(nonce) + '&' +
            'state=' + encodeURI(state);

        window.location.href = url;
    }

So I'd say I'd need to implement the same redirect with your sample as well.
But.... Im just not sure how to handle the redirect using Auth0.
Anyways, you probably have the answer so I'll leave my question at that. Any assistance or answer on this would be greatly appreciated.
Cheers

If I understand correctly, you would like to use the client code of this project with the server-side code that uses an implicit flow like Damien's.
Major differences: this project does not decode the access token on the client and obviously does not use a reference token. Of course, you have to set different parameters such as redirect_uri.
I never used Auth0. Try to see this guide: https://auth0.com/docs/api-auth/tutorials/implicit-grant
Greetings

Cheers Roberto,
I reckon I have it figured out, I just need to combine a bit of code from Damiens with what you have and should be good.
Cheers


Sympy module. Error in buildozer: no module named sympy.testing

Hi I'm getting this error when I run my code: No module named 'sympy.testing'. I have added the module in buildozer.spec as sympy. Here there are the log and buildozer file:
errore.txt
buildozer.txt

log: https://easyupload.io/0z0j52 Buildozer.spec: https://easyupload.io/6fscc0 are not opening.

'log: https://easyupload.io/0z0j52 Buildozer.spec: https://easyupload.io/6fscc0' are not opening.

'log: https://easyupload.io/0z0j52 Buildozer.spec: https://easyupload.io/6fscc0' are not opening.

Try now

The Android recipe uses sympy version is 1.1.1
https://github.com/kivy/python-for-android/blob/develop/pythonforandroid/recipes/sympy/__init__.py
sympy.testing was added in 1.6
https://github.com/sympy/sympy/tree/sympy-1.6/sympy/testing
Direct any usage question to the User Group
https://groups.google.com/g/kivy-users

The Android recipe uses sympy version is 1.1.1
https://github.com/kivy/python-for-android/blob/develop/pythonforandroid/recipes/sympy/__init__.py
sympy.testing was added in 1.6
https://github.com/sympy/sympy/tree/sympy-1.6/sympy/testing
Direct any usage question to the User Group
https://groups.google.com/g/kivy-users

I solved reinstalled the .buildozer folder with 1.1.1 version of sympy


I want to create a workflow which contains first worker task then lambda task and then http call. Worker task always shows in SCHEDULED status. How to make it in progress and forward to lambda task

@Priena This lab might help you better understand the different task types and execution flow in Conductor: https://netflix.github.io/conductor/labs/beginner/


Would you be williing pull requests for kaomoji?

I'm thinking on adding more kaomoji to the databases like this, would you like to be receiving pull requests if I do?
also, how are they organized in the file? by unicode code point?
EDIT: as well as adding more keywords so they can be easily found.

I like this idea, since being able to enlarge the kaomoji "DB", but the kaomoji need to be searchable, just like they are now, so the should have at least 1 keyword, maybe deploying in a json file? like this:
[
{kaomoji: "(★^O^★)", keywords: ["happy","Star"] },
{kaomoji: "┬──┬◡ﾉ(° -°ﾉ)", keywords: ["table", "flip"]}
]

it would be easy to check for duplicates and would allow people to add them to their installation even if you don´t aprove them

I like this idea, since being able to enlarge the kaomoji "DB", but the kaomoji need to be searchable, just like they are now, so the should have at least 1 keyword, maybe deploying in a json file? like this:
[
{kaomoji: "(★^O^★)", keywords: ["happy","Star"] },
{kaomoji: "┬──┬◡ﾉ(° -°ﾉ)", keywords: ["table", "flip"]}
]

it would be easy to check for duplicates and would allow people to add them to their installation even if you don´t aprove them

Hello, I made an script which is not working, it is 95-98% done and it reads and write in the same model as the database which splatmoji uses, which is:
<kaomoji>, <tab, \t>, <keyword>, [<comma>, [space], <keyword2>] ... etc
<> means obligatory and [] means optional. You can check the format here. It can easily converted to json if needed, in my software, when reading the DB it reads in a searchable manner in ram if i can recall well.
When executed it shows a cli prompt so for you to enter a emoji. If the emoji exists in the database, it shows the current keywords and you have the option to delete the kaomoji, delete some keyword, add a keyword and if the kaomoji doesn't yest exist etc.
But it has some bug that I didn´t find and left it behind. It is a little bug which is not writing the db correctly, The repository is iacchus/splatmoji-kaomoji-edit-tool. The .bkp files are the edition tests I was making.
If you want to try just clone the repo and run kaomojitool.py, (python3 needed) but it is bugged. (Not writing the db sometimes.)
Make it executable (chmod +x kaomojitool.py on gnu/linux then ./kaomojitool.py) or run python kaomojitool.py. It reads the emoticons.tsv within the repository.

Hey! your project sounds cool, wil ease a lot the improvement of this project, expect a few pull request from me (⌒.−)＝★
tho still don´t understand the kaomoji db standard for this project, haven´t loooked at it so rigorously yet also not so good at bash scrips (even tho i use linux) I use Arch BTW ヾ(。◕ฺ∀◕ฺ)ノ

I like this idea, since being able to enlarge the kaomoji "DB", but the kaomoji need to be searchable, just like they are now, so the should have at least 1 keyword, maybe deploying in a json file? like this:
[
{kaomoji: "(★^O^★)", keywords: ["happy","Star"] },
{kaomoji: "┬──┬◡ﾉ(° -°ﾉ)", keywords: ["table", "flip"]}
]

it would be easy to check for duplicates and would allow people to add them to their installation even if you don´t aprove them

Hello, I made an script which is not working, it is 95-98% done and it reads and write in the same model as the database which splatmoji uses, which is:
<kaomoji>, <tab, \t>, <keyword>, [<comma>, [space], <keyword2>] ... etc
<> means obligatory and [] means optional. You can check the format here. It can easily converted to json if needed, in my software, when reading the DB it reads in a searchable manner in ram if i can recall well.
When executed it shows a cli prompt so for you to enter a emoji. If the emoji exists in the database, it shows the current keywords and you have the option to delete the kaomoji, delete some keyword, add a keyword and if the kaomoji doesn't yest exist etc.
But it has some bug that I didn´t find and left it behind. It is a little bug which is not writing the db correctly, The repository is iacchus/splatmoji-kaomoji-edit-tool. The .bkp files are the edition tests I was making.
If you want to try just clone the repo and run kaomojitool.py, (python3 needed) but it is bugged. (Not writing the db sometimes.)
Make it executable (chmod +x kaomojitool.py on gnu/linux then ./kaomojitool.py) or run python kaomojitool.py. It reads the emoticons.tsv within the repository.

Hey! your project sounds cool, wil ease a lot the improvement of this project, expect a few pull request from me (⌒.−)＝★ tho still don´t understand the kaomoji db standard for this project, haven´t loooked at it so rigorously yet also not so good at bash scrips (even tho i use linux) I use Arch BTW ヾ(。◕ฺ∀◕ฺ)ノ

The DB format is this way: each line contains:
First, the kaomoji characters.
Second, a tab character (which separates the kaomoji from the keywords.)
Then, a comma-separated list of keywords, possibly using space characters after the commas, which can be ignored.
So we read each line, split by TAB (\t) character/ the first part is the kaomoji, the second is the list of keywords. Then you split the list of keywords by the comma (,) character, remove the whitespace from the beginning and from the ending of each keyword of the list and we are done.
The script uses the python language.


Add readiness and health checks

Is your proposal related to a problem?
Add readiness and health check so orchestration frameworks know how to deploy our service with zero downtime.
Describe the solution you'd like

Add a readiness check endpoint which returns an ok status when service is ready
Add a health check endpoint which checks if DB and other internal components are healthy

Fixed in https://github.com/boxyhq/jackson/pull/133


HttpPOST on MessageCard returns ODataContentTypeException

We set up a new Microsoft Teams Connector and successfully set the settings to POST cards to the received WebhookUrl.
In the body that we send, we included the option to make HttpPost requests to a defined target URL (using ngrok.io tunnel for development). You can see the sent messageCard below:
{
    "@type": "MessageCard",
    "@context": "https://schema.org/extensions",
    "summary": "Card \"Test card\"",
    "themeColor": "0078D7",
    "title": "Card created: \"Just another test\"",
    "potentialAction": [
        {
            "@type": "ActionCard",
            "name": "Add a comment",
            "inputs": [
                {
                    "@type": "TextInput",
                    "id": "comment",
                    "isMultiline": true,
                    "title": "Enter your comment"
                }
            ],
            "actions": [
                {
                    "@type": "HttpPOST",
                    "name": "Ok",
                    "target": "https://dd846f80.ngrok.io/teamshooks/actions",
                    "body": "{\"Comment\":\"This is a test\"}",
                    "headers": [
                        {
                            "Content-Type": "application/json"
                        },
                        {
                            "aw-teamid": "00000000-0000-0000-0000-000000000001"
                        }
                    ]
                }
            ]
        }
    ]
}

The card is displayed correctly in the channel in Microsoft Teams.
When a user clicks on this button, to make a HttpPOST to the specified url, we never receive the request on our side but can see that Microsoft returns the following response to the internal "executeAction" request:
The request was sent on: Fri, 13 Dec 2019 11:09:48 GMT
{
   "status": "Failed",
   "actionId": "c520b20a-3e04-4e21-b4fd-c3a2f760c533",
   "properties":
      {
          "displayMessage": "
Could not complete the requested action. Please try again later.
\n",
          "errorCode": "ODataContentTypeException"
      }
}

The following settings are set-up in the Connectors Developer Dashboard:

Can you tell us, if there is anything we are currently doing wrong or how to solve the returned ODataContentTypeException? We need to receive the request in our backend, in order to integrate Micorsoft Teams into our software.

@Xolution13 Could you please confirm if you are testing this in the same account where you have created the connector?

Yes, I created the connector with my account and am testing this with my account in my team.

That headers section looks off, can you send it w/o that section?

Removed the header section. Still same result unfortunately:
date: Wed, 18 Dec 2019 10:25:13 GMT
{
   "status":"Failed",
   "actionId":"ad011ce6-9dc8-4217-8982-bda2051955bf",
   "properties":{
      "displayMessage":"
Could not complete the requested action. Please try again later.
\n",
      "errorCode":"ODataContentTypeException"
   }
}

@Xolution13 Could you please check with your tenant admin If the connector is enabled in the tenant settings access list?

I'm getting the same issue.
I'm using ngrok for forwarding and i'm posting this body to the incoming webhook.
Tried multiple payloads but never getting a result in my local webhook.
{   "@context": "https://schema.org/extensions",   "@type": "MessageCard",   "themeColor": "8083c0",   "title": "Customer support",   "text": "Support requested from Oswald chatbot X",   "potentialAction": [     {       "@type": "ActionCard",       "name": "Takeover",       "inputs": [{             "@type": "TextInput",             "id": "comment",             "isMultiline": false,             "title": "Add a comment here for this task"         }],       "actions": [         {           "@type": "HttpPOST",           "name": "Send Feedback",           "target": "https://d438d16c.ngrok.io/api/v1/chats/microsoft-teams/takeover/webhook"         }       ]     },     {       "@type": "OpenUri",       "name": "Cancel",       "targets": [         { "os": "default", "uri": "https://docs.microsoft.com/outlook/actionable-messages" }       ]     }   ] }

@Xolution13 Could you please check with your tenant admin If the connector is enabled in the tenant settings access list?

Do you have any references or links that can help to find where we should exactly look?

I am not sure, if I looked in the right place. So,  @Gousia-MSFT can you please verify that I checked the "tenant settings access list":
In the Microsoft 365 Admin Center, I choose Settings and then selected Services & add-ins. Then I clicked on Microsoft Teams and checked, if my connector was listed there (Tenant-wide settings -> Apps).
The connector is listed and enabled in this list.

@Xolution13 Could you please try putting the targetUrl to any of the link generated in webhook.site and see if the request reaches there?

@Xolution13 Could you please try putting the targetUrl to any of the link generated in webhook.site and see if the request reaches there?

I tried this and I'm not getting any requests on the generated link.

@Gousia-MSFT we tried this as well but the requests are not reaching the webhook.site url.
However, we decided to set up a new free Microsoft Teams developer account, that is completely detached from our old accounts (new teams) and there setting up the connector and receiving the POST-actions works fine. Is it possible, that there are some issues with old/legacy accounts?


Unable to perform database seeding if RDS is deployed using built-in resource definitions

Describe the bug

Unable to perform database seeding if RDS is deployed using built-in resource definitions
Steps to reproduce

Using the built-in type mysqlor postgresql to create a resource.

Result

Unable to perform database seeding.

Expected behavior

Environment

Walrus version: main 42f6b1e6cbcd105e9e99ea8badacace1a799c043
UI version: dev-2fca30f

Additional context
Add any other context about the problem here.

Environment

Walrus version: main 66f1bd1681cc926d6b35a6caed7ec5f793ae103a
UI version: dev-21d34af

Test Result: pass, but failed to deploy docker postgresql due to https://github.com/seal-io/walrus/issues/1946


RAMPS wiring

Hi,
I was wondering how you have connected each of the GY-521 SDA and SCL pins to the same pin 20 and 21 on the RAMPS board using jumper wires - are you using a breadboard?
Also, are you using a separate power supply or using the +12V from pin D8 and a ground pin on the RAMPS board?
Thanks,
Louise

You could use a breadboard, but, as the arm is expected to move around a lot, using breadboard is not recommended. I used ribbon cable https://www.sparkfun.com/products/10647 to wire modules together (just soldered), then cut couple of jumper cables and then soldered some more ribbon cable to it and to the module on rear arm.
I'm not sure what you mean about 12V. Separate power supply for what?
Just in case, you are not talking about feeding 12V to the GY-521 modules, do you? Their supply voltage is 5V.

I meant 12V to power the RAMPS board - you say to connect a 12V supply to the RAMPS MSTBA4 connector. Is this using a separate PSU as the dobot was originally powered through the FPGA?

Still not sure what you mean by "separate" and what you were going to feed from D8.
In case of driving Dobot with RAMPS you need only one power supply, connected to MSTBA4, which has GND and two lines for 5A and 15A respectively. Both those lines should be connected to the power supply that came with Dobot. Just make sure polarity is right.


Improvement shortcut for str to date parse

Proposed changes

shortcut for str to date parse
remove some unused code

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

run buildall

run buildall

run buildall

run buildall

run buildall


Elixir: init 1.6-rc.0

Motivation for this change
New Elixir version
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg build elixir_1_6_rc

@GrahamcOfBorg build elixir_1_6_rc

We should consider dropping older elixirs as soon as it is convenient.


Incorrect display of images with in JN book on AGU website

The external images used in Tutorial 1 are correctly displayed in the JN on GitHub (https://github.com/GenericMappingTools/agu24workshop/blob/main/book/tut01_firstfigure.ipynb) but not in the Jupyter book on the AGU website (https://www.generic-mapping-tools.org/agu24workshop/tut01_firstfigure.html#coloring-and-add-map-element-frame-and-ticks):

JN on GitHub
JB on AGU website

I also noticed this problem on Friday. I can upload the original figure.
It seems to need reference a figure with specific file path. (https://jupyterbook.org/en/stable/content/references.html)


Do you plan to update the benchmark?

This is a good benchmark, thank you for that. Do you plan to add modern models like Opus, llama-3, granite, codeqwen1.5-chat and so on to the benchmark?

Thanks for your feedback! We are currently working on this and plan to add the latest models to the benchmark soon.


feat(types): Move type folder outside src/

Gosh, hope is the last... the types folder had to be in the root of the project, not in /src 😢
I'm very sorry, first time adding types to an existing repo.

No worries, I'm not a pro at this either :) just happy your contributing.
Will merge this one tomorrow morning.


TypeInitializationException attempting to serialize Dictionary<int,  int>

Before I start complaining....my company serializes petabytes to disk per hour using MessagePack.  The amount of compute HyperSerializer is going to save us is INSANE.  Now for the complaining...
The serialize method throws a TypeInitializationException when I try to serialize dictionaries containing value types for both key and value.  The following is the code to reproduce:
var dic = new Dictionary<int, int>() { { 1, 2 }, {3, 4}};
var bytes = HyperSerializer<Dictionary<int, int>>.Serialize(dic);

Support for dictionaries and classes with properties that are complex types is planned but currently unsupported (see "Limitations" section for more details).  I plan on adding support for both of the aforementioned as soon as I can spare a day or two.  It shouldn't be that heavy lift so possibly sooner, but the it started as a quick and dirty research project so the codebase isn't winning any beauty pageants.
If you're feeling ambitious and want to get involved to speed things up, let me know!