[JBEAP-25577] Respect java proxy options when using URL.openStream

The default java implementation ignores http.proxyUser and http.proxyPassword, and the same for the https properties
URL.openStream is called by jackson in OBJECT_MAPPER.readValue(URL)

I think it is done

@ettoreleandrotognoli thanks


Environment Configuration

When I was configuring the environment and running it, I kept getting errors and could not fine-tune it properly. I suspect it was a problem with some library versions. I noticed that you did not give the corresponding version number of orbax-checkpoint. Could you give all the packages, including the version of orbax-checkpoint? Thank you very much!

Resolved


Use GcmParams with AWS CloudHSM will cause undefined behavior

AWS doc says

When performing AES-GCM encryption, the HSM does not accept initialization vector (IV) data from the application. You must use an IV that it generates. The 12-byte IV provided by the HSM is written into the memory reference pointed to by the pIV element of the CK_GCM_PARAMS parameters structure that you supply.

and in code
https://github.com/parallaxsecond/rust-cryptoki/blob/024976fc892b96ad72fbc4af38cf9449c42034c4/cryptoki/src/mechanism/aead.rs#L39
https://github.com/parallaxsecond/rust-cryptoki/blob/024976fc892b96ad72fbc4af38cf9449c42034c4/cryptoki/src/mechanism/aead.rs#L58
It violate the Rust aliasing model, cases undefined behavior, and it's impossible to extract IV content from AWS CloudHSM SDK.
Possible solutions

simplely modify the function signature, from &'a [u8] to &'a mut [u8], and it also affect the variance of GcmParams<'a> , from PhantomData<&'a [u8]> to PhantomData<&'a mut [u8]>
add a new type GcmParamsMut and mark the GcmParams::new as unsafe (or safe is ok?).

According to the SAFETY comment, rust-cryptoki assumes all the supported mechanisms will not mutate the parameters, but it actually depends on the specific HSM vendor? All the pointer casts will be UB if the loaded PKCS11 library mutates the input.
In this case, neither the C_EncryptInit signature nor the standard specified whether the input should be const or not.
Maybe it shouldn't make such a const assumption at all, but changing all the Mechanism codes to &mut just for this specific case sounds cumbersome. Not sure what's the best option here.

simplely modify the function signature, from &'a [u8] to &'a mut [u8], and it also affect the variance of GcmParams<'a> , from PhantomData<&'a [u8]> to PhantomData<&'a mut [u8]>

I'm okay with changing the function's signature and then fixing everything recursively upwards.
Thanks for reporting!

FYI,
In order to comply with FIPS requirements (i.e. when HSMS are operated in FIPS mode), the IV for GCM is generated (randomly) by the HSM and the user is not allowed to provide it. Some vendors require the IV to be "nullified", some will return the IV concatenated with the encrypted payload, while others will populate the IV in GcmParams. AES GCM is a hot mess in PKCS#11!
The behaviour is really vendor-specific. Room for "AES GCM" flavours in the library?

See https://github.com/parallaxsecond/rust-cryptoki/pull/226
This is trickier than expected.
With the added mutability, the entire Mechanism structure becomes non-cloneable.
We might need to either redesign the Mechanism abstraction or add a try_clone method.
Or easier, is the non-cloneable acceptable?

Do we see any other operations that would also modify the input Mechanism? Agree that it would be cumbersome to have to change the whole Mechanism lifetime + bounds only to satisfy this one use-case.
Would it be ugly to add another return value to the encrypt function (that would be ignored for encryption functions that do not return anything else than the encrypted payload)?

After discussion on Slack and having thought about it a bit more, now agree with making Mechanism mutable.
Could we make it clear though in the signature of the function that the Mechanism can be changed? Is that what you propose with this commit?

I see! Then I think we could just change the signature of every function to take a &mut Mechanism where before we took a &Mechanism. Then we can remove the safety notice in make_mechanism. Since there is nothing in the spec saying that a mechanism can not be changed by the implementation I guess that is the correct thing to do?

I was thinking about it and maybe mut ref is necessary anyway (instead of moved owned value) so that the caller can read the modified value after the call? 🤔


Examples for training and finetuning the model

Hello, this is a great repository. I noticed that there are no examples for training and finetuning the model yet. Some updates regarding these will be highly appreciated. Thanks in advance.

Hello, thanks for the feedback,
You can find the data here


form_validation rule with "matches[]" needs "required" to work

I am in the process of upgrading CodeIgniter from 2.2.6 to 3.0.6.
I have a form to edit user-data. It has 2 passwordfields, the idea being that if they're left empty, the users password is not changed. However, if they're filled out, they must be identical. I have the following rules for that:
$this->form_validation->set_rules('password', 'Password', '');
$this->form_validation->set_rules('passconf', 'Confirm password', 'matches[password]');

This worked fine under 2.2.6, but it is not working under 3.0.6. It reports the passwords are not identical even if they are. If both are left empty, it validates and therefore works, though.
I found I could resolve the validation problem of them supposedly not being equal by setting the rule to required:
$this->form_validation->set_rules('password', 'Password', 'required');

But this has the unwanted effect that you now always have to change the password as well, which is not what I want.

It doesn't need the 'required' rule, you just need to have some rule set on both fields - defining a field to be validated, but then setting no validation rules for it makes no sense. It's more likely a programmer's error than anything else, and hence why it fails.
See #3736 for more info.

OK, then I can have a workaround. Still feel that it is strange, because if I remove the set_rules call for the password-field, then it still fails. I can accept that trying to set the rules to empty is not supported, but it still does not work if I don't try to set those rules at all.

... that's the same thing.

OK, so I now set it to callback_dummy_rule and have a dummy_rule that returns TRUE always. It works...
Hm, I suppose I could set a minimum-length as well. Didn't require that before, and I'm not really very interested to set that kind of limits, but they don't hurt, so I'll go for that instead.


WANT TO SEE HOT PICS WITH ME? 💋 💋 💋

WANT TO SEE HOT PICS WITH ME? 💋 💋 💋
👇 👇 👇
https://clck.ru/MJjwV

This is a first...


Design/control utils/codeclone removal

This PR is the follow-up of Design/control utils/deadcode removal #1026. It removes almost all code clones in the ControlUtils class. All other classes which did still use this functionality will from now on use the Roboteam_utils functionality instead.

This PR can only be merged once: Fix bug in ShortestAngleDiff #68 on the Roboteam_utils repository is merged


Add time-limited retries to InstallPlan execution.

In order to recover from transient errors while applying step
resources, errors at this stage will be retried until success or
timeout, and .status.message will indicate that retries are
occurring. Configuring a timeout of zero is equivalent to disabling
the retry behavior.

/lgtm

/lgtm

/hold cancel

@benluddy Do we have any plan to cherry this PR to previous versions?

@benluddy Do we have any plan to cherry this PR to previous versions?

No, this depends on the new startTime field in the InstallPlan API, so it won't be backported. If you're an OpenShift user, there is https://bugzilla.redhat.com/show_bug.cgi?id=1923111 which tracks creating a limited backportable patch for the same problem.

@benluddy Thank you for the information!


Only dots shown with HTTPS Everywhere enabled

Per discussion with @davidar on ArchiveLabs #general Slack channel, attempting to use this service with the HTTPS Everywhere Chrome add-on results in dots being shown indefinitely without any thumbnail images. I was able to replicate the experience with Chrome 61 and HTTPS Everywhere 2017.10.4 (both latest). Access the deployment on https results in an insecure message but the same display.

This is a CORS error. The images that we're serving need to be A) available over http and https protocols and B) add a header for access-control-allow-origin with the value of the site or of all sites with * as can be seen here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

The images are currently served directly from a nodejs microservice. I'd need to do some work to get it served through https.


Create a repository for tasks made in GDScript that do not fit in LimboAI core, but may be useful for some projects

Such tasks typically would be useful on a relatively small number of projects.
Tasks in such a repository can be eventually promoted to core, if deemed worthy.
Serves as an archive of examples for new users to learn from.
Can be used for kick-starting future core tasks (experimental implementations).
Can be put on Asset Lib, and imported partially - only bits you personally require.
Platform for users to share their best bits.

Created a new public repo for additional BT tasks: https://github.com/limbonaut/limboai-extra

I think that maybe the following nodes better be in (or be added to) the core rather than reside there:

PlayAudio / StopAudio
GetAgentVar (gets some property from agent or specified object and puts it into blackboard)

Thoughts?

Blackboard variable binding interface is coming in the future (API already supports it in Blackboard.bind_var_to_property), so I opted for not adding GetAgentVar, as it will be obsolete when that support is added. The audio stuff may come to core, but tbh you can do the same using CallMethod. I don't want to go too granular with this, because Godot API is big - shouldn't make tasks for just about everything. It's trivial to add such tasks yourself, if you need them.


minor feature request on tags

I know tags are being used for a heap of reasons, but when a page is - for example - 'single cell', the 'single cell' tags then are annoying to see.
Is it possible to mute a single tag on a training page? They can stay on the tutorials themselves, just if the page itself is ALL of that tag, perhaps it could be not shown?

In general I think our rule is "don't tutorials in topic X with tag X" because that's redundant. You could probably just remove all of those instances? Unless you're relying on them being there for some purpose

ahhhh ace! I was only including them in advance of potentially making tags auto-create their own page
Awesome, I'll remove them, thanks!


Bookmarks deleted between beta builds

When I update to a new beta, the bookmarks disappear. Is this expected?

Bug Report Dump (Auto-generated)

Version 1.12.0 (1179)
Device: iPhone 7 Plus (iOS 11.1)
TestFlight: true

Yeah we have a few issues about this, the latest being #860 😞
It is expected due to the work on the way they're stored and the model changes, this is just part of the development cycle unfortunately!
It should be stable in between app-store releases

Ok, this one is a bit personal given I work at Realm and data persistence is our thing. Perhaps this could be a good fit?

@bigfish24 that'd be pretty awesome!


msal-react: MsalProvider throws exception if app launched via insecure URL

Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.6.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
2.0.8
Public or Confidential Client?
Public
Description
If I launch my app via an insecure URL, e.g. http://<IP_ADDRESS>:3000, the MsalProvider throws an unhandled exception, which causes react to not render all child JSX nodes (which usually is the whole application). The application works totally fine and authenticates correctly if I launch it via a 'trusted' URL, for example https://example.com or http://localhost:3000.
I'm not expecting authentication to work when the app is launched via an insecure URL, but I am expecting MsalProvider to not crash my whole application.
Browser: Edge 120.
This is likely caused by Msal trying to use the window.crypto.randomUUID function, which is only available in a secure Browser context. The problem is immediately reproducible by opening the react-router-sample via an unsafe URL (e.g. from a different machine using http://)
Error Message
Uncaught TypeError: window.crypto.randomUUID is not a function
    at createNewGuid (BrowserCrypto.ts:87:1)
    at EventHandler.addEventCallback (EventHandler.ts:44:1)
    at StandardController.addEventCallback (StandardController.ts:1684:1)
    at PublicClientApplication.addEventCallback (PublicClientApplication.ts:149:1)
    at MsalProvider.tsx:143:1
    at commitHookEffectListMount (react-dom.development.js:23150:1)
    at commitPassiveMountOnFiber (react-dom.development.js:24926:1)
    at commitPassiveMountEffects_complete (react-dom.development.js:24891:1)
    at commitPassiveMountEffects_begin (react-dom.development.js:24878:1)
    at commitPassiveMountEffects (react-dom.development.js:24866:1)
react-dom.development.js:18687  The above error occurred in the <MsalProvider> component:

    at MsalProvider (http://<IP_ADDRESS>:3000/static/js/bundle.js:447590:3)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
logCapturedError @ react-dom.development.js:18687
Show 1 more frame
Show less

Msal Logs
No response
MSAL Configuration
{
  "auth": {
    "clientId": "xxxxx",
    "authority": "https://login.microsoftonline.com/xxxxx",
    "redirectUri": "http://<IP_ADDRESS>:3000"
  },
  "cache": {
    "cacheLocation": "sessionStorage",
    "storeAuthStateInCookie": false
  }
}

Relevant Code Snippets
Just use react-router-sample

Reproduction Steps

Build msal-react-samples/react-router-sample
npm start
Visit the app via the On Your Network URL given here:

Expected Behavior
Authentication fails, but app still renders
Identity Provider
Azure AD / MSA
Browsers Affected (Select all that apply)
Edge
Regression
No response
Source
External (Customer)

Our libraries do not support http contexts. If you have a requirement to run your application in http without auth I would suggest conditionally rendering the MSAL components when in a supported context.

That's what I'm currently doing @tnorling. But don't you think that using the library in a http context shouldn't result in a somewhat cryptic exception thrown by crypto.randomUUID not existing? Even worse if the exception prevents rendering of everything wrapped inside MsalProvider.
I understand that you don't support this use-case, but I would at least expect a proper error message when the context is initialized inside an unsafe context. Ideally MsalProvider would also just behave as a no-op in that case.


feat(elevation_map_loader): use polygon iterator to speed up

Description
When use_lane_filter is true, elevation map loader makes inpaint mask only within the lane polygons.
This option could be useful for large size map which takes long time to inpaint.

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@kosuke55 @taichiH Could you review this PR as codeowners?
@Shin-kyoto and I have already checked it works all right


Trainer training batches estimation for map-style datasets seems wrong

Hello,
It seems that setting max_steps and not setting max_epochs for map-style datasets will lead to estimated_stepping_batches returning the batches for a single epoch. From the docstring, it indicates that this would be the estimated stepping batches for the whole training. I believe the line below (with max(self.max_epochs, 1)) is not appropriate in this scenario. Shouldn't it always return max_steps in case max_epochs == -1?
https://github.com/Lightning-AI/lightning/blob/deaadc157b87b653f1c3aa7926a5ff092ab81863/src/pytorch_lightning/trainer/trainer.py#L2783
Thanks!
cc @carmocca @justusschock @ananthsub @ninginthecloud @rohitgr7

@rohitgr7 Do you have an idea what @robertomest means here?

Hi @awaelchli,
Sorry if my explanation was confusing, let me try to make it clearer. The way I understand estimate_stepping_batches should work is that it should return the number of stepping batches for the whole training.
In cases where you have a dataset with specific length, and you define a maximum number of epochs, the number of steps would be computed based on batch size, accumulation steps, etc (this seems all good and you take care of a lot of stuff). For cases where you supply a maximum number of steps, but not number of epochs, then you should use max_steps instead of assuming one epoch (which is what max(self.max_epochs, 1) does), regardless of the dataset length, since max_steps will necessarily be the defining factor.
From what I understand, the current implementation will use max_steps if the dataset has infinite length (iterable dataset), but it will default to one epoch for map-style datasets.
Does that make more sense?

https://github.com/Lightning-AI/lightning/blob/deaadc157b87b653f1c3aa7926a5ff092ab81863/src/pytorch_lightning/trainer/trainer.py#L2785
but it will consider max_steps in the very next line to make sure in case your total batches are less than max_stepsit computes this value correctly since it's not going to run for more than that during training.

This next line will make sure to pick the lower of both conditions, which makes sense to me. The problem is that if max_epochs == -1, line 2783 will evaluate to a single epoch, and max_estimated_steps will be limited by that value. Below is a simple repro of the issue: in this case I'd expect self.trainer.estimated_stepping_batches to evaluate to 1000, since max_epochs is not used, but it's computed as a single epoch of steps.
import pytorch_lightning as pl
import torch
from torch.utils.data import Dataset, DataLoader

class ExampleDataset(Dataset):
    def __init__(self, size: int):
        self.data = torch.randn(size, 10)

    def __getitem__(self, idx: int):
        return self.data[idx]

    def __len__(self):
        return len(self.data)

class ExampleModule(pl.LightningModule):
    def configure_optimizers(self):
        print(f"{self.trainer.estimated_stepping_batches=}")
        raise RuntimeError()

    def training_step(self, *args):
        raise RuntimeError()

dataset = ExampleDataset(100)
loader = DataLoader(dataset, batch_size=5)
pl_module = ExampleModule()
trainer = pl.Trainer(logger=False, max_epochs=-1, max_steps=1000)

trainer.fit(pl_module, loader)
# prints self.trainer.estimated_stepping_batches=20

Sure, I can do that 🙂


Prefix nested model names when flattening

Currently the addNestedModel function in parser.cc prefixes link, joint, and frame names with the flattened model name delimited by "::". This applies the same prefix to the names of nested models within the flattened model as well. Motivated by https://github.com/osrf/sdformat/pull/355#pullrequestreview-485492932

Codecov Report

Merging #399 into sdf10 will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            sdf10     #399   +/-   ##
=======================================
  Coverage   87.36%   87.36%
=======================================
  Files          60       60
  Lines        9219     9220    +1
=======================================
+ Hits         8054     8055    +1
  Misses       1165     1165

Impacted Files
Coverage Δ

src/parser.cc
78.57% <100.00%> (+0.02%)
:arrow_up:

Continue to review full report at Codecov.

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

I can't remember if we wanted to backport this to sdf9?

I can't remember either :(
@azeey If there is a plan to release and incorporate a new sdf9 version, might you be able to try this (after Thanksgiving), capping it to like 15min of effort? (git cherry-pick and cross your fingers?)


Allow annotations to be created on any pane

Currently they show up on the candle pane with no option to override it. I see I can pass in id to the constructor, but it doesn't appear to change the pane.

Along the same line of question, drawExtend seems to be called for for every overlays in chart. I don't understand the code enough, but is it possible to optimize so it is only called once?

drawExtend belongs to the annotation instance, load an annotation, drawExtend will be executed once.


Bug: Not possible to test components with async setup

Im trying to use tests on component that is rendered asynchronously. I have tried to create simple component with async title but the problem still persists. I have added suspense around the component, added await flushPromises(); and also await wrapper.vm.$nextTick(); but nothing helps. Any recommendations?
<template>

{{ title }}

{{ item }}

    <slot name="customSlot"></slot>

</template>

test file:
import { describe, it, expect } from 'vitest';
import SimpleList from<EMAIL_ADDRESS>import { defineComponent } from 'vue';

describe('SimpleList with async setup', () => {
  it('renders the title and items when wrapped in Suspense', async () => {
    const WrapperComponent = defineComponent({
      components: { SimpleList },
      template: `
        <Suspense>
          <template #default>
            <SimpleList :items="['Item 1', 'Item 2', 'Item 3']" />
          </template>
          <template #fallback>

Loading...

          </template>
        </Suspense>
      `
    });

    const wrapper = mount(WrapperComponent);

    // Wait for async operations
    await flushPromises();
    await flushPromises();

    // Ensure Suspense resolves
    await wrapper.vm.$nextTick();

    // Test for the title rendered from async setup
    const title = wrapper.find('h1');
    expect(title.exists()).toBe(true);
    expect(title.text()).toBe('Async Title');

    // Test for the list items
    const listItems = wrapper.findAll('li');
    expect(listItems).toHaveLength(3);
    expect(listItems[0].text()).toBe('Item 1');
    expect(listItems[1].text()).toBe('Item 2');
    expect(listItems[2].text()).toBe('Item 3');
  });
});```

Hi @ersi77
Reading through your example, I think this is similar to this discussion: https://github.com/vuejs/test-utils/discussions/1904
If that doesn't help, can you provide us a small repro online using https://stackblitz.com/github/vuejs/create-vue-templates/tree/main/typescript-vitest?file=src%2Fcomponents%2F__tests__%2FHelloWorld.spec.ts ?
It only takes a few minutes, and we'll be able to take a look

Hi @ersi77
Reading through your example, I think this is similar to this discussion: #1904
If that doesn't help, can you provide us a small repro online using https://stackblitz.com/github/vuejs/create-vue-templates/tree/main/typescript-vitest?file=src%2Fcomponents%2F__tests__%2FHelloWorld.spec.ts ?
It only takes a few minutes, and we'll be able to take a look

I have tried adding fakeTimers but it didnt help here is link with added test file and component simpleList.vue
https://stackblitz.com/edit/github-32gn1n?file=src%2Fcomponents%2F__tests__%2FSimpleList.test.ts

You forgot to advance the timer before flushing:
import { mount, flushPromises } from '@vue/test-utils';
import { describe, it, expect, vi } from 'vitest';
import SimpleList from '../SimpleList.vue';
import { defineComponent } from 'vue';

describe('SimpleList with async setup', () => {
  it('renders the title and items when wrapped in Suspense', async () => {
    vi.useFakeTimers();
    const WrapperComponent = defineComponent({
      components: { SimpleList },
      template: `
        <Suspense>
          <template #default>
            <SimpleList :items="['Item 1', 'Item 2', 'Item 3']" />
          </template>
          <template #fallback>

Loading...

          </template>
        </Suspense>
      `,
    });

    const wrapper = mount(WrapperComponent);

    // Wait for async operations
    vi.advanceTimersByTime(500);
    await flushPromises();

    // Test for the title rendered from async setup
    const title = wrapper.find('h1');
    expect(title.exists()).toBe(true);
    expect(title.text()).toBe('Async Loaded Title');

    // Test for the list items
    const listItems = wrapper.findAll('li');
    expect(listItems).toHaveLength(3);
    expect(listItems[0].text()).toBe('Item 1');
    expect(listItems[1].text()).toBe('Item 2');
    expect(listItems[2].text()).toBe('Item 3');
  });
});


Update azure-active-directory-graph-app-manifest-deprecation.md

Updated migration date to match current plan

#sign-off

@rwike77
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


pull_request_template: Add release note criteria

Motivation for this change
Doing release notes last minute isn't fun. And generally the release notes won't be of great quality, as I don't have context on the 100+ modules added. However, this can be crowd sourced when the modules are added.
Things done

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

[ ] NixOS
[ ] 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 nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Added a release notes entry if the change is major or breaking
[ ] Fits CONTRIBUTING.md.

cc @ryantm


Volume: Define Expected Cost (Min, Max, Avg)

No Cost with estimated usage, https://firebase.google.com/pricing


Write a JavaScript program to implement selection sort

Description
Write a JavaScript program to implement selection sort
Selection sort is a sorting algorithm that selects the smallest element from an unsorted list in each iteration and places that element at the beginning of the unsorted list.
Pseudocode
procedure selection sort
   list  : array of items
   n     : size of list

   for i = 1 to n - 1
   /* set current element as minimum*/
      min = i

      /* check the element to be minimum */

      for j = i+1 to n
         if list[j] < list[min] then
            min = j;
         end if
      end for

      /* swap the minimum element with the current element*/
      if indexMin != i  then
         swap list[min] and list[i]
      end if
   end for

end procedure

Example
Input  : [8, 5, 2, 6, 9, 3, 1, 4, 0, 7]
Output : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

How to contribute

Comment !assign to assign this issue to yourself
Fork this repository
Create a new branch
Save the solution in program/program/implement-selection-sort/ImplementSelectionSort.js
Commit the changes
Create a pull request

!assign

!assign


[Suggestion] Font handling in CodeDraw: unavailable Fonts, and how to "work around" this issue

Without any further ado, let me first copy/paste the error I ran into today:
Exception in thread "main" java.lang.IllegalArgumentException: The font Arial is not available on your device.
    at codedraw.TextFormat.setFontName(TextFormat.java:79)
    at VierGewinnt.returnTheDefaultFont(VierGewinnt.java:734)
    at VierGewinnt.enter_game_loop_for_the_GUI(VierGewinnt.java:860)
    at VierGewinnt.run(VierGewinnt.java:979)
    at VierGewinnt.<init>(VierGewinnt.java:174)
    at VierGewinnt.main(VierGewinnt.java:987)

So, the font Arial is not on my linux system, or perhaps it can not be found.
If I omit specifying the Arial font, the very same program works fine.  IF I specify
such a font that is not existing on my system, the program will instead terminate,
with the above error message.
(If you are curious, I ran into the above for the last assignment of EPROG1 where
we have to implement Vier Gewinnt.)
So it is not an issue for me; I can simply omit that line, or for EPROG1 presentation
I can put it back in - no problem. But I think this could also be improved a little.
For instance, one obvious solution would be to use the default fallback / generic
font. I assume CodeDraw already has a default font - after all if I do NOT specify
the Arial font, the same code base works fine. So one approach could be to
simply fall back towards that generic font. So the above would be displayed but
not terminate the program, instead, the fallback font is used. (One can reason
that it is my responsibility to handle such a use case via catch/throw, which I
can understand - but this would require adding a few more lines of code, so my
approach is to simply avoid Arial instead - less time investment.)
An alternative may be to add a way for users to specify a fallback font to use
in this event. That way the old behaviour is retained, but we could override
it via something like:
font.setDefaultFontName();

Or something like that. (Where font was: TextFormat font = new TextFormat(); )
There may be a few more ways to go about this, but I only wanted to a) report
this small issue, and b) give a very few suggestions how this could be improved.
If you also have time, perhaps https://github.com/Krassnig/CodeDraw/blob/master/INTRODUCTION.md
could mention a recommendation what to do when a font is not installed on a
given operating system. Although perhaps most folks use windows, no clue.
Anyway, that was it, thanks for polishing CodeDraw!

Hmm. I am also trying other fonts:
"The font URW Palladio is not available on your device."
Or:
"The font VeraMono is not available on your device."
The font is here though:
/usr/share/fonts/ttf/VeraMono.ttf

So perhaps font handling may not be optimal if such a font
can not be found? /usr/share/fonts/ttf/ is quite common on
linux. I also ran "fc-cache -f -v" prior to trying to compile
the .java file, but it seems it can not find such fonts. Omitting
the name works, so it must work internally.

Hi,
you are correct, as of version 3.0.0 there is no way to check whether a font is available on a system except for catching an exception.
Starting from version 3.1.0 the setFontMethod will be changed to accept several fonts:
CodeDraw cd = new CodeDraw();
TextFormat tf = cd.getTextFormat();
tf.setFontName("Arial", "Verdana", "JetBrains Mono");

The first font in the list which is available on executing system will be used to draw text. If none of these are available, Javas default font Font.DIALOG will be used. CodeDraws default font will be Font.DIALOG, see Physical and Logical Fonts.
Additionally, the method TextFormat.getAllAvailableFontNames() and TextFormat.isFontNameAvailable(String fontName) will be added and a method to set the font name to its default value textFormat.setFontNameToDefault().
Previously, CodeDraw set the font name to 'Arial' internally, but there was no check to see if it was actually available (the check still happened when the setFontName(String) was called from the outside). I would assume that the Tests we did on Linux just defaulted to some other font and that was why we didn't notice.
Font not found issue:
I tried checking if there is a mismatch between the fonts listed with the linux command fc-list and on first glance they seem to match with the fonts in CodeDraw/Java. I also tried installing JetBrains Mono which also worked. CodeDraw uses the GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() method to get all available font names. This is also what is recommended in Physical and Logical Fonts.
What seems to be the issue is that the method GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() doesn't return the font you added to your system.
Thank you for your feedback 👌

Implemented in version 4.0.0


Bug: LibSSL Dynamic Linking AGAIN

Description
dyld[4671]: Library not loaded<EMAIL_ADDRESS>  Referenced from: <1F6C564F-E07D-3D34-9480-3800B0239DE7> /private/tmp/comtrya
  Reason: tried<EMAIL_ADDRESS>(no such file<EMAIL_ADDRESS>(no such file<EMAIL_ADDRESS>(no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file, not in dyld cache)

Steps to reproduce

Download from releases page

Expected behaviour

It works

Environment

OS: macOS
Version: 0.7.4

Additional information
This MAY be fixed on main, but tracking in-case it isn't.

getting this exact error on
                    c.'          me@the-laptop
                 ,xNMM.          -------------------------
               .OMMMMo           OS: macOS Monterey 12.3.1 21E258 x86_64
               lMM"              Host: MacBookPro16,2
     .;loddo:.  .olloddol;.      Kernel: 21.4.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 33 days, 21 hours, 18 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 69 (brew)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.8
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 2560x1600
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Rectangle
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    Terminal: npm exec neofetch
 'XMMMMMMMMMMMMMMMMMMMMMMMMMMk   CPU: Intel i5-1038NG7 (8) @ 2.00GHz
  'XMMMMMMMMMMMMMMMMMMMMMMMMK.   GPU: Intel Iris Plus Graphics
    kMMMMMMMMMMMMMMMMMMMMMMd     Memory: 9288MiB / 16384MiB
     ;KMMMMMMMWXXWMMMMMMMk.
       "cooc*"    "*coo'"

with:
❯ curl -fsSL https://get.comtrya.dev | sh

x86_64
Downloading package https://github.com/comtrya/comtrya/releases/download/v0.8.5/comtrya-x86_64-apple-darwin as /Users/me/Projects/Mine/Github/dotfiles/comtrya-x86_64-apple-darwin
Download complete.

Running with sufficient permissions to attempt to move comtrya to /usr/local/bin
New version of comtrya installed to /usr/local/bin
dyld[79838]: Library not loaded<EMAIL_ADDRESS>  Referenced from: /usr/local/bin/comtrya
  Reason: tried<EMAIL_ADDRESS>(no such file), '/usr/local/lib/libssl.3.dylib' (no such file), '/usr/lib/libssl.3.dylib' (no such file)
sh: line 58: 79838 Abort trap: 6           ${SUCCESS_CMD}

I even tried to link it manually, but than it is complaining the need of a x86_64 version
  Referenced from: <B13F2DFD-AE6F-357B-82CB-5E5CE18CBCE7> /usr/local/bin/comtrya
  Reason: tried<EMAIL_ADDRESS>(no such file<EMAIL_ADDRESS>(no such file<EMAIL_ADDRESS>(no such file), '/usr/local/li
b/libssl.3.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/libssl.3.dylib' (no such file, not in dyld cache)```


target dns management

the archetype should allow for a target dns name and set up the related configurations for AEM accordingly

@reusr1 , I've created an internal issue for this enhancement and based on out bandwidth will we take care of it.
(CQ-4259369)

Unfortunately, I don't think that we can realistically deliver this in the next 6 months. Therefore, I'm closing this issue for now. But if you have the possibility to contribute on this, which we'd encourage, then please reopen the ticket to further discuss the topic.


engine: remove logs from the runtime data model and load them from the logstore

Hello @maiamcc, @jazzdan,
Please review the following commits I made in branch nicks/runtimelog:
4cca650332357d0bced0b1f08b9aff5c560f5f07 (2019-12-20 17:21:13 -0500)
engine: remove logs from the runtime data model and load them from the logstore
Note that this changes functionality slightly. Before this PR,
we would clear the pod logs every time the pod crashed. In the LogStore,
there's a single span ID for a pod's logs, no matter how many times it crashed.
I don't think that changing this behavior will have any bad side-effects
but @maiamcc might be able to think of problems that I don't remember right now.
Long-term, I think we should move towards a system where every container ID
has its own log span ID, and that span ID has a parent span ID for the whole
pod's logs (similar to how spans work in opentracing)

also, i don't remember why we originally cleared the logs this way, and we might need to withdraw this pr if someone does remember!


i18n(ko-KR): update strapi.mdx

Description (required)

update strapi.mdx
#9197

Related issues & labels (optional)

Closes #
Suggested label:

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

ko
guides/cms/strapi.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Move update_containers related task under kustomize_and_deploy

Currently update_containers related task is failing with ''_ctlplane_name'' is undefined error.
_ctlplane_name is set in kustomize_and_deploy.yml task file and way before that update_containers related task is called. that's why above error is coming.
Moving the update_containers related task in kustomize_and_deploy.yml fixes the issue.
As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running

/approve

/lgtm


Upload not retrying on small files

https://github.com/ambiata/mismi/blob/master/mismi-s3/src/Mismi/S3/Commands.hs#L196
chunkedFile means that files under 1 MB will create a HashedStream which is what RqBody defines as isStreaming.
May be some issue with the retrier will have an empty policy
It should choose the max retry policy but probably a good place to start investigating

uploadSingle file a = do
    x <- liftIO $ LBS.readFile file
    void . send $ fencode' putObject a (toBody x) & poServerSideEncryption .~ pure sse

[Client Request] {
  body      = foo
...

uploadSingle file a = do
  rq <- chunkedFile (ChunkSize $ 1024 * 1024) file
  void . send $ fencode' putObject a rq & poServerSideEncryption .~ pure sse

[Client Request] {
  body      =  <stream:4>
...


feat: Have the ability to pass a input prop to overwrite some of the condition

Describe the feature you'd like to request
First, this is an amazing and simple-to-use tool and I appreciate it as it helped jump-start start project that I am working on.
But, I ran into a little problem. I only wanted to upload one file at a time, without letting people choose lots of files simultaneously by holding down the 'shift' key. So, I had to do a little trick to make it work the way I wanted.
Here's a simple example of what I did:
"use client";

import { useEffect } from "react";
import { UploadDropzone } from "~/utils/uploadthing";

// CustomUploadThing component with special settings
type CustomUploadThing = React.ComponentProps<typeof UploadDropzone> & {
  // Adding a custom option for one file at a time
  isMultiple?: boolean;
};

// CustomUploadThing function component
export function CustomUploadThing(props: CustomUploadThing) {
  // Using useEffect to update things when props change
  useEffect(() => {
    // Finding the input element
    const input = document.querySelector("#drop-zone input");

    // If we only want one file at a time...
    if (!props.isMultiple) {
      // Remove the 'multiple' option from the input
      input?.removeAttribute("multiple");
      // We could also change the button text here if needed
    }
  }, [props.isMultiple]);

  // Rendering our UploadDropzone component inside a div
  return (
    <div id="drop-zone">
      <UploadDropzone {...props} />
    </div>
  );
}

Describe the solution you'd like to see
So I was hopping if there is the way we pass an inputProp into UploadDropzone so for example
....
<UploadDropzone
   ...
   inputProps = {
      ....
     multiple: false
    }
    />
....

Additional information
No response
👨👧👦 Contributing

[X] 🙋♂ Yes, I'd be down to file a PR implementing this feature!

Hmm. There is also a bug here. it the endpoint only allows uploading a single file, the dropzone should not have the multiple prop on the input. The upload button component does this correctly.

After thinking on this some more, I don't think that it makes sense to allow the override on the components. We want to promote configuring the accepted input (file types, size, quantity) on the file router, and the components will apply the equivalent restrictions "automatically".
I have a PR up now that will fix the behavior so that the filerouter config is respected by the components.
If you have a use case where it makes sense to override from the frontend, I think it is reasonable enough for us to say that is an "advanced use case" and you should use our hooks to implement your own component.

After thinking on this some more, I don't think that it makes sense to allow the override on the components. We want to promote configuring the accepted input (file types, size, quantity) on the file router, and the components will apply the equivalent restrictions "automatically".
I have a PR up now that will fix the behavior so that the filerouter config is respected by the components.
If you have a use case where it makes sense to override from the frontend, I think it is reasonable enough for us to say that is an "advanced use case" and you should use our hooks to implement your own component.

Hmm fair point, what about the ability to change the label text ?
Also another small quick question, I know the onClientUploadComplete returns an array of files would be possible to return as one if it is only one?

Hmm fair point, what about the ability to change the label text ?

https://docs.uploadthing.com/theming#content-customisation

Also another small quick question, I know the onClientUploadComplete returns an array of files would be possible to return as one if it is only one?

instead of an array with one object you mean?

Also another small quick question, I know the onClientUploadComplete returns an array of files would be possible to return as one if it is only one?

I believe that would be quite cumbersome to get right from a typescript perspective without a lot of gains

Ah okay I will close this since this has been solved on last merge


null safety support?

Yes, mina reader is supports null safety. You can use latest version 0.0.6.
Best regards.


Authenticate with blob storage from a managed identity

Hi,
I saw AzCopy has an interactive azcopy login authentication mode that is using Azure Active Directory. If an Azure VM is MSI enabled and "Storage Blob Data Contributor" role has been assigned to the managed identity, is it a way to get rid of the interactive azcopy login and directly access to the Azure blob storage?

Hi, @mazong1123
Thanks for reaching us.
For your question, yes. AzCopy supports MSI. Please use azcopy login --help to check detailed usages.
For example, to login with system assigned identity:
Log in using a VM's system-assigned identity:
- azcopy login --identity

Best Regards,
Jiachen

@jiacfan Thanks. That's a great news.
I just got one question:
Once the MSI is turned on and azcopy login --identity called, seems the identity is cached forever. Later even if I turned MSI off, azcopy login --identity can still success (azcopy logout is called before testing). Is there a way to prevent azcopy login --identity when MSI is turned off?

@jiacfan OK I saw the code here
// removeCachedTokenInternal deletes all the cached token.
func (c *CredCacheInternalIntegration) removeCachedTokenInternal() error {
	// By design, not useful currently.
	return errors.New("Not implemented")
}

Will the cache removal be implemented before GA?

@jiacfan OK I saw the code here
// removeCachedTokenInternal deletes all the cached token.
func (c *CredCacheInternalIntegration) removeCachedTokenInternal() error {
	// By design, not useful currently.
	return errors.New("Not implemented")
}

Will the cache removal be implemented before GA?

Hi, @mazong1123
For MSI, currently azcopy login --identity doesn't  get or cache the token, it records the requirement that user wish to use OAuth with MSI. And token is fetched during run-time, through the official procedure, as token need be regularly refreshed during copy. And if no valid token can be get before last valid token get expired, copy will fail.
For azcopy logout, it works, for MSI it clears the requirement that user wish to use OAuth with MSI. The code pasted is a specific token cache where remove is not necessary in this phase. Please check public versions' token cache for their detailed implementation, e.g. WinTokenCacheWithDPAPI
For the questions:

use azcopy login --identity to check whether MSI is switched on or off. This could be an optimization! I'll discuss this with the team.
For RBAC assignment, it should be service-side delay. There will be at most 5 minutes delay in service-side between your action and when it take effect.

Welcome discussions!
Best Regards,
Jiachen

Hi, @mazong1123
For MSI, currently azcopy login --identity do get or cache the token, it records the requirement that user wish to use OAuth with MSI. And token is fetched during run-time, through the official procedure, as token need be regularly refreshed during copy. And if no valid token can be get before last valid token get expired, copy will fail.
For azcopy logout, it works, for MSI it clears the requirement that user wish to use OAuth with MSI. The code pasted is a specific token cache where remove is not necessary in this phase. Please check public versions' token cache for their detailed implementation, e.g. WinTokenCacheWithDPAPI which azcopy logout depends for removing cache.
For the questions:

use azcopy login --identity to check whether MSI is switched on or off. This could be related how fast MSI enabling/disabling take effect in the VM. If azcopy login --identity is used on a VM where MSI is disabled, proper error message would be returned.
For RBAC assignment, it should be service-side delay. There will be at most 5 minutes delay in service-side between your action and when it take effect.

Welcome discussions!
Best Regards,
Jiachen

There will be at most 5 minutes delay in service-side between your action and when it take effect.

Actually I wait for over 1 hour - the RBAC changes did not take effect. I created 2 VMs and 2 blob storage for testing and got the same result. Following are the reproduce steps:

In Azure Portal, create an Azure blob storage container blobstorage1.
In Azure Portal, create an Azure VM with Windows 2016 Datacenter installed.
Enable MSI for the Azure VM.
Login to the VM, create a folder d:\msitest and download azcopy-preview-<IP_ADDRESS> to C drive.
In the VM, run azcopy login --identity. Then run azcopy sync https://blobstorage1url d:\msitest. The permission denied message should occur as expected.
In Azure Portal, go to blobstorage1, assign Storage Blob Data Reader (Preview) role for the VM.
Back to the VM, run azcopy logout.
Wait 5 min, in the VM run azcopy login. Then run azcopy sync https://blobstorage1url d:\msitest

Expected:
The command can be executed successfully.
Actual:
Permission denied message show up.

Hi, @mazong1123
Thanks for following up, let's discuss more and try to figure out if there is an issue.
I tried to repro the issue with same step, while it behaves correctly in my side:

With a new VM, enabled MSI, no Storage Blob Data Reader/Contributor role are ever assigned, downloading blob will fail.
And later assign Storage Blob Data Reader, download can fulfill successfully.
Disable again, download fails again.

Could you help to provide following info for further investigation:

I see you create a storage container blobstorage1, while roles are assigned in storage account level, could you check if there are Storage Blob Data Reader/Contributor role already assigned to the account, before container is created?
Wish to double confirm that blobstorage you mean is Blob and not ADLS gen 2 filesystem.
Are you using pure system-assigned identity, or user-assigned identity are set as well?

Best Regards,
Jiachen

@jiacfan I tried this morning seems the RBAC changes applied. How long did you wait for the RBAC changes you made take effect?
Answers to you questions:

The roles were assigned to container level not for storage account level.
Yes It's a Blob. At least I clicked "Blobs" under the Services and then created the container.
Pure system-assigned identity.

Hi, @mazong1123
As my testing, within 1 minute. Could the issue still be reproduce in your side?
Best Regards,
Jiachen

@jiacfan The issue persists. I need to wait for 1 day to take the RBAC changes take effect. I tested the changes as following:

No any role assigned -> Storage Blob Data Reader assigned. Wait for 1 day to take effect.

Steps for testing:

Before the RBAC change, run azcopy sync https://msitestjingm.blob.core.windows.net/test1 D:\ddw. I got ===== RESPONSE ERROR (ServiceCode=AuthorizationPermissionMismatch) ===== Description=This request is not authorized to perform this operation using this permission.
After the RBAC change, run the same command. Still got the same error. Continue to try this every 5 min. Same results.
Next day when I try the same command again, the files can be synced down to the folder.

Storage Blob Data Reader assigned -> No any role assigned. Wait for 1 day to take effect.

Steps for testing:

Before the RBAC change, run  azcopy sync https://msitestjingm.blob.core.windows.net/test1 D:\ddw. It success to sync the files to local folder.
After the RBAC change, run the same command. Still can sync the files to local folder. Continue to try this every 5 min. Same results.
Next day when I try the same command again, the error occurs: ===== RESPONSE ERROR (ServiceCode=AuthorizationPermissionMismatch) ===== Description=This request is not authorized to perform this operation using this permission.

Thanks for the info! Having forward the problem to service team, and will update later if there is any update.

@jiacfan Any update on this?

@JohnRusk, thanks for reminding.
As my testing, the reported scenario works well now! Please let me if the issue still happens in your side @mazong1123 .
Thanks,
Jiachen


Menu bugs on Gingerbread and below

There are three bugs with options menus when running on GB or below, which are the following:

findItem can't be used directly to find items from submenus on 2.3. (Trying to find an item returns null). On 3.x and ICS it works as expected.
setEnabled (and setVisible) do nothing to items in submenus on 2.3. On 3.x and ICS everything works as expected.
The menu items sometimes completely vanish from the action bar on 2.3 when using a view pager and fragments (menu items from both the activity and fragment are affected - my demo only shows a menu from the fragment). Sliding the view pager to the next slide fixes it. I found this discussion which seems to be related. I'm not sure if this always happens in the demo, but it should occur when starting it.

I have a demo here which is based on the demo I made for #90.

Some of these should be fixed in the dev branch for the upcoming 3.5 release. Not sure how to exactly handle disabled items in an action-item submenu just yet as I'm quite fond of just using the build-in AlertDialog list.

Released with 3.5.0.


DatePicker Not Working in inertiajs

Hello.. I tried to install tw-elements through npm and yet date picker isn't working.. im using inertiajs of laravel
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');

module.exports = {
    content: [
        './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
        './vendor/laravel/jetstream/**/*.blade.php',
        './storage/framework/views/*.php',
        './resources/views/**/*.blade.php',
        './resources/js/**/*.vue',
        './node_modules/tw-elements/dist/js/**/*.js'
    ],

    theme: {
        extend: {
            fontFamily: {
                sans: ['Nunito', ...defaultTheme.fontFamily.sans],
            },
            colors: {
                cyan: colors.cyan,
            }
        },
    },

    plugins: [
        require('@tailwindcss/forms'),
        require('@tailwindcss/typography'),
        require('@tailwindcss/line-clamp'),
        require('tw-elements/dist/plugin')
    ],
};

I just found out that there is a problem with headlessui modal

Yep, I've also tried using it with Laravel Livewire and that's not working. Other components that I randomly tried (like the dropdown) are.
plugins: [
    require('@tailwindcss/aspect-ratio'),
    require('@tailwindcss/forms'),
    require('@tailwindcss/typography'),
    require('tw-elements/dist/plugin')
  ]


Is there a performance report?

Hi, Thanks for your work, it looks great.
I have a question. Does the project be applied to real product environment and whether the project performs well ?
How about distributed FFM training time and precision compared with single-machine libFFM project.

hi, I have just released some benchmark on README, please notice that.


Make the payment_source reusable

During the payment step of the checkout, solidus has to propose the existing payment.
We can achieve that goal using the reusable feature provided by solidus.
Solidus shows to the user all the Spree::PaymentSource that return reusable? == true, so we have to override that method on SolidusBolt::PaymentSource to let it to return true anyway.
Bolt allows to Authorize Card by token or credit_card_id, at the moment the SolidusBolt::PaymentSource#card_id is not set. We should set it after the transaction is authorized taking the id of the card from the response body of the Authorize API using the path [:transaction][:from_credit_cart][:id].
Then we have to change the code to authorize the transaction in order to use the card_id whenever is present.
Add a specific template at app/views/spree/checkout/existing_payment/_bolt.html.erb to show the bolt payment sources.

@Naokimi,
We have to adjust how the payment sources are linked to the user.
On this PR we added a relation between Payment source and user, but solidus provides WalletPaymentSource model that is responsible for doing that. Sorry about it, but we have to adjust that part, using that model to save that relation.

We also forgot to specify the payment_method_id during the payment_source creation.
I think we should use the last PaymentMethod for this purpose, otherwise, we have to retrieve the payment_method with the same api_key specified in the BoltConfiguration


[Feature Request] Long, Bignum

Can big numbers, int64, Integers fit into Immutable js ?
So we can have
var i = Immutable.Bignum(Number.MAX_SAFE_INTEGER).add(Number.MAX_SAFE_INTEGER);

var i = Immutable.Long(Number.MAX_SAFE_INTEGER),
     end = i.add(Number.MAX_SAFE_INTEGER);
while( /* i < end */ i.lt(end)) {
  i = i.add(1);
}

Can it fit into Immutable JS ?

I'm not sure this makes sense to add to a data collections library, but certainly could be awesome as it's own library! Sharing conventions with Immutable would allow them to interop as necessary (e.g. implementing hashCode() and equals())

Hey, I would love to give it a try, as part of its own lib as suggests @leebyron. Can I have more details about the conventions it has to respect? :)

#506 hints at the semantics necessary for object types to masquerade as value types from Immutable's point of view.


Dealing with different versions of Qt.py within Maya

This isn't a bug report, but more of a silly question, sorry:  we've multiple tools developed internally and externally which coexists within the same Maya session. As Qt.py gained a lot of inertia around, some of those tools are using an old version ot Qt.py where some are using a newer version and both are not compatible.
In a lot of tools (internal and external), it's imported the same way which is:
from Qt import blabla
And all those tools are obviously loaded in the PYTHONPATH
Thus, I end up having a couple of conflicts and was wondering what's supposed the best way to deal with this ? Any best practice here ?

Hi @glm-nchaverou, this is an excellent question.
Let's tackle one problem at a time; firstly, the versions should be mostly compatible, with only minor differences amongst 1.0 and pre-1.0. 1.0 currently being in beta and unreleased, it's possible there are still differences we need to patch up and there's time for that.
Thus the simplest solution would be to ensure compatibility across versions of Qt.py So let's start there.
What errors are you getting currently?

Also if you could let me know the versions you are experiencing conflicts with that would help also.

Fair enough :)
Tool A uses Qt.py 1.0.0.b3 where Tool B uses Qt.py 0.6.1
B imports the following

from Qt import load_ui

but 1.0.0.b3 comes first in PYTHONPATH
Error I get is obviously # ImportError: cannot import name load_ui // as it's now in QCompat

FWIW I was about to go with relative imports everywhere but both PEP8 and Google Python Style Guide recommend not to use relative imports

FWIW I was about to go with relative imports everywhere but both PEP328 and Google Python Style Guide recommend not to use relative imports

Could you clarify what you meant here?
By the looks of it, you could solve the problem with an import such as this.
# Tool A with older version of Qt.py
from .Qt import load_ui

# Tool B with 1.0.0b3
from .Qt import QtCompat
QtCompat.loadUi

Where Qt.py resides in the current package. That way, you specify explicitly which Qt.py to use, regardless of your users PYTHONPATH. The . in front assures that only the current package is explored for matching modules.
I typically store my Qt.py, alongside other vendor libraries, in a vendor/ package.
from .vendor.Qt import QtCompat

Does this solve your problem?

Where Qt.py resides in the current package. That way, you specify explicitly which Qt.py to use, regardless of your users PYTHONPATH. The . in front assures that only the current package is explored for matching modules.

Yep that's what I meant by using relative imports. This totally and this is by far the less intrusive method I found to fix the issue. I wanted to suggest the modification to the owner of the external tools we're having but while searching for good practices, I found the following:

"Relative imports for intra-package imports are highly discouraged. Always use the absolute package path for all imports. Even now that PEP 328 is fully implemented in Python 2.5, its style of explicit relative imports is actively discouraged; absolute imports are more portable and usually more readable."
https://gist.github.com/pydanny/4735683

But while searching on the PEP8 page, it looks their pov changed:

Absolute imports are recommended, as they are usually more readable and tend to be better behaved (or at least give better error messages) if the import system is incorrectly configured. However, explicit relative imports are an acceptable alternative to absolute imports, especially when dealing with complex package layouts where using absolute imports would be unnecessarily verbose
https://www.python.org/dev/peps/pep-0008/

And from the Google Python Style Guide

Do not use relative names in imports. Even if the module is in the same package, use the full package name. This helps prevent unintentionally importing a package twice.
https://google.github.io/styleguide/pyguide.html

I don't find this latter really relevant so I asked here what will be the best practice :)

I'd take "pydanny"'s position with a grain of salt.
If you ask me, when your code depends on a specific module, make sure it's the module your importing by explicitly stating it.
from . import my_specific_module

Examples:

Any module part of your package
Any vendor packages

If it's more general and you aren't depending on a particular version of it, be implicit.
import my_general_module

Examples:

Built-in libraries
(Compiled) dependencies you can't or won't vendor, e.g. NumPy, PyQt etc.

Personally, I wouldn't take the chance of any internal module being replaced by anything external, unless I had designed specifically for that.

Hey @glm-nchaverou, @fredrikaverpil just made a write-up of how to deal with this issue that I thought would be helpful.

https://fredrikaverpil.github.io/2017/05/04/vendoring-qt-py/

Welcome to re-open this is the issue persists.

Thanks !! Really appreciate it :)


[Info only] Hack in all datasource info

Because many of the importers (e.g. ONSCensus) only really populate datasources when called with getDatasource, we iterate over all the datasources again and call getDatasource with their ids to get a fuller picture.
Not the right way of doing it, suggest not merging this in and finding a better way, but if you need to run the job in the mean time

@arya-hemanshu has this been solved in the latest catalogue exporter changes?

@arya-hemanshu has this been solved in the latest catalogue exporter changes?

Closed as #382 was created.


[Aborea] Bugfix

Submission Checklist
Required

[ ] The pull request title clearly contains the name of the sheet I am editing.
[ ] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[ ] The pull request makes changes to files in only one sub-folder.
[ ] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

Changes / Description

fix Typos
fix Schutzraum

Character Sheet Info Roll20 Internal Use only.


release 24.04 [skip ci]

Merge to main for 24.04 release
Release notes as follows:

Feature standardization in logistic regression for sparse vectors.
GPU accelerated Density Based Spatial Clustering for Applications with Noise (DBSCAN) algorithm with example notebook.
GPU accelerated IVF-Flat Approximate Nearest Neighbor algorithm with example notebook
Stage level scheduling support for Yarn and K8s.
Update of RAPIDS dependencies to 24.04.

NOTE: this PR must be merged as create a merge commit

build


[Errno 7] Argument list too long

Hello,
Getting this when passing huge results from one task to another. Any way to work around it?
[Errno 7] Argument list too long
  File "/usr/lib/python2.7/site-packages/st2actions/container/base.py", line 98, in _do_run
    (status, result, context) = runner.run(action_params)
  File "/usr/lib/python2.7/site-packages/st2actions/runners/localrunner.py", line 150, in run
    kill_func=kill_process)
  File "/usr/lib/python2.7/site-packages/st2common/util/green/shell.py", line 81, in run_command
    env=env, cwd=cwd, shell=shell, preexec_fn=preexec_func)
  File "/usr/lib/python2.7/site-packages/eventlet/green/subprocess.py", line 53, in __init__
    subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception

This is a known limitation on Linux - there is an upper limit for a total size (in KB) of arguments you can pass to a process via the command line.
Work around for this is to save really large results in a datastore.

Sorry, I accidentally closed the issue.
One of the possible long term solutions for us would be to pass parameters / arguments to the Python runner action process via stdin instead of via command line arguments, but this has some other issues / limitations (it makes it more opaque and harder to debug actions manually, etc.).
In the short term, we will probably document this behavior and intercept this exception and throw a more user-friendly one which points user to the documentation which describes the aforementioned work-around.

I know about the limitation on a command line argument in Linux. However, it's a large field to discuss. Can you use some sort of IPC, or perhaps a message broker, or Redis for example. With proper logging it should be not a big issue to debug/troubleshoot.

Yeah, there are many possible approaches to solving this, but the idea behind command lines arguments was to make it transparent and easier to debug in ,the standalone mode.
You lose a lot of direct visibility if you use some kind of message queue so if anything, I would prefer to go with stdin approach.

Related: https://github.com/StackStorm/st2/issues/1598

Closing in favor of #1598


[FeatureRequest] Go home

Hi,
Sorry if this is not the right place to post this but just wanted to share an idea.
I would like to suggest a Go home then quit feature.
If you are like me you will bot in your own town so you can stop the bot and wait a reasonable amount of time before you open the app at home.
It would be a nice feature if you can add your home location and get the bot to walk home and then quit.
Thanks :)
Regards
Andreas M

agree

For the time being you can get behavior similar to this using the MoveToMapPokemon feature. You will need to set "update_map": false, and you may need to increase the range depending on how far away your bot is from "home". If you start the PokemonGo-Map with your home as it's coordinates, your bot should go to the area of your home and catch pokemon on the way. If you set the search radius "steps" to something small, the bot won't wander too far away from your house.

You can use this app on ypur iPhone for GPS-spoofing. No Jailbreak needed.
https://www.youtube.com/watch?v=VVChSH45EQg

Please move your feature request/s to our feature hub - http://feathub.com/PokemonGoF/PokemonGo-Bot

I like this idea a lot, for those people who only want to bot a little and still play legitimately in the intervening time, or to open the app and check up on what the bot has been up to.

https://github.com/PokemonGoF/PokemonGo-Bot/issues/3843#issuecomment-239708680

going to consider this resolved by #4443

I can't see how wake_up_at_location can help on this request. What I need is actually "sleep at location" whereby the bot auto move to a certain location then stop

@Intn Let me know if I'm right in this.
@k4n30
The request is to have the bot come back to a home area, presumably to avoid softbans resulting from switching from bot to mobile app. The wake_up_at_location option may resolve that if the bot is interrupted after sleep, but provides no benefit (in terms of avoiding softbans) compared with disabling the bot for a period of time.

@RedViper9 you're right, it's to avoid the "teleport" effect.
Without this we will need to wait for a while before we can launch the mobile app to enjoy our catches.

@jrjhealey yeah that's true. May I know what is the benefit for botting in US instead of UK?

Well I'm sure there are locations in the UK that I could use. I've just heard Santa Monica has good density of Pokestops etc.
There are continent specific catches as well so there is a legitimate reason to hop continents.

@jrjhealy I don't expect it would be a manditory task, but many people have noted that they bot around their home areas. In any case, there have been a number of requests for such a feature.
For your use, the "go home" function could walk you back to a particularly rich area in Santa Monica if your bot has wandered off, for example.

@RedViper9 "update_map": false is not in the sample configure file any more.

go home should b where u start, if ur in usa and at pier 39, when everything is done, u will end ur bot day at pier 39, even if ur in another country. :)


No access to libvips-8.5.5-linux-x64.tar.gz file

Hi everyone,
Sharp module doesn't build now. I receive the next error. Could you check, please?
ERROR: https://dl.bintray.com/lovell/sharp/libvips-8.5.5-linux-x64.tar.gz status code 403
gyp: Call to 'node -e "require('./binding').download_vips()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/go/.nvm/versions/node/v6.11.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

I going to close it as a duplicate


Different typing for input and output scalar

Currently when mapping a scalar for server side typing, there is only a one-to-one relation. But in reality the scalar are usually more permissive in what they accept. For exemple, the ID scalar can serialize basically integers and even objects.
So it would be nice to be able to set a different type for input and output.
Describe the solution you'd like
Using the scalar map:
config:
  scalars:
    ID:
      input: string
      output: string | number

Describe alternatives you've considered
None at the moment, you have to cast it in the resolver.

This is a duplicate of https://github.com/dotansimha/graphql-code-generator/issues/6097

Duplicate: https://github.com/dotansimha/graphql-code-generator/issues/2588 https://github.com/dotansimha/graphql-code-generator/issues/2684


fix/snackbar_looks

This PR includes:

Fix to snack bar looks
treated a few lint warning
fixed the error caused by getParentProvider method by making use of ViewModelWidget

LGTM


Add support for response code results in output

It would be awesome if the output included response codes. :+1: I'm using an older version of bees with this modified locally, and it works as expected.

@cosmin I fixed the merge conflicts here. Any suggestions or is this good to go? Feedback would be welcome so I know if I should keep checking to see if this gets pulled in. :+1:


Add Transifex to Current Documentation

Describe the Issue
Current OpenSRP 2 does not have documentation on how Transifex is used. This should be updated based on FHIRCore Context.

[ ] How to Add Transifex to GitHub Repositories
[ ] How to SetUp Transifex and push and pull string resources
[ ] Files Translation using Transifex

Seems  like the Page cannot be found for this.

we renamed the android-app to app, https://docs.opensrp.io/engineering/app/configuring/internationalization

I think the current docs has everything that we need. We can close this issue as completed.


Age method reliable?

There seems to be an issue determining the age based on the date in personal numbers:

"The Swedish Tax Agency has been forced to create fictitious birthdays for over 2,500 individuals. The reason: Running out of available personal numbers"

https://www.dn.se/nyheter/sverige/personnumren-ar-slut-tusentals-far-fel-fodelsedag/
(translation: mine)

No, we can not be sure that all birthdays are exact and if it has a fictitious birthdays it's harder to know when the real birthday is. We support personnummer and samordningsnummer right now in our packages. Fictitious birthdays will be hard since the real age exists in the public records (folkbokföringen).
If you want support for something other format, please open a issue in the meta repo.


Wistia same video on two different routes with different configurations conflict

Current Behavior
Currently going to two different routes back and forth causing configurations conflict.
Expected Behavior
Both configuration must behave differently and correctly.
Player A: Expected behavior is that it must be muted with controls.
Player B: Expected behavior is that it must only give option of seeking to user.
Steps to Reproduce

Goto Player A, play the video upto 5-6 seconds and then goto player B using the button above the video.
Goto Player B, play the video upto 5-6 seconds and then goto player A using the button above the video.

import React from "react";
import { render } from "react-dom";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import { createBrowserHistory } from "history";
import { Link } from "react-router-dom";
import ReactPlayer from "react-player";

const Home = () => {
  return (

      <Link to="/playerA">Goto Player A</Link>

      <Link to="/playerB">Goto Player B</Link>

  );
};

const PlayerA = () => {
  return (

      <Link to="/playerB">Goto Player B</Link>

      <ReactPlayer url="https://home.wistia.com/medias/e4a27b971d" muted />

  );
};

const PlayerB = () => {
  const [url] = React.useState("https://home.wistia.com/medias/e4a27b971d");
  const onPlay = () => {
    console.log("play B");
  };
  const onPause = () => {
    console.log("pause B");
  };
  const onDuration = duration => {
    console.log("duration B");
  };
  const onProgress = progress => {
    console.log("progress B");
  };
  return (

      <Link to="/playerA">Goto Player A</Link>

      <ReactPlayer
        url={url}
        onPlay={onPlay}
        onPause={onPause}
        onDuration={onDuration}
        onProgress={onProgress}
        config={{
          wistia: {
            options: {
              controlsVisibleOnLoad: false,
              copyLinkAndThumbnailEnabled: false,
              fakeFullscreen: false,
              fullscreenButton: false,
              fullscreenOnRotateToLandscape: false,
              muted: true,
              settingsControl: false,
              playbutton: false,
              playSuspendedOffScreen: false,
              silentAutoPlay: true,
              smallPlayButton: false,
              volume: 0,
              volumeControl: false,
              endVideoBehavior: "auto",
              autoPlay: false,
              playbar: true
            }
          }
        }}
      />

  );
};
// Main App component
// renders a list of Messages using data from messages.json
const App = () => {
  return (

      <Router history={createBrowserHistory()}>
        <Switch>
          <Route exact path="/" component={Home} />
          <Route exact path="/playerA" component={PlayerA} />
          <Route exact path="/playerB" component={PlayerB} />
        </Switch>
      </Router>

  );
};

render(<App />, document.getElementById("root"));

Environment

URL attempting to play: https://home.wistia.com/medias/e4a27b971d
Browser: Chrome
Operating system: Ubuntu 20.04
CodeSandBox example: https://codesandbox.io/s/codealong-for-react-functional-components-n98fs

Other Information
I have investigated this issue on my end. Unable to pinpoint the error.

I'm pretty sure this is a bug with the Wistia player.
I've managed to boil it down to a very basic example: https://jsfiddle.net/w7Luav29/1/
Notice that when you first toggle muted to true (count = 1), the config is not picked up correctly and the player is not muted. But then every time after that (count = 3, 5, 7, etc) things work correctly.
Also even weirder is that if muted is initially true, things seem to work ok.
I'm honestly not sure what we can do about this apart from let the Wistia team know.

I investigated this issue very thoroughly and still trying to figure out that whether react rendering is the problem or may be our player configuration setup.
I want you to take a look at following two codes:

wistia-embed-options-demo by wistia.

I tried the above options even with two players and it works fine.

Though my problem is not that I want to change options on some click. My problem is that I want to run two player with two different options. It works sometimes and sometimes it doesn't. I have also contacted wistia support on this issue.
You can also see two-wistia-players-with-two-different-options
Regards


0.1.4 Release

This patch is released solely to bring gen_ref into ToolipsServables from Toolips. This should have been done originally; I think this will be the last adjustment for a while.
@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/106534
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.4 -m "<description of version>" 02b3e2681a45e0b0ab5e2925520a00201c053425
git push origin v0.1.4

I lied. I just implemented transition!, so inevitably I will want to release 0.1.5. I think that will be a last version for quite a while, though -- hehe.


Delete Project Report.pdf

I have deleted the projected report in my forked repository because I am going to put the link of it in my internship project.

Not related with code


[FIX] Drop extra squared motion parameters

Closes #28.

Changes proposed in this pull request:

Drop squared parameters (and old comment) from RP model. These are created and used later.

I'm not entirely sure how this is possible, but this fork still passes the integration test!

What do you mean as drop the squared motion parameters? From the original ICA-AROMA algorithm: "We defined a 72RP model, including the standard 24RP model (6 standard RPs, their derivatives, and the quadratic terms of these 12 RPs), as well as a single time-point backward and a forward shifted version of the 24RP model to reflect possible non-linear effects. Next, we calculated the maximum absolute correlation of each IC's time-course with each of the 72 RPs (squared RPs were correlated with squared IC time-series). We used a robust correlation, by calculating the mean correlation over 1000 random selections of 90% of the points in a time-series."

In maartenmennes/ICA-AROMA@7b00066#diff-5f3554c3cc435b1caa80a92f299d6728e62963ec1b378dd4030b39da254300aaL235, ICA-AROMA did some refactoring that included removing the squared motion parameters and the squared derivatives from the model, but the same refactor also added a step later on that squared the model. The issue for me was that I saw a comment that they failed to remove in that commit that mentioned the squared motion parameters but didn't have any code, so I added what I thought made sense (i.e., squaring the parameters). However, I think this applies the squaring twice, so I think I introduced a bug.
What's really weird to me is that my bug doesn't seem to affect the results of our tests.

I think the key question is, does this
https://github.com/Brainhack-Donostia/ica-aroma-org/blob/4d41f891fea87142185d03e358b7418dde85aad9/aroma/features.py#L81-L87
accomplish what I added this
https://github.com/Brainhack-Donostia/ica-aroma-org/blob/4d41f891fea87142185d03e358b7418dde85aad9/aroma/features.py#L51-L53
to do?
If so, then I introduced a bug by adding the extra squaring, in which case we should remove it.

Sorry, but I don't understand why the IC time series (mix) is squared.
In addition, should it also compute the squares of rp12_1fw and rp12_1bw and include them in rp_model? https://github.com/Brainhack-Donostia/ica-aroma-org/blob/4d41f891fea87142185d03e358b7418dde85aad9/aroma/features.py#L51

But, essentially, yes, you are right, the current code computes squared twice in the instantaneous regressors. So, I would define rp_model = np.hstack((rp12, rp12_1fw, rp12_1bw)) in https://github.com/Brainhack-Donostia/ica-aroma-org/blob/4d41f891fea87142185d03e358b7418dde85aad9/aroma/features.py#L64

That sounds right. I'll move forward with this fix then. Thank you!


[Web] Overflow indicator is not rendered correctly on Web

Discrepancy found in newly enabled screenshot tests for web in PR #46820
Web:

Flutter tester:

Test: test/widgets/physical_model_test.dart

Note: linear gradient doesn't support tilemode yet. One way to implement this would be to create a small image based on shader offsets and then use createPattern canvas api. For radial tile we have no option but to extend # of gradient stops.

Web

MacOS

flutter doctor -v
[✓] Flutter (Channel master, 1.24.0-8.0.pre.97, on Mac OS X 10.15.7 19H2
    darwin-x64, locale en-GB)
    • Flutter version 1.24.0-8.0.pre.97 at /Users/tahatesser/Code/flutter_master
    • Framework revision 4c24eb10b8 (4 hours ago), 2020-11-05 11:18:00 +0100
    • Engine revision e66a720137
    • Dart version 2.12.0 (build 2.12.0-21.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.50.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (5 available)
    • RMX2001 (mobile)   • EUYTFEUSQSRGDA6D                     • android-arm64
      • Android 10 (API 29)
    • iPhone 12 (mobile) • 572593A3-647B-413C-9188-B91DD07DEAF0 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)
    • macOS (desktop)    • macos                                • darwin-x64
      • Mac OS X 10.15.7 19H2 darwin-x64
    • Web Server (web)   • web-server                           • web-javascript
      • Flutter Tools
    • Chrome (web)       • chrome                               • web-javascript
      • Google Chrome 86.0.4240.183

• No issues found!

Update: Now that we have sweepgradient implemented on web engine, we can revisit this item to add tilemode support for other gradients.


Gradle and gradle plugin (launch4j) version upgrade

version upgrade details:

gradle:          6.8.2 -->> 6.9.2
launch4j plugin: 2.4.9 -->> 2.5.1 (build.gradle is slightly changed in order to comply with deprecation's)

Notes:

PR is tested on Windows: .exe file created, started and apk download (for multiple applications) from Google works as expected
I just realized that launch4j plugin version 2.5.2 is released (two days ago) so I decided to mark this PR as a draft

Closing in favor of #108


error: 'for' loop initial declaration used outside C99 mode

Hi, I'm trying to start with lvgl.
Following the README steps for Windows, at the execution in PlatformIO the output is the error
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_obj.c: In function 'lv_obj_event':
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_obj.c:734: error: 'for' loop initial declaration used outside C99 mode
*** [.pio\build\emulator_64bits\lib0e3\lvgl\core\lv_obj.o] Error 1
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c: In function 'draw_buf_rotate_90':
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c:825: error: 'for' loop initial declaration used outside C99 mode
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c:829: error: 'for' loop initial declaration used outside C99 mode
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c: In function 'draw_buf_rotate_90_sqr':
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c:858: error: 'for' loop initial declaration used outside C99 mode
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c:859: error: 'for' loop initial declaration used outside C99 mode
*** [.pio\build\emulator_64bits\lib0e3\lvgl\core\lv_refr.o] Error 1

Do I have to change some setting of PlatformIO?
Thanks

No ideas. At least, CI pass https://github.com/lvgl/lv_platformio/actions/workflows/ci.yml
May be you have old compiler in your win? What env do you use?

In VScode terminal at command g++ --version the output is
g++ --version
g++.exe (GCC) 4.2.1-sjlj (mingw32-2)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

even if MSYS2 is updated. I'm trying to fix it.

Try to reproduce steps from CI config:
https://github.com/lvgl/lv_platformio/blob/master/.github/workflows/ci.yml#L80-L105
Probably, missed to sync something in readme. I have no windows to experiment with.


Problem about dumping the model

Hi rshin,
Recently, I have read your paper "Encoding Database Schemas with Relation-Aware Self-Attention for Text-to-SQL Parsers". It's really an excellent work. And I have learned a lot from the code that achieved relation-aware self attention in pytorch.
But there is a bug about dumping the model when I run your command when training. And the config used is 02-20.jsonnet. So could you tell me how to run the latest config file correctly?
Thanks for your patience, looking forward to your response!

Thanks for your interest! The README was out of date, and I have updated it to conform to the paper you mentioned. Please reopen the issue and let me know if it doesn't work.

Sorry to bother you again. The problem about dumping the model are still exist.
This will occur when the model is saved for the second time.
Look forward to your reply. Thank you so much.

Yes, you can delete lines 72-75 if you want, but then model_checkpoint will no longer point to the latest checkpoint. I think there may be some problem with relative paths. Try using an absolute path instead.


UnhandledPromiseRejectionWarning: Unhandled promise rejection selenium_server_logs.log.lck

Hi there,
I'm currently using the following configurations:

Node Version: v6.9.1
Protractor Version: 5.0.0
Angular Version: 1.5.11
Browser(s): Chrome 54.0.2840.100
Operating System and Version CentOS Linux release 7.2.1511 (Core)
-selenium-server-standalone-2.53.1.jar

A sample of my protractor configuration is the following:
seleniumServerJar: './node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-2.53.1.jar',
localSeleniumStandaloneOpts: {

  args: ['-log', './Results/selenium_server_logs.log', '-debug'],

  jvmArgs: [

	        '-Dwebdriver.gecko.driver=./node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.12.0.exe',

	        '-Dwebdriver.ie.driver=./node_modules/protractor/node_modules/webdriver-manager/selenium/IEDriverServer_Win32_2.53.1.exe'

	    ]

},

I run a suite of tests which produce the following output:
Failures:

Scenario: Aca_Le_Ext_Gf01_Tc01 - Verify An Admin User With A Valid Employer Code, User Id & Password Can Log Into The ACA Website - Cucumber/Login_Epic/Aca_Le_Ext_Gf01.feature:7
Step: When These Credentials Are Inputted To A Tagged Browser Type - Cucumber/Login_Epic/Aca_Le_Ext_Gf01.feature:13
Step Definition: StepDefinitions/Common/Aca_Common_steps.js:39
Message:
AssertionError: expected false to equal true
From: Task:
at World.RunNonAngular (/home/jenkins/workspace/ACA_System_Test_Smoke_Dev/Support/CucumberJs_World.js:70:12)
at AcaModuleLoginPageExternal.WaitForSssIframeToRender (/home/jenkins/workspace/ACA_System_Test_Smoke_Dev/ModuleHelper/Aca_Module_External_Login.js:58:25)
at /home/jenkins/workspace/ACA_System_Test_Smoke_Dev/StepDefinitions/Common/Aca_Common_steps.js:72:41
at ManagedPromise.invokeCallback_ (/home/jenkins/workspace/ACA_System_Test_Smoke_Dev/node_modules/selenium-webdriver/lib/promise.js:1366:14)
at TaskQueue.execute_ (/home/jenkins/workspace/ACA_System_Test_Smoke_Dev/node_modules/selenium-webdriver/lib/promise.js:2970:14)
at TaskQueue.executeNext_ (/home/jenkins/workspace/ACA_System_Test_Smoke_Dev/node_modules/selenium-webdriver/lib/promise.js:2953:27)
at asyncRun (/home/jenkins/workspace/ACA_System_Test_Smoke_Dev/node_modules/selenium-webdriver/lib/promise.js:2813:27)
at /home/jenkins/workspace/ACA_System_Test_Smoke_Dev/node_modules/selenium-webdriver/lib/promise.js:676:7
at process._tickCallback (internal/process/next_tick.js:103:7)

Scenario: Aca_Le_Ext_Gf01_Tc02 - Verify An Hr User With A Valid Employer Code, User Id & Password Can Log Into The ACA Website - Cucumber/Login_Epic/Aca_Le_Ext_Gf01.feature:23
Step: Then The Browser Redirects To Page "Aca_Reports_Dashboard" - Cucumber/Login_Epic/Aca_Le_Ext_Gf01.feature:35
Step Definition: StepDefinitions/Common/Aca_Common_steps.js:120
Message:
AssertionError: expected false to equal true

Scenario: Aca_Ume_Ext_Gf02_Tc01 - Verify An Hr User After Successful Login Is Unable To Access The User Management Dashboard - Cucumber/User_Management_Epic/Aca_Ume_Ext_Gf02.feature:17
Step: And The Browser Redirects To Page "Aca_Reports_Dashboard" - Cucumber/User_Management_Epic/Aca_Ume_Ext_Gf02.feature:22
Step Definition: StepDefinitions/Common/Aca_Common_steps.js:120
Message:
AssertionError: expected false to equal true

19 scenarios (3 failed, 16 passed)
145 steps (3 failed, 5 skipped, 137 passed)
9m15.841s
Adding First Feature To Cucumber Test Report Object... login_epic
Adding New Features To Cucumber Test Report Object... user_management_epic
Adding Test Scenarios To Existing Feature... user_management_epic
Adding Test Scenarios To Existing Feature... user_management_epic
[13:15:10] I/local - Shutting down selenium standalone server.
[13:15:10] I/launcher - 0 instance(s) of WebDriver still running
[13:15:10] I/launcher - chrome #01 failed 3 test(s)
[13:15:10] I/launcher - overall: 3 failed spec(s)
Finished With Exit Code 1
(node:4209) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, lstat '/home/jenkins/workspace/ACA_System_Test_Smoke_Dev/Results/selenium_server_logs.log.lck'
In this case this throws an unhandled PromiseRejectionWarning which terminates the process ungracefully. This only occurs when I specify the logging settings:
localSeleniumStandaloneOpts: {
  args: ['-log', './Results/selenium_server_logs.log', '-debug'],

},

Now this only occurs from time to time about 3 runs out of 10 and without logging this never occurs. In addition, this only occurs when I encounter a failed scenario. It is also worth noting when a scenario fails in the After hook we reset the browser using calls
browser.restart();
browser.get(browser.baseUrl);
so to get the browser back to a known state. Has anyone seen this issue occur before? Many thanks in advance & apologies if I'm posting this issue in the wrong repository location.

From your logs:

Error: ENOENT: no such file or directory, lstat '/home/jenkins/workspace/ACA_System_Test_Smoke_Dev/Results/selenium_server_logs.log.lck'

It looks like this is probably due to an issue with filesystem state on your Jenkins worker and not an issue with Protractor itself. I'm not super familiar with the logging setup here (or its interactions with Jenkins) so i'd suggest following up on StackOverflow or a Jenkins specific forum.
Good luck! 😄

This has nothing to do with Jenkins. What you see from the logs is the location to where the log is been wrote to (which happens to be a file path location that has string 'jenkins' in it). The reason I created this bug in the protractor space is the way protractor is interacting with the selenium server jar file and how protractor is setting the logs via the command line which was something new that was added to this build I listed above.
Why are you closing this when you are not familiar with the logging setup?


Invoke-Mimikatz win32_processor addresswidth unknown property

We're not sure if this is an issue with the ps1 or the version of powershell we were forced to use but we kept getting this error:
Property 'AddressWidth' cannot be found on this object. Make sure that it exists.
At line:2589 char:53

    if (((Get-WmiObject -Class Win32_Processor). <<<< AddressWidth / 8) -ne [System.Runtime.In

al]:izeOf([Type][IntPtr]))
+ CategoryInfo          : InvalidOperation: (.peratorToken) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
We found that when attempting to run just (get-wmiobject -Class Win32_Processor).Addresswidth it returned nothing.  In fact, any property returned null, even invalid ones. We did get a workaround eventually  using the following:
((Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture).Substring(0,2)
Again we're not sure if this is an issue with the script or powershell, but thought we'd bring it to the attention of people smarter than us.

What version of windows are you testing this with ?
Wmi classes and properties have changed across different versions of the OS.

On Sep 30, 2015, at 7:05 AM, Graph-X<EMAIL_ADDRESS>wrote:
We're not sure if this is an issue with the ps1 or the version of powershell we were forced to use but we kept getting and error:
Property 'AddressWidth' cannot be found on this object. Make sure that it exists.
At line:2589 char:53
if (((Get-WmiObject -Class Win32_Processor). <<<< AddressWidth / 8) -ne [System.Runtime.In al]:izeOf([Type][IntPtr]))
CategoryInfo : InvalidOperation: (.peratorToken) [], RuntimeException
FullyQualifiedErrorId : PropertyNotFoundStrict
We found that when attempting to run just (get-wmiobject -Class Win32_Processor).Addresswidth it returned nothing. We did get a workaround eventually using the following:
((Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture).Substring(0,2)
Again we're not sure if this is an issue with the script or powershell, but thought we'd bring it to the attention of people smarter than us.
—
Reply to this email directly or view it on GitHub.

Server 2008 R2 64 bit

Someone should accept my pull request that implements Get-SystemInfo...
On Wed, Sep 30, 2015 at 8:14 AM, Graph-X<EMAIL_ADDRESS>wrote:

Server 2008 R2 64 bit
—
Reply to this email directly or view it on GitHub
https://github.com/mattifestation/PowerSploit/issues/75#issuecomment-144391359
.

Disregard, that pull request was for Invoke--Shellcode, same fix would
apply here though.
On Wed, Sep 30, 2015 at 8:46 AM, Jesse Davis<EMAIL_ADDRESS>wrote:

Someone should accept my pull request that implements Get-SystemInfo...
On Wed, Sep 30, 2015 at 8:14 AM, Graph-X<EMAIL_ADDRESS>wrote:

Server 2008 R2 64 bit
—
Reply to this email directly or view it on GitHub
https://github.com/mattifestation/PowerSploit/issues/75#issuecomment-144391359
.

See pull request #64
The evaluation of the remote systems processor architecture would fail if
the remote system had multiple processors.
Added some logic to detected and handle that.
On Wed, Sep 30, 2015 at 7:48 AM, Jesse Davis<EMAIL_ADDRESS>wrote:

Disregard, that pull request was for Invoke--Shellcode, same fix would
apply here though.
On Wed, Sep 30, 2015 at 8:46 AM, Jesse Davis<EMAIL_ADDRESS>wrote:

Someone should accept my pull request that implements Get-SystemInfo...
On Wed, Sep 30, 2015 at 8:14 AM, Graph-X<EMAIL_ADDRESS>wrote:

Server 2008 R2 64 bit
—
Reply to this email directly or view it on GitHub
<
https://github.com/mattifestation/PowerSploit/issues/75#issuecomment-144391359

.

—
Reply to this email directly or view it on GitHub
https://github.com/mattifestation/PowerSploit/issues/75#issuecomment-144404673
.

Thanks for the heads up Graph-X. For reference, the authoritative version of Invoke-Mimikatz is hosted on Joe's GitHub: https://github.com/clymb3r/PowerShell/tree/master/Invoke-Mimikatz. It is best to submit issues/PRs to him. He'll respond accordingly and do a PR into PowerSploit if necessary.
secabstraction, mbegan. My apologies for not getting around to those PRs. Expect active development/support of PowerSploit to ramp up in the very near future.


Rewrite splash page

Just a short blurb for the doc area home page, mainly to help direct admins and researchers to the proper locations. @osg-cat assigning this to you since reviewing actual content is in your wheelhouse.
The eventual idea is to replace the contents of https://twiki.opensciencegrid.org/bin/view/SoftwareTeam/WebHome with a link to this page or the Install Overview page.

@osg-cat how's it look now?

OK.


feat: add explanation for caching

Closes #72
📑 Description

Changes made-

Added explanation for caching under explanation section.

✅ Checks

[X] My pull request adheres to the code style of this project
[ ] My code requires changes to the documentation
[X] I have updated the documentation as required
[X] All the tests have passed

Any update on the above PR?

Great work @YashPimple


Convert badboy to threat

All the badboy are converted to HoI4 world tension, divided by 10.

Idhrendur said he will be absent until easter.


[BUG] Unpacking the cni-plugins zip for arm64 is abnormal

What happened:
During the yurtadm join process, kubernetes-cni is downloaded and installed to the /opt/cni/bin directory. However, when the user's environment is arm64, the downloaded package (https://aliacs-edge-k8s-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/public/pkg/openyurt/cni/v0.8.0/cni-plugins -linux-arm64-v0.8.0.tgz) is overpacked, which causes cni to end up being unpacked under /opt/cni/bin/cni-plugin.
What you expected to happen:
The cni binary should be properly extracted to /opt/cni/bin.
How to reproduce it (as minimally and precisely as possible):
Executing yurtadm join on an arm64 edge machine.
Anything else we need to know?:
Environment:

OpenYurt version:
Kubernetes version (use kubectl version):
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

others
/kind bug

@rambohe-ch PTAL, I think we should modify the cni-plugins package for arm64 on oss.

/assign @luc99hen

@YTGhost  done


Add better code formatting and license header checks

What would you like to be added:
We should define better code formatting and license header checks
Why is this needed:

@tsurdilo May I work on this?

@asquare14 sure!! thank you. feel free.
the idea was to add some maven checks for code formatting and enforcing headers on resources