SafeStructuredArguments proposal

I've found out both technical and political resistance to adopt a Logback + StructuredArguments + Logstash + ElasticSearch solution due to a couple of issues:
1- For some reason, StructuredArgument kv with dates, dates are serialized in a way that ElasticSearch is unable to ingest.
2- It may always happen that a custom object logged (by mistake or not) with, again as an example, kv, renders problems in either the serializer (recursive) or in ElasticSearch (unnecessary indexing).
The solution I've used to convince my fellows is not to use StructuredArguments as provided, able to use any object, and provide a custom SafeStructuredArguments that exposes String, Boxed Primitives and UUID only methods. This way we have somehow a warranty that no issues will be found serializing or ingesting this information. On a side note, full commitment to SafeStructuredArguments is enforced by forbidding StructuredArguments imports via Checkstyle.
I've already forked and started working with this class, but I'd be delighted to see this integrated with the library itself. Feedback is appreciated.
Congratulations for this awesome library I've been reusing for years now.

Hi @albertonavarro. Thanks for the complement and proposal!
For item 1, I'd recommend customizing the JsonFactory and/or JsonGenerator with whatever serialization logic you require.
For example, if you're using joda-time, you could register the joda-time module like this:
import net.logstash.logback.decorate.JsonFactoryDecorator;

public class JodaJsonFactoryDecorator implements JsonFactoryDecorator {
    @Override
    public MappingJsonFactory decorate(MappingJsonFactory factory) {
        factory.getCodec().registerModule(new JodaModule());
        return factory;
    }
}

or if you're using java 8 date/time objects, you can register the jackson java 8 modules
Additionally, jackson offers several other customization options for date/times.  And you can always write your own serializer of none of the existing modules fit your needs.
There are various other jackson modules for other common classes as well.
Obviously, this doesn't completely solve the problem (as you mention in item 2), because there is still a chance that an object with an arbitrarily large nesting gets logged, or includes a class for which there is no special serializer.
However, I'm a little hesitant to include a SafeStructuredArguments class, since the definition of "safe" will vary in different apps, based on how the serialization is configured, and how the logs are being consumed  (e.g. sent to logstash/elasticsearch, or splunk, or loggly, etc).  For example, joda date/time objects, java 8 date/time objects, guava objects, etc are perfectly "safe" if the appropriate jackson modules are registered and/or serializers provided.

Thanks for your feedback, I'm not really convinced about solving the problem in the serialization, as it's more about putting some limits to developers.
I'll create it as a separate Utils that will depend on your different releases.

An interesting idea for people that like includeNonStructuredArguments would be to allow a user-configurable "whitelist" of types (maybe with a sensible default) that, if enabled, would directly serialize those types, but otherwise would either exclude them or call toString() instead. The whitelist is easily overridden by explicitly wrapping in a StructuredArgument (that's the "leave me alone, I know what I'm doing" button) and of course you can control the serialization of specific classes using JsonFactoryDecorator.
For example, in my apps, I'd probably whitelist the primitive wrappers (Integer, Boolean, etc...), String, various temporals (which I've already modified to be serialized properly using JsonFactoryDecorator and perhaps a few application-specific types. Then for everything else I would be happy for toString() to be called on the object instead of the object itself being serialized (and again, when I know I need something special serialized as an object, I can always explicitly wrap in a StructuredArgument).
If this sounds like something that would be acceptable, I will start putting together a PR. If it's okay, I'll open a separate Issue to discuss what the API/config options for this should look like, since that's the only "hard" part - implementation should be pretty easy since it's just a matter of a small modification to the call to writeObjectField() in ArgumentsJsonProvider: If the object is in the whitelist, continue as usual, otherwise call toString() then continue.

At least my part you got it right @philsttr, however there could be an objective way of describing a safe object, and that would be the object that can be ingested by Logstash and ElasticSearch. I know this is closed, but if I recall correctly, the object Date actually crashes somewhere between Logstash and ES, that wouldn't be a safe object.
I still think there could be some room for logstash-logback-encoder to control that. Having said that, I agree that my implementation is really far from ideal.


allow long messages and esc key @ overlay

overlay added so now we can make long-message alerts
key listener moved to the overlay so now the user can use esc anywhere

Im going to merge this into the stage branch and test it there before promoting to master

Awesome job on this! Works great!


Agent tool Repetive output

Describe the bug
A clear and concise description of what the bug is.
When use mistral:latest as model, I get repetive output from agents, examples:

I didn't notice this behavior with hermes-2-pro-mistral tho
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

I think this really comes down to fine-tuning prompts for each model. I already planned to make all internal prompts editable from the webinterface. Maybe we should add a warning next to "unsupported" models
How would you implement a short circuit? Just returning an error after n times the same response?

Warning on unsupported models sounds good.
Regarding to short circuit, I think it probably should be done at agent level? e.g. plan? doesn't seems something caller can inject easily (correct me if i m wrong here)

Yes this is something I would have to handle in the callback logic of each step. At the moment callbacks only push new logs to the Webinterface but I see no reason why they couldn't be used to short circuit something like that.
A university professor of mine promised me access to more powerful hardware, which would allow me to implement and regularly run a test harness to catch things like this and develop solutions for them.

Sounds good! Closing this for now


Fix sap rfc setup

Summary

Improves SAP RFC viadot setup and eliminates issues with file access and permissions on Linux.
Importance

changed the base image to the remote image to ensure there is no need to build/update viadot:dev locally
removed setting permissions in the sap_rfc image as they have already been set in the viadot:dev. Setting permissions in sap_rfc image leads to conflicting configuration and cause issues with file access and permissions on Linux.

Checklist

This PR:

[ ] adds new tests (if appropriate)
[ ] updates docstrings for any new functions or function arguments (if appropriate)
[ ] updates CHANGELOG.md with a summary of the changes

@AnnaGerlich have you checked with @angelika233 that this change doesn't break existing SAP flows?

yes, SAP flows work with no disruption


feat: make e2e test faster

Description
Solution:

split into different action jobs
option: check if we can run all the ginkgo Describes parallel with GitHub Actions

Target:

finish CI in 10min

Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

ref:
https://www.testmo.com/guides/github-actions-parallel-testing
https://github.com/testmoapp/example-github-parallel

We would use
proc = subprocess.run(
        ["ginkgo", "outline", "--format", "json", f"{file}"], capture_output=True
    )

to extract all description of testcase file at e2e/*/*.go, and output to stdin:
$ python .github/parallel_mat_gen.py
execute python demo.py
should build successfully
should build successfully
add some blank to build.envd
exec installed command inside container
init python env
should get the environments successfully
fail to delete the current context
should be able to build image with TCP context
should find a new context
should found the default context
should up and destroy successfully
Should build conda with separate channel setting successfully
Should build conda with channel successfully
Should build hybrid successfully
Should build requirements successfully
Should build packages successfully
execute runtime command `numpy`
should be able to build the GPU example
should be able to use envdlib
undefined
can check envd envs details
can list envd envs

Then collect them into a matrix, and assign each job for one description by ginkgo --focus ${ desp }
By this way, we could run one job for one ginkgo It testcase.
The undefined is by a bad extraction from dynamic string format
https://github.com/tensorchord/envd/blob/8e9cb2e7bcbaef7c86996d7376ca27af8e741ed0/e2e/docs/docs_test.go#L72
I would do a loop unrolling to lei it static.

I don't want to hack GitHub actions for the dynamic matrix. Because their internal API changes frequently without notifying people.
More importantly, we should check the limit before researching the solution: https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration
So actually, we can only run 20 concurrent jobs. There is no need to run all the "Describe" in parallel.

I don't want to hack GitHub actions for the dynamic matrix. Because their internal API changes frequently without notifying people.
More importantly, we should check the limit before researching the solution: https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration
So actually, we can only run 20 concurrent jobs. There is no need to run all the "Describe" in parallel.

@kemingy
Let's make parallel_mat_gen.py  into run_test_job_balance.py and give it two arguments ci_index and ci_total.
ci_index: [0, 1, 2, 3, 4, 5, 6, 7, 8]
ci_total: [8]

After it scanned all Describe, it will run jobs of index likes index % ci_total == ci_index.
As for 20 Describes, run_test_job_balance.py 3 8 will run index 3, 11, 19 Describes.
For default ci_total, we could try it for 8, 9 and 7, as we have 2 * ci_total jobs for ubuntu and macos tests, and reserve a few for other jobs.

I think the CI can organize the jobs (even when it's larger than the limit).
My main concern is the complexity. The current CI is already overwhelming to maintain.

If we don't insert an automatic scanning into CI, then we would make a intrusive revision of tests, to indicate which job it will runs on.
When we implement new tests, we need to check which job has less test and insert test into it.
If we change the job total number by some reason, we would do a huge rearrangement.
By this way, the complexity don't disappeared, but moved into the source of test.

By this way, the complexity don't disappeared, but moved into the source of test.

Make sense. Not sure if there is a stable method to generate the matrix dynamically.

By twice way, we could use a static matrix like this:
ref: https://github.com/tensorchord/envd/issues/1248#issuecomment-1341889333
# .github/workflows/build.yml
name: Build

on: [push, workflow_dispatch]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - run: echo "Building .."

  test:
    needs: build
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        ci_index: [0, 1, 2, 3]
        ci_total: [4]

    steps:
      - uses: actions/checkout@v2
      - run: run tests load balance
      - run: python run_test_job_balance.py ${CI_INDEX} ${ CI_INDEX }
        env:
          CI_TOTAL: ${{ matrix.ci_total }}
          CI_INDEX: ${{ matrix.ci_index }}

LGTM

Are there any other communities using this approach? I think it should be a general need.


(console logs) Client not connecting to server. Endless loading screen or p(0) undefined disconnect reason.

!!LOGS AT THE BOTTOM!!
No matter what proxy setup I've tried I can't seem to have the bot connect to my server.
At first I thought it was due to having fabric mods loaded but thats not the case here. I tried using the default proxy shown on the example website which also did not work. I don't see anything in the console so how would I produce those logs? (the example website connects just fine) The connection just times out when using the example site proxy.

made a bash.sh file with both commands and ran bash bash.sh, stuck on "fetchMetadata: sill resolveWithNewModule<EMAIL_ADDRESS>checking installable status"

I let it run for about 2 and a half hours and its just finally gotten past that step. Weird hanging issue.

Is there a way to change the http port used by this? I currently already have port 8080 in use by another service.

console-export-2022-11-4_0-42-58.txt
console log with proxy
console log without proxy
console-export-2022-11-4_0-44-32-noproxy.txt

I see that 1.18.2 is not supported in the npm package. How would one go about adding compatibility for 1.18.2 like the example website?


Can we get thumbnail of video from youtube?

Instead of uploading video thumbnail our self, can we get thumbnails of video uploaded on youtube? As sometime user don't have specific thumbnail of video so in that case if we can ask youtube to generate and give us the link of that thumbnail? Any help regarding this will be appreciated, thanks!

I'll need to look into this. I think this might not be possible as I think YouTube creates the thumbnails after/during the processing of the upload.
I may be wrong, but will need to look into this.

@JoeDawson yes you are right that youtube creates thumbnail after processing. but we have video id and if we can use video id after processing to get thumbnails created.
I'm also searching it. Thanks for your quick response and help.

You could try using this package to get the thumbnails after the upload :)
https://github.com/alaouy/Youtube

Thanks. Trying it and will inform you if it works,

@JoeDawson I'm getting following error on Youtube.php (line 42)
Google API key is Required, please visit https://console.developers.google.com/

I've already given GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET for your library so where do i find this key?
And also this library create YouTube.php in config folder so will it create any issue/conflict with your library?

Sounds like there's a conflict. Do you have this?
use Youtube; // References Dawson\Youtube\Facades\Youtube;
use Alaouy\Youtube\Facades\Youtube;

If so, they're the same - therefore are conflicting.
Change this:
use Alaouy\Youtube\Facades\Youtube

To this:
use Alaouy\Youtube\Facades\Youtube as YoutubeInfo

Then you can use all of the https://github.com/alaouy/Youtube methods with YoutubeInfo instead of Youtube (for uploading).

Changed it but still getting API key required issue. What about /config/youtube.php file?

Hmm, I just took a look at https://github.com/alaouy/Youtube again. We both use the same filename for the config (config/youtube.php).
With your existing youtube.php file, add a new key for the alaouy/Youtube package.
'key' => 'YOUR_API_KEY'

Sounds like you also want to create an API key on the Google Developer Console to use with this too.

which key i've to give here? GOOGLE_CLIENT_ID?

you are talking about this key? http://prntscr.com/g0fv14
I've given that in 'key' => 'api key here', but nothing changed.

I think this is an individual API key, you can create one by visiting here: https://console.developers.google.com/apis/credentials
Then create a new API key.

Is that the correct project?

yes it's correct project. I'm using it's OAuth 2.0 client IDs for your library  and trying to use API keys but didn't work.
Error is coming on youtube.php line # 42. And this line says:
'developer_key' => env('GOOGLE_DEVELOPER_KEY', null),

added it in env file too:
GOOGLE_DEVELOPER_KEY=AIzaSyDfW91-xxxxxxxxxx

The error you're talking about isn't from this package though, it's from here:
https://github.com/alaouy/Youtube/blob/master/src/Youtube.php#L43

Could you show me your config/youtube.php file?

Here it is:
return [

/**
 * Application Name.
 */
'application_name' => 'Your Application',

/**
 * Client ID.
 */
'client_id' => env('GOOGLE_CLIENT_ID', null),

/**
 * Client Secret.
 */
'client_secret' => env('GOOGLE_CLIENT_SECRET', null),

/**
 * Access Type
 */
'access_type' => 'offline',

/**
 * Approval Prompt
 */
'approval_prompt' => 'auto',

/**
 * Scopes.
 */
'scopes' => [
    'https://www.googleapis.com/auth/youtube',
    'https://www.googleapis.com/auth/youtube.upload',
    'https://www.googleapis.com/auth/youtube.readonly'
],

/**
 * Developer key.
 */
'developer_key' => env('GOOGLE_DEVELOPER_KEY', null),

/**
 * Route URI's
 */
'routes' => [

    /**
     * The prefix for the below URI's
     */
    'prefix' => 'youtube',

    /**
     * Redirect URI
     */
    'redirect_uri' => 'callback',

    /**
     * The autentication URI
     */
    'authentication_uri' => 'auth',

]

];

Ok, as the error says for https://github.com/alaouy/Youtube - an API key is required. I can't see that on your config?
As the alaouy/Youtube package is looking for a key in config/youtube.php.
Add in after developer_key or something.
'developer_key' => env('GOOGLE_DEVELOPER_KEY', null),

/**
 * API Key for the "alaouy/Youtube" package.
 */
'key' => 'THE API KEY YOU CREATED BEFORE',

Also closing as thumbnails are not supported with this package, but still happy to assist you with setting up alaouy/Youtube :)

I've tried that too just like you said but nothing changed. If you hardcode key in constructor then it don't give this error (another SSL error is thrown which i guess has some other issue). Anyhow thanks for your time and help it put on right path :)


Small gradientFlow fixes

This PR fixes small bugs in the gradientFlow (parameters). There was an additional flow step after everything was already done, which was unnecessary. also some parameter files related to gradientFLow were wrong, which is now fixed

this also fixes #69

all tests passed of course (except hisqforce due to other reasons)


Server side rendering

Hi,
I played with dvajs and it looks like a really great project. I was wondering if there is support for server side rendering as I couldn't find any mention of that in the documentation.
Thanks,
Lior

#85

Thanks for the attention, it will be supported in next minor version. #85

Thanks for the update @sorrycc!

@sorrycc I'm starting new project. Do you recommend waiting for version 2.0 or to start with 1.0 (I need SSR)

Wait for 1.1, it's planned to release next week.

@sorrycc thanks! So it'll have server side rendering built in?

Try this boilerplate, it works with<EMAIL_ADDRESS>.

@sorrycc - looks great! Is there a way to prefetch the relevant data from the server without explicitly having this url matching switch:
     switch (renderProps.location.pathname) {
        case '/':
          fetchList()
            .then(({ err, data }) => {
              if (err) {
                res.status(500).end(`Uncaught error: ${err}`);
                return;
              }
              const initialState = { user: data };
              const app = createApp({
                history: createMemoryHistory(),
                initialState,
              });
              const html = renderToString(app.start()());
              res.end(renderFullPage(html, initialState));
            });
          break;
        case '/about':
          const app = createApp({
            history: createMemoryHistory(),
          });
          const html = renderToString(app.start()());
          res.end(renderFullPage(html, {}));
          break;
        default:
          res.status(500).end(`Uncaught pathname: ${renderProps.location.pathname}`);
          break;
      }

What do you think about approach similar to this concept:
https://github.com/flowcommerce/redux-fetch
Thanks!
Lior


[AMBARI-22900] Log Search UI: implement 'History' functionality

What changes were proposed in this pull request?
History of user's actions should be available for viewing and undoing/redoing.
How was this patch tested?
Tested manually on mock and real data.
Unit tests:
Executed 250 of 250 SUCCESS (6.685 secs / 6.598 secs)

cc @tobias-istvan

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/413/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/414/
Test PASSed.


[GHSA-qf9m-vfgh-m389] FastAPI Content-Type Header ReDoS

Updates

Affected products
CVSS
Severity

Comments
This vulnerability, and it's fix, is actually in the underlying python-multipart library. This library is independent of fastapi and can be updated separately. The same can be said of the identical report at https://github.com/advisories/GHSA-93gm-qmq6-w238
It is quite unhelpful to have a security advisory that is not linked to the root cause.

Hi there @tiangolo! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

@garyd203, please see the thread in https://github.com/github/advisory-database/pull/3479

Thanks @darakian


Relay decoding returns weird value for GUID

Hello 👋
I ran into a strange issue while trying to upgrade from "@pothos/core": "3.27.1" to the current version (3.35.0) and "@pothos/plugin-relay": "3.37.0", to "@pothos/plugin-relay": "3.43.1"
When trying to decode a specific GUID, a390e12f-fd71-46ed-9343-fc3b1f3d0a10, the decodeGlobalID function from @pothos/plugin-relay returns y߽ߍ�}�����ѭt where I would instead have expected it to throw PothosValidationError
Reproduction here:
https://codesandbox.io/p/sandbox/small-browser-ljwfkm

thanks for reporting this... The change is the result of preferring Buffer.from(id, 'base64') over [atob(https://developer.mozilla.org/en-US/docs/Web/API/atob) which doesn't properly support unicode charaters.  Unfortunately they way base64 is not very strict, and won't error on invalid characters.  I think we could probably introduce a regex that validates that the provided ID is valid base64.  This isn't fully proof, but should catch some of the common cases

Not sure I follow. Would you add a regex test for the input ID here to make sure it's valid base64 before decoding?
How can decodeGlobalID(valid-guid) (such as the example, a390e12f-fd71-46ed-9343-fc3b1f3d0a10) ever result in {"id": "y߽ߍ�}�����ѭt", "typename": "kt{]���{��"} ?

You can run the following to reproduce the issue:
const [typename, id] =  Buffer.from('a390e12f-fd71-46ed-9343-fc3b1f3d0a10', 'base64').toString().split(':')
console.log({ typename, id })

Basically when node parses a390e12f-fd71-46ed-9343-fc3b1f3d0a10 as base64 it decodes it as k\x7Ft{]���{��:y߽ߍ�}�����ѭt.  Pothos splits the decoded string on : which happens to be part of the decoded value, and then takes the first piece as the typename and the second piece as the id

The ID you provided isn't valid base64, but nodes parser is not strict, and tries to interpret the values anyway.  Adding a check using a regex like /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/ would allow the parsing to error on more invalid IDs, although it still won't guarantee that the typename and ID are actually good values (thats pretty much impossible)
We could also check to see the typename is part of the schema (accessible via the info object) but that may be a breaking change, and I can imagine use cases for resolving IDs that are not part of the current schema for people using stitching or federation.  Maybe just validating the typename is a valid GraphQL name (a letter followed by 0+ letters/numvers/underscores) would be more reasonable thing to add

Just pushed some changes that add a bit more validation around global IDs


Add test for drone repos data source

Changes

Rename test repo
Add multiple test repos
Add tests for drone_repos data source

Codecov Report

Merging #98 (b45061b) into master (f272c85) will increase coverage by 1.38%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #98      +/-   ##
==========================================
+ Coverage   77.70%   79.08%   +1.38%
==========================================
  Files          15       15
  Lines        1449     1449
==========================================
+ Hits         1126     1146      +20
+ Misses        269      248      -21
- Partials       54       55       +1

see 1 file with indirect coverage changes


Post-Cleanup Cleanup (TG #3240)

Local fork issue to track work on https://github.com/gui-cs/Terminal.Gui/issues/3240

Bah. I wish multiple milestones were allowed.. 😞

.editorconfig synced with resharper settings.
Next I'll take a pass over docs. I already see at least one change that needs to be made.

PR submitted upstream: https://github.com/gui-cs/Terminal.Gui/pull/3241


AgilityShortcut.java: Update Neitiznot Bridge agility requirements

Update Four Neitiznot bridges to 1 Agility requirement, only northeast bridge to the center island mine requires 40 agility

1 agility is the same as no requirement - should these just be removed?

yes

Removing them also removes the clickboxes, so probably this is ok just changing it to 1.

yeah clickbox is still valuable for these

It is actually a 0 agility requirement technically. I just checked it.


Fixed BC Validation and css for Move Info Page

Please check if the PR fulfills these requirements:

[X] After these changes, the app was run and still works as expected
[X] Tests for these changes were added (if applicable)
[X] All existing unit tests were run and still pass

Please specify the type of change this PR introduces (Bug fix, feature addition, content update, chore, etc.):
Additional Notes:

Hi @harrymaynard-maximus , I've fixed the class names as well as the css field consistency based from my conversation with Banoo.


drivers: video: video_stm32_dcmi: Prevent out of bounds memory access

The frame event callback unconditionally copies into the enqueued video buffer. The driver only supports fixed length frames, so reject enqueued buffers that are not large enough to prevent invalid memory access.

A more complete solution might be to also move setting of vbuf->bytesused into the frame event callback and use something like MIN(vbuf->size, data->pitch * data->height) for the memcpy size and finally setting vbuf->bytesused. I think it is possible to enqueue a buffer with one format set and then change it so that vbuf->size is less then data->pitch * data->height.

I can suggest those changes in another PR or add to this since it is closely related.

Let's make it another PR as this one is ready to be merged


Combine data

For the time series we have monthly data. I am aggregating it yearly.

For GPCC precipitation and NOAA CO2 I am aggregating with sum.
For NECI: ocean temperature I am aggregating with mean.
Closes #24

Is this related to an issue? If so, please put "Closes #xx" in the description. References in the title aren't linked together automatically by github

Is this related to an issue? If so, please put "Closes #xx" in the description. References in the title aren't linked together automatically by github

Yeah. sorry
Closes #24

Is this related to an issue? If so, please put "Closes #xx" in the description. References in the title aren't linked together automatically by github

Yeah. sorry
Closes #24

You need to edit the first post and put it there, and edit the title to remove it

Is this related to an issue? If so, please put "Closes #xx" in the description. References in the title aren't linked together automatically by github

Yeah. sorry
Closes #24

You need to edit the first post and put it there, and edit the title to remove it

Done

We should also consider merging features from the shapefile (river basin, region, subregion, etc)

Do you mean from the EM-DAT? If I am not wrong, this info is from the EM-DAT

We should also consider merging features from the shapefile (river basin, region, subregion, etc)

Do you mean from the EM-DAT? If I am not wrong, this info is from the EM-DAT

My bad. If there are static rows from EMDAT (that don't vary by dates) we can pull those out into a separate dataframe. So you'll have 1) panel data, 2) country only, 3) time only

We should also consider merging features from the shapefile (river basin, region, subregion, etc)

Do you mean from the EM-DAT? If I am not wrong, this info is from the EM-DAT

My bad. If there are static rows from EMDAT (that don't vary by dates) we can pull those out into a separate data frame. So you'll have 1) panel data, 2) country only, 3) time only

Perfect. The only country constant variables are region and subregion (as I experienced on the EM-DAT EDA, it is useful to have them at hand). The river basin is specific to the disaster event, so it is not constant for country.
I added a dictionary with the constant variables for the country dimension, which are Region and Subregion.

We should also consider merging features from the shapefile (river basin, region, subregion, etc)

River Basin  event-specific data. I included Region and Subregion


Improving this awesome project

7487448 - If the project path had spaces in its name, the cmd would fail.
8217a18 - Ruby doesn't use camel case, uses snake case instead
033325d - 'Style/OpMethods' cop has been renamed and moved to 'Naming/BinaryOperatorParameter'

Thank you! :)


Unpublished content can become visible when using a ParentalKey relation

Wagtail does not protect you from publishing draft content when it is related to a Page with a ParentalKey and ForeignKey. For example:
class HomePageFeaturedEvents(Orderable, models.Model):
    page = ParentalKey('app.HomePage', related_name='featured_events')
    event_page = models.ForeignKey(
        'events.EventPage',
        null=True,
        blank=True,
        on_delete=models.SET_NULL,
        related_name='+'
    )

class HomePage(Page):
    # yadda yadda

HomePage.content_panels = [
   # yadda yadda
    MultiFieldPanel(
        [
            InlinePanel(HomePage, 'featured_events', label="Featured events"),
        ],
        heading="Featured Events",
        classname="collapsible collapsed",
    ),
]

Scenario:

User creates draft event page
User assigns draft event to featured slot on a live home page
User submits live home page changes for moderation
Moderator approves live home page changes
System publishes live home page
Draft event page becomes visible in featured home page content. (note: draft event page is still technically not public, i.e. navigating to the page will result in a 404).

Hi @akrawchyk - thanks for pointing this out. There's an extra subtlety here that hadn't occurred to me up to now, which is that any subsequent edits to the draft page are immediately reflected on the homepage without going through moderator approval. Not ideal...
Do you have any suggestions on how we could do this differently? I don't think we can realistically impose a complete block on links to draft content (either during page editing or at the point of publication) because it's quite common for people to work on a new section of a site with many interlinked pages in draft, before putting them all live in one go at a determined time. The best we can do is probably a warning to the moderator, perhaps on the preview screen. Ultimately it still relies on the moderator to be aware of where the content is coming from, and know what should and shouldn't be published at any time - which is probably a reasonable thing to expect from them!

any subsequent edits to the draft page are immediately reflected on the homepage without going through moderator approval. Not ideal...

Is there a way to lock an approval request against a page revision? That way, more revisions can be created and only the previously approved revisions would be published.

I don't think we can realistically impose a complete block on links to draft content (either during page editing or at the point of publication) because it's quite common for people to work on a new section of a site with many interlinked pages in draft, before putting them all live in one go at a determined time.

A complete block would be too inflexible, I agree. But to me the draft state indicates that the draft content will not be publicly visible. For now, can we filter the draft states from either the template context or the wagtailadmin page choose modal workflow?

Ultimately it still relies on the moderator to be aware of where the content is coming from, and know what should and shouldn't be published at any time - which is probably a reasonable thing to expect from them!

Definitely agree this is something that might not work with strict defaults. However, the current process needs improvement at least for transparency to the user. I'm thinking it could be a setting with different strictness values. For example, no warning, warn when approving/publishing, error when approving/publishing. Maybe even have a button to auto adjust the go_live_at field of anything to be published to make it easy to fix for the user.

Is there a way to lock an approval request against a page revision? That way, more revisions can be created and only the previously approved revisions would be published.

This is how it works at the moment - moderation requests are tied to specific page revisions, so that the moderator sees the page in the state that it was at when the editor clicked "Submit for moderation", regardless of any subsequent edits. However, this doesn't deal with pages that display content sourced from other pages, as in this example - that would entail making a snapshot of the entire database for each moderation request...


vagrant: Generate kubeconfig correctly for netnext

Please ensure your pull request adheres to the following guidelines:

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

When we start VMs with K8S=1 NETNEXT=1, vagrant.kubeconfig file is not
generated correctly because start.sh tries to vagrant port and
vagrant ssh with the host name k8s1 instead of k8s1+. Fix it to use
correct host name.
Bit tricky thing in here is we don't modify the host name inside the
kubeconfig from k8s1 to k8s1+. This is because the k8s1+ is the host
name on the Vagrant. Linux inside the VM still uses the host name k8s1.
Therefore we don't modify the "Add '<IP_ADDRESS> k8s1' ~" instruction
sentence as well.

/test

This is not covered by end-to-end tests, so good to merge.

Ah, never mind! I missed this -

Linux inside the VM still uses the host name k8s1.
Therefore we don't modify the "Add '<IP_ADDRESS> k8s1' ~" instruction
sentence as well.


Statistics on Pump Runs or Gallons emptied

Have you given any thought to adding in statistics of say how many times the pump shows to run in a day, and perhaps with a place to specify gallons removed per pump time, how many gallons removed?
I realize this can be done visually for a day or so, but would be nice to be able to look over time and have statistics on how many times per day, per week, looking at it seasonally, etc.   But the base metric would be using the data to identify how many times the pump ran in a day, and logging it in some way.
By the way, thanks much for a great setup here - has been easy to follow and use what you have here!

I have given this tonnes of thought over the past couple of years and have code running (ugly code) on my local pi that calculates the number of times the pump goes off in a day and the amount of gallons pumped out.
However it is challenging as the code is so specific to my own pump and pit.
you have to first identify when the pump goes off from the csv file by viewing patterns.   Then it also depends on your pump and how much water it throws --- which also has dependency on how high it is throwing it.  I actually emptied into a 5 gallon bucket and timed it to get a gallons/minute.
I would be happy to share with you what I have but probably wouldn't be able to do that until the weekend.  I actually wrote a small web app in python/flask that runs on the pi that gives me pretty good stats.

That would be great.  It was the identifying when the pump emptied that I was not sure the easy way to do.  I could grab logs in excel or something and do it, but didnt know how to script it.
I might have been oversimplifying it, but was thinking of the water removed in terms of diameter of pit, high point, and low point - calculating volume, etc.   But would have to account for space taken up with pump, etc - so it would for sure be an estimate.  And depending on specific set up with check valve, some could have some backwash into pit I suppose?.
Anwyay - thanks much!

@jchuckw @alaudet
I have done the following - https://thingspeak.com/channels/737963
This is poorly coded/bastardized python3 script is running on the PI that is running Raspi-Sump - I am not knowledgeable enough to how to integrate it into Al's code.
Then I am using a Thingspeak widget on my android to get the stats... very helpful because we have had flooding in our area and going into the rainy season.   Times in prior years my pump would run almost ever two minutes for days on end.

@spankurmonkey  - very nice!

@spankurmonkey   wow....ok I want this  :-)

@jchuckw  The way I did it was to estimate how long the pump was emptying but looking at the minutes passed while the water level was decreasing minute by minute.  Then calculate how many gallons get pumped out during that time.
I only have access remotely on the pi with a text based browser but it shows the following.  I will post a screenshot tonight from graphical web browser.
Logo

   Today's Water Level

   Waterlevel_2019-04-04_15:33

   File:               waterlevel-20190404.csv
   Number of Readings: 933
   Gallons:            360
   Sump Empties:       8
   5 Gallon Pails:     72
   Minutes per empty:  2.3

Here is a web look.  I'm not a web designer obviously.  :-)
Also I can bring up any past csv file to view stats for those days.  I haven't updated the page in some time, as it is not referencing historical data from 2017, 2018, 2019.

Here is an exceptionally wet time of year in 2016

I believe I have this working right now.   Just sharing what I ended up with in case you wanted to implement or others wanted to know.   Not the cleanest way, but python is far from my expertise.  I modified the log.py to check the current reading vs the last one, and if a difference of >=2.5 (could be whatever you wanted) then it increments a counter.  My sump empties pretty quickly so I don't have any double entries like you might see with this method.  It is only about 4.5 inches or a little more that it moves down each time it empties.   You could add some logic that looked at the last 2-3 readings to ensure no double counts if needed I suppose.   I also added this number into the web page, so I can easily keep an eye on this to make sure the number counter was working properly.
I then added a script that creates a long term log that is set to run at 1 minute before midnight.  It logs the date, and the number of the daily empties, then resets the counter for the next day.   Also copies the log file over to the charts, so I can easily grab that from web page, and pull it into excel to look at trends, etc when I want to.

ok, cool.  I am just looking over the code that i wrote to do the same thing and I am scratching my head at a couple of places.   If you send me an email (email on github page) I can reply to you and send you what I did for another perspective.  But as you have already figured out, there are no two pumps alike so it's hard to release it as it probably would not work for others without some modifications.

@spankurmonkey    https://thingspeak.com/channels/737963
I love this.  Very nice

I will close this issue for now.  I appreciate the discussion on this topic.  It's made me think of possibilities.  We can reopen if you want to continue.


[Code Quality] Fix Javascript to work on older devices & "smart" TVs

Per discussion on #39 , we know "smart" TVs are rather dumb. I think this can be fixed by adding BabelJS ; initial attempts so far have had mixed results, but this seems worth further exploration.
Process
make realclean / make clean
npm install && npm install --save-dev @babel/core @babel/cli @babel/preset-env @babel/preset-react babelify
npm install --save @babel/polyfill
(create babel.config.js, if haven't already)
(update makefile, if haven't already)
make configure TARGET=apache2-debian && make
make install

Example babel.config.js
const presets = [
  [
    "@babel/env",
    {
      targets: {
        ie: "7"
      },
    },
    "@babel/preset-react",
    {
    }
  ],
];

module.exports = { presets };

This is definitely something I should experiment with. It'd be great to get LibreSignage working on various smart-TVs aswell.


Update the favicon and logo

I wanted to let u know that updating the logo and existing favicon with that of the same logo would make the site and the tab opening the site more appealing .
How it looks now

Fixing this will make it look border less and more beautiful
Let e know if i could work on this under JWOC

ok u can do it.


Fails when trying to send an object with circular references

This is do to JSON.stringify(), which cannot handle circular objects. Could use circular-json to handle this.
Let me know what you think of the approach. I'd be happy to submit a PR.

Yes, PR welcome! Thanks for reporting that out, too!!


How to make the coordinate system in the test generation visualization file the same as that in the data set?

Hello，Your work is excellent.I found that the coordinate system in the visual file generated by the test is different from that in the data set. I want the two coordinate systems to be the same. How can I operate? Your answer is very important to me. I look forward to your reply.It's important to me. Thank you in advance.

@bukeyan4318 you can reference the answer in #5.

@dlinzhao hello,In other words,How to make the XYZ coordinate system generated by the test consistent with the XYZ coordinate system in the original data set ? The XYZ coordinate system generated by the test is not based on the original data set.I look forward to your reply.It's important to me. Thank you in advance.

@bukeyan4318 At the preprocessing, the coordinate xyz will subtract its minimum. So, you can add the minimum from original data to the coordinate of test results. Please reference the preprocessing.

@dlinzhao Thank you very much. I understand. However, what makes me curious is why the XYZ coordinate should subtract its minimum value. I tried not to subtract the minimum value before retraining, and the code operation reported an error. I wonder why the minimum should be subtracted?

@bukeyan4318 Because the input data will be split into multi-blocks, you can refer to room2blocks.

@dlinzhao Thank you very much for your patient answer. Thank you sincerely!


SyntaxError: invalid syntax (pyintaller.py, line 347)

when I try to run the script on the latest version of pythonista, it gives me the following error:
SyntaxError: invalid syntax (pyintaller.py, line 347)

it's in the line with the following code:
self.github_installer.get_github_user_re

any ideas what I might be doing wrong?
Thanks,
David

It does not look like the complete line of code. The complete Line 347 is as follows:
            elif self.github_installer.get_github_user_repo(btn.tool_url):

Did you just download the file? Maybe the file is not completely downloaded?

Yes! that was the problem. I guess the file got cutoff during download and I didn't realize it. I'm in business now, thanks!

David


How to catch / emit an event?

Hello,
Wondering how an event should / can be emitted from the Controller. $client->getEmitter()? Thanks!
Regards,
Jessie

I've been trying to catch the jira:issue_updated event from within but seem to be unable to. How should I go about? Thanks!
AP.events.onAny(function() {
console.log("onAny event");
});
AP.events.onAnyPublic(function() {
console.log("onAnyPublic event");
});


Migration to Swift 3

This branch will fail the CI pipeline until it is not done.
Swift 3 Migration should be completed before we can get a valid CI result

 Migrar Clappr para Swift 3


proposal: /commands (set-more-info-link in particular)

I recently wrote a Python script, set-more-info-link.py (https://github.com/tldr-pages/tldr/pull/5654) that takes a page in the format platform/page.md and a link, and adds/updates the link in the page and all translations using a map of the approprate labels.
I was thinking just now that it might be nice to be able to, in a PR, comment something like
@tldr-bot /set-more-info-link common/page.md "https://example.com"

whereupon the bot (@tldr-bot) ran set-more-info-link.py with those arguments, committed the changes to the PR, maybe the message could be like
page: update more information link

If this were approved, I'd be happy to work on it.

Cool, that sounds sensible - just wanted to check some edge cases there. I can definitely see the appeal of adding this to the tldr-bot. I would suggest a check that if the GitHub actions have failed on the target PR, then it does not attempt to make a change. If the GitHub actions are in progress, it reschedules the check for say 5 minutes time, but that might be complex to program.


imageCrop 'auto' parameter stopped working

I have an images in a content type that are cropped to 300px tall. It used to work with the below syntax but is now showing up as a broken link. The google content URL reports a 500 error. http://www.mindcrit.com/blog/ is where this is happening. Works fine if I supply two numbers for parameters.
Sample Syntax:
<img class="image featured" src="{% if post.cover %}{{post.cover|imageCrop('auto',300)}}{% else %}{% endif %}" alt="Cover Image for: {{post.name}}" />

Hmm. This was never in our docs and no code has changed around images for a few months. What do you expect "auto" to do? A crop is a defined size.

Hmm. I'll run some tests on this over the weekend. None of the image code has changed in a bit though.

Put in a quick fix for this, googles backend stopped accepting a null parameter for one of the two parameters, so im passing 0 instead (which seems to evaluate to being a no-op)


Support for Unit-based Database Switching

I would like to inquire whether the project currently supports unit-based database switching.

We did this in our live control plane by swith vip.


LSP: Unused suppression comment warning disappears after first edit

Flow version: v0.117
Expected behavior
Given the code:
// @flow

// $FlowFixMe
const lol = 1 + 1;

...line 3 should have an "unused suppression comment" warning because there is no error on the next line.
Actual behavior
The warning shows up when the Flow server first starts up, but immediately disappears after the user edits and saves the file. It never reappears.
More info at the GItHub project below, which contains a tiny project w/ .flowconfig that reproduces the bug.

Link to Try-Flow or Github repo: https://github.com/jvilk-stripe/flow-unused-suppression-comment-bug

The bug seems to be present as early as v0.111.0. Earlier versions (like v0.110) do not have the bug.

Still exists in v0.138.0

I've gotten around this by always just writing my suppression codes as
// $FlowExpectedError[]

Which makes flow ask me to fill in my suppression code.
Though to get around this I have raised a PR to get around with eslint, though waiting for it to get merged
https://github.com/gajus/eslint-plugin-flowtype/pull/489


Use Github Actions

Closes #64
Closes #63
This pr switches the ci to github actions.
It uses the github workflow provided by hashicorp.
I have created a release on my fork using this code https://github.com/floh96/packer-plugin-vagrant-s3/releases
This pr needs some prerequisites before merging:

the repository musst be renamed to packer-plugin-vagrant-s3
a gpg key for signing the releases musst be added
therefor 2 repository secrets musst be created
GPG_PRIVATE_KEY and PASSPHRASE

After merging a new release can be published by pushing the following tag v1.6.0

Looks good!

Any updates here?

@rsutton1 see https://github.com/lmars/packer-post-processor-vagrant-s3/issues/64#issuecomment-964121012 the ci setup is working, unfortunately the post-processor was not  working for me and I wasn't able to figure out what the problem is.
I won't be able to spend time finishing this also the chance that it gets merged upstream is low, the repo seems to be dead.
You could try using https://github.com/floh96/packer-plugin-vagrant-s3/releases/tag/v1.5.2 maybe you can figure out what the problem is.

@floh96 Thanks for the quick response. When I put this in my Packer file and run packer init . it works as expected:
packer {
  required_plugins {
    vagrant-s3 = {
      version = ">= 1.5.2"
      source  = "github.com/floh96/vagrant-s3"
    }
  }
}

Thanks!

@rsutton1 thanks for validating that it is working don't know what was the problem for me two years ago...
I have created a pr upstream maybe it will get merged and will close this pr.


Stop MarkDown treating ASCII art of tree as a list.

Simply fence the diagram with ``` to stop it turning into a list...

thanks Warren! This however breaks the prettiness in Markdeep,

Will see what I can do to keep both worlds happy.


Allow default values to be defined for probes

What this PR does / why we need it?:

Operators can provide default values for probes that are used if an
empty probe is configured or if the probe does not define a probe
handler.

Does this PR introduce a user-facing change?

[ ] User guide
[ ] CHANGELOG.md

Which issue(s) this PR fixes:
N/A

Related to https://github.com/wasdev/websphere-liberty-operator-certification/issues/46


cis bug fixes

addresses: https://github.com/rancher/rancher/issues/25010

How does this interact with scheduled scans? The actual test run needs to fail in a way that clearly states malformed json in that config map is the cause.
I don't really like parsing and retrieving a configmap in a downstream cluster as part of an API call. I'd rather just see the test fail in a clear and concise way.

@cjellick updated to remove the fix for https://github.com/rancher/rancher/issues/25010


Add episodic mean FOV to aind-ophys-utils

10/27/2023

Adding this to priorities and creating issue on on aind-ophys-utils

For QC purposes to look at z-drift or other changes over time
already have code for this in BOQC, can port over to aind-ophys-utils (in video tools module?)

Not done yet. Multiple capsule might need slightly different parameters so this suggests that it could live in a separate layer.

Arielle to check if parameters will be different across capsule.


Child theme php error

Hello Basti, thanks a lot for this great theme.
I have a question regarding child theme, once installed main one and child, i got this strange error:
Warning: filemtime(): stat failed for /home/mhd-01/sitename/htdocs/wp-content/themes/bootscore-child-main/css/main.css in /home/mhd-01/sitename/htdocs/wp-content/themes/bootscore-child-main/functions.php on line 11.
I have checked twice documentation available on project website, but got no luck to find an answer.
Since im new in all that web stuff, i know basic theme structure, functions etc. but never worked with child themes.
Thanks for your further answer, and keep going with this beautiful dev.

Transferred this issue to main-theme, because both has nothing to do with child-theme.
https://www.phrizm.com
I tested the site in different browsers and works fine everywhere, even when resizing the window. You use WP Fastest Cache plugin. So, it's possible that you see something different when you are logged in as an admin. Disable plugin for testing and make a short video screenshot that shows the error.
https://www.northwestalps.com
This site shows a fatal error in wp-blog-header.php now. There is something completely wrong on your site. If you haven't touched the theme or child-theme's code, then it's a plugin.

If you have still access to the backend, go to plugin page and disable all plugins. Then enable step by step each plugin again until you have found it.
If backend is crashed as well, log in via ftp and rename all plugin folders to disable them. Then rename them step by step to origin name.

Basti,
have requested a purge by my hosting.
They deleted all existing files. I think it was something to deal with previously installed theme, that actually create some hidden Type of files as hosting said.
Im really sorry for your time spent with me, but you were right about hosting issue.
Ok! Since things works im gonna destroy it by my own hands now xD.
Thanks a lot for your kind support.

You‘re welcome, we‘re here to help😉


Is it possible to prepare a unity-package of this toolkit?

Great toolkit!
But I hope to import this toolkit to my project more easily.
Is it possible to prepare a unity-package of this toolkit?
Double-clicking a unity-package file, UnityEditor import this package automatically.
Unity Manual - Exporting Packages
https://docs.unity3d.com/Manual/HOWTO-exportpackage.html

Yes. Please follow the steps in GettingStarted.md.
Get Outlook for iOShttps://aka.ms/o0ukef
On Sat, Aug 13, 2016 at 3:13 AM -0700, "matatabi-ux" <notifications<EMAIL_ADDRESS>wrote:
Great toolkit!
But I hope to import this toolkit to my project more easily.
Is it possible to prepare a unity-package of this toolkit?
Double-clicking a unity-package file, UnityEditor import this package automatically.
Unity Manual - Exporting Packages
https://docs.unity3d.com/Manual/HOWTO-exportpackage.html

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/HoloToolkit-Unity/issues/171, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMqpApflmEFmarpZ87yN0WjvpEWq0zNwks5qfZjJgaJpZM4Jjpkj.

You can also download the latest up-to-date package from https://riverar.github.io/HoloToolkit-Unity-Builds/ (my personal little project, no guarantees right now)

@matatabi-ux did this help answer your question? Is it ok to close this issue?


Added protobuf versioning to dependencies

The current CIs fail due to some protobuf bug. See latest build here.
Note that this impacts all CIs, not just the scheduled one, and people might observe the same issue installing optax on their local hardware.
This is fixed by restricting protobuf version to <=3.20, which was also suggested as a fix in the error log below.
ERROR mnist_test.py - TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

This seem to have been fixed in another commit. Hence, this PR is no longer needed. Closing for now.


Make a discord bot for the V-Sekai community

Front door discord bot. The sole responsibility of this bot will be to have or reference a specific message id and grant the "Member" role to all members who click a reaction.

https://github.com/V-Sekai/vsona-discord-bot
We need to review the code and set up a runner in kubernetes

This is pending review from Saracen and I.

Posted as 66790b50086e7c2e380d8fa19186da5c24aebcb6. How to deployon kubernetes and approval can be track in another issue.


Arc 205 ROS1 Cleanup

PR Details
Description
This PR renames the j2735_msgs and j322_msgs packages after these packages were merged into j2735_v2x_msgs and j3224_v2x_msgs in carma-msgs PR #243.

Related GitHub Issue

NA
Related Jira Key
ARC-205
Motivation and Context
Old package names are outdated and no longer exist.
How Has This Been Tested?
Untested - Marked as draft
Types of changes

[x] Defect fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that cause existing functionality to change)

Checklist:

[ ] I have added any new packages to the sonar-scanner.properties file
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Please take a look at the docker build, not sure why it is failing


Hello from es2015-i18n-tag

Hey there,
I'm the author of es2015-i18n-tag. I just stumbled across your implementation of a translation library based on ES6 template tags.
Just wanted to say that I'm happy this idea gets some more attention.
Especially your progress on pluralization looks interesting. How about joining forces to build a more feature rich implementation of an i18n template tag?
By the way, I like the name of your lib. It sounds much better than es2015-i18n-tag :)
Best regards
Steffen

Hey) Happy to hear that! Looked through your lib and seems like our solutions have a lot in common. Do you suggest to start a new project and to merge functionalities?

It could be worth to take a look at the pros and cons of both libs and build a new implementation based on these observations. But I'm not sure if I am able to invest the required time right now. Another approach could be to share features across both libraries. i18n-tag-schema for example could be a useful extension for c-3po.
My main focus is to bring the whole concept of template tag based translations forward. So If there are parts where a cooperation of both projects can bring any progress, I'm open to talk :)

+1 for i18n-tag-schema.

@smercadomx Thanks, for your feedback! Can you please provide some generic workflow with c-3po and i18n-tag-schema, and how it can be helpful to you?

seems like 2 projects are about the usage of template tags but with different workflows. c-3po is all about integration with gettextworkflow. For now, I can't see how i18n-tag-schema will help with this. Think we can close this issue for now. Feel free to create other issues with propositions.


Add some integration tests

Just adding a integration test directory here.  I only added two test cases but I am sure that there will be more integration use cases that we will want to add in the future.

sorry about that, just wanted to correct a small issue with .gitignore before this was merged

Thanks @mfpiccolo and @alicemaz! I was going to ask about the Cargo.lock file, but forgot to; glad you spotted it!
Merging. :+1: :heart: :gem:


Easy-mode sdist-to-output

DESCRIPTION:
When an sdist contains a fooo/__main__.py file it enables after installation execution of python -m fooo. It would be nice if Nuitka given such an sdist produced the reasonably-expected output with no other configuration required.
EXAMPLE:
python -m nuitka --output=2020-08-21 --standalone --show-progress --show-scons --python-flag=no_site representative-0.0.20200813144015583612.tar.gz given this sdist could produce 2020-08-21/__main__.dist/__main__ that when executed displayed the same behavior as would be displayed had the sdist been installed in a Python environment and executed:
Embedded text is 47 long!
Instantiated an SSHClient: <something that looks like an object instance at a memory location>

.

For packages, no standalone is available and makes no sense. Simply compile a runner that does the import of the main, and be good with it. I believe, this could also be a __main__.py, can it not be?

I'm not sure that I'm following - are you suggesting that given an sdist like this one that there's something better to do with it than use Nuitka to produce a standalone directory? ... or are you saying that sdists like that one oughtn't exist, and that when one has a tool that one is distributing that way that one ought distribute it some other way?

(Regarding the needs_example label: the sdist is called "representative" because it really is representative of some other code that I'm writing that unfortunately I am not able to share.)

Binaries and not modules. I do not think I want to spare the need to create a runner for a module to use it as a program.


Design & implement multi-experiment support

Background
Old-Prof (hpcprof) allows for multiple measurements directories to be given as arguments, generating a single database that presents data from each measurements separately (as separate metric columns). This allows for fine-grained comparisons between multiple runs of an application that would be impossible otherwise. In contrast, currently Prof2 does not do any of this, it instead takes whatever arguments are given to it and considers them all one experiment.
There are two hiccups with the multi-experiment use case, one being how to describe to the user what is going on (I recall a user who ran hpcprof m/*.hpcrun and wondered why it ran so slow and gave an unreadable database). The other is that it is fully possible to run hpcrun -o m and forget to wipe m between runs, irrevocably mixing two runs into one database (I've done this myself on multiple occasions, this is also basically the case for #409).
An ideal solution would allow the analysis phase to figure out "what you mean" rather than "what you did", in effect grouping .hpcrun files by properties identified during the execution rather than by arguments to Prof. This set of properties may include program paths and environment variables such as job/step ids. Once these are grouped and output accordingly the Viewer may present multiple experiments with a clear interface (I'm currently envisioning a short list marked up with costs, more-or-less similar to what KCachegrind gives for the same use case).
Action items

[ ] Create a series of multi-experiment use cases and test cases, and decide on the "right thing to do" in each case.
[ ] Implement support in Prof2 for processing more than one experiment at a time.
[ ] Implement support in Prof2 for grouping profiles based on inline information.
[ ] (If needed,) expand the database format to mark the grouping of profiles into experiments.
[ ] (If desired,) extend the Viewer to present multiple experiments in a clear and useful presentation.

This repository has moved to GitLab, please continue this issue there.


Doesn't handle changes in device orientation well

Thank you very much for this example! I'm going to try to adapt it to my project. However, I noticed that changes in device orientation are not handled properly. You can check this by scrolling to the last page and the changing from portrait to landscape. This scrolls to "somewhere in the middle". Keeping the layout intact somehow seems to work "a bit" for even indices, but not for odd indices.

Hi Thorsten, I'm glad to hear that it helps you!
I'm aware of this problem, but unfortunately, I can't fix it at the moment
If you do find a solution, I would very much appreciate a pull request!
Thanks, and I'm here for any question :)
בתאריך יום ג׳, 1 בספט׳ 2020 ב-14:37 מאת Thorsten Dittmar <
<EMAIL_ADDRESS>
Thank you very much for this example! I'm going to try to adapt it to my
project. However, I noticed that changes in device orientation are not
handled properly. You can check this by scrolling to the last page and the
changing from portrait to landscape. This scrolls to "somewhere in the
middle". Keeping the layout intact somehow seems to work "a bit" for even
indices, but not for odd indices.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/hershalle/CollectionViewWithPaging-simplerExample/issues/2,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AASXYIMZ4R3YD5BC5CMAEQDSDTMIPANCNFSM4QRTTAEQ
.


Update sample to use Azure SDK for getting token?

Hi Guys,
The article is not using azure SDK to get the AD token.
Could you please make another sample, or, update the existing one, to show how this can be done using Azure SDK, I believe it must be much shorter and simpler using Azure SDK.
Please NOTE: Currently, in the documentation, there is no "official" sample of how to connect to the MySql using managed identity and Azure SDK on C#.
Thank you,

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

ID: f9784fd1-8949-dac6-4c79-26dfb335ffb3
Version Independent ID: 6137488f-0b66-0854-e882-e2f629f6e973
Content: Connect with Managed Identity - Azure Database for MySQL
Content Source: articles/mysql/howto-connect-with-managed-identity.md
Service: mysql
GitHub Login: @sunilagarwal
Microsoft Alias: sunila

@yahorsi Thank you for the feedback. We are actively investigating and will get back to you soon.

@yahorsi Could you please check the same document in below section:
Connecting using Managed Identity in C#

It does not use Azure SDK to obtain AD token

@yahorsi Please try the code mentioned in below article. It is using AzureServiceTokenProvider class to obtain access token:
How to connect to Azure Database for MySQL using Managed Identity of Function App

I saw this sample, and this is the only sample that using AzureServiceTokenProvider.
What confuses me is that this is not official documentation but a blog article.

@yahorsi Thanks for the reply and your valuable inputs. Yes you are right this is not an official documentation. Actually the docs mainly contain of very basic scenarios of implementation and then the other implementations are open to explore for the community. Microsoft Employees and Community members keep on contributing to Git repository or different blogs and this is one among those blobs.
Again if you think this is something we need to include in documentation, I can tag the content author on the same. Please let me know.

I would say as this is an officially supported feature it requires official doc and sample as it's done e.g. for Azure SQL. The problem of the blog posts is that in time they become deprecated while official docs are usually updated and kept up to date

@yahorsi Yes sure. This is being assigned to the content author to evaluate and update as appropriate.

@savjani Could you please bring some clarification on the feedback above. Thanks

Adding @dimadhus for this feedback

We sincerely apologize for the delayed response to this issue. I collaborate with the owners of the GitHub Issues related to PostgreSQL to help either get them resolved or determine how to update our documentation.
As such, is this GitHub Issue still a concern for you? If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion, and we will reopen the issue.
Due to the age of this issue, we will continue to close this issue.
Please visit https://docs.microsoft.com/en-us/answers/support/ for more information on asking questions about the product or service.
Thank you.
#please-close


malloc error and crash

julia> using MiniFB

julia> include(joinpath(pathof(MiniFB),"..","..","example","Plasma.jl"))
Window created using X11 API

# closed the window with esc after a couple seconds

julia> macro m()
       end
malloc(): mismatching next->prev_size (unsorted)

signal (6): Aborted
in expression starting at none:0

I ran into this and had to pkill julia:
julia> plasma()
Window created using X11 API

julia> malloc(): mismatching next->prev_size (unsorted)

signal (6): Aborted
in expression starting at none:0

^C

^C^C^C^C
signal (15): Terminated
in expression starting at none:0
__lll_lock_wait_private at /usr/lib/libc.so.6 (unknown line)
__libc_calloc at /usr/lib/libc.so.6 (unknown line)
jl_getFunctionInfo at /buildworker/worker/package_linux64/build/src/debuginfo.cpp:1230
jl_print_native_codeloc at /buildworker/worker/package_linux64/build/src/stackwalk.c:652
jl_critical_error at /buildworker/worker/package_linux64/build/src/signal-handling.c:239 [inlined]
sigdie_handler at /buildworker/worker/package_linux64/build/src/signals-unix.c:204
_IO_funlockfile at /usr/lib/libpthread.so.0 (unknown line)
gsignal at /usr/lib/libc.so.6 (unknown line)
abort at /usr/lib/libc.so.6 (unknown line)
__libc_message at /usr/lib/libc.so.6 (unknown line)
malloc_printerr at /usr/lib/libc.so.6 (unknown line)
_int_malloc at /usr/lib/libc.so.6 (unknown line)
__libc_malloc at /usr/lib/libc.so.6 (unknown line)
operator new at /src/gcc-7.3.0/libstdc++-v3/libsupc++/new_op.cc:50
allocate at /usr/local/include/c++/7.3.0/ext/new_allocator.h:111 [inlined]
allocate at /usr/local/include/c++/7.3.0/bits/alloc_traits.h:436 [inlined]
_M_get_node at /usr/local/include/c++/7.3.0/bits/stl_tree.h:588 [inlined]
_M_create_node<int const&> at /usr/local/include/c++/7.3.0/bits/stl_tree.h:642 [inlined]
operator()<int const&> at /usr/local/include/c++/7.3.0/bits/stl_tree.h:556 [inlined]
_M_insert_<int const&, std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>, std::allocator<int> >::_Alloc_node> at /usr/local/include/c++/7.3.0/bits/stl_tree.h:1753 [inlined]
_M_insert_unique<int const&> at /usr/local/include/c++/7.3.0/bits/stl_tree.h:2096
insert at /usr/local/include/c++/7.3.0/bits/stl_set.h:501 [inlined]
emit_function at /buildworker/worker/package_linux64/build/src/codegen.cpp:5848
jl_emit_code at /buildworker/worker/package_linux64/build/src/codegen.cpp:6431
jl_emit_codeinst at /buildworker/worker/package_linux64/build/src/codegen.cpp:6465
_jl_compile_codeinst at /buildworker/worker/package_linux64/build/src/jitlayers.cpp:97
jl_generate_fptr at /buildworker/worker/package_linux64/build/src/jitlayers.cpp:302
jl_compile_method_internal at /buildworker/worker/package_linux64/build/src/gf.c:1964
jl_compile_method_internal at /buildworker/worker/package_linux64/build/src/gf.c:1919 [inlined]
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2224 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
prompt! at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/REPL/src/LineEdit.jl:2447
run_interface at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/REPL/src/LineEdit.jl:2350
jfptr_run_interface_70362.clone_1 at /home/miguel/bin/julia-1.5.1/lib/julia/sys.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
run_frontend at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:1144
#38 at ./task.jl:356
jfptr_YY.38_71508.clone_1 at /home/miguel/bin/julia-1.5.1/lib/julia/sys.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1690 [inlined]
start_task at /buildworker/worker/package_linux64/build/src/task.c:707
unknown function (ip: (nil))
unknown function (ip: (nil))
Allocations: 11500038 (Pool: 11495503; Big: 4535); GC: 12

I might need some help debugging this. I can't replicate this on mac or windows, and I haven't been able to access a linux machine with a GUI terminal (and attempts to set up VNC on a few machines that I do have access to haven't yet suceeded 😞 ) . Might help to create an rr trace?

I'm having trouble running a trace. It seems that Julia crashes so bad that the trace is not created before Julia terminates. I'm getting this stacktrace. Notes: I got the malloc() error immediately after hitting macro m()<enter>. Then Julia was stuck after the signal (6). The stacktrace appeared after I hit Ctrl-C. Any suggestion on how to get a trace under these conditions? I'll be happy to run any tests you need.

$ julia --bug-report=rr
[ Info: Loading BugReporting package...
rr: Saving execution to trace directory `/home/miguel/.julia/artifacts/jl_x1ZhGZ/julia-0'.
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.1 (2020-08-25)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using MiniFB

julia> include(joinpath(pathof(MiniFB),"..","..","example","Plasma.jl"))
Window created using X11 API

julia> macro m()malloc(): mismatching next->prev_size (unsorted)

signal (6): Aborted
in expression starting at none:0

^CERROR: InterruptException:
Stacktrace:
 [1] poptask(::Base.InvasiveLinkedListSynchronized{Task}) at ./task.jl:704
 [2] wait at ./task.jl:712 [inlined]
 [3] wait(::Base.GenericCondition{Base.Threads.SpinLock}) at ./condition.jl:106
 [4] wait(::Base.Process) at ./process.jl:622
 [5] success at ./process.jl:483 [inlined]
 [6] run(::Cmd; wait::Bool) at ./process.jl:440
 [7] run at ./process.jl:438 [inlined]
 [8] (::BugReporting.var"#4#5"{String,Tuple{Cmd,Array{Any,1}},Array{SubString{String},1}})(::String) at /home/miguel/.julia/packages/BugReporting/DYZaI/src/BugReporting.jl:84
 [9] #2 at /home/miguel/.julia/packages/JLLWrappers/m1BKg/src/runtime.jl:47 [inlined]
 [10] withenv(::JLLWrappers.var"#2#3"{BugReporting.var"#4#5"{String,Tuple{Cmd,Array{Any,1}},Array{SubString{String},1}},String}, ::Pair{String,String}, ::Vararg{Pair{String,String},N} where N) at ./env.jl:161
 [11] withenv_executable_wrapper(::BugReporting.var"#4#5"{String,Tuple{Cmd,Array{Any,1}},Array{SubString{String},1}}, ::String, ::String, ::String, ::Bool, ::Bool) at /home/miguel/.julia/packages/JLLWrappers/m1BKg/src/runtime.jl:46
 [12] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [13] invokelatest at ./essentials.jl:709 [inlined]
 [14] #rr#7 at /home/miguel/.julia/packages/JLLWrappers/m1BKg/src/products/executable_generators.jl:7 [inlined]
 [15] rr at /home/miguel/.julia/packages/JLLWrappers/m1BKg/src/products/executable_generators.jl:7 [inlined]
 [16] rr_record(::Cmd, ::Vararg{Any,N} where N; trace_dir::String) at /home/miguel/.julia/packages/BugReporting/DYZaI/src/BugReporting.jl:74
 [17] (::BugReporting.var"#15#16"{Array{Any,1},Cmd})(::String) at /home/miguel/.julia/packages/BugReporting/DYZaI/src/BugReporting.jl:130
 [18] create_artifact(::BugReporting.var"#15#16"{Array{Any,1},Cmd}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Artifacts.jl:214
 [19] make_interactive_report(::String, ::Array{Any,1}) at /home/miguel/.julia/packages/BugReporting/DYZaI/src/BugReporting.jl:129
 [20] make_interactive_report(::String) at /home/miguel/.julia/packages/BugReporting/DYZaI/src/BugReporting.jl:123
 [21] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [22] invokelatest at ./essentials.jl:709 [inlined]
 [23] report_bug(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/InteractiveUtils/src/InteractiveUtils.jl:379
 [24] exec_options(::Base.JLOptions) at ./client.jl:244
 [25] _start() at ./client.jl:506
0[~] $


IndexError on groupby agg in dask engine

Describe the problem
An IndexError gets thrown when running df.groupby("col3").count()
Source code / logs
import modin.pandas as pd

modin_df = pd.read_csv(s3_path, parse_dates=["tpep_pickup_datetime", "tpep_dropoff_datetime"])
modin_df.groupby(by="passenger_count").count()

Closed via #808


Does this library work with the Cognito Identity Provider?

I was exploring alternative options to using Amplify to get AuthN and AuthZ to work on an Angular app using Cognito as an identity provider.
When I tried, it looks like, it was successful on discovering both ".well-known/openid-configuration" and ".well-known/jwks.json" but then run into the below exception:
ERROR Error: Uncaught (in promise): OAuthErrorEvent:
  {"type":"code_error","reason":{},"params": {"error_description":"invalid_scope","error":"invalid_request"}}

Update:
I was able to bypass the "invalid_scope" error by removing "offline_access" scope from the config file.
After this, my Angular app is redirecting me to the Cognito Login UI to sign-up/sign-in then getting redirected back to my Angular app with valid "Code" and "status" values in the url query.
Current Issue:
The issue, I'm having now is to get the access_token from the oauth2/token end-point.
I'm getting { error: "invalid_client" } back from that end-point.
Note: I can verify angular-oauth2-oidc is passing all the required query parameters and I even added two custom params.
Did anyone try using this package with Cognito before?
If yes, could you please share any insights?
Thanks.

It is possible to get it working with Cognito, I had to modify a fair bit of configuration, I don't remember how I bypassed that particular error, in fact I am trying to setup a second app and running into that error again.  I will update when I figure it out.

Hi @blathersbugs.
Thanks for the response. I saw the issue that you are talking about with the ClientSecret, that issue happens when you try to login but the issue I have now is not happening during login flow. It happens after I try to exchange the login code with access_token.
Note: I didn't generate client secret when I was creating the AppClient on AWS Cognito.
I wonder what were the other configurations that you had to change?

Hi @guledfarah off the top of my head I had to set strictDocumentDiscoveryValidation to false and I had to write custom code to revoke the refresh token when logging off.  I probably had to make some other changes too, but that is what I can remember right now.

@blathersbugs wondering if you're at liberty to share the code that you had to write to revoke the refresh token? The default call to logout() in this library sending both the access_token and refresh_tokens doesn't work out of the box.


Doesn't reconnect after internet is disconnected

The SDK does not reconnect after the internet connection is disconnected.

Any plans to add this functionality? Forcing players to restart their game in order to re-connect to MixPlay is a pretty bad user experience. :/


Minor issue: dashd not fully synced gives wrong status of a masternode versus a "you aren't synced yet" error

So, I have a test masternode and a test collateralized wallet. I leave the wallet (dashd -- not dash-qt by the way in this case), off (stopped) most of the time.
During testing, I updated both the wallet and masternode code. After updating I started up the wallet and did a "dash-cli masternode list full |grep " command.
The wallet was not fully synced, and it stated "NEW_START REQUIRED" -- I ran the same command on the tMN itself, and it stated "ENABLED" .... I waited for the wallet to finish syncing and it also then said "ENABLED".
Shouldn't dashd know that it is not synced yet? And even then, why would it have this bogus state delivered with "list full"?
Anyway... this is a minor issue in the grand scheme of things since there is a lot of messaging that is easily confusing if full context is not maintained. But I felt I should file it.

It can take ~15-20 minutes or more to fully sync, and the wallet's cache files (*.dat) files can get stale. You should be able to stop the Qt wallet, remove mncache.dat and re-start it, wait for it to sync and it should be updated again. But every time you start the Qt wallet, it will take several minutes to sync.
It doesn't just trust the listed masternodes (e.g. your "test masternode"), but it also has to get a consensus from the network. Does that help / make sense?


enable codecov for mongodb

Current coverage is 92.94% (diff: 100%)

Merging #978 into master will decrease coverage by 3.22%

@@             master       #978   diff @@
==========================================
  Files            35         39     +4
  Lines          1827       1957   +130
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1757       1819    +62
- Misses           70        138    +68
  Partials          0          0

Powered by Codecov. Last update 1d7a8e3...01efb9b

I am not sure how codecov works because right now we run codecov 3 times. Two for rethinkdb (python3.4, python3.5) and once for mongodb.
When running the tests for rethinkdb, no tests are ran for mongodb so codecov should say that mongodb lines are misses and vice-versa.
I ran the locally coverage with mongodb and I do get 100% coverave for bigchaindb/backend/mongodb/schema.py will codecov in this pr only reports 34%


Unable to compile

When I clone this project on my machine and run cabal build all I see the following compilation error:
src/Sensei/Server/UI.hs:14:11: error:
    • Exception when trying to run compile-time code:
        /Users/pascal/git/github.com/abailly/sensei/ui/dist: getDirectoryContents:openDirStream: does not exist (No such file or directory)
      Code: makeRelativeToProject "ui/dist" >>= embedDir
    • In the untyped splice:
        $(makeRelativeToProject "ui/dist" >>= embedDir)
   |
14 | uiFiles = $(makeRelativeToProject "ui/dist" >>= embedDir)
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: cabal: Failed to build sensei-0.43.3 (which is required by
test:sensei-test from sensei-0.43.3 and exe:sensei-exe from sensei-0.43.3).

I'm running it with the following setup:

Mac m2 chip with MacOs 13.4
cabal-install version <IP_ADDRESS>
The Glorious Glasgow Haskell Compilation System, version 8.10.7

Thanks for the report. As a quick fix, you can do npm i && npm run build in the ui/ directory to build the UI that's embedded in the server.

FYI, I also tried other version of GHC.
GHC 9.6.1:
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: sensei-0.43.3 (user goal)
[__1] trying: wai-app-static-<IP_ADDRESS> (dependency of sensei)
[__2] trying: warp-3.3.27 (dependency of wai-app-static)
[__3] trying: recv-0.1.0 (dependency of warp)
[__4] trying: network-<IP_ADDRESS> (dependency of warp +/-network-bytestring)
[__5] trying: transformers-<IP_ADDRESS>/installed-<IP_ADDRESS> (dependency of
wai-app-static)
[__6] next goal: servant-server (dependency of sensei)
[__6] rejecting: servant-server-0.19.2 (conflict: transformers =>
base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.9 && <4.18)
[__6] rejecting: servant-server-0.19.1 (conflict: transformers =>
base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.9 && <4.17)
[__6] rejecting: servant-server-0.19, servant-server-0.18.3 (conflict:
transformers => base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.9
&& <4.16)
[__6] rejecting: servant-server-0.18.2, servant-server-0.18.1,
servant-server-0.18 (conflict: transformers =>
base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.9 && <4.15)
[__6] rejecting: servant-server-0.17, servant-server-0.16.2 (conflict:
transformers => base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.9
&& <4.14)
[__6] rejecting: servant-server-0.16.1, servant-server-0.16,
servant-server-0.15 (conflict: transformers =>
base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.9 && <4.13)
[__6] rejecting: servant-server-0.14.1 (conflict: transformers =>
base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.7 && <4.13)
[__6] rejecting: servant-server-0.14, servant-server-<IP_ADDRESS>,
servant-server-0.13 (conflict: transformers =>
base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.7 && <4.12)
[__6] rejecting: servant-server-0.12, servant-server-<IP_ADDRESS>,
servant-server-0.11 (conflict: transformers =>
base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.7 && <4.11)
[__6] rejecting: servant-server-0.10, servant-server-<IP_ADDRESS>,
servant-server-0.9.1, servant-server-<IP_ADDRESS>, servant-server-0.9,
servant-server-0.8.1, servant-server-0.8 (conflict: transformers =>
base==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => base>=4.7 && <4.10)
[__6] rejecting: servant-server-0.7.1 (conflict: network==<IP_ADDRESS>,
servant-server => network>=2.6 && <2.7)
[__6] skipping: servant-server-0.7, servant-server-0.6.1, servant-server-0.6,
servant-server-0.5 (has the same characteristics that caused the previous
version to fail: excludes 'network' version <IP_ADDRESS>)
[__6] rejecting: servant-server-<IP_ADDRESS> (conflict:
transformers==<IP_ADDRESS>/installed-<IP_ADDRESS>, servant-server => transformers>=0.3
&& <0.5)
[__6] skipping: servant-server-<IP_ADDRESS>, servant-server-<IP_ADDRESS>,
servant-server-<IP_ADDRESS>, servant-server-<IP_ADDRESS>, servant-server-<IP_ADDRESS>,
servant-server-<IP_ADDRESS>, servant-server-0.4.4, servant-server-<IP_ADDRESS>,
servant-server-0.4.3, servant-server-0.4.2, servant-server-0.4.1,
servant-server-0.4.0 (has the same characteristics that caused the previous
version to fail: excludes 'transformers' version <IP_ADDRESS>)
[__6] rejecting: servant-server-0.2.4 (conflict: wai-app-static==<IP_ADDRESS>,
servant-server => wai-app-static>=<IP_ADDRESS> && <3.1)
[__6] skipping: servant-server-0.2.3, servant-server-0.2.2,
servant-server-0.2.1 (has the same characteristics that caused the previous
version to fail: excludes 'wai-app-static' version <IP_ADDRESS>)
[__6] fail (backjumping, conflict set: network, sensei, servant-server,
transformers, wai-app-static)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, network, comonad, warp,
semigroupoids, wai-app-static, servant-server, either, semigroupoids:comonad,
sensei, transformers, recv
Try running with --minimize-conflict-set to improve the error message.

GHC 9.0.2:
[31 of 84] Compiling Basement.Types.OffsetSize ( Basement/Types/OffsetSize.hs, dist/build/Basement/Types/OffsetSize.o, dist/build/Basement/Types/OffsetSize.dyn_o )
[32 of 84] Compiling Basement.Types.Ptr ( Basement/Types/Ptr.hs, dist/build/Basement/Types/Ptr.o, dist/build/Basement/Types/Ptr.dyn_o )
[33 of 84] Compiling Basement.Terminal.Size ( dist/build/Basement/Terminal/Size.hs, dist/build/Basement/Terminal/Size.o, dist/build/Basement/Terminal/Size.dyn_o )

In file included from /var/folders/05/s6wsyw5j6nl3rb_npkvk2mvm0000gn/T/ghc29795_0/ghc_429.c:4:0: error:

In file included from /Users/pascal/.ghcup/ghc/9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:0: error:

/Users/pascal/.ghcup/ghc/9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:6:10: error:
     fatal error: 'ffitarget_arm64.h' file not found
  |
6 | #include "ffitarget_arm64.h"
  |          ^
#include "ffitarget_arm64.h"
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)

Failed to build direct-sqlite-2.3.28.
Build log ( /Users/pascal/.cabal/logs/ghc-9.0.2/drct-sqlt-2.3.28-4b854b5b.log
):
Configuring library for direct-sqlite-2.3.28..
Preprocessing library for direct-sqlite-2.3.28..
Building library for direct-sqlite-2.3.28..
[1 of 4] Compiling Database.SQLite3.Bindings.Types ( dist/build/Database/SQLite3/Bindings/Types.hs, dist/build/Database/SQLite3/Bindings/Types.o, dist/build/Database/SQLite3/Bindings/Types.dyn_o )
[2 of 4] Compiling Database.SQLite3.Bindings ( Database/SQLite3/Bindings.hs, dist/build/Database/SQLite3/Bindings.o, dist/build/Database/SQLite3/Bindings.dyn_o )

In file included from /var/folders/05/s6wsyw5j6nl3rb_npkvk2mvm0000gn/T/ghc37559_0/ghc_14.c:4:0: error:

In file included from /Users/pascal/.ghcup/ghc/9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:0: error:

/Users/pascal/.ghcup/ghc/9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:6:10: error:
     fatal error: 'ffitarget_arm64.h' file not found
  |
6 | #include "ffitarget_arm64.h"
  |          ^
#include "ffitarget_arm64.h"
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)

Failed to build hourglass-0.2.12.
Build log ( /Users/pascal/.cabal/logs/ghc-9.0.2/hrglss-0.2.12-87f45d2d.log ):
Configuring library for hourglass-0.2.12..
Preprocessing library for hourglass-0.2.12..
Building library for hourglass-0.2.12..
[ 1 of 17] Compiling Data.Hourglass.Utils ( Data/Hourglass/Utils.hs, dist/build/Data/Hourglass/Utils.o, dist/build/Data/Hourglass/Utils.dyn_o )
[ 2 of 17] Compiling Data.Hourglass.Zone ( Data/Hourglass/Zone.hs, dist/build/Data/Hourglass/Zone.o, dist/build/Data/Hourglass/Zone.dyn_o )
[ 3 of 17] Compiling Time.Types       ( Time/Types.hs, dist/build/Time/Types.o, dist/build/Time/Types.dyn_o )
[ 4 of 17] Compiling Data.Hourglass.Types ( Data/Hourglass/Types.hs, dist/build/Data/Hourglass/Types.o, dist/build/Data/Hourglass/Types.dyn_o )
[ 5 of 17] Compiling Data.Hourglass.Internal.Unix ( Data/Hourglass/Internal/Unix.hs, dist/build/Data/Hourglass/Internal/Unix.o, dist/build/Data/Hourglass/Internal/Unix.dyn_o )

Data/Hourglass/Internal/Unix.hs:24:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
   |
24 | import Control.Applicative
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

In file included from /var/folders/05/s6wsyw5j6nl3rb_npkvk2mvm0000gn/T/ghc43104_0/ghc_55.c:4:0: error:

In file included from /Users/pascal/.ghcup/ghc/9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:0: error:

/Users/pascal/.ghcup/ghc/9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:6:10: error:
     fatal error: 'ffitarget_arm64.h' file not found
  |
6 | #include "ffitarget_arm64.h"
  |          ^
#include "ffitarget_arm64.h"
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)
Error: cabal: Failed to build basement-0.0.16 (which is required by
test:sensei-test from sensei-0.43.3, exe:sensei-exe from sensei-0.43.3 and
others). See the build log above for details.
Failed to build direct-sqlite-2.3.28 (which is required by test:sensei-test
from sensei-0.43.3 and exe:sensei-exe from sensei-0.43.3). See the build log
above for details.
Failed to build hourglass-0.2.12 (which is required by test:sensei-test from
sensei-0.43.3, exe:sensei-exe from sensei-0.43.3 and others). See the build
log above for details.


update dependencies (WIP)

WIP here is because I can't figure out what should I use instead of tap.createConsumer which is missing in node-tap >= 1.0.0. @isaacs is there any alternatives of createConsumer method in node-tap 2.2.x?

Why do concat-stream and falafel need updates?

node-tap just uses tap-parser to parse streams, it doesn't have a separate "consumer" concept any more.

@ljharb actually I'm trying to update tap to 2.1.1 as well but I am still tying to figure out what should I do to update tests for:

array
end-as-callback
exit
fail
nested-sync-noplan-noend
nested
only
timeoutAfter
too_many

I don't work on this for almost a year so I'll better close it

Thanks - this was done by #318 recently anyways.


import and execution order

Hello,
It seems that each import in a .js file is running asynchronously.
For example, when:
import {something} from './1.js'
console.log('inner execution)
import {something} from './2.js
debugger
import {something} from './3.js'

2 is called before 1 and debugger is reached after 3 was executed.
Any idea ? Maybe this is the correct behaviour to let import be asynchronous. I don't know a lot about the spec or maybe I'm wrong.
Thanks in advance for your help.

imports are dependencies. You can define them where in the calling module you like, but they are 'hoisted' to the front. All dependencies are fetched and executed before any of the code in the calling module runs. If you want 1 to execute before 2, you need to make 1 a dependency of 2. Alternatively, make 1 and 2 define functions or classes, and then have your calling module execute the functions:
import {func1} from './1.js'
import {func2} from './2.js'
func1()
func2()

1.js
console.log('1')

2.js
console.log('2')

3.js
import './2.js'
console.log('3')

run.js
import './1.js'
import './2.js'
import './3.js'

Result =
1
2
3
But it should be :
1
2
2
3
Am I missing something ?

imported modules are only executed once when first loaded.

You learn me something. Thank you vert much for your help.


Update to MS Sentinel and other changes

Rename Azure Sentinel to Microsoft Sentinel
Removed the old way of ingesting log
Added a way to verify that the connector works
Updated URL to several GitHub pages

@microsoft-github-policy-service agree

@MSFTTracyP
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

What’s happening? @scanum @MSFTTracyP @JohanFreelancer9

@MSFTTracyP
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

Still nothing?

@MSFTTracyP
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

@MSFTTracyP
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Add imprint

This might help you
https://bit.ly/3yXXzbX
Passcode: d5kp14h
You must have gcc compiler installed


Dynamic Shader Updates from code

This is an example of how code can dynamically change the shaders applied to objects without the user code needing to manually set reload to true.
I'm trying to find a way to fade out the need for a reload bool to make it completely dynamic.

Thanks!

I've been meaning to get around to submitting a PR for dynamic updating for a little while, sorry for the delay. I think this approach is ok, but adds a lot of boiler plate. At base, I don't know if I agree I think forcing the reload for every change. You may want to allow the user some level of control. How would you two feel about reverting the force update for every set aspect of this PR?


Wamv sinks in Rviz despite valid GPS and IMU data

No matter what I do, when I open up Rviz, my wamv slowly descends deeper and deeper into the ocean. The localization example does not help nor does implementing our own Kalman filter. After checking the sensor data, we found that the GPS is reporting an altitude of approximately 1.2m and the IMU is reporting a linear acceleration in the z of approximately 9.8m/s2, both of which make sense. The only area of concern is the fact that both sensors report a covariance of 0.0 across the board (even after adding Gaussian noise to both sensors). Below is a screenshot of our wamv and its LiDAR scans way below the ground plane. We are not sure if this is a bug or something that we are doing wrong. Any help will be appreciated!

I'm closing this issue as I'm unable to reproduce it but feel free to reopen if still persists providing extra information.

@caguero, I think it was an issue with my navsat transform but it's fixed now.

@caguero, I think it was an issue with my navsat transform but it's fixed now.

Good to know :)


feat: allow fine grained configuration of drag-and-drop-plugin

Checklist
Please put "X" in the below checkboxes that apply:

[ ] If committing a change of production code, I have tested it in different browsers (Chrome, Firefox, Safari).
[ ] If committing a new feature, I have first submitted an issue (Please note: you are free to open PRs for non-issued features, but opening an issue increases your chance of a successful PR).
[ ] If committing a new feature, I have also written the appropriate tests for it.
[x] I have tried to build the feature in a way, that it does not cause any breaking changes for others (unless
agreed upon in an issue).

Premium

[x] I'm a Schedule-X premium user

This PR solves the following problem**.
This allows fine grained configuration of the drag and drop plugin. It now allows any value between 1-60 and will default to 15 (the current default) if the value given is outside of the valid range, in which case a warning is printed.
How to test this PR**.
For example:

use init createDragAndDropPlugin with any value (1-60)
drag an event
witness a change in valid time points.

Perhaps the validation of the configuration should also/only be] in the createDragAndDropPlugin?

Hmm, but to be honest I've noticed this with the 15 minute interval too.
Also when dragging, it often doesn't track the mouse cursor very accurately
vertically (especially when grabbing it quickly, there's an offset) which
makes it feel sluggish. I've had a quick look at the logic to try and make
it feel a bit better but every tweak only made things worse haha. Perhaps
if I can fix that, it would solve the issue with consistency too. I'll have
a look tomorrow to see if I can figure something out.
On Fri, 29 Nov 2024, 17:29 Tom Österlund, @.***> wrote:

Tested this with a value of 10, and it doesn't work reliably.
When I built the drag & drop plugin, I initially tried building it this
flexible. I remember running into a couple of problems though that made me
decide to only allow a few different intervals for starters. Not sure
anymore what they were unfortunately, but I'd be open to any solution that
achieves this flexibility in a reliable manner.
https://github.com/user-attachments/assets/6d5de671-f699-4fa1-9c70-8e3227646500
—
Reply to this email directly, view it on GitHub
https://github.com/schedule-x/schedule-x/pull/802#issuecomment-2508117212,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMPYVZIZM5QOE62AG7K5ND2DCI73AVCNFSM6AAAAABSXKY5YKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBYGEYTOMRRGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

You mean you've noticed that it drags 14 minutes instead of 15 when dragging backwards?

After looking at this, it seems the timepoint calculations are causing issues due to fractional numbers.
I need the ability to drag/resize increments smaller than 15minutes without getting drift. I feel like I was close to a solution (use the minutes to calculate increments instead of timepoints), but don't have enough time at this moment to look at this closer at the moment.