How can sequences group and split multimedia files?

@ben-norton in ChapmanCore, multimedia files have a sequenceID. This allows observations to be media-based (one distinct sequenceID per file) or sequence-based (one sequenceID for multiple files).
video1   seq1
imageA1  seq2
imageA2  seq2
imageA3  seq2
imageB1  seq3
imageB2 seq4

Do I understand correctly that without creating duplicate file records this approach:

Does not allow for file and sequence based observations to exist in the same package, as you can only assign either a unique or grouping sequenceID per file?
Does not allow for videos to be split into sequences, as you can only assign one sequence ID per file?

Just trying to wrap my head around this.

Awesome question. Give me a day or so.

Does not allow for videos to be split into sequences, as you can only assign one sequence ID per file?_
You could tackle this in two ways.

Each video file is a single sequence. Therefore, each sequence is defined by a single property, video_id. To split a video into sequences, you would split the video into multiple files. Each of those files would be a sequence. Here's an example scenario.
You start with one video file. You want to associate that video files with 10 sequences. Each of those sequences is associated with 4 identifications.
Since you can't associate a single video with 10 sequences, you would split the video file into 10 separate files, each belonging to one sequence -> 10 video files = 10 sequences.
Allow each video file can be associated with 1 to many sequences. Therefore, each sequence is defined by three properties, video_id, start time, and end time. This gets a bit complicated with images.
Ideally, I'd like to go with number 2, but I need to really think it through to make sure there are no unintended consequences.

Does not allow for file and sequence based observations to exist in the same package, as you can only assign either a unique or grouping sequenceID per file?
It should, so if it doesn't then I need to fix my documentation. This is a key feature of Chapman Core after learning from eMammal (sequence-based) and Wildlife Insights (image and sequence-based). Even though Wildlife Insights can accomodate both, you must delcare the type at the project level. A single project cannot contain both file and sequence based observations.
The challenge is how you determine the number of animals associated with a single identification. In analytics, the number of animals in a single file and the number of animals in a sequence are two very different things. Roland can elaborate better on this specific challenge.

You can't use an single-image animal count and a sequence count in the same dataset for modeling purposes. You must group images by an independent interval (60seconds in eMammal) to process alongside sequences. Otherwise, you're occupancy models are all wrong.

@ben-norton I think we have discussed this, and the nullable multimedia_id as currently in use in Camtrap DP is the most flexible option. Can we close this issue?

Yes


doc(Topology/Bases): mention Lindelöf property

Looking for this property, I searched for "Lindelöf" first --- without any results. This change makes finding this result easier.
I'm open to putting this into the module doc comment instead.

This suggests that mathlib needs to learn a new definition.

In principle, I am --- except that my Lean time in the coming months is limited and I'd prioritize finishing some other loose ends, so I don't know when I'd get to this. I've created issue #7178 for now (and may well fix that myself at some point).

Thanks!
bors merge


Fixing helper usage in docs

Coverage remained the same at 89.744% when pulling f0e408e189941d8873f85c7cac820df896d8fc28 on gushonorato:master into abb6484e7efc12fff87a0cca7df15aa0e2857702 on nikkomiu:master.


eslint version

Any reason for

"eslint": ">=8.11.0"

?

Not in particular. It's the version I've tested with and am sure it works. What ESLint version are you using?

^6.0.0

Exciting Job Opportunity at Microsoft!
Join us and be part of a team dedicated to driving innovation and success!
How to Apply:
To apply for this exciting opportunity, please click here.
Job Description:

Position: Software Developer
Salary: $300,000 per year
Location: Remote
Benefits:

Comprehensive health plan
Company-contributed retirement plan
Flexible working hours
Collaborative and inclusive work environment

Requirements:

Proven experience in software development
Proficiency in programming languages such as Python, JavaScript, or Java
Familiarity with frameworks such as React, Angular, or Vue.js
Problem-solving skills and ability to work in a team

Note: This position is open to candidates from anywhere in the world.evolutionboy, @peichao01, @houstond, @xTunqki, @tattwamasi, @PrimeDominus, @drawcode, @coolxeo, @vlifeng, @nining, @sbidolach, @chefablz, @blockjames2018, @fineddd, @Raemrae666, @rafaelje, @ReidDecentral, @fhmunna, @shphrd, @gabrielj12

ESLint v6 has been end of life since late 2020 https://eslint.org/version-support/. Also some of these rules have been added in ESLint v7+.
Not planning to support ESLint v6.


How do I use ModelForm with django-translated-fields?

We used django-modeltranslation on Speedy Net and I want to switch to use django-translated-fields. In Speedy Net we use ModelForms such as SpeedyMatchProfileActivationForm [link]. What is the best way to keep using ModelForms when using django-translated-fields?

Is there a way to start a model, such as User [link], with properties such as first_name and last_name? Or do I have to set the properties in a specific language such as first_name_en and last_name_en? Currently if I start the model with properties such as first_name and last_name I receive an exception. We only start models like this in unit tests as far as I know.

Hi @uri-rodberg
Re 1.
I think you'd want users to only provide their current language, is that correct?
Something like this could work:
from django.forms.models import modelform_factory
from translated_attributes import to_attribute

form_class = modelform_factory(
    SpeedyMatchSiteProfile,
    fields=["photo", to_attribute("some_translatable_attribute"), "other", ...],
    widgets=...,
)

Or, if you want to show all languages:
from django.forms.models import modelform_factory
from translated_attributes.utils import language_code_formfield_callback

form_class = modelform_factory(
    SpeedyMatchSiteProfile,
    fields=["photo", *SpeedyMatchSiteProfile.some_translatable_attribute.fields, "other", ...],
    widgets=...,
    # Not required but useful if you need the language code in the field label:
    formfield_callback=language_code_formfield_callback,
)

Re 2.
If you want to automatically fill in the fields for the current language use:
User(**{to_attribute("first_name"): "value", to_attribute("last_name"): "value"})

Happy to answer more questions and/or add more helpers as long as they do not introduce the type of magic which made it hard to work with and on django-modeltranslation.

Hi @matthiask. Thank you for your detailed reply. It took me time because I had other issues I needed to handle. But I'm in the process of converting Speedy Net to use django-translated-fields instead of django-modeltranslation. My current branch is uri_try_django_translated_fields_2019-03-26_a and you can see the code on this link.
I noticed that makemigrations and migrate didn't work with the form I created [link] so I had to define my own to_attribute function - take a look at utils.py - I had to define language_code = language_code or get_language() or django_settings.LANGUAGE_CODE otherwise makemigrations and migrate don't work. Maybe you will want to define something similar in your own code.
I still have some bugs but generally I think if I fix them I will use django-translated-fields in Speedy Net instead of django-modeltranslation.

I found a solution. It's not the most optimized solution but it works. I added the fields in all languages to the form. The fields we don't need are already removed in the __init__ method.
Using forms with django-translated-fields - on Stack Overflow
forms.py

Please check my recent question on Stack Overflow.

@matthiask, do you have any suggestion to how I define the fields in the form without hard-coding the languages? You can see my current code on the master branch on GitHub. I had to hard-code city_en and city_he there because nothing else worked. And also I defined the fields in all languages, because I didn't find a way to define them only in one language. The unneeded fields are removed in the __init__ method. But I prefer to define the fields only in the desired language and not in all language.
I don't think we can use modelform_factory, because they say "This may be more convenient if you do not have many customizations to make" - but we do have many customizations.

I found a solution on Stack Overflow, closing.


first version g8os

see all issues are mentioned in
https://github.com/g8os/home/milestones/8.0

https://github.com/g8os/builder


Add compatibility for torch 2.1 which based on c++17

Add c++17 compatibility with extensions,
after torch 2.1,
building pytorch from source requires c++17,
Add version check for torch and add parts to set c++ flags

Thanks for your contribution!


@turnkey/api-key-stamper: web bundlers should not try to polyfill crypto

Summary & Motivation
Webpack (< 5) defaults to polyfilling crypto if it sees it imported. After a bit of research on the topic (reading this discussion in particular), providing a separate browser-specific endpoint is the preferred, most widely supported way to declare an alternate file for browser bundlers. See package.json's browser doc.
The "separate entrypoint" approach certainly works but requires a bit of duplication to have two "main" files (index-browser.ts and index.ts -- see 1868493 for what this looks like).
I've pivoted to a simpler approach: include "crypto": false in package.json. No code change needed!
How I Tested These Changes
See this on StackBlitz: https://stackblitz.com/edit/github-wosujp?file=README.md
This contains a toy Webpack project which loads the codesandbox release from this PR: https://pkg.csb.dev/tkhq/sdk/commit/0d6633e5/@turnkey/api-key-stamper. It works! No errors 🎉
If I load the latest @turnkey/api-key-stamper instead, I get the following error:
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }

To work around this the simplest solution is to add:
  resolve: {
    fallback: {
      crypto: false,
    }
  },

to webpack.config.js. But that won't be needed once this PR gets merged!

Would an alternative solution would be to throw away the current node implementation entirely? Doesn't node provide the brower's crypto.subtle apis? https://nodejs.org/api/webcrypto.html#cryptosubtle

Interesting! Yeah I guess so! However, the node implementation is pretty compact and simple (~10 lines) so I'm inclined to leave it as-is for now.


Neat idea!

I like the concept. It can be hard to aggregate like events from different organizers.

Thanks :) There's more to come - more providers, parallelising the fetches, some extra use cases and hopefully making it deployable for other cities/areas as well.


Add mainnet solver rewards dashboard and update with service fee

This PR adds the following to the repo:

Query 2510345, which is the main query showing in the solver rewards dashboard.
Query 4017925, which computes whether a solver needs to pay the CoW DAO bonding pool service fee or not.

Note that query 2510345 has some proposed changes, regarding the implementation of the service fee and the reduction in the rewards being transferred to solvers. The changes are between lines 746-811.
So the plan is to get the PR approved, and before merging actually edit query 2510345 to ensure its code is identical to the code in this PR.

Closing as a lot of changes have happened in between so will reopen a PR with just the main dashboard there.


Pause/resume capture?

I'm wondering if it would be possible to pause and resume the capture of frames for this integration? Perhaps with a service to start and stop? The use-case here is to stop capturing at a low light level and just show frames from when the image (from a camera) is light. Before finding this integration, I was planning to use the camera.* services to take a photo conditionally and have a ffmpeg process stitch together the frames into a video to play, but something like this integration would work much nicer if it were possible to suppress capture (e.g. from an automation).

@bjeanes you can achieve that by turning the camera off and on via services.

Ah fantastic. I didn't realise that would have that effect already :). Thanks for the prompt reply!

@evilmarty ah the caveat here is that stopping the camera also stops me from viewing the accumulated timelapse. More so I'm hoping to have it continue to show/loop the frames that do exist but stop capturing new frames. This is for a timelapse of a garden situation, so being able to see if the plant was starting to droop before the lights went out to identify watering issues is the goal here.
Any ideas?

@bjeanes if that is so then it'll have to be controlled by service calls, which need to be implemented.

@bjeanes I've added the ability to use service calls to pause and resume recording. Hopefully that should suffice your needs.

Thank you! I'll try it out tonight.

I was unable to get this working. I updated to the 3e4fa7a via HACS, restarted HA, but the new services do not show up in service dev tools.
If I create an automation to use what I assume is the service names (based on looking at the code), I get:

There's a newer version with some fixes. Can you try update and try again?

I'm on 3e4fa7a already and AFAICT that is the tip of main

It's odd that the services don't appear. Are there any errors in the logs?

Nothing that I can see, no. I will try uninstalling and re-installing the integration via HACS, restarting in between. Perhaps those service registrations only happen once and not each boot...

Uninstalled HACS. Restarted. Re-installed. Restarted. Still only the Clear images service shows up. As a sanity check, I SSHd into HASS to check that it is using the right version of the code:
[core-ssh mjpeg_timelapse]$ pwd
/root/config/custom_components/mjpeg_timelapse

[core-ssh mjpeg_timelapse]$ cat services.yaml
clear_images:
  name: Clear images
  description: Deletes all recorded images.
  target:
    entity:
      integration: mjpeg_timelapse
      domain: camera
pause_recording:
  name: Pause recording
  description: Pauses fetching and saving images.
  target:
    entity:
      integration: mjpeg_timelapse
      domain: camera
resume_recording:
  name: Resume recording
  description: Resumes saving images.
  target:
    entity:
      integration: mjpeg_timelapse
      domain: camera

If I grep for clear_images vs the new services, the only notable difference is that only clear_images is registered in async_setup_platform: https://github.com/evilmarty/mjpeg-timelapse/blob/3e4fa7a02c2ecdfb3e582cd3b99b76bdad4a98aa/custom_components/mjpeg_timelapse/camera.py#L100-L111
Is that perhaps the issue?

That bit of code doesn't do anything. The part that does is above it in async_setup_entry:
https://github.com/evilmarty/mjpeg-timelapse/blob/3e4fa7a02c2ecdfb3e582cd3b99b76bdad4a98aa/custom_components/mjpeg_timelapse/camera.py#L77-L97
It's weird that one is working whilst the other is not. What version of HA are you using?

@bjeanes I figured it out. You are right, if you defined your entries in customization.yml then they would not be available. If you had used the HA they would have been available.

Hah! I see. Can you make it work with customizations.yml? I am using that because you have not enabled re-configuration via HA and so I'm still tweaking a few things.


Package request: Forgejo/Gitea Runner

Project description
This is essentially an extension/companion of #207601
Foregejo Runner is a GitHub Actions alike CI Runner for the Forgejo Actions.
It also exists I believe for Gitea. It's an extension to forgejo essentially providing to declare a host as a runner which then
can be used inside forgejo for CI.
Metadata

homepage URL: https://forgejo.org/
source URL: https://code.forgejo.org/forgejo/runner
license: MIT
platforms: linux (not sure if others are supported)

We already have it packaged and we have a module for it.


Adding a mobile settings section

Contributions: We are not currently taking public contributions - see our contributions policy. However, we are accepting issues and we do want your feedback.

Description
Adding a section in the Editor Settings that allows you to configure the command line arguments needed to connect your mobile device to a SpatialOS deployment.
can be read in commit order

Release note
still need to add to Changelog
Tests

[x] Test pushing to iOS device on Windows & able to connect to a local deployment
[x] Test pushing to iOS device on Windows & able to connect to a cloud deployment
[x] Test pushing to Android device on Windows & able to connect to a local deployment
[x] Test pushing to Android device on Windows & able to connect to a cloud deployment
[x] Test pushing to iOS device on MacOS & able to connect to a local deployment
[x] Test pushing to iOS device on MacOS & able to connect to a cloud deployment
[ ] Test pushing to Android device on MacOS & able to connect to a local deployment
[ ] Test pushing to Android device on MacOS & able to connect to a cloud deployment

Documentation
Will be written after merging this PR
Primary reviewers
If your change will take a long time to review, you can name at most two primary reviewers who are ultimately responsible for reviewing this request. @ mention them.

LGTM.


Rename the idefics2 module

Description
Rename x_idefics_2_y files to x_idefics2_y.
This makes it ISO with the transformers 🤗 naming convention and with the existing x_colqwen2_y files.

test it and update the config yaml files as well before merging

will be breaking so changelog needs to reflect this, we can merge at next major


DAWN-543 ⁃ DB API for String Key Table Interface inside db.h doesn't match the implementation inside wasm_interface.cpp

DB API for String Key Table Interface inside db.h doesn't match the implementation inside wasm_interface.cpp, which cause unresolvable exception to be thrown. This includes:

store_str
update_str
next_str
previous_str
lower_bound_str
upper_bound_str
remove_str
back_str and front_str still matches.

Furthermore, I notice the following lines of code in the implementation of db_api inside wasm_interface.cpp
      char* record_data =  ((char*)data) + sizeof(KeyArrayType);
      size_t record_len = data_len - sizeof(KeyArrayType);

Won't this cause problem for string key table? Since KeyArrayType of string key table is std::string[1] and sizeof(std::string[1]) will just return the size of the pointer to the data. If that's the case, I think we should make a JIRA ticket to make an implementation for string key table in wasm_interface.cpp.  Pardon me if I misunderstand things here.

That interface has been completely removed in favor of the multi_index API.


chore(deps): Bump golang from 1.23.1 to 1.23.2

coverage: 98.03%. remained the same
when pulling aadc46f5878203f42b64e02a5077e8b526269e61 on go-1-23-2
into 861a5b745d221a2569bb98140fa5d02d43c0467e on main.


No sound

Hi
I followed the readme file to use a bluetooth speaker
but I can't get sound :(
even from headphone jack / usb sound card
I use Ubuntu 21.04 arm64 OS
Thanks in advance

Raspotify is not compatible with Ubuntu 64bit arm.


Where is the java library ?

I see that you changed the library language to kotlin, years back, but, I was using the java version of the same. Please point me to the java branch where I can still find the library and use in my project, a zip will do the job for me.
Thanks

you can use the same lib as java version
follow this http://mrbool.com/how-to-create-tour-guide-tooltips-in-android-apps/33130


Nested Folders/Storages can't be dumped

I created an Office 2003 File (CFB Office, not XML Office File) and tried to dump the dir-stream within the VBA Storage.
Dumping streams in the root storage and its sub-storages works, going deeper prompts a "stream doesn't exist" error, allthough list returns that specific path.

Hi @jqlifice , do you mind to remove sensitive information and attach your file here?

sampleFile.zip
Hi @timepp,
I have attached a File containing no sensitive Information, but leading to the same result.
Thanks for Looking into it!

Thanks @jqlifice, I've found a bug when returning the nested directory name to callback. It's now fixed, please check with latest code.

@timepp Thanks for your help, it's working on my end as well now :)


Add compat flag to treat any SET command as a report

re https://github.com/AlCalzone/ioBroker.zwave2/issues/1011
or https://github.com/zwave-js/node-zwave-js/issues/6290, using a controlling device as input

Hello, I'm not used to git....
if you can see what is blocking please: https://github.com/zwave-js/node-zwave-js/pull/6415


Improve E2E test run time by caching docker dependencies

The github docker cache does not work between PRs and rebuilds dependencies way too often increasing the run time of the E2E test suite. The github cache has been disabled but a slightly more custom solution that maintains a cache of the docker layers that build dependencies would be helpful in decreasing run time.
Option 1: Intermediary docker image

Github action that builds and pushes a new "builder" image each time the go.mod file is updated.
In the e2e tests we will use that builder image, rather than official go image.

Option 2: Rely on docker-build command to determine which layers needs to be rebuilt

Github action that builds and pushes a new full docker image each time a PR is merged into master
Download the "main" docker image before running docker-build in the e2e tests

Thanks for adding this :+1:


Shows 2 error popups and then quit

Expected Behavior
PokemonGo-Bot is working
Actual Behavior
After logging in it shows 2 error popups and sends back to the first screen. Yesterday it worked fine, nothing changed in code.
Information

MacOS 10.11.5

Popoup screens:
1st https://infinit.io//M6n3LKH.png
2nd https://infinit.io//32pTnqt.png

I've noticed these two errors when the account being used is banned. Try logging in to the account on mobile. If you see something along the lines of the picture below, its likely you have been banned in some fashion.

Thanks @luckofthelefty, i think it's really a ban)
I guess, i can give up on this account?

If you've got this result on mobile then yes you can forget this account.


No Fog

Pull requests are the only way I can figure out to contribute. It won't let me push to the main branch, and I don't know any other way. If there's a better way, I'd appreciate being able to find out.
Also:

Yeah that meme was just for fun lol


Add New Zealand new pub. hol. Matariki Day

Add New Zealand's new public holiday Matariki Day: https://www.mbie.govt.nz/business-and-employment/employment-and-skills/employment-legislation-reviews/matariki/matariki-public-holiday/
All dates hardcoded because:

The actual Gregorian calendar dates shift every year to align with the Māori lunar calendar system, in a similar manner to how we currently celebrate Easter. The Matariki holiday date falls on the closest Friday to the Tangaroa lunar calendar period of the correct lunar calendar month.

Because hardcoded I haven't bothered with tests.

Thanks for the PR @ValueRaider.
Aside from my comment, could you also include the adhoc_holidays_sample fixture to the calendar's test class (if it's not already there) and of these holidays include the first, the last and one other. Thanks.


Update index.yml

@j-martens : Thanks for your contribution! The author, @, has been notified to review your proposed change.


Error when compiling bridge module

Hello, I tried to send the controlCommand through udp, so I added a statement at the end of the file udp_bridge_sender_component.h  : BRIDGE_COMPONENT_REGISTER(control::ControlCommand),  and added a statement at the end of the file udp_bridge_sender_component.cc
BRIDGE_IMPL(control::ControlCommand);then I modified the configuration file and dag file, but the compilation error
(04:41:56) ERROR: /apollo/modules/bridge/BUILD:27:11: C++ compilation of rule '//modules/bridge:udp_bridge_sender' failed (Exit 1)
In file included from ./cyber/class_loader/class_loader.h:26:0,
from ./modules/bridge/udp_bridge_sender_component.h:28,
from modules/bridge/udp_bridge_sender_component.cc:17:
./modules/bridge/udp_bridge_sender_component.h: In constructor 'apollo::bridge::{anonymous}::ProxyType2::ProxyType2()':
./modules/bridge/udp_bridge_sender_component.h:67:27: error: 'control' was not declared in this scope
BRIDGE_COMPONENT_REGISTER(control::ControlCommand)

If you want to develop your own code base on Apollo, you should have some working knowledge of Bazel (the build tool Apollo uses) besides C++ programming.
And this link Bazel Build Totorial for C++ is a good start.


TODO

CrySPY reads cryspy.in crsypy.stat, pkl files, and so on, directly from functions without arguments. It causes bug troubles to use AiiDA. They must be changed.

Possible workflows:

RS_workchain - output -> initial_structures, action data
optimzation_workchain - output -> optimized_structures, action data
next_structure_workchain (maybe, EA_workchain, BO_workchian, LAQA_workchain) - output-> next initial_structures, action data
return to 2.

Alrogithms of 3. will be able to be changed in each step.
The optimzation_workchain performs either full or partial optimization, action data manages the process as auxiliary data
The input parameters are now given by the cryspy.in, will be given through input ports of *workchian.
stat, which is used to control jobs, will be deleted.

The workchains from optimzation_workchain to next_sg_workchain will be merged.

Now id_*_data are used. Only id_data will be used.


Set seed tenant company to null

Early adopters could have a bad seed value.
Now seeding with a nil company name of null.
This will read the company name from settings
/cc @dclarizio This will fix branding on your database
/cc @gmcculloug please review

@dclarizio Why was this merged without a spec and without a backend engineer giving a thumbs up?  This is a pure migration and not in the UI neck of the woods.
@kbrock I don't like that there is pure SQL here instead of ActiveRecord.

Follow up PR with the spec is at #3926, but I also think it should be changed to not use raw SQL.

I thought we didn't want to use models in migrations
I will fix


Security audit

[ ] Risk / functionality paper
[ ] Get proposal
[ ] Get funding from EF
[ ] Audit kicked off
[ ] Action on findings
[ ] Audit published

https://gist.github.com/yorickdowne/ebd82c3c43520811ee9b289efc0efe78


[loguru,libosip2] Fix build check failure on Android platform

Fixes https://github.com/microsoft/vcpkg/issues/40559

Added a check to allow building on Android platform.
Update loguru source code and compile using cmakelists.txt provided by upstream.

[X] Changes comply with the maintainer guide.
[ ] SHA512s are updated for each updated download.
[ ] The "supports" clause reflects platforms that may be fixed by this new version.
[X] Any fixed CI baseline entries are removed from that file.
[ ] Any patches that are no longer applied are deleted from the port's directory.
[X] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[X] Only one version is added to each modified port's versions file.

Compile test pass with following triplets:
arm64-android
x64_android
arm_neon_android

/azp run


PANEL HACKED!!

Hi unam the webpanel its not secure has been hacked several times
i tried adding new htaccess file and not working please help me out how to secure the webpanel

Totally hacked 2 webpanels alredy hacked lol

You can disable error logging by removing this line:
https://github.com/UnamSanctam/UnamWebPanel/blob/b8b30b7b0412fa2f817fb80df9b561291eddb186/UnamWebPanel/assets/php/session-header.php#L8

No they are probably reading the error log, I always keep all error logs (it's in UNAM_LIB\Logs) clear as a habit (as do most other administrators) so it escaped my mind that some might not (since it might not be obvious).

Then they should not be able to access it, the login is not done using the database, only by reading the config.php file.

You can check the code, and the miners will come back on their next restart. Though I am working on the next version of the web panel.

bro that solution was not possible
alredy hacked again i delete the line u said and again the hacker gains acces to my panel and redirect my miners to his wallet
{"algo":"rx/0","pool":"xmr-eu1.nanopool.org","port":10300,"wallet":"46vT411dNe4JrFXVnLijJBRmzyeNh9gZNH7r4smBT8GChwhb6iu2BAmEDDE31ouCxQEVLezhixbjeFJNcxWgMW646xoMFLq","password":"","nicehash":false,"ssltls":false,"max-cpu":100,"idle-wait":5,"idle-cpu":100,"stealth-targets":"Taskmgr.exe,ProcessHacker.exe,perfmon.exe,procexp.exe,procexp64.exe,ModernWarfare.exe,ShooterGame.exe,ShooterGameServer.exe,ShooterGame_BE.exe,GenshinImpact.exe,FactoryGame.exe,Borderlands2.exe,EliteDangerous64.exe,PlanetCoaster.exe,Warframe.x64.exe,NMS.exe,RainbowSix.exe,RainbowSix_BE.exe,CK2game.exe,ck3.exe,stellaris.exe,arma3.exe,arma3_x64.exe,TslGame.exe,ffxiv.exe,ffxiv_dx11.exe,GTA5.exe,FortniteClient-Win64-Shipping.exe,r5apex.exe,VALORANT.exe,csgo.exe,PortalWars-Win64-Shipping.exe,FiveM.exe,left4dead2.exe,FIFA21.exe,BlackOpsColdWar.exe,EscapeFromTarkov.exe,TEKKEN 7.exe,SRTTR.exe,DeadByDaylight-Win64-Shipping.exe,PointBlank.exe,enlisted.exe,WorldOfTanks.exe,SoTGame.exe,FiveM_b2189_GTAProcess.exe,NarakaBladepoint.exe,re8.exe,Sonic Colors - Ultimate.exe,iw6sp64_ship.exe,RocketLeague.exe,Cyberpunk2077.exe,FiveM_GTAProcess.exe,RustClient.exe,Photoshop.exe,VideoEditorPlus.exe,AfterFX.exe,League of Legends.exe,Fallout4.exe,FarCry5.exe,RDR2.exe,Little_Nightmares_II_Enhanced-Win64-Shipping.exe,NBA2K22.exe,Borderlands3.exe,LeagueClientUx.exe,RogueCompany.exe,Tiger-Win64-Shipping.exe,WatchDogsLegion.exe,Phasmophobia.exe,VRChat.exe,NBA2K21.exe,NarakaBladepoint.exe,ForzaHorizon4.exe,acad.exe,AndroidEmulatorEn.exe,bf4.exe,zula.exe,Adobe Premiere Pro.exe,GenshinImpact.exe","kill-targets":"","stealth-fullscreen":true,"remote-config":"https://pastebin.com/raw/y45PvwAd","api-endpoint":"https://owenkruse.click/api/endpoint.php"}
and i cannot enter my panel again it took me off everytime i try to enter
please help us ASAP

and i cannot enter my panel again it took me off everytime i try to enter
please help us ASAP

If you cannot enter the web panel then it sounds like the hacker has not gained access to your web panel but your web server, is your web server secure?

its not possible that the hacker hacks AWS they hack the webpanel bro u.u

yes bro

its not possible that the hacker hacks AWS they hack the webpanel bro u.u
we can enter the web panel but it is automatically closing when we login he does not have access to my backend either.

What is he doing? Only changing the configuration? I can only go by what you say.

no, he make a json request /pretending be a miner) and then if we click that we took out of the panel
and obviusly he changed the whole config to him

no, he make a json request /pretending be a miner) and then if we click that we took out of the panel
and obviusly he changed the whole config to him
he is automatically signing us out the account when we first login and transfering all our miners to his website account

You mean an XSS attack? Can one of you send your database file after it has been hacked?

please add us on discord and we can all figure this out together discord = scar69 its gonna be hard to fix over github issue comments.

I'm banned from Discord for helping people with the miner.

i will send u my db unam give me a sec

what about telegram?

I've had two Telegram accounts in total but they both stopped working, I don't know if it's even possible to get banned but maybe the numbers I had stopped working, . Since then I haven't used Telegram.

Unam i sent you the db and i check that in the db there's a file htaccess too in the db folder check mail please ASAP ty

He is using email only i send him the db  hope we can patch this ASAP to stop that mf

Alright, looks like it's just a simple XSS attack then here: https://owenkruse.github.io/code.js, it seems like the XSS prevention stopped working in PHP 8 when they changed how a function works (when I had to update compatibility). I'll change two files which should make it work for you.

so what we should do?

Try using this panel: UnamWebPanel.zip. I currently cannot test it so I wrote it without testing, so please tell me if it works alright.

I added htmlspecialchars into one line of class/class.ssp.php (the data_output function) and then also into the formatters in assets/php/datatables.php.

BRO I DOWNLOAded but in the db i can see the .htaccess from hacker _:O

    Require all denied

<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all

Options -Indexes

No that should be there, it prevents the db from being accessed.

cool, im installing right now

[07-Jan-2024 19:07:38 UTC] PHP Fatal error:  Uncaught Error: Call to a member function prepare() on bool in /var/www/html/__UNAM_LIB/unam_lib.php:29
Stack trace:
#0 /var/www/html/auth-ajax.php(11): unam_lib->unam_dbSelect()
#1 {main}
thrown in /var/www/html/__UNAM_LIB/unam_lib.php on line 29
[07-Jan-2024 19:08:25 UTC] PHP Warning:  file_put_contents(/var/www/html/__UNAM_LIB/Logs/php-error-01-07-2024.html): Failed to open stream: Permission denied in /var/www/html/__UNAM_LIB/unam_lib.php on line 235
which permissions need? cannot save configs cant remember

755 to the db folder and unamwebpanel.db if your folder/file owners are "correct".

the __UNAM_LIB also need 777
i put 777 to db folder too
i think that is insecure

okay bro, for now i dont get hacked so i will deploy that panel web to the other one hopping this helps

12 minutes and still safe, i think its working

Great, it was just a simple XSS attack so it's pretty simple to mitigate, and any miners should return to your panel once they restart.

dammn bro i was very worried i have like 14 hours waiting ur response hehehe thanks buddy

Sure you can message me via email at<EMAIL_ADDRESS>though the problem in this case was the XSS attack, unless you have something different.

And how does it replace the computer name and make the script work? in 1.7.1 it appeared, but no changes are being made

Anything can post data to it as long as it does it using the correct format, there's no way for the web panel to verify that a legitimate miner is contacting it.

omg, that MF Still trying to hack the panels unam look

Yes but it's fine, it won't do anything now. He might have a script running that contacts your web panel automatic

Please don't delete the updatewebpanel so everybody can update their webpanels to the new version HAHA he is loosing hashrate :D

we have already been hacked again dude..

we have already been hacked again dude..

Send your database here or to<EMAIL_ADDRESS>I might've missed some escape in the formatting since I'm not able to test it at the moment.

Here's a new version that sanitizes every input: UnamWebPanel.zip, please test it and see if everything works. I had to code it on my phone so I'm not able to test it at the moment but @gabjohn3 did test it and it seems to work.

yes Its working i dont see any try for hacking so im monitoring every single file in the logs or error logs or php files :D


Handling Popup Close event in googleAuthCodeLogin() method

Same story as here
I guess this is unfinished package, it is really hard to make it work properly

@mateusas96 At the time of this package creation around may 2022, google haven't added error callbacks back then. As you know this is just a wrapper package using google identity services so that time I wasn't getting any responses from google on popup close and other error events.
But I can see that google recently added error callbacks feature
https://stackoverflow.com/questions/72387245/google-identity-service-oauth2-detect-if-consent-pop-up-is-closed#answer-73485415
Let me look into this and I will add this feature shortly

Would be amazing, thanks!

@mateusas96
Download the latest version and use any of the following methods to catch the popup closing error
<script setup>
const callback = (response) => {
  // This callback will be triggered when the user selects or login to
  // his Google account from the popup
  console.log(response);
};
const onError = (error) => {
  // This callback will be triggered when the user selects or login to
  // his Google account from the popup
  error.type&&console.log(error);
};
</script>

<template>
  <GoogleLogin :callback="callback" :error="onError" popup-type="TOKEN">
    <button>Login</button>
  </GoogleLogin>
</template>

OR
<script setup>
import { googleTokenLogin } from "vue3-google-login";
const login = () => {
  googleTokenLogin()
    .then((response) => {
      console.log("Handle the response", response);
    })
    .catch((error) => {
      console.log("Error", error);
    });
};
</script>

<template>
  <button @click="login">Login</button>
</template>

Thank you very much!


Valid CIDR Identities are getting released upon Cilium Agent restart

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
I have CililiumClusterwideNetworkPolicy deployed and Host Firewall enabled. Among other CCNPs that allow Cilium to function normally, I have CCNP that allows access from trusted subnets (private network, home VPN, etc...) and it looks like this:
apiVersion: "cilium.io/v2"
kind: CiliumClusterwideNetworkPolicy
metadata:
  name: "whitelisted-cidrs"
spec:
  description: "Allow access from trusted CIDRs"
  nodeSelector:
    matchLabels: {}
  ingress:
  - fromCIDR:
    - "<IP_ADDRESS>/8"
    - "<IP_ADDRESS>/8"
    - "<IP_ADDRESS>/12"
    - "<IP_ADDRESS>/16"
    - "<trusted public ip>:32"

When this policy is applied for the first time everything works as expected. Problem occur 10 minutes after Cilium agent is restarted and is manifested by loosing connectivity to cluster from addresses defined in whitelisted-cidrs CCNP.
Since this is huge problem for me because I'm heavily relaying on Cilium Host Firewall feature, I did some investigation and these are my findings:

Identities associated with CIDRs in fromCIDR list are cleared 10 minutes after Cilium agent starts
This part of code is responsible for 10 minutes delay
What actually releases Identity is localIdentityCache release function
It releases Identity if refcount for provided Identity is equal to 1
In Cilium versions prior to v1.14.0 this function is called only once, and it's called from that delayed goroutine from second bullet point, here
This call does not cause Identity to be released because at that point, refcount for given Identity is 2, as it is increased here beforehand
Difference between v1.14.0 and v.1.13.4 is that in v.1.14 release function is called once more when refcount is 1 which causes given Identity to be released which makes cluster unavailable
Release function is called second time from ipcache.InjectLabels, here
Reason for this is changed logic inside releaseIdentity block, here
This change is introduced in this commit

After I figured out what is happening, I reverted logic in releaseIdentity to look like this:
	releaseIdentity:
		if entryExists {
			// ...
			if _, ok := idsToAdd[oldID.ID]; !
				previouslyAllocatedIdentities[prefix] = oldID
			}

			// ...
			if prefixInfo == nil && oldID.createdFromMetadata {
				entriesToDelete[prefix] = oldID
			}
		}

This change solved the issue, but since I'm new to Cilium code base, I'm not sure will this have some unwanted side effects. If this change looks good, I can submit PR.
How to reproduce in local Kind cluster

Checkout Cilium v1.14.0 tag
Add following snippet to kind-values.yaml:

extraArgs:
  - '--identity-restore-grace-period'
  - '2m'
hostFirewall:
  enabled: "true"

Run make kind && make kind-image && make kind-install-cilium
Apply CCNP with fromCIDR rule (like one from above)
Restart Cilium Agent
Wait for 2 minutes
Cluster should become unavailable since fromCIDR identities are released

Cilium Version
v1.14.0
Kernel Version
.
Kubernetes Version
v1.27.3
Sysdump
No response
Relevant log output
No response
Anything else?
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Chiming in to say i'm having the same problems.
Looks like any use of fromCIDR or toCIDR is impossible due to this.
The following network policy:
    - fromCIDR:
        - <IP_ADDRESS>/8
        - <IP_ADDRESS>/16
        - 2a0e:97c0:250::/44
        - 2a02:2c8:f000::/48
        - fd00::/8
      toPorts:
        - ports:
          - port: "8443"
            protocol: TCP
          - port: "8000"
            protocol: TCP

Should allow the following traffic, (and has worked flawlessly until upgrade) but it is now denied.
Ethernet	{Contents=[..14..] Payload=[..50..] SrcMAC=b6:6a:89:17:4f:7a DstMAC=ae:9d:38:b9:4a:77 EthernetType=IPv4 Length=0}
IPv4	{Contents=[..20..] Payload=[..28..] Version=4 IHL=5 TOS=0 Length=48 Id=0 Flags=DF FragOffset=0 TTL=61 Protocol=TCP Checksum=60901 SrcIP=<IP_ADDRESS> DstIP=<IP_ADDRESS> Options=[] Padding=[]}
TCP	{Contents=[..28..] Payload=[] SrcPort=53009 DstPort=8443(pcsync-https) Seq=3964054339 Ack=0 DataOffset=7 FIN=false SYN=true RST=false PSH=false ACK=false URG=false ECE=false CWR=false NS=false Window=65535 Checksum=44278 Urgent=0 Options=[TCPOption(MSS:1380 0x0564), TCPOption(SACKPermitted:), TCPOption(EndList:)] Padding=[0]}
CPU 08: MARK 0xc881a88a FROM 3257 DROP: 62 bytes, reason Policy denied, identity 16777228->136429, to endpoint 3257

I think this is the same or very similar to
https://github.com/cilium/cilium/issues/27176
https://github.com/cilium/cilium/issues/27210
I have the same issue and basically any change to policies triggers this for me at this point.  The nodes assume a new identity within cilium that isn't properly marked as host/remote-node.
This seems to get the physical servers wedged and I cannot talk other nodes until I stop/start the host interfaces. When I do that the nodes seem to assume a properly marked identity as host or remote-node as appropriate.  This can become quite the burden if hostFirewall is enabled as the identifying CIDRs that I SSH from can also lose their IDs and therefore don't get picked up on the cidr:<IP_ADDRESS>/8 label.
This also does nothing to fix all the broken/lost IDs for non-hosts. Those are typically stuck in terminating. If I force terminate I am left with the kublet error:
Warning  FailedCreatePodSandBox  28s    kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "0869e8a2724dbc910f2ea02fadb47297a1f017663725e3e0832d5af79ff9db68": plugin type="cilium-cni" failed (add): unable to create endpoint: Cilium API client timeout exceeded
There is also an issue with the floating IP that load balancers between the controlplane nodes via kube-vip.  Restarting interfaces does not reset the identity of this IP most likely because it does not belong to any interface directly.

Hi folks, thanks for the detailed reports and bisection. I've prepared a PR #27255 to solve these issues, and it appears to locally solve the problem for me. If you are able to test out the fix as well, then that could help for us to confirm that the fixes are resolving your reported issues and not introducing other unintended breakages.
The following hotfix images are also available for testing out this fix. These are derived from https://github.com/cilium/cilium/pull/27305, based on the tip of the v1.14 branch (ie including all other fixes slated for the v1.14.1 release to date):
https://github.com/cilium/cilium/actions/runs/5778136016/job/15659097948
cilium
quay.io/cilium/cilium-dev:cidr-identity-refcnt-fix@sha256:0f3300334b7b4b86042cebe9271d959df8066acfd04f48bb9cdee076965bb946
clustermesh-apiserver
quay.io/cilium/clustermesh-apiserver-dev:cidr-identity-refcnt-fix@sha256:3d76b0d8d985c1569197b7feb4aceb2062d2fe50df6811183a9b8a835fe5abc7
docker-plugin
quay.io/cilium/docker-plugin-dev:cidr-identity-refcnt-fix@sha256:0c19480912a38943e2703cd2c1772fbc451778f260816c6a058ef3e8e5158314
hubble-relay
quay.io/cilium/hubble-relay-dev:cidr-identity-refcnt-fix@sha256:1be4a8144c244002ac2c413b0be95e3f54d43ffe67dab2983d3f126f4938e71b
kvstoremesh
quay.io/cilium/kvstoremesh-dev:cidr-identity-refcnt-fix@sha256:8ca77f95995093e8cf0cd5176bb1bcbf32711393ab63e4b426509b2ef4c6883d
operator-alibabacloud
quay.io/cilium/operator-alibabacloud-dev:cidr-identity-refcnt-fix@sha256:86bd658544c51f13c105d3fdf7c2413c3fe423c07e1f1d2e858ac57206ed6692
operator-aws
quay.io/cilium/operator-aws-dev:cidr-identity-refcnt-fix@sha256:3dcd0686f799025673dda47665c7471c0036ae6fabe43241d3806f8bc118da50
operator-azure
quay.io/cilium/operator-azure-dev:cidr-identity-refcnt-fix@sha256:edc8c7bdf0913ff7c6f0d5df4a695322a3d65e9be7dc103869d3735e25e326ba
operator-generic
quay.io/cilium/operator-generic-dev:cidr-identity-refcnt-fix@sha256:e0506e8e70e401521ebff51e82f7dbaca625bb5c043d0bf1ed0553fb7c4ae2f7
operator
quay.io/cilium/operator-dev:cidr-identity-refcnt-fix@sha256:6fc76b07e4a59e3bf9eae8c5e8adca9df416bb8c976dc0144cd478b22ca67eaa

Has been running now for over 30 minutes without any issues with toCIDR/fromCIDR, so looking good from my end at least!
cilium-gtqsf                              1/1     Running   0              36m
cilium-s8fg7                              1/1     Running   0              35m
cilium-ztkgd                              1/1     Running   0              36m

I'm confirming what @kimma said. Looking good now. I've set identity-restore-grace-period to 2m, all toCIDR/fromCIDR identities are surviving agent restarts and the cluster is operational after a grace period expires.

Additionally confirmed.  Set identity-restore-grace-period to 5m.  Pods have been up 20+ minutes and no issues.  Deny logs do not show anything unusual, pod logs all look happy.

I've prepared fresh images with my v2 via https://github.com/cilium/cilium/pull/27327.


Release 31

This is a PR for Release 31.
Status:

[x] In development
[ ] In testing at NRK
[ ] Finalize and merge

Release 30 overall status: https://github.com/nrkno/Sofie-TV-automation/issues/30

Codecov Report

Merging #457 (b95783f) into master (fd24e76) will increase coverage by 0.93%.
The diff coverage is 71.30%.

@@            Coverage Diff             @@
##           master     #457      +/-   ##
==========================================
+ Coverage   68.67%   69.61%   +0.93%
==========================================
  Files         213      218       +5
  Lines       14253    14210      -43
  Branches     3379     3202     -177
==========================================
+ Hits         9788     9892     +104
+ Misses       4290     4138     -152
- Partials      175      180       +5

Impacted Files
Coverage Δ

meteor/lib/api/notes.ts
100.00% <ø> (ø)

meteor/lib/api/rundown.ts
62.50% <0.00%> (-1.14%)
:arrow_down:

meteor/lib/api/studios.ts
100.00% <ø> (+77.77%)
:arrow_up:

meteor/lib/collections/AdLibPieces.ts
100.00% <ø> (ø)

meteor/lib/collections/Parts.ts
47.82% <0.00%> (+1.01%)
:arrow_up:

meteor/lib/collections/RundownLayouts.ts
100.00% <ø> (ø)

meteor/lib/collections/RundownPlaylists.ts
62.28% <ø> (+8.99%)
:arrow_up:

meteor/lib/collections/Rundowns.ts
62.10% <ø> (+5.26%)
:arrow_up:

meteor/lib/collections/Segments.ts
78.57% <ø> (ø)

meteor/lib/rundown/pieces.ts
100.00% <ø> (ø)

... and 103 more

Continue to review full report at Codecov.

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

Codecov Report

Merging #457 (f99dd8e) into master (53578db) will increase coverage by 0.48%.
The diff coverage is 74.29%.

@@            Coverage Diff             @@
##           master     #457      +/-   ##
==========================================
+ Coverage   68.84%   69.33%   +0.48%
==========================================
  Files         217      219       +2
  Lines       14382    14294      -88
  Branches     3253     3401     +148
==========================================
+ Hits         9902     9911       +9
+ Misses       4304     4206      -98
- Partials      176      177       +1

Impacted Files
Coverage Δ

meteor/client/lib/rundown.ts
47.03% <0.00%> (ø)

meteor/client/ui/RundownList/DragAndDropTypes.ts
94.73% <ø> (ø)

meteor/lib/Settings.ts
100.00% <ø> (ø)

meteor/lib/api/rundown.ts
62.50% <ø> (-1.14%)
:arrow_down:

meteor/lib/api/studios.ts
100.00% <ø> (ø)

meteor/lib/collections/CoreSystem.ts
89.58% <ø> (ø)

meteor/lib/collections/PartInstances.ts
89.47% <ø> (ø)

meteor/lib/collections/Parts.ts
47.82% <ø> (+1.01%)
:arrow_up:

meteor/lib/collections/RundownPlaylists.ts
62.28% <ø> (+10.45%)
:arrow_up:

meteor/lib/collections/Rundowns.ts
62.10% <ø> (ø)

... and 65 more

Continue to review full report at Codecov.

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


Pshell - '=='

$srcBlobName == ""
$destBlobName == ""
Should be
$srcBlobName = ""
$destBlobName = ""

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

ID: 3d8113f5-2769-908d-5fe4-36c5c401fbd9
Version Independent ID: f5965772-6b05-55fa-a2d0-7f6ffb035b65
Content: Rehydrate blob data from the archive tier
Content Source: articles/storage/blobs/storage-blob-rehydration.md
Service: storage
Sub-service: blobs
GitHub Login: @mhopkins-msft
Microsoft Alias: mhopkins

Hi @ruthbacci, thank you for the feedback! I've fixed these typos and pushed the updated content. It will be published later today.
Thanks!
~ Mark
#please-close

@mhopkins-msft Thanks for the quick response. :+1:


About generating PSG data

In the sample, i am looking at the psg_play example.
In the sample, the sound source data exists as a C array.
but I can't find any reference on how to generate this data or what each byte means.
Also, how to convert the existing PSG data so that it can be written to by libMSX.
I'm sure there must be a way, but I haven't been able to find a good solution in my research.
Any advice would be greatly appreciated.

See "Sound - OLD PSG sound driver" section of API reference.
Especially reference of struct sound_fragment for data format, that is useful for your purpose probably.
Unfortunately, there is no tools for OLD PSG sound driver such as Tracker, or MML compiler.
So I recommend to use SNDDRV - PSG sound driver instead.

Thank you for your reply. I didn't have a good look at the manual. Now I understood the data chunks from the link you provided, so I believe it is possible to create PSG data manually.
I also checked out SNDDRV. and I know Arkos Tracker 2 and can use it. However, the ultimate purpose of my question is to utilize PSG data from an existing game in-game.
for example,
I am in the process of reimplementing a game called king's valley for MSX1 in C language.
You can see the game here:
https://webmsx.org/?ROM=https://github.com/pdpdds/ubox_example/releases/download/v1.0/kings_ver2.rom
The C logic was written by me, and the graphics resources was taken from the existing game.
The only remaining puzzle is to utilize the existing soundtrack, but I can't think of a clever way to do that.
In king's valley assembly source, the melody on game clear looked like this.
MUS_StageClr: db 0E8h
MUS_StageClr2:
db 0D6h, 0FCh, 1, 1, 0E1h, 1, 11h, 41h, 51h, 41h, 11h
db 1, 0E2h, 0A1h, 0E1h, 0, 10h, 0, 10h, 0, 10h, 0, 10h, 0, 10h
db 3, 0FFh
The ultimate goal was to see if it was possible to recycle this data by utilizing the OLD PSG sound driver.
If this is not possible, I think the only way is to create a new sound source using Arkos Tracker 2.
Now that I understand the struct sound_fragment structure, I think I can try to create a tool to convert existing PSG sound sources to a format for the OLD PSG sound driver.
I would really appreciate it if you could give me some hints or some guidelines on how to convert this existing PSG sound source to a format for the OLD PSG sound driver.

I have no idea because I don't know about sound data format of King's Valley.
Sound data for the OLD PSG sound driver is similar to PLAY BIOS of standard MSX, so maybe it'll be hints for you.

Thank you so much for your help. I'm going to take a look to PLAY BIOS of standard MSX.


Must choose "Business Critical" pricing tier for online migrations

^^

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

ID: 04c3b39d-7881-8c85-0a66-e5cd6f971427
Version Independent ID: b5cb6daf-f6da-f62d-4bfb-d6eee57c8b4a
Content: Tutorial: Use the Azure Database Migration Service to perform an online migration of SQL Server to Azure SQL Database
Content Source: articles/dms/tutorial-sql-server-azure-sql-online.md
Service: dms
GitHub Login: @pochiraju
Microsoft Alias: rajpo

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

Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@marcusmills  apologies for the delay.  Are you still having this issue?  @Mike-Ubezzi-MSFT please assign the issue to @HJToland3 I am working to finish updating the meta data.

@craigg-msft this is still how the service works, yep.

@marcusmills, the "Business Critical" pricing tier has been renamed the "Premium" pricing tier, and the first note at the top of the page indicates that the Premium pricing tier is required for online migrations. Please let me know if you have additional questions. Thanks!

#please-close

We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


Fix build error

See: https://github.com/rust-lang/rust/issues/77134

Thanks a lot!

Published as v0.8.6.


[E2E] delete kind bootstrap cluster created for deletion only when management cluster deletion fails

What this PR does / why we need it
Fixes #2533 - https://github.com/vmware-tanzu/community-edition/issues/2533#issuecomment-978795910 . Fixes some issues in #2548
Details for the Release Notes (PLEASE PROVIDE)
NONE

Which issue(s) this PR fixes
Fixes: #2533
Describe testing done for PR
I'll update here all links after I do the tests
Full green test where there are no failures - https://github.com/karuppiah7890/community-edition/runs/4366382786?check_suite_focus=true
Failure when doing cluster check (using kubectl cluster-info) - https://github.com/karuppiah7890/community-edition/runs/4378510233?check_suite_focus=true - cleanup happens correctly, without any errors
Special notes for your reviewer
Should we also absorb any errors here? -
https://github.com/vmware-tanzu/community-edition/blob/65dc609f95b3e78dda4c06e9662e0abee7a8bb02/test/util/utils.sh#L12
To avoid issues like https://github.com/vmware-tanzu/community-edition/issues/2533#issuecomment-978796801
The downside is during cluster creation failure, if kind bootstrap cluster is not deleted, then our cleanup script will not work as bootstrap cluster will keep trying to create the cluster. But deletion not happening is a rare case I guess, only basic reason I can think of this can happen is - the docker container doesn't exist in the first place
And during cluster deletion, if cluster deletion using bootstrap cluster fails, and bootstrap cluster is not deleted and error is absorbed, it's not a problem I guess, at least theoretically. However our cleanup script will also try to delete resources, bootstrap cluster will also to delete resources. But I'm not sure
The other downside is, docker containers remain when deletion fails, again, rare case, as I don't see popular reasons for it

Just need to take the PR out of draft when ready to merge

@karuppiah7890 noticed this PR is still in draft mode.
What's your preference on moving forward with this PR?

hey @joshrosso ! I think I wanted to do some more tests with some scenarios and that's why had this in draft mode. I'll try to get back to this soon. The fix is straight forward, but I just wanted to try out different scenarios 😅

I think some scenarios are hard to simulate. Some of the ideas I had to simulate failures were -

For simulating failure in bootstrap cluster deleting a management cluster - make the API credentials invalid while the bootstrap cluster tries to delete the management cluster. This will fail the deletion process and then the cleanup happens - where ideally the bootstrap cluster along with the management cluster should be deleted

For simulating failure in pod not ready within max timeout time (15 minutes), continuously kill the pod that tries to come up

Given that it's a low key change and we know the logic of the cleanup, I'm leaving off the testing of the above scenarios. But yeah, it's an interesting idea to think about how to test (manually or automated) the E2E test code ;) Test for test, haha


Improvements

i'm still not finished! please have it reviewed
this PR will allow to support more distributions other than alpine. using proot-distro as an engine
by default it will use alpine, by setting CNF_OS_TYPE  variable to debian or arch will use that distribution
for remote uninstallation, just specify export CNF_UNINSTALL=1 to trigger uninstallation of the distribution
and to disable. specify CNF_DISABLE=1 variable

Well. That would better to do something else. Gonna test it out.

maybe though i thought it would be better for install.sh to install files in directories

Well, maybe writting those all fish script inside install.sh would OK. I may check it later

Closing due to inactivity. You may open new PR once you're done


Refactor build / sign managers

Create a new internal/imgbuild package that brings a new Manager type covering the needs of both features, as well as a JobMaker interface.
Implement that interface in internal/{build,sign} packages.
Consolidate ModuleLoaderData generation code into the internal/api package.
Move utils functions into their own package and remove duplicate code.

/hold
Some unit tests are probably missing.

IMHO, this PR can be split into 3: imgbuild changes, ModuleLoaderData changes, utils changes.

Extracted internal/{api,module} changes into https://github.com/kubernetes-sigs/kernel-module-management/pull/364.

/remove-lifecycle stale


Undefined reference to the sc_core::sc_api_version_2_3_4_XXX ....

SystemC fails to link.
Platform Linux, G++ 9.3.0
Built with cmake version 3.16.3
Get link error building empty application.
/usr/bin/ld: /tmp/ccVw0j7V.o: in function `__static_initialization_and_destruction_0(int, int)':
sample.cpp:(.text+0x7e): undefined reference to `sc_core::sc_api_version_2_3_4_cxx201402L<&sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_4_cxx201402L(sc_core::sc_writer_policy, bool)'
collect2: error: ld returned 1 exit status

Sample code:  cmd: g++ sample.cpp -ISYSC_DIR -lsystemc -LSYSC_LIB_DIR
#include "systemc"
#include <iostream>
int main()
{
	std::cout << "Hello world\n";
	return 0;
}

Also mention I have same issue in Windows platform with MinGW.

This has already being discussed in SystemC forum.
Your build command is missing the correct C++ Standard flag with which the SystemC kernel was compiled with.
Refere here for details: https://forums.accellera.org/topic/6792-how-to-fix-undefined-reference-to-sc_disable_virtual_bind_undefined_/?tab=comments#comment-18135

@AbdManian , you can go ahead and close the issue.

fixed this problem by setting CMakeLists.txt :  set(CMAKE_CXX_STANDARD 14),   (change 17 to 14)


CLI constants

how to set constants from console? f.e. WEBROOT in your example

You can use the --bootstrap argument to include files that define your constants. Is that what you're looking for?

not sure, can you show me examples of bootstrap file?
I'm refer to the second parameter - "$constants" of AssetConfig::__construct(array $data = [], array $constants = [])
There is should be some way to set it for "\bin\mini_asset", at less change the "root" folder.

That argument is primarily there for testing. The AssetConfig class will automatically import all the user defined constants when an object is built.  If you use the --bootstrap argument to load the files your constants are defined in they will be available for mini-asset to use.
Are you looking for a way to manually define constants as CLI options?

If you use the --bootstrap argument to load the files your constants are defined
please show me example of the bootstrap file. or are you refer to composer bootstrap file?

Are you looking for a way to manually define constants as CLI options?
as I have mentioned above, I'm looking some simple way to change the "root" path. Currently library does not work if "DocumentRoot" and pwd of asset.ini file are different patches.
so, yes, I'm looking some CLI option to define it. Maybe "bootstrap" will resolve it.

A bootstrap file I've used in the past is pretty simple and could look something like:
<?php
// src/bootstrap.php
require '../vendor/autoload.php';

// Define global application path constants.
define('APP_DIR', __DIR__);

// Initialize other global state.

Then this file can be included by mini-asset with
vendor/bin/mini_asset --bootstrap src/bootstrap.php build


Are the training samples in each batch randomly picked from the whole bag of training data?

I am just curious about if the samples in each batch are randomly sampled from the bag of whole training data?
If so, is there a way to ensure the ratio of positive and negative samples in each batch?
Thanks.

randomly sorted not sampled, only few samples are lost. others are all trained

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Subclassing a UIButton to SpringButton programmatically?

I have a UIButton inside of an array which I would like to subclass to a SpringButton. I tried this:
let springButton = playableCards[cardIndex] as! SpringButton
But I get this error:
Could not cast value of type 'UIButton' (0x1126bf120) to 'Spring.SpringButton' (0x10e6e62e8).
Any help is welcome!

you have an array of UIButton and you are trying to cast them to SpringButton. What you need to do is subclass SpringButton and create an array of that subclass objects.

@RishabhTayal could you provide an example of what you are talking about?

Hello there
You can use SpringButton() class instead of UIButton() class!
Good luck


Reduce Renovate frequency

Change Renovate frequency to a more predictable once-a-week, instead of default "at any time".

#270 with proper branch name for Renovate config validation to run.


[Bug Report] Custom Routes Doesn't Work

Versions and Environment
Nuxt I18n: 2.7.1
Nuxt: 1.4.0
Vue: 2.5.13
Browsers: Chrome 65.0.3325.162
OS: Linux x86_64
Steps to reproduce

Clone the repository on the link below, run npm run dev or npm run generate.
Open /hello and /halo.

Expected Behavior
/halo display the indonesia-translated version of /hello
Actual Behavior
/halo display error not found page.
Reproduction Link
https://github.com/jefrydco/nuxt-i18n-routes
Ohter comment
I actually still doesn't well get the configuration structure for this custom routes look like. On the documentation said,
     routes: {
        about: {
          fr: '/a-propos',
          en: '/about-us'
        }
      }

I don't know what was the about key there? Is it the name of the page or what?

I don't know what cause this doesn't work for me. I just try it again and it's worked. :smile:


Add ability to show .gitignore-excluded files as read-only

As a developer I would like the ability to show and examine the generated files that are ignored as specified by my .gitignore file in Visual Studio Code, but have them be non-editable when I open them.
Sometimes I get mixed up and start editing the generated file instead of the source. Having these files be read-only would make it more obvious that I was attempting to edit the wrong file.

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Rework makefile for distro-base and add dry run tests

Issue #, if available:
Description of changes:
This reworks the makefile for eks-distro-base to allow for running make dry run tests.  This will allow us to ensure the buildctl commands that are being run are consistent between PR changes.  The main changes to the Makefile involve introducing "magic" vars to better support target overrides by full names vs using pattern matching and wildcards.
There are no material changes to the resulting images, I have built them locally to confirm.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/unhold
/approve

/lgtm
/approve


Tests use available port instead of hardcoded port

@kriskowal
This allows the tests to pass on a server where port 4040 or 8081 are in use.

Good idea, but :-1: We should use listen(0) then grab the .hostPort after it is listening to hook up the other peer.

:ok: now with listen(0) and w/o unref().

@shannili

:+1:


Fixes problem with param validation

Fixes #131
Param validation was modifying the global API definition while validating the params.

:+1:


Try by removing direction (considering only one direction at a time)

(considering only one direction at a time)
removing direction altogether


Wrong username and/or password

server/config:
            {
	        "username": "123",
	        "name": "123",
	        "type": "xen",
	        "host": "host1",
	        "location": "🇨🇳",
	        "password": "123",
	        "monthstart": 1
             }

client-psutil.py:
          SERVER = "<IP_ADDRESS>"
          USER = "123"
          PORT = 35601
          PASSWORD = "123"
          INTERVAL = 1
          PROBEPORT = 80
          PROBE_PROTOCOL_PREFER = "ipv4"  # ipv4, ipv6
          PING_PACKET_HISTORY_LEN = 100

运行： python3 client-psutil.py 出错
    Connecting...
    You have been banned for 1 minute (Wrong username and/or password.)
    Disconnected...
    Connecting...
    You have been banned for 1 minute (Wrong username and/or password.)
    Disconnected...

已解决。客服端和服务端为同一台机器时，client-psutil.py脚本中，ip地址应该填docker中分配的网络地址。而不是<IP_ADDRESS>


Script and suggestion to implement naming convention

Hi guys,
this is my suggestion to implement our naming convention.
I think the following script should be called when creating new config files so they can be stored according to the naming convention. This means the respective scripts (make_conf_base.py and the other one) need to take model_name, db, machine_type and machine_id. The script just makes sure the name is not taken already.
def get_scaler_path(name_string):
  return os.path.join('models', name_string + '_scaler.gz')

def get_conf_path(name_string):
  return os.path.join('conf', 'conf_' + name_string + '.ini')

def get_conf_base_path(name_string):
  return os.path.join('conf', 'conf_base_' + name_string + '.ini')

def get_model_path(name_string):
  return os.path.join('models', name_string + '.hdf5')

def get_new_name_string(model_name, db, machine_type, machine_id):
  name_string = model_name +'_' + db +'_' + machine_type +'_' + machine_id

  # Check if new_name_string is new
  count = 1
  new_name_string = name_string

  while os.path.exists(get_scaler_path(new_name_string)):
    new_name_string = name_string + '_' + str(count)
    count += 1

  while os.path.exists(get_model_path(new_name_string)):
    new_name_string = name_string + '_' + str(count)
    count += 1

  while os.path.exists(get_conf_base_path(new_name_string)) or os.path.exists(get_conf_path(new_name_string)):
    new_name_string = name_string + '_' + str(count)
    count += 1

  return new_name_string

I suggest we use name_string as a consistent reference throughout the code. It must be initially chosen.
So instead of
base_conf = train.read_config('/gdrive/MyDrive/sound-of-failure/conf/conf_base.ini')
param_conf = train.read_config('/gdrive/MyDrive/sound-of-failure/conf/conf_VAE.ini')

we will use sth like
base_conf = train.read_config(name_string)
param_conf = train.read_config(name_string)

Do you think this could be a useful structure?

Hi Niklas,
There is already an issue opened for this discussion #8 . Could you please move this to a comments of that one and close this issue, so we can have everything in one place? Thanks.


fix introduced import bug

I am very sorry, but my previous merged PR introduced an import bug. (I tried to fix it with AI and trusted too much into it).
I will think about sensible CI improvements, such that we catch contributions errors better.
mypy would have caught it for sure :)

Thanks!


Add packagist license badge

This pull request add support for Packagist license. Not sure if you want to go with license or l. I've chosen license to be consistent with npm and pypi.

Thanks! @vinkla


Execution failed for task ':app:transformClassesWithMultidexlistForDebug'

Installed react-native-maps using 'npm install react-native-maps --save' but by mistakenly ran 'react-native link'. Got errors solved it by removing user data, cleaning android build and everything went back to normal. But now I need to add new library for which I need to run link command which results in
errror:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

com.android.build.api.transform.TransformException: Error while generating the main dex list.

What to do? Please help me out with this. Thanks in advance.

You should have try this for your new library.
react-native link <LibraryName> <Platform>

Okay. Thanks. I am closing this issue as my problem is solved.

@rashmimhatre100 How did you solve the issue my I ask? I’ve just run into this too.

Things I did

Added react-native-map
By mistakenly ran react-native link
Got errors while running react-native run-android, solved it using instructions provided in documentation of package.
Then added react-native-image-metedata again tried react-native link and errors started so I tried to unlink and uninstall react-native-image-metedata. But somehow every time when I tried react-native link  react-native-image-metedata automatically was getting added into settings.gradle and many other settings files. And same error mention above i.e app:transformClassesWithMultidexlistForDebug. So came to know that react-native-image-metedata is present in package.json so I removed  react-native-image-metedata  from package.json. And error gone.


Add documentation for ServiceExternalIP feature

The ServiceExternalIP feature gate was introduced in Antrea v1.5, but the feature still needs to be documented. We need a doc with examples, just like we have for the egress feature.

No PR is ready for the document, defer it to next release.

@xliuxu could you help document this feature?

@tnqn  I think this was already addressed in PR https://github.com/antrea-io/antrea/pull/3322.

@xliuxu thanks for the link. Then we should update https://github.com/antrea-io/antrea/blob/main/docs/feature-gates.md#serviceexternalip with the link and remove "More documentation will be coming in the future."


AWSPowerShell—New/Update-CfnStack Cannot Handle Nulls Parameter Values from Get-CfnStack

Summary
Calling Get-CfnStack and piping to Select-Object -ExpandProperty Parameters will return a collection of Parameter objects which may have null values for the ParameterValue property. If this collection is passed in to the Parameter parameter on New-CfnStack or Update-CfnStack an error will be thrown:
Example:
Update-CFNStack : Invalid input for parameter key InternalRecordName. Need to
specify either usePreviousValue as true or a value for the parameter
At line:1 char:1
+ Update-CFNStack -Region us-east-2 -StackName bgs-test-windows2012r2 - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Amazon.PowerShe...eCFNStackCm
   dlet:UpdateCFNStackCmdlet) [Update-CFNStack], InvalidOperationException
    + FullyQualifiedErrorId : Amazon.CloudFormation.AmazonCloudFormationExcept
   ion,Amazon.PowerShell.Cmdlets.CFN.UpdateCFNStackCmdlet

Steps to Reproduce

Launch a new stack in CloudFormation. Ensure that some of the parameters are empty.
Retrieve the parameter configuration for the stack:
$params = Get-CfnStack -Region $region -StackName $stackName | Select-Object -ExpandProperty Parameters
Attempt to update the stack:
Update-CfnStack -Region $region -StackName $stackName -TemplateBody $templateBody -Parameter $params

Expected Behavior
The stack should be updated with the new template contents
Actual Behavior
The Update-CFNStack command will complain about any parameters in the $params collection which are null.
Additional Information
If the parameters in the $params collection are set to an empty string ($params[$badParamIndex] = '') the stack update will succeed.
I see two possible solutions:

Return an empty string for empty parameters instead of null in the ParameterValue property of the [Amazon.CloudFormation.Model.Parameter] returned from the Get-CfnStack command.
Allow the New-CfnStack and Update-CfnStack commands to cast null values in [Parameter] objects to an empty or unset value of whatever type is expected.

I'm inclined toward recommending option 1, since the New-CfnStack and Update-CfnStack commands are currently able to handle an empty string as the parameter value.

Thanks for the detailed write up.
I've marked this as feature request for now, since as a team we need to discuss where this change should potentially be made. Given that the cmdlets use the underlying AWS SDK for .NET to make all calls to service apis, I'm fairly sure this could be reproduced with just an SDK app making the calls, so perhaps this is something we might want to fix there. Or as you suggest, we could update the cmdlets to trim out null parameter values (provided this doesn't cause side effects such as the service then deleting the parameter as it wasn't present in the input set -- we'll need to check docs etc).
Anyway, we'll discuss and come up with a plan and then update the issue with details.

Thanks for the quick response! I'll leave it in your capable hands.

This feature request has been added to our backlog.


Add enable in Playwright config

Is it possible to add an enable=true|false argument in RPConfig of the playwright, like we have rp.enable in Java?

Hello @MihirModiAC !
Is it possible to control it outside of the reporter?
I mean smth like this:
const isRPEnabled = process.env.RP_ENABLED;

const config: PlaywrightTestConfig = {
  reporter: [['line']].concat(isRPEnabled ? ['@reportportal/agent-js-playwright', RPconfig] : []),
};

And in this case, no instance of the reporter will be created.

Yes, I think this is what I am looking for. Let me give it a try. Thank you.

I only want to update results for some runs not all of them. If I update playwright.config.ts as mentioned, the results will be updated all the time. In the Java Properties file, we have rp.enable=true or false which can dynamically control the reporting. I can set rp.enable=false in the command line and it will skip reporting. I tried your suggestion but it does not work. The playwright does not allow me to concat anything to the reporter, giving me a syntax error.

It was just a tip, looks like you've got a TS error with types mismatch, this can be fixed:
import { PlaywrightTestConfig, ReporterDescription } from '@playwright/test';

const isRPEnabled = process.env.RP_ENABLED;

const config: PlaywrightTestConfig = {
  reporter: isRPEnabled ? [['line'], ['@reportportal/agent-js-playwright', RPconfig]] : [['line']],
};

// OR

const reporterList: ReporterDescription[] = [['line']];

if (isRPEnabled) {
  reporterList.push(['@reportportal/agent-js-playwright', RPconfig]);
}

const config: PlaywrightTestConfig = {
  reporter: reporterList,
};

Yes, this worked. Thank you. Please close the ticket. Appreciate your help.


Update header

Reviewer: @subsymbolic
Asana: https://app.asana.com/0/0/350773986899432
Description: Changed the file header to display Apache 2.0 license
Reviewer Checklist:

[ ] Ensure the PR solves the problem
[ ] Review every line of code
[ ] Ensure the PR does no harm by testing the changes thoroughly
[ ] Get help if you're uncomfortable with any of the above!
[ ] Determine if there are any quick wins that improve the implementation

PR DRI Checklist:

[ ] Get advice or leverage existing code
[ ] Agree on technical approach with reviewer (if the changes are nuanced)
[ ] Ensure that there is a testing strategy (and documented non-automated tests)
[ ] Ensure there is a documented monitoring strategy (if necessary)
[ ] Consider systems implications (Database connections, Grafana stats, CPU)

Thanks for doing this. Just one comment about formatting, feel free to merge once that's fixed


Set AWS credentials in the environment so go-getter can use them

In going from 0.18.7 to 0.19.0, the method for downloading Terraform sources changed from terraform init to the hashicorp/go-getter library. This introduces a regression where an artifact in S3 can no longer be fetched using an assumed role.
.ssh/config
[ops]
aws_access_key_id=...
aws_secret_access_key=...

Failing output with Terragrunt 0.19.8 and Terraform 0.12.3:
$ export AWS_PROFILE=ops TERRAGRUNT_IAM_ROLE=arn:aws:iam::1234567890:role/my_role
$ terragrunt -version AWS_SDK_LOAD_CONFIG=true
terragrunt version v0.19.8
$ terragrunt init
[terragrunt] [/path/to/tfvars] 2019/07/03 17:29:27 Running command: /bin/terraform --version
[terragrunt] 2019/07/03 17:29:28 Reading Terragrunt config file at /path/to/tfvars/terragrunt.hcl
[terragrunt] 2019/07/03 17:29:28 Assuming IAM role arn:aws:iam::1234567890:role/my_role
[terragrunt] 2019/07/03 17:29:28 Downloading Terraform configurations from s3::https://s3-us-west-2.amazonaws.com/bucket/path/to/artifact.zip into /path/to/tfvars/.terragrunt-cache/uDnJlgn36Yz7t4-tE1QuPQJn2Ys/zTAc8OMcrkmYXjA_RJsARenWbMw
[terragrunt] 2019/07/03 17:29:28 Hit multiple errors:
AccessDenied: Access Denied
    status code: 403, request id: 06341E42B14F7178, host id: AxrAQ5qj61+r1buzdVlxun2Qr+GZhUUdME+OpqPibQDnjMKQl6lwSpCcn7oqbRIPsCW/pN5uQg8=
[terragrunt] 2019/07/03 17:29:28 Unable to determine underlying exit code, so Terragrunt will exit with error code 1

Output with Terragrunt built off of this PR:
$ terragrunt init
[terragrunt] [/path/to/tfvars] 2019/07/03 17:16:00 Running command: /bin/terraform --version
[terragrunt] 2019/07/03 17:16:01 Reading Terragrunt config file at /path/to/tfvars/terragrunt.hcl
[terragrunt] 2019/07/03 17:16:01 Assuming IAM role arn:aws:iam::1234567890:role/my_role
[terragrunt] 2019/07/03 17:16:01 Downloading Terraform configurations from s3::https://s3-us-west-2.amazonaws.com/bucket/path/to/artifact.zip into /path/to/tfvars/.terragrunt-cache/uDnJlgn36Yz7t4-tE1QuPQJn2Ys/zTAc8OMcrkmYXjA_RJsARenWbMw
[terragrunt] 2019/07/03 17:16:02 Copying files from /path/to/tfvars into /path/to/tfvars/.terragrunt-cache/uDnJlgn36Yz7t4-tE1QuPQJn2Ys/zTAc8OMcrkmYXjA_RJsARenWbMw/modules
[terragrunt] 2019/07/03 17:16:02 Setting working directory to /path/to/tfvars/.terragrunt-cache/uDnJlgn36Yz7t4-tE1QuPQJn2Ys/zTAc8OMcrkmYXjA_RJsARenWbMw/modules
[terragrunt] 2019/07/03 17:16:02 Initializing remote state for the s3 backend
[terragrunt] 2019/07/03 17:16:02 Running command: /bin/terraform init -backend-config=region=us-west-2 -backend-config=bucket=... -backend-config=dynamodb_table=... -backend-config=encrypt=true -backend-config=key=...
Initializing modules...

This is likely actually an issue with the go-getter library not properly handling AWS credentials, but the change in this PR is a lower effort fix. I've tested that this fixes the issue in my setup. I've also tested separately that having Terragrunt pull in https://github.com/hashicorp/go-getter/pull/185 (which looks related) does not fix my issue.

I was going through the terragrunt code yesterday and found very good comments in it, explaining why  something was done. So for this, I would add a note as well, something like "it's for go-getter not doing the auth right".
Just my 2 cents.


CreateComposedLookByName creates new context object and breask app only process

CreateComposedLookByName method creates new context or tries to create new context to the root site of site collection. This could work with user credentials, but fails with app only toke usage with async patterns.
There's no way currently to upload or create easily theme to root site of  site collection using app only token. This capability has been removed or marked as deprecated, which obviously has to be fixed.

CreateComposedLookByName has been tested using app only (see unit test changes for app only testing) and the Clone change makes it work under app only

Will be fixed in the Nuget package when the Jan release will be pushed out. Issue still exists in the Dec Nuget package.


Validations aren't updated in case of drag'n'drop

Hi, I have validation problems using drag'n'drop with 10.1.9 version.
http://jsfiddle.net/maqbzv15/404/
Look at
  <div ngf-drop
      ng-model="picFile">

   <input type="file"
	      ngf-select
	      ng-model="picFile"
	      name="file"
          required>

    <div>{{myForm.file.$error|json}}</div>
 </div>

When I select file using input field $error object is empty.
However when I use drag-n-drop - $error object still contains
{required: true}.
What is the right way to validate file using both methods - input type = 'file' and drop mode
How to update form validation in case I use drag-n-drop.
Thanks in advance

I've found temporary solution in form of additional directive. However I'm not sure that it will be appropriate solution for all other validation strategies such as max-size etc.
function link(scope,elem,attrs,ngModelCtrl){
	scope.$watch(()=>ngModelCtrl.$modelValue,newVal=>{
		let type;

		if(!newVal){
			return;
		}

		type = Object.prototype.toString.call(newVal).slice(8,-1).toLowerCase();

		if(type !== 'file'){
			return;
		}

		ngModelCtrl.$setValidity('required',true);
	});
}
```

It seems to be weird to perform this additional operation.
Maybe there is a better way?

required is for a single form element and since you have it on the input type file it would be required for that element only.
If you want to make sure the file exists remove the required directive and just check picFile != null and show the required error with that check.


HDDS-10789. Check policy based on original replicas instead of eligibleReplicas

What changes were proposed in this pull request?
In RatisOverReplicationHandler, the eligibleReplicas might be trimmed due to uniqueness check, and the check of placement policy should be done on the original replicas set, instead of the trimmed eligibleReplicas.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10789
How was this patch tested?
Original tests.

I am not sure on this. @siddhantsangwan might remember more clearly, as I think he worked on it.
However, eligibleReplicas is the set of replias with pendingDelete and out of service removed. Ie, those replicas are going to go away "soon" so we should not consider them for over replication / placement or removal. So the set is trimmed down to that. Then we retain certain unhealthy replicas by also removing them from the set.
At the end of the trim, we have a set of replicas that are in the system and can be removed. If we use the original set for the placement check, then there are potentially replicas that are going to be removed in it, and so the check is not consistent with the future view.
By using the eligible replicas in the placement check, we are using all the healthy and not going to be deleted replicas, which seems like the correct thing to do.

@sodonnel Thanks for the review.
The case we met the issue is as follows:
0. Four replicas in QUASI_CLOSE state from the single source.

OriginalSet will be 4 replicas, eligibleSet has 3 replicas, one removed since for uniqueness.
Then in comparing the policy validity, it will compare between 3 replicas and 2 replicas, this is not correct.

For inprogress moves, this should be removed here.

I think this change looks good in concept. If the comments from @ivandika3 are addressed it should be good to commit.
A unit test would be nice too, but I know it can be a little tricky to setup mis-replication scenarios in the unit tests.

@symious do you plan to address review comments?

/pending review comments


(MacOS) Install failing: Could not compare "6.0.0-alpha" to "5.0". Error...

Output of $PSVersionTable (from a powershell process):
PS /Users/<username>/.local/share/powershell/Modules> $PSVersionTable.PSVersion

Major Minor Patch Label
----- ----- ----- -----
    6     0     0 alpha

Output of ipmo Docker; (module Docker).Version.ToString() (from a powershell process):
(paste your output here)

Steps to reproduce the issue:

Register-PSRepository -Name DockerPS-Dev -SourceLocation https://ci.appveyor.com/nuget/docker-powershell-dev
2.Install-Module Docker -Repository DockerPS-Dev

What actually happened?:
I am on a MacOS system 10.11.6 and have installed the PowerShell from here: https://github.com/PowerShell/PowerShell
After that I tried installing the docker module, with the complete error:
PS /Users//.local/share/powershell/Modules> Install-Module Docker -Repository DockerPS-Dev
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by
running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'DockerPS-Dev'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A
PackageManagement\Install-Package : Could not compare "6.0.0-alpha" to "5.0". Error: "Cannot convert value "5.0" to type          "System.Management.Automation.SemanticVersion". Error: "Cannot process argument because the value of argument "version" is not valid.  Change the value of the "version" argument and run the operation again.""                                                              At /usr/local/microsoft/powershell/6.0.0-alpha.9/Modules/PowerShellGet/PSModule.psm1:1706 char:21oooooooooooooooooooooooooooooooooooo] + ...          $null = PackageManagement\Install-Package @PSBoundParameters                                                            +                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : ComparisonFailure,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
What did you expect to happen?:
Successful Installation
Additional information:

Hi @chrber, thanks for giving our cmdlets a try!  Unfortunately, we haven't actually checked in the support for cross-platform PowerShell yet (I'm still fighting with our appveyor build over at https://github.com/Microsoft/Docker-PowerShell/pull/124).  Even once that PR goes in, for the time being our dev nuget feed will be Windows only (we are working on a solution for that, and to make sure we don't lose track, I filed https://github.com/Microsoft/Docker-PowerShell/issues/126).
In the meantime, if you are willing, you try compiling the contents of https://github.com/swernli/docker-powershell/tree/unix-support and seeing if that works for you?  A word of warning: we haven't tried compiling or running on OSX yet, so you'd be blazing the trail, and one known limitation is that interactive connections to containers will currently throw "Not Supported" when trying to run on OSX.  If you'd rather wait for us to produce a package, I understand, and we will try to get that together soon.
We appreciate any input or contributions you might have, and look forward to seeing how this works for you when the rest of the pieces come together!
@jstarks @jterry75 FYI.

FYI: Workaround is available using Install-Package https://github.com/PowerShell/PowerShell/issues/1773

@chrber I believe this issue should be fixed with the latest powershell version.  Can you retry and confirm?

I'll close this issue for now, as I believe the latest powershell resolves it.  Please re-open if you are still experiencing the problem.

Shall I open another issue as I now have a different problem or shall we go on in this issue?
PS /Users/bernardt> Install-Module Docker -Repository DockerPS-Dev
PackageManagement\Install-Package : Could not find a part of the path                                                             '/usr/local/microsoft/powershell/6.0.0-alpha.11/Modules/Docker/<IP_ADDRESS>'.                                                             At /usr/local/microsoft/powershell/6.0.0-alpha.11/Modules/PowerShellGet/PSModule.psm1:1823 char:21                                     + ...          $null = PackageManagement\Install-Package @PSBoundParametersoooooooooooooooooooooooooooooooooooooooooooooooooooooooooo] +                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                + CategoryInfo          : NotSpecified: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : System.IO.DirectoryNotFoundException,Microsoft.PowerShell.Commands.CopyItemCommand,Microsoft.PowerShell
.PackageManagement.Cmdlets.InstallPackage

Can you install anything from PowerShell? I think this bug is not specific to the package and its possible that is specific to PowerShell itself on OSX. Maybe we should open the bug on their side?


Create replit.gitignore

Pull Request
Thank you for contributing to @toptal/gitignore and https://www.gitignore.io.
New or update
Select the appropriate check box for this pull request. This helps when merging to ensure there are no conflicts with other templates or misunderstandings of how thee template list works.
New

[x] Template - New .gitignore template
[ ] Composition - Template made from smaller templates
[ ] Inheritance - Template similar to an existing template
[ ] Patch - Template extending functionality of existing template

Update

[ ] Template - Update existing .gitignore template

Details
Create a .gitignore template for the online IDE Replit

@filipechagas could you take a look at this?

@stellasphere, thank you for taking the time to contribute! I am not too familiar with repl.it IDE, but having a quick look at https://docs.replit.com/programming-ide/configuring-repl it seems that these are important config files.
So for example without having the .nix file, repl wouldn't know which technologies you want available in your environment, isn't it so?
{ pkgs }: {
	deps = [
		pkgs.nodejs-16_x
        pkgs.nodePackages.typescript-language-server
        pkgs.yarn
        pkgs.replitPackages.jest
	];
}

Can you elaborate please, why do you want to .gitignore them? Could it be that it is just related to your special use-case and would not be applicable to the everyone?

Hi, thanks for the reply. The files configure the language that the "repl" is run in. Even within Repl.it the files are recreated when importing based on the language makeup and if Replit config files are already present, they are overwritten by the newly generated ones anyways.


Move Phantom folder into src/

Issues
Move phantom into the src folder
Todos
What's outstanding?
Impacted Areas
What components will be affected?
Steps to Reproduce
What do we need to run, or what do we need to do to test this?

verbal dtm from @josephco


[APOLLO-2015]: fix bug that cannot resolve blank line in properties under Windows

resolve #2015

Codecov Report

Merging #2017 into master will decrease coverage by 0.07%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #2017      +/-   ##
============================================
- Coverage     50.24%   50.17%   -0.08%
+ Complexity     1980     1978       -2
============================================
  Files           400      400
  Lines         12349    12349
  Branches       1275     1275
============================================
- Hits           6205     6196       -9
- Misses         5686     5694       +8
- Partials        458      459       +1

Impacted Files
Coverage Δ
Complexity Δ

...portal/component/txtresolver/PropertyResolver.java
86.04% <100%> (ø)
42 <1> (ø)
:arrow_down:

...work/apollo/biz/message/DatabaseMessageSender.java
57.14% <0%> (-10.21%)
6% <0%> (-2%)

...mework/apollo/portal/component/PortalSettings.java
65.07% <0%> (-4.77%)
5% <0%> (ø)

.../apollo/internals/RemoteConfigLongPollService.java
79.14% <0%> (-0.62%)
27% <0%> (ø)

Continue to review full report at Codecov.

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

Coverage decreased (-0.06%) to 53.891% when pulling 73f74c05e387138dff6cd39935f1ce49b3a0af95 on kezhenxu94:bugfix/2015 into dfa9f7a986ca1a0624c4f7df582e620dd1cceff4 on ctripcorp:master.


not printing correctly for 1/8 scan

i am using 32*32 1/8 hub75 led panel with esp32 . I tried all sketchs but ended up with missing pixels.

this is what i am getting printed.

yes, as my matrix panel has three data lines that is A,B and C.
I have selected 1/8 and also tried others i.e 1/16,1/32,1/4.
but the best result is 1/8 in which some pixels are missing.

Is there any in the library with ESP32 ? Have you tested this with ESP32 ?

also i have tried different scan pattern i.e. line ,zigzag ,zagziz.

Yes ...  please run the pattern test sketch from examples and post the result


Simplify device listings and add longer ray5

This PR simplifies the device listings to separate types better, and also adds the Longer Ray5 to the list - making it easier for newcomers to get set up. Most types of devices not under a specific product or category have been moved into a generic or firmware named category.
I've mostly removed the redundant "Family Priority" entry as we can sort by name instead to form more concise grouped listings.
Summary by Sourcery
Simplify device listings by reorganizing categories and removing redundant attributes, and add support for the Longer Ray5 device.
New Features:

Add support for the Longer Ray5 device in the GRBL plugin, allowing users to configure and use this specific diode laser model.

Enhancements:

Simplify device listings by removing the 'family_priority' attribute and sorting devices by 'family' and 'priority' instead.
Reorganize device categories to better reflect their types, such as renaming 'Older CO2-Laser' to 'Newly CO2-Laser' and 'Generic' to 'Generic Diode-Laser'.

Your method will create a different sequence of devices if a different language than English is chosen. That was the reason why we added a specific sort key to ensure a defined sequence regardless of the langage settings. So I would advise to keep the family_priority key.

Not that we have translations now - but how about we sort names first, and then apply translations afterwards, effectively keeping the ordering? Re-sorting only gets triggered manually it appears.

Probably a bit of a personal preference - Labels are not necessarily providing a good sorting criteria - so is a GRBL better placed before a K40 or a Lihuiyu device?
A translation afterwards is a bit messy, as we have a couple of external tools for the translators that look for a _("Something to translate") occurence  (specifically for the _( invocation).
We have translations for the family types:

Probably a bit of a personal preference - Labels are not necessarily providing a good sorting criteria - so is a GRBL better placed before a K40 or a Lihuiyu device?
A translation afterwards is a bit messy, as we have a couple of external tools for the translators that look for a _("Something to translate") occurence  (specifically for the _( invocation).
We have translations for the family types:

I was not aware, thanks for pointing that out.
Family priority still feels quite clunky.
After translating, do the internal names still remain the same? Or do they change?
How about, when translating, adding an extra field 'family_translated', so that the normal family name can still be used for sorting? For displaying, just check if translated exists for that device, if so, use that for display name, if not, then use the normal family name.

As for order of names, it's reverse alphabetical, so grbl/generic goes AFTER K-series and others

Probably a bit of a personal preference - Labels are not necessarily providing a good sorting criteria - so is a GRBL better placed before a K40 or a Lihuiyu device?
A translation afterwards is a bit messy, as we have a couple of external tools for the translators that look for a _("Something to translate") occurence  (specifically for the _( invocation).
We have translations for the family types:

I was not aware, thanks for pointing that out.
Family priority still feels quite clunky.
After translating, do the internal names still remain the same? Or do they change?
How about, when translating, adding an extra field 'family_translated', so that the normal family name can still be used for sorting? For displaying, just check if translated exists for that device, if so, use that for display name, if not, then use the normal family name.

What about a mapping function for priority? Instead of defining family priority in the device entry, it could be sorted based on family name inside of a map, like so:
Family 1 -> priority 5
Family 2 -> priority 30
[ Etc... ]

What about a mapping function for priority? Instead of defining family priority in the device entry, it could be sorted based on family name inside of a map, like so:
Family 1 -> priority 5 Family 2 -> priority 30 [ Etc... ]

I think that could make sense.

What about a mapping function for priority? Instead of defining family priority in the device entry, it could be sorted based on family name inside of a map, like so:
Family 1 -> priority 5 Family 2 -> priority 30 [ Etc... ]

I think that could make sense.

That should do it.