Can't Press TextureButtons with Negative Scale

If you have a TextureButton with a scale whose x or y contains a negative value, you can't click on it.
To demonstrate this, take an empty project, create two TextureButtons, one named "Normal" and the other named "Flipped". Set their Normal texture to whatever you'd like (I used the default icon.png for both), then add the following code to the scene:
func _ready():
    get_node("Normal").connect("pressed", self, "button_pressed")
    get_node("Flipped").set_scale(Vector2(1, -1))
    get_node("Flipped").connect("pressed", self, "button_pressed")

func button_pressed():
    print("A button was pressed.")

The print statement will happen for the Normal button but not for the Flipped button. This seems to happen regardless of whether the scale was set in the editor or via code, as long as at least one of the values is negative. Things work fine with arbitrary positive values.

Confirmed in the current master branch.

For the record, this method has been renamed to TextureButton.set_texture_scale(), as all GUI components now can have scale

Fixed (but referenced wrong issue in commit)

So fixed by 0c6a4b47.


add new variant Arr to Key enum

We might want to have the ability to store whole data within Key instead of only store a reference, e.g. if we want to implement PrimaryKey trait for an enum, currently there seem no obvious solution (Or just me haven't figured it out). the code below throws returns a value referencing data owned by the current function. If we allow bytes directly stored in Key, the problem can be solved and allow easier implementation of PrimaryKey trait for more complex types.
The question is actually what's a recommended/robust way to encode and decode "complicated" key for cw_storage_plus::Map
// allow denom as part of key of cw_storage_plus::Map
impl<'a> PrimaryKey<'a> for Denom {
    type Prefix = ();

    type SubPrefix = ();

    type Suffix = Self;

    type SuperSuffix = Self;

    fn key(&self) -> Vec<cw_storage_plus::Key> {
        vec![Key::Ref(&format!("{}", self).as_bytes())] // this throws err since only reference allowed to be stored in Ref
    }
}

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

Closing this, as only references and small byte slices (up to 16 bytes) are allowed for keys by design.


Test using the official AWS test suite and multiple fixes to make them pass

Hello,
As part of my work on Hibernate Search (https://github.com/hibernate/hibernate-search/pull/1454), I used this project to handle AWS authentication. I noticed that not every normalization required by AWS is implemented, so here is a PR to address that.
The first commit just changes the .gitignore file.
The second commit adds the official test suite from AWS to the project: http://docs.aws.amazon.com/general/latest/gr/signature-v4-test-suite.html
The third commit relaxes the constraints over how the path and query are passed to the signer. It is needed in order to use the AWS test suite, and I also happen to need it in Hibernate Search.
The following commits fix the issues that prevented the test suite to pass.
@lucasweb78 Do you think this could get merged, and hopefully released anytime soon?

Thanks for the contributions. I'll review and merge later today push to maven central over the weekend.

This is now merged and I have pushed it to Maven Central as version 1.3. It should hopefully be available there in the next few hours

@lucasweb78 It's available and works just fine. Thanks a lot!

Awesome! Thanks @lucasweb78


Should example from "First Steps" find minimum of a function?

Here is what it returning:

I.e. minimum is not found.
Many runs give a lot of positions of vertical red line. Very rare it is near a minimum. Is this by design?

Simultaneously myBopt.x_opt looks like containing correct value...

The red line on the plot is not the location of the optimum. It is the place of where the acquisition recommends to run the objective function next. Depending on the acquisition this could be point of highest variance of the model, point that gives highest probability of improvement, point that reduces entropy the most etc.
In this case 15 iterations is probably a bit too much, as you can see that after about 7-8 iterations good fit is achieved and min is found. But if you run longer, acquisition will try to improve the fit the best it can.
Looking at x_opt and fx_opt is correct way to get the final result, the plot is there for some illustration only.
Does that make sense?


Multi db system test async

This includes the changes for multi-db with parameterized system tests so that we can test how different databases perform against the test suite.

Closed because other multi-db PR adds parameterized system tests


syntax error - download_historical_prices.py

ubuntu 16.04
✘-1 ~/MachineLearningStocks [master|✚ 1…21968]
05:02 $ python download_historical_prices.py
  File "download_historical_prices.py", line 35
    print(f"{len(missing_tickers)} tickers are missing: \n {missing_tickers} ")
                                                                             ^
SyntaxError: invalid syntax

@alphaaurigae
Hi, thanks for raising this issue (and apologies for the slow response)
Can I check what version of python you are using? I'm not getting this error on my system – I think the problem might be that python versions before 3.6 doesn't support f-strings. I'm pretty sure that updating your python to 3.6 should fix the issue.
I notice that the readme doesn't specify the python version for this project, so I will amend it as soon as I can.

Python 3.5.2 , current on 16.04 with apt-get repositories.
18.04 comes with python3 3.6.3-0
https://launchpad.net/ubuntu/bionic/+package/python3
https://www.ubuntu.com/info/release-end-of-life
So your repo is just fine and i need to upgrade ...
Thanks for help!


[ZEPPELIN-1298] Address invalid ticket warnings when server restarted

What is this PR for?
When Zeppelin server restarted then all previously open tab tickets will be invalidated. It causes execessive PING logs and requires user to refresh the page. More details in comments of the issue.
What type of PR is it?
Bug Fix | Improvement
Todos

[x] - remove ping warning
[x] - add popup

What is the Jira issue?
ZEPPELIN-1298
How should this be tested?

start Zeppelin server and login
restart server
try to do something in previously open window

Screenshots (if appropriate)
Before:

After:

Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

LGTM and merge to master if there're no further discussions.


Get Started with Oracle Big Data Service (BDS)-WMS ID:660

Add here your WMS ID
General requirements

Information in the workshop is adequate and updated
Code is correct and working
Links are correct
Make sure you enter the help email link in your manifest.json
Please make sure WMS URLs are updated as needed after your PR is approved

Checklist - Refer to the QA document for the complete list
Please confirm that the following is completed before submitting your PR

[ ] All filenames are lower case (including folders, images, files, etc.)
[ ] Filenames are descriptive
[ ] Your workshop folder structure should be similar to the one used in the sample workshop (https://github.com/oracle-livelabs/common/tree/main/sample-livelabs-templates/sample-workshop)
[ ] Are you using multiple versions (desktop/, sandbox/, tenancy/)? Make sure that each of them contains a manifest.json and an index.html
[ ] Image references in markdown contain an alternate text

co-work with the BDS product manager(Anand Chandak) to refresh the lab with the lastest BDS changes.


Coinbase - datetime conversion issue

I'm having the following conversion issue for Coinbase

Seems that the format I'm getting while exporting from Coinbase is different from what you have in your unit tests (https://github.com/VibeNL/GhostfolioSidekick/blob/master/Parsers.UnitTests/TestFiles/Coinbase/BuyOrders/single_buy.csv)

This is what I have in my file:

I'm exporting from here: https://accounts.coinbase.com/statements

To correctly implement could you provide a few example files (with fabricated data if you so please). I see also a buy type I haven't seen 😇

I've added a few different dummy transactions to the attached file - thanks for your support
dummy_transactions_history.csv

I have edited some code, could you test the build at the pull request?

I can see some buy and sells activities being imported successfully but for example the learning rewards are not being imported.
I have this error in the logs - can't tell which entry is causing it :|

Hmmm, just exported my own history and apparently they have updated their export format. I'm in the process of updating the parser 😇

Making some progress, still having some issues  with conversions of assets

Good to hear it is working, closing the pull request :). If there are still any issues, please raise a new issue.


ENH: scipy.sparse._sparsetools.csr_column_index1 version 1.9.2 takes twice as long to execute than in previous 1.9.1 version

Is your feature request related to a problem? Please describe.
When slicing a csr_matrix, it takes double the time between 1.9.1 and 1.9.2 versions. Specifically the call from scipy.sparse._sparsetools.csr_column_index1. The slowdown is present in all versions > 1.9.1. I measured the times in a loop of the code bellow using cProfile and the time is consistently at least doubled with the newer version. Is this intentional or desired? Thanks
Describe the solution you'd like.
I'd like the previous faster time :)
Describe alternatives you've considered.
No response
Additional context (e.g. screenshots, GIFs)
from scipy.sparse import csr_matrix
import numpy as np
import cProfile as profile

pr = profile.Profile()
pr.disable()

weights = np.random.random(200)
x_indexer = np.zeros(200)
y_indexer = np.random.randint(0, 2_000_000, 200)
matrix = csr_matrix((weights, (x_indexer, y_indexer)), shape=(1, 2_000_000))
idxs = np.random.randint(0, 2_000_000, 100)

pr.enable()
for _ in range(100):
    result = matrix[:, idxs]
pr.disable()

According to git blame, the csr_column_index1 function hasn't been changed in 5 years. I wonder if something about the build system changed between these versions?


move group watching detail from page navigation to group header

Fixes #465

Indeed, after viewing the component page-navigator it meant either deleting it and move buttons in the group-header and item-header or leave it as is. I opted for the 2nd choice, the 1st one was too impacting. Maybe later if we run into further problems ?


Feat:Adding a scroll-to-top button

Describe the feature
Please add a "Scroll to Top" button to improve user experience. The button should appear after scrolling down and allow users to quickly return to the top of the page.
Add ScreenShots

Assign this issue  under Gssoc24.
Record

[X] I agree to follow this project's Code of Conduct
[X] I have checked the existing issues
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@Satyam1923, please assign this issue to me under GSSoC'24. I am eager to contribute to your project and help make your website more user-friendly.


update generate_item_metadata to optionally use config default value

Pre-Flight checklist

[x] Testing

[x] Code is tested
[x] Changes have been manually tested

What are the relevant tickets?
#1343
What's this PR do?
This PR changes create_gdrive_resource_content to set default metadata values based on default field values in the config; these field values would be populated in a form when creating a new item on the frontend.
How should this be manually tested?
Create a gdrive resource and verify that the license is set. No other resource fields currently have a default.

Codecov Report

Merging #1363 (111f619) into master (0b1c4c3) will increase coverage by 5.34%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1363      +/-   ##
==========================================
+ Coverage   89.06%   94.40%   +5.34%
==========================================
  Files         231      110     -121
  Lines        9555     3308    -6247
  Branches     1777      785     -992
==========================================
- Hits         8510     3123    -5387
+ Misses        928      178     -750
+ Partials      117        7     -110

Impacted Files
Coverage Δ

gdrive_sync/api.py

websites/site_config_api.py

content_sync/apis/github.py

main/apps.py

...ement/commands/markdown_cleaning/rules/removals.py

gdrive_sync/__init__.py

videos/factories.py

websites/serializers.py

...ev/management/commands/generate_example_configs.py

websites/signals.py

... and 111 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 0b1c4c3...111f619. Read the comment docs.


dts/arm: st: f1: Move CAN node add support for f103X8

Moved can, spi, usb, usb_fs_phy nodes to f103X8 dts.
Adds CAN for f103X8 series.
Tested on stm32f103c8 soc.
Tested on stm32f103vb soc.
Signed-off-by: Bhavesh Bhojwani<EMAIL_ADDRESS>

Can you give some more context why you deleted/moved this nodes please.

Can you give some more context why you deleted/moved this nodes please.

Yes, I'd like to highlight the method followed is the same as referencing stm32f1.dtsi for any child series in the MCU family.
And as per stm32f103 product page and datasheet, stm32f103X8 series precedes XC, XD, XE, XF, XG, thus they can reference the common peripherals from the preceding ones; for e.g. stm32f103Xc.dtsi references stm32f103Xb.dtsi.
CAN node was missing from stm32f103X8.dtsi, adding this, for e.g., enables CAN for stm32_min_dev_blue which is widely being used in many projects.
Also the entry level MCU of the stm32f103 family has can, i2c, usb, uart, spi at similar config and addresses; I had planned to club all this in stm32f103.dtsi and reference in the respective MCU series, but currently I don't have any dev boards from stm32f103X6/4 series to test it out properly and look for conflicts.


Can a single graphics card with 24 GB of video memory load the t5-v1_1-xxl model? Do smaller language models still exist?

Can a single graphics card with 24 GB of video memory load the t5-v1_1-xxl model? Do smaller language models still exist?

Thank you for your question!
Unfortunately, a single graphics card with 24 GB of VRAM is not sufficient to load the t5-v1_1-xxl model, as it requires approximately 27 GB of VRAM. However, we recommend the following approach: precompute the language embeddings on a server or web API, as outlined in this guide.
Smaller language models are still available but may require further alignment. You can follow the LLaVA practice, which involves training a specific adapter for your customized language model with provided pretraining dataset to integrate it into RDT.
Please let us know if you have any further questions!

Thanks for your answer!
#Could you please provide the language-encoded files? We want to simply test it. @ethan-iai

file: https://github.com/thu-ml/RoboticsDiffusionTransformer/blob/main/scripts/encode_lang.py. btw, we are currently testing t5-xxl in offload mode, which may fit in 24G GPU. keep in touch

file: https://github.com/thu-ml/RoboticsDiffusionTransformer/blob/main/scripts/encode_lang.py. btw, we are currently testing t5-xxl in offload mode, which may fit in 24G GPU. keep in touch

Thank you very much for your reply！

file: main/scripts/encode_lang.py. btw, we are currently testing t5-xxl in offload mode, which may fit in 24G GPU. keep in touch

It seems work. Further detail on how to toggle offload will be clarifed in https://github.com/thu-ml/RoboticsDiffusionTransformer?tab=readme-ov-file#deployment-on-real-robots

Hi @qiynxx,
Details on encoding with offloading are thoroughly explained in the Deployment on Real Robots section. Please feel free to give it a try.
Thank you for your valuable suggestion!

Hi @qiynxx,
Details on encoding with offloading are thoroughly explained in the Deployment on Real Robots section. Please feel free to give it a try.
Thank you for your valuable suggestion!

Hi @ethan-iai,
First, many thanks for open-sourcing RDT.
I tried encoding with offload, but it didn't work, I got error after running python -m scripts.encode_lang:
You are using the default legacy behaviour of the <class 'transformers.models.t5.tokenization_t5.T5Tokenizer'>. This is expected, and simply means that the `legacy` (previous) behavior will be used so nothing changes for you. If you want to use the new behaviour, set `legacy=False`. This should only be set if you understand what it means, and thoroughly read the reason why this was added as explained in https://github.com/huggingface/transformers/pull/24565
Traceback (most recent call last):
  File "/home/px/miniconda3/envs/rdt/lib/python3.10/site-packages/transformers/modeling_utils.py", line 534, in load_state_dict
    return torch.load(
  File "/home/px/miniconda3/envs/rdt/lib/python3.10/site-packages/torch/serialization.py", line 1004, in load
    overall_storage = torch.UntypedStorage.from_file(f, False, size)
RuntimeError: unable to mmap<PHONE_NUMBER>9 bytes from file <google/t5-v1_1-xxl/pytorch_model.bin>: Cannot allocate memory (12)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/px/miniconda3/envs/rdt/lib/python3.10/site-packages/transformers/modeling_utils.py", line 543, in load_state_dict
    if f.read(7) == "version":
  File "/home/px/miniconda3/envs/rdt/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 64: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/px/miniconda3/envs/rdt/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/px/miniconda3/envs/rdt/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/px/ws/my_ws/RoboticsDiffusionTransformer/scripts/encode_lang.py", line 59, in <module>
    main()
  File "/home/px/ws/my_ws/RoboticsDiffusionTransformer/scripts/encode_lang.py", line 28, in main
    text_embedder = T5Embedder(
  File "/home/px/ws/my_ws/RoboticsDiffusionTransformer/models/multimodal_encoder/t5_encoder.py", line 80, in __init__
    self.model = T5EncoderModel.from_pretrained(
  File "/home/px/miniconda3/envs/rdt/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3556, in from_pretrained
    state_dict = load_state_dict(resolved_archive_file)
  File "/home/px/miniconda3/envs/rdt/lib/python3.10/site-packages/transformers/modeling_utils.py", line 555, in load_state_dict
    raise OSError(
OSError: Unable to load weights from pytorch checkpoint file for 'google/t5-v1_1-xxl/pytorch_model.bin' at 'google/t5-v1_1-xxl/pytorch_model.bin'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.

my params in scripts/encode_lang.py:
GPU = 0
MODEL_PATH = "google/t5-v1_1-xxl"
CONFIG_PATH = "configs/base.yaml"
SAVE_DIR = "outs/"

# Modify this to your task name and instruction
TASK_NAME = "lift_cube"
INSTRUCTION = "Pick up the cube with your two arms and lift it up."

# Note: if your GPU VRAM is less than 24GB,
# it is recommanded to enable offloading by specifying an offload directory.
OFFLOAD_DIR = "offload"

It looks like you’re facing an issue with loading the T5 model. The error is happening because the system cannot allocate enough memory for the model weights<PHONE_NUMBER>9 bytes or around 41.5 GB). This is likely because the model is too large for your available CPU memory, which is no related to offloading. Please double-check that your system (or cloud environment) has enough memory. If you’re working on a local machine, you might need to switch to run on the server.

It looks like you’re facing an issue with loading the T5 model. The error is happening because the system cannot allocate enough memory for the model weights<PHONE_NUMBER>9 bytes or around 41.5 GB). This is likely because the model is too large for your available CPU memory, which is no related to offloading. Please double-check that your system (or cloud environment) has enough memory. If you’re working on a local machine, you might need to switch to run on the server.

thanks. @ethan-iai
i only have a local machine with 32GB memeory.

My suggestions will be:

Try to offload to disk, you may need to google...
Try to encode language embeddings on a server machine with enough CPU memory.
Finally, if the above tips don't work, you may switch to a smaller encoder when fine-tuning.

My suggestions will be:

Try to offload to disk, you may need to google...
Try to encode language embeddings on a server machine with enough CPU memory.
Finally, if the above tips don't work, you may switch to a smaller encoder when fine-tuning.

many thanks. @csuastt @ethan-iai
I've increaed my CPU memory to 64GB, it works now.


Fix VMware memory retrieval

Description
Currently memory usage statistics in VMware are inverted. It was discovered that during statistics collection, memory usage was collected and passed as free memory, so the memory usage graphs were inverted. The free memory calculation has been fixed and the memory statistics are now consistent with what is observed in VMware.
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[X] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?
This was tested in a local lab, by creating a VM with VMware as its hypervisor and checking memory statistics in both vCenter and ACS.

Hi @JoaoJandre can you please target this PR to the 4.17 branch?

@blueorangutan package

@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates.  It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 3695

@blueorangutan test centos7 vmware-67u3

@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

Trillian test result (tid-4419)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 38983 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6414-t4419-vmware-67u3.zip
Smoke tests completed. 98 look OK, 0 have errors
Only failed tests results shown below:

Test
Result
Time (s)
Test File


Implement Positional/Writer/Sharing for references

My RPC system uses a lot of async streams of objects that are individual/isolated but I could reuse buffers between items after the binary data is written out. Just passing in &mut my_writer/&mut my_share to a Serializer would be nice, compared to having to take apart the serializer every iteration with into_raw_parts to gain access to the buffers again, and having to use Options with take and whatnot for stuff in the loop.
This also adds a .clear() method to Share to reset it but keep the allocated memory.

I learned Github has a feature to apply suggestions right here on the web interface. Nice.


navbar-fixed-top is breaking the layout

Hello, I'm a new user to bootflat. And I like it really much. But, when using navbar-fixed-top the page layout breaks, because the margins don't work, and all below content gets behind the navbar. Look at the page without the navbar-fixed-top class in the nav element:
http://prntscr.com/fakwmk
But when I add navbar-fixed-top to my nav element, this is what I get:
http://prntscr.com/faky7q
I already did a lot of testing on this, using the bootstrap templates, and the error persists. I think the error is not in my code. Take a look at my index.php file (I'm training PHP, yes).
index.php.zip

It looks like adding a div with style="clear: both" after the nav solved my problem. Although, maybe that's not the better solution for this.


[Bug]: --auth-server-whitelist="_" arg is not working for headless mode

Bug description
--auth-server-whitelist="_" arg is only working with headed mode. I tried with many puppeteer versions and I noticied that this arg in headless mode is not working anymore as of 12.0.0 version.
This args will ignore ntlm authentication
Puppeteer version
13.1.2
Node.js version
16.13.1
npm version
8.1.2
What operating system are you seeing the problem on?
Windows
Relevant log output
No response

I am facing the same issue. Even incognito mode is forcing the NTLM Authentication in newer versions

Have you tried --auth-server-allowlist=? See https://bugs.chromium.org/p/chromium/issues/detail?id=1142696


Add a prototype of TransactionConverter generator [ECR-3141]

Overview

See: https://jira.bf.local/browse/ECR-3141
Definition of Done

[ ] There are no TODOs left in the code
[ ] Change is covered by automated tests
[ ] The coding guidelines are followed
[ ] Public API has Javadoc
[ ] Method preconditions are checked and documented in the Javadoc of the method
[ ] Changelog is updated if needed (in case of notable or breaking changes)
[ ] The continuous integration build passes

Effect on services is in https://github.com/exonum/exonum-java-binding/pull/858/commits/be74caeeed243cd27214d566ddadcd4bf64c9d6a; an example of autogenerated file see below:

AutoTransactionConverter.java
package com.example.auto;

import com.exonum.binding.cryptocurrency.transactions.CreateWalletTx;
import com.exonum.binding.cryptocurrency.transactions.TransferTx;
import com.exonum.binding.service.TransactionConverter;
import com.exonum.binding.transaction.RawTransaction;
import com.exonum.binding.transaction.Transaction;
import java.lang.IllegalArgumentException;
import java.lang.Override;

public final class AutoTransactionConverter implements TransactionConverter {
  @Override
  public Transaction toTransaction(RawTransaction rawTransaction) {
    short txId = rawTransaction.getTransactionId();
    switch (txId) {
      case 1: return CreateWalletTx.fromRawTransaction(rawTransaction);
      case 2: return TransferTx.fromRawTransaction(rawTransaction);
      default: {
        String errorMessage = String.format("Unknown transaction id (%d) in %s", txId, rawTransaction);
        throw new IllegalArgumentException(errorMessage);
      }
    }
  }
}


Replace raw byte instructions with a procedural macro?

I'm curious if the various code snippets like:
// nopw (%rax,%rax)
0x66, 0x66, 0x66, 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0, 0, 0, 0, 0,
// mov %fs:0,%rax
0x64, 0x48, 0x8b, 0x04, 0x25, 0, 0, 0, 0,
// mov %fs:0,%rax
// lea {offset}(%rax),%rax
.copy_from_slice(&[0x64, 0x48, 0x8b, 0x04, 0x25, 0, 0, 0, 0, 0x48, 0x8d, 0x80]);

can be replaced with a procedural macro that will include the bytes by using as:
use std::{
    env,
    fs::{read, File},
    io::Write,
    process::Command,
};

use object::{Object, ObjectSection};

const TEMP_S: &str = "/tmp/asm.s";
const TEMP_O: &str = "/tmp/asm.o";

fn main() {
    let mut insn = env::args().nth(1).unwrap();
    println!("insn: {insn}");
    insn.push('\n');

    File::create(TEMP_S)
        .unwrap()
        .write_all(insn.as_bytes())
        .unwrap();
    assert!(Command::new("as")
        .arg(TEMP_S)
        .arg("-o")
        .arg(TEMP_O)
        .status()
        .unwrap()
        .success());

    let data = read(TEMP_O).unwrap();
    let file = object::File::parse(&*data).unwrap();
    let code_data = file.section_by_name(".text").unwrap().data().unwrap();
    println!("code: {code_data:0x?}");
}

❯ ./target/debug/asm-macro ".nops 8"
insn: .nops 8
code: [f, 1f, 84, 0, 0, 0, 0, 0]
❯ ./target/debug/asm-macro "mov %fs:0, %rax"
insn: mov %fs:0, %rax
code: [64, 48, 8b, 4, 25, 0, 0, 0, 0]

Would you welcome such a change or it won't pay off as the number of snippets is rather small?

Neat Idea. I'm open to it, but have some possible concerns.
For many of the asm snippets, I need to know an offset into the machine code at which to write some value. This is already a bit of a magic offset. If the machine code bytes aren't visible, then it's even more of a magic offset.
My other concern would be that it'd mean people would need to install an assembler in order to build wild. That wouldn't matter for people who download a precompiled binary from github (once those are set up), but it would matter for anyone who tries to use cargo install, which is, for better or worse, a popular way to install Rust tools. It'd also make it slightly harder for other projects to use Wild as a library, since anyone building those tools would need to install an assembler.
The machine code isn't hard to write as-is. I usually just copy the bytes from the output of linker-diff. If I'm writing assembly code that's passed to a proc macro, then I could imagine cases where it'd take a bit of work to write assembly that produces the desired byte sequence. Some of the instructions need padding bytes in order to end up the correct length.  e.g. the byte sequence 0x66, 0x66, 0x66, 0x64, 0x48, 0x8b, 0x04, 0x25, 0, 0, 0, 0 is mov %fs:0,%rax, but I'm betting if you put mov %fs:0,%rax into an assembler, you'd get a significantly shorter sequence of bytes.
To get a feel for the current process, I recommend finding some bit of code in relaxation.rs and comment it out, then run the tests and look at the failure. For example, if I comment out the following code:
                    section_bytes[offset - 3..offset + 9].copy_from_slice(&[
                        0x66, 0x66, 0x66, 0x64, 0x48, 0x8b, 0x04, 0x25, 0, 0, 0, 0,
                    ]);

I get a test failure containing the following:
  wild 0x00597f5e 48 8d 3d 00 00 00 00 lea 0x25,%rdi  // Lea_r64_m(0x597f65) POINTER-TO(byte in (RX))
  wild 0x00597f65 e8 00 00 00 00 call 0x000000000000002A  // Call_rel32_64(0x597f6a) POINTER-TO(byte in (RX))
  ld   0x0040188e 66 66 66 64 48 8b 04 25 00 00 00 00 mov %fs:0,%rax  // Mov_r64_rm64(0x0, 0x0) NULL NULL
  ORIG            48 8d 3d 00 00 00 00 lea 0x25,%rdi  // R_X86_64_TLSLD -> `std::panicking::panic_count::LOCAL_PANIC_COUNT::{{constant}}::{{closure}}::VAL.0` -4
  ORIG            e8 00 00 00 00 call 0x000000000000002A  // R_X86_64_PLT32 -> `__tls_get_addr` -4
  TRACE           relaxation.kind=TlsLdToLocalExec value_flags=ADDRESS | CAN_BYPASS_GOT resolution_flags=DIRECT

We can see the bytes that we need on the ld line.
If we leave the machine code there, then I should probably try to make the code a little more readable though, since some of them aren't well commented at the moment.

For many of the asm snippets, I need to know an offset into the machine code at which to write some value. This is already a bit of a magic offset. If the machine code bytes aren't visible, then it's even more of a magic offset.

I was also thinking about this limitation and one might include a placeholder address (e.g. 0x12345678), then parse it in the encoded byte stream and provide a function that will replace the placeholder with an actual address. But sure, it's not ideal.

My other concern would be that it'd mean people would need to install an assembler in order to build wild. That wouldn't matter for people who download a precompiled binary from github (once those are set up), but it would matter for anyone who tries to use cargo install, which is, for better or worse, a popular way to install Rust tools. It'd also make it slightly harder for other projects to use Wild as a library, since anyone building those tools would need to install an assembler.

I fully agree with this, it's a solid limitation. I tried seeking for a library-only approach (without any system dependency) and there might be https://github.com/icedland/iced project. However, it's going to bring a lot of dependencies and as Wild's aspiration are also other platforms, the mentioned project provides only x86_64 support.

The machine code isn't hard to write as-is. I usually just copy the bytes from the output of linker-diff. If I'm writing assembly code that's passed to a proc macro, then I could imagine cases where it'd take a bit of work to write assembly that produces the desired byte sequence. Some of the instructions need padding bytes in order to end up the correct length. e.g. the byte sequence 0x66, 0x66, 0x66, 0x64, 0x48, 0x8b, 0x04, 0x25, 0, 0, 0, 0 is mov %fs:0,%rax, but I'm betting if you put mov %fs:0,%rax into an assembler, you'd get a significantly shorter sequence of bytes.

I've got the point. Based on all the comments mentioned, I would consider the current approach (byte sequences with comments) as better.

I'm not sure exactly how they are used, but could the inline assembly macro in rust help here?

No, it's about converting assembly code snippets (like mov %fs:0, %rax) into their by representation ([64, 48, 8b, 4, 25, 0, 0, 0, 0]) at compile time. These by snippets are then used for relaxation purposes.

No, it's about converting assembly code snippets (like mov %fs:0, %rax) into their by representation ([64, 48, 8b, 4, 25, 0, 0, 0, 0]) at compile time. These by snippets are then used for relaxation purposes.

For many of the asm snippets, I need to know an offset into the machine code at which to write some value. This is already a bit of a magic offset. If the machine code bytes aren't visible, then it's even more of a magic offset.

I was also thinking about this limitation and one might include a placeholder address (e.g. 0x12345678), then parse it in the encoded byte stream and provide a function that will replace the placeholder with an actual address. But sure, it's not ideal.

My other concern would be that it'd mean people would need to install an assembler in order to build wild. That wouldn't matter for people who download a precompiled binary from github (once those are set up), but it would matter for anyone who tries to use cargo install, which is, for better or worse, a popular way to install Rust tools. It'd also make it slightly harder for other projects to use Wild as a library, since anyone building those tools would need to install an assembler.

I fully agree with this, it's a solid limitation. I tried seeking for a library-only approach (without any system dependency) and there might be https://github.com/icedland/iced project. However, it's going to bring a lot of dependencies and as Wild's aspiration are also other platforms, the mentioned project provides only x86_64 support.

The machine code isn't hard to write as-is. I usually just copy the bytes from the output of linker-diff. If I'm writing assembly code that's passed to a proc macro, then I could imagine cases where it'd take a bit of work to write assembly that produces the desired byte sequence. Some of the instructions need padding bytes in order to end up the correct length. e.g. the byte sequence 0x66, 0x66, 0x66, 0x64, 0x48, 0x8b, 0x04, 0x25, 0, 0, 0, 0 is mov %fs:0,%rax, but I'm betting if you put mov %fs:0,%rax into an assembler, you'd get a significantly shorter sequence of bytes.

I've got the point. Based on all the comments mentioned, I would consider the current approach (byte sequences with comments) as better.

Thoughts, @jam1garner ?

I'll close this issue, since as discussed above, although the sequences of bytes look like a maintainability problem, they're actually more maintainable than any alternatives we're currently aware of. Feel free to still comment if anyone has any thoughts on this though.


Added toggle for upper div classes

Summary
Added toggle to display only upper-level courses by having it input 100-199 into the Course Code manual search input.
If we want to include graduate level, we can just change it to 100-999

Test Plan

Displays only courses between 100-199, including ones like STATS 120A.
When toggled on/off the url is also updated properly.

Issues
Closes #597
Future Followup
Currently, I have the Upper Div toggle with labelPlacement='top', but the Online toggle is defaulted to 'labelPlacement='end'. I changed the positioning for UI reasons (it looks too cramped otherwise), but this might be worth changing to maintain a consistent style.

Let me know what you think of these suggestions. I get that this is kinda overkill for a small PR but the idea is to practice code quality so you can write code that's more readable for bigger changes.

I always appreciate feedback 🫶 💖.
In regards to the suggestions:

I had a real hard time getting the string from handleUpperDivChange to play nice with handleChange which wanted ChangeEvent<HTMLInputElement.
I also wasn't 100% on how {target: {value: '100-199'}} worked and I couldn't finagle it into playing nice
Type Predicates and checking were also hassly (and eventually didn't work either)

However, to make it more modular, I ended up splitting it into three functions: handleUpperDivChange, handleNumbersChange, handleCourseNumbers. The first two, associated with the text input and the switch, respectively, pass strings (event.target.value or '100-199') to the handleCourseNumbers which executes all the relevant URL & state business
And for making the type stricter... there is `ChangeEvent, which does work fine, but I left it out of the most recent commits for your input on whether it's worth changing.
LMK whatcha think!

I had a real hard time getting the string from handleUpperDivChange to play nice with handleChange which wanted ChangeEvent<HTMLInputElement.

I also wasn't 100% on how {target: {value: '100-199'}} worked and I couldn't finagle it into playing nice

It'd look like this (see screenshot), but I think your solution is cleaner because passing in our own "event" is kinda janky compared to just writing a function that actually takes a string.

Type Predicates and checking were also hassly (and eventually didn't work either)

Seems cursed, glad we aren't using it.

However, to make it more modular, I ended up splitting it into three functions: handleUpperDivChange, handleNumbersChange, handleCourseNumbers. The first two, associated with the text input and the switch, respectively, pass strings (event.target.value or '100-199') to the handleCourseNumbers which executes all the relevant URL & state business

Good changes, better than what I had in mind 👍

And for making the type stricter... there is ChangeEvent<HTMLTextAreaElement>, which does work fine, but I left it out of the most recent commits for your input on whether it's worth changing.

Yeah, do this.


should we use 'a' or 'w' when writing netcdf?

Do we allow append (mode='a') or overwrite (mode='w')?  Probably should.

a .. people might want to write their time series in one step and geoms in another. Glad you are coming back to this work!!

Other libraries like pandas overwrite existing files with their .to_format functions. I suggest we follow that behavior, and add a new export method called .append_to_netcdf, which appends to an existing file. That function will also take an optional list of variable names to assign the geometry to, which just means setting their geometry attribute to be the name of the geometry container.

Makes sense to me. That or error if the file exists unless the user says overwrite or append?

After reading through every function and adding docstrings today, I was reminded of how Ben already solved this problem.  Ben accommodated 'a' when he allowed the write_netcdf function to accept either a path to a netCDF file or a netCDF Dataset instance.  If the former, any existing file is overwritten. If the latter, you can append.
Thus, I'm closing this issue for now. I welcome raising the issue again if this solution irks anyone.


add performance-analyzer to manifest

Signed-off-by: Kaushal Kumar<EMAIL_ADDRESS>Description
To add the latest changes to OS 2.3 release
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2506 (a20ada8) into main (7b61ab4) will increase coverage by 5.58%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #2506      +/-   ##
=============================================
+ Coverage     94.41%   100.00%   +5.58%
=============================================
  Files           218         6     -212
  Lines          4459       105    -4354
  Branches         29        19      -10
=============================================
- Hits           4210       105    -4105
+ Misses          243         0     -243
+ Partials          6         0       -6

Impacted Files
Coverage Δ

...workflow/opensearch/build_artifact_check_plugin.py

src/manifests_workflow/manifests_args.py

tests/jenkins/jobs/BuildDockerImage_Jenkinsfile

src/assemble_workflow/bundle_url_location.py

src/ci_workflow/ci_manifests.py

src/assemble_workflow/bundle_location.py

src/test_workflow/perf_test/perf_test_suite.py

src/system/console.py

.../bwc_test/bwc_test_runner_opensearch_dashboards.py

src/git/git_repository.py

... and 202 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


feat: add mappings to std_dev, variance

Resolves #581

@gforsyth When I run
import ibis
from ibis_substrait.compiler.core import SubstraitCompiler

t = ibis.table(
    [("a", "string"), ("b", "float"), ("c", "int32"), ("d", "int64"), ("e", "int64")],
    "t",
)

expr = t.group_by(["a", "b"]).aggregate([t.c.var().name("var")]).select("b", "var")

compiler = SubstraitCompiler()
proto = compiler.compile(expr)

I see
Traceback (most recent call last):
  File "/Users/ian/ibis-substrait/ibis_substrait/compiler/core.py", line 83, in function_id
    function_extension = self.function_extensions[op_name]
KeyError: 'variance'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/ian/ibis-substrait/ibis_substrait/compiler/core.py", line 197, in compile
    input=translate(expr.op(), expr=expr, compiler=self, **kwargs),
  File<EMAIL_ADDRESS>line 889, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/Users/ian/ibis-substrait/ibis_substrait/compiler/translate.py", line 1080, in aggregation
    measures=[
  File "/Users/ian/ibis-substrait/ibis_substrait/compiler/translate.py", line 1082, in <listcomp>
    measure=translate(metric, compiler=compiler, **kwargs)
  File<EMAIL_ADDRESS>line 889, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/Users/ian/ibis-substrait/ibis_substrait/compiler/translate.py", line 518, in alias_op
    return translate(op.arg.op(), alias_op.to_expr(), compiler=compiler, **kwargs)
  File<EMAIL_ADDRESS>line 889, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/Users/ian/ibis-substrait/ibis_substrait/compiler/translate.py", line 600, in _reduction
    function_reference=compiler.function_id(expr=expr),
  File "/Users/ian/ibis-substrait/ibis_substrait/compiler/core.py", line 87, in function_id
    ] = self.extension_lookup(op_name, op)
  File "/Users/ian/ibis-substrait/ibis_substrait/compiler/core.py", line 113, in extension_lookup
    [
  File "/Users/ian/ibis-substrait/ibis_substrait/compiler/core.py", line 114, in <listcomp>
    IBIS_SUBSTRAIT_TYPE_MAPPING[arg.op().output_dtype.name]
AttributeError: 'str' object has no attribute 'op'

What step did I miss?

Ahh, yeah, so Variance at least isn't the super-easy kind of op to add, but it should be relatively straightforward.  And StandardDev should be similar in effort.
If you look at the Ibis source for those ops, you can see that they both inherit from VarianceBase
https://github.com/ibis-project/ibis/blob/master/ibis/expr/operations/reductions.py#L144-L164
and while the first argument is any numeric arg type, the second is the sampling method (the how arg).
so you'll want to add a dispatch rule that looks something like
# you can decorate the same dispatch because the arguments are the same
@ops.StandardDev
@ops.Variance
def _variance_base(
    op: ops.StandardDev | ops.Variance,
    expr: ir.ValueExpr | None = None,
    *,
    compiler: SubstraitCompiler | None = None,
    **kwargs: Any,
) -> stalg.Expression:
    op = _check_and_upcast(op)
    # given the details of `op` -> function id
    return stalg.Expression(
        scalar_function=stalg.Expression.ScalarFunction(
            function_reference=compiler.function_id(op=op),
            output_type=translate(op.output_dtype),
            arguments=[
                stalg.FunctionArgument(
                    value=translate(arg, compiler=compiler, **kwargs)
                )
                for arg in op.args  # <-- need to make this not `op.args`
                if isinstance(arg, (ir.Expr, ops.Value))
            ],
        )
    )

and then construct and return a substrait expression (stalg.Expression.ScalarFunction) that only passes in the op.arg to the argument field.
And if op.how is something besides 'sample' then you can either raise NotImplementedError, or we can go through passing on optional arguments to a scalar function. (I don't think we've had to do that thus far).
I'll think about how to make this easier because right now it does mean custom rules for all of these functions, but ibis holds "top level" and optional arguments in op.args and I don't know that there's a simple way to split those.

If anyone comes across this PR, note that my example above is incorrect as std and variance are aggregate functions, not scalar functions, but the general idea still applies.


[BUG]-1.5.0-rc-138 Issue with Bridge post activation

Describe the bug
A clear and concise description of what the bug is.
Stacktrace
Include a stack trace of the exception if possible.
[10:12:14.000]App 2:[Cameras-Bridge] ERROR: Device PostActivation failure:
System.InvalidProgramException: InvalidProgramException
   at PepperDash.Essentials.Bridges.EiscApi.<.ctor>b__0()
   at PepperDash.Core.Device.<PostActivate>b__2(Action a)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at PepperDash.Core.Device.PostActivate()
   at PepperDash.Essentials.Core.DeviceManager.ActivateAll()
   at PepperDash.Essentials.ControlSystem.Load()
   at PepperDash.Essentials.ControlSystem.GoWithLoad()
   at PepperDash.Essentials.ControlSystem.InitializeSystem()
   at Crestron.SimplSharpPro.CrestronControlSystem.InitializeSimplSharpProApplication()
   at Crestron.SimplSharpProInternal.SimplSharpProManager.LoadSimplSharpProApplication(String moduleFileName)
   at Crestron.SimplSharpProInternal.SimplSharpProManager..ctor(UInt32 appNumber, String simplSharpProAppName, UInt32 flags, Boolean& badExit)
   at Crestron.SimplSharpProEntry.b(String[] A_0)

Additional context
Implementing IBridge

            {
                "group": "cameras",
                "key": "Camera01",
                "name": "Main Camera",
                "properties": {
                      "control": {
                        "comParams": {
                            "baudRate": 115200,
                            "dataBits": 8,
                            "hardwareHandshake": "None",
                            "parity": "None",
                            "protocol": "RS232",
                            "softwareHandshake": "None",
                            "stopBits": 1
                        },
                        "controlPortDevKey": "processor",
                        "controlPortNumber": 5,
                        "method": "com"
                    },
                    "presets": [
                        {
                            "id": 1,
                            "name": "Wide"
                        },
                        {
                            "id": 2,
                            "name": "Zoom"
                        }
                    ]
                },
                "type": "panasonicHttpCamera",
                "uid": 1010
            },
            {
                "group": "api",
                "key": "Cameras-Bridge",
                "name": "eisc-DSP",
                "properties": {
                    "control": {
                        "ipid": "D6",
                        "method": "ipidTcp",
                        "tcpSshProperties": {
                            "address": "<IP_ADDRESS>",
                            "port": 0
                        }
                    },
                    "devices": [
                        {
                            "deviceKey": "Camera01",
                            "joinStart": 1
                        }
                    ]
                },
                "type": "eiscApi",
                "uid": 4
            }

@jtalborough Can you post your configuration for the bridge that's failing? Also, which interface are you implementing in your plugin: IBridge or IBridgeAdvanced?

One more request: Can you post your LinkToApi method from the device class that's failing?

    #region IBridge Members

    public void LinkToApi(Crestron.SimplSharpPro.DeviceSupport.BasicTriList trilist, uint joinStart, string joinMapKey)
    {
        this.LinkToApiExt(trilist, joinStart, joinMapKey);
    }

    #endregion

On Apr 28, 2020, at 11:28 AM, Andrew Welker<EMAIL_ADDRESS>wrote:
One more request: Can you post your LinkToApi method from the device class that's failing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/PepperDash/Essentials/issues/129#issuecomment-620678075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAY7PIIP6MRZOXLVHFHW4ODRO3YZZANCNFSM4MS33KXQ.

Remove IBridge from your Panasonic Camera controller class and change your LinkToApi method to add a EiscApiAdvanced parameter at the end. See the example below. CameraBase inherits from EssentialsBridgeableDevice, which implements IBridgeAdvanced, and is getting caught in the if statement first.
public void LinkToApi(BasicTriList trilist, uint JoinStart, string joinMapKey, EiscApiAdvanced bridge)
You can keep the rest of the method the same.

isn't this a breaking change for everything that inherits from CameraBase now?

It is. I'll look at how to make it backwards compatible prior to release.

isn't this a breaking change for everything that inherits from CameraBase now?

You'll note that the version here has an incremented minor version, which means that it's a significant update.  That means there may be some more fundamental changes that require updates to plugins to maintain compatibility.  Maintaining perfect backwards compatibility is not always possible and while we try our best to do it where it makes sense, there will be situations where plugins will be affected and will need to be updated to be compatible with newer versions of the framework.

Indeed, just making sure I'm aware so that I can keep my plugins up to date

Got a fix in the works for this that should be backwards compatible. Look for a new RC in a couple of hours.

you the man!

CameraBase is moved back to an EssentialsDevice, and each internal implementing class now implements IBridgeAdvanced. There is a protected method on CameraBase now called LinkCameraToApi that, if you are planning on using the standard join map and linking logic, can be called to do that.


Fix tiller/helm connectivity for AWS Rancher

This PR includes:

updated scripts for using helm in AWS Rancher
updated AWS Rancher README with instructions for configuring AWS EC2 security groups to allow helm/tiller traffic

This connects to #238

This closes #238


Add support for resource filtering by namespace

What would you like to be added:
Add a --namespace / -n flag to support Gateway API object filtering by namespace.
In addition, a --all-namespaces / -A flag to indicate that all namespaces should be used.
If none of the flags is specified, the current namespace will be used.

@LiorLieberman

/assign @levikobi

/triage accepted


add ent val-de-marne

Hello,
Can you add https://cas.moncollege.valdemarne.fr
Thank you for your work!
Regards,

I've done that in a pull request : #269


Small fixes for emoticons like :-)

Hi,
Put in a few small fixes for emoticon support. Let me know what you think? Thx!

Hi,
Thanks for the pull request.
What's the benefit of having the emoticon map in a separate array?

It's basically a bug fix: when doing string matching, we weren't able to resolve :octopus: because the :o emoticon was being matched and transformed first. Depending on how the map gets built I could imagine others like :p having similar issues down the road as the list grows.
Also- because of a performance optimization, semicolon-based faces like ;-) weren't working. That's been fixed here as well.

On Apr 26, 2015, at 8:17 AM, Valerio Mazzeo<EMAIL_ADDRESS>wrote:
Hi,
Thanks for the pull request.
What's the benefit of having the emoticon map in a separate array?
―
Reply to this email directly or view it on GitHub.

Interesting, I will have a look soon just to double check and then merge :)
Thanks again!

Cool. Thanks for considering it!

On Apr 27, 2015, at 4:44 AM, Valerio Mazzeo<EMAIL_ADDRESS>wrote:
Interesting, I will have a look soon just to double check and then merge :)
Thanks again!
―
Reply to this email directly or view it on GitHub.

With your changes, when building the reverse map:
NSMutableDictionary *reversedMap = [NSMutableDictionary dictionaryWithCapacity:[forwardMap count]];
    [forwardMap enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
        if ([obj isKindOfClass:[NSArray class]]) {
            for (NSString *object in obj) {
                [reversedMap setObject:key forKey:object];
            }
        } else {
            [reversedMap setObject:key forKey:obj];
        }
    }];

We should not check for the existence of an array anymore, because you mapped all the emoticons into a different one so the mapping in this new case is also 1:1.
Also, the emoticonMap array has to be merged (after exchanging keys/objects) into the reversed array unless the conversion in stringByReplacingEmojiCheatCodesWithUnicode won't work properly for the emoticons contained in the emoticonMap array.
Last thing, maybe we should consider create the character set: [NSCharacterSet characterSetWithCharactersInString:@":;"]
dynamically into: initializeEmojiCheatCodes
So if in the future we add new emoji that starts with a different character :, ; it will pick it up correctly.
Let me know your thoughts!

Hi @jexe, just a poke to understand if you are still interested in this.

Hi

Yes we can definitely remove the checking for an NSArray. Good catch.

I am not sure I am following you with merging the emoticonMap into the reversed array. The stringByReplacingEmojiCheatCodesWithUnicode is processing the s_emoticonToUnicode.

Thanks


fix: add some kind of acknowledge while producing as if process dies without updating the verdict and multiple workers put same submissions in queue

[x] fix this

this can be done like when a submission is picked up we check if it is already processed or not
if processed then we skip

to be handled in judge engine


Limit the amount that can be taken during a lockpick

Currently, players can take the kitchen sink. Would it be possible to limit the total weight of items taken in a single pick pocketing attempt? Or randomly pick just one?

Thank you!

I have added settings to limit the loot via the total amount of items or their weight, depending on the pick pocket success level with v3.2.0

Thank you!


Adding neural networks as inverse solutions

Describe the new feature or enhancement
The feature
Currently, there are a handful of M/EEG source localization methods available within mne-python: minimum norm estimates and derivatives (dSPM, eLORETA...), equivalent current dipole, sparse bayesian approaches and beamforming. To this list I would like to add artificial neural networks (ANNs) as demonstrated in Hecker et al., 2021. A working implementation outside of MNE can be found here.
Why do I think it's useful?
This feature would add a new approach to the inverse problem, which has shown to work well on simulated data. An implementation within MNE would hopefully allow users to test and compare the ANN-based inverse solutions with the existing and more established approaches using their own data.
Additional comments
I would like to discuss this feature with the mne-python community. Let's say I'll implement this feature such that the devs are satisfied with it. How will maintainence work in the long run? For example, if mne-python receives  major updates in the upcoming years which cause my code to not work anymore - how do you proceed in these cases? My concern is that submodules like this one may clutter the mne-python repository if I don't personally commit to maintainance for an elongated period. I'm happy to hear your thoughts about it!
Literature:
Hecker, L., Rupprecht, R., Tebartz van Elst, L., & Kornmeier, J. (2021). ConvDip: A convolutional neural network for better EEG Source Imaging. Frontiers in Neuroscience, 15, 533.

@LukeTheHecker I would really advise to maintain this in a separate package that is fully compatible with mne.
basically you would have
from my_package import my_great_inverse_method

stc = my_great_inverse_method(fwd, evoked, ...)

stc.plot()

the main reason is the dependency on deep learning toolkits in our CIs that would really like to limit due to an already super long test time.

That makes sense to me, thank you for your fast reply!


Legacy standard support: Word usage clause in Overview

Source issue: https://github.com/metanorma/mnconvert/issues/161
Source adoc:
= the Design, Construction, and Operation of Electric Power Substations for Community Acceptance and Environmental Compatibility
:docnumber: 1127
:docstatus: active
:copyright-year: 2014
:copyright-holder: IEEE
:published-date: 2014-01-24
:issued-date: 2013-12-11
:date: reaffirm 2000-10-30
:updates: IEEE Std 1127-1998
:semantic-metadata-related-article-edition: 2012 Edition
:language: en
:doctype: guide
:library-ics: 35.040
:committee: Substations Committee
:society: Power and Energy Society
:semantic-metadata-partner-secretariat: "Institute of Electrical and Electronics Engineers, Inc."
:keywords: A-weighted sound level, commercial zone, community involvement, hazardous material, IEEE 1127™, industrial zone, noise, permitting process, residential zone, wetlands
:semantic-metadata-xplore-article-id: 6457401
:stdid-pdf: STD98512
:stdid-print: STDPD98512
:isbn-pdf: 978-0-7381-8880-5
:isbn-print: 978-0-7381-8881-2
:mn-output-extensions: xml,html,doc,pdf,rxl
:local-cache-only:
:data-uri-image:
:imagesdir: images

[[sec1]]
== Overview

[[sec1.1]]
=== Scope

This guide identifies ...

[[sec1.2]]
=== Purpose

This guide provides ...

[[sec1.3]]
=== Organization

The guide is generally organized ...

In the resulted metanorma xml I see 3 sections from adoc and additional fourth section 'Word usage':
<sections>
	<clause id="sec1" type="overview" inline-header="false" obligation="normative">
		<title>Overview</title>
		<clause id="sec1.1" type="scope" inline-header="false" obligation="normative">
			<title>Scope</title>

This guide identifies …

		</clause>
		<clause id="sec1.2" type="purpose" inline-header="false" obligation="normative">
			<title>Purpose</title>

This guide provides …

		</clause>
		<clause id="sec1.3" inline-header="false" obligation="normative">
			<title>Organization</title>

The guide is generally organized …

		</clause>
		<clause id="boilerplate_word_usage">
			<title>Word usage</title>

The word shall indicates mandatory requirements strictly to be followed in order to conform to the standard and from which no deviation is permitted (shall equals is required to).<fn>

The use of the word must is deprecated and cannot be used when stating mandatory requirements; must is used only to describe unavoidable situations.

				</fn>
				<fn>

The use of will is deprecated and cannot be used when stating mandatory requirements; will is only used in statements of fact.

				</fn>

The word should indicates that among several possibilities one is recommended as particularly suitable, without mentioning or excluding others; or that a certain course of action is preferred but not necessarily required (should equals is recommended that).

The word may is used to indicate a course of action permissible within the limits of the standard (may equals is permitted to).

The word can is used for statements of possibility and capability, whether material, physical, or causal (can equals is able to).

		</clause>
	</clause>
</sections>

Why it appears here?

@Intelligent2013 the new IEEE Style Manual 2021 requires the last subclause of Clause 1 Overview to be "Word Usage". Metanorma currently automatically inserts it, but we can do something to stop that behavior for documents before a certain date or through a specified option.

Metanorma currently automatically inserts it, but we can do something to stop that behavior for documents before a certain date or through a specified option.

That's an issue that's also come up with OGC, as I've said before.
I'd rather we not do this, and not be in the business of retrofitting, but that's a business decision. Issue moves to On Hold, pending @ronaldtse getting information to the contrary from IEEE.

If we are to support Metanorma for IEEE officially, changes are expected in requirements in the future. The Style Manual will change. The decision now is on whether we support earlier documents.
Ideally, we should just do what we did for ISO output templates -- identify the version of the Style Manual the document follows.
e.g.
:document-scheme: ieee-sa-2021

Or something like that.

In ITU, we currently have :legacy-do-not-insert-missing-sections:. We will do the equivalent behaviour here as an unrecognised document-scheme.
You may have used document-scheme for ISO templates, btw, but this is the first I've heard of them for Metanorma. Rollout of this feature will be incremental.

I think for ITU the :legacy-do-not-insert-missing-sections: should be subsumed into the more proper document-scheme in the future. This is a good idea.

:document-scheme:: The document scheme that this document aligns to: Metanorma will enforce alignment
as appropriate, including by supplying predefined sections. The default document scheme for Metanorma-IEEE
is "ieee-sa-2021"; unless a different document-scheme is nominated, Metanorma will supply a Word Usage
section at the end of the Overview, will supply the built-in boilerplate as defined in 2021, and
will overwrite the Participants clause in the built-in boilerplate with user-defined Participant clauses.
In order to prevent that behaviour in legacy documents, any other value can be nominated for the document attribute,
such as "legacy".


Flutter Ios compilation with XCode 11 problem

Hi Developers.
I tried to install  flutter in macOS Catalina 10.15 Beta .
when I create a projet and run it ,I have a problem
flutter run
mtech@mtechs-iMac testtarek % flutter run

logs

Launching lib/main.dart on iPhone 8 in debug mode...
Running Xcode build...

 ├─Assembling Flutter resources...                          21.9s
 └─Compiling, linking and signing...                        50.6s
Xcode build done.                                           136.5s
^[[A^[[AFailed to build iOS app
Error output from Xcode build:
↳
    2020-05-23 23:41 xcodebuild[14039] (FSEvents.framework) fsevent_realpath: err(2): [No such
    file or directory]

    * BUILD FAILED *

Xcode's output:
↳
    2020-05-23 23:43:31.970 ibtoold[14273:290862] DEBUG: Added to environment: {
        TMPDIR =
        "/var/folders/kh/32g9995532l97zz2mbn2b1y00000gn/T/9A55336C-66B6-42DE-9F72-D4E5E9C10677";
    }
    2020-05-23 23:43:34.421 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.430 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.432 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.433 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.434 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.436 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.437 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.438 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.440 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.442 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.443 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.444 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.445 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.447 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.448 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.449 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.450 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.452 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.453 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.454 IBCocoaTouchImageCatalogTool[14307:291499] Unable to get image
    dimensions for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.462 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.462 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.463 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.464 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.465 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.466 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.466 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.467 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.468 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.469 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.471 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.511 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.512 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.513 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.515 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.516 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.523 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.525 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.526 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.527 IBCocoaTouchImageCatalogTool[14307:291499] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.611 IBCocoaTouchImageCatalogTool[14307:291510] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.611 IBCocoaTouchImageCatalogTool[14307:291509] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.613 IBCocoaTouchImageCatalogTool[14307:291510] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.615 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.615 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.616 IBCocoaTouchImageCatalogTool[14307:291510] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.617 IBCocoaTouchImageCatalogTool[14307:291510] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.621 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.621 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.622 IBCocoaTouchImageCatalogTool[14307:291510] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.623 IBCocoaTouchImageCatalogTool[14307:291510] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.623 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.624 IBCocoaTouchImageCatalogTool[14307:291510] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.624 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.625 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.626 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.627 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.628 IBCocoaTouchImageCatalogTool[14307:291510] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.628 IBCocoaTouchImageCatalogTool[14307:291510] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    2020-05-23 23:43:34.629 IBCocoaTouchImageCatalogTool[14307:291530] CoreThemeDefinition:
    Unable to create image for
    file:///Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Ap
<EMAIL_ADDRESS>    /* com.apple.actool.errors */
    /Users/mtech/Downloads/testtarek/ios/Runner/Assets.xcassets: error: Distill failed for
    unknown reasons.
    /* com.apple.actool.compilation-results */
<EMAIL_ADDRESS>    g
<EMAIL_ADDRESS>    g
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon29x29.png
<EMAIL_ADDRESS>    g
<EMAIL_ADDRESS>    g
<EMAIL_ADDRESS>    g
<EMAIL_ADDRESS>    g
<EMAIL_ADDRESS>    g
<EMAIL_ADDRESS>    g
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon20x20~ipad.
    png
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon20x20@2x~ip
    ad.png
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon29x29~ipad.
    png
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon29x29@2x~ip
    ad.png
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon40x40~ipad.
    png
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon40x40@2x~ip
    ad.png
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon76x76~ipad.
    png
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon76x76@2x~ip
    ad.png
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/AppIcon83.5x83.5@2
    x~ipad.png
    /Users/mtech/Downloads/testtarek/build/ios/Debug-iphonesimulator/mtest.app/Assets.car
    /Users/mtech/Library/Developer/Xcode/DerivedData/Runner-fhrudwrewilvebciwuwmwqwmvden/Build/In
    termediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/assetcatalog_generated_in
    fo.plist

    note: Using new build systemnote: Planning buildnote: Constructing build descriptionwarning:
    The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated
    @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference”
    logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build
    setting to "Default" for the "Runner" target. (in target 'Runner' from project 'Runner')

Could not build the application for the simulator.
Error launching application on iPhone 8.

flutter doctor -v
 **flutter doctor -v**
[✓] Flutter (Channel unknown, v1.12.13+hotfix.7, on Mac OS X 10.15 19A487l, locale en)
    • Flutter version 1.12.13+hotfix.7 at /users/mtech/Desktop/developpement/flutter
    • Framework revision 9f5ff2306b (4 months ago), 2020-01-26 22:38:26 -0800
    • Engine revision a67792536c
    • Dart version 2.7.0

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_HOME to that
      location.
      You may also want to add it to your PATH environment variable.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
    • Xcode at /Users/mtech/Downloads/Xcode 2.app/Contents/Developer
    • Xcode 11.0, Build version 11A420a
    • CocoaPods version 1.7.5

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • iPhone 8 • 75B3F102-8005-4AFA-919E-527513E83447 • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-0 (simulator)

! Doctor found issues in 2 categories.

Hi @tarektaamali
Please upgrade to latest stable  channel and try again
if the problem persist after upgrade, can you please provide your upgraded flutter doctor -v and flutter run --verbose?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you

@tarektaamali
I hope you've solved the issue.
Closing as additional information isn't provided.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of flutter doctor -v please.


BUG: repeating content in free ebooks section

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?

There are repeating books in the free ebooks section.
I can fix it.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Assigned!
Make sure to attach before & after screenshots in your PR and include the issue number.
Also, please star the repo before working on it. Happy open-source contributing!


add 2 API function

showPage：
An API function used to display pages info like this: '13/26' at the bottom by adding footer element.
impress().showPage()  to make it work.
showProgress：
An API function used to display progress bar at the top by adding header element.
impress().showProgress()  to make it work.

These two APIs maybe can make the presentation more easily understandable and professional ^_^

It's not the responsibility of impress.js to format the data. I would say that impress could keep track of the steps position, but I am not sure if this is useful enough to be exposed as an API. You can easily keep track of your steps using an external model. For example, if you are writing your html by hand, you know the position beforehand, so you can print without impress.

I have to say I disagree with the previous comment. If you have 99 slides, and numbered them manually, and then add a slide to the beginning, you would have to renumber all of them. Which would be silly, when you can do what this pull request proposes instead.
Currently the main problem is that no pull requests are being handled by anyone. There's been discussion of opening up this project, and moving into a more modular and then more inclusive type of project. If that actually happens soon, this pull request would definitively fit in well.

If you have 99 slides, and numbered them manually, and then add a slide to the beginning, you would have to renumber all of them

It makes sense to conveniently expose the position as a Number or as a position Object Literal. But not to format the data, that's the client job.

Ah, I agree with that much. I wasn't looking too closely at this specific implementation. Such a discussion makes more sense once we have an architecture and process to submit pull requests against. (I have my own pull requests waiting, and fully expect to have to rewrite it against some refactored impress.js before it gets accepted.)

hi @henrikingo @FagnerMartinsBrack, thanks for this discussion.
You are both right. As @FagnerMartinsBrack said - I personally don't see such paging/progress functionality in the core of impress.js. Especially that it can be already achieved with a little bit of JS trickery and counting slides.
And for sure I'd like to see impress.js more flexible and open for pull requests. Just at this point (without more flexible architecture) any additional feature will turn code into bigger spaghetti.
Unfortunately I don't think I'll be able to make it on my own as I don't have time for that and even idea how impress.js should be refactored to make it all possible. I have maybe a very blurry view of how I wish this code could be organised, but it's not enough to make it real.
Maybe we could just create an issue here for refactoring, have some discussion there and if anyone would be able to implement it just make it real? What do you think?

Hi @bartaz
Yes, please create such an issue. Even if you don't have time to do it, I think the initiative for discussion needs to start from you. Or, if you don't even want to initiate discussion, you need to simply pick a person/persons who you delegate to. Based on #435 all the rest of us have been waiting for a cue from you and nobody will propose anything before there is a signal that you're open to proposals. (In fact, there was some GSoC project that we were waiting for?)
As for myself, I would currently have time to contribute into refactoring, but need someone else, who is more familiar with current state of the art in JavaScript, to dictate the coding style, style of plugin api, "dependency injection", unit testing frameworks and so on... Once I'm told which tools to use, I can contribute my ideas on how to refactor impress.js and also do refactoring, create new api's, etc.
henrik

I have made a comment in that issue with some suggestions for the next steps to make: https://github.com/impress/impress.js/issues/435#issuecomment-132184917

@yalishizhude Thanks for the PR!
Closing due to the comments above and also due to the lack of feedback from the OP. It seems that this feature is not useful for the current state of the project and it can be easily done using external data.


Generate test coverage report

How can I get report with test results? Shall I run command swagger-coverage-commnadline?

@alexalex1810 Hi,
The report will be generated automatically. You just need to follow all steps described in Readme.
This fixture is responsible for the report generation:
https://github.com/JamalZeynalov/swagger-coverage-py#3-add-the-session-scoped-fixture


[stable/ambassador] Upgrade Ambassador Pro 0.10.0→0.11.0

What this PR does / why we need it:
Upgrade Ambassador Pro from v0.10.0 to v0.11.0
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/lgtm


Unable to install luci-app-dockerman

Describe the bug
I tried to install luci-app-dockerman in the admin panel (luci panel), but it says the package docker is missing and cannot be found in any source. Then I tried to install anyway, and as a result, the panel breakes and can never be accessed, with the following error thrown out.
Runtime error
Unhandled exception during request dispatching
/usr/lib/lua/luci/ucodebridge.lua:23: /usr/lib/lua/luci/model/docker.lua:6: module 'luci.docker' not found:
	no field package.preload['luci.docker']
	no file './luci/docker.lua'
	no file '/usr/share/lua/luci/docker.lua'
	no file '/usr/share/lua/luci/docker/init.lua'
	no file '/usr/lib/lua/luci/docker.lua'
	no file '/usr/lib/lua/luci/docker/init.lua'
	no file './luci/docker.so'
	no file '/usr/lib/lua/luci/docker.so'
	no file '/usr/lib/lua/loadall.so'
	no file './luci.so'
	no file '/usr/lib/lua/luci.so'
	no file '/usr/lib/lua/loadall.so'

In error(), file [C]
  called from function [anonymous function] (/usr/lib/lua/luci/ucodebridge.lua:23)
  called from function  ((tail call))

In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 148, byte 45:
  called from function build_pagetree (/usr/share/ucode/luci/dispatcher.uc:382:73)
  called from function menu_json (/usr/share/ucode/luci/dispatcher.uc:439:26)
  called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:893:24)
  called from anonymous function (/www/cgi-bin/luci:39:12)

 `        return lcall.call(modname, method, ...args);`
  Near here ----------------------------------------^

After that I tried to install it through ssh, but it made no difference.
logs are as follow:
root@ImmortalWrt:~# opkg update
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/targets/rockchip/armv8/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/immortalwrt_core
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/targets/rockchip/armv8/packages/Packages.sig
Signature check passed.
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/base/Packages.gz
Updated list of available packages in /var/opkg-lists/immortalwrt_base
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/base/Packages.sig
Signature check passed.
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/immortalwrt_luci
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/luci/Packages.sig
Signature check passed.
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/immortalwrt_packages
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/packages/Packages.sig
Signature check passed.
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/immortalwrt_routing
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/routing/Packages.sig
Signature check passed.
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/immortalwrt_telephony
Downloading https://mirrors.vsean.net/openwrt/releases/23.05.0-rc2/packages/aarch64_generic/telephony/Packages.sig
Signature check passed.
root@ImmortalWrt:~# opkg install luci-app-dockerman
Unknown package 'luci-app-dockerman'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency docker for luci-app-dockerman
 * pkg_hash_fetch_best_installation_candidate: Packages for luci-app-dockerman found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package luci-app-dockerman.

ImmortalWrt version
r26681-4fffb9b21a
ImmortalWrt target/subtarget
rockchip/armv8
Device
FriendlyElec NanoPi R2S
Image kind
Official downloaded image
Steps to reproduce
No response
Actual behaviour
No response
Expected behaviour
No response
Additional info
module 'luci.docker' not found
the module luci.docker should be in the repository, but it doesn't.
This issue may be helpful as the logs are somewhat the same. https://github.com/lisaac/luci-in-docker/issues/6
Diffconfig
No response
Terms

[X] I am reporting an issue for ImmortalWrt, not an unsupported fork.

docker is failed to build due to network issue, it will be available again in the next few days.
You force installed dockerman, so it's dependencies won't be installed, resulting a broken panel.


ObjectManipulator should be more general to support non-hand inputs

Describe the problem
I would like to scale, rotation, and translate objects using inputs besides hands (such as a game pad). If the object has a ManipulationHandler, it would seem logical to use it to perform the transforms so that they will obey the active constraints, and also to trigger related events (OnManipulationStarted, ...).
Currently ManipulationHandler contains hard-coded logic specific to one and two-handed gestures and does not provide public methods for applying transforms through other inputs.
Describe the solution you'd like
In my opinion ManipulationHandler should be more general, handling the application of transforms to an object along with the related constraints and side effects. The logic related to specific input controls (such as hands) should be modular and extensible, since transforms could be triggered by anything including game pads, voice commands, or other input methods.
Describe alternatives you've considered
I have considered manipulating object transforms directly. Unfortunately, this bypasses the pre-existing constraints and events in the manipulation handler.

Note that this has accessibility implications as well.

Related #7104

ObjectManipulator replaces ManipulationHandler as of 2.4.0 but this issue is still relevant.

This looks to be for non-VR / non-Hand controls (ex: xbox controller). Things to consider:

Controls to use to engage a behavior (ex: Press A and use triggers to resize)
How to target the specific manipulation handle (ex: upper right, front corner)?
Accessibility considerations (ex: difficulty holding a control while adjusting another)

Generalizing the behavior of ObjectManipulator would aid the integration of controller such as the Xbox Controller. However, it would also be useful for things like speech commands ("scale up the blue box by 50%") or indirect controls such as a holographic control panel that manipulates 3D objects in the scene.
In both those cases, selecting specific handles is probably not part of the user flow. So I would suggest that manipulations should be accessible directly through an API, and not exclusively through the manipulations widgets. I'd still want the API calls to be limited by the manipulation constraints though. Part of the issue with bypassing ObjectManipulator is missing out on those constraints.

This is an excellent suggestion and we'll make sure to consider it for the next evolution of our MRTK UI tools!

This is officially a reality with MRTK v3. Look forward to using the object manipulator with controllers, eye gaze and more in the upcoming version.
Controller support still pending but the hooks for it are reality available.

This is definitely a reality in MRTK3! ObjectManipulator works uniformly across all input modalities, including any custom interactors you might cook up yourself.


Webflow - SCSS seems to overwrite opacity and size of buttons

Hey guys, I think I did something wrong when implementing this library on my Webflow Website.
It seems like the styles given in the SCSS file are overwriting some of the changes I'm making such as size and opacity.
Here's the dev web adress if you wan't to take a look : https://ux-forge.webflow.io/home-v2
I know there's something to do with states but I seem to get my head around it.
Thanks in advance !
Here's the current CSS .mf-cursor {    @media screen and (max-width: 769px) {     display: none;   }   color : #050505; } .-cursor-hover { 	font-weight : 500; 	letter-spacing: 1px;   opacity: 1; 	color : #F44708FF; }
And the script : <script> const cursor = new MouseFollower({     container: document.body,       speed: 0.8,     skewing: 1,     skewingText: 3,     skewingDelta: 0.001,     skewingDeltaMax: 0.15, }); </script>

Just copy the scss into your project and change it as you like. The default Mouse Follower SCSS is just an example.


Safari URL Parameters being ignored when redirected from a server-side API

My application is using a server-side API that redirects users to an Angular URL in this form:
https://www.myapp.com/#/app?someKey=value1&someKey2=value2
When I test on Chrome, Firefox, and IE, everything works well. When I test on Safari, the browser ignores everything after the # and redirects to this instead:
https://www.myapp.com/
... as if it was ignoring the hashbang. I played around with encoding the hashtag to %23, but Safari then complains 404 (as expected, since myapp.com/%23/app isn't really a directory on my web server).
I've googled around and the closest issue I've found was this: http://stackoverflow.com/questions/25156291/url-parameters-work-on-chrome-firefox-but-not-on-safari
And no other reports. Due to the lack of actual reports, I'm going to assume this is either an unknown Safari bug, or I'm doing something wrong.
Could anyone advise?
Thanks

Non-issue. The issue was the server was redirected to http://, and the web server was automatically redirecting it to https://, thus losing all of the URL parameters. The weird thing is this only happens on Safari, but that's a separate issue altogether.