I can't run the heroku link provided

Hey, I was going through your project, I tried to visit the heroku link provided, it is just stuck on a preloader which says loading WEB3, accounts and contracts, I hope you can help me out here
Thanks

Hey Hi,
Yep, it must have stuck because smart contracts were deployed on Matic's testnetv3.
And now they deprecated that net, hence this.
Now Moving forward, either you can deploy it locally as given in Instructions
Truffle Migration Local Network
$ truffle migrate
That's All
If you require more assistance, do let me know.
(I have removed the link now)
Thanks

Hey @abhishekvispute, thanks for replying,  I am new to matic and blockchain in general, I was able to generate the mnemonic using metamask but am facing some issues in running truffle develop, I get the following error while running the
truffle develop command
Could not connect to your Ethereum client with the following parameters:
    - host       > <IP_ADDRESS>
    - port       > 7545
    - network_id > 5777
Please check that your Ethereum client:
    - is running
    - is accepting RPC connections (i.e., "--rpc" option is used in geth)
    - is accessible over the network
    - is properly configured in your Truffle configuration file (truffle-config.js)

I hope you can help me sort this out, I know this is an old project of yours, but it would be great if you could help me out, thanks


Add support for sum.dim_IntList and mean.dim

This doesn't support all the craziness like reducing the nested dimension by 1
when reducing at the nested dimension, and being able to reduce before the nested
dimension with lists if you reduce across the nested dimension.
It simply allows users to reduce across the nested dimension or higher.

I'm not sure what version.py does, or why it changes with every commit. Can we fix it to some alpha version or not?


Explore: How to handle snap dependencies

Why it needs to get done
To properly deploy dss we need some other snap dependencies (juju, microk8s, yq etc.).
What needs to get done
Talk with other teams how to properly handle snap dependencies.
When is the task considered done
We know how to handle snap dependencies.

More general information about solving the problem of snapping this solution is discussed in this issue: https://github.com/canonical/data-science-stack/issues/3
There two kinds of dependencies connected with DSS:

Snap dependencies (microk8s, juju, juju-wait, yq). These are needed to deploy juju charms on local machines.
Python requirements. These are connected with DSS python script. (These are not problematic snap will run basically his own python interpreter with separated environment).

Challenges
The biggest challenge we need to solve is how to interact with other snap dependencies from our DSS snap. Because snaps are isolated units. They can run in two confinement levels but none of them allows us to access other snaps from within.
This causes a lot of problems during the maintenance tasks for other related charms. E.g. Installation, removal.
Proposed resolution
We can design our DSS charm to output commands which can be executed on host machine sudo level to adjust other snaps. Example installation workflow:
# install
sudo snap install dss --channel 0.1/stable
dss setup-env | sudo bash -x

This approach requires the host machine to execute the output of command given by dss charm. Similar approach is used in sunbeam snap.
To interact with juju and microk8s from within snap we will move kubeconfig to the DSS snap with juju binary. We will basically install juju inside the snap and connect it to kubernetes microk8s on localhost. Because of confinement issues we need to enable netwrok localhost access for DSS charm. This can be achieved similarly to this.


[BUG] winget source is not correctly detected

Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have tested that this issue has not been fixed in the latest (beta or stable) release.
[X] I have checked the FAQ section for solutions
[X] This issue is about a bug (if it is not, please use the correct template)

Describe your issue
anki winget source is not correctly detected
Steps to reproduce the issue
search for anki
WingetUI Log
not needed

Package Managers Logs
not needed

Relevant information
similar to https://github.com/marticliment/WingetUI/discussions/1480#discussioncomment-7266703
Screenshots and videos
discovery section:

install section:

Please send Package Manager logs after recreating issue

log.txt for the first issue
and for https://github.com/marticliment/WingetUI/discussions/1480#discussioncomment-7267298: log bug2.txt


Fixed autosuggest input with special characters

Checklist
(Check off all the items before submitting)

[x] Build process is done without errors and all tests pass in /lib directory.
[x] Self-reviewed the code prior to submitting.
[x] Meets accessibility standards.
[x] Added/updated documentation to /website as needed.
[x] Added/updated tests as needed.

Description
Special characters were transformed to regular expression so it was giving an error if they were invalid.
Added \ to escape the special characters. For example, if we write * in the input, internally the component will transform the value received to \* so it will be valid.
Added new test.
About the implementation, I have created a regular expression with the special characters that are giving error. Then I have converted it to string and created an array with each character. It is needed to remove the duplicate characters from the array because the function .toString() is literally converting the regular expression in a string without removing the characters /, [ and ] that are used to create de regular expresion (example, const a = /[a-z]/).
Screenshots
Created a new function to transform the value:

Closes #1416

This is great stuff, Aida! 🚀 🚀 🚀


Verify: Xamarin Android secure storage can't delete all tokens

https://github.com/couchbase/couchbase-lite-net/issues/692

LocalUUID is actually publicUUID, it should not be null.


Prevent autoPropertyToField for interface properties (fixes #770)

#770

Thank you for the pull request! We'll be reviewing.


[Feature Request] Spawn rate config

Let people multiply the spawn rate of traders, so they can be found more often on servers with a lot of people. When you have more than 5 people online on a server, traders are so incredibly rare.

This feature is out of scope for the plugin. Luckily for you, I implemented this config option in Paper: https://github.com/PaperMC/Paper/blob/a831634d446341efc70f027851effe02a0e7f1d3/patches/server/0555-Add-Wandering-Trader-spawn-rate-config-options.patch


deserializer doesn't do byte swapping

The custom serializer/deserializer that converts between ROS message format and CDR (a derivative of the dynamic FastRTPS RMW layer) doesn't do any form of checking or byteswapping of its input in a mixed-endian network.

Byte-swapping is implemented in PR #31


Loosen rust-lang/rust remote check

This permits remote URLs such as git@github.com:rust-lang/rust.git

Thanks!


Vite dev mode doesn't respect es2020 target in tsconfig & build.target config

Describe the bug
I tried to create Vite sample app from Vite vanilla-ts template v4.2.1 with the following command.
npm create vite@latest vite-ts -- --template vanilla-ts

After that, I change ES target to ES2020 and added private method code to test this new ES target. Ideally, this code must be poly-filled for both development & production build because this feature isn't available in ES2020 (Safari 14).
https://caniuse.com/mdn-javascript_classes_private_class_methods
However, it seems Vite dev server or esbuild doesn't respect all configurations for ES2020 target.

Sourcecode:
https://github.com/Soul-Master/vite-ts
If this is expected behavior, please put some comment mention about this behavior in Vite official document. Please also provide a way to make both builds output the same ES target.
Reproduction
https://stackblitz.com/edit/vitejs-vite-vskn64?file=src/main.ts
Steps to reproduce
Run the following commands and observe generated code that represent Foo class.
npm install
npm run dev

System Info
System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    vite: ^4.2.0 => 4.2.1

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Add this to your vite config file and the private class method will be compiled to ES2020 syntax.
  esbuild: {
    target: ['es2020', 'edge88', 'firefox78', 'chrome87', 'safari14'],
  },

This is expected behavior, Vite does not respects build.target and tsconfig's target in dev mode, related code:
https://github.com/vitejs/vite/blob/151099628310d27c0b526b31ba74b8b258fb59b5/packages/vite/src/node/plugins/esbuild.ts#L150
https://github.com/vitejs/vite/blob/151099628310d27c0b526b31ba74b8b258fb59b5/packages/vite/src/node/plugins/esbuild.ts#L214-L217


Add a "vite clean" command

Description
Many other build systems have a "Clean" command or equivalent that removes all caches and the build files/output folder.
While this is a minor thing I believe it would be useful.
Suggested solution
Add a "clean" command which calls the current output folder and cache cleaning functions.
Also add a "--force" option for dealing with the output folder being outside of the root, without having to modify the config.
Alternative
No response
Additional context
This came about because Vite preserves the "Read-only" status of files when copying on Windows.  msbuild then refuses to remove them because they have that flag set.  Meaning the only solution is to brute force a custom executable target and pray I don't mess up the path.
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Vite automatically removes the built files when you rebuild it again. For dev, there is vite --force to re-bundle the dependencies. So I don't think a new command is necessary here.

I also think that it would be better to avoid a new command if possible. @EmperorArthur, do you know what other build tools do with the "Read-only" status of files? Maybe the solution is for Vite to stop preserving the flag. And why are these files read-only in your use case?

@ydcjeff
Yes, that's the equivalent of "Rebuild", the problem is that I I don't want Vite to do anything every time I press build on another project which depends on it.  So, I keep track of the source files and the generated files.  If Timestamps are newer for the source files, then it triggers a build.
Except doing this introduces all sorts of edge case.
Put another way, compared to other build systems, Vite only implements 1/3 of the common tasks.  The build command is really what other systems consider a rebuild, or clean and build.  By its own, Vite has no concept of an incremental build.  One where nothing happens if everything is already up to date.
Plus, Vite can only partly clean up after itself.  It can delete the cache folder with a command, but from a scripting perspective the only way to handle the build folder is have the same setting in two spots, or a cleaner program need to read the Vite config file.
@patak-dev
For straight file copy I belive msbuild removes the flag, but I can't say what CMake does off the top of my head.
They were read only because my company uses Team Foundation Version Control (TFVC).  Which is Microsoft's proprietary copy of Perforce/SVN.  TFVC & Perforce both require files to be marked for editing as the method of tracking file changes.  They enforce this using the read only flag.
Meaning everything worked great until I committed, and then MSbuild could no longer clean any builds after that point.

Thanks @EmperorArthur. I added the issue for discussion to our team board. We have a backlog of new features, so if this is blocking you I advice you fork Vite and add the command so you can move forward until we get to this.

Thanks for adding it to your backlog.

We discussed the idea of a vite clean command with the team, and we don't think there is enough justification for it at this point. Vite only generates files on the build folder and on its configured cache folder, and both can be easily removed with fs commands according to what works best for each project.


dex should fail health checks if it can't connect to the database

I also encountered this the other day during one of my installs on k8s.
On Wed, Sep 7, 2016 at 15:16 Eric Chiang<EMAIL_ADDRESS>wrote:

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/coreos/dex/issues/573, or mute the thread
https://github.com/notifications/unsubscribe-auth/AANr3l2uKsbHpIme5gF6ds7Kf5bVHNdOks5qnzfYgaJpZM4J3alF
.

it does indeed do this.


PopupWindow elements could not be clicked

I am reopening this issue: https://github.com/selendroid/selendroid/issues/140
Quote from @DominikDary :

I've looked into this bug and the interesting thing is, that for PopopMenus it is working fine:
http://code.google.com/p/selenium/source/browse/apps/ApiDemos/src/com/example/android/apis/view/PopupMenu1.java?repo=mobile#41
But I can confirm for popup windows it is not working fine.

and

the issue is related to this line: https://github.com/selendroid/selendroid/blob/master/selendroid-server/src/main/java/io/selendroid/server/model/KnownElements.java#L50
The element can be found and when you try to interact with it will not be found because the element is not part of the view hierarchy of the current activity.
We must have that check in general, but also find a way to identify that exception.

I would really like to get this fixed, but I have no experience developing the internals of Selendroid or any other automation framework. Could someone with some experience with the source give me a general idea of how to fix this?

@truebit any ideas? I put some logging code in KnownElements#get and ran a test that attempts to interact with a PopupWindow, and I'm not seeing that method being called ever.


500 internal server Error when using react-native run-android

[x] Review the documentation: https://facebook.github.io/react-native
[x] Search for existing issues: https://github.com/facebook/react-native/issues
[x] Use the latest React Native release: https://github.com/facebook/react-native/releases

Environment
Environment:
  OS: Windows 10
  Node: 8.11.4
  Yarn: 1.9.4
  npm: 5.6.0
  Watchman: Not Found
  Xcode: N/A
  Android Studio: Version  <IP_ADDRESS> AI-173.4907809

Packages: (wanted => installed)
  react: 16.3.1 => 16.3.1
  react-native: 0.56.0 => 0.56.0

Description

try deleting node_modules and clearing cache ,then install dependencies and run the bundle.If issue not resolved after all this, then try to deprecate the react-native version according to codes and syntax you have used, hope that will fix the issue.

try all method you mention the errors still occured

please use 0.57.rc3.

Please open again. I'm havent verify it yet.

actually this is duplicate, you can search the issue.


Login Failed

today I notice a login failure from this homebridge-panasonic-ac-platform
[Homebridge Panasonic AC Platform] Login failed. The Comfort Cloud server might be experiencing issues at the moment. Homebridge will try to log in again in 360 seconds. If the issue persists, make sure you configured the correct email and password and run the latest version of the plugin. Restart Homebridge when you change your config, as it will probably not have an effect on its own. If the error still persists, please report to https://github.com/embee8/homebridge-panasonic-ac-platform/issues.
when I login in the app there is a privacy declaration to be acepted.
I accepted this but now the error is;
[11/10/2022, 19:31:57] [Homebridge Panasonic AC Platform] Successfully logged in. [11/10/2022, 19:31:57] [Homebridge Panasonic AC Platform] Configuring outdoor unit. [11/10/2022, 19:31:57] [Homebridge Panasonic AC Platform] Restoring accessory 'Panasonic AC Outdoor Unit' (2f989c86-944b-4b28-a779-7fc872e15ba2) from cache. [11/10/2022, 19:31:57] [Homebridge Panasonic AC Platform] Discovering devices on Comfort Cloud. [11/10/2022, 19:31:57] [Homebridge Panasonic AC Platform] Comfort Cloud: getDevices() [11/10/2022, 19:31:57] [Homebridge Panasonic AC Platform] An error occurred during device discovery. Turn on debug mode for more information. [11/10/2022, 19:31:57] [Homebridge Panasonic AC Platform] No auth token available (login probably failed). Check your credentials and restart Homebridge.
it stated "successfully logged in" and my credentials are not changed.
After changing the versionnumber to 1.16.0 all is working again.
kind regards,

Hi, I have same problem.

I experienced the same login error as above (first message). I can confirm that using the version override in the plugin settings (changing to to 1.16.0) has fixed the issue for me. This will need addressing for the next update.

version override to 1.16.0 fixed this for me also.


Unable to display animation

I am only seeing plain text being outputted in the browser. Would really appreciate it if you could please point out what I am missing, here's a snapshot :

Hey @dparkar take a look a the examples listed here: https://github.com/rmariuzzo/react-chronos/tree/master/stories

Thank you. Got a little further. :)

How do I put padding between the event boxes and the browser frame, currently it spans all the way till the border ?
Also, I am not sure why the footer (with the React symbol) is overlapping with the event boxes.

I guess those can be considered different issues. Hence, i'll close this one.

@dparkar where you able to put the padding?

nope :( also not sure why its overlaying instead of fitting inside the section


For model vs model e3sm_diags runs incorrect time series path for test data

Reported by @golaz, in the qbo model vs model results, test and reference run appears using the same data (reference run data). Same applied to other time series based analysis, such as enso diags. The run is configured with zppy, I suspect the e3sm_diags template has a bug to assign test data path.

Command line to reproduce:

Debugging
The following is in the main body of the script:
{%- if "qbo" in sets %}
qbo_param = QboParameter()
qbo_param.test_data_path = test_ts
qbo_param.test_name = short_name
qbo_param.test_start_yr = start_yr
qbo_param.test_end_yr = end_yr
qbo_param.ref_start_yr = ref_start_yr
ref_end_yr = ref_start_yr + num_years - 1
if (ref_end_yr <= {{ ref_final_yr }}):
  qbo_param.ref_end_yr = ref_end_yr
else:
  qbo_param.ref_end_yr = {{ ref_final_yr }}
{% if run_type == "model_vs_obs" %}
# Obs
qbo_param.reference_data_path = '{{ obs_ts }}'
{% elif run_type == "model_vs_model" %}
# Reference
qbo_param.reference_data_path = '${ts_dir_ref}'
qbo_param.ref_name = '{{ ref_name }}'
qbo_param.short_ref_name = '{{ short_ref_name }}'
# Optionally, swap test and reference model
if {{ swap_test_ref }}:
   qbo_param.test_data_path, qbo_param.reference_data_path = qbo_param.reference_data_path, qbo_param.test_data_path
   qbo_param.test_name, qbo_param.ref_name = qbo_param.ref_name, qbo_param.test_name
   qbo_param.short_test_name, qbo_param.short_ref_name = qbo_param.short_ref_name, qbo_param.short_test_name
{%- endif %}

test_ts = '${ts_dir_destination}' in the main body.
ts_dir_destination=$2 is in create_links_ts()
create_links_ts ${ts_dir_source} ${ts_dir_primary} ${Y1} ${Y2} 5 in the main body
create_links_ts ${ts_dir_source} ${ts_dir_ref} ${ref_Y1} ${ref_Y2} 6 in the main body (only called if run_type == "model_vs_model")
So, what's happening is ts_dir_destination keeping its last used value (${ts_dir_ref} rather than ${ts_dir_primary}).
It's not a good programming practice to use a variable defined in a function outside that function (and in many languages other than bash, that wouldn't have even worked because variables are appropriately scoped). It looks like originally, ts_dir_destination was defined in the main body. Then, in #195, I created a function so code wouldn't get duplicated. I inadvertently placed the definition of ts_dir_destination into that function
ts_dir_ref=ts_ref in the main body, so that's where test_data_path = 'ts_ref' comes from in the image above.
As for ts_dir_primary, the following is in the main body:
{% if run_type == "model_vs_obs" %}
ts_dir_primary=ts
{% elif run_type == "model_vs_model" %}
ts_dir_primary=ts_test

So, I think we just need to replace test_ts = '${ts_dir_destination}' with test_ts = '${ts_dir_primary}'. That would make qbo_param.test_data_path = test_ts match qbo_param.reference_data_path = '${ts_dir_ref}'


IP block

Is there some sort of IP block on bet365 ? Because when I repeatedly restarting script it starts returning nothing after subscribing to channel (OVInPlay). So session key in script always different but in browser it remains the same and refreshed after some time. The question is did you noticed that or problem is somewhere else ?

Not IP block, It's a bug in the code. If set the language to cn(Chinese), it works fine. Because I used to grab Chinese information, and later changed it to English, so there may be some bugs, you can try to change the language to cn. This bug has not found the reason yet. @elpaxel

hello, there is a way also to bet automatically on bet365? is it possible with python?


Adding hover effects

Adding hover effects to almost all the things in the homepage.
@PorePranav plz assign me this issue add hacktoberfest label.

Hey @shobhit15082003, Thank you for opening up the issue, but currently, I don't think there is a need to add these effects!


CIVDT-207: Added address lookup flow into user journey

The config needs updating to correct the service title whilst in ALF.


Is there a way to create NUPKG files without using Microsoft.NET.Sdk?

I'd like to know if it's possible to create a CSPROJ file which outputs a .nupkg file, but doesn't use the Microsoft.NET.Sdk project type.  In my case, I'd like to create a nupkg but there's no code to compile.

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

ID: 31da7408-981b-cc54-1791-ca39dbdbc091
Version Independent ID: 2060c9e8-7f2e-5da1-ee19-d196f38339fe
Content: Create a NuGet package using MSBuild
Content Source: docs/create-packages/creating-a-package-msbuild.md
Product: nuget
GitHub Login: @JonDouglas
Microsoft Alias: jodou

Related: https://github.com/NuGet/Home/issues/4254
At the moment, this scenario would be limited until the above is addressed. Thus I'm going to close this for now.


lightgbm model hyperparameter tuning

@spiralulam What do you think about giving Enting.fit a kwargs parameter to allow the user to set the lightgbm hyperparameters? I want to do something like cross-validation to get a better surrogate rather than accept the default.
Then we can either leave the choice of hyperparameters to the user or provide a simple function to optimize the hyperparams (I would propose random sampling in this case to keep things relatively simple).

update: ok I noticed that Enting takes a params dict and the hyperparameters are specified here:
params["tree_train_params"]["train_params"]
More generally, have we documented what can be in the params dict? I see unc_params and tree_training_params from going through the code but I'm not sure I would find this in the docs

@R-M-Lee Yes, we need to document the params dict. Will do.

You can now check all possible parameters using the new class structure implemented by Toby.


[#49] Added name skip pattern for slf4j

if Span's name matches a pattern it will not be logged at all in the logs

fixes #49

Done in https://github.com/spring-cloud/spring-cloud-sleuth/commit/980e2324d7c7187b6d2a6e2fdb6a6a04a2c7dc14


Use rosidl_runtime_py instead of rqt_py_common where possible

First commit does what the title say.
The second removes dead code ....
I will create a foxy-devel branch for this, as rosidl_runtime_py didn't exist in dashing (thought the same methods were available in another place).

@mjcarroll do you think that creating a foxy-devel branch is fine?
It would also be great if the maintainers list is update in the manifest.

I went ahead and created a foxy-devel branch if you want to retarget this PR.

I went ahead and created a foxy-devel branch if you want to retarget this PR.

thanks!

@ivanpauno do you mind also updating rosdistro, the release repo, and ros2.repos as necessary?

@ivanpauno do you mind also updating rosdistro, the release repo, and ros2.repos as necessary?

yes, I'm planning to do it


Add NoOpMeter, a meter that doesn't do anything, this is usful to use…

Add NoOpMeter, a meter that doesn't do anything, this is usful to use in a Timer if you want access to the Stopwatch api for histogram data and don't want to deal with the overhead of a meter.
@csabapalfi I wanted to let you merge this and run your npm version minor command.
What should happen once you merge is that the jsdocs get generated and published to the site.
After you run the npm command and a tag gets pushed, another build will be triggered that does the npm publishing.
https://travis-ci.org/yaorg/node-measured

Pull Request Test Coverage Report for Build 91

5 of 5 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 84.364%

Totals

Change from base Build 89:
0.1%

Covered Lines:
358

Relevant Lines:
416

💛  - Coveralls

Looks like I don't have the rights to merge. Can you double-check, please?

It was set to read, I changed it.

Also why the coveralls comment was deleted?

I triggered a re-build I thought a new one was going to be added, that was my fault.
I deleted the original comment.

Nice. Publishing worked both to npm and to gh-pages 👍


Add additional check for entity in media item preprocess.

Summary
Add additional check for entity in media item preprocess.
Metadata

Question
Answer

Did you use a meaningful pull request title?
yes

Did you apply meaningful labels to the pull request?
yes

Did you perform a self review first?
no

CHANGELOG reflects changes?
yes

Did you perform browser testing?
no

Risk level
Low

Relevant links
https://thinkoomph.jira.com/browse/RIGA-138

Looks good!
/approved


Is there any easier option to update an object in a "one-to-many" relationship?

Hello, how can I easily update an object belonging to a one-to-many relationship?. I mean:

Table Movies(id, title, ...)
Table Genres(id, movie_id, name)

I have, movie Blade runner and a list of genres( scifi, action...). What I'm doing is delete the genres and again insert the new ones, but I remember years ago I was using ormlite and they had something like 'movie.getGenres.update(...)'
Is there something similiar to this for persism? Am I using the best and most efficient way to update a register in a one-to-many relationship? There will be an easier feature to update 'children' records in this kind of relationships?
By the way, I'm using sqlite as DB Engine

I don't have anything specific for that. Usually I take the data from the DB and compare to the data being submitted to decide what to insert/update or delete.  Maybe if I think of a generalized way to do this I can add it as a feature.  Thanks!


Graphically show orientation of device in 3D

See if you can pull a quaternion representing rotation from CoreMotion, and apply that transformation to a 3D object. Probably just a 3D model of the axes will do.

Some groundwork for this was covered in PR #6


fix: delete previous uploaded csv files

Description
Delete previous uploaded files of a resource if any on successful upload of new file.
Fixes #1224
How has this been tested?
Tested manually
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build/CI related changes
[ ] Documentation related changes
[ ] Other... Please describe:

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

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


open Dockerfile: no such file or directory

Upgraded to v0.4.0 and a working config for v0.3.0 now fails. It looks like my custom dockerfilePath isn't being picked up anymore.
Expected behavior
skaffold v0.4.0 runs the same as skaffold v0.3.0 with the same config file.
Actual behavior
Getting an error that I did not in v0.3.0.
% skaffold -v debug dev
INFO[0000] Skaffold &{Version:v0.4.0 GitVersion: GitCommit:8a99affded87a0f81e3ee90bd9f24f01aec5038d GitTreeState:clean BuildDate:2018-04-12T22:37:36Z GoVersion:go1.10.1 Compiler:gc Platform:darwin/amd64}
INFO[0000] Using kubectl context: minikube
DEBU[0000] Running command: [minikube docker-env --shell none]
DEBU[0000] Command output: stdout DOCKER_TLS_VERIFY=1
DOCKER_HOST=tcp://<IP_ADDRESS>:2376
DOCKER_CERT_PATH=/Users/charlie/.minikube/certs
DOCKER_API_VERSION=1.23
, stderr: , err: %!s(<nil>)
Error: running skaffold steps: getting path to dependency map: generating path to artifact map: getting paths for artifact abbott: getting dockerfile dependencies: opening dockerfile: %!d(string=Dockerfile): open Dockerfile: no such file or directory

Information
Skaffold version: v0.4.0
Operating system: Mac 10.13.4
Content of skaffold.yaml:

apiVersion: skaffold/v1alpha2
kind: Config
build:
  artifacts:
  - imageName: abbott
    dockerfilePath: service/abbott/Dockerfile
  local: {}
deploy:
  kubectl:
    manifests:
      - ops/k8s/dev/abbott/abbott-*.yaml

Looking through the source reveals a new yaml path for dockerfilePath:
build:
  artifacts:
  - imageName: abbott
    docker:
      dockerfilePath: service/abbott/Dockerfile

Updating my config to this layout seems to fix the problem. I can't find any examples of this change in the repo.

Thanks @cmoad it's indeed a breaking change and we should add at least a sample

I m seeing the same issue.
My Env    : Win 10 Pro
Minikube : v0.25.0
Skaffold   :v0.4.0
`
apiVersion: skaffold/v1alpha2
kind: Config
build:
artifacts:

imageName: proj-rest
dockerfilePath: ./myproject/Dockerfile
`

it's complaining on "Error: running skaffold steps: getting path to dependency map: generating path to artifact map: getting paths for artifact abbott: getting dockerfile dependencies: opening dockerfile: %!d(string=Dockerfile): open Dockerfile: no such file or directory"

@Anakin-Hao Can you change the configuration and retry?
apiVersion: skaffold/v1alpha2
kind: Config
build:
  artifacts:
  - imageName: proj-rest
    docker:
      dockerfilePath: ./myproject/Dockerfile

@dgageot
Using this config, i m getting error on "Cannot locate specified Dockerfile:"
skaffold.yaml
apiVersion: skaffold/v1alpha2
kind: Config
build:
  artifacts:
  - imageName: proj-rest
    workspace: .
    docker:
      dockerfilePath: ./proj-rest/Dockerfile

Output
> skaffold dev
Starting build...
Found [minikube] context, using local docker daemon.
Sending build context to Docker daemon  58.37kB
WARN[0001] run: build: build step: running build for artifact: running build: docker build: Error response from daemon: Cannot locate specified Dockerfile: ./proj-rest/Dockerfile
Watching for changes...

My OS : Win 10 Pro
Minikube : v0.25.0
Skaffold : v0.4.0

@dgageot any update?

Yes, I suppose skaffold should take paths relative to the skaffold.yaml. Currently, all paths are relative to the skaffold process directory. Taking paths to the skaffold yaml makes things a bit trickier in the code, since all paths will need to be joined or executed in the context of that separate config path.

Yep that would be great @derekperkins

https://github.com/GoogleContainerTools/skaffold/issues/503 seems like a good umbrella issue to track this in. I'll close this to track it there.


Add authentication logic

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Add some authentication logic that would work with the login page (#22)
Describe alternatives you've considered
N/A
Additional context
N/A

@Depermitto @Duszke333 @msadlej can one of you assign this issue to yourself?


Improve messages text

Hello!
I've just improved messages in your OS. I'm sure that this upgrade is extremely needed for your OS's image in the programmers' community.
Best regards,
Eridan

I vote for it! I really need it!


Fix DXGLContext dispose

This fixes a couple of things related to DXGLContext dispose:

A call to DXCloseDeviceNV with an empty GLDeviceHandle crashes with AccessViolationException. This checks if GLDeviceHandle isn't empty beforehand.
Removed finalizer dispose as it might run from any thread and GlwfWindow can only be disposed on main thread.
Added a call to dispose before throwing an exception in ctor to ensure proper clean-up.

In my case I can now properly handle when the control can't initialize on integrated gpus without crashing. Maybe fixes 113 and 132 as they're similar to what I've encountered (though these may not be related as I now see that NativeWindow also has a finalizer).

Removed the try-finally for just regular logic (my preference, don't expect exceptions).
Merging this.


twitter-together action skipping jobs

It looks like the twitter-together action hasn't run since being updated recently.
Since Twitter recently shut off third party clients, I checked the K8sContributors Developer Portal and our "app" is still present but whether or not it's still functional is a different question.
My first suggestion is rolling back these changes then testing them one by one to see if they work. Feel free to add me to any test issues or PRs. Please flag PRs with the hold label and mention it's a test.

/assign

@AvineshTripathi feel free to reach me Incase of any help.

I addressed this issue in our weekly meeting, but am commenting here for better visibility.
Bumping up the version isn’t causing the skipping of jobs, it is this PR that changed the workflow: https://github.com/kubernetes-sigs/contributor-tweets/pull/273
So to avoid jobs from skipping we need to rollback to changes of the above PR.

This tracking issue should cover the upcoming discussions: https://github.com/kubernetes-sigs/contributor-tweets/issues/289

/close
see here: https://github.com/kubernetes-sigs/contributor-tweets/issues/289


parallel e2e testing with different kubeconfigs

Description

New tests package with Test, TestCase, K8sCluster, TestPool, ClusterInfo structures are added
Add new method to handle tests with the help of tests package
Add test configuration
Calculated test duration
Using different test strategies
Create test report file
Ginkgo Labels can be used for selecting specific test(s) from TestPool
Add test information into ginkgo test header
Unit tests for test strategies
Downgrade  k8s.io/apimachinery to the same version that is used in Koperator
Add mock tests
Using TestCase for Koperator all-test test case
Add common and configure as separate package
Tests capable to run parallel with different kubeconfigs
Makefile modifications to run tests with ginkgo (needed for parallelization)
Makefile modification to run e2e test framework unit tests whith "make test"
Makefile modification go fmt and go vet runs on tests/e2e module
Add test report github action
Add entry into test output about test progress "passed(TOTAL:45 PROGRESS/PROC:2/0/0 PID: 1)"

Type of Change

[x] New Feature

Checklist

[x] I have read the contributing guidelines
[x] Existing issues have been referenced (where applicable)
[x] I have verified this change is not present in other open pull requests
[x] All code style checks pass
[x] All new and existing tests pass

PR is now working on 2 kind cluster without problems. The problem was the use of wrong k8s version for test kind cluster.


Support short bundle name

Currently import command requires "full bundle namespace". It should support short form (e.g., ONGRTranslationsBundle).
Also whole import service should be reviewed. Probably it's overcomplicated. (Tip: see Kernel::locateResource().)
EDIT: it looks like configuration also ask full namespaces.

Here, we could use
$bundle = $this->getApplication()->getKernel()->getBundle($input->getArgument('bundle'));
$path =  $bundle->getPath();
$dir = dir(path);

to get the directory of the folder basing directly on the bundle name instead of the full namespace.
@mvar  @saimaz , how do you think?

And another question: here we should have an option to indicate it is a bundle name or namespace? (in case we support importing all translation files for both bundle name and namespace)

IMO we dont need to support full namespeces. It's useless. According symfony wide practices everybody uses a short notation which is BundleName. e.g. for Translations it would be ONGRTranslationsBundle. And that's it.

Yup, thanks @saimaz

Close #64


Planner

Acceptable Criteria:

should make automatic progress in background with
https://babyagi-ui.vercel.app/
google keep, tasks sync , cal
apple reminder, notes, tasks , iCloud mail, cal
cal.com/ calendly support

User should easily be able to organize meetings wi the anyone , bot should handle all plans and booking

Let's build this functionality based on AutoGPT Planner and we can customize it.
https://github.com/Significant-Gravitas/Auto-GPT-Plugins/tree/master/src/autogpt_plugins/planner

It takes  around 5 days.

The response format:
{
"message": [
"OK",
"Request fulfilled, document follows"
],
"result": {
"program": "auto_task",
"content": "/auto/autogpt_c40a09075d11940f_1688122021744"
},
"status_code": 200
}

Looks great! I think the auto achievement should be worked in an async. Please make it in thread to handle it. Thanks.


Unverified SES email can produce invalid XML response from Moto

Moto Version: 2.0.7 installed into a virtualenv via pipenv
Problem
This problem came up when I was attempting to unit test the behavior of my application when it attempts to send an email via SES from an unverified address (should produce a MessageRejected exception). However, I did not get a MessageRejected exception as expected, because it turns out Moto is producing invalid XML for the MessageRejected exception in this case. Which instead triggers a botocore.parsers.ResponseParserError exception:
Traceback (most recent call last):
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/client.py", line 386, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/client.py", line 692, in _make_api_call
    operation_model, request_dict, request_context)
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/client.py", line 711, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/endpoint.py", line 135, in _send_request
    request, operation_model, context)
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/endpoint.py", line 167, in _get_response
    request, operation_model)
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/endpoint.py", line 218, in _do_get_response
    response_dict, operation_model.output_shape)
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/parsers.py", line 243, in parse
    parsed = self._do_error_parse(response, shape)
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/parsers.py", line 505, in _do_error_parse
    root = self._parse_xml_string_to_dom(xml_contents)
  File "/root/.local/share/virtualenvs/testmoto-zOW-GSrY/lib/python3.7/site-packages/botocore/parsers.py", line 457, in _parse_xml_string_to_dom
    (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (not well-formed (invalid token): line 6, column 62), invalid XML received. Further retries may succeed:
b'<?xml version="1.0" encoding="UTF-8"?>\n  <ErrorResponse>\n    <Errors>\n      <Error>\n        MessageRejected\n        <Message>Email address not verified John Smith<EMAIL_ADDRESS>      \n      </Error>\n    </Errors>\n  <RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID>\n</ErrorResponse>'

Looking at the moto code, it appears to me the problem is that the email given (specifically, the brackets in the address)  John Smith<EMAIL_ADDRESS>is not properly escaped for XML. For example, one possible fix might be to XML escape here, instead of just putting it blindly into the message:
https://github.com/spulec/moto/blob/master/moto/ses/models.py#L161
class SESBackend(BaseBackend):
    ...
    def send_email(self, source, subject, body, destinations, region):
        ...
        if not self._is_verified_address(source):
            self.rejected_messages_count += 1
            raise MessageRejectedError("Email address not verified %s" % source) # XML-escape source here

The implication of this is that I am unable to properly unit test the path of my code that handles a MessageRejected error for unverified source address.
Recreating
Here's a sample of calling boto3.client("ses").send_email which would trigger the error in Moto if "example.com" is not a verified address (eg. if I have not called something like boto3.client("ses").verify_domain_identity("example.com")):
boto3.client("ses").send_email(
    Source=f"John Smith<EMAIL_ADDRESS>  # << Unverified source address
    Destination={
        'ToAddresses'<EMAIL_ADDRESS>        'CcAddresses': [],
        'BccAddresses': []
    }, Message={
        'Subject': {'Data': "Hello!"},
        'Body': {'Html': {'Data': "Hi"}}
    }, SourceArn=source_arn,
    ReplyToAddresses=[]
)

Thanks for raising this, and for providing a reproducible scenario @amacf! Marking it as a bug.


Markdown: HTML Coloring regression?

Seems to work in the latest

@aeschli still seeing red coloring in markdown files

It has to do with the 4 spaces ahead of the html code. The tokenizer decides it is a code block.
It's not a regression, has been like that also in Monaco

Assigning to you, @bpasero , as you maintain Markdown support.

OK!


Could not start  systemd-vconsole-setup.service during boot

Describe the bug
During boot, I get an error that systemd could not start vconsole-setup.service.
The system does boot successfully though.
Steps To Reproduce
Steps to reproduce the behavior:

Boot
See the error in the boot console

Expected behavior
systemd-vconsole-setup service is successfully started.
Additional context
It happens regardless I configure a console font or keymap using config.console NixOS options.
Here's what I was able to recover from journalctl -b | grep vconsole
May 17 19:48:23 Ainz-NIX systemd-vconsole-setup[901]: popen: /nix/store/hragmx5p3izmwinv4441hj5706sxy4xs-gzip-1.13/bin/gzip -d -c /etc/kbd/keymaps/i386/qwerty/us.map.gz: No such file or directory
May 17 19:48:23 Ainz-NIX systemd-vconsole-setup[901]: popen: /nix/store/hragmx5p3izmwinv4441hj5706sxy4xs-gzip-1.13/bin/gzip -d -c /nix/store/bjzji701dz67bfrrwx9smqqyy1pnf2c9-kbd-2.6.4/share/keymaps/i386/qwerty/us.map.gz: No such file or directory
May 17 19:48:23 Ainz-NIX systemd-vconsole-setup[901]: loadkeys: Unable to open file: us: No such file or directory
May 17 19:48:22 Ainz-NIX systemd-vconsole-setup[832]: /nix/store/bjzji701dz67bfrrwx9smqqyy1pnf2c9-kbd-2.6.4/bin/loadkeys failed with exit status 1.
May 17 19:48:22 Ainz-NIX systemd-vconsole-setup[832]: KD_FONT_OP_GET failed while trying to get the font metadata: Invalid argument
May 17 19:48:22 Ainz-NIX systemd-vconsole-setup[832]: Fonts will not be copied to remaining consoles
May 17 19:48:22 Ainz-NIX systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
May 17 19:48:22 Ainz-NIX systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.

Notify maintainers
@NixOS/systemd
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.0-cachyos, NixOS, 24.05 (Uakari), 24.05.20240515.33d1e75`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.22.1`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/0qd773b63yg8435w8hpm13zqz7iipcbs-source`

Add a :+1: reaction to issues you find important.

I can not reproduce this. Can you share more about your setup?

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/systemd-1-failed-to-start-virtual-console-setup/44798/3

I'm affected by the same problem on a couple of servers since I've upgraded them to 24.05. Here is all the log I've got:
Aug 08 16:53:25 meti systemd[1]: Starting Virtual Console Setup...
Aug 08 16:53:25 meti systemd[1]: Finished Virtual Console Setup.
Aug 08 17:28:02 meti systemd[1]: systemd-vconsole-setup.service: Deactivated successfully.
Aug 08 17:28:02 meti systemd[1]: Stopped Virtual Console Setup.
Aug 08 17:28:08 meti systemd[1]: Starting Virtual Console Setup...
Aug 08 17:28:08 meti systemd-vconsole-setup[2554832]: Failed to lock /dev/console: Input/output error
Aug 08 17:28:08 meti systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
Aug 08 17:28:08 meti systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.
Aug 08 17:28:08 meti systemd[1]: Failed to start Virtual Console Setup.
Aug 08 17:28:10 meti systemd[1]: Starting Virtual Console Setup...
Aug 08 17:28:10 meti systemd-vconsole-setup[2555378]: Failed to lock /dev/console: Input/output error
Aug 08 17:28:10 meti systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
Aug 08 17:28:10 meti systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.
Aug 08 17:28:10 meti systemd[1]: Failed to start Virtual Console Setup.
-- Boot 7864e5f19ead4ce08a0043754f4e78c5 --
Aug 08 18:01:36 meti systemd[1]: Starting Virtual Console Setup...
Aug 08 18:01:36 meti systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
Aug 08 18:01:36 meti systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.
Aug 08 18:01:37 meti systemd[1]: Failed to start Virtual Console Setup.
Aug 08 18:01:37 meti systemd[1]: Starting Virtual Console Setup...
Aug 08 18:01:37 meti systemd-vconsole-setup[1328]: Failed to lock /dev/console: Input/output error
Aug 08 18:01:37 meti systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
Aug 08 18:01:37 meti systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.
Aug 08 18:01:37 meti systemd[1]: Failed to start Virtual Console Setup.

Not much to say, rather than investigate if this vconsole-setup service is a new stuff? what does this do?

I've done some research and I've found this issue relevant in my case. On the servers where the error happens I had the console= kernel option set as resulted from a cat /proc/cmdline because I'had used a generic configuration but the machine doesn't have a serial connected, hence the error.

boot.kernelParams = [
"systemd.mask=systemd-vconsole-setup.service"
"systemd.mask=dev-tpmrm0.device"
];
Not sure if this is right way...
but this stopped that annoying 1.5 mins systemd counter adding startup time
and error vconsole.. is gone

Masking the service would prevent it from starting yes, so no error would occur.
Though I can confirm that boot time has been reduced significantly by this change. Thanks


Fix Typos and load startup values from json file

Fixed some typos in inference.py and added a function to load default settings from a json file.

In this case I think you should make a section called template configurator and there you can create different default configurations for each section (Inference, TTS, Training...) and that when you start it will load.
This section could be in settings

Will take a look at it, but to keep clutter to a minimum I would instead introduce a single button in the settings tab that saves all current values to the config file. That way you can set them up in their individual tabs. Not a programmer though, just trying my best with chatgpt

maybe @aitronssesin can help you 😁

It's a good a idea but it needs to be implemented in all the settings and that can be time consuming. I will add your fix for the typos and add you as a coauthor.


User report widget

Displays user registrations and logins.

Wow, very cool!! We will merge this soon

But when I login at 25. Jan 2015 and then 28. Jan 2015, I will lose access from 25.Jan 2015. So it's show only last successful logins, not overall logins :-( See https://github.com/MatissJanis/user-plugin/commit/587577ece1abdef05942808d190f27e746480960#diff-79a65bc84d48bd6ad8d53e9183305c25R36
I'm fixing it by my pull request https://github.com/rainlab/user-plugin/pull/111 to possible save all successfully logins to database by another plugin.

Yes OK, perhaps this is better as a standalone plugin.

User registrations and logins dashboard widget are now part of the User Access Log plugin. You can close this issue.


Any plan for C/C++ API

Hello,
It'd be great to have TinyGrad official API for C/C++ (with docs & examples), like PyTorch's C++ frontend

Hello there, currently the main focus of tinygrad is get amd on mlperf, increase performance and make improvements to the existing api.
Furthermore, I think adding a c++ API would require a lot of work, as tinygrad is written in python.

i see 😢. But in future, it might be really useful feature especially where high performance (even when training) is needed. Also, it could be then easily ported to other languages as well (e.g. Java, JavaScript, the C++, ...).

Why would it be useful? For whom? Does it solve ANY problem? Nobody does training in ANY languages you mentioned, and for inference you can just compile model into C and that's it.

Yeah, one of the biggest tinygrad's value-props for developer experience is that it's all just Python, not C++ with some bindings that you then have to build when trying to fix bugs. I don't know why you would ever want to consume Tinygrad in C++ when you can just use Python?


Clarify healthcheck CMD-SHELL command

Proposed changes
With the current description, it is not clear that for example setting this array as test
test: ["CMD-SHELL", "curl -s -X GET http://<IP_ADDRESS>:5000/actuator/health", "|", "grep 'UP'"]
would result in executing the first (curl) command only to evaluate the status. (more details https://stackoverflow.com/questions/59269073/docker-swarm-stack-file-healthcheck-command-does-not-work-as-expected/59390396#59390396)
It is not clear because it is said that test must be either a string or a list. If it’s a list, the first item must be either NONE, CMD or CMD-SHELL - so it does not make sense to use CMD-SHELL with a list.

Unreleased project version (optional)

Related issues (optional)

Deploy preview for docsdocker ready!
Built with commit b0334a89f45981f0368281a490aef7839d7f2468
https://deploy-preview-10058--docsdocker.netlify.com


Test

Summary by CodeRabbit

New Features

Introduced automation for packaging and releasing the repository using GitHub Actions.
Added functionality to handle file extensions based on MIME types for emoticon and image messages.

Improvements

Updated the version of the "wechaty-puppet-wechat4u" package to 1.14.16.

:rocket:
This description was created by Ellipsis for commit 9f416d747139216be64a134aea904e8ae773872a

Summary:
This PR updates workflows, refactors code for message handling, and introduces a utility for MIME type to file extension mapping, alongside a version bump.
Key points:

Removed .github/workflows/npm.yml
Added .github/workflows/pack.yml for handling package and release on tag push
Updated package.json version to 1.14.16
Refactored src/puppet-wechat4u.ts:

Removed emotion message parsing
Utilized new utility function for file extension determination

Added new utility file src/wechat4u/utils/mim-to-extension.ts for mapping MIME types to file extensions

Generated with :heart: by ellipsis.dev

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.xleat seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Subject: Please Ignore the Pull Request
Dear [Repository Owner/Team],
I hope this message finds you well.
I accidentally made a pull request to your repository after forking and making some modifications. It was an error on my part, and I kindly ask you to ignore this pull request. I apologize for any inconvenience this may have caused.
Thank you for your understanding.
Best regards


Added Animation Change parameter to google.dart

Can add animation to the button by passing the animation value to the animationChange parameter

I don't really understand this pull request. In your code, are you rapidly iterating the animationChange parameter to give the effect of the button being pressed?


ext_proc: Improve test coverage in matching_utils

Commit Message: ext_proc: Improve test coverage in matching_utils
Additional Description:
Risk Level: LOW
Testing: Matching utils unit tests added, CelValue types covered more extensively in integration tests
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Fixes #34496

/retest
Is this a known flake in the hotrestart tsan tests? https://dev.azure.com/cncf/envoy/_build/results?buildId=173926&view=logs&j=d1f76054-8f79-554b-6f4a-11d6a63b8e00&t=33c64725-b304-5065-9740-0ce244fa1a25

/retest


Updating author metadata

Norm moved to a new team some time back and this data is outdated since I updated the site. Moving to take ownership. :)

@jmatthiesen,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

cordovadocs/first-steps/build-your-first-app.md
:white_check_mark:Succeeded

cordovadocs/first-steps/using-bower.md
:white_check_mark:Succeeded

cordovadocs/take-further/add-platform-specific-content.md
:white_check_mark:Succeeded

cordovadocs/take-further/core-plugins.md
:white_check_mark:Succeeded

cordovadocs/take-further/using-plugins.md
:white_check_mark:Succeeded

cordovadocs/tips-workarounds/access-native-cordova-project.md
:white_check_mark:Succeeded

cordovadocs/tips-workarounds/configuration-tips.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fix installation error & Fix typo on variable names

Got errors caused by typo on install package name, so I corrected it from yarn to expo
-- Applied on the line below Detail Screen in chapter 15 Router(react-navigation)

I noticed typos on variable names such as volumn and datas, so I fixed it.

p.s. I should have merged upstream and sent pull request, so I open a pull request after merge.

@sonypark It will be better to use Rebase than merge when you try apply upstream.

OK I got it!. I am going to use Rebase from now on. Thanks for your feedback


CI for multi country App Source

Hi Freddy,
Could you advice settings for existing multi country App Source CI/CD - to arrange CI loop test for all listed countries? ...
Thanks a lot,
Milos Mikulasek

You can create a setting in the settings file called additionalCountries, like:
    "additionalCountries":  [ "de", "dk", "it" ]

Then it will build all 4 countries (your primary and these).
You can also add this to the Test Current.settings.json in the .github folder - then it won't run on CI, but only on the Test Current wrorkflow tests (the setting will be specific for that workflow).
If you then add this to the Al-Go-Settings.json and re-run Update AL-Go System fieles:
    "CurrentSchedule":  "0 2 * * *",

then the Test Current workflow will run every night at 2.

I did just discover that there is a bug when setting additionalCountries, without also setting artifact in the settings file.
If you set artifact to "////latest" in the settings file, it should work just fine.
Will fix this bug asap.

Thanks a lot, artifact: "////latest" settings looks good. Started 20 minutes ago and action is still running ...

ends with success, thank you Freddy


ci: Fix windows tools installation

Jira: PSGO-665
Changes:

ci: Fix windows tools installation by not using curl but go install.
ci: Remove restore-keys part so the tools are cached only by one key. REASON: when changing tool in tools.sh we want to use the new tool, not the old ones.

@jachym-tousek-keboola can you please finalize it, @Matovidlo is OOO.


Upload work manager

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2021
Description

Create an interface for UploadWorkManager which will be able to orchestrate over what to upload from the list of local changes and how to upload (create Bundle or individual requests from the list of changes to be uploaded)
Refactored the existing BundleUploader to be used as a default way to create Bundles from LocalChanges

Alternative(s) considered
NA
Type
Feature
Screenshots (if applicable)
Checklist

[x] I have read and acknowledged the Code of conduct.
[x] I have read the Contributing page.
[x] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
[x] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
[x] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
[x] I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
[x] I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

To contain the size of the changes, I have just added major refactoring and interface changes in this PR. I will follow this one with another PR to support other upload requests (per resource based uploads).


[Word] (preview) Update platform support

Docs Build status updates of commit 17025b3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/includes/word-preview-apis-note.md
:white_check_mark:Succeeded
View

docs/reference/requirement-sets/word-preview-apis.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 2dbf93c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/includes/word-preview-apis-note.md
:white_check_mark:Succeeded
View

docs/reference/requirement-sets/word-preview-apis.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Any support to load bulk data via JRedisGraph

Hi, is there any utility in java to load bulk data using csv with JRedisGraph like we have in neo4j?

Please check https://github.com/RedisGraph/redisgraph-bulk-loader


There's missing auto comlete on some git commands

System Details

posh-git version/path: 0.7.3  C:\Program Files\WindowsPowerShell\Modules\posh-git\0.7.3
PowerShell version:   5.1.19041.546
Git version: git version 2.29.2.windows.2
Operating system name and version:  Microsoft Windows NT 10.0.19042.0

Issue Description
I have noticed that there is missing autocomplete on git switch command, which is used to change branches. While autocomplete (tab-complete) works with checkout (it can complete command from "check" and also with tab I can go through suggested branches names), it does not work at all with git switch - it cannot autocomplete command itself as well as it doesn't suggest branches.

switch tab-completion support has been implemented in the v1 beta.  Try updating to that with:
Install-Module posh-git -AllowPrerelease -Scope CurrentUser -Force


What to do when the calculation of eutectic point is inaccurate?

Dear Administrator,
The eutectic point calculated by ESPEI is not consistent with the experimental and T-C phase diagrams. I'm not sure whether there is a problem with the data or an error in the optimization. How do I check my data?

input-data.zip

If you are certain about the eutectic point, one thing you can do is to add the three phase equilibria for that eutectic and increase the weight of that dataset to push the MCMC in that direction.
Something like the following should work
{
    "components": ["AG", "CU", "VA"],
    "phases": ["FCC_A1", "LIQUID"],
    "conditions": {
	"P": 101325,
	"T": [1052]
    },
    "broadcast_conditions": false,
    "output": "ZPF",
    "values":   [
        [["FCC_A1", ["CU"], [0.141]], ["FCC_A1", ["CU"],  [0.951]], ["LIQUID", ["CU"],  [0.38]]]
    ],
    "reference": "Fictitious",
    "weight": 100.0
}

If there is the monotectic transition in the phase diagram,  L-L1+L2,  two liquids phase, can we input it as LIQUID#1 and LIQUID#2?

I don’t think that three phase equilibrium would be useful. See [1] for an explanation of how the phase boundary data are optimized. On the other hand, tie-lines in the miscibility gap that has the two liquids with distinct compositions would likely be useful.
The #1 notation that is used to distinguish composition sets of the same phase in Thermo-Calc is not used in pycalphad or ESPEI, similar to how the fcc phase boundary data are described for your Ag-Cu datasets

[1] B. Bocklund, R. Otis, A. Egorov, A. Obaied, I. Roslyakova, Z.-K. Liu, ESPEI for efficient thermodynamic database development, modification, and uncertainty quantification: application to Cu–Mg, MRS Commun. (2019) 1–10. doi:10.1557/mrc.2019.59.

I think the tie-line in the phase diagram maybe make up of two liquid phases,  [["LIQUID", ["PB"], [0.25]], ["LIQUID", ["PB"],  [NULL]]], when a monotectic transition occurs (L-L1+fcc).  Is that right?

/(ㄒoㄒ)/~~Another error occurs when I add the three-phase equilibria data to the input database refer to your answer. It can work in the parameter generate step, and mcmc optimization also done, but the plot step went error. Would you mind to help me find out what went wrong about my data, please?

Attached files contain the input database, the tdb files, and the mcmc trace files.

AG_CU_20191007.zip


Add drupal7 image based on drupal8

Includes #169 and I'll rebase once that is merged.
Add a drupal7 image, which is actually just the drupal8 image, thanks to the great efforts of @Chapabu!

Ready for review. Base setup works!

Any blocker for this PR to be merged? 🤔

No blockers, just a review :)


[Suggestion] Rain angle option

Maybe add option to set rain angle value and thunderstorm multiplier for it

I second this! The angle at the moment makes it so that standing in a biome such as frozen peaks will render rain instead of snow, and the snow is severely displaced off to the side. Turning on the 'render vanilla weather' setting helps with this, but that sort of defeats the point of having the mod installed. Would love for this to be an option!

it would be epic if the rain angle could change dynamically throughout time, adding another level of realism and immersion into rain and thunderstorms


Add yarn wrapper with Docker

I am creating a pull request for...

[ ] New algorithm
[ ] Update to an algorithm
[ ] Fix an error
[X] Other - Describe below

This change adds scripts/docker-yarn-start.sh which allows serving the pages locally via nodejs/yarn from a Docker image.
This should ease contributions by people who don't have or don't want to install nodejs/yarn but still have Docker.

I think this pull request is not necessary. I feel that the website should move to Next.js, but that’s still in consideration.
This PR could be helpful if we decide not to move!

I guess that was a good choice - as long as it's on the current system, the script can be of help. It's a single standalone script and it will be easy to remove it if and when a migration will be done 😄


Remove uses of 'return self' that don't return copies.

Fixes #776.
Remaining uses of return self are in tests, enter in
context managers and the _LazyProperty descriptor.

@tseaver I also noticed the presence of 6 docstrings that started with """  (a space to start the docstring) and clobbered those. Is this something intentional or just typos?

Coverage remained the same at 100.0% when pulling 04ada738d10705a5960a28b7cbef99df8bf14bc5 on dhermes:fix-776 into 65341aebbfe8f03ce0b907061bce796ebbfb7f00 on GoogleCloudPlatform:master.

LGTM.
The leading space in docstrings is not our convention, so removing it is fine.


[Bug]: java.lang.NoClassDefFoundError when running tests with lang master build

Description
When tests are run with a build of the lang master, there is a bad sad error.
However, I noticed that this is not reproduciable in 2201.8.x that suggests that the bug was introduced after that.
Steps to Reproduce

Create a simple ballerina project with, bal new sample_project.
Add a simple test under tests/test.
Run bal test.

The following error will be received.
bal test
Compiling source
        gayaldassanayake/testddt:0.1.0

Running Tests

        testddt
ballerina: Oh no, something really went wrong. Bad. Sad.

We appreciate it if you can report the code that broke Ballerina in
https://github.com/ballerina-platform/ballerina-lang/issues with the
log you get below and your sample code.

We thank you for helping make us better.

[2024-02-06 18:38:47,587] SEVERE {b7a.log.crash} - ballerina/lang$0046array/0/constants/$_typeref_type_constants
java.lang.NoClassDefFoundError: ballerina/lang$0046array/0/constants/$_typeref_type_constants
        at ballerina.io.1.constants.$_array_type_constants.$populate$arrayType7(Unknown Source)
        at ballerina.io.1.constants.$_array_type_constants.$populate_array_types(Unknown Source)
        at ballerina.io.1.types.$_types.$createTypeConstants(Unknown Source)
        at ballerina.io.1.types.$_types.$createTypes(Unknown Source)
        at ballerina.io.1.$_init.$currentModuleInit(io)
        at ballerina.io.1.$configurationMapper.$initAndPopulateConfigData(Unknown Source)
        at gayaldassanayake.testddt$test.0.$configurationMapper.$configureInit(Unknown Source)
        at gayaldassanayake.testddt$test.0.$_init.main(testddt)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.ballerinalang.test.runtime.util.TesterinaUtils.runTestModuleMain(TesterinaUtils.java:141)
        at org.ballerinalang.test.runtime.util.TesterinaUtils.startSuite(TesterinaUtils.java:130)
        at org.ballerinalang.test.runtime.util.TesterinaUtils.execute(TesterinaUtils.java:124)
        at org.ballerinalang.test.runtime.util.TesterinaUtils.executeTests(TesterinaUtils.java:93)
        at org.ballerinalang.test.runtime.BTestMain.startTestSuit(BTestMain.java:151)
        at org.ballerinalang.test.runtime.BTestMain.main(BTestMain.java:133)
Caused by: java.lang.ClassNotFoundException: ballerina.lang$0046array.0.constants.$_typeref_type_constants
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        ... 18 more

error: there are test failures

Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Test Framework
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

This seems to be occuring due to the dependencies of U9 not being published yet. Everything works fine when the distribution is built and used. Hence closing the issue.


Fix rendering name attribute, reorganize internal types

Previous work missed to properly set name on each form control (inputs) for proper form markup. This was not needed for functionality, but we should strive for proper markup.
Unfortunately this triggered also a cascade of type refactorings, as for internal Glint types to all pass, name (which maps to a key of the passed @data) must be a string, and not any other type that keyof can be (number or symbol). Now we are a bit stricter about types (and more verbose 🙈), dealing only with string-typed keys and such subsets of form data.

name is required for FormData use cases, so this is a great change!


large objects passed and loaded

I have a use case

a large string object has to be passed to the function _foo which is applied for each row of a dataframe
in the function _foo, a trained model is load and predict on the passed text data

The illustration is as follows
import random
import string
import time

from dask.distributed import LocalCluster, Client
import dask.dataframe as dd
import pandas as pd

fake_text = ''.join([random.choice(string.ascii_lowercase) for i in range(2000)])
df = pd.DataFrame(data=(fake_text for i in range(120000)), columns=['text'])

def _foo(text):
    # time.sleep(0.01)
    for i in range (1000000):
        _ = i
    return True

def foo(df):
    return [_foo(x) for x in df]

client = Client(LocalCluster(ip='<IP_ADDRESS>'))
ddf = dd.from_pandas(df['text'], npartitions=16)
start = time.time()
res = ddf.map_partitions(foo).compute()
print(time.time()-start)
client.shutdown()

my question is for such use case

is this the proper way to parallelize using dask?
is there a better way to improve/optimize I/O
the function _foo is also very big because in my real case a big trained model also is loaded in _foo, for such a problem, is map_partition a right choice?

Hi @kwunlyou .  There are a variety of ways to use Dask.  The way that you've laid out here could work, but it's not clear that you need dask dataframes here.  In your case you might also look at dask bag or futures. I recommend that you look at the following documentation:

https://examples.dask.org/applications/embarrassingly-parallel.html
https://docs.dask.org/en/latest/delayed-best-practices.html#avoid-repeatedly-putting-large-inputs-into-delayed-calls

@mrocklin thank you for the response.
Dataframe is used because

the input data is in parquet files and dataframe APIs has IO functions for parquet
this is only a part of the whole job. we also need those dataframe convenient APIs to process/analyze data


Document conditions as a Kubernetes concept

This is a Feature Request

What would you like to be added

Add a page, or section, about conditions in Kubernetes

Ideally, also mention reasons.

Add a glossary entry that references that section

Extra credit: revise existing mentions such as https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions to use a glossary tooltip for the new entry.
Why is this needed
People might want to know what conditions are.
Docs authors might want to use a glossary tooltip for condition rather than explain each time.
Comments
Not sure what conditions are? Please read - but don't plagiarize - https://maelvls.dev/kubernetes-conditions/
/language en
/priority backlog
/lifecycle frozen
/sig architecture

/triage accepted
/help

https://github.com/kubernetes/community/blob/4c9ef2d/contributors/devel/sig-architecture/api-conventions.md has some good details on conditions, too.

/assign

Hi @reetasingh
Would you like any help or advice to work on this issue?

Hi @sftim
Yes I do have some questions.

If we want to add a section to existing page, which page would be appropriate for this?
Are we supposed to cover conditions in generic way? or should it be specific to a resource eg: Pod

Could be wroth it to take a look at https://github.com/kubernetes/enhancements/pull/2537 and https://github.com/kubernetes/enhancements/issues/2527

@a-hilaly I don't understand for whom you're saying it might be worth a look. Can you clarify?

@reetasingh Are you still working on this issue ?

If anyone would like to open a pull request to help with this, that would be helpful.

@sftim I would like to work on this issue,will open pull request soon.

@sftim  I noticed very less activity on this issue so took this up and made a pull request. Can you review my pull request and give me some valuable feedback

/assign

@impact-maker Are you still working on the issue/PR ?


Defaults to home folder if path can't be found

Using os.path.expanduser("~"), a built-in python function, we can open a terminal in the user's home directory. Tries to do this before returning an error. If it can't find the path, it falls back to the old error. Should work on all platforms.
Related to issue #91 .

I can see both sides of the argument here:

No folder in sidebar means it should do nothing
I just want to open a Terminal instead of using start menu shortcuts/similar

@wbond What are your thoughts?

So the original intent of this package is to open a terminal where they are editing. The situation where this comes into play is when editing a file that hasn't been saved yet.
However, it could get a little tricky. For instance, if you open a new file from the sidebar and edit it, but haven't saved yet, then invoke Terminal. Most users would probably expect it to open a terminal at the folder where they clicked "New File", however with this change it just opens the home dir.  If the dir is in a setting, it would be trivial for us to tap into that.
The downside of the error is that it isn't necessarily clear to the user that the issue is they haven't saved their file yet. Perhaps the most user-friendly thing is to improve the error message?
The other possibility is to allow the user to configure if they want a specific folder opened when there is no folder in the sidebar. We could mention this setting in the popup?

As I see it, adding a user-setting to have this option is not a bad idea, regardless of what the default is. Changing the output message to something like "To open a terminal, you must first have an active saved file/folder. Couldn't find a path." is an alternative.

I added the mentioned setting, allowing the user to set priorities.
@twowolfson @wbond

The code looks good. I think my sticking point is if we provide home in the fallback listing, then we'll never get to the message state like @wbond had mentioned before. I'm fine with either scenario but would like a definitive decision from @wbond first

@twolfson and @wbond how would you guys feel about moving this repo to https://github.com/SublimeText? More and more general purpose packages are moving there so that the active members of the community can contribute, more merge requests forward, and in general keep important packages like this healthy. @wbond of course already has access to that org, @twolfson could be added too.
This PR is one I'd like to work on and there are various other minor issues that I would like to improve (I heavily rely on this package day to day), but the current state of these PR's aren't encouraging.


Question:Is it posssible to integrate superset with other web application?

Is it posssible to integrate superset with other web application?

Only through iframes at the moment. We're planning on releasing JavaScript components that leverage our backend in the future.

Hi ,
Thank you for giving me reply.
I am new to superset. Actually what i want is when i click a link in my application, it should redirect to superset and open dashboard page bypassing the login page in a separate window? can you please briefly explain or give me step wise instructions on how to do this.
My mail Id<EMAIL_ADDRESS>Thanks & Regards,
Govardhan

Yes it is. Just delayed.

set up some sort of automated authentication with something like a reverse proxy (using "remote user" authentication) that would have common authentication for both your applications. Or you can have the users authenticate in Superset within the iframe.

@mistercrunch can you elaborate more on this. My application is embedding the iframes from superset, and it also create cookies and i want to use the same cookie for superset authentication as well. How can i achieve it?
Thanks

+1 really looking forward for the js component

any timelines for JS component release ?

People, actually there is an issue for this (and there is a timeline there): #3201

@akasranjan005  Did you found any solution for superset authentication. I am also searching for that. if you found any solution can you explain me.
Thanks

@B121119  you may find this useful , https://medium.com/@sairamkrish/apache-superset-custom-authentication-and-integrate-with-other-micro-services-8217956273c1 ,  we are also searching for some simpler authentication with other services using either API Key or JWT authentication

@sashank  Thank you.. Is it for superset auto-login from other web app.

yeah that is the goal to achieve

Any update so far?

Any updates on this? And how to do the same for windows users..

This issue is closed - I don't think there are any updates coming. Unfortunately.

@mistercrunch hello! any update about this?...thank you!

Hello Friends,
This is kishore can anyone please tell me how to integrate or embedded React with Apache Superset.

Hello,
can anyone please help me out with how to integrate apache superset with the angular application?

Hi,
any update for this issue?

Any update ?

+1

+1

+1

+1

+1

any update this?


declare module parsed as namespace

This input:
declare module "m" {
  export function f();
}

generates this JSON output:
{
	"id": 0,
	"name": "",
	"kind": 0,
	"flags": {},
	"originalName": "",
	"children": [
		{
			"id": 1,
			"name": "\"m\"",
			"kind": 2,
			"kindString": "Namespace",
			"flags": {
				"isExported": true
			},
			"children": [
				{
					"id": 2,
					"name": "f",
					"kind": 64,
					"kindString": "Function",
					"flags": {
						"isExported": true
					},
					"signatures": [
						{
							"id": 3,
							"name": "f",
							"kind": 4096,
							"kindString": "Call signature",
							"flags": {
								"isExported": true
							},
							"type": {
								"type": "intrinsic",
								"name": "any"
							}
						}
					],
				}
			],
			"groups": [
				{
					"title": "Functions",
					"kind": 64,
					"children": [
						2
					]
				}
			],
		}
	],
	"groups": [
		{
			"title": "Namespaces",
			"kind": 2,
			"children": [
				1
			]
		}
	]
}

I was expecting reflection with id = 1 to be of kind = 1 (module), not of kind = 2 (namespace)

Looks like this is because in the AST, this creates a ModuleDeclaration node, which is the same node type created by namespaces.
Should be a pretty simple fix to switch the kind argument to createDeclaration if the name of the node is a StringLiteral - https://github.com/TypeStrong/typedoc/blob/master/src/lib/converter/nodes/module.ts

v0.17.7 released with this :)

Awesome. Thank you!


Fast-Forwarding

This would probably serve better as a discussion rather than an issue, but those are not enabled.
I was wondering whether it would be possible to use libretro's fast forward feature with a locked framerate, and then slowed down when encoding the gif. This would speed up emulation, and make the bot seem a lot more fluid and reactive.

Sorry, nevermind, I now read over the code, and realized that slowness comes from emulating emulating potential autoplay, rather than emulation speed itself.


chore(main): release 1.1.0

A Release PR has been automatically generated based on activity.

1.1.0 (2024-07-09)
Bug Fixes

write to stderr (f027b0b)

Miscellaneous Chores

release 1.1.0 (edc31dc)

Merge this pull request to cut the next release.

:robot: Created releases:

v1.1.0
:sunflower:


containers broken after transition from 2.0-SNAPSHOT to 2.0

The helm lab chart fails on the 2.0 branch (test PR not yet integrated) following the switch from 2.0-SNAPSHOT to 2.0
In the helm chart the version number is possibly not a quoted string in all places, leading to some auto type conversion, which, with just '2.0' is getting converted to the integer 2, and hence the wrong image being picked.
This didn't occur when -SNAPSHOT was part of the name......
However 1.8 seemed ok....  tbc..
For example
 Normal   Scheduled  <unknown>            default-scheduler       Successfully assigned default/lab-odpi-egeria-lab-ui-d9dd97d78-66cnm to <IP_ADDRESS>
  Normal   Pulling    78s (x4 over 2m58s)  kubelet, <IP_ADDRESS>  Pulling image "docker.io/planetf1/egeria:2"
  Warning  Failed     77s (x4 over 2m56s)  kubelet, <IP_ADDRESS>  Failed to pull image "docker.io/planetf1/egeria:2": rpc error: code = Unknown desc = Error reading manifest 2 in docker.io/planetf1/egeria: manifest unknown: manifest unknown
  Warning  Failed     77s (x4 over 2m56s)  kubelet, <IP_ADDRESS>  Error: ErrImagePull
  Normal   BackOff    53s (x6 over 2m56s)  kubelet, <IP_ADDRESS>  Back-off pulling image "docker.io/planetf1/egeria:2"
  Warning  Failed     39s (x7 over 2m56s)  kubelet, <IP_ADDRESS>  Error: ImagePullBackOff

Relates to: #3254

1.1,1.2,1.3 etc would all have been fine.
2.0 failed since it converted to integer 2
Updated values.yaml in both charts to use quoted string.


Doesn't preserve UTF-8

I've got a few Sass files with UTF-8 characters (like § or ◄). Jekyll works well and is able to preserve the encoding (thanks to @charset "utf-8";).
Anyway, when I add this Autoprefixer version, it stops to keep the encoding:
gems:
  - octopress-autoprefixer

I can easily reproduce the issue, adding/removing autoprefixer, without changing anything else.
And if I look into the generated file main.css, I've got these character at the very beginning:
´╗┐html,body(...)

Thanks for the report. I'll try to get this fixed right away. Should I be able to reproduce this bug with a Sass file containing this?
@charset "utf-8";
h2 { before: "§"; }

I just added a test with this test-case and it seems to pass just fine. Is there something I'm missing?

I tried a few things to find the origin, and it seems it happens only when using the sass compressed output:
gems:
  - octopress-autoprefixer
sass:
  style: compressed

Hmm. My testing framework uses jekyll build not serve so I don't think that's the issue.

Would you mind creating a simple test site with only the Sass file? You could run jekyll new test-utf8 and then add autoprefixer to the gems and the Sass file. Then run jekyll build` to see if it handles the UTF-8 conversion okay.

Here's what I've done:
jekyll new test-utf8
cd test-utf8/_sass
printf '' > _syntax-highlighting.scss
printf '' > _layout.scss
printf '@charset "utf-8";\n\n::selection { color: red; }\nh2 { &:before { content: "§" } }' > _base.scss
cd ..
printf '\ngems:\n  - octopress-autoprefixer' >> _config.yml
sed -i 's/baseurl: ""/baseurl: "\/test-utf8\/"/' _config.yml
jekyll build

And the result:
@charset "UTF-8";
::-moz-selection {
  color: red; }
::selection {
  color: red; }

h2:before {
  content: "┬º"; }

Thanks for the easily repeatable test case! I just ran the exact same thing on my system and my resulting CSS file looks like this:
@charset "UTF-8";
::-moz-selection {
  color: red; }
::selection {
  color: red; }

h2:before {
  content: "§"; }

I'm running OS X 10.10.3 and I don't have any UTF-8 encoding stuff in my bash profile. Do you think this may be something to do with your OS setup?

I think it could, I'm running Windows 7 x64.
It's not the first time I'm facing encoding issues with Ruby stuff, but usually it's OSX which gives me a headache.
I'll investigate.

As a side note (it's probably related), I sometimes get this error when I build a Jekyll blog:
jekyll 2.5.3 | Error:  "\x9D" to UTF-8 in conversion from Windows-1252 to UTF-8

This blocks the build, and comes from octopress-autoprefixer (see the following trace):
$ jekyll serve --trace
Configuration file: C:/wamp/www/blognew/_config.yml
            Source: C:/wamp/www/blognew
       Destination: C:/wamp/www/blognew/_site
      Generating...
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/execjs-2.5.2/lib/execjs/encoding.rb:22:in `encode': "\x9D" to UTF-8 in conversion from Windows-1252 to UTF-8 (Encoding::UndefinedConversionError)
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/execjs-2.5.2/lib/execjs/encoding.rb:22:in `encode'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/execjs-2.5.2/lib/execjs/external_runtime.rb:8:in `initialize'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/execjs-2.5.2/lib/execjs/runtime.rb:44:in `new'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/execjs-2.5.2/lib/execjs/runtime.rb:44:in `compile'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/execjs-2.5.2/lib/execjs/module.rb:27:in `compile'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/autoprefixer-rails-<IP_ADDRESS>40804/lib/autoprefixer-rails/processor.rb:31:in `processor'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/autoprefixer-rails-<IP_ADDRESS>40804/lib/autoprefixer-rails/processor.rb:20:in `process'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/autoprefixer-rails-<IP_ADDRESS>40804/lib/autoprefixer-rails.rb:10:in `process'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-autoprefixer-1.0.1/lib/octopress-autoprefixer.rb:37:in `block in prefix'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-autoprefixer-1.0.1/lib/octopress-autoprefixer.rb:36:in `open'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-autoprefixer-1.0.1/lib/octopress-autoprefixer.rb:36:in `prefix'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-autoprefixer-1.0.1/lib/octopress-autoprefixer.rb:30:in `block in process'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-autoprefixer-1.0.1/lib/octopress-autoprefixer.rb:29:in `each'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-autoprefixer-1.0.1/lib/octopress-autoprefixer.rb:29:in `process'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-autoprefixer-1.0.1/lib/octopress-autoprefixer.rb:18:in `post_write'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:223:in `block in write'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:222:in `each'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:222:in `write'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:53:in `process'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/command.rb:28:in `process_site'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:56:in `build'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:34:in `process'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/commands/serve.rb:26:in `block (2 levels) in init_with_program'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
        from C:/Ruby200-x64/bin/jekyll:23:in `load'
        from C:/Ruby200-x64/bin/jekyll:23:in `<main>'

It could helps you to find the origin of this issue, and helps me to find how to set my environment to avoid this kind of disagreement.

Have you looked at this? http://jekyllrb.com/docs/windows/

It seems to works!
Still doesn't work with Cygwin, but it does with native Windows console. So I need to specify the console code page to 65001. I found this in octopress source, which confirm my case.


Type inference fails with nested arrow function callback with block

Bug Report
🔎 Search Terms
callback, block, inference, double
🕗 Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about arrow functions
⏯ Playground Link
https://www.typescriptlang.org/play?#code/GYVwdgxgLglg9mABAJwKYAdlwDwBUB8AFAPoQLAwDmAXIgN4BQii6AhsqwLYDOtuA3E0QRWAG1EAjVhADWtQmw48+ASkQBefIgXsuvRLjWbEYEJwmpkggL4raANzgwAJvRSooIZEmsMGaTDhCRmZFPVoARgAaIRFxKVl5Iy06d09vRFYNLSyAakQIxGsoxAB6UsRwGTA4AHcwBltBAKxgoTDlApjmOMlpOURiCWy3NHSkLOM8gqKS8sQEUQBPRGcYYGBLVEhURBhuRCgAC12qGrRXDsaVZoxWkJZdTujYsT7E7WTMkenosorFis1hstjs9gdjrtRP0FsBEAADVJjLxIAB06KK8Ou-CAA
💻 Code
function repro<T>(_config: {
  params: T;
  callback: (params: T) => (params: T) => number;
}): void { return }

repro({
  params: 1,
  callback: () => { return a => a + 1 }, // a is unknown
});
repro({
  params: 1,
  callback: _b => { return a => a + 1 }, // a is a number, only difference is the ignored outer param
});
repro({
  params: 1,
  callback: () => a => a + 1, // a is a number, only difference is the lack of `{ return ... }`
});

🙁 Actual behavior
The type of a ends up being unknown, but only if no parameter is declared and a block is used in the outer callback.
🙂 Expected behavior
The type of the inner callback parameter a should be known in all 3 cases.

In my project I stumbled over a similiar case:
class Test {
  array = [1, 2, 3]
  optional?: number

  public methodError(): void {
    if (!this.optional) return;

    this.array.forEach((x) => {
      x = this.optional; // Type 'number | undefined' is not assignable to type 'number'. Type 'undefined' is not assignable to type 'number'.(2322)
    });
  }

  public methodOk(): void {
    this.array.forEach((x) => {
      if (!this.optional) return;
      x = this.optional;
    });
  }
}

Let me know if this is different problem, then I'll open a new issue.

@Urtgard your problem is different and it's a not a bug, take a look at the inline explanation that I have added in this TS playground

function fn<ToInferred>(
  callback: (unused: string) => {
    key: ToInferred;
    keyCallback: (key: ToInferred) => number;
  },
) {}

fn(() => ({
  key: 5,
  keyCallback: (key) => {
    return key;
  },
}));

fn((unused) => ({
  key: 5,
  keyCallback: (key) => {
    return key; // key is unknown.
  },
}));

Same issue here... I hope it will be fixed at v4.9.2


Refresh on emptyDisplay

Right now you can't refresh when emptyDisplay is shown. This is because emptyDisplay isn't a child of a Scrollable.
I have solved it like this but it would be nice if this was the default behaviour.
    RefreshIndicator(
      child: PaginateFirestore(
        ...
        emptyDisplay: LayoutBuilder(
          builder: (ctx, constraints) => SingleChildScrollView(
            physics: AlwaysScrollableScrollPhysics(),
            child: Container(
              height: constraints.maxHeight,
              child: EmptyDisplay(),
            ),
          ),
        ),
      ),
    );

Thanks for a great package!

I will fix this in the next version @Kal-Elx

I will fix this in the next version @Kal-Elx

I also face this issue.
On emptyDisplay it will hides my header (SliverPersistentHeader) too.
Waiting owner to fix this issue.
`
PaginateFirestore(
header: SliverPersistentHeader(
pinned: true,
delegate: _SliverSubMenuDelegate(/submenu with categories/)
),
    itemBuilder: (index, context, documentSnapshot) {
      final data = documentSnapshot.data() as Map?;
      if(data == null) return Center(child: CircularProgressIndicator());
      return Text(documentSnapshot.id);
    },

    query: FirebaseFirestore.instance.collection('article')
            .where('article_category', index)
            .orderBy('article_date', descending: true),

    key:ValueKey<String>(selectedIndex.toString()),

    itemBuilderType: PaginateBuilderType.listView,

    isLive: true,

    itemsPerPage: 5,
  );

`

Hi @irshaadMax and @Kal-Elx. This is now fixed in the latest update v1.0.2.

Thanks for using the package. Feel free to reopen this if you face any similar issues.


Dependency Container Initializes at every request

Slim docs say that container is initialized once and is provided where it's needed. Is this once in the application lifecycle or the request response cycle?
I have to create a custom library object which I add as a service to the container.  The object is initialized by a JSON file that is downloaded from a http address. The problem that I am facing is that on every single request the datafile is downloaded and object is initialized again. This makes the app very slow. I obseeve similar behavior with any other controller that I register as a service. How do I solve this? I want some sort of static persistence till the server stops

There is no way to solve your problem with Slim directly. I would say what you are doing is a huge anti-pattern regardless of whatever framework / language you are using.

This has nothing to do with the design of Slim, but with the typical lifecycle of PHP-based applications. Everything is initialized on every request. It is a “share-nothing” architecture, which has its pros and cons. Long initializations are better off with some kind of caching - it’s up to you to choose the more appropriate mechanism, be it a flat file, Redis, Memcached, some RDBMS.
As an example, Doctrine Cache is a component that wraps common cache backends such as Memcached and Redis (and it’s not to hard to implement an adapter for another backend you may need) and provides a simple common interface for them all.

Do you mean that is it Okay for Slim to initialize just every service in container for every single request? How does slim work with professional apps?
I have been working in Python Flask, which is also a microservice framework, and it does provide static persistence.

PHP doesn't work like Python. At the end of every request, we tear everything down and start again for the next request. This means that there's no state between requests. Given the number of PHP applications in the world, you can assume that state between requests is not a requirement for "professional apps". This isn't Slim related; it's how PHP works.
In this case, I would download the JSON and cache it to a local file or a fast key value storage like Redis or memcache. You there's plenty of caching libraries for PHP.

@edudobay  and @akrabat Thanks a lot for the explanation

Closing as resolved.